{"Message":"优化预算申请流程","MessageType":2,"Modules":[{"State":1,"Type":23,"Name":"TableView/View_项目统计信息"},{"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":15,"Name":"ServerCommand/变更任务状态"},{"State":1,"Type":15,"Name":"ServerCommand/修改任务预算工时"},{"State":1,"Type":15,"Name":"ServerCommand/批准项目预算申请"},{"State":1,"Type":15,"Name":"ServerCommand/新增或修改项目"},{"State":1,"Type":36,"Name":"ShareCommandContainer/发起预算申请"},{"State":1,"Type":28,"Name":"ProcessItem/预算申请"},{"State":1,"Type":15,"Name":"ServerCommand/计算报工数据"},{"State":1,"Type":15,"Name":"ServerCommand/任务发起流程前校验"},{"State":1,"Type":28,"Name":"ProcessItem/新增任务流程"}],"Version":"v1"}
This commit is contained in:
@@ -275,7 +275,7 @@
|
||||
"Message": "请等待父任务审批后方可发起!"
|
||||
}
|
||||
],
|
||||
"ID": "0be8de78-c7c0-414b-9ea8-21bf727c7826"
|
||||
"ID": "c66244a0-0b2c-4d80-b302-9d8646e26876"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -301,7 +301,7 @@
|
||||
"Message": "当前项目未指定项目经理,请指定后再试"
|
||||
}
|
||||
],
|
||||
"ID": "fbf23b28-53c3-4c6e-b04d-8fd2a22e6ff8"
|
||||
"ID": "bfa64f70-1f93-43cb-b795-c7d544722030"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -327,7 +327,7 @@
|
||||
"Message": "请指定任务负责人"
|
||||
}
|
||||
],
|
||||
"ID": "d0460f18-1d55-4c08-a921-b6e7b1a9fc0e"
|
||||
"ID": "2f4170e1-257f-40c3-98a6-17323c4e8ea2"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -353,33 +353,7 @@
|
||||
"Message": "请指定任务类型"
|
||||
}
|
||||
],
|
||||
"ID": "3a2ec4ad-512f-4ee6-93fd-b25226907433"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$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%"
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": "请为任务指定版本"
|
||||
}
|
||||
],
|
||||
"ID": "f50a279e-15ee-4d37-82b6-25f971f78c6f"
|
||||
"ID": "5b83fd48-5d1e-4bdd-ac19-2b1dedb5776a"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -425,7 +399,7 @@
|
||||
"ID": "0d5ac7332bf942d1998fe6e03c20481e"
|
||||
}
|
||||
],
|
||||
"ID": "1510307d-3f0e-4506-a698-da76ba49d1a3"
|
||||
"ID": "4661da29-6cba-4137-9ee1-3d33a08eadeb"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -439,7 +413,7 @@
|
||||
"ID": "b1aff090a96e4e618b49838429706ff5"
|
||||
}
|
||||
],
|
||||
"ID": "f620c048-3338-49db-99c9-19ab316aa4d1"
|
||||
"ID": "88baa758-743d-49d3-9ee6-b0b22da513df"
|
||||
}
|
||||
],
|
||||
"Comments": "严格模式下,根据是否有父任务来计算本次预算工时的上限"
|
||||
@@ -473,12 +447,12 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "8bd11489-d35c-4d5c-bd1f-dc8767600961"
|
||||
"ID": "0a4e2697-1831-44b7-bfc4-f7a5439e046e"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "743e50f1-e5d4-4c01-9c28-f609accef155"
|
||||
"ID": "7ae391ca-88f5-424d-8756-636d8cd84c69"
|
||||
}
|
||||
],
|
||||
"Comments": "校验工时情况是否通过"
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "63b4e781-32d6-4f9d-b558-8da92670cbdb",
|
||||
"GUID": "b41170ef-8882-411d-bf6c-3590f4ec537b",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "项目ID",
|
||||
@@ -54,7 +54,7 @@
|
||||
"ColumnName": "项目ID"
|
||||
},
|
||||
{
|
||||
"GUID": "f88b0aae-fe38-4484-821c-a8bb82bf1bd0",
|
||||
"GUID": "abc4fdee-b86b-4311-9850-1e04eefce172",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "项目ID",
|
||||
@@ -68,7 +68,7 @@
|
||||
"ColumnName": "严格模式"
|
||||
},
|
||||
{
|
||||
"GUID": "08bfd598-0427-4fbc-9861-ab54645ae3fb",
|
||||
"GUID": "8be7c72a-0bbe-4013-9fa2-793cdab46361",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "项目ID",
|
||||
@@ -82,7 +82,7 @@
|
||||
"ColumnName": "项目预算工时"
|
||||
},
|
||||
{
|
||||
"GUID": "ab0089b9-365f-429f-8afc-b4cbe79f6daf",
|
||||
"GUID": "31914297-58ea-48e9-bde6-f442ea43940b",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "项目ID",
|
||||
@@ -96,7 +96,21 @@
|
||||
"ColumnName": "项目总分配工时"
|
||||
},
|
||||
{
|
||||
"GUID": "fd0ab476-0a14-44a5-9be5-189b79249777",
|
||||
"GUID": "1ccf9321-bb0f-4b36-b882-91fddac00857",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "项目ID",
|
||||
"GUID": "196e858f-ae77-4c8b-b383-8990780d75b3",
|
||||
"RelationBinding": {
|
||||
"RelatedTable": "项目平行视图",
|
||||
"RelatedColumn": "ID",
|
||||
"DisplayColumn": "工时分配方式"
|
||||
}
|
||||
},
|
||||
"ColumnName": "工时分配方式"
|
||||
},
|
||||
{
|
||||
"GUID": "e92d4545-3b50-4c38-b871-f02a7403c6d2",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "任务名称",
|
||||
@@ -105,7 +119,7 @@
|
||||
"ColumnName": "任务名称"
|
||||
},
|
||||
{
|
||||
"GUID": "83d79cc9-f5f2-4913-a854-f060e8001686",
|
||||
"GUID": "83c3fc51-0e13-4e4f-bb13-e87cee55450c",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "总分配工时",
|
||||
@@ -114,7 +128,7 @@
|
||||
"ColumnName": "总分配工时"
|
||||
},
|
||||
{
|
||||
"GUID": "5ea965f0-5ff0-4b4d-b95c-add43366edfa",
|
||||
"GUID": "866e108f-0e48-41a8-8d08-ccbbccb87ced",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "已分配工时",
|
||||
@@ -123,7 +137,7 @@
|
||||
"ColumnName": "已分配工时"
|
||||
},
|
||||
{
|
||||
"GUID": "819304f3-ad63-4855-af23-d171ed5cba94",
|
||||
"GUID": "cef7b6e7-62ce-4273-b3c9-27cc7eccc50e",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "父任务ID",
|
||||
@@ -132,7 +146,7 @@
|
||||
"ColumnName": "父任务ID"
|
||||
},
|
||||
{
|
||||
"GUID": "a20185ef-1a3a-4617-bcbc-fa569b9612a1",
|
||||
"GUID": "44fce238-52b6-4279-8349-67ead4cdde00",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "父任务ID",
|
||||
@@ -146,7 +160,7 @@
|
||||
"ColumnName": "父任务可分配工时"
|
||||
},
|
||||
{
|
||||
"GUID": "aa6ed496-b14c-45ba-8c49-e05ef55583c1",
|
||||
"GUID": "54aac56a-a596-4bd4-972d-51b7ac2cba6a",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务平行视图",
|
||||
"ColumnName": "本任务已分配工时",
|
||||
@@ -169,16 +183,7 @@
|
||||
},
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "6b6b64f68f064deaa1cd5773df8e8c9a"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "项目可分配工时",
|
||||
"ParameterValue": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务表.项目预算工时-任务表.项目总分配工时"
|
||||
},
|
||||
"ID": "23a8904191ab4dc486ac16c1ba70cd5b"
|
||||
"ID": "a451c4f01e354cd397cdcdd6487450e8"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
|
||||
@@ -194,12 +199,22 @@
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务表.严格模式"
|
||||
"SerializeProperty": "=任务表.工时分配方式"
|
||||
}
|
||||
},
|
||||
"value": "1"
|
||||
"value": "4",
|
||||
"compareType": 1
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "项目可分配工时",
|
||||
"ParameterValue": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务表.项目预算工时-任务表.项目总分配工时"
|
||||
},
|
||||
"ID": "2b08b895ad5b4f2697d6045bcb03f0c1"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
"ConditionAndCommandPairList": [
|
||||
@@ -209,225 +224,265 @@
|
||||
"param": {
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务表.严格模式"
|
||||
}
|
||||
},
|
||||
"value": "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": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务表.本任务已分配工时"
|
||||
},
|
||||
"compareType": 4
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"任务已被分配消耗\"&任务表.本任务已分配工时&\"小时,修改后工时,不可低于此值。\""
|
||||
},
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "新工时",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务表.总分配工时"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "6b0aa3aa-56a9-4239-9cf8-a7cbd1c4bb6c"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$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": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=项目可分配工时"
|
||||
},
|
||||
"ID": "31c222793f824eb3a84d00f1e0e3811f",
|
||||
"Comments": "如果没有父任务,则将项目可分配工时+任务当前的总分配工时 (相当于这个任务没有分)"
|
||||
}
|
||||
],
|
||||
"ID": "6e74a7be-eb9a-4408-b67b-ca21492fd483"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "上级剩余工时",
|
||||
"ParameterValue": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务表.父任务可分配工时"
|
||||
},
|
||||
"ID": "56a7d8ee803449268e0e8eccd66dc689",
|
||||
"Comments": "如果没有父任务,则将项目可分配工时+任务当前的总分配工时 (相当于这个任务没有分)"
|
||||
}
|
||||
],
|
||||
"ID": "c4efc85f-e4f2-44b5-b1e6-fbce69f5de0e"
|
||||
}
|
||||
],
|
||||
"Comments": "严格模式下,根据是否有父任务来计算本次预算工时的上限"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "预算工时上限",
|
||||
"ParameterValue": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=上级剩余工时+任务表.总分配工时"
|
||||
},
|
||||
"ID": "bf6bea055267461f804613fa476f0ea0",
|
||||
"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": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"任务工时超标,无法修改,当前任务最大上线为:\"&预算工时上限&\"小时\""
|
||||
},
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "新工时"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "759b97cb-3f2d-4ea1-9ebd-d16964c057bb"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "8465578f-e102-4c1d-91d3-7b1323ae3650"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$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": "87d0d5c7-6093-4548-8f03-96d4714af78b"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=新预算工时"
|
||||
}
|
||||
},
|
||||
"value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务表.本任务已分配工时"
|
||||
},
|
||||
"compareType": 4
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"任务已被分配消耗\"&任务表.本任务已分配工时&\"小时,修改后工时,不可低于此值。\""
|
||||
},
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "新工时",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务表.总分配工时"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "92793fbb-474c-4651-bf6c-219ee0a2c38d"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$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": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=项目可分配工时"
|
||||
},
|
||||
"ID": "0ef5c7f20704410eabf21c4b868fe64b",
|
||||
"Comments": "如果没有父任务,则将项目可分配工时+任务当前的总分配工时 (相当于这个任务没有分)"
|
||||
}
|
||||
],
|
||||
"ID": "a49e5ab0-3ddc-459a-9d75-8fb66f87f532"
|
||||
"ParamNameToSaveNewRowValue": "新任务"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "项目动态",
|
||||
"UpdateType": "add",
|
||||
"ShowConfirm": false,
|
||||
"UpdateBindingValues": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "上级剩余工时",
|
||||
"ParameterValue": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务表.父任务可分配工时"
|
||||
"BindingInfo": {
|
||||
"TableName": "项目动态",
|
||||
"ColumnName": "项目ID",
|
||||
"GUID": "0714186a-58f5-45a1-938f-d2d93c1cc690"
|
||||
},
|
||||
"ID": "37e3b8c29aa54194a07548cd3ba217ce",
|
||||
"Comments": "如果没有父任务,则将项目可分配工时+任务当前的总分配工时 (相当于这个任务没有分)"
|
||||
}
|
||||
],
|
||||
"ID": "3678e11f-48e1-4074-a7fa-fe41f8906a69"
|
||||
}
|
||||
],
|
||||
"Comments": "严格模式下,根据是否有父任务来计算本次预算工时的上限"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "预算工时上限",
|
||||
"ParameterValue": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=上级剩余工时+任务表.总分配工时"
|
||||
},
|
||||
"ID": "fc23623d44294e18935812304bbb80ee",
|
||||
"Comments": "上级任务剩余可用的工时+当前任务的总工时,相当于没有分给它"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
"ConditionAndCommandPairList": [
|
||||
{
|
||||
"Condition": {
|
||||
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||||
"param": {
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=预算工时上限"
|
||||
"SerializeProperty": "=任务表.项目ID"
|
||||
}
|
||||
},
|
||||
"value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=新预算工时"
|
||||
},
|
||||
"compareType": 4
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"任务工时超标,无法修改,当前任务最大上线为:\"&预算工时上限&\"小时\""
|
||||
"BindingInfo": {
|
||||
"TableName": "项目动态",
|
||||
"ColumnName": "项目动态",
|
||||
"GUID": "a2cbc92d-02bb-40e4-81ce-2f9d87c7139a"
|
||||
},
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "新工时"
|
||||
}
|
||||
]
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"调整了任务[\"&任务表.任务名称&\"]的预算工时,\"&任务表.项目预算工时&\"=>\"&新预算工时"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "项目动态",
|
||||
"ColumnName": "执行人",
|
||||
"GUID": "616a4c98-401a-4cc1-bdcf-5f70ba8a4cc5"
|
||||
},
|
||||
"Value": "%CurrentUser%"
|
||||
}
|
||||
],
|
||||
"ID": "b3096e68-d3ff-4a72-b3fb-7a6a3551140c"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "新增成功",
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "新工时",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=新预算工时"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "10e6dd03-d092-4259-b5ba-1f34b8add596"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$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": "fec39811-ef5c-459b-9a2a-cf3de8e3f5dd"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=新预算工时"
|
||||
}
|
||||
}
|
||||
],
|
||||
"ParamNameToSaveNewRowValue": "新任务"
|
||||
"ID": "7bbbfcd6-8aa3-4496-8b2d-e803f0ec9fd1"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "项目动态",
|
||||
"UpdateType": "add",
|
||||
"ShowConfirm": false,
|
||||
"UpdateBindingValues": [
|
||||
"CommandList": [
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "项目动态",
|
||||
"ColumnName": "项目ID",
|
||||
"GUID": "7859703a-b22f-4b2f-a468-853085bb1e2a"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务表.项目ID"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "项目动态",
|
||||
"ColumnName": "项目动态",
|
||||
"GUID": "3dcc1d83-66d3-4331-99fa-b37735c410ac"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"调整了任务[\"&任务表.任务名称&\"]的预算工时,\"&任务表.项目预算工时&\"=>\"&新预算工时"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "项目动态",
|
||||
"ColumnName": "执行人",
|
||||
"GUID": "7e31e6a5-cf58-4e66-9b51-bc7eeda5ba54"
|
||||
},
|
||||
"Value": "%CurrentUser%"
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "项目已设置为“不分配”工时模式,无法修改!",
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "新工时",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务表.总分配工时"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "新增成功",
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "新工时",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=新预算工时"
|
||||
}
|
||||
],
|
||||
"ID": "1a41098e-e66a-4c90-8be9-02aa7e59efa8"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -456,66 +511,6 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"FinallyCommandPart": {
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "项目统计",
|
||||
"TableValue": {
|
||||
"TableName": "View_项目统计信息",
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "e712cac8-db4c-4e49-bbf4-22db3754f7be",
|
||||
"BindingInfo": {
|
||||
"TableName": "View_项目统计信息",
|
||||
"ColumnName": "项目ID",
|
||||
"GUID": "e2c10b48-d276-43ff-92d3-6982554995d3",
|
||||
"RelationBinding": {
|
||||
"RelatedTable": "项目表",
|
||||
"RelatedColumn": "ID",
|
||||
"DisplayColumn": "严格模式"
|
||||
}
|
||||
},
|
||||
"ColumnName": "严格模式"
|
||||
},
|
||||
{
|
||||
"GUID": "0f378adc-4c2f-4583-9380-29ab9162a247",
|
||||
"BindingInfo": {
|
||||
"TableName": "View_项目统计信息",
|
||||
"ColumnName": "项目预算工时",
|
||||
"GUID": "df4b665e-bf05-415f-b1d6-44ef6268356f"
|
||||
},
|
||||
"ColumnName": "项目预算工时"
|
||||
},
|
||||
{
|
||||
"GUID": "365bbef0-0c71-4147-8ca1-6fae9781df36",
|
||||
"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": "62875afcfcce4e3995ac1f427b544e8c"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "56bf3a1a-b506-4531-9d01-f209f6e2f7b3",
|
||||
"GUID": "040b7e18-4298-4ef0-b6cc-1b7bb2aec85f",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "项目ID",
|
||||
@@ -59,7 +59,7 @@
|
||||
"ColumnName": "项目ID"
|
||||
},
|
||||
{
|
||||
"GUID": "a2c50e9a-2c0f-4d7e-b43e-19456cb3c5ef",
|
||||
"GUID": "97c09999-a93d-42a9-a5d1-fb5f4ee489a7",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "任务名称",
|
||||
@@ -68,7 +68,7 @@
|
||||
"ColumnName": "任务名称"
|
||||
},
|
||||
{
|
||||
"GUID": "c5ee4845-58d1-4e51-95c0-aef99ba9da4c",
|
||||
"GUID": "85821668-8b53-4bc5-8864-e3e6a3093c6b",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "任务状态",
|
||||
@@ -77,7 +77,7 @@
|
||||
"ColumnName": "任务状态"
|
||||
},
|
||||
{
|
||||
"GUID": "f0106ccd-42db-42c2-862f-a612166fa173",
|
||||
"GUID": "f8c364be-a0ef-4103-a63b-5548e9b392c2",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "任务状态",
|
||||
@@ -91,7 +91,7 @@
|
||||
"ColumnName": "任务状态文本"
|
||||
},
|
||||
{
|
||||
"GUID": "63a4f69f-e22f-4f00-a188-6ffbb5607a6a",
|
||||
"GUID": "0fbac508-af88-4952-9d91-0ef3c4fa97a4",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "任务负责人",
|
||||
@@ -100,7 +100,7 @@
|
||||
"ColumnName": "任务负责人"
|
||||
},
|
||||
{
|
||||
"GUID": "e6246a80-54cc-403c-9f9b-566de00dc7b1",
|
||||
"GUID": "744ba217-aca5-4267-a69e-9fdc4fa8bc8e",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "开始时间",
|
||||
@@ -109,7 +109,7 @@
|
||||
"ColumnName": "开始时间"
|
||||
},
|
||||
{
|
||||
"GUID": "5ffd390a-0c35-4cca-a52b-af7231ea8381",
|
||||
"GUID": "2bd5f4e1-452a-4198-a1fd-c27007ee513a",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "结束时间",
|
||||
@@ -118,7 +118,7 @@
|
||||
"ColumnName": "结束时间"
|
||||
},
|
||||
{
|
||||
"GUID": "3206d98b-fd30-41e5-8041-bfd090722e03",
|
||||
"GUID": "920c5f86-f188-48fe-8663-c7fae7dd80b0",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "任务类型",
|
||||
@@ -142,7 +142,7 @@
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "3573b52ffc3742a7bab1dc862b262276"
|
||||
"ID": "0626fb25bcc8447fbc4d740f1354d568"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
@@ -183,18 +183,17 @@
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "新任务状态",
|
||||
"ParameterName": "状态表",
|
||||
"TableValue": {
|
||||
"TableName": "任务状态",
|
||||
"OnlyGetValue": true,
|
||||
"TableValueType": 0,
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "b31ec5c9-8a86-4148-8e7c-232ccc011d6a",
|
||||
"GUID": "7f8cbdd1-5ad5-45a7-bd6c-7838abcb23d5",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务状态",
|
||||
"ColumnName": "任务状态",
|
||||
"GUID": "263a2a05-e711-4f5c-90ac-5114c2367ddc"
|
||||
"GUID": "035b217c-625c-4d7e-8c3a-b43419938da6"
|
||||
},
|
||||
"ColumnName": "任务状态"
|
||||
}
|
||||
@@ -210,9 +209,11 @@
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=状态码"
|
||||
}
|
||||
}
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "d13f627dec7147d68c48a6324b2316ff"
|
||||
"ID": "95159dc8a1b14128ace3e2acc322a54f"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
@@ -224,234 +225,244 @@
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=状态码"
|
||||
"SerializeProperty": "=状态表"
|
||||
}
|
||||
},
|
||||
"value": "0"
|
||||
"value": "%Null%",
|
||||
"compareType": 1
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "任务工时",
|
||||
"TableValue": {
|
||||
"TableName": "任务工时表",
|
||||
"TableValueType": 3,
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "任务ID",
|
||||
"GUID": "aeafd224-f511-481e-8355-8d0f79ac733a"
|
||||
"$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"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务ID"
|
||||
}
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "任务工时",
|
||||
"TableValue": {
|
||||
"TableName": "任务工时表",
|
||||
"TableValueType": 3,
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "任务ID",
|
||||
"GUID": "aeafd224-f511-481e-8355-8d0f79ac733a"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务ID"
|
||||
}
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0
|
||||
},
|
||||
"ID": "d27269e4264d4915b390ea9460421bf0"
|
||||
},
|
||||
{
|
||||
"$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": 2
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"该任务已报工,无法切换至\"&状态表.任务状态&\"状态\""
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "0fd97c73-cc15-469c-8021-0370a82e6d86"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "dfb51789-4950-486f-92f0-f2cac27b52b4"
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0
|
||||
},
|
||||
"ID": "ff207234ca244312adfeb7866e96d51c"
|
||||
},
|
||||
{
|
||||
"$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": "=任务工时"
|
||||
"$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": "2"
|
||||
}
|
||||
},
|
||||
"value": "0",
|
||||
"compareType": 2
|
||||
],
|
||||
"RelationType": 1
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"该任务已报工,无法切换至\"&任务信息.任务状态文本&\"状态\""
|
||||
}
|
||||
"$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%"
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"任务执行者为空,不能切换至\"&状态表.任务状态&\"状态!\""
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "675ce254-2eb8-4007-aa6f-3dd54ee620d6"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "7307f9cb-0a43-4b3d-9335-72465015f8e2"
|
||||
"ID": "d72e4cd3-1522-4523-a27e-77a412366329"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$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": "8cd30f24-ad8d-43c1-9342-2c7f001d137f"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务ID"
|
||||
}
|
||||
},
|
||||
"UpdateBindingValues": [
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "任务状态",
|
||||
"GUID": "3dd1ced8-9f74-49ce-9345-d7f35bc09d32"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=状态码"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "项目动态",
|
||||
"UpdateType": "add",
|
||||
"ShowConfirm": false,
|
||||
"UpdateBindingValues": [
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "项目动态",
|
||||
"ColumnName": "项目ID",
|
||||
"GUID": "0c5bb9ea-ed45-4f61-b076-62ad86c4c9d1"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务信息.项目ID"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "项目动态",
|
||||
"ColumnName": "项目动态",
|
||||
"GUID": "a20272a7-3c69-4969-afda-37ada037c74b"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"任务[\"&任务信息.任务名称&\"]从\"&任务信息.任务状态文本&\"状态变更为\"&状态表.任务状态"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "项目动态",
|
||||
"ColumnName": "执行人",
|
||||
"GUID": "4d346a81-83f3-45bc-ab72-50b1f39025f5"
|
||||
},
|
||||
"Value": "%CurrentUser%"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "操作成功"
|
||||
}
|
||||
],
|
||||
"ID": "6833cd39-b4c3-44f1-ac37-e7fc1e7556dd"
|
||||
"ID": "dbe03881-92a1-425a-9146-bdda6b88f817"
|
||||
},
|
||||
{
|
||||
"Condition": {
|
||||
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||||
"param": {
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=状态码"
|
||||
}
|
||||
},
|
||||
"value": "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": "%Null%"
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": "任务执行者不能为空"
|
||||
}
|
||||
],
|
||||
"ID": "9f576937-8c65-4748-a948-5cc1b9aa9da2"
|
||||
}
|
||||
]
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": "状态码无效"
|
||||
}
|
||||
],
|
||||
"ID": "483b270e-e6e6-4280-990e-9140fafef969"
|
||||
},
|
||||
{
|
||||
"Condition": {
|
||||
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||||
"param": {
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=状态码"
|
||||
}
|
||||
},
|
||||
"value": "2"
|
||||
},
|
||||
"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": "%Null%"
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": "任务执行者不能为空"
|
||||
}
|
||||
],
|
||||
"ID": "b1922fb3-0f59-462d-ac9c-b9dadab1b4c6"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "c6047401-1633-4822-9376-4de5021f3017"
|
||||
"ID": "f0a89697-4026-47d5-9c10-83aa20ad2b7d"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$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": "8cd30f24-ad8d-43c1-9342-2c7f001d137f"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务ID"
|
||||
}
|
||||
},
|
||||
"UpdateBindingValues": [
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "任务状态",
|
||||
"GUID": "6edbee6e-922a-4904-b1f8-0bc7b5a7eccd"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=状态码"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "项目动态",
|
||||
"UpdateType": "add",
|
||||
"ShowConfirm": false,
|
||||
"UpdateBindingValues": [
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "项目动态",
|
||||
"ColumnName": "项目ID",
|
||||
"GUID": "47dbb777-470d-4222-b8ce-3290bf908349"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务信息.项目ID"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "项目动态",
|
||||
"ColumnName": "项目动态",
|
||||
"GUID": "46dff42e-9185-48a4-a09c-b1b42df875bb"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"任务[\"&任务信息.任务名称&\"]从\"&任务信息.任务状态文本&\"状态变更为\"&新任务状态"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "项目动态",
|
||||
"ColumnName": "执行人",
|
||||
"GUID": "70d9cdae-463b-44d4-97ef-dedf26616565"
|
||||
},
|
||||
"Value": "%CurrentUser%"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "操作成功"
|
||||
}
|
||||
],
|
||||
"ID": "94ecbaa9-2b7f-4aff-9c77-305d5e58a983"
|
||||
"ID": "fe5f233f-f003-47e8-b70e-d0b4b3cfe059"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -461,12 +472,12 @@
|
||||
"Message": "操作成功"
|
||||
}
|
||||
],
|
||||
"ID": "e9a1e04e-c47f-4eca-aabd-b60cbe20bcde"
|
||||
"ID": "75750cc3-5c89-4526-8a9d-83ac590fa4b0"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "fd32ee3d-f7dd-4030-a4f0-3fce9ced5372"
|
||||
"ID": "9db3cb38-b9d2-4516-a253-4a6af21b1143"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -479,7 +490,7 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "7f6ab919-fd03-43b0-a234-c9bd5299c7c9"
|
||||
"ID": "461064bf-a991-48ef-a6ad-64f3770ec773"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user