{ "Name": "将反馈转为任务", "Enabled": true, "Triggers": [ { "$type": "Forguncy.SaveLoad.PostRequestTriggerSaveData, ServerDesignerCommon", "Permission": { "PermissionData": { "$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionData, Forguncy.RbacPermission.Core", "permissionResource": { "$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionResource, Forguncy.RbacPermission.Core" }, "permissionBindings": [ { "$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionBinding, Forguncy.RbacPermission.Core", "roleNames": [ "FGC_LoginUser" ] } ] } }, "Parameters": [ { "Name": "反馈ID", "DataValidationInfo": { "IgnoreBlank": false } } ] } ], "Commands": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "反馈单", "TableValue": { "TableName": "需求反馈登记表", "TableValueType": 1, "BindingInfos": [ { "GUID": "e6d64064-d638-44fb-b7b1-42bfce27a434", "BindingInfo": { "TableName": "需求反馈登记表", "ColumnName": "ID", "GUID": "6b974e9e-c1d9-4aa2-9a24-9959ba315e67" }, "ColumnName": "ID" }, { "GUID": "34419cac-16b0-429f-a130-5f9766e0a3cb", "BindingInfo": { "TableName": "需求反馈登记表", "ColumnName": "工单编号", "GUID": "8afc575b-94ff-49cf-8ef4-fce11cf0ee28" }, "ColumnName": "工单编号" }, { "GUID": "e5a58370-2922-430a-99c5-18f3cd7487dd", "BindingInfo": { "TableName": "需求反馈登记表", "ColumnName": "项目ID", "GUID": "0c6c6c2f-b82a-492f-8c90-516f03b8e245" }, "ColumnName": "项目ID" }, { "GUID": "e5f96a50-757b-4d5b-97f8-f455a7822135", "BindingInfo": { "TableName": "需求反馈登记表", "ColumnName": "标题", "GUID": "079f600a-a333-4a0f-909a-4c0fd1e38512" }, "ColumnName": "标题" }, { "GUID": "c22c18a1-e10e-4877-9bde-3575c8cc7d0e", "BindingInfo": { "TableName": "需求反馈登记表", "ColumnName": "内容", "GUID": "5e61b59a-7ff1-45de-94ad-053cc2b56ef2" }, "ColumnName": "内容" }, { "GUID": "5261aa36-dd03-4cac-a300-7b65e814a972", "BindingInfo": { "TableName": "需求反馈登记表", "ColumnName": "处理人", "GUID": "db3e1de0-d88b-454b-acc9-344313b00152" }, "ColumnName": "处理人" }, { "GUID": "82791eea-58e5-45f1-8ace-b0186d3f3238", "BindingInfo": { "TableName": "需求反馈登记表", "ColumnName": "提交人", "GUID": "c2d24265-6352-4221-ac7c-51082fad37b5" }, "ColumnName": "提交人" }, { "GUID": "3ef1678d-8187-4fad-b1e8-f18de7affd8f", "BindingInfo": { "TableName": "需求反馈登记表", "ColumnName": "状态", "GUID": "c51e7b37-d8a4-49b4-9eef-dab73d643cb6" }, "ColumnName": "状态" } ], "SqlCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "需求反馈登记表", "ColumnName": "ID", "GUID": "dbc0b422-795e-40a6-a425-7d4aa878dc25" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=反馈ID" } }, "TopCount": "1" }, "ID": "e181b74220c2473f94adb934dd662675" }, { "$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": "=反馈单" } }, "value": "%Null%", "compareType": 1 }, "CommandList": [ { "$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon", "CommandList": [ { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "任务表", "UpdateType": "add", "ShowConfirm": false, "UpdateBindingValues": [ { "BindingInfo": { "TableName": "任务表", "ColumnName": "项目ID", "GUID": "0df1a5e3-2b55-4692-8b3e-4040fb0c5c37" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=反馈单.项目ID" } }, { "BindingInfo": { "TableName": "任务表", "ColumnName": "层级", "GUID": "20650ab9-ee7b-4c0f-a1c7-60dc1fb4873a" }, "Value": "0" }, { "BindingInfo": { "TableName": "任务表", "ColumnName": "任务名称", "GUID": "3a0ff9c9-1f03-4a7f-9f30-6c4619fb3875" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=反馈单.标题" } }, { "BindingInfo": { "TableName": "任务表", "ColumnName": "任务负责人", "GUID": "0afe6750-8f03-4b2f-9b4a-fa3ad091fe51" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=反馈单.处理人" } }, { "BindingInfo": { "TableName": "任务表", "ColumnName": "开始时间", "GUID": "91313406-b27d-4b1d-adb4-498bc9063c4d" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=NOW()" } }, { "BindingInfo": { "TableName": "任务表", "ColumnName": "任务说明", "GUID": "640d3cba-7afc-428d-89aa-be3d8efca453" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=反馈单.内容" } }, { "BindingInfo": { "TableName": "任务表", "ColumnName": "备注", "GUID": "ca0d1041-a9d8-4e21-9a7e-ac49491132b2" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=\"由工单编号\"&反馈单.工单编号&\"创建\"" } }, { "BindingInfo": { "TableName": "任务表", "ColumnName": "任务预算工时", "GUID": "40fccb06-7dfa-4f4f-bdfe-005c4dc22548" }, "Value": "0" }, { "BindingInfo": { "TableName": "任务表", "ColumnName": "进度", "GUID": "17c7f61e-22cb-4ef4-abdd-c05e6b6acd91" }, "Value": "0" }, { "BindingInfo": { "TableName": "任务表", "ColumnName": "收集反馈", "GUID": "7f502b38-911c-443a-a39b-5336d9753e2f" }, "Value": "1" }, { "BindingInfo": { "TableName": "任务表", "ColumnName": "任务状态", "GUID": "81736bf5-08bc-41c6-aa1c-4cb915c9bc1c" }, "Value": "0" }, { "BindingInfo": { "TableName": "任务表", "ColumnName": "功能名称", "GUID": "f081162a-cd2f-458a-a6e1-ab1e149cc984" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=反馈单.标题" } }, { "BindingInfo": { "TableName": "任务表", "ColumnName": "功能描述", "GUID": "d5d49936-1146-4fcc-971c-4e2e7699f394" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=反馈单.内容" } } ], "ParamNameToSaveNewRowValue": "新任务" }, { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "需求反馈登记表", "ShowConfirm": false, "RowsToUpdate": 1, "RowsToUpdateCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "需求反馈登记表", "ColumnName": "ID", "GUID": "aa0ffe9d-de6e-4b12-92f7-de8dcb741bbe" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=反馈单.ID" } }, "UpdateBindingValues": [ { "BindingInfo": { "TableName": "需求反馈登记表", "ColumnName": "关联任务", "GUID": "ab6b52ad-b3f2-4557-886d-d7569784d047" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=新任务.ID" } } ] } ] }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "创建任务完成,请补充任务信息并发起流程", "CustomReturns": [ { "ReturnPropertyName": "任务ID", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=新任务.ID" } } ] }, { "$type": "Forguncy.Model.ProcessStartCommand, ServerDesignerCommon", "ProcessDefinitionResourceName": "新增任务流程", "ProcessInstanceName": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=\"从工单编号\"&反馈单.工单编号&\"分配的任务\"" }, "SelectedTable": "任务表", "RowsToUpdate": 1, "RowsToUpdateCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "任务表", "ColumnName": "ID", "GUID": "afc188a8-6905-445e-bda8-be96313844da" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=新任务.ID" } }, "ReturnResultName": "发起流程结果", "Disabled": true }, { "$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": "=发起流程结果" } }, "value": "%Null%", "compareType": 1 }, "CommandList": [], "ID": "01a7de68-9d97-486d-b31e-631580df44d0" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "创建任务完成,请手动进行提交审批", "CustomReturns": [ { "ReturnPropertyName": "任务ID" } ] } ], "ID": "f5ecdb28-8076-4cea-9e32-0543d9858c8c" } ], "Disabled": true } ], "ID": "94507538-cf9b-4531-83ab-47d292cca70e" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "反馈单不存在", "CustomReturns": [ { "ReturnPropertyName": "任务ID" } ] } ], "ID": "2b968801-d3a6-47f1-87e1-44517ede6ee6" } ] } ], "ReturnProperties": [ { "Name": "任务ID" } ] }