398 lines
22 KiB
JSON
398 lines
22 KiB
JSON
{
|
|
"$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.InvokeTriggerSaveData, ServerDesignerCommon",
|
|
"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
|
|
},
|
|
"TestData": "3"
|
|
}
|
|
]
|
|
},
|
|
"InvokeTriggerTestData": {
|
|
"$type": "Forguncy.SaveLoad.InvokeTriggerTestDataSaveData, ServerDesignerCommon",
|
|
"UserName": "Administrator"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"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": "e1510fbe-ab9b-43f5-af86-0eef127ba057",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "任务平行视图",
|
|
"ColumnName": "流程实例ID",
|
|
"GUID": "f19d1c8b-9d5f-4fdf-a477-8f3ddea24e13"
|
|
},
|
|
"ColumnName": "流程实例ID"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
|
|
"GUID": "77ea2eb4-7ba5-4ce3-93ed-d237a87199c8",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "任务平行视图",
|
|
"ColumnName": "流程实例ID",
|
|
"GUID": "000db7d7-be04-46a2-b0a4-32323df53552",
|
|
"RelationBinding": {
|
|
"$type": "ForguncyDataAccess.RelationBinding, ForguncyDataAccess",
|
|
"RelatedTable": "ACT_HI_PROCINST_View",
|
|
"RelatedColumn": "ID_",
|
|
"DisplayColumn": "END_TIME_"
|
|
}
|
|
},
|
|
"ColumnName": "结束时间"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
|
|
"GUID": "f91d7257-bb52-4aa6-87e5-8c4ccd5e2711",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "任务平行视图",
|
|
"ColumnName": "本任务实际工时",
|
|
"GUID": "c0022d05-3110-4121-86b9-695bbef4d0e7"
|
|
},
|
|
"ColumnName": "实际工时"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
|
|
"GUID": "bd67739a-91e9-44e0-a881-978d7b7c8629",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "任务平行视图",
|
|
"ColumnName": "任务名称",
|
|
"GUID": "59ac5607-9ff7-40d8-9882-cf82e180926f"
|
|
},
|
|
"ColumnName": "任务名称"
|
|
}
|
|
]
|
|
},
|
|
"SqlCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "任务平行视图",
|
|
"ColumnName": "ID",
|
|
"GUID": "776f034a-aa70-4001-af32-1aeb75baf29d"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=ID"
|
|
}
|
|
},
|
|
"TopCount": "1"
|
|
},
|
|
"ID": "30e05b334264445bbdd3f936aa37521b",
|
|
"BreakpointIdentity": "bc0c412e-9b70-4dde-a80e-b441de5d7c32"
|
|
},
|
|
{
|
|
"$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": "=任务.实际工时"
|
|
}
|
|
},
|
|
"value": "0"
|
|
},
|
|
"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": "任务表",
|
|
"UpdateType": "delete",
|
|
"ShowConfirm": true,
|
|
"ConfirmText": "您确定要删除吗?",
|
|
"RowsToUpdate": 1,
|
|
"RowsToUpdateCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "任务表",
|
|
"ColumnName": "ID",
|
|
"GUID": "19fa4119-38bc-4ff0-8b12-fa4323c7c445"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=ID"
|
|
}
|
|
},
|
|
"BreakpointIdentity": "08114c42-08d9-40f9-b4cc-1487132d5d14"
|
|
},
|
|
{
|
|
"$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": "68b3209b-faac-41f4-a455-289e1c561c90"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=ID"
|
|
}
|
|
},
|
|
"BreakpointIdentity": "f720c355-50e5-48d2-a786-0a851b268188"
|
|
},
|
|
{
|
|
"$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": "6bcdc22b-896b-48c1-b095-d16062d9998c"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=ID"
|
|
}
|
|
},
|
|
"BreakpointIdentity": "f018b0ca-a6dd-4aba-8c7c-313ee9dda26f"
|
|
},
|
|
{
|
|
"$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": "e7483d6d-5162-4038-9b9c-cbb9e2888043"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=ID"
|
|
}
|
|
},
|
|
"BreakpointIdentity": "3b0ebe3b-1365-43b7-9f67-1a7b798d2d89"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "0f1ce450-dc79-40f5-aba0-a0fd7dd7066a"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
|
"ParameterName": "子任务列表",
|
|
"TableValue": {
|
|
"$type": "Forguncy.Model.Commands.ParameterTableValue, ServerDesignerCommon",
|
|
"TableName": "任务表",
|
|
"BindingInfos": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
|
|
"GUID": "a007a0d8-1c34-431c-90c0-60b3ea318005",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "任务表",
|
|
"ColumnName": "ID",
|
|
"GUID": "e2484615-328c-427a-9f51-82990fe8c1c7"
|
|
},
|
|
"ColumnName": "ID"
|
|
}
|
|
]
|
|
},
|
|
"SqlCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "任务表",
|
|
"ColumnName": "父任务ID",
|
|
"GUID": "1b5ffdad-96a9-4758-aa3d-3df34e594df8"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=ID"
|
|
}
|
|
},
|
|
"NullFormulaValueQueryPolicy": 0,
|
|
"TopCount": "1"
|
|
},
|
|
"ID": "45978cfa1a404530a2bfeeb6b3695a89",
|
|
"BreakpointIdentity": "858ed5aa-058b-452e-b024-c11c65648af8"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
|
|
"LoopInfo": {
|
|
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
|
|
"LoopCount": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=子任务列表"
|
|
},
|
|
"LoopItemParamName": "Item"
|
|
},
|
|
"CommandList": {
|
|
"$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
|
|
"ServerCommandName": "递归删除任务",
|
|
"Parameters": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.RequestServerCommandParamBase, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
|
"ParamName": "ID",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Item.ID"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"ResultErrorCodeTo": {
|
|
"$type": "Forguncy.Common.FormulaCellLocation, ServerDesignerCommon",
|
|
"SerializeProperty": "code"
|
|
},
|
|
"ResultMessageTo": {
|
|
"$type": "Forguncy.Common.FormulaCellLocation, ServerDesignerCommon",
|
|
"SerializeProperty": "msg"
|
|
},
|
|
"RefreshAfterFinish": true,
|
|
"CheckDataValidation": true,
|
|
"BreakpointIdentity": "8dd3a2b5-b0fb-40b7-bda5-2db945b59cc9"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "28049296-356b-4e77-b623-5d9055f79da8"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "0",
|
|
"Message": "删除完成",
|
|
"BreakpointIdentity": "57c10cbe-d654-4602-90fc-0fe944824a2d"
|
|
}
|
|
]
|
|
},
|
|
"ID": "f684185b-6956-4b37-a672-0fdde1ea4cb1"
|
|
},
|
|
{
|
|
"$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": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=\"任务\"&任务.任务名称&\"存在报工,无法删除!\""
|
|
},
|
|
"BreakpointIdentity": "dd1bc83d-8fc6-49f9-a594-c7d96f196910"
|
|
}
|
|
]
|
|
},
|
|
"ID": "e269afff-21d7-46dc-903a-de7f8ca070c3"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "3fe89549-0c78-4236-bef0-cf2e9cdc75c5"
|
|
}
|
|
]
|
|
},
|
|
"ID": "aea81bb0-73a8-4c7c-bd12-ec15223cb5c7"
|
|
},
|
|
{
|
|
"$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": "0",
|
|
"Message": "任务不存在",
|
|
"BreakpointIdentity": "d1335c19-2a6c-40f4-9016-67722a31f907"
|
|
}
|
|
]
|
|
},
|
|
"ID": "e873eb23-434d-415f-bf2c-8bb032c77e60"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "a0cf96ae-dd51-42fa-a2ea-057de61dcb44"
|
|
}
|
|
]
|
|
}
|
|
} |