{ "Name": "删除任务成员", "Enabled": true, "Triggers": [ { "$type": "Forguncy.SaveLoad.EndDBDeleteTriggerSaveData, ServerDesignerCommon", "DataParamName": "变更数据", "TableNameParamName": "数据表名", "PrimaryKeyParamName": "主键", "OperatorParamName": "操作人", "OperationTimeParamName": "操作时间", "SelectTables": [ "任务成员表" ] } ], "Commands": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "任务成员表", "TableValue": { "TableName": "任务成员表", "TableValueType": 1, "BindingInfos": [ { "GUID": "7a00c483-c53d-4472-9d4d-7e8da8d98cda", "BindingInfo": { "TableName": "任务成员表", "ColumnName": "任务ID", "GUID": "11a01503-503d-4cd4-b030-1533e813344c", "RelationBinding": { "RelatedTable": "任务平行视图", "RelatedColumn": "ID", "DisplayColumn": "版本", "NextRelationBinding": { "RelatedTable": "项目版本", "RelatedColumn": "ID", "DisplayColumn": "仓库ID" } } }, "ColumnName": "仓库ID" }, { "GUID": "f18d9de6-db9d-41f4-9417-7b1a731832ee", "BindingInfo": { "TableName": "任务成员表", "ColumnName": "任务成员", "GUID": "8fd1a862-1a40-456c-b747-95f2cc5736e9" }, "ColumnName": "任务成员" }, { "GUID": "fe139fc4-ecec-4fcd-a0c7-a551eea755d9", "BindingInfo": { "TableName": "任务成员表", "ColumnName": "任务ID", "GUID": "a4b5128a-7fa3-4976-8afc-3fcd3d70495e", "RelationBinding": { "RelatedTable": "任务平行视图", "RelatedColumn": "ID", "DisplayColumn": "版本" } }, "ColumnName": "版本" } ], "SqlCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "任务成员表", "ColumnName": "ID", "GUID": "baaaa696-72d5-4465-bb10-fcd820685a6d" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=主键.ID" } }, "NullFormulaValueQueryPolicy": 0, "TopCount": "1" }, "ID": "45a9bcad07f04bfa8238d483a1b77a25" }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "其他地方是否加入", "TableValue": { "TableName": "任务成员表", "TableValueType": 3, "SqlCondition": { "$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess", "SubConditions": [ { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "任务成员表", "ColumnName": "任务ID", "GUID": "5b359ad4-e3f0-4d78-9a0f-e2b75b87d3ab", "RelationBinding": { "RelatedTable": "任务平行视图", "RelatedColumn": "ID", "DisplayColumn": "版本", "NextRelationBinding": { "RelatedTable": "项目版本", "RelatedColumn": "ID", "DisplayColumn": "仓库ID" } } }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务成员表.仓库ID" } }, { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "任务成员表", "ColumnName": "任务成员", "GUID": "354f7bc1-a0ba-4b5a-a78d-70f253c97975" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务成员表.任务成员" } }, { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "CompareType": 1, "ColumnBindingInfo": { "TableName": "任务成员表", "ColumnName": "ID", "GUID": "0bb67d92-134d-497e-bd52-9e2ec276f5e7" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=主键.ID" } } ] }, "NullFormulaValueQueryPolicy": 0 }, "ID": "1d5b3aede57d4506b9efea90dcc85b85" }, { "$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": "=任务成员表.仓库ID" } }, "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": "0" }, "CommandList": [ { "$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon", "ServerCommandName": "增加仓库成员", "Parameters": [ { "$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon", "ParamName": "仓库ID", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务成员表.仓库ID" } }, { "$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon", "ParamName": "成员", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务成员表.任务成员" } } ], "ResultErrorCodeTo": { "SerializeProperty": "code" }, "ResultMessageTo": { "SerializeProperty": "msg" }, "RefreshAfterFinish": true, "CheckDataValidation": true }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=code" }, "Message": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=msg" } } ], "ID": "51337041-0f56-4b56-9763-a5d4a7272c98" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "尚有其他任务中加入该仓库,取消移除" } ], "ID": "4e23ca46-d655-4f92-8bc6-8e8b7c1f3c8d" } ] } ], "ID": "f4acecd3-cf02-455f-9887-1f593780beae" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "该任务版本未绑定仓库" } ], "ID": "24439c9f-27e9-4083-9d26-b6196c43a11d" } ] } ] }