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

363 lines
15 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
}
},
{
"Type": 1,
"ArrayParamItems": [
{
"Name": "ID",
"DataValidationInfo": {}
},
{
"Name": "成员",
"DataValidationInfo": {
"IgnoreBlank": false
}
},
{
"Name": "岗位",
"DataValidationInfo": {
"IgnoreBlank": false
}
},
{
"Name": "时薪",
"DataValidationInfo": {
"IgnoreBlank": false
}
}
],
"OnlySendChangedData": true,
"PrimaryKeys": [
"ID"
],
"Name": "参与人列表",
"DataValidationInfo": {}
}
]
}
],
"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": "cea97372-d27e-43fe-bf11-394cc980045f"
},
"ColumnName": "项目ID"
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务名称",
"GUID": "f8778b5b-59e8-4106-9e8f-5e341baceee9"
},
"ColumnName": "任务名称"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务表",
"ColumnName": "ID",
"GUID": "6089b59b-1f23-455f-b64a-81664e14491d"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
"TopCount": "1"
},
"ID": "d62edb82b552422ea7c2cc38b7247dc3"
},
{
"$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%",
"compareType": 1
},
"CommandList": [
{
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
"CommandList": [
{
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
"LoopInfo": {
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
"LoopCount": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=参与人列表.AddRows"
},
"LoopItemParamName": "Item"
},
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务成员表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "项目ID",
"GUID": "36840f44-abdb-4d4d-a8f4-7edd900c77b8"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务信息.项目ID"
}
},
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "任务ID",
"GUID": "fd7a6205-fefc-4194-9099-f157992c4350"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "参与人",
"GUID": "e13a4631-28c4-4c05-b1bc-68d3971514b6"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.成员"
}
}
]
}
]
},
{
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
"LoopInfo": {
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
"LoopCount": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=参与人列表.EditRows"
},
"LoopItemParamName": "Item"
},
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务成员表",
"ShowConfirm": false,
"RowsToUpdate": 1,
"RowsToUpdateCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务成员表",
"ColumnName": "ID",
"GUID": "43efc519-1bf8-47bd-b809-383653ec559c"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.ID"
}
},
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "参与人",
"GUID": "144e58a1-955d-4719-97c4-71b86e09e86e"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.成员"
}
}
]
}
]
},
{
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
"LoopInfo": {
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
"LoopCount": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=参与人列表.DeleteRows"
},
"LoopItemParamName": "Item"
},
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务成员表",
"UpdateType": "delete",
"ShowConfirm": true,
"ConfirmText": "您确定要删除吗?",
"RowsToUpdate": 1,
"RowsToUpdateCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务成员表",
"ColumnName": "ID",
"GUID": "43efc519-1bf8-47bd-b809-383653ec559c"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.ID"
}
}
}
]
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "项目动态",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目ID",
"GUID": "c8d19332-7834-4358-bec6-e9e173a0f2ae"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务信息.项目ID"
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目动态",
"GUID": "4e768777-3eff-4bbf-85c4-c1f173965266"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"更新了任务[\"&任务信息.任务名称&\"]的参与人员\""
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "执行人",
"GUID": "6a928517-26f1-4302-a829-5f103daeae5b"
},
"Value": "%CurrentUser%"
}
]
}
]
},
{
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
"ServerCommandName": "同步任务参与人字段",
"Parameters": [
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "任务ID",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
}
],
"ResultErrorCodeTo": {
"SerializeProperty": "code"
},
"ResultMessageTo": {
"SerializeProperty": "msg"
},
"RefreshAfterFinish": true,
"CheckDataValidation": true
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "操作完成"
}
],
"ID": "c39a129b-d09f-48bb-9fdf-db4ed5ded7b1"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "任务不存在"
}
],
"ID": "57d232e2-f4a4-4f6f-a87f-5aa731b9f1c4"
}
]
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionCode"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
}
}
]
}
}
]
}