{"Message":"创建根据汇报模板生成内容服务端命令","MessageType":2,"Modules":[{"State":1,"Type":40,"Name":"Plugin"},{"State":1,"Type":1,"Name":"PCPage/模板详情"},{"State":1,"Type":15,"Name":"ServerCommand/根据汇报模板生成内容"}],"Version":"v1"}
This commit is contained in:
@@ -21,14 +21,6 @@
|
||||
}
|
||||
},
|
||||
"Parameters": [
|
||||
{
|
||||
"Name": "模板名称",
|
||||
"DataValidationInfo": {}
|
||||
},
|
||||
{
|
||||
"Name": "汇报数据",
|
||||
"DataValidationInfo": {}
|
||||
},
|
||||
{
|
||||
"Name": "汇报人",
|
||||
"DataValidationInfo": {
|
||||
@@ -37,8 +29,11 @@
|
||||
"TestData": "shamus"
|
||||
},
|
||||
{
|
||||
"Name": "汇报日期",
|
||||
"DataValidationInfo": {}
|
||||
"Name": "生成日期",
|
||||
"DataValidationInfo": {
|
||||
"IgnoreBlank": false
|
||||
},
|
||||
"TestData": "2024/6/11"
|
||||
}
|
||||
],
|
||||
"InvokeTriggerTestData": {
|
||||
@@ -47,83 +42,19 @@
|
||||
}
|
||||
],
|
||||
"Commands": [
|
||||
{
|
||||
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
|
||||
"OutParamaterName": "汇报列表"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "最近一次报工日期",
|
||||
"ParameterName": "总工时",
|
||||
"TableValue": {
|
||||
"TableName": "任务工时表",
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "73e81c41-172f-4f36-be36-0f3753a1c42f",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "工时日期",
|
||||
"GUID": "08331bac-2019-4b3b-8f5a-7aa1eeebcfd2"
|
||||
},
|
||||
"ColumnName": "工时日期"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||||
"SubConditions": [
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "执行人",
|
||||
"GUID": "5c25ebf2-35de-42b9-80bb-d2e0f8edde0a"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=汇报人"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "工时类型",
|
||||
"GUID": "927e8b88-5075-48c1-a771-2fb8393f560a"
|
||||
},
|
||||
"Value": "实际"
|
||||
}
|
||||
]
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1",
|
||||
"OrderBySqlCondition": {
|
||||
"OrderByColumns": [
|
||||
{
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "工时日期",
|
||||
"GUID": "ec333b87-7e84-4dfe-b912-2412bcd399eb"
|
||||
},
|
||||
"Order": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"ID": "2e5ca44fc1cb468eb348b70f3f65fbe6"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "最近报工项目",
|
||||
"TableValue": {
|
||||
"TableName": "任务工时表",
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "042d856a-ac9b-4c63-892f-7b516bd4bd3b",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "项目ID",
|
||||
"GUID": "9fe63173-5128-4215-acc4-6709548766a8"
|
||||
},
|
||||
"ColumnName": "项目ID"
|
||||
},
|
||||
{
|
||||
"GUID": "787dab28-39ad-4bcc-93ab-3f570c9b73b5",
|
||||
"GUID": "0df5eee0-bdde-4f34-a2d0-ad9291d19272",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "总工时",
|
||||
@@ -156,14 +87,326 @@
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=最近一次报工日期.工时日期"
|
||||
"SerializeProperty": "=生成日期"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "工时类型",
|
||||
"GUID": "117f7a1f-f51f-4722-ac8d-5b04732bc1b3"
|
||||
},
|
||||
"Value": "实际"
|
||||
}
|
||||
]
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0
|
||||
},
|
||||
"ID": "7a9cf1c828b741f689817615908b57ef"
|
||||
"ID": "a8eef77ada214e5eaaac3ce06da86e21"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "最近报工项目",
|
||||
"TableValue": {
|
||||
"TableName": "任务工时表",
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "47fae38f-8282-4267-a120-b4f55fcf8351",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "项目ID",
|
||||
"GUID": "9fe63173-5128-4215-acc4-6709548766a8"
|
||||
},
|
||||
"ColumnName": "项目ID"
|
||||
},
|
||||
{
|
||||
"GUID": "dd28102a-74ae-4cf7-8c23-8de534feda0c",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "项目ID",
|
||||
"GUID": "eb8227d3-06cb-489a-b20e-0ea5a64755ec",
|
||||
"RelationBinding": {
|
||||
"RelatedTable": "项目表",
|
||||
"RelatedColumn": "ID",
|
||||
"DisplayColumn": "项目名称"
|
||||
}
|
||||
},
|
||||
"ColumnName": "项目名称"
|
||||
},
|
||||
{
|
||||
"GUID": "4ec3aa4e-60f7-4f6a-b832-b2606b368a98",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "总工时",
|
||||
"GUID": "46a18c6e-820c-44e3-9b0e-78348a51130d"
|
||||
},
|
||||
"ColumnName": "总工时"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||||
"SubConditions": [
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "执行人",
|
||||
"GUID": "4b3d5f6f-19ec-4644-bc88-01914025be5c"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=汇报人"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "工时日期",
|
||||
"GUID": "d0d914d3-0167-477a-a9ee-1b7549dd00b0"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=生成日期"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "工时类型",
|
||||
"GUID": "117f7a1f-f51f-4722-ac8d-5b04732bc1b3"
|
||||
},
|
||||
"Value": "实际"
|
||||
}
|
||||
]
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0
|
||||
},
|
||||
"ID": "57e8988a8cf146c09fbc442a1304e5ef"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
"ConditionAndCommandPairList": [
|
||||
{
|
||||
"Condition": {
|
||||
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||||
"param": {
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=最近报工项目.Count"
|
||||
}
|
||||
},
|
||||
"value": "0",
|
||||
"compareType": 2
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
|
||||
"LoopInfo": {
|
||||
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
|
||||
"LoopCount": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=最近报工项目"
|
||||
},
|
||||
"LoopItemParamName": "当前项目"
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "项目报工信息",
|
||||
"TableValue": {
|
||||
"TableName": "任务工时表",
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "91a3ddbd-f42d-4b41-bc71-3ff3156bea16",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "执行内容",
|
||||
"GUID": "0a31eb22-29b7-4138-a6a0-98d920d0f715"
|
||||
},
|
||||
"ColumnName": "工作内容"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||||
"SubConditions": [
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "执行人",
|
||||
"GUID": "4b3d5f6f-19ec-4644-bc88-01914025be5c"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=汇报人"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "工时日期",
|
||||
"GUID": "d0d914d3-0167-477a-a9ee-1b7549dd00b0"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=生成日期"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "项目ID",
|
||||
"GUID": "d5d3e143-4db7-495f-973a-a6686207b7f3"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=当前项目.项目ID"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0
|
||||
},
|
||||
"ID": "64d4a898578641de9ada1dca4ae4a13f"
|
||||
},
|
||||
{
|
||||
"$type": "CollectionOperationKit.ServerSideObjectOp, CollectionOperationKit",
|
||||
"OperationParamaterPairs": [
|
||||
{
|
||||
"Name": "项目名称",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=当前项目.项目名称"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "内容列表",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=项目报工信息"
|
||||
}
|
||||
}
|
||||
],
|
||||
"OutParamaterName": "单个项目"
|
||||
},
|
||||
{
|
||||
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
|
||||
"InParamater": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=汇报列表"
|
||||
},
|
||||
"Operation": 4,
|
||||
"OperationParamaterAName": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=单个项目"
|
||||
},
|
||||
"OutParamaterName": "汇报列表"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "38ddba3f-374d-49ea-b83c-b932d1c43a9b"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "CollectionOperationKit.ServerSideObjectOp, CollectionOperationKit",
|
||||
"OperationParamaterPairs": [
|
||||
{
|
||||
"Name": "汇报日期",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=生成日期"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "汇报人",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=汇报人"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "总工时",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=总工时.总工时"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "汇报列表",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=汇报列表"
|
||||
}
|
||||
}
|
||||
],
|
||||
"OutParamaterName": "数据源"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "日报模板",
|
||||
"TableValue": {
|
||||
"TableName": "汇报模板",
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "d23ce3e3-df11-4598-802b-5ad9bac3d75f",
|
||||
"BindingInfo": {
|
||||
"TableName": "汇报模板",
|
||||
"ColumnName": "模板内容",
|
||||
"GUID": "1d9bbe66-ae19-4d86-95cf-dfa2e7e4e2a8"
|
||||
},
|
||||
"ColumnName": "模板内容"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "汇报模板",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "722f4877-7cb8-44dc-8b27-c9faa8948228"
|
||||
},
|
||||
"Value": "1"
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "68c66ce62ba04af99c39f92383b82296"
|
||||
},
|
||||
{
|
||||
"$type": "MustachePlugin.Render, MustachePlugin",
|
||||
"DataSrouce": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=日报模板.模板内容"
|
||||
},
|
||||
"UseCustomsDataHash": true,
|
||||
"CustomsDataHash": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=数据源"
|
||||
},
|
||||
"SetMaxRecursionDepth": 512,
|
||||
"ResultTo": "输出结果"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "成功",
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "生成文本",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=输出结果"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ReturnProperties": [
|
||||
|
||||
Reference in New Issue
Block a user