Files
clue/ServerCommands/工时/新增工时.json

1031 lines
54 KiB
JSON

{
"Name": "新增工时",
"Enabled": true,
"Triggers": [
{
"$type": "Forguncy.ServerCommands.Models.PostRequestTrigger, 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
},
"TestData": "2"
},
{
"Name": "开始日期",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "2024-03-01"
},
{
"Name": "结束日期",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "2024-03-10"
},
{
"Name": "成员ID",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "administrator"
},
{
"Name": "工时数",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "40"
},
{
"Name": "进展内容",
"TestData": "测试"
},
{
"Name": "工时类型",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "计划"
},
{
"Name": "指定时薪单价"
}
],
"InvokeTriggerTestData": {
"UserName": "Administrator"
}
}
],
"Commands": [
{
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
"TryCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "任务信息",
"TableValue": {
"TableName": "任务表",
"TableValueType": 1,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "bf1892fb-3938-4567-bf3d-03d0108ec470"
},
"ColumnName": "项目ID"
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务状态",
"GUID": "99a610c7-d74e-41dc-8b6a-fdb8dd30874d"
},
"ColumnName": "任务状态"
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务状态",
"GUID": "74bdda59-4098-47df-8405-fb0214c6e424",
"RelationBinding": {
"RelatedTable": "任务状态",
"RelatedColumn": "状态码",
"DisplayColumn": "任务状态"
}
},
"ColumnName": "任务状态文本"
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "01bb3df8-0942-4ead-935c-6f935c35ee66",
"RelationBinding": {
"RelatedTable": "项目表",
"RelatedColumn": "ID",
"DisplayColumn": "严格模式"
}
},
"ColumnName": "严格模式"
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "adfd8b1d-91a8-48dd-9c09-b0b8834a405d",
"RelationBinding": {
"RelatedTable": "项目表",
"RelatedColumn": "ID",
"DisplayColumn": "项目预算工时"
}
},
"ColumnName": "项目预算工时"
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "373bdd3a-1052-44e5-beb9-843f8827f61f",
"RelationBinding": {
"RelatedTable": "项目表",
"RelatedColumn": "ID",
"DisplayColumn": "项目预算费用"
}
},
"ColumnName": "项目预算费用"
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "f25e468b-e478-475a-8338-b29a5136c34f",
"RelationBinding": {
"RelatedTable": "项目表",
"RelatedColumn": "ID",
"DisplayColumn": "工时核定方式"
}
},
"ColumnName": "工时核定方式"
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务类型",
"GUID": "8c7067c3-a8e1-492a-afe0-e1d046fd2c15",
"RelationBinding": {
"RelatedTable": "任务类型",
"RelatedColumn": "ID",
"DisplayColumn": "提成系数"
}
},
"ColumnName": "提成系数"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务表",
"ColumnName": "ID",
"GUID": "5ddc304c-99c2-4a9d-9fd0-fb58421f3730"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "2918ea32f3884e7e98305ac9f149746f"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "任务成员",
"TableValue": {
"TableName": "任务成员表",
"TableValueType": 1,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "参与人",
"GUID": "726fb609-b6ac-4a09-b21b-759b5bc6b612"
},
"ColumnName": "参与人"
},
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "参与人",
"GUID": "c3a3ac42-a9c4-4e1b-844b-784720a48929",
"AttachType": {
"$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess",
"UserColumnAttachType": 5,
"AttachTypeTag": "负荷"
}
},
"ColumnName": "参与人负荷"
},
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "任务时薪",
"GUID": "c9bf3e12-738f-4805-adae-174e64aacbf0"
},
"ColumnName": "任务默认时薪"
},
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "岗位ID",
"GUID": "4f17650c-15e6-4e68-ae15-7740091c7f81",
"RelationBinding": {
"RelatedTable": "项目岗位",
"RelatedColumn": "ID",
"DisplayColumn": "默认时薪"
}
},
"ColumnName": "岗位默认时薪"
},
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "参与人",
"GUID": "fc12088c-5de9-4f86-8344-767b6c2bc66f",
"AttachType": {
"$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess",
"UserColumnAttachType": 5,
"AttachTypeTag": "默认时薪"
}
},
"ColumnName": "参与人默认时薪"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务成员表",
"ColumnName": "ID",
"GUID": "a2a8e4cc-4325-4ee1-a217-cb701c5b3c4b"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=成员ID"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "c04d6f601eae4b0d86569a7129aef361"
},
{
"$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.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "计算时薪",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=IF(任务成员.任务默认时薪>0,任务成员.任务默认时薪,IF(任务成员.岗位默认时薪>0,任务成员.岗位默认时薪,IF(任务成员.参与人默认时薪>0,任务成员.参与人默认时薪,0)))"
},
"ID": "f857e1363832441b9ce2d6788691fa4d"
}
],
"ID": "1c245c57-b8f6-4ee2-8941-9448c189cf06"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "计算时薪",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=指定时薪单价"
},
"ID": "59b15e69447446c49ec84c9a3121f667"
}
],
"ID": "649c9460-8b07-49d5-a5c7-fbe19280dbf4"
}
]
},
{
"$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": "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": "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": "=任务信息.工时核定方式"
}
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "总统计工时",
"TableValue": {
"TableName": "任务工时表",
"OnlyGetValue": true,
"TableValueType": 0,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "总工时",
"GUID": "b017e325-7294-416f-8926-47462784d7bb"
},
"ColumnName": "总工时"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "ID",
"GUID": "16b0ba7e-6a71-4a46-aa40-3f4d6ef58f5d"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时类型",
"GUID": "a45113f8-20d0-409b-bca0-4f362620dc21"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务信息.工时核定方式"
}
}
]
}
},
"ID": "6ab1910c7268409f9266fb8e480a337b",
"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": 2
},
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"计划工时总时长(\"&工时数&\"h)超过项目预算工时时长(\"&任务信息.项目预算工时&\"h),请修改后提交!\""
}
}
],
"ID": "eeeba5d7-dbf4-493d-99ec-d91f069d4c35"
}
]
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "计划消耗列表",
"TableValue": {
"TableName": "任务工时表",
"BindingInfos": [
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "成员ID",
"GUID": "ea4383ac-a4de-4d16-810c-5c1b13209616",
"RelationBinding": {
"RelatedTable": "任务成员表",
"RelatedColumn": "ID",
"DisplayColumn": "参与人"
}
},
"ColumnName": "参与人"
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "成员ID",
"GUID": "6e7f9872-9cfc-4c3b-a64b-f99301cf1ad2",
"RelationBinding": {
"RelatedTable": "任务成员表",
"RelatedColumn": "ID",
"DisplayColumn": "任务时薪"
}
},
"ColumnName": "任务时薪"
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "总工时",
"GUID": "fbf14cf0-4f6c-4f3e-be40-5b2aefb7c3f2"
},
"ColumnName": "总工时"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "ID",
"GUID": "f01504a6-9268-421d-ab6a-294bbb8d9fe9"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时类型",
"GUID": "659082fc-ef0b-4cb0-a586-1b33af5b82a5"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务信息.工时核定方式"
}
}
]
},
"NullFormulaValueQueryPolicy": 0
},
"ID": "4797723e6d2e41a5a0189fd1df0de453",
"Comments": "检查预算是否超支"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "总消耗金额",
"ParameterValue": "0",
"ID": "bb9e54fcc34147a397b97625b51722e5"
},
{
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
"LoopInfo": {
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
"LoopCount": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=计划消耗列表"
},
"LoopItemParamName": "Item"
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "总消耗金额",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=总消耗金额+(Item.任务时薪*Item.总工时)"
},
"ID": "a2e540fc04904c0b8ca6c555bb97506c"
}
]
},
{
"$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": 2
},
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"计划工时总预算超过项目预算金额(\"&任务信息.项目预算费用&\"元),请修改后提交!\""
}
}
],
"ID": "642806e0-05f0-48a0-aceb-5ae4749fda53"
}
]
}
],
"Comments": "如果提交的工时类型等于项目工时的核定方式",
"ID": "bf08f70c-e62a-4a64-8514-aa5324ab46fe"
}
]
}
],
"ID": "cdb7621d-e9e6-4ec8-abaf-5cd4e2fadede"
}
]
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "待分配工时",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=工时数"
},
"ID": "88917d0b705740d8b313707d17e90999"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "分配天数",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=DATEDIF(开始日期,结束日期,\"d\")+1"
},
"ID": "7456d05ca461469aa54b4c73e0846743"
},
{
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
"CommandList": [
{
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
"LoopInfo": {
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
"LoopCount": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=分配天数"
},
"LoopIndexParamName": "index",
"LoopItemParamName": "Item"
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "当前日期",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=开始日期+(index-1)"
},
"ID": "75877f8fc2f04457b6bd9d5e0d88e559"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "统计工时",
"TableValue": {
"TableName": "任务工时表",
"TableValueType": 1,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "总工时",
"GUID": "18cc1de2-9116-46f9-ba28-3ee44c656ae6"
},
"ColumnName": "总工时"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时日期",
"GUID": "144919b2-9e90-407e-ba06-8962389bdd23"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=当前日期"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "执行人",
"GUID": "76228856-18aa-48f6-9882-318807a68c22"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=成员ID"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时类型",
"GUID": "2ea16072-94ee-41df-9cc2-a5a180d27e49"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=工时类型"
}
}
]
},
"NullFormulaValueQueryPolicy": 0
},
"ID": "6ae0baafed3c43ff991d2907d1337efa"
},
{
"$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": "=index"
}
},
"value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=分配天数"
},
"compareType": 4
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "计算本次分配工时",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ROUNDUP(工时数/分配天数,1)"
},
"ID": "ee71499449414ba18a628588395d9a05"
}
],
"ID": "1b3b80d1-30ba-4437-a6d2-d2de40fa6fa1"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "计算本次分配工时",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=待分配工时"
},
"ID": "065c1e760198465994a08493bf43cee8"
}
],
"ID": "b0fb2618-d6ac-421d-8210-c4fcfa690770"
}
]
},
{
"$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": "计划"
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "执行人负荷",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=IF(OR(任务成员.参与人负荷=\"\",任务成员.参与人负荷=0,任务成员.参与人负荷>24),24,任务成员.参与人负荷)"
},
"ID": "16181c6e15ff4bfca56ae0ad14d4352a"
}
],
"ID": "bfcd2708-a55c-4839-8795-d34f4c7eb2a4"
},
{
"Condition": {
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=工时类型"
}
},
"value": "实际"
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "执行人负荷",
"ParameterValue": "24",
"ID": "2c4d16f4fa6846e3a912eeabbf37bd0c"
}
],
"ID": "394dd2a3-3994-4c7e-a7c2-0ff8ccb80bf2"
}
]
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "预计增加后工时",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=IF(统计工时.总工时=\"\",0,统计工时.总工时)+计算本次分配工时"
},
"ID": "0a10581e19f140f89affc63ea059c53b"
},
{
"$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": 5
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "待分配工时",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ROUNDUP(待分配工时-计算本次分配工时,1)"
},
"ID": "a93edabfac4844a6a4f4c730b7ab5e56"
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务工时表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "成员ID",
"GUID": "332787ca-aa7b-4138-b767-e2108d622a9c"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=成员ID"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "项目ID",
"GUID": "1828713c-8fe2-489e-b6d2-260a7d75f5bb"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务信息.项目ID"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "任务ID",
"GUID": "dc7feba1-4718-44ec-bd0e-4dcd1d8b599f"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时日期",
"GUID": "b6d34589-36d8-4086-bb77-0ce31f5de1ee"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=当前日期"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时类型",
"GUID": "3aa4522c-b52c-4516-8c59-64a72900ca73"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=工时类型"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "执行人",
"GUID": "15e671e3-3910-4106-af0c-4e5d18e2c415"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务成员.参与人"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "执行内容",
"GUID": "5a62de3a-7bd3-414e-a942-c55c80e8bd4f"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=进展内容"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时",
"GUID": "3f0f57b0-84af-4b2d-99b7-9156ace3d9b4"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=计算本次分配工时"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "时薪单价",
"GUID": "ec8e90ba-7a7f-4d1a-acc3-c4b37f8c735b"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=计算时薪"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "提成系数",
"GUID": "8b7a0e62-d18a-4818-8273-09551c642141"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务信息.提成系数"
}
}
]
}
],
"ID": "e957afd7-08c6-499e-ad39-975f0632d285"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=TEXT(当前日期,\"yyyy年mm月dd\")&\"的最大工作负荷超出限制的\"&执行人负荷&\"小时,请重新提交!\""
}
}
],
"ID": "78590df5-7698-45b5-a91a-b5c4e76272a1"
}
]
}
]
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "提交工时成功"
}
],
"ID": "a4a1b163-561a-440b-8687-0a1814006775"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"当前任务状态为[\"&任务信息.任务状态文本&\"],无法提交工时!\""
}
}
],
"ID": "e8d00de6-b73f-4c47-b34a-67fece1f6456"
}
]
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionCode"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
}
}
]
}
}
]
}