{"Message":"1. 更新任务首页;\r\n2. 增加邮件模板设计器插件;","MessageType":2,"Modules":[{"State":1,"Type":1,"Name":"PCPage/FGC_审批记录"},{"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":3,"Name":"MasterPCPage/FGC_母版页"},{"State":1,"Type":31,"Name":"UserControlPage/评论组件"},{"State":1,"Type":31,"Name":"UserControlPage/发表评论组件"},{"State":2,"Type":15,"Name":"ServerCommand/新增任务"},{"State":1,"Type":40,"Name":"Plugin"},{"State":1,"Type":1,"Name":"PCPage/选择图标"},{"State":2,"Type":28,"Name":"ProcessItem/任务分配流程"},{"State":3,"Type":15,"Name":"ServerCommand/任务发起流程前校验"},{"State":3,"Type":28,"Name":"ProcessItem/新增任务流程"},{"State":3,"Type":15,"Name":"ServerCommand/发起任务流程"},{"State":3,"Type":6,"Name":"Pages/邮件模板"},{"State":3,"Type":1,"Name":"PCPage/模板编辑器"},{"State":3,"Type":7,"Name":"Table/邮件模板表"}],"Version":"v1"}

This commit is contained in:
超哥
2024-06-17 11:02:59 +08:00
parent c7f6fbb021
commit 1f3051178a
35 changed files with 3435 additions and 2886 deletions

View File

@@ -0,0 +1,492 @@
{
"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": "4c1c012a-0ad0-4338-9430-f1b70ac7a764",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "50961c18-f454-469e-ae8f-eb11862b1148"
},
"ColumnName": "项目ID"
},
{
"GUID": "3026ea11-e179-43fe-a731-1f3acd8031cf",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "父任务ID",
"GUID": "d043ddbd-c8a3-4a31-a47e-bcdac7551398"
},
"ColumnName": "父任务ID"
},
{
"GUID": "dc74514b-fa27-45ec-b5a9-349e11ddb9fb",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "a6f8cca7-5575-4839-9365-ffebe1facca9",
"RelationBinding": {
"RelatedTable": "项目表",
"RelatedColumn": "ID",
"DisplayColumn": "ID",
"NextRelationBinding": {
"RelatedTable": "View_项目统计信息",
"RelatedColumn": "项目ID",
"DisplayColumn": "项目预算工时"
}
}
},
"ColumnName": "项目预算工时"
},
{
"GUID": "c646f8aa-9325-4c7f-9a46-94c95431c000",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "69975d40-afe9-4bc8-b156-b06f8e589350",
"RelationBinding": {
"RelatedTable": "项目表",
"RelatedColumn": "ID",
"DisplayColumn": "ID",
"NextRelationBinding": {
"RelatedTable": "View_项目统计信息",
"RelatedColumn": "项目ID",
"DisplayColumn": "已分配任务工时"
}
}
},
"ColumnName": "已分配任务工时"
},
{
"GUID": "3d5bcd8b-de08-4dab-aa99-10b672410d22",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "3256ecff-7321-48f2-9e3e-5aefeaac7b90",
"RelationBinding": {
"RelatedTable": "项目表",
"RelatedColumn": "ID",
"DisplayColumn": "项目经理"
}
},
"ColumnName": "项目经理"
},
{
"GUID": "57be8a25-ac7d-4f4c-b0cc-5fefcfdb476e",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "3b610fae-f462-4d6d-ba6e-e6b24dfce8af",
"RelationBinding": {
"RelatedTable": "项目表",
"RelatedColumn": "ID",
"DisplayColumn": "工时分配方式"
}
},
"ColumnName": "工时分配方式"
},
{
"GUID": "683595d8-69c4-47e0-8f9f-bb05e7732a15",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务预算工时",
"GUID": "2d53d463-1d5c-4117-aa9a-796165ad9c89"
},
"ColumnName": "任务预算工时"
},
{
"GUID": "34ff6d56-84e4-4f3f-a6f9-7528e5968792",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "b688b437-4733-4102-9763-f9dee3d372cd",
"RelationBinding": {
"RelatedTable": "项目表",
"RelatedColumn": "ID",
"DisplayColumn": "严格模式"
}
},
"ColumnName": "严格模式"
},
{
"GUID": "10ec1395-5a81-4cbc-acd8-8d1ef6996c99",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "执行者",
"GUID": "3f7a6d55-8578-48be-b14a-ba4a6e17f266"
},
"ColumnName": "执行者"
},
{
"GUID": "40f27bbb-15e6-4e5b-8b04-41454bab1753",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务类型",
"GUID": "050b2a2a-e802-4280-bc06-10d5e76c4e35"
},
"ColumnName": "任务类型"
},
{
"GUID": "98dd52fd-9eef-4268-9769-5bee88e24f8b",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "版本",
"GUID": "1fa6cc05-da37-4315-b822-951a8b751213"
},
"ColumnName": "版本"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务表",
"ColumnName": "ID",
"GUID": "ae5a57e8-074d-401e-9d6b-c85747f92057"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "991ad217c6604c978bfc5749b20e6e33"
},
{
"$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": "bcf16cb9-2079-423a-a1b6-33293e2f563e"
}
]
},
{
"$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": "deb73d93-205e-463a-8d34-5b5bfb1477e9"
}
]
},
{
"$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": "20c338d7-189f-4ec9-8fe0-7f69ab5ba813"
}
]
},
{
"$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": "91321071-f269-486e-8efc-434263349f4e"
}
]
},
{
"$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": "ff74d835958740a18c9a43517e5fe004"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "层级",
"ParameterValue": "1",
"ID": "2a21b817513b444c9cb3a0316de2a9cc"
}
],
"ID": "c519e38d-63bd-4a93-a2bf-6f4b2c414c9f"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "父任务",
"TableValue": {
"TableName": "任务表",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "6760dadc-d949-4b45-ae70-50c034c806de",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "层级",
"GUID": "71447dd9-ed15-40d3-8c95-35af02be1228"
},
"ColumnName": "层级"
},
{
"GUID": "eb1e2579-cb27-4219-8c94-c22b985b827f",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务预算工时",
"GUID": "f2ea1508-f30e-412f-a345-3ede9d6c420d"
},
"ColumnName": "任务预算工时"
},
{
"GUID": "435b9b45-862d-4a31-91e3-5b4e9ce75489",
"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": "a772fe34c2594bce9ced25c057497185"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "预算工时上限",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务.任务预算工时-父任务.总计划工时"
},
"ID": "1f803427f50543e3bbc7d34be52ae616"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "层级",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务.层级+1"
},
"ID": "18d496286fcd41938205ec186b6d6fb4"
}
],
"ID": "4afddd1e-6ec5-43b3-bd8a-62b9d375d848"
}
],
"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": "04713767-c4db-4ac2-a6d2-8c9fd52d435e"
}
]
}
],
"ID": "8cf18dc0-128a-476c-b041-a5be5f57bc47"
}
],
"Comments": "校验工时情况是否通过"
},
{
"$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"
}
}
]
}
}
]
}

View File

@@ -0,0 +1,407 @@
{
"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": "538a870c-2dbd-457c-8376-cdd65a13778e"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "发起流程成功,请在任务首页手动提交!"
}
],
"ID": "686eac20-159f-47b3-af18-98b561a23926"
}
]
}
],
"ID": "b0afa112-c3bf-436e-8825-7ca3c4ea827a"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "发起流程失败"
}
],
"ID": "28d09d00-0c63-411d-9671-d9638d8dea95"
}
]
}
],
"ID": "0db22abd-802d-4a9a-82d2-a4916ff55327"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "当前任务状态不允许发起申请!"
}
],
"ID": "3d464f63-1e9b-4b73-befc-de21f74f4c38"
}
]
}
],
"ID": "25f8696e-7e2d-49f4-86ef-2328e2871047"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "当前项目已不在进行中状态,无法提交任务!"
}
],
"ID": "82f89f99-1a71-4c38-ad54-5f4e2a48f03d"
}
]
}
],
"ID": "bc582f6e-8cf5-474b-8183-43f925a4937c"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "任务不存在"
}
],
"ID": "baf44142-3577-44d7-a831-1077b74eeb08"
}
]
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionCode"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
}
}
]
}
}
]
}

View File

@@ -1,919 +0,0 @@
{
"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": {}
},
{
"Name": "备注",
"DataValidationInfo": {}
}
]
}
],
"Commands": [
{
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
"TryCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "项目统计",
"TableValue": {
"TableName": "View_项目统计信息",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "eb0e2733-cab5-46e5-9a71-a6c0c06a64d7",
"BindingInfo": {
"TableName": "View_项目统计信息",
"ColumnName": "项目ID",
"GUID": "2034ef31-0cc6-4b1f-8509-345a85d550c4",
"RelationBinding": {
"RelatedTable": "项目表",
"RelatedColumn": "ID",
"DisplayColumn": "项目经理"
}
},
"ColumnName": "项目经理"
},
{
"GUID": "a2ea47d0-850d-46fa-a000-6778dabf41dc",
"BindingInfo": {
"TableName": "View_项目统计信息",
"ColumnName": "项目ID",
"GUID": "8be465f9-1173-4551-ba9c-8077e9e1068a",
"RelationBinding": {
"RelatedTable": "项目表",
"RelatedColumn": "ID",
"DisplayColumn": "严格模式"
}
},
"ColumnName": "严格模式"
},
{
"GUID": "11caee44-d58a-4170-bd43-a87e850252e9",
"BindingInfo": {
"TableName": "View_项目统计信息",
"ColumnName": "项目预算工时",
"GUID": "c3f88088-ff8f-4ba4-b4b8-0b9b680f51b1"
},
"ColumnName": "项目预算工时"
},
{
"GUID": "4bf2aa08-e266-4579-a82f-501fb8455316",
"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": "bdd4321c439e40139d19baeb5c4269d0"
},
{
"$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": "cc68789f-08b0-4fa6-a1ef-d8ff4f599946"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "父任务",
"TableValue": {
"TableName": "任务表",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "4220f490-afe2-402e-bd98-a653a2aea5f0",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "层级",
"GUID": "71447dd9-ed15-40d3-8c95-35af02be1228"
},
"ColumnName": "层级"
},
{
"GUID": "8dadbb8e-0c03-4e6e-8851-50c04726233c",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务预算工时",
"GUID": "f2ea1508-f30e-412f-a345-3ede9d6c420d"
},
"ColumnName": "任务预算工时"
},
{
"GUID": "1c8bc67f-a6be-4284-b183-031402f0c0ac",
"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": "d3139f10-cd54-42de-8c03-c565033d980b"
}
],
"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": "b9f39510-1b0d-4666-b3c2-3854a8607477"
}
]
}
],
"ID": "74a1d017-09a1-41ad-b923-cc81d39fe37d"
}
]
},
{
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "4591d628-7cff-49e1-9a02-835c93cd83b4"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "父任务ID",
"GUID": "7c7599bc-e14f-4fee-a7b6-6f3e63fc0a81"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务ID"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务名称",
"GUID": "70479fde-ceb9-432f-ab11-b9e201e53452"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务标题"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "执行者",
"GUID": "fe1b1ef8-b4cc-4ec5-9607-ed79af9eee62"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=执行人"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "开始时间",
"GUID": "bd91151c-ab05-4c2f-960c-9a995ac74696"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=开始日期"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "结束时间",
"GUID": "f3b150ce-78ee-4e9a-92b3-341a86a973b8"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=结束日期"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务类型",
"GUID": "952fffb6-c470-4cee-b86a-75f36212dd02"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务类型"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "分组ID",
"GUID": "a34aca75-9d7c-423f-ae22-eca9bcb8b784"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务分组"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "版本",
"GUID": "69965d07-acb5-446d-b82b-974551f2f83b"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务版本"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务说明",
"GUID": "872f6ea6-9484-4846-b268-ceda654333f8"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务说明"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "备注",
"GUID": "0d19d5f4-5452-4b46-9935-3ec880c5002e"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=备注"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "层级",
"GUID": "fb08986f-e8fc-4f81-b5d3-5af4f2c842d4"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=层级"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务预算工时",
"GUID": "ce9c89dc-183d-41de-8115-bd04207bd3c4"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=预算工时"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务状态",
"GUID": "e745c5f9-9101-4ff2-98c0-7a247bfda7aa"
},
"Value": "0"
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "进度",
"GUID": "67710ba6-e18a-4789-92c8-1a74f9fe8bb9"
},
"Value": "0"
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "收集反馈",
"GUID": "eed842c2-50bc-4645-b865-1aa2894a3674"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=收集反馈"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "功能名称",
"GUID": "b6600f24-bc37-49e7-8f4b-9c41b7602444"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务标题"
}
}
],
"ParamNameToSaveNewRowValue": "新任务"
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "项目动态",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目ID",
"GUID": "31eb548b-adb3-48be-9d21-8a3b2b108e5b"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目动态",
"GUID": "2a172271-2baa-4386-a99b-a87f099d2e7a"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"新增任务[\"&任务标题&\"]\""
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "执行人",
"GUID": "8094c996-c8cc-4d1e-bd80-b4b5d43227d4"
},
"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": [
{
"GUID": "8db255a5-9c7d-4684-93e6-592173e1c6c8",
"BindingInfo": {
"TableName": "项目成员表",
"ColumnName": "ID",
"GUID": "b72cf0b4-c471-44fa-b47b-a534a09cde3e"
},
"ColumnName": "ID"
},
{
"GUID": "984f27e6-fd7d-41d5-8120-3af19b959bb1",
"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": "44e1c4fa720445809ff43c066c0f47b9"
},
{
"$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": "c8bb32b5-4044-4c3f-b3f0-35999adceeca"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "任务ID",
"GUID": "51f4dfe8-cf9b-409b-880c-4cb56d2dac53"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新任务.ID"
}
},
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "项目成员ID",
"GUID": "85f0dc19-b87c-41fd-a580-014ab998bc60"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.ID"
}
},
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "参与人",
"GUID": "c26e130d-b353-47b9-92c4-7e8615c3f6ac"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.项目成员"
}
}
]
}
]
}
],
"ID": "bec25113-44bd-4d82-97ce-95fd7d0d88fd"
}
]
}
]
},
{
"$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.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务表",
"ShowConfirm": false,
"RowsToUpdate": 1,
"RowsToUpdateCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务表",
"ColumnName": "ID",
"GUID": "e6b219e9-9009-4421-b6aa-0713c9772f99"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新任务.ID"
}
},
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务状态",
"GUID": "e6e8b427-3747-4bbb-827b-87c08314fbd4"
},
"Value": "2"
}
]
}
],
"ID": "4c0c29d2-8fdc-4fe4-9f57-b99a9ce37352"
},
{
"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": "52e9bb6c-ca24-4679-ace6-9dc6dc05272f"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新任务.ID"
}
},
"Initiator": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=执行人"
},
"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_RU_TASK_View",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "21325c47-6da6-4dd7-8cb8-b64561090a1f",
"BindingInfo": {
"TableName": "ACT_RU_TASK_View",
"ColumnName": "ID_",
"GUID": "c935de77-cd56-4102-9a40-a306f3c2f21f"
},
"ColumnName": "ID"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "ACT_RU_TASK_View",
"ColumnName": "PROC_INST_ID_",
"GUID": "43f10c5c-ae7d-4360-a074-6b7cd28e3f5e"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=发起流程结果.ID"
}
},
"TopCount": "1",
"OrderBySqlCondition": {
"OrderByColumns": [
{
"ColumnBindingInfo": {
"TableName": "ACT_RU_TASK_View",
"ColumnName": "CREATE_TIME_",
"GUID": "71619b71-9d7c-46b6-9d9c-79db69560c17"
},
"Order": 1
}
]
}
},
"ID": "19e25811a64e447fb46b9e15100876f0"
},
{
"$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": "系统自动提交"
}
],
"ID": "d8e4f9b8-7380-43e1-8692-5635ba606b65"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "任务创建成功,请前往待办提交审批!"
}
],
"ID": "9385d55b-e6c4-43ee-897d-d04e172ae85f"
}
]
}
],
"ID": "34814cb9-e373-4aad-aceb-be97ef5f1878"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "任务创建成功,发起流程失败!"
}
],
"ID": "5eb3bc06-917e-4dfb-a05c-3de4c4302ba1"
}
]
}
],
"ID": "51acacd6-441f-44b5-8e6d-858c0e65ed5a"
}
]
},
{
"$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"
}
}
]
}
}
]
}