{"Message":"1","MessageType":2,"Modules":[{"State":1,"Type":7,"Name":"Table/项目表"},{"State":1,"Type":23,"Name":"TableView/View_任务工时统计"},{"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":11,"Name":"UserService"},{"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":28,"Name":"ProcessItem/新增任务流程"},{"State":1,"Type":23,"Name":"TableView/任务平行视图"},{"State":1,"Type":1,"Name":"PCPage/项目代码"},{"State":3,"Type":15,"Name":"ServerCommand/新增任务"},{"State":3,"Type":16,"Name":"TaskScheduler/仓库新增事件"}],"Version":"v1"}
This commit is contained in:
533
ServerCommands/任务/新增任务.json
Normal file
533
ServerCommands/任务/新增任务.json
Normal file
@@ -0,0 +1,533 @@
|
||||
{
|
||||
"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": "7e2a1dd5-2f72-4080-ade7-cf9fbdb84b76"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "父任务层级",
|
||||
"ParameterValue": "0",
|
||||
"ID": "100407c5ad3545a4927cc51a64cc94ba"
|
||||
}
|
||||
],
|
||||
"ID": "5dd917ef-5c59-480e-ac2f-df0aebe94bc2"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "7e2b7fa5-5bc7-4015-abc7-9f003a4cf8aa"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "父任务层级",
|
||||
"ParameterValue": "0",
|
||||
"ID": "918e2a12022e4e8080c14ece366ea9bb"
|
||||
}
|
||||
],
|
||||
"ID": "240fe6ee-509b-46d8-b9f6-e5d42777b55d"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$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.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "新增成功",
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "任务ID",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=新任务.ID"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$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": "发起流程结果",
|
||||
"Disabled": true
|
||||
},
|
||||
{
|
||||
"$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"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "8157c39f-9833-46a2-90c5-6e2ba77dc18b"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": "发起流程失败,请手动重新发起!",
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "任务ID"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "9895df7f-af90-4143-b94a-8926d084ae89"
|
||||
}
|
||||
],
|
||||
"Disabled": true
|
||||
}
|
||||
],
|
||||
"ReturnProperties": [
|
||||
{
|
||||
"Name": "任务ID"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user