Files
clue/ServerCommands/任务/新增任务.json
SHAMUSPC\NINGMEI efa31472ac {"Message":"1. 简化成员时薪的来源,删除任务时薪概念,按项目定义。\r\n2. 优化任务参与人和项目成员的逻辑,任务成员必须来源于项目成员。","MessageType":2,"Modules":[{"State":1,"Type":7,"Name":"Table/项目表"},{"State":1,"Type":7,"Name":"Table/项目成员表"},{"State":1,"Type":7,"Name":"Table/任务成员表"},{"State":1,"Type":1,"Name":"PCPage/项目列表"},{"State":1,"Type":1,"Name":"PCPage/任务列表"},{"State":1,"Type":1,"Name":"PCPage/项目信息"},{"State":1,"Type":1,"Name":"PCPage/任务首页"},{"State":1,"Type":1,"Name":"PCPage/任务-基本信息"},{"State":1,"Type":1,"Name":"PCPage/任务-任务信息"},{"State":1,"Type":1,"Name":"PCPage/任务-关联资源"},{"State":1,"Type":1,"Name":"PCPage/任务-子任务列表"},{"State":1,"Type":1,"Name":"PCPage/任务-工时"},{"State":1,"Type":1,"Name":"PCPage/任务-进展"},{"State":1,"Type":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/MD编辑器"},{"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":2,"Type":1,"Name":"PCPage/财务中心"},{"State":1,"Type":1,"Name":"PCPage/收益中心"},{"State":1,"Type":3,"Name":"MasterPCPage/FGC_母版页"},{"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":15,"Name":"ServerCommand/分配任务工时"},{"State":1,"Type":15,"Name":"ServerCommand/移除项目成员"},{"State":1,"Type":15,"Name":"ServerCommand/同步项目成员"},{"State":2,"Type":15,"Name":"ServerCommand/同步项目参与人字段"},{"State":1,"Type":40,"Name":"Plugin"},{"State":1,"Type":1,"Name":"PCPage/首页"},{"State":1,"Type":31,"Name":"UserControlPage/聊天列表"},{"State":3,"Type":1,"Name":"PCPage/工时总览"},{"State":3,"Type":15,"Name":"ServerCommand/同步项目参与人列表"}],"Version":"v1"}
2024-04-24 15:56:46 +08:00

657 lines
28 KiB
JSON

{
"Name": "新增任务",
"Enabled": true,
"Triggers": [
{
"$type": "Forguncy.SaveLoad.PostRequestTriggerSaveData, ServerDesignerCommon",
"Permission": {
"PermissionData": {
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionData, Forguncy.RbacPermission.Core",
"permissionResource": {
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionResource, Forguncy.RbacPermission.Core"
},
"permissionBindings": [
{
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionBinding, Forguncy.RbacPermission.Core",
"roleNames": [
"FGC_LoginUser"
]
}
]
}
},
"Parameters": [
{
"Name": "项目ID",
"DataValidationInfo": {
"IgnoreBlank": false
}
},
{
"Name": "父任务ID",
"DataValidationInfo": {}
},
{
"Name": "任务标题",
"DataValidationInfo": {
"IgnoreBlank": false
}
},
{
"Name": "执行人",
"DataValidationInfo": {}
},
{
"Name": "成员ID数组",
"DataValidationInfo": {}
},
{
"Name": "开始日期",
"DataValidationInfo": {}
},
{
"Name": "结束日期",
"DataValidationInfo": {}
},
{
"Name": "任务分组",
"DataValidationInfo": {}
},
{
"Name": "任务类型",
"DataValidationInfo": {}
},
{
"Name": "任务版本",
"DataValidationInfo": {}
},
{
"Name": "预算工时",
"DataValidationInfo": {}
},
{
"Name": "任务说明",
"DataValidationInfo": {}
},
{
"Name": "备注",
"DataValidationInfo": {}
}
]
}
],
"Commands": [
{
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
"TryCommandPart": {
"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": "严格模式"
}
},
"ColumnName": "严格模式"
},
{
"BindingInfo": {
"TableName": "View_项目统计信息",
"ColumnName": "项目预算工时",
"GUID": "c3f88088-ff8f-4ba4-b4b8-0b9b680f51b1"
},
"ColumnName": "项目预算工时"
},
{
"BindingInfo": {
"TableName": "View_项目统计信息",
"ColumnName": "已分配任务工时",
"GUID": "ec163591-391a-496f-b95b-2b30be766815"
},
"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"
}
},
"TopCount": "1"
},
"ID": "b20694e9a4684d6bb38f4af5104fe73a"
},
{
"$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": "=父任务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": "19ce1788-df29-40b4-a115-831a230461f7"
},
{
"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": "64064707-a6a5-4fe5-a25f-ca805217a4c5"
}
],
"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": "=IF(父任务ID>0,\"预算工时超标:父任务可只配计划工时不足,请修改后提交!\",\"预算工时超标:项目可只配计划工时不足,请修改后提交!\")"
}
}
],
"ID": "796f5586-2ec6-4289-9824-c815e6bba011"
}
]
}
],
"ID": "d5ba24e1-84f0-4e52-964d-53e3c4927221"
}
]
},
{
"$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": "4e1a7eef-c35f-479e-958c-e34b85538dcc"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目动态",
"GUID": "1e311d03-f3a1-4fb7-971e-b605d3e76792"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"新增任务[\"&任务标题&\"]\""
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "执行人",
"GUID": "65b3ab45-38d5-4b31-907d-37832258bf27"
},
"Value": "%CurrentUser%"
}
]
},
{
"$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%",
"compareType": 1
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "项目成员数组",
"TableValue": {
"TableName": "项目成员表",
"BindingInfos": [
{
"BindingInfo": {
"TableName": "项目成员表",
"ColumnName": "ID",
"GUID": "b72cf0b4-c471-44fa-b47b-a534a09cde3e"
},
"ColumnName": "ID"
},
{
"BindingInfo": {
"TableName": "项目成员表",
"ColumnName": "项目成员",
"GUID": "f0d91e3d-8562-4bca-bb0f-4e9d7afd4d55"
},
"ColumnName": "项目成员"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.TextCESqlCondition, ForguncyDataAccess",
"CompareType": 8,
"ColumnBindingInfo": {
"TableName": "项目成员表",
"ColumnName": "ID",
"GUID": "9ac991d2-282b-43bb-bef9-a0b00a6be7e3"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=成员ID数组"
}
}
},
"ID": "f6e9f35a3cd540248c1d0f35ededb0a1"
},
{
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
"LoopInfo": {
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
"LoopCount": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目成员数组"
},
"LoopItemParamName": "Item"
},
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务成员表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "项目ID",
"GUID": "573a2b42-c3e1-4bfb-85cf-1546a9036ad9"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "任务ID",
"GUID": "a4c9ac26-cbb1-4201-b122-4b0a7191fadf"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新任务.ID"
}
},
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "项目成员ID",
"GUID": "4e695e8e-c89d-4a59-ada7-7e8b4d827b92"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.ID"
}
},
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "参与人",
"GUID": "a24651df-83f8-4d76-954d-3b06728c4dcd"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.项目成员"
}
}
]
}
]
}
],
"ID": "2168063c-897b-46f9-9c04-bea75ada5f94"
}
]
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "新增任务成功,请添加参与人和设置人员岗位、薪资等信息!"
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionCode"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
}
}
]
}
}
]
}