{"Message":"完善任务删除逻辑;\r\n完善工时删除逻辑;\r\n完善项目申请流程;\r\n完善任务新增流程;","MessageType":2,"Modules":[{"State":1,"Type":7,"Name":"Table/任务表"},{"State":1,"Type":1,"Name":"PCPage/项目列表"},{"State":1,"Type":1,"Name":"PCPage/项目标题"},{"State":1,"Type":1,"Name":"PCPage/任务列表"},{"State":1,"Type":1,"Name":"PCPage/项目成员"},{"State":1,"Type":1,"Name":"PCPage/项目信息"},{"State":1,"Type":1,"Name":"PCPage/项目审批"},{"State":1,"Type":1,"Name":"PCPage/任务首页"},{"State":1,"Type":1,"Name":"PCPage/任务-工时"},{"State":1,"Type":1,"Name":"PCPage/工时详情"},{"State":1,"Type":1,"Name":"PCPage/新增任务"},{"State":1,"Type":31,"Name":"UserControlPage/工时记录列表"},{"State":1,"Type":15,"Name":"ServerCommand/修改任务预算工时"},{"State":1,"Type":15,"Name":"ServerCommand/删除任务成员所有工时"},{"State":1,"Type":15,"Name":"ServerCommand/上报实际工时"},{"State":1,"Type":15,"Name":"ServerCommand/分配任务工时"},{"State":1,"Type":9,"Name":"Theme"},{"State":1,"Type":15,"Name":"ServerCommand/计算报工数据"},{"State":1,"Type":15,"Name":"ServerCommand/任务发起流程前校验"},{"State":1,"Type":28,"Name":"ProcessItem/新增任务流程"},{"State":1,"Type":23,"Name":"TableView/项目平行视图"},{"State":1,"Type":23,"Name":"TableView/任务平行视图"},{"State":2,"Type":15,"Name":"ServerCommand/新增任务"},{"State":1,"Type":1,"Name":"PCPage/创建项目"},{"State":2,"Type":15,"Name":"ServerCommand/创建项目校验"},{"State":3,"Type":6,"Name":"Pages/任务/任务审批"},{"State":3,"Type":1,"Name":"PCPage/任务审批"},{"State":3,"Type":15,"Name":"ServerCommand/发起任务(废弃)"},{"State":3,"Type":15,"Name":"ServerCommand/项目流程发起前校验"},{"State":3,"Type":27,"Name":"ServerCommandPrivate/递归检测子任务"},{"State":3,"Type":15,"Name":"ServerCommand/删除任务"},{"State":3,"Type":27,"Name":"ServerCommandPrivate/递归删除任务"}],"Version":"v1"}
This commit is contained in:
@@ -225,7 +225,7 @@
|
||||
"Message": "当前项目未指定项目经理,请指定后再试"
|
||||
}
|
||||
],
|
||||
"ID": "bf2669ee-8268-4141-88c6-5092715f3072"
|
||||
"ID": "62329720-a822-4cca-99e2-a2444ca1f95e"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -251,7 +251,7 @@
|
||||
"Message": "请指定任务执行者"
|
||||
}
|
||||
],
|
||||
"ID": "d21c1a97-d872-4e1a-b06b-1b27436a87b2"
|
||||
"ID": "2475b524-68de-4f7e-b688-2b9687af5b22"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -277,7 +277,7 @@
|
||||
"Message": "请指定任务类型"
|
||||
}
|
||||
],
|
||||
"ID": "34d0d97a-62e1-45e9-a04e-41bfd5ed79a7"
|
||||
"ID": "f51663db-7687-44bb-9f3b-1cce2682d013"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -303,7 +303,7 @@
|
||||
"Message": "请为任务指定版本"
|
||||
}
|
||||
],
|
||||
"ID": "9d17a551-b606-4c60-ba11-052c43baa59f"
|
||||
"ID": "8eab7c16-ea96-4d8d-b9e0-07546d7b5504"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -355,7 +355,7 @@
|
||||
"ID": "8f419b6c4a3f4fb5bcf81a653a34fefc"
|
||||
}
|
||||
],
|
||||
"ID": "dde09040-6523-468d-912a-68841b21044b"
|
||||
"ID": "5c733c8d-ac2b-4705-933a-d789b7385dd6"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -388,7 +388,7 @@
|
||||
"GUID": "717b4db9-b7be-437d-a09c-3733dc19c3bf",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "总计划工时",
|
||||
"ColumnName": "成员计划工时",
|
||||
"GUID": "85fd954d-c52d-494e-8e51-5b191456133c"
|
||||
},
|
||||
"ColumnName": "总计划工时"
|
||||
@@ -430,7 +430,7 @@
|
||||
"ID": "ac58e4cdd43c49fe9f9575e244e3479b"
|
||||
}
|
||||
],
|
||||
"ID": "ba5b58f8-d131-4492-8c85-f0bdf00093ac"
|
||||
"ID": "dab745d7-5c78-4474-bf71-cf1ec4230570"
|
||||
}
|
||||
],
|
||||
"Comments": "严格模式下,根据是否有父任务来计算本次预算工时的上限"
|
||||
@@ -464,12 +464,12 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "c2401842-ea6c-4e2c-b538-de78e6ccaf99"
|
||||
"ID": "319fc2fe-698a-44cf-8bef-21fe1aadfee7"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "4b8fc3a1-7364-41e8-aca3-5492484a2ddb"
|
||||
"ID": "c2608868-26f2-4627-8905-c9fcb7328ffb"
|
||||
}
|
||||
],
|
||||
"Comments": "校验工时情况是否通过"
|
||||
|
||||
@@ -173,6 +173,95 @@
|
||||
"value": "1"
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "子任务总预算工时",
|
||||
"TableValue": {
|
||||
"TableName": "任务表",
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "40bd1e33-4105-4ded-8088-c30758b2397d",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "总任务预算工时",
|
||||
"GUID": "511457d9-7abf-404b-82ae-ba26a29ab5a8"
|
||||
},
|
||||
"ColumnName": "总任务预算工时"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "父任务ID",
|
||||
"GUID": "d129907c-cb5f-4eb3-bf88-b3aa460dfb44"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务ID"
|
||||
}
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0
|
||||
},
|
||||
"ID": "de31cf4feec24851abbeeaab23503aba"
|
||||
},
|
||||
{
|
||||
"$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": "=子任务总预算工时"
|
||||
}
|
||||
},
|
||||
"value": "%Null%",
|
||||
"compareType": 1
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||||
"param": {
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=新预算工时"
|
||||
}
|
||||
},
|
||||
"value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=子任务总预算工时.总任务预算工时"
|
||||
},
|
||||
"compareType": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": "此操作会导致子任务预算工时不足,无法修改!",
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "新工时",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务表.任务预算工时"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "08d32666-d901-4736-8b9d-f3a37b9b3f72"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
"ConditionAndCommandPairList": [
|
||||
@@ -199,7 +288,7 @@
|
||||
"ID": "e583a0048e5044a0b325443e28146bdb"
|
||||
}
|
||||
],
|
||||
"ID": "ca412410-4961-425b-bcbd-78e522a2b526"
|
||||
"ID": "c3e577e2-28e8-46f1-bb0d-0bed874a00b3"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -232,7 +321,7 @@
|
||||
"GUID": "2375b49f-a344-481d-b24f-255535146b39",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "总计划工时",
|
||||
"ColumnName": "成员计划工时",
|
||||
"GUID": "9644df0b-6bd7-483b-8aaf-96d5c3fa435a"
|
||||
},
|
||||
"ColumnName": "总计划工时"
|
||||
@@ -265,7 +354,7 @@
|
||||
"ID": "423c3d6d0618419c9eac630be5066c46"
|
||||
}
|
||||
],
|
||||
"ID": "d213848d-aed2-41b6-a65a-d385ef1edbb9"
|
||||
"ID": "2aa16f65-1c6d-44aa-96ca-127cf34ed417"
|
||||
}
|
||||
],
|
||||
"Comments": "严格模式下,根据是否有父任务来计算本次预算工时的上限"
|
||||
@@ -304,12 +393,12 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "97dfa6d6-3f61-4f65-b209-2acaa2f36726"
|
||||
"ID": "a466e785-7cc9-4ce8-a45f-3204e491ed05"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "5e9cf66f-56d4-4903-8dd3-d32a9ac9990c"
|
||||
"ID": "56c7dbed-d2e5-428f-86dc-f27e0e1d489f"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
187
ServerCommands/任务/删除任务.json
Normal file
187
ServerCommands/任务/删除任务.json
Normal file
@@ -0,0 +1,187 @@
|
||||
{
|
||||
"Name": "删除任务",
|
||||
"Enabled": true,
|
||||
"Triggers": [
|
||||
{
|
||||
"$type": "Forguncy.SaveLoad.PostRequestTriggerSaveData, ServerDesignerCommon",
|
||||
"Permission": {
|
||||
"PermissionData": {
|
||||
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionData, Forguncy.RbacPermission.Core",
|
||||
"permissionResource": {
|
||||
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionResource, Forguncy.RbacPermission.Core"
|
||||
},
|
||||
"permissionBindings": [
|
||||
{
|
||||
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionBinding, Forguncy.RbacPermission.Core",
|
||||
"roleNames": [
|
||||
"FGC_LoginUser"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"Parameters": [
|
||||
{
|
||||
"Name": "ID",
|
||||
"DataValidationInfo": {
|
||||
"IgnoreBlank": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Commands": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "任务",
|
||||
"TableValue": {
|
||||
"TableName": "任务表",
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "9089264a-9960-47ef-a49a-5743c08640c6",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "任务名称",
|
||||
"GUID": "73c60fba-bd79-4f57-b4ef-42b92b67277d"
|
||||
},
|
||||
"ColumnName": "任务名称"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "3bf2db8b-2426-41bd-adbc-8644d0d2291f"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=ID"
|
||||
}
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0
|
||||
},
|
||||
"ID": "f271187c52664eec87b48c9847835c47"
|
||||
},
|
||||
{
|
||||
"$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": "%Null%",
|
||||
"compareType": 1
|
||||
},
|
||||
"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
|
||||
},
|
||||
{
|
||||
"$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": "=code"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
],
|
||||
"ResultErrorCodeTo": {
|
||||
"SerializeProperty": "code"
|
||||
},
|
||||
"ResultMessageTo": {
|
||||
"SerializeProperty": "msg"
|
||||
},
|
||||
"RefreshAfterFinish": true,
|
||||
"CheckDataValidation": true
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=code"
|
||||
},
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=msg"
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "7c9bda40-0a4a-4559-92ce-5907bb66e66a"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=msg&\",无法删除任务\""
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "17b821a5-c0a6-4672-81eb-9981faef639d"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "466dc6bc-bb11-46c8-a79f-c4325930cea3"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"Name": "新增任务",
|
||||
"Name": "发起任务(废弃)",
|
||||
"Enabled": true,
|
||||
"Triggers": [
|
||||
{
|
||||
@@ -163,7 +163,7 @@
|
||||
"ID": "d01552992a0c4569864d9ac2ed82875b"
|
||||
}
|
||||
],
|
||||
"ID": "c995ccbd-f613-44ff-8af6-319a1de3b6a0"
|
||||
"ID": "31d64392-94a8-4189-a644-ad2f0e42dac9"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -174,12 +174,12 @@
|
||||
"ID": "100407c5ad3545a4927cc51a64cc94ba"
|
||||
}
|
||||
],
|
||||
"ID": "cc0cb7c8-3629-4003-a956-526b8cca6522"
|
||||
"ID": "9cb8d3b5-1cf1-48e0-807d-fdeac73a34cd"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "0b738736-143a-4933-b958-ab5d57001c8a"
|
||||
"ID": "3426f5af-5cbd-43ba-ade1-c5d48337d9c0"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -190,7 +190,7 @@
|
||||
"ID": "918e2a12022e4e8080c14ece366ea9bb"
|
||||
}
|
||||
],
|
||||
"ID": "f357f4f5-1cdd-4e51-93cf-006110341ca7"
|
||||
"ID": "0446ced2-ad94-44ae-bb69-de390789baac"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -493,7 +493,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "f5a7f9cd-a8a8-4503-bdae-1de2fdd76551"
|
||||
"ID": "a458a273-a6b9-4349-914b-b5adfdc7f4d1"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -512,7 +512,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "53fefe07-7f1c-4a7a-a16c-10398165419d"
|
||||
"ID": "d9d1feb6-0716-485a-801a-03affc4715a0"
|
||||
}
|
||||
]
|
||||
}
|
||||
182
ServerCommands/任务/递归删除任务.json
Normal file
182
ServerCommands/任务/递归删除任务.json
Normal file
@@ -0,0 +1,182 @@
|
||||
{
|
||||
"Name": "递归删除任务",
|
||||
"Description": "递归检测任务是否存在子任务报工",
|
||||
"Enabled": true,
|
||||
"Triggers": [
|
||||
{
|
||||
"$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon",
|
||||
"Parameters": [
|
||||
{
|
||||
"Name": "ID",
|
||||
"DataValidationInfo": {
|
||||
"IgnoreBlank": false
|
||||
},
|
||||
"TestData": "3"
|
||||
}
|
||||
],
|
||||
"InvokeTriggerTestData": {
|
||||
"UserName": "Administrator"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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": "子任务列表",
|
||||
"TableValue": {
|
||||
"TableName": "任务表",
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "9d359938-d06a-4b4b-92bd-daa4612739e6",
|
||||
"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": "4becb21f6fbb40ea8c0fd8f9b369e678"
|
||||
},
|
||||
{
|
||||
"$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": "删除完成"
|
||||
}
|
||||
]
|
||||
}
|
||||
204
ServerCommands/任务/递归检测子任务.json
Normal file
204
ServerCommands/任务/递归检测子任务.json
Normal file
@@ -0,0 +1,204 @@
|
||||
{
|
||||
"Name": "递归检测子任务",
|
||||
"Description": "递归检测任务是否存在子任务报工",
|
||||
"Enabled": true,
|
||||
"Triggers": [
|
||||
{
|
||||
"$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon",
|
||||
"Parameters": [
|
||||
{
|
||||
"Name": "ID",
|
||||
"DataValidationInfo": {
|
||||
"IgnoreBlank": false
|
||||
},
|
||||
"TestData": "3"
|
||||
},
|
||||
{
|
||||
"Name": "任务名称",
|
||||
"DataValidationInfo": {}
|
||||
}
|
||||
],
|
||||
"InvokeTriggerTestData": {
|
||||
"UserName": "Administrator"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Commands": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "报工数量",
|
||||
"TableValue": {
|
||||
"TableName": "任务工时表",
|
||||
"TableValueType": 3,
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "任务ID",
|
||||
"GUID": "ecebdb4a-1630-43fe-8758-e96ec880d630"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=ID"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ID": "10acffd61ffd4fd6a25be9a9b260d184"
|
||||
},
|
||||
{
|
||||
"$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",
|
||||
"compareType": 1
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"任务:\"&任务名称&\",存在报工记录\""
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "594bebdc-56d5-4c88-9096-5ad90c1cb675"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "子任务列表",
|
||||
"TableValue": {
|
||||
"TableName": "任务表",
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "5690a025-216f-4abe-93c5-b1641ba6bd44",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "ac49d30c-d5e7-4dae-b774-7b39da2b0a06"
|
||||
},
|
||||
"ColumnName": "ID"
|
||||
},
|
||||
{
|
||||
"GUID": "e7ad38ca-811c-4494-898c-90653797ef71",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "任务名称",
|
||||
"GUID": "db332a4b-8ba7-40d8-b678-46ab28cce50f"
|
||||
},
|
||||
"ColumnName": "任务名称"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "父任务ID",
|
||||
"GUID": "04afdcdd-e931-4562-845e-2fc6b9fedb44"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=ID"
|
||||
}
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "a7a2757fba144540898ade3a472a2932"
|
||||
},
|
||||
{
|
||||
"$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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||||
"ParamName": "任务名称",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=Item.任务名称"
|
||||
}
|
||||
}
|
||||
],
|
||||
"ResultErrorCodeTo": {
|
||||
"SerializeProperty": "code"
|
||||
},
|
||||
"ResultMessageTo": {
|
||||
"SerializeProperty": "msg"
|
||||
},
|
||||
"RefreshAfterFinish": true,
|
||||
"CheckDataValidation": true
|
||||
},
|
||||
{
|
||||
"$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": "=code"
|
||||
}
|
||||
},
|
||||
"value": "0",
|
||||
"compareType": 1
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=msg"
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "b95846d2-cb40-41bc-b0dc-8a24f446e2a6"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "02a2ce99-ca54-4559-8a22-9244e40358af"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "检测通过"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -207,7 +207,7 @@
|
||||
"GUID": "2380db01-cfa4-414b-87d6-1c6b1851e275",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "总计划工时",
|
||||
"ColumnName": "成员计划工时",
|
||||
"GUID": "8607fe01-1f38-41f0-a9d2-ac602ee7f344"
|
||||
},
|
||||
"ColumnName": "总计划工时"
|
||||
@@ -216,7 +216,7 @@
|
||||
"GUID": "939b27b6-1d20-44b2-a1a4-f100a4b5c510",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "总实际工时",
|
||||
"ColumnName": "成员实际工时",
|
||||
"GUID": "51709060-4e4c-4a5f-8e70-ee6a68823f4d"
|
||||
},
|
||||
"ColumnName": "总实际工时"
|
||||
@@ -497,7 +497,7 @@
|
||||
"ID": "ca981e56b58e4a889cce1e811fc89764"
|
||||
}
|
||||
],
|
||||
"ID": "88e79a14-c58e-467e-bb9e-d08a9992bf10"
|
||||
"ID": "32da7772-2352-4727-a743-12e932b048f6"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -511,7 +511,7 @@
|
||||
"ID": "5e88c98d260e4a2bacdc4d385f1855f1"
|
||||
}
|
||||
],
|
||||
"ID": "569f1523-a560-4d2b-8a29-228c39a3e1da"
|
||||
"ID": "d3887aec-b6e0-4e95-a04d-3a465aacf5b8"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -559,7 +559,7 @@
|
||||
}
|
||||
],
|
||||
"Comments": "如果是按天分配,则需要检测这一天的实际工时是否超出,",
|
||||
"ID": "fca1b2d6-54f4-4565-8604-8d8614a2bfc0"
|
||||
"ID": "8e22e0b4-8ce1-4d2e-b400-a1d79b02f195"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -573,7 +573,7 @@
|
||||
"ID": "9f4c8206193a47cfa79333c2dbb3d2a7"
|
||||
}
|
||||
],
|
||||
"ID": "84459d53-9392-4771-9058-7e77386f8ced"
|
||||
"ID": "305e1798-58b1-4155-84a6-9c87d15b4c0c"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -713,7 +713,7 @@
|
||||
"ID": "d9e13b85ae5640d5972aeb4ea3180a34"
|
||||
}
|
||||
],
|
||||
"ID": "df8a7a6d-1c71-48dd-8584-d9bbb1f86460"
|
||||
"ID": "de26dda8-6dfa-4256-be45-54fa0959b0c1"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -726,7 +726,7 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "a1c69d1d-002b-472c-a7dd-79628870581f"
|
||||
"ID": "1ec64c0b-7d1e-460c-83c6-afd589a81356"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -778,7 +778,7 @@
|
||||
"Message": "报工成功"
|
||||
}
|
||||
],
|
||||
"ID": "904a25fd-f4ad-4289-91c7-47445727e2d3"
|
||||
"ID": "9608b992-43bb-4946-974c-1e27fe2262fe"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -794,12 +794,12 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "6f50c329-4ab8-415c-9a0a-0d465b51d856"
|
||||
"ID": "096a36f8-a45c-422d-9d85-23f79628f686"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "bc625af4-ce67-445e-b9bb-2506acba7dab"
|
||||
"ID": "e4daf810-27cd-4975-8afa-4e05f4809c5c"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -812,7 +812,7 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "08cc418b-c996-4c53-a5c5-dca13abf61f7"
|
||||
"ID": "9006973d-7417-42af-b4be-a0e20783258e"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -217,7 +217,7 @@
|
||||
"GUID": "a87c068d-26b1-44c8-8b58-5514df5a139a",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "总计划工时",
|
||||
"ColumnName": "成员计划工时",
|
||||
"GUID": "f355236f-a6cc-49a5-8ce3-a184a4a90b78"
|
||||
},
|
||||
"ColumnName": "总计划工时"
|
||||
@@ -226,7 +226,7 @@
|
||||
"GUID": "23318a88-ce48-4abb-afe9-9b6f2914b87b",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "总实际工时",
|
||||
"ColumnName": "成员实际工时",
|
||||
"GUID": "85ccdc21-2211-4e56-914f-90445409db03"
|
||||
},
|
||||
"ColumnName": "总实际工时"
|
||||
@@ -541,7 +541,7 @@
|
||||
"ParamNameToSaveNewRowValue": ""
|
||||
}
|
||||
],
|
||||
"ID": "10766095-aa5e-4936-bd6f-9f87476fe932"
|
||||
"ID": "f8e075eb-d389-4c05-9d02-adb7467c1fd2"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -596,7 +596,7 @@
|
||||
"ID": "91295edff0c44f608a14d5c9f9594f3e"
|
||||
}
|
||||
],
|
||||
"ID": "cb65382f-c010-4af6-a20a-77026cce8abc"
|
||||
"ID": "332b9caa-2069-4b23-ad1a-41a9d4840a14"
|
||||
},
|
||||
{
|
||||
"Condition": {
|
||||
@@ -630,7 +630,7 @@
|
||||
"ID": "727f49edcb914303adf91ed9a40e4355"
|
||||
}
|
||||
],
|
||||
"ID": "8b041455-c4ba-4e60-b2de-ab076be0ecd0"
|
||||
"ID": "8620cd87-3273-476a-8635-dfed055b4715"
|
||||
}
|
||||
],
|
||||
"Comments": "如果是按人分配,则把计划工时分到一天中"
|
||||
@@ -766,7 +766,7 @@
|
||||
"ID": "622dd1eb09094e29b7b7201423479597"
|
||||
}
|
||||
],
|
||||
"ID": "43f34e40-4a0b-4f45-af34-815255acc8e1"
|
||||
"ID": "da2889e3-da14-4e63-a66e-c250ddb7d809"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -780,7 +780,7 @@
|
||||
"ID": "22bbafd761814075a115c7c935a993c0"
|
||||
}
|
||||
],
|
||||
"ID": "b68ec59e-a39c-46e4-a0b5-f829865c6e33"
|
||||
"ID": "578e7635-09da-41e0-bcb8-fa9836f23531"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -998,7 +998,7 @@
|
||||
}
|
||||
],
|
||||
"Comments": "如果不是按人分配,且分配后的工时超过负荷,则报错",
|
||||
"ID": "2ee2defe-1ee0-4b1a-81ba-3c3c7ee41092"
|
||||
"ID": "ae4f8c95-9b35-45e1-830d-ce0c525eb6d7"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -1011,7 +1011,7 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "c3926374-5d7e-4d95-b0f8-c0cae13866f0"
|
||||
"ID": "3d372284-136c-4c92-abc2-5561242c303a"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1025,7 +1025,7 @@
|
||||
"Message": "分配计划工时成功"
|
||||
}
|
||||
],
|
||||
"ID": "c0584a51-0fa8-4921-9584-6d283b15e2ef"
|
||||
"ID": "04a63f83-c351-40a2-841a-5b8f14d5e783"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -1038,12 +1038,12 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "3e9956c9-42e0-4ff5-b044-222b4bf77cff"
|
||||
"ID": "402ab5e2-b6c8-465f-93e7-dbf0d4e52ee5"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "57f1b080-ec1a-4753-a7d7-0f854f188607"
|
||||
"ID": "63bb8572-4f70-41c3-b2a3-7edd8736d4e5"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -1053,13 +1053,13 @@
|
||||
"Message": "该用户不是项目成员"
|
||||
}
|
||||
],
|
||||
"ID": "3597654d-7876-4aae-a0d4-823d38fd0b1f"
|
||||
"ID": "4158fbd4-5c6a-4ba8-9f82-ebf5e096c543"
|
||||
}
|
||||
],
|
||||
"Comments": "如果任务成员中没有,则自动加一个"
|
||||
}
|
||||
],
|
||||
"ID": "7d3c7e2a-4b00-48b9-8169-87d968e1a4e3"
|
||||
"ID": "ca047f4b-b6e4-4fb8-b7a2-80f8b518f08f"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -1069,12 +1069,12 @@
|
||||
"Message": "您提交的工时超过任务预算工时,请修改后重新提交"
|
||||
}
|
||||
],
|
||||
"ID": "00a26394-ea2d-4137-a912-238597032be9"
|
||||
"ID": "1d9ed9f0-3590-43b7-b42f-b1573d9212ba"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "bdf5bcf4-1d4c-4a7a-a8ec-ff8d7474877f"
|
||||
"ID": "c0d0927b-98c4-4224-a3fa-38651c5b9c3f"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -1084,7 +1084,7 @@
|
||||
"Message": "任务不存在"
|
||||
}
|
||||
],
|
||||
"ID": "ee54214e-973d-463a-ade5-08d37df75c44"
|
||||
"ID": "d3f6e687-6364-4e9d-b9aa-287ee721db7d"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -34,174 +34,55 @@
|
||||
],
|
||||
"Commands": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "任务",
|
||||
"TableValue": {
|
||||
"TableName": "任务表",
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "任务工时表",
|
||||
"UpdateType": "delete",
|
||||
"ShowConfirm": true,
|
||||
"ConfirmText": "您确定要删除吗?",
|
||||
"RowsToUpdate": 1,
|
||||
"RowsToUpdateCondition": {
|
||||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||||
"SubConditions": [
|
||||
{
|
||||
"GUID": "2a23ba0a-7e22-4a12-a13f-c42bc1a2aac2",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "任务状态",
|
||||
"GUID": "9ea75b46-5a71-4f91-bfcb-f2e367a43a82"
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "任务ID",
|
||||
"GUID": "a1f40291-8adf-4f2d-b2dd-a0163f820016"
|
||||
},
|
||||
"ColumnName": "任务状态"
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务ID"
|
||||
}
|
||||
},
|
||||
{
|
||||
"GUID": "b1d168ec-a9fd-45b3-9ed2-5a5275c05121",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "任务状态",
|
||||
"GUID": "69dde50a-4375-47c9-9897-404ebc2fd8fe",
|
||||
"RelationBinding": {
|
||||
"RelatedTable": "任务状态",
|
||||
"RelatedColumn": "状态码",
|
||||
"DisplayColumn": "任务状态"
|
||||
}
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "执行人",
|
||||
"GUID": "5103a89d-5ee6-47e8-a46c-1cf0ac4bd453"
|
||||
},
|
||||
"ColumnName": "任务状态文本"
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=执行人"
|
||||
}
|
||||
},
|
||||
{
|
||||
"GUID": "c6afe972-f0b9-42de-b629-185ca166609a",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "任务类型",
|
||||
"GUID": "23e9d9ab-6308-49fa-b0e8-ccbed2db67a2"
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "请款单ID",
|
||||
"GUID": "2d5d78b4-4e8f-49d4-bad1-fd379bcc7a70"
|
||||
},
|
||||
"ColumnName": "任务类型"
|
||||
"Value": "%Null%"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "6dc78ef9-3bc4-4c2c-97cf-6c845d7216ee"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务ID"
|
||||
}
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "74a4d3159eba48cca952216009b2a633"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
"ConditionAndCommandPairList": [
|
||||
{
|
||||
"Condition": {
|
||||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||||
"SubConditions": [
|
||||
{
|
||||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||||
"SubConditions": [
|
||||
{
|
||||
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||||
"param": {
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务.任务状态"
|
||||
}
|
||||
},
|
||||
"value": "0",
|
||||
"compareType": 3,
|
||||
"LeftBracket": 1
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||||
"param": {
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务.任务状态"
|
||||
}
|
||||
},
|
||||
"value": "1",
|
||||
"compareType": 5,
|
||||
"RightBracket": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||||
"param": {
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务.任务类型"
|
||||
}
|
||||
},
|
||||
"value": "计划"
|
||||
}
|
||||
],
|
||||
"RelationType": 1
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "任务工时表",
|
||||
"UpdateType": "delete",
|
||||
"ShowConfirm": true,
|
||||
"ConfirmText": "您确定要删除吗?",
|
||||
"RowsToUpdate": 1,
|
||||
"RowsToUpdateCondition": {
|
||||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||||
"SubConditions": [
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "任务ID",
|
||||
"GUID": "a1f40291-8adf-4f2d-b2dd-a0163f820016"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务ID"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "执行人",
|
||||
"GUID": "5103a89d-5ee6-47e8-a46c-1cf0ac4bd453"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=执行人"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "删除成功"
|
||||
}
|
||||
],
|
||||
"ID": "f8f4e64a-a892-425d-8cc0-8e8a724ad6eb"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"当前任务状态为[\"&任务.任务状态文本&\"],无法删除人员工时!\""
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "dae0f7a9-6be1-4cac-aa68-c85c63bbb996"
|
||||
}
|
||||
]
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "删除成功"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -184,7 +184,7 @@
|
||||
"GUID": "797a4cf1-880a-4657-bd17-166491e52aa6",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "总计划工时",
|
||||
"ColumnName": "成员计划工时",
|
||||
"GUID": "9b9f88c0-c367-46c7-948c-5b43579844d0"
|
||||
},
|
||||
"ColumnName": "总计划工时"
|
||||
@@ -193,7 +193,7 @@
|
||||
"GUID": "77eb05f5-194d-42b2-8ed0-24fe75365b7b",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "总实际工时",
|
||||
"ColumnName": "成员实际工时",
|
||||
"GUID": "980d85ec-3b78-448b-b4de-3987fd4e4f28"
|
||||
},
|
||||
"ColumnName": "总实际工时"
|
||||
@@ -487,7 +487,7 @@
|
||||
}
|
||||
],
|
||||
"Comments": "项目成员设置的时薪",
|
||||
"ID": "4c12665c-c607-436f-89b5-5b4635f5db8c"
|
||||
"ID": "46c598ab-4477-4e2a-b2a0-35359b41127d"
|
||||
},
|
||||
{
|
||||
"Condition": {
|
||||
@@ -520,7 +520,7 @@
|
||||
}
|
||||
],
|
||||
"Comments": "项目岗位设置的时薪",
|
||||
"ID": "f6f21cf9-4adc-4539-ae48-51452fc9915c"
|
||||
"ID": "1d2c0e6a-69a1-475e-91cb-e6202a7e80f5"
|
||||
},
|
||||
{
|
||||
"Condition": {
|
||||
@@ -553,7 +553,7 @@
|
||||
}
|
||||
],
|
||||
"Comments": "成员用户的默认时薪",
|
||||
"ID": "affca115-f5d7-43b7-a084-917a09a0f706"
|
||||
"ID": "2d070011-4179-409d-b9b1-2cead8e93f68"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -570,13 +570,13 @@
|
||||
"ID": "eb0ba1839ebc4ec58750e971080fc72b"
|
||||
}
|
||||
],
|
||||
"ID": "8f632eec-184f-4795-9152-56faa3200eb8"
|
||||
"ID": "d0b758f9-0d2e-4d2e-a28c-2f6ace22299d"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Comments": "优先使用手动指定的提成金额",
|
||||
"ID": "0235a465-641e-4804-ad1d-8b56aab31dd3"
|
||||
"ID": "84056f4d-6445-40f0-bd6e-556cde5e8ab7"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -596,7 +596,7 @@
|
||||
"ID": "2eafc4d65af44d18adfcd21c68734df8"
|
||||
}
|
||||
],
|
||||
"ID": "973d5a24-b65c-49c7-8f51-ff5129355e80"
|
||||
"ID": "b922bfd5-212e-48d6-a05b-98369f91b9f2"
|
||||
}
|
||||
],
|
||||
"Comments": "计算成员的时薪"
|
||||
@@ -763,13 +763,13 @@
|
||||
}
|
||||
],
|
||||
"Comments": "先检查个人工时余额够不够,如果不够,直接提成为0",
|
||||
"ID": "23553190-286f-4cf3-991d-056e1f5e0046"
|
||||
"ID": "acb9a740-8314-43da-a91a-575d2386bcc9"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Comments": "如果分配到人头,则判断该人总计划工时还够不够",
|
||||
"ID": "2d3c9a6e-0e1f-4be2-a275-4a7ea63fe36a"
|
||||
"ID": "ec9432b0-8712-488a-b7b2-51451d9bc122"
|
||||
},
|
||||
{
|
||||
"Condition": {
|
||||
@@ -881,13 +881,13 @@
|
||||
}
|
||||
],
|
||||
"Comments": "先检查个人工时余额够不够,如果不够,直接提成为0",
|
||||
"ID": "129f7c42-0004-452e-b3c0-c474309dbf62"
|
||||
"ID": "718f1af5-b069-444c-a889-19e2f7649321"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Comments": "如果是共用任务工时,则查看任务计划工时够不够",
|
||||
"ID": "82893b6d-1788-4486-8364-9d8c7b3f300a"
|
||||
"ID": "f2793059-ef01-42fb-80db-9baf1d00af5b"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -1020,7 +1020,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "a3c3f585-bd40-4e88-a513-02a355850bc0"
|
||||
"ID": "3215c3e4-48c4-46b5-824b-6d1a9f45f724"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -1081,12 +1081,12 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "7ea538ef-829c-44cc-b74a-261128ed5c8e"
|
||||
"ID": "0844e4a5-2170-4994-b15e-0aedc6dc925e"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "984ece6b-a304-4ed3-b74a-f4468f884e7f"
|
||||
"ID": "6673745e-9fa5-4654-90d9-e48dafb4bc58"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -1119,13 +1119,13 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "145f4305-61e9-4e3e-82b7-01adbab2c9ef"
|
||||
"ID": "9b7bf5ad-256e-4fd1-a224-f23b23c2ca61"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Comments": "如果提交的工时类型等于项目工时的核定方式且开启严格模式就校验本次有没有超标",
|
||||
"ID": "e470f225-553e-4875-95a1-1284b95da293"
|
||||
"ID": "93f0876c-6b08-4a3f-a164-ba0bb5ab67f8"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -1182,12 +1182,12 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "ca5d6b97-14f4-4d16-8eea-fafd5a276082"
|
||||
"ID": "8c2b57c1-1304-4c18-8b62-8a43f65248d6"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "65a59501-45ac-46d8-b085-4362b20c3e50"
|
||||
"ID": "20958383-bc4f-40d1-b302-1ff23f3f385b"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -1220,7 +1220,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "35a4d139-2b65-46f4-aa60-5ff1a634b67a"
|
||||
"ID": "b795ba2b-32f7-4ce9-b5e3-614e7784b0b8"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"Name": "创建项目校验",
|
||||
"Name": "项目流程发起前校验",
|
||||
"Enabled": true,
|
||||
"Triggers": [
|
||||
{
|
||||
@@ -328,7 +328,7 @@
|
||||
"Message": "项目名称及代号不能为空"
|
||||
}
|
||||
],
|
||||
"ID": "9d436ff0-18c1-4d7c-8da5-8d88cc5cc427"
|
||||
"ID": "826a9461-8d70-4b86-a344-ce2e74b23d3e"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -354,7 +354,7 @@
|
||||
"Message": "项目经理不能为空"
|
||||
}
|
||||
],
|
||||
"ID": "782db2f9-e1dc-41df-98ec-df95b81e6334"
|
||||
"ID": "eca5304b-a76f-4805-9c0c-b1706d9d0da4"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -396,7 +396,7 @@
|
||||
"Message": "项目所属客户及部门不能为空"
|
||||
}
|
||||
],
|
||||
"ID": "0a044dc9-5a80-4a97-a945-3fb8b3043e05"
|
||||
"ID": "c272cadc-018f-46eb-8f3e-5582fba2e3bf"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -439,7 +439,7 @@
|
||||
"Message": "项目计划日期不能为空"
|
||||
}
|
||||
],
|
||||
"ID": "9ef6d620-2fdb-4a03-87fa-b113b04ce8f4"
|
||||
"ID": "61aa6f1b-2dfa-47fb-95cf-047819ef8ac1"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -481,7 +481,7 @@
|
||||
"Message": "严格模式下,预算工时必须提供"
|
||||
}
|
||||
],
|
||||
"ID": "164ae1b2-8936-4402-b17b-e4957d05e8cb"
|
||||
"ID": "5372fae7-3a3a-4a40-9f66-39e227661097"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -503,7 +503,7 @@
|
||||
"Message": "校验通过"
|
||||
}
|
||||
],
|
||||
"ID": "4119870f-869c-4c6a-a400-2029eee7f962"
|
||||
"ID": "49232066-4d29-4b7f-b0b0-304cf1035123"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -513,7 +513,7 @@
|
||||
"Message": "项目不存在"
|
||||
}
|
||||
],
|
||||
"ID": "92c21087-e3ba-4632-81fe-4ee0545abbbd"
|
||||
"ID": "956b4636-f761-4cc0-beb0-2b37d525bfdd"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user