{ "$type": "Forguncy.SaveLoad.ServerCommandSaveData, ServerDesignerCommon", "Name": "删除请款单", "Description": "删除请款单、并重置对应工时记录", "Enabled": true, "Triggers": { "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.TriggerSaveDataBase, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.SaveLoad.PostRequestTriggerSaveData, ServerDesignerCommon", "Permission": { "$type": "Forguncy.SaveLoad.ServerCommandPermissionSaveData, ServerDesignerCommon", "PermissionData": { "$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionData, Forguncy.RbacPermission.Core", "permissionResource": { "$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionResource, Forguncy.RbacPermission.Core" }, "permissionBindings": { "$type": "System.Collections.Generic.List`1[[Forguncy.RbacPermission.Core.Impl.ServerCommand.IServerCommandPermissionBinding, Forguncy.RbacPermission.Core]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionBinding, Forguncy.RbacPermission.Core", "roleNames": { "$type": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib]], System.Private.CoreLib", "$values": [ "FGC_LoginUser" ] } } ] } } }, "Parameters": { "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon", "Name": "请款单ID", "DataValidationInfo": { "$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon", "IgnoreBlank": false } } ] } } ] }, "Commands": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "请款单", "TableValue": { "$type": "Forguncy.Model.Commands.ParameterTableValue, ServerDesignerCommon", "TableName": "收益请款单表", "TableValueType": 1, "BindingInfos": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon", "GUID": "8682e42f-40e1-4d69-bf63-57c534fea59f", "BindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "收益请款单表", "ColumnName": "流程实例ID", "GUID": "6d1084b0-f563-41c1-961f-0648e641ede7" }, "ColumnName": "流程实例ID" }, { "$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon", "GUID": "c3f46a55-01b8-4a3d-96bc-57a4fff7d1e3", "BindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "收益请款单表", "ColumnName": "状态", "GUID": "8917213e-ecad-4055-bf5c-75b1b1745dee" }, "ColumnName": "状态" }, { "$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon", "GUID": "767bd869-cf60-481a-8a76-59f3c92128f5", "BindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "收益请款单表", "ColumnName": "付款凭证ID", "GUID": "a46a758b-1719-4353-847b-60e45db768d5" }, "ColumnName": "付款凭证ID" } ] }, "SqlCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "收益请款单表", "ColumnName": "ID", "GUID": "9260f94d-f521-47a6-9a33-cfb4782dfcd8" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=请款单ID" } }, "TopCount": "1" }, "ID": "c40e234c4d1d476d8880177218ef5549", "BreakpointIdentity": "02482e13-4ce3-4f73-8a0d-4fb13054e883" }, { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", "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": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", "Condition": { "$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess", "SubConditions": { "$type": "System.Collections.Generic.List`1[[ForguncyDataAccess.ISqlCondition, ForguncyDataAccess]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=请款单.状态" } }, "value": "4", "compareType": 1 }, { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=请款单.付款凭证ID" } }, "value": "%Null%" } ] } }, "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon", "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "任务工时表", "ShowConfirm": false, "RowsToUpdate": 1, "RowsToUpdateCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "任务工时表", "ColumnName": "请款单ID", "GUID": "7e4fd062-7a6b-4458-ad29-591d64c14167" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=请款单ID" } }, "UpdateBindingValues": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", "BindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "任务工时表", "ColumnName": "请款单ID", "GUID": "7293b64a-dfba-4f28-9797-1d95b9bfe45f" }, "Value": "%Null%" } ] }, "BreakpointIdentity": "2f09731f-73fc-453e-8801-78d4f57865b7" }, { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "收益请款单表", "UpdateType": "delete", "ShowConfirm": true, "ConfirmText": "您确定要删除吗?", "RowsToUpdate": 1, "RowsToUpdateCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "收益请款单表", "ColumnName": "ID", "GUID": "d81b95f7-f049-4617-9f43-edea4d2bf48e" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=请款单ID" } }, "BreakpointIdentity": "a69eca80-b5a5-4d40-bc29-71bcd0e91890" }, { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "付款凭证表", "UpdateType": "delete", "ShowConfirm": true, "ConfirmText": "您确定要删除吗?", "RowsToUpdate": 1, "RowsToUpdateCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "付款凭证表", "ColumnName": "ID", "GUID": "9ecff31a-0180-4597-accf-c1cd00144147" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=请款单.付款凭证ID" } }, "BreakpointIdentity": "114a082f-ddae-449a-b113-a90491da4c6f" } ] }, "BreakpointIdentity": "96af14bf-0e0e-4f35-9d0b-131b8248431d" }, { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", "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": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ProcessInstanceCommand, ServerDesignerCommon", "ProcessInstanceId": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=请款单.流程实例ID" }, "OperateType": 301, "BreakpointIdentity": "c1e2ee5b-a10c-4030-8acf-02591f44d7c6" } ] }, "ID": "5749b1ee-0715-4e39-b799-052b88052d85" } ] }, "BreakpointIdentity": "44ebbc97-1c30-4bf7-a82e-11741d79f584" }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "请款单已删除", "BreakpointIdentity": "b697007f-69a8-49c3-9631-98c0573f93fc" } ] }, "ID": "d770c5cc-4b0f-4eba-96af-15434ff06899" }, { "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "请款单未终止或已结款,无法撤销!", "BreakpointIdentity": "e42f8da9-90c5-458d-bc5c-6e29370f4c33" } ] }, "ID": "f002daee-f3e9-48e8-b0f4-e08d242b937a" } ] }, "BreakpointIdentity": "9826e57a-6482-4971-ae16-cb05c062d2b1" } ] }, "ID": "f9749ff5-fa02-471f-ad5e-934ae41f0fb3" }, { "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "请款单不存在", "BreakpointIdentity": "03a2521c-25ef-41b2-b708-e3c23a16d9f9" } ] }, "ID": "f5a19fb0-1e75-42f3-8eee-6a39a2f8f444" } ] }, "BreakpointIdentity": "c7a6c41f-f0a3-4bd0-bb5f-652957320467" } ] } }