{"Message":"1. 完善任务新增、变更时的预算工时核验,对子任务类型做出判断;\r\n2. 修改汇报时的填报字段,去掉项目ID,由后端生成;","MessageType":2,"Modules":[{"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":15,"Name":"ServerCommand/修改任务预算工时"},{"State":1,"Type":15,"Name":"ServerCommand/新增任务"},{"State":1,"Type":1,"Name":"PCPage/首页"},{"State":3,"Type":23,"Name":"TableView/项目任务树视图"}],"Version":"v1"}

This commit is contained in:
SHAMUSPC\NINGMEI
2024-04-19 20:17:37 +08:00
parent fab56aba4b
commit 06f51da9b9
16 changed files with 1242 additions and 1264 deletions

View File

@@ -56,6 +56,14 @@
},
"ColumnName": "项目ID"
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "父任务ID",
"GUID": "b3058106-27e3-4405-825a-c6317d65dbba"
},
"ColumnName": "父任务ID"
},
{
"BindingInfo": {
"TableName": "任务表",
@@ -87,7 +95,60 @@
},
"TopCount": "1"
},
"ID": "e249fcc1e8314d89994ed379114805fb"
"ID": "2b57c3279a694782aa04fa8d1ecdb672"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "项目统计",
"TableValue": {
"TableName": "View_项目统计信息",
"TableValueType": 1,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "View_项目统计信息",
"ColumnName": "项目ID",
"GUID": "e2c10b48-d276-43ff-92d3-6982554995d3",
"RelationBinding": {
"RelatedTable": "项目表",
"RelatedColumn": "ID",
"DisplayColumn": "严格模式"
}
},
"ColumnName": "严格模式"
},
{
"BindingInfo": {
"TableName": "View_项目统计信息",
"ColumnName": "项目预算工时",
"GUID": "df4b665e-bf05-415f-b1d6-44ef6268356f"
},
"ColumnName": "项目预算工时"
},
{
"BindingInfo": {
"TableName": "View_项目统计信息",
"ColumnName": "已分配任务工时",
"GUID": "e0b92957-2058-4acf-8f85-c8cb21e7751c"
},
"ColumnName": "已分配任务工时"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "View_项目统计信息",
"ColumnName": "项目ID",
"GUID": "a21318d5-5050-4baa-a025-483041bba932"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务表.项目ID"
}
},
"TopCount": "1"
},
"ID": "4d7974b85a6845abbf13a6049e366122"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
@@ -99,249 +160,235 @@
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务表"
"SerializeProperty": "=项目统计.严格模式"
}
},
"value": "%Null%",
"compareType": 1
"value": "1"
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "项目统计",
"TableValue": {
"TableName": "View_项目统计信息",
"TableValueType": 1,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "View_项目统计信息",
"ColumnName": "项目ID",
"GUID": "8be465f9-1173-4551-ba9c-8077e9e1068a",
"RelationBinding": {
"RelatedTable": "项目表",
"RelatedColumn": "ID",
"DisplayColumn": "严格模式"
"$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": "=任务表.父任务ID"
}
},
"ColumnName": "严格模式"
"value": "%Null%"
},
{
"BindingInfo": {
"TableName": "View_项目统计信息",
"ColumnName": "项目预算工时",
"GUID": "c3f88088-ff8f-4ba4-b4b8-0b9b680f51b1"
},
"ColumnName": "项目预算工时"
},
{
"BindingInfo": {
"TableName": "View_项目统计信息",
"ColumnName": "已分配任务工时",
"GUID": "239a7f3e-877a-4045-ba12-838408b52584"
},
"ColumnName": "已分配任务工时"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "View_项目统计信息",
"ColumnName": "项目ID",
"GUID": "f6308398-2aec-4b4a-9e2a-ec524facb605"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务表.项目ID"
}
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "预算工时上限",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目统计.项目预算工时-项目统计.已分配任务工时-任务表.任务预算工时"
},
"ID": "b20c1c796f94456fa4c385c315a4cdda"
}
],
"ID": "52853e08-03e3-452c-a809-3fb79bd21885"
},
"TopCount": "1"
},
"ID": "66c3b6d4cc42478aaa57db9f14eade1e"
{
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "父任务",
"TableValue": {
"TableName": "任务表",
"TableValueType": 1,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "层级",
"GUID": "71447dd9-ed15-40d3-8c95-35af02be1228"
},
"ColumnName": "层级"
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务预算工时",
"GUID": "f2ea1508-f30e-412f-a345-3ede9d6c420d"
},
"ColumnName": "任务预算工时"
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "总计划工时",
"GUID": "1d7f0d26-c3c4-4fd5-9d35-d8c6775d2e75"
},
"ColumnName": "总计划工时"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务表",
"ColumnName": "ID",
"GUID": "a11173ee-ce04-46d5-a2fe-57bac8f3d19f"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务表.父任务ID"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "aa8c47d4b5eb4239af91776e1e32a8cb"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "预算工时上限",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务.任务预算工时-父任务.总计划工时--任务表.任务预算工时"
},
"ID": "cb9ee25307d1485c8e3ac45336def641"
}
],
"ID": "1e3945ac-3720-41d8-bcdf-ed397bcedcf8"
}
],
"Comments": "严格模式下,根据是否有父任务来计算本次预算工时的上限"
},
{
"$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": "1"
},
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新预算工时"
}
},
"value": "0",
"compareType": 2
},
{
"$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": 2
"$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": "任务预算工时超标,请修改或申请新的预算。",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=IF(父任务ID>0,\"预算工时超标:父任务可只配计划工时不足,请修改后提交!\",\"预算工时超标:项目可只配计划工时不足,请修改后提交!\")"
},
"CustomReturns": [
{
"ReturnPropertyName": "新工时",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务表.任务预算工时"
}
"ReturnPropertyName": "新工时"
}
]
}
],
"ID": "5e2aa6a9-e408-44f0-90f1-e11fdb5270b7"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务表",
"ShowConfirm": false,
"RowsToUpdate": 1,
"RowsToUpdateCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务表",
"ColumnName": "ID",
"GUID": "36cde956-3506-4020-942d-ca6bb7016a8e"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务预算工时",
"GUID": "b78102b7-bcdb-4145-a54e-46accc090b40"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新预算工时"
}
}
],
"ParamNameToSaveNewRowValue": "新任务"
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "项目动态",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目ID",
"GUID": "3dfb20d5-c014-4d00-b1fd-f84951a03919"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务表.项目ID"
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目动态",
"GUID": "f026ebd2-95a1-4077-8e6c-e883138826b1"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"调整了任务[\"&任务表.任务名称&\"]的预算工时\""
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "执行人",
"GUID": "cd4d5d5b-62f7-4c11-916d-96c05c629d09"
},
"Value": "%CurrentUser%"
}
]
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "新增成功",
"CustomReturns": [
{
"ReturnPropertyName": "新工时",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新预算工时"
}
}
]
}
],
"ID": "c21c7ff8-478e-446d-af98-6e5ab1bd0d2d"
}
],
"Comments": "如果任务设置了预算工时,则检测是否超标"
}
],
"ID": "630ad741-4de8-48aa-8b47-71f462d8aa63"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "任务不存在",
"CustomReturns": [
{
"ReturnPropertyName": "新工时",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务表.任务预算工时"
}
"ID": "c667d961-bb93-499b-9e03-482f4d1f115a"
}
]
}
],
"ID": "4258f225-dd00-46aa-a4b9-38208b689ff6"
"ID": "275a2a65-0549-49f3-99d0-862677c550f5"
}
]
},
{
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务表",
"ShowConfirm": false,
"RowsToUpdate": 1,
"RowsToUpdateCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务表",
"ColumnName": "ID",
"GUID": "36cde956-3506-4020-942d-ca6bb7016a8e"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务预算工时",
"GUID": "e283365a-ac2d-4c9e-90f5-92658dc5d899"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新预算工时"
}
}
],
"ParamNameToSaveNewRowValue": "新任务"
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "项目动态",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目ID",
"GUID": "01da9d3d-946f-4118-8d88-5349a0502f34"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务表.项目ID"
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目动态",
"GUID": "d7d7c0ba-fafc-4c3d-90b5-da4cd5d222f9"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"调整了任务[\"&任务表.任务名称&\"]的预算工时\""
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "执行人",
"GUID": "02e1aaae-adfd-4e74-936f-966d7d6bc110"
},
"Value": "%CurrentUser%"
}
]
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "新增成功",
"CustomReturns": [
{
"ReturnPropertyName": "新工时",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新预算工时"
}
}
]
}

View File

@@ -132,7 +132,7 @@
},
"TopCount": "1"
},
"ID": "89a933bed8a0415093c1ca7e65863c02"
"ID": "b20694e9a4684d6bb38f4af5104fe73a"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
@@ -144,11 +144,10 @@
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目统计"
"SerializeProperty": "=项目统计.严格模式"
}
},
"value": "%Null%",
"compareType": 1
"value": "1"
},
"CommandList": [
{
@@ -156,360 +155,355 @@
"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": "0",
"compareType": 2
},
{
"$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": 2
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务ID"
}
]
},
"value": "%Null%"
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "预算工时上限",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目统计.项目预算工时-项目统计.已分配任务工时"
},
"ID": "9dce806ffef440e7b85e5861422b0269"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "层级",
"ParameterValue": "1",
"ID": "289bf7d065ed4d829192ec2cfcd1aff9"
}
],
"ID": "e061f809-9278-416a-b480-aef74ad8caeb"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "父任务",
"TableValue": {
"TableName": "任务表",
"TableValueType": 1,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "层级",
"GUID": "71447dd9-ed15-40d3-8c95-35af02be1228"
},
"ColumnName": "层级"
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务预算工时",
"GUID": "f2ea1508-f30e-412f-a345-3ede9d6c420d"
},
"ColumnName": "任务预算工时"
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "总计划工时",
"GUID": "1d7f0d26-c3c4-4fd5-9d35-d8c6775d2e75"
},
"ColumnName": "总计划工时"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务表",
"ColumnName": "ID",
"GUID": "a11173ee-ce04-46d5-a2fe-57bac8f3d19f"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务ID"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "0cb2c214b7bd4342b32ca610904d9cd0"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "预算工时上限",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务.任务预算工时-父任务.总计划工时"
},
"ID": "fb21eb10cb6c45faa4f7f1f93def7cf5"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "层级",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务.层级+1"
},
"ID": "cbfea9db3fa545839e30188fb7c9dfba"
}
],
"ID": "c3e2ff5b-e415-43d0-b7c7-079efdaeeaed"
}
],
"Comments": "严格模式下,根据是否有父任务来计算本次预算工时的上限"
},
{
"$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": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=预算工时"
},
"compareType": 4
},
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "任务预算工时超标,请修改或申请新的预算。"
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=IF(父任务ID>0,\"预算工时超标:父任务可只配计划工时不足,请修改后提交!\",\"预算工时超标:项目可只配计划工时不足,请修改后提交!\")"
}
}
],
"ID": "c34452bd-96e1-4411-be79-24f1fdab9459"
},
{
"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": "=父任务ID"
}
},
"value": "%Null%"
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "层级",
"ParameterValue": "1",
"ID": "b16d29a07b0c438fbbb99f78efd15b82"
}
],
"ID": "cdd0d56f-8d1c-47da-9f46-0dc7557e3e4d"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "父任务",
"TableValue": {
"TableName": "任务表",
"TableValueType": 1,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "层级",
"GUID": "71447dd9-ed15-40d3-8c95-35af02be1228"
},
"ColumnName": "层级"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务表",
"ColumnName": "ID",
"GUID": "a11173ee-ce04-46d5-a2fe-57bac8f3d19f"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务ID"
}
},
"TopCount": "1"
},
"ID": "a739bad14f7e43d0bfa3c64950d43eed"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "层级",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务.层级+1"
},
"ID": "94dddad10a1647e3906a84c6cf0793dc"
}
],
"ID": "b1ec1f65-b9b5-409f-981b-514b838ecbec"
}
]
},
{
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "d1ce9d9b-3111-45d3-86cb-9d2d13ca96a9"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "父任务ID",
"GUID": "663b0fd7-aeaf-45bd-9bd8-5081460bf68b"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务ID"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务名称",
"GUID": "8f65568f-c2bf-47dd-a801-33660d2d3b1e"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务标题"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "执行者",
"GUID": "cd0b6e71-917b-4141-97fa-759aee7d60dc"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=执行人"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "开始时间",
"GUID": "3c7c2bda-50f9-428a-a444-c72e4ab3bba8"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=开始日期"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "结束时间",
"GUID": "10d5a495-3443-43f1-814a-7b26b663a59b"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=结束日期"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务类型",
"GUID": "7182f12f-6e4a-456f-93dd-259034437aec"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务类型"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "分组ID",
"GUID": "30b21965-c8f2-446f-b463-fd5acbe18fad"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务分组"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "版本",
"GUID": "00196d28-a6a3-41b9-b4ff-96e22d2908d2"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务版本"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务说明",
"GUID": "b5c7d432-0b10-4fd8-a018-59dda1fa58bd"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务说明"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "备注",
"GUID": "d16f82bf-c2b1-45e1-a6e7-09ec92385858"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=备注"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "层级",
"GUID": "85f9bb94-726b-45d3-a097-0e26e70a57db"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=层级"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务预算工时",
"GUID": "06ca0878-5d0b-4450-8d58-d0a598927853"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=预算工时"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务状态",
"GUID": "3f066ba2-b601-4a29-a83b-d0c77ac63dc7"
},
"Value": "0"
}
],
"ParamNameToSaveNewRowValue": "新任务"
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "项目动态",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目ID",
"GUID": "10414937-35a4-4c78-88ee-573c87c57613"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目动态",
"GUID": "78700379-81df-4091-a3c0-c0ce09788052"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"新增任务[\"&任务标题&\"]\""
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "执行人",
"GUID": "2a010c61-4894-4c8f-9e2c-3a7d6c7eee3c"
},
"Value": "%CurrentUser%"
}
]
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "新增任务成功,请添加参与人和设置人员岗位、薪资等信息!"
}
],
"ID": "bfea1c53-d963-4a65-9bf7-f3f7d4bcbe2c"
"ID": "664e3f3e-0afe-4f14-9aa0-3deb8ee1c12b"
}
],
"Comments": "如果任务设置了预算工时,则检测是否超标"
]
}
],
"ID": "5d3bd8b4-c692-4b38-ad2d-cfa994a0e420"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "项目不存在"
}
],
"ID": "00cae617-053f-407e-9436-464e88870862"
"ID": "a7c14fc3-d8ac-4e4b-a907-45e333a5524e"
}
]
},
{
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "4891d943-994f-4cfc-be42-63246917534c"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "父任务ID",
"GUID": "048785f7-9c18-48ce-8282-5739f8355965"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务ID"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务名称",
"GUID": "30d333e4-7d0e-4b8f-a568-75ce9621d7be"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务标题"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "执行者",
"GUID": "03acb5a3-823a-4e68-9303-4aa11489fc86"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=执行人"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "开始时间",
"GUID": "fd5fb34e-2fc6-4663-bdbd-a31c0463fe22"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=开始日期"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "结束时间",
"GUID": "4b057191-223f-4331-93ec-5af229c53287"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=结束日期"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务类型",
"GUID": "eb45fdd2-bd5e-4d65-b9e7-8df8e44de323"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务类型"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "分组ID",
"GUID": "3a46616c-aa5a-4982-a643-73f7ee4144cb"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务分组"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "版本",
"GUID": "83a5b992-e679-46dd-a82c-4982198d8c8b"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务版本"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务说明",
"GUID": "2d46c561-1de3-4c23-930b-54b10720dafd"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务说明"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "备注",
"GUID": "754d3dc4-bc47-4f39-a088-11a53e96f150"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=备注"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "层级",
"GUID": "b2a9059f-0224-4121-9d31-73dc724f7190"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=层级"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务预算工时",
"GUID": "20ac10c7-62de-47e9-9be1-4395796d3279"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=预算工时"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务状态",
"GUID": "6eefaa67-0a7b-4214-90f3-11e0fe79ae51"
},
"Value": "0"
}
],
"ParamNameToSaveNewRowValue": "新任务"
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "项目动态",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目ID",
"GUID": "017d289e-78e0-4eaa-89e8-0d3cfbf57d60"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目动态",
"GUID": "f351575c-6a88-4d02-bc3c-4fa73691434d"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"新增任务[\"&任务标题&\"]\""
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "执行人",
"GUID": "3bb8e80c-258e-4d88-8554-bad92a4020bb"
},
"Value": "%CurrentUser%"
}
]
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "新增任务成功,请添加参与人和设置人员岗位、薪资等信息!"
}
]
},