{"Message":"优化删除工时的逻辑","MessageType":2,"Modules":[{"State":1,"Type":1,"Name":"PCPage/任务-工时"},{"State":3,"Type":15,"Name":"ServerCommand/删除指定工时记录"}],"Version":"v1"}
This commit is contained in:
255
ServerCommands/工时/删除指定工时记录.json
Normal file
255
ServerCommands/工时/删除指定工时记录.json
Normal file
@@ -0,0 +1,255 @@
|
||||
{
|
||||
"$type": "Forguncy.SaveLoad.ServerCommandSaveData, ServerDesignerCommon",
|
||||
"Name": "删除指定工时记录",
|
||||
"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": "8cb2d082-9177-4961-b9f0-4f74fe93ae21",
|
||||
"BindingInfo": {
|
||||
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "请款单ID",
|
||||
"GUID": "110942a9-ed84-412e-8d9f-61c23b3be90d"
|
||||
},
|
||||
"ColumnName": "请款单ID"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
|
||||
"GUID": "4dbdb3c8-735e-4f36-96a4-99e46cb18a10",
|
||||
"BindingInfo": {
|
||||
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "请款单ID",
|
||||
"GUID": "c6a25c68-f5a0-4df6-aefb-3190dc310229",
|
||||
"RelationBinding": {
|
||||
"$type": "ForguncyDataAccess.RelationBinding, ForguncyDataAccess",
|
||||
"RelatedTable": "收益请款单表",
|
||||
"RelatedColumn": "ID",
|
||||
"DisplayColumn": "状态"
|
||||
}
|
||||
},
|
||||
"ColumnName": "状态"
|
||||
}
|
||||
]
|
||||
},
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "4e964c2d-d280-4120-9b84-3fdb236ba791"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=报工记录ID"
|
||||
}
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "64833fdb10c6450387ee29f839fbc214",
|
||||
"BreakpointIdentity": "7c6e2f4f-a916-425d-a0f0-5b6ff2c86a57"
|
||||
},
|
||||
{
|
||||
"$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": "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.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": "4",
|
||||
"compareType": 1
|
||||
},
|
||||
"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": "3f8c8853-8f2c-41ee-9140-0a08ddfbb358"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ID": "b717d9d3-09d6-431b-8198-2f4fa0c958c1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"BreakpointIdentity": "047829f5-3c10-4e2a-9a35-8f1056511f82"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ID": "9c3c92ab-3178-4094-8fb9-ce219643c6e0"
|
||||
}
|
||||
]
|
||||
},
|
||||
"BreakpointIdentity": "16fd8378-9979-4601-ba3d-f81d7d760a07"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "任务工时表",
|
||||
"UpdateType": "delete",
|
||||
"ShowConfirm": false,
|
||||
"RowsToUpdate": 1,
|
||||
"RowsToUpdateCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "c931e430-8dc5-4272-977d-030a1c5f1931"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=报工记录ID"
|
||||
}
|
||||
},
|
||||
"BreakpointIdentity": "3ca3ebcf-6629-4295-bfb0-6f8e0bdd203c"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "删除成功",
|
||||
"BreakpointIdentity": "3fb8c5e1-e89f-45e9-96f8-b2fa06dd77ac"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ID": "058fd8d4-9d99-46a8-bb29-b1638b5ee6aa"
|
||||
},
|
||||
{
|
||||
"$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": "a5c96077-c61d-46ac-8816-fb9914b4c302"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ID": "f3b8d30e-8823-4b0c-82a9-0242f9869b61"
|
||||
}
|
||||
]
|
||||
},
|
||||
"BreakpointIdentity": "a785b493-bc6c-4aa3-8e34-15950a07e61b"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ReturnProperties": {
|
||||
"$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.ReturnPropertySaveData, ServerDesignerCommon]], System.Private.CoreLib",
|
||||
"$values": []
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user