{"Message":"1","MessageType":2,"Modules":[{"State":1,"Type":15,"Name":"ServerCommand/删除任务"},{"State":1,"Type":27,"Name":"ServerCommandPrivate/递归删除任务"}],"Version":"v1"}
This commit is contained in:
@@ -2082,29 +2082,11 @@
|
||||
},
|
||||
{
|
||||
"ModuleName": "ServerCommand/删除任务",
|
||||
"State": 1,
|
||||
"LockedBy": {
|
||||
"UserName": "超哥",
|
||||
"Email": "phoben@qq.com"
|
||||
},
|
||||
"LockDateTime": "2024-06-21T15:14:15.9634472+08:00",
|
||||
"ModuleType": 15,
|
||||
"ToRemoveFiles": [
|
||||
"ServerCommands\\任务\\删除任务.json"
|
||||
]
|
||||
"ModuleType": 15
|
||||
},
|
||||
{
|
||||
"ModuleName": "ServerCommandPrivate/递归删除任务",
|
||||
"State": 1,
|
||||
"LockedBy": {
|
||||
"UserName": "超哥",
|
||||
"Email": "phoben@qq.com"
|
||||
},
|
||||
"LockDateTime": "2024-06-21T15:14:37.0864397+08:00",
|
||||
"ModuleType": 27,
|
||||
"ToRemoveFiles": [
|
||||
"ServerCommands\\任务\\递归删除任务.json"
|
||||
]
|
||||
"ModuleType": 27
|
||||
},
|
||||
{
|
||||
"ModuleName": "TaskScheduler/新增任务事件",
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "7c9bda40-0a4a-4559-92ce-5907bb66e66a"
|
||||
"ID": "8da72326-00ca-4f9b-ab61-1a3df0ec921c"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -174,12 +174,12 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "17b821a5-c0a6-4672-81eb-9981faef639d"
|
||||
"ID": "23095e3a-37c2-4895-97aa-20228af4490d"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "466dc6bc-bb11-46c8-a79f-c4325930cea3"
|
||||
"ID": "8d8a39a1-bd0f-47aa-bce5-d358136756b3"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -20,163 +20,329 @@
|
||||
}
|
||||
],
|
||||
"Commands": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "任务表",
|
||||
"UpdateType": "delete",
|
||||
"ShowConfirm": true,
|
||||
"ConfirmText": "您确定要删除吗?",
|
||||
"RowsToUpdate": 1,
|
||||
"RowsToUpdateCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "19fa4119-38bc-4ff0-8b12-fa4323c7c445"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=ID"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "任务工时表",
|
||||
"UpdateType": "delete",
|
||||
"ShowConfirm": true,
|
||||
"ConfirmText": "您确定要删除吗?",
|
||||
"RowsToUpdate": 1,
|
||||
"RowsToUpdateCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "任务ID",
|
||||
"GUID": "68b3209b-faac-41f4-a455-289e1c561c90"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=ID"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "任务成员表",
|
||||
"UpdateType": "delete",
|
||||
"ShowConfirm": true,
|
||||
"ConfirmText": "您确定要删除吗?",
|
||||
"RowsToUpdate": 1,
|
||||
"RowsToUpdateCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务成员表",
|
||||
"ColumnName": "任务ID",
|
||||
"GUID": "6bcdc22b-896b-48c1-b095-d16062d9998c"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=ID"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "任务评论表",
|
||||
"UpdateType": "delete",
|
||||
"ShowConfirm": true,
|
||||
"ConfirmText": "您确定要删除吗?",
|
||||
"RowsToUpdate": 1,
|
||||
"RowsToUpdateCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务评论表",
|
||||
"ColumnName": "任务ID",
|
||||
"GUID": "e7483d6d-5162-4038-9b9c-cbb9e2888043"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=ID"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "子任务列表",
|
||||
"ParameterName": "任务",
|
||||
"TableValue": {
|
||||
"TableName": "任务表",
|
||||
"TableName": "任务平行视图",
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "9d359938-d06a-4b4b-92bd-daa4612739e6",
|
||||
"GUID": "9d88d3c1-4643-4d96-8f33-49512561ee79",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "e2484615-328c-427a-9f51-82990fe8c1c7"
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "流程实例ID",
|
||||
"GUID": "f19d1c8b-9d5f-4fdf-a477-8f3ddea24e13"
|
||||
},
|
||||
"ColumnName": "ID"
|
||||
"ColumnName": "流程实例ID"
|
||||
},
|
||||
{
|
||||
"GUID": "f4c3fd5d-6d03-4d40-9a73-27b548486406",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "流程实例ID",
|
||||
"GUID": "000db7d7-be04-46a2-b0a4-32323df53552",
|
||||
"RelationBinding": {
|
||||
"RelatedTable": "ACT_HI_PROCINST_View",
|
||||
"RelatedColumn": "ID_",
|
||||
"DisplayColumn": "END_TIME_"
|
||||
}
|
||||
},
|
||||
"ColumnName": "结束时间"
|
||||
},
|
||||
{
|
||||
"GUID": "bcf02a5e-e6f8-4407-b818-cc1a08471df8",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "实际工时",
|
||||
"GUID": "57e7a016-9672-40f2-9096-4c64d4599187"
|
||||
},
|
||||
"ColumnName": "实际工时"
|
||||
},
|
||||
{
|
||||
"GUID": "6888a3d5-f8df-4466-a550-9a383f3cc7ab",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "任务名称",
|
||||
"GUID": "59ac5607-9ff7-40d8-9882-cf82e180926f"
|
||||
},
|
||||
"ColumnName": "任务名称"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "父任务ID",
|
||||
"GUID": "1b5ffdad-96a9-4758-aa3d-3df34e594df8"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=ID"
|
||||
}
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "4becb21f6fbb40ea8c0fd8f9b369e678"
|
||||
"ID": "a2c6055383914bd1b0a5490b85f75bbb"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
|
||||
"LoopInfo": {
|
||||
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
|
||||
"LoopCount": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=子任务列表"
|
||||
},
|
||||
"LoopItemParamName": "Item"
|
||||
},
|
||||
"CommandList": [
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
"ConditionAndCommandPairList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
|
||||
"ServerCommandName": "递归删除任务",
|
||||
"Parameters": [
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||||
"ParamName": "ID",
|
||||
"Value": {
|
||||
"Condition": {
|
||||
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||||
"param": {
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=Item.ID"
|
||||
"SerializeProperty": "=任务"
|
||||
}
|
||||
},
|
||||
"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.ConditionCommand, ServerDesignerCommon",
|
||||
"ConditionAndCommandPairList": [
|
||||
{
|
||||
"Condition": {
|
||||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||||
"SubConditions": [
|
||||
{
|
||||
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||||
"param": {
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务.流程实例ID"
|
||||
}
|
||||
},
|
||||
"value": "%Null%",
|
||||
"compareType": 1
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||||
"param": {
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务.结束时间"
|
||||
}
|
||||
},
|
||||
"value": "%Null%",
|
||||
"compareType": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ProcessInstanceCommand, ServerDesignerCommon",
|
||||
"ProcessInstanceId": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务.流程实例ID"
|
||||
},
|
||||
"OperateType": 301
|
||||
}
|
||||
],
|
||||
"ID": "b9d47ec8-473f-4233-ba47-f78b1260e6c7"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "任务表",
|
||||
"UpdateType": "delete",
|
||||
"ShowConfirm": true,
|
||||
"ConfirmText": "您确定要删除吗?",
|
||||
"RowsToUpdate": 1,
|
||||
"RowsToUpdateCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "19fa4119-38bc-4ff0-8b12-fa4323c7c445"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=ID"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "任务工时表",
|
||||
"UpdateType": "delete",
|
||||
"ShowConfirm": true,
|
||||
"ConfirmText": "您确定要删除吗?",
|
||||
"RowsToUpdate": 1,
|
||||
"RowsToUpdateCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "任务ID",
|
||||
"GUID": "68b3209b-faac-41f4-a455-289e1c561c90"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=ID"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "任务成员表",
|
||||
"UpdateType": "delete",
|
||||
"ShowConfirm": true,
|
||||
"ConfirmText": "您确定要删除吗?",
|
||||
"RowsToUpdate": 1,
|
||||
"RowsToUpdateCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务成员表",
|
||||
"ColumnName": "任务ID",
|
||||
"GUID": "6bcdc22b-896b-48c1-b095-d16062d9998c"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=ID"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "任务评论表",
|
||||
"UpdateType": "delete",
|
||||
"ShowConfirm": true,
|
||||
"ConfirmText": "您确定要删除吗?",
|
||||
"RowsToUpdate": 1,
|
||||
"RowsToUpdateCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务评论表",
|
||||
"ColumnName": "任务ID",
|
||||
"GUID": "e7483d6d-5162-4038-9b9c-cbb9e2888043"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=ID"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "子任务列表",
|
||||
"TableValue": {
|
||||
"TableName": "任务表",
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "39fa2481-638c-4b3e-a20a-5a4fdddc8f1a",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "e2484615-328c-427a-9f51-82990fe8c1c7"
|
||||
},
|
||||
"ColumnName": "ID"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "父任务ID",
|
||||
"GUID": "1b5ffdad-96a9-4758-aa3d-3df34e594df8"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=ID"
|
||||
}
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "e7c6b702bcfd498a870d1da8f37c4e31"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
|
||||
"LoopInfo": {
|
||||
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
|
||||
"LoopCount": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=子任务列表"
|
||||
},
|
||||
"LoopItemParamName": "Item"
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
|
||||
"ServerCommandName": "递归删除任务",
|
||||
"Parameters": [
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||||
"ParamName": "ID",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=Item.ID"
|
||||
}
|
||||
}
|
||||
],
|
||||
"ResultErrorCodeTo": {
|
||||
"SerializeProperty": "code"
|
||||
},
|
||||
"ResultMessageTo": {
|
||||
"SerializeProperty": "msg"
|
||||
},
|
||||
"RefreshAfterFinish": true,
|
||||
"CheckDataValidation": true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "删除完成"
|
||||
}
|
||||
],
|
||||
"ID": "b4e10fe1-d71c-466b-931a-30392d392123"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"任务\"&任务.任务名称&\"存在报工,无法删除!\""
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "be2f819c-6542-46f8-bf77-5b519240feb6"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ResultErrorCodeTo": {
|
||||
"SerializeProperty": "code"
|
||||
},
|
||||
"ResultMessageTo": {
|
||||
"SerializeProperty": "msg"
|
||||
},
|
||||
"RefreshAfterFinish": true,
|
||||
"CheckDataValidation": true
|
||||
"ID": "6992f9b7-07d3-4983-93fe-a5a476bcaff6"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "任务不存在"
|
||||
}
|
||||
],
|
||||
"ID": "ab1a23fc-7497-4498-8521-d4f8b3509024"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "删除完成"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user