{ "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": "18d742a0-1f9c-4515-83de-98542a308d63", "BindingInfo": { "TableName": "任务成员视图", "ColumnName": "项目ID", "GUID": "d380848b-6cf7-4968-8cc1-d1fb107dc7e0" }, "ColumnName": "项目ID" }, { "GUID": "0f07bdfe-538c-4e7b-a654-ea805e8dcf7d", "BindingInfo": { "TableName": "任务成员视图", "ColumnName": "任务ID", "GUID": "31dff7b3-c016-46c5-a2b9-ee2cd58a3c2c", "RelationBinding": { "RelatedTable": "任务表", "RelatedColumn": "ID", "DisplayColumn": "任务负责人" } }, "ColumnName": "任务负责人" }, { "GUID": "5c503450-aa03-4e01-b786-a57d67811b3b", "BindingInfo": { "TableName": "任务成员视图", "ColumnName": "任务ID", "GUID": "a87ef941-f8c4-46de-a9ba-634c154289d0", "RelationBinding": { "RelatedTable": "任务表", "RelatedColumn": "ID", "DisplayColumn": "任务名称" } }, "ColumnName": "任务名称" }, { "GUID": "ddcb2f86-e097-452a-a95a-1fc4b4d737d2", "BindingInfo": { "TableName": "任务成员视图", "ColumnName": "任务成员", "GUID": "8294a32a-b958-40d1-970d-52e9c9cad3dc", "AttachType": { "$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess", "UserColumnAttachType": 1 } }, "ColumnName": "任务成员_全名" }, { "GUID": "453dec76-fca1-4435-bb95-a7dbe11e3c60", "BindingInfo": { "TableName": "任务成员视图", "ColumnName": "总上报工时", "GUID": "dba32d71-85fc-4c2e-8d9d-b3d0438d3d32" }, "ColumnName": "总上报工时" }, { "GUID": "bb0c4540-40c1-47c1-badb-38b6f093a061", "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": "29fa968c34f54c7aa31ce6646fe545fe" }, { "$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": "e80bb6a7-507c-4c3f-9b85-05c147cb816a" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务成员.项目ID" } }, { "BindingInfo": { "TableName": "项目动态", "ColumnName": "项目动态", "GUID": "cac4fd50-649d-4465-a3a1-314866faff5a" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=\"任务[\"&任务成员.任务名称&\"]将\"&任务成员.项目成员_全名&\"移除\"" } }, { "BindingInfo": { "TableName": "项目动态", "ColumnName": "执行人", "GUID": "372edd11-4047-4740-8deb-3945c5d4eeb1" }, "Value": "%CurrentUser%" } ] } ] }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "移除成功" } ], "ID": "d95e6537-2cbd-43e4-b82d-eadc2f64f27f" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "不支持移除任务负责人" } ], "ID": "bffbcccc-9c62-470f-97b1-f25a08fa404e" } ] } ], "ID": "ca029f8d-0e2a-42a9-8cab-a8b5defa9efb" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "任务不存在" } ], "ID": "1c92aad5-b853-4c68-bb90-22988d0fb3f5" } ] } ] }