{"Message":"1","MessageType":2,"Modules":[{"State":1,"Type":15,"Name":"ServerCommand/任务发起流程前校验"},{"State":1,"Type":1,"Name":"PCPage/创建项目"},{"State":1,"Type":15,"Name":"ServerCommand/项目流程发起前校验"}],"Version":"v1"}

This commit is contained in:
超哥
2024-07-03 17:27:15 +08:00
parent 99e68b9209
commit 0f021faa86
4 changed files with 99 additions and 89 deletions

View File

@@ -275,7 +275,7 @@
"Message": "请等待父任务审批后方可发起!"
}
],
"ID": "c66244a0-0b2c-4d80-b302-9d8646e26876"
"ID": "c6e846b5-7a58-4aa4-9586-da098bcb80c8"
}
]
},
@@ -301,7 +301,7 @@
"Message": "当前项目未指定项目经理,请指定后再试"
}
],
"ID": "bfa64f70-1f93-43cb-b795-c7d544722030"
"ID": "8a138cde-55be-4875-89a8-ece1875a779a"
}
]
},
@@ -327,7 +327,7 @@
"Message": "请指定任务负责人"
}
],
"ID": "2f4170e1-257f-40c3-98a6-17323c4e8ea2"
"ID": "90b5051c-5cf5-486c-85cf-b24a9202a8bb"
}
]
},
@@ -353,7 +353,7 @@
"Message": "请指定任务类型"
}
],
"ID": "5b83fd48-5d1e-4bdd-ac19-2b1dedb5776a"
"ID": "25a587e9-40ec-4674-ab47-3d1ca0fc54bd"
}
]
},
@@ -396,10 +396,10 @@
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务信息.项目可分配工时"
},
"ID": "0d5ac7332bf942d1998fe6e03c20481e"
"ID": "dce9e9bfa9454e68a44bc81b7559c096"
}
],
"ID": "4661da29-6cba-4137-9ee1-3d33a08eadeb"
"ID": "3b0c61b7-4462-4f4d-9445-8aca9294039c"
},
{
"CommandList": [
@@ -410,10 +410,10 @@
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务信息.父任务可分配工时"
},
"ID": "b1aff090a96e4e618b49838429706ff5"
"ID": "149f6070b4f94a4aa8f1b7106553337a"
}
],
"ID": "88baa758-743d-49d3-9ee6-b0b22da513df"
"ID": "3c3ed4d6-f6bd-40e6-885f-6f0a2c4e09be"
}
],
"Comments": "严格模式下,根据是否有父任务来计算本次预算工时的上限"
@@ -447,12 +447,42 @@
}
}
],
"ID": "0a4e2697-1831-44b7-bfc4-f7a5439e046e"
"ID": "5653b3c9-2877-4aab-8d5a-255ea39acd1e"
}
]
},
{
"$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": 5
},
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"开启严格模式下任务预算工时不能为0\""
}
}
],
"ID": "0b140361-0f9d-4242-8475-e109b935c2a6"
}
]
}
],
"ID": "7ae391ca-88f5-424d-8756-636d8cd84c69"
"ID": "c0a5dc55-9938-449a-a6b4-4975853e25bb"
}
],
"Comments": "校验工时情况是否通过"

View File

@@ -340,7 +340,7 @@
"Message": "项目名称及代号不能为空"
}
],
"ID": "67dc248f-a0f8-4993-98d1-76bbc52aab96"
"ID": "a2f6f6e4-af7c-42bf-872f-89d9c0629630"
}
]
},
@@ -366,7 +366,7 @@
"Message": "项目经理不能为空"
}
],
"ID": "581984ca-729a-4b01-a938-7fb9705c656b"
"ID": "3ae7f08a-5d70-4ddb-8392-840b30a464f2"
}
]
},
@@ -408,7 +408,7 @@
"Message": "项目所属客户及部门不能为空"
}
],
"ID": "65b1ae4d-df27-48b0-a56c-ab1c2e6ff668"
"ID": "af25a7e0-3a57-4f07-8950-5068351bc73d"
}
]
},
@@ -451,7 +451,7 @@
"Message": "项目计划日期不能为空"
}
],
"ID": "39a702b1-bc56-45e1-94dc-6c3b4f916d48"
"ID": "74f6d5d5-d781-429b-bcd6-9a6bbf63bcc6"
}
]
},
@@ -460,40 +460,46 @@
"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": "1"
},
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目信息.项目预算工时"
}
},
"value": "%Null%"
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目信息.严格模式"
}
]
},
"value": "1"
},
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "严格模式下,预算工时必须提供"
"$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": 5
},
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "严格模式下,预算工时必须提供"
}
],
"ID": "34c30522-0706-4f83-8024-15554ffe9026"
}
]
}
],
"ID": "3c1c2e13-f6ae-4806-8d85-e0d95a256140"
"ID": "47a45adf-aeba-4d52-acda-a433a0ddabdd"
}
]
},
@@ -503,7 +509,7 @@
"Message": "校验通过"
}
],
"ID": "3a297371-5af1-4b51-8c75-d72eea8b849f"
"ID": "f6c86803-2808-476b-aaeb-1fc93248089d"
},
{
"CommandList": [
@@ -513,7 +519,7 @@
"Message": "项目不存在"
}
],
"ID": "64651437-a3cd-47cb-bf1c-05d173b6b205"
"ID": "f389064d-ab22-4766-b2a5-587190cf13e0"
}
]
}