Files
clue/ServerCommands/任务/新增任务.json

525 lines
18 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": "任务名称",
"DataValidationInfo": {
"IgnoreBlank": false
}
},
{
"Name": "父任务ID",
"DataValidationInfo": {}
},
{
"Name": "负责人",
"DataValidationInfo": {
"IgnoreBlank": false
}
},
{
"Name": "开始日期",
"DataValidationInfo": {}
},
{
"Name": "结束日期",
"DataValidationInfo": {}
},
{
"Name": "任务分组",
"DataValidationInfo": {}
},
{
"Name": "任务类型",
"DataValidationInfo": {
"IgnoreBlank": false
}
},
{
"Name": "任务版本",
"DataValidationInfo": {}
},
{
"Name": "预算工时",
"DataValidationInfo": {}
},
{
"Name": "任务说明",
"DataValidationInfo": {}
},
{
"Name": "收集反馈",
"DataValidationInfo": {}
},
{
"Name": "备注",
"DataValidationInfo": {}
}
]
}
],
"Commands": [
{
"$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": "任务表",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "f7032606-edf3-49fc-884b-acddb188db12",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "层级",
"GUID": "ddb9f866-120e-4522-9dd6-419115b3134e"
},
"ColumnName": "层级"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务表",
"ColumnName": "ID",
"GUID": "35efae29-d3e2-4711-8684-720338d259e6"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务ID"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "076753af241549358e05a551b7b0db10"
},
{
"$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.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "父任务层级",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务.层级+0"
},
"ID": "d01552992a0c4569864d9ac2ed82875b"
}
],
"ID": "c995ccbd-f613-44ff-8af6-319a1de3b6a0"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "父任务层级",
"ParameterValue": "0",
"ID": "100407c5ad3545a4927cc51a64cc94ba"
}
],
"ID": "cc0cb7c8-3629-4003-a956-526b8cca6522"
}
]
}
],
"ID": "0b738736-143a-4933-b958-ab5d57001c8a"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "父任务层级",
"ParameterValue": "0",
"ID": "918e2a12022e4e8080c14ece366ea9bb"
}
],
"ID": "f357f4f5-1cdd-4e51-93cf-006110341ca7"
}
]
},
{
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "dc072ecc-6a39-4b89-823e-3b506835fd34"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "父任务ID",
"GUID": "ca2e99de-c2c1-4b56-8a31-b3d5297b9f9f"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务ID"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "层级",
"GUID": "130c875e-97d5-4768-9bf0-2d7cc3382a41"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务层级+1"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务名称",
"GUID": "787e796c-f835-4d78-bfee-2c9a2ca9e9a5"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务名称"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务负责人",
"GUID": "e6f56e04-b2ff-4544-a881-92b3ecd34fa7"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=负责人"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "开始时间",
"GUID": "c22adf72-35c9-4dd1-847f-b17fee4c176f"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=开始日期"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "结束时间",
"GUID": "d6bac9cc-4a50-43a9-b3db-ff3803dd24d5"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=结束日期"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务类型",
"GUID": "aa643e09-009e-4a1b-bd11-28ab9b9f6dd0"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务类型"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "分组ID",
"GUID": "1cf52157-3f80-494d-b7c7-5f5db4985dd1"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务分组"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "版本",
"GUID": "a3e59d0f-67ce-40b3-8666-219bfea3b55f"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务版本"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务说明",
"GUID": "eca6f71a-f927-4329-9f24-9d68d09fd8f3"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务说明"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "备注",
"GUID": "604a8cda-eaf6-4f12-82ae-9275a717db4f"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=备注"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务预算工时",
"GUID": "c4f1b83d-a502-46d5-be9f-3a71fb3bef41"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=预算工时"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "进度",
"GUID": "4fa004a7-fc87-4e04-b1dc-83de4ee4f804"
},
"Value": "0"
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "功能名称",
"GUID": "4f6ba417-c67b-4839-b9e0-54e651a67f29"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务名称"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "功能描述",
"GUID": "8f4998e0-6968-4177-817f-2e1191edfb39"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "收集反馈",
"GUID": "914f7518-9fa5-40a9-8e54-32239ae76e20"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=收集反馈"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务状态",
"GUID": "84d61c90-ef6b-4e51-9949-77866f5395f5"
},
"Value": "0"
}
],
"ParamNameToSaveNewRowValue": "新任务"
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务成员表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "项目ID",
"GUID": "290f47b2-9327-46ac-91da-48a97304e898"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "任务ID",
"GUID": "4967920c-4c61-4690-b15c-bf9fafbc6559"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新任务.ID"
}
},
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "任务成员",
"GUID": "a0d9f861-caf8-43df-a942-0c862af59da5"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=负责人"
}
}
],
"ParamNameToSaveNewRowValue": "新任务"
}
]
},
{
"$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": "c8a22ced-db3f-4888-afe4-ed4035b5fc6a"
},
"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.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "新增任务成功",
"CustomReturns": [
{
"ReturnPropertyName": "任务ID",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新任务.ID"
}
}
]
}
],
"ID": "f5a7f9cd-a8a8-4503-bdae-1de2fdd76551"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "发起流程失败,请手动重新发起!",
"CustomReturns": [
{
"ReturnPropertyName": "任务ID",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新任务.ID"
}
}
]
}
],
"ID": "53fefe07-7f1c-4a7a-a16c-10398165419d"
}
]
}
],
"ReturnProperties": [
{
"Name": "任务ID"
}
]
}