{ "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": "8688552c-438a-4e92-8534-ade47a605d23", "BindingInfo": { "TableName": "任务成员视图", "ColumnName": "项目ID", "GUID": "d380848b-6cf7-4968-8cc1-d1fb107dc7e0" }, "ColumnName": "项目ID" }, { "GUID": "4447b920-9417-47b6-b642-3dd7776915ce", "BindingInfo": { "TableName": "任务成员视图", "ColumnName": "任务ID", "GUID": "31dff7b3-c016-46c5-a2b9-ee2cd58a3c2c", "RelationBinding": { "RelatedTable": "任务表", "RelatedColumn": "ID", "DisplayColumn": "任务负责人" } }, "ColumnName": "任务负责人" }, { "GUID": "3b0d9427-f6ce-40d0-9244-313a80a90ab8", "BindingInfo": { "TableName": "任务成员视图", "ColumnName": "任务ID", "GUID": "a87ef941-f8c4-46de-a9ba-634c154289d0", "RelationBinding": { "RelatedTable": "任务表", "RelatedColumn": "ID", "DisplayColumn": "任务名称" } }, "ColumnName": "任务名称" }, { "GUID": "7cfca819-9a55-43ba-9bf8-75bf933ca9e6", "BindingInfo": { "TableName": "任务成员视图", "ColumnName": "任务成员", "GUID": "8294a32a-b958-40d1-970d-52e9c9cad3dc", "AttachType": { "$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess", "UserColumnAttachType": 1 } }, "ColumnName": "任务成员_全名" }, { "GUID": "0a0a4b2b-f488-4b28-aebc-8ecb7ddfe52e", "BindingInfo": { "TableName": "任务成员视图", "ColumnName": "总上报工时", "GUID": "dba32d71-85fc-4c2e-8d9d-b3d0438d3d32" }, "ColumnName": "总上报工时" }, { "GUID": "47a35914-5607-4522-9839-c2ee7963b428", "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": "b0170f11df6748a1aeecccb899c93700" }, { "$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": "3281f7d0-7720-42e8-8383-538dd42d60bf" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务成员.项目ID" } }, { "BindingInfo": { "TableName": "项目动态", "ColumnName": "项目动态", "GUID": "9abdf2df-4257-4d6a-8871-020798c5091a" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=\"任务[\"&任务成员.任务名称&\"]将\"&任务成员.任务成员_全名&\"移除\"" } }, { "BindingInfo": { "TableName": "项目动态", "ColumnName": "执行人", "GUID": "6f33a25e-4f4c-4b93-8c90-e400c01e144d" }, "Value": "%CurrentUser%" }, { "BindingInfo": { "TableName": "项目动态", "ColumnName": "类型", "GUID": "f41a02d0-d4ca-43b5-822f-c84e8fcf0bde" }, "Value": "2" } ] } ] }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "移除成功" } ], "ID": "74b06833-8af4-4999-99f0-462c4708cb94" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "不支持移除任务负责人" } ], "ID": "ac9d278f-4dfc-4f97-b2c0-e7abd4c3c959" } ] } ], "ID": "92533340-38d1-41f0-a02c-6b19e216ebcc" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "任务不存在" } ], "ID": "810a4f9d-819a-4235-bae8-3345704b6047" } ] } ] }