{ "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": "1ec9b346-4be7-4973-a589-2c61be43ab5f", "BindingInfo": { "TableName": "任务成员视图", "ColumnName": "项目ID", "GUID": "d380848b-6cf7-4968-8cc1-d1fb107dc7e0" }, "ColumnName": "项目ID" }, { "GUID": "4a18f0ae-2378-4a51-8832-c242685d4ba5", "BindingInfo": { "TableName": "任务成员视图", "ColumnName": "任务ID", "GUID": "31dff7b3-c016-46c5-a2b9-ee2cd58a3c2c", "RelationBinding": { "RelatedTable": "任务表", "RelatedColumn": "ID", "DisplayColumn": "任务负责人" } }, "ColumnName": "任务负责人" }, { "GUID": "46595af0-daff-4ad5-badc-18a8c1f8fea9", "BindingInfo": { "TableName": "任务成员视图", "ColumnName": "任务ID", "GUID": "a87ef941-f8c4-46de-a9ba-634c154289d0", "RelationBinding": { "RelatedTable": "任务表", "RelatedColumn": "ID", "DisplayColumn": "任务名称" } }, "ColumnName": "任务名称" }, { "GUID": "57bd4410-7c09-435d-8f43-7544f74f586b", "BindingInfo": { "TableName": "任务成员视图", "ColumnName": "任务成员", "GUID": "8294a32a-b958-40d1-970d-52e9c9cad3dc", "AttachType": { "$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess", "UserColumnAttachType": 1 } }, "ColumnName": "任务成员_全名" }, { "GUID": "ba41db55-c5dc-4061-b35d-85573958aa30", "BindingInfo": { "TableName": "任务成员视图", "ColumnName": "总上报工时", "GUID": "dba32d71-85fc-4c2e-8d9d-b3d0438d3d32" }, "ColumnName": "总上报工时" }, { "GUID": "f44e17c9-9c4e-4ef2-ab01-1038098b8bda", "BindingInfo": { "TableName": "任务成员视图", "ColumnName": "任务成员", "GUID": "484628d2-81b9-4594-82d5-38ee3da49a80" }, "ColumnName": "任务成员" } ], "SqlCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "任务成员视图", "ColumnName": "ID", "GUID": "9a39aa93-9e42-44e5-91d3-99b55100067a" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务成员ID" } }, "NullFormulaValueQueryPolicy": 0, "TopCount": "1" }, "ID": "9433dbc6497445298788ebd40c15ed51" }, { "$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.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": [ { "Condition": { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务成员.任务成员" } }, "value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务成员.任务负责人" }, "compareType": 1 }, "CommandList": [ { "$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon", "CommandList": [ { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "任务成员表", "UpdateType": "delete", "ShowConfirm": true, "ConfirmText": "您确定要删除吗?", "RowsToUpdate": 1, "RowsToUpdateCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "任务成员表", "ColumnName": "ID", "GUID": "6de0f75d-edb1-4e4c-971f-035f20cb81a5" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务成员ID" } } }, { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "项目动态", "UpdateType": "add", "ShowConfirm": false, "UpdateBindingValues": [ { "BindingInfo": { "TableName": "项目动态", "ColumnName": "项目ID", "GUID": "409761db-b656-434f-a551-fcbe0b40f522" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务成员.项目ID" } }, { "BindingInfo": { "TableName": "项目动态", "ColumnName": "项目动态", "GUID": "ce646a8c-b92a-4f8e-874d-300bc5ad55a5" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=\"任务[\"&任务成员.任务名称&\"]将\"&任务成员.任务成员_全名&\"移除\"" } }, { "BindingInfo": { "TableName": "项目动态", "ColumnName": "执行人", "GUID": "a3eb84fe-db68-4722-ac19-e6beaae888fe" }, "Value": "%CurrentUser%" } ] } ] }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "移除成功" } ], "ID": "969cd99d-ea1f-4624-9436-631cd546b2df" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "不支持移除任务负责人" } ], "ID": "a1147a3c-6300-456e-8214-d9682d8856e8" } ] } ], "ID": "0ffaf40b-ef55-4c3b-847e-4e0fce611380" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "任务不存在" } ], "ID": "8396279e-f6aa-47a9-baf5-823e1272b7ba" } ] } ] }