{ "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", "BreakpointIdentity": "abc268d2-acc0-458e-ab2d-3cc9fdb81da4" }, { "$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", "BreakpointIdentity": "51db7bfe-2e4e-4420-9d19-597b8e779315" }, { "$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, "BreakpointIdentity": "44804395-1255-4a45-abdf-c5e537923ca7" }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=code" }, "Message": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=msg" }, "BreakpointIdentity": "db491052-c8f7-4211-9ca4-bd3366b239ba" } ], "ID": "250eaeee-b14a-4adb-9e31-0f1d7a645121" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "尚有其他任务中加入该仓库,取消移除", "BreakpointIdentity": "1909c414-2d46-4b08-9b8b-800c32ad0ffa" } ], "ID": "c00f3cb6-67ce-4e51-8983-c23dafed0b71" } ], "BreakpointIdentity": "6a5fde04-fa76-4ac4-baa1-613be465b662" } ], "ID": "9a7e17be-c8dd-4493-9a0e-fce7ead3cab2" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "该任务版本未绑定仓库", "BreakpointIdentity": "0446b740-8273-4664-834f-5dcf006d7a91" } ], "ID": "3c04bab6-99e7-4c0a-baf8-ecf99e8201aa" } ], "BreakpointIdentity": "d2ad281c-7f08-45f1-bbb3-88a9c8e72a7d" } ] }