{ "Name": "后端新增项目反馈", "Enabled": true, "Triggers": [ { "$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon", "Parameters": [ { "Name": "项目ID", "DataValidationInfo": { "IgnoreBlank": false } }, { "Name": "关联任务", "DataValidationInfo": {} }, { "Name": "反馈类型", "DataValidationInfo": { "IgnoreBlank": false } }, { "Name": "功能", "DataValidationInfo": { "IgnoreBlank": false } }, { "Name": "内容", "DataValidationInfo": { "IgnoreBlank": false } }, { "Name": "提交人", "DataValidationInfo": { "IgnoreBlank": false } }, { "Name": "联系方式", "DataValidationInfo": {} } ] } ], "Commands": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "项目", "TableValue": { "TableName": "项目表", "TableValueType": 1, "BindingInfos": [ { "GUID": "b370116d-4f63-4cbb-80c2-68f245dc28d9", "BindingInfo": { "TableName": "项目表", "ColumnName": "项目名称", "GUID": "3b20d1db-744b-44c1-b375-dc719c94b921" }, "ColumnName": "项目名称" }, { "GUID": "5a7beaa3-e1ee-44eb-98ba-1a92be5bb564", "BindingInfo": { "TableName": "项目表", "ColumnName": "项目状态", "GUID": "45cf9a96-af0b-4a77-9d49-11592ff04081" }, "ColumnName": "项目状态" }, { "GUID": "b5a271f8-50ce-45fc-ad57-8eb7873e61c0", "BindingInfo": { "TableName": "项目表", "ColumnName": "项目经理", "GUID": "875ee18b-d7a8-42be-a90e-df248c82d1d5" }, "ColumnName": "项目经理" }, { "GUID": "f91312ec-3f3b-4547-80ac-c3edfd20f5e6", "BindingInfo": { "TableName": "项目表", "ColumnName": "开启反馈收集", "GUID": "dcd24bda-b2f8-443a-b3ab-6a63d9345551" }, "ColumnName": "开启反馈收集" } ], "SqlCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "项目表", "ColumnName": "ID", "GUID": "1323a917-a55e-4703-b4cc-50ef88f8a2a6" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目ID" } }, "NullFormulaValueQueryPolicy": 0, "TopCount": "1" }, "ID": "c90a96772daa49ae990d6f5df8c8454a" }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "反馈类型表", "TableValue": { "TableName": "反馈类型表", "TableValueType": 1, "BindingInfos": [ { "GUID": "ee4fd145-3619-4a45-abb8-085d29f204ad", "BindingInfo": { "TableName": "反馈类型表", "ColumnName": "反馈类型", "GUID": "4cf4c557-2d13-47a3-880a-11a97e9bee6e" }, "ColumnName": "反馈类型" } ], "SqlCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "反馈类型表", "ColumnName": "ID", "GUID": "25162896-537d-4f20-a57a-125d91133662" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=反馈类型" } }, "NullFormulaValueQueryPolicy": 0, "TopCount": "1" }, "ID": "7da56294e32d4f16b05b08a9d20f6318" }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "当前用户", "ParameterValue": "%CurrentUser%", "ID": "6f34c98eb09144edb73056dc0015ee3d" }, { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": [ { "Condition": { "$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess", "SubConditions": [ { "$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess", "SubConditions": [ { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目.项目状态" } }, "value": "1", "LeftBracket": 1 }, { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目.项目状态" } }, "value": "2", "RightBracket": 1 } ], "RelationType": 1 }, { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目.开启反馈收集" } }, "value": "1" } ] }, "CommandList": [ { "$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.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "任务", "TableValue": { "TableName": "任务表", "TableValueType": 1, "BindingInfos": [ { "GUID": "7716338b-c085-4f5d-b44e-a49ffc1caaec", "BindingInfo": { "TableName": "任务表", "ColumnName": "任务负责人", "GUID": "2cd0170f-294c-42f3-8454-9a4dce1688bf" }, "ColumnName": "执行者" } ], "SqlCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "任务表", "ColumnName": "ID", "GUID": "25ebd14a-0805-42d7-8e46-45e36e9f3d1e" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=关联任务" } }, "NullFormulaValueQueryPolicy": 0 }, "ID": "85f142d6c38a4037b771e2bc84d9bc7c" }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "处理人", "ParameterValue": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务.执行者" }, "ID": "92a3f08e5507416982e91ccbddaf0b4f" } ], "ID": "8232b7c1-1928-4689-a242-5f7c21a84f6a" }, { "CommandList": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "处理人", "ParameterValue": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目.项目经理" }, "ID": "06423efe302442ee9dbab0c23a871517" } ], "ID": "9bacb66d-a3c6-4b21-95ba-5aecac840dfc" } ] }, { "$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%" }, "CommandList": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "处理人", "ParameterValue": "Administrator", "ID": "4f2a2cbe59474a5889ba4e89ea6fe69f" } ], "ID": "76c26608-218a-4a8f-871b-0212d15d8480" } ] }, { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "需求反馈登记表", "UpdateType": "add", "ShowConfirm": false, "UpdateBindingValues": [ { "BindingInfo": { "TableName": "需求反馈登记表", "ColumnName": "项目ID", "GUID": "d757efb5-55c2-4da2-88e7-12fe614398d8" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目ID" } }, { "BindingInfo": { "TableName": "需求反馈登记表", "ColumnName": "标题", "GUID": "44870432-8021-4e5d-b86d-79ee9ba0ebca" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=提交人&\"提交的关于\"&关联任务&\"的\"&反馈类型表.反馈类型&\"类反馈\"" } }, { "BindingInfo": { "TableName": "需求反馈登记表", "ColumnName": "关联任务", "GUID": "2bdecf91-fc2f-4a57-9c6b-42c3733f31e2" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=关联任务" } }, { "BindingInfo": { "TableName": "需求反馈登记表", "ColumnName": "反馈类型", "GUID": "16968dc8-dd0c-490a-b862-38071cb49ad1" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=反馈类型" } }, { "BindingInfo": { "TableName": "需求反馈登记表", "ColumnName": "功能", "GUID": "cca4109b-6609-4416-87d4-9c0ffa440be6" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=功能" } }, { "BindingInfo": { "TableName": "需求反馈登记表", "ColumnName": "内容", "GUID": "2f513121-4f14-47c8-a233-a9d53df22c61" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=内容" } }, { "BindingInfo": { "TableName": "需求反馈登记表", "ColumnName": "提交人", "GUID": "1ad6dad9-e20a-49d8-a86b-d7f79e4bd6a1" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=提交人" } }, { "BindingInfo": { "TableName": "需求反馈登记表", "ColumnName": "联系方式", "GUID": "276750e4-a845-426b-a4e1-53f7f059c1b9" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=联系方式" } }, { "BindingInfo": { "TableName": "需求反馈登记表", "ColumnName": "处理人", "GUID": "926dbf44-b7dd-478d-a47f-c34f85c777c2" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=处理人" } }, { "BindingInfo": { "TableName": "需求反馈登记表", "ColumnName": "状态", "GUID": "ecead1f7-f73f-4359-b34f-2f47031ad64d" }, "Value": "0" } ], "ParamNameToSaveNewRowValue": "新反馈" }, { "$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": "8e8dac33-0e65-4a7e-96a6-9e4b1d23dee5" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=新反馈.ID" } }, "Initiator": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=IF(当前用户=\"\",\"Administrator\",当前用户)" }, "ReturnResultName": "发起流程结果" }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "感谢您的提交!", "CustomReturns": [ { "ReturnPropertyName": "反馈编号", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=新反馈.工单编号" } } ] } ], "ID": "73a56968-4362-480b-895a-410e84581b56" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "该项目暂时关闭反馈通道,请联系商务经理!", "CustomReturns": [ { "ReturnPropertyName": "反馈编号" } ] } ], "ID": "c32a5ee8-827e-49f0-94da-11c30588ed38" } ] } ], "ReturnProperties": [ { "Name": "反馈编号" } ] }