Files
clue/ServerCommands/任务/发起任务流程.json
超哥 60ad662fb3 {"Message":"1. 增加项目、任务平行视图,解决子表成员的权限问题;\r\n2. 重新整理页面绑定,取消原表的统计字段;\r\n3. 优化任务、项目的人员管理;","MessageType":2,"Modules":[{"State":1,"Type":7,"Name":"Table/项目任务分组"},{"State":1,"Type":7,"Name":"Table/任务成员表"},{"State":1,"Type":7,"Name":"Table/任务表"},{"State":1,"Type":7,"Name":"Table/任务进展"},{"State":1,"Type":7,"Name":"Table/任务评论表"},{"State":1,"Type":23,"Name":"TableView/View_任务工时统计"},{"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":4,"Type":1,"Name":"PCPage/参与成员管理"},{"State":2,"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":2,"Type":15,"Name":"ServerCommand/更新任务参与人"},{"State":2,"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":27,"Name":"ServerCommandPrivate/后端新增项目反馈"},{"State":1,"Type":36,"Name":"ShareCommandContainer/打开任务详情"},{"State":1,"Type":9,"Name":"Theme"},{"State":1,"Type":40,"Name":"Plugin"},{"State":1,"Type":15,"Name":"ServerCommand/计算报工数据"},{"State":2,"Type":15,"Name":"ServerCommand/上报实际工时(备份)"},{"State":1,"Type":7,"Name":"Table/汇报状态"},{"State":1,"Type":7,"Name":"Table/EmojiTable"},{"State":1,"Type":15,"Name":"ServerCommand/任务发起流程前校验"},{"State":1,"Type":28,"Name":"ProcessItem/新增任务流程"},{"State":1,"Type":15,"Name":"ServerCommand/发起任务流程"},{"State":3,"Type":23,"Name":"TableView/项目平行视图"},{"State":3,"Type":6,"Name":"Pages/任务/任务成员"},{"State":3,"Type":23,"Name":"TableView/任务成员视图"},{"State":3,"Type":23,"Name":"TableView/任务平行视图"},{"State":3,"Type":6,"Name":"Pages/任务/任务类型管理"}],"Version":"v1"}
2024-06-17 22:35:04 +08:00

407 lines
21 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
}
}
]
}
],
"Commands": [
{
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
"TryCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "任务",
"TableValue": {
"TableName": "任务表",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "29ef26eb-d840-4c9a-9c95-7fb94555e468",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务名称",
"GUID": "23b7dbfa-171e-4463-a302-07dcc9e15141"
},
"ColumnName": "任务名称"
},
{
"GUID": "455904f9-0302-4dba-bbb7-9ca41568b71a",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务负责人",
"GUID": "a1fbd5f9-b9e7-48e1-ba59-913b1aee850d"
},
"ColumnName": "执行者"
},
{
"GUID": "30cf70fc-ce55-4877-85d9-ee42f17546d5",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "2dcf421f-4618-413d-873f-88bb355c8d8e",
"RelationBinding": {
"RelatedTable": "项目表",
"RelatedColumn": "ID",
"DisplayColumn": "项目经理"
}
},
"ColumnName": "项目经理"
},
{
"GUID": "5078d1a6-51b3-4c5a-87a8-4bb42d3bc3c4",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "6209726f-6934-4ee5-b1ad-98534c6bfa4f",
"RelationBinding": {
"RelatedTable": "项目表",
"RelatedColumn": "ID",
"DisplayColumn": "项目状态"
}
},
"ColumnName": "项目状态"
},
{
"GUID": "6cde8ce1-69da-4f09-95af-5f939077380d",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务状态",
"GUID": "023c19f4-f67f-4a16-ad52-7047a5897f4b"
},
"ColumnName": "任务状态"
},
{
"GUID": "9425dcd6-ee84-4cff-8cb0-32f8e2b5ef9b",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "流程实例ID",
"GUID": "eb2c2ccd-767e-4d72-a9e7-fb88915964bd"
},
"ColumnName": "流程实例ID"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务表",
"ColumnName": "ID",
"GUID": "4c5addad-85da-4ff4-8b0c-2fe87e45f6ba"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
"TopCount": "1"
},
"ID": "3d8ab8d2f0924421bdd75fb25888a8d5"
},
{
"$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.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Condition": {
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务.项目状态"
}
},
"value": "2",
"compareType": 1
},
"CommandList": [
{
"$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": "0"
},
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务.任务状态"
}
},
"value": "-1"
}
],
"RelationType": 1
},
"CommandList": [
{
"$type": "Forguncy.Model.ProcessStartCommand, ServerDesignerCommon",
"ProcessDefinitionResourceName": "新增任务流程",
"ProcessInstanceName": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务.任务名称"
},
"SelectedTable": "任务表",
"RowsToUpdate": 1,
"RowsToUpdateCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务表",
"ColumnName": "ID",
"GUID": "5890a609-fa92-4828-958b-5b13d2752057"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
"ReturnResultName": "发起流程结果"
},
{
"$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": "ACT_HI_TASKINST_View",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "a2b011dc-2a16-473b-b3b9-bde26f13bddc",
"BindingInfo": {
"TableName": "ACT_HI_TASKINST_View",
"ColumnName": "ID_",
"GUID": "d0536ada-ff9c-4df5-b489-a0684ae8005a"
},
"ColumnName": "ID"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "ACT_HI_TASKINST_View",
"ColumnName": "PROC_INST_ID_",
"GUID": "ce528664-a069-42b1-b4cf-26f468c181cc"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=发起流程结果.ID"
}
},
"TopCount": "1",
"OrderBySqlCondition": {
"OrderByColumns": [
{
"ColumnBindingInfo": {
"TableName": "ACT_HI_TASKINST_View",
"ColumnName": "START_TIME_",
"GUID": "c84da339-3220-4914-9160-e9893d78bfcf"
},
"Order": 1
}
]
}
},
"ID": "df4ba27143da4ef1926f2b05f3ad6c05"
},
{
"$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.ProcessTaskCommand, ServerDesignerCommon",
"TaskId": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=查找任务.ID"
},
"CustomOperationName": "提交",
"Operator": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务.执行者"
},
"Comment": "系统自动提交"
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "发起流程成功!"
}
],
"ID": "64d64c9a-5cf2-4bd0-9147-a1c087bcfba7"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "发起流程成功,请在任务首页手动提交!"
}
],
"ID": "bf95f9ff-1e1a-4c6a-a2d1-36f05f893849"
}
]
}
],
"ID": "772d64f8-248a-44f4-8835-b36f21a726ef"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "发起流程失败"
}
],
"ID": "13cfd844-cdea-4367-9c5f-b26441f5062d"
}
]
}
],
"ID": "baba28a2-eaa7-4722-8a21-1af28db0c6c8"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "当前任务状态不允许发起申请!"
}
],
"ID": "a8693102-87ae-4933-baa4-4e08863df023"
}
]
}
],
"ID": "cdbfe9cc-3d26-4dd1-abb3-dff715732326"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "当前项目已不在进行中状态,无法提交任务!"
}
],
"ID": "17017d78-03d0-402b-9eff-32086fc1c3a2"
}
]
}
],
"ID": "7b2f67e8-e959-48b7-98ae-6e90a3a2f75b"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "任务不存在"
}
],
"ID": "3765e1ef-d7d4-42c8-bb7e-5bb000b97a85"
}
]
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionCode"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
}
}
]
}
}
]
}