Files
clue/ServerCommands/任务/新增任务.json
超哥 295f17ea9b {"Message":"增加项目首页的Tag标签记忆功能,刷新网页会自动回到当前标签页面","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":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":15,"Name":"ServerCommand/变更任务状态"},{"State":1,"Type":28,"Name":"ProcessItem/预算申请"},{"State":1,"Type":8,"Name":"ApplicationSetting"},{"State":1,"Type":12,"Name":"CustomLibrary"},{"State":1,"Type":40,"Name":"Plugin"},{"State":1,"Type":31,"Name":"UserControlPage/Git仓库卡片"},{"State":1,"Type":28,"Name":"ProcessItem/新增任务流程"},{"State":1,"Type":15,"Name":"ServerCommand/在线获取仓库某日提交数据"},{"State":1,"Type":1,"Name":"PCPage/项目代码"},{"State":1,"Type":15,"Name":"ServerCommand/新增任务"}],"Version":"v1"}
2024-06-18 21:38:58 +08:00

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": "27d8d05a-878e-4e38-9c50-22db2b8ff7de"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "父任务层级",
"ParameterValue": "0",
"ID": "100407c5ad3545a4927cc51a64cc94ba"
}
],
"ID": "e6d7d559-2e5b-4b9c-aed1-0a8d20cfd618"
}
]
}
],
"ID": "5b452186-29b1-4bf5-a235-68d0a3c9ec15"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "父任务层级",
"ParameterValue": "0",
"ID": "918e2a12022e4e8080c14ece366ea9bb"
}
],
"ID": "dba9b261-35e4-40ef-9aec-5d72b3f23500"
}
]
},
{
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "f9ec393d-8d91-4100-a061-4000a1efa466"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "父任务ID",
"GUID": "8abe972a-9e9a-4284-b5aa-ec017f7bd5bc"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务ID"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "层级",
"GUID": "bf9ce170-29db-4e2b-9a8f-cc0c607c0b40"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务层级+1"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务名称",
"GUID": "96c8814e-76d4-4f80-a544-814645d51e74"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务名称"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务负责人",
"GUID": "71a6f6ea-dfa3-4934-8c3f-11f41f2d0e76"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=负责人"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "开始时间",
"GUID": "8b8f4a4e-4f9c-40ff-87d6-b0263672a9fb"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=开始日期"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "结束时间",
"GUID": "9f9baac3-9371-4c73-b1c6-a74905a322f5"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=结束日期"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务类型",
"GUID": "80c6447d-fbd3-4de8-99ba-eeea1e771879"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务类型"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "分组ID",
"GUID": "8433c670-ecc4-4900-9afc-5cd8f7cdcaf9"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务分组"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "版本",
"GUID": "0c84b620-db82-480e-99a6-3d4b9c144aac"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务版本"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务说明",
"GUID": "292b556c-dffd-479c-909b-d5e35b76de63"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务说明"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "备注",
"GUID": "033feb75-297d-4008-8770-ec851df03961"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=备注"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务预算工时",
"GUID": "66e19b74-0698-48d2-b4dd-f4632946aac2"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=预算工时"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "进度",
"GUID": "3e4340de-7c19-4f70-bcff-7dc04ef58914"
},
"Value": "0"
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "功能名称",
"GUID": "8141a094-e012-4617-8815-82567e51efc4"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务名称"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "功能描述",
"GUID": "10903cc6-fe1e-4ac0-9fd8-40a3a68bf474"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "收集反馈",
"GUID": "42892121-82fd-470e-862d-6ff11e3ff6d9"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=收集反馈"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务状态",
"GUID": "e0cfab6c-5942-43ba-a89c-1dffaba21de9"
},
"Value": "0"
}
],
"ParamNameToSaveNewRowValue": "新任务"
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务成员表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "项目ID",
"GUID": "82a795d5-dff0-42c0-ba86-ba438076c0ad"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "任务ID",
"GUID": "dc5bfad5-ecd8-4ba8-aa05-74efe3e78b74"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新任务.ID"
}
},
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "任务成员",
"GUID": "c3c840c1-c010-481b-a4ea-f0ef86925a67"
},
"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": "425d89dd-d4ea-4733-bb9c-7dd1fe62ab63"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "发起流程失败,请手动重新发起!",
"CustomReturns": [
{
"ReturnPropertyName": "任务ID",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新任务.ID"
}
}
]
}
],
"ID": "3ae26b74-a588-49d8-beb9-fe32e20bccec"
}
]
}
],
"ReturnProperties": [
{
"Name": "任务ID"
}
]
}