Files
clue/ServerCommands/项目/新增项目.json
SHAMUSPC\NINGMEI 6b4dedf7e7 {"Message":"1","MessageType":2,"Modules":[{"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":3,"Name":"MasterPCPage/FGC_母版页"},{"State":1,"Type":9,"Name":"Theme"},{"State":1,"Type":26,"Name":"Upload"},{"State":1,"Type":23,"Name":"TableView/用户信息视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/用户组织关系视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/角色信息视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/角色分类关系视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/用户角色关系视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/角色组织关系视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/角色拥有权限视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/组织信息视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/组织级别视图","ExclusiveType":0},{"State":1,"Type":15,"Name":"ServerCommand/新增工时"},{"State":1,"Type":7,"Name":"Table/项目分组","ExclusiveType":0},{"State":1,"Type":1,"Name":"PCPage/项目信息"},{"State":1,"Type":15,"Name":"ServerCommand/新增项目"},{"State":1,"Type":1,"Name":"PCPage/项目审批"},{"State":1,"Type":28,"Name":"ProcessItem/预算申请"},{"State":1,"Type":36,"Name":"ShareCommandContainer/发起预算申请"},{"State":3,"Type":22,"Name":"Tables/需求反馈"},{"State":3,"Type":7,"Name":"Table/需求反馈登记表"},{"State":3,"Type":7,"Name":"Table/反馈状态表"},{"State":3,"Type":1,"Name":"PCPage/项目反馈"}],"Version":"v1"}
2024-03-15 19:30:37 +08:00

424 lines
15 KiB
JSON

{
"Name": "新增项目",
"Enabled": true,
"Triggers": [
{
"$type": "Forguncy.ServerCommands.Models.PostRequestTrigger, 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": "封面"
},
{
"Name": "项目名称",
"DataValidationInfo": {
"IgnoreBlank": false
}
},
{
"Name": "项目简介"
},
{
"Name": "项目方案"
},
{
"Name": "预算方案"
},
{
"Name": "所属客户",
"DataValidationInfo": {
"IgnoreBlank": false
}
},
{
"Name": "所属客户部门"
},
{
"Name": "管理员",
"DataValidationInfo": {
"IgnoreBlank": false
}
},
{
"Name": "工时核定方式",
"DataValidationInfo": {
"IgnoreBlank": false
}
},
{
"Name": "权限"
},
{
"Name": "分组"
},
{
"Name": "预算工时"
},
{
"Name": "预算金额"
},
{
"Name": "严格模式"
},
{
"Name": "开始日期"
},
{
"Name": "结束日期"
}
]
}
],
"Commands": [
{
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
"TryCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "项目表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "项目名称",
"GUID": "c7fd866a-6645-4f29-bfc8-1a4afec71def"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目名称"
}
},
{
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "项目简介",
"GUID": "b00a19e0-4cbd-43b5-8893-bdfb998502c3"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目简介"
}
},
{
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "项目封面",
"GUID": "59a85169-51b1-4a05-8e9b-e3b785b48c89"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=封面"
}
},
{
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "项目经理",
"GUID": "55bb0437-b6d9-41de-a080-0d9f03df0778"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=管理员"
}
},
{
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "项目分组",
"GUID": "7331d8d6-fdf2-4c06-94fd-4dc8ebff668d"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=分组"
}
},
{
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "所属客户",
"GUID": "fe2bb7ce-5f38-49fe-88bd-2e7b9f546623"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=所属客户"
}
},
{
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "所属客户部门",
"GUID": "c415924a-188a-4fd2-906a-37b338555e84"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=所属客户部门"
}
},
{
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "工时核定方式",
"GUID": "b21dabb5-c5a3-4c01-b046-d201552826b4"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=工时核定方式"
}
},
{
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "项目预算工时",
"GUID": "def30e80-365d-4976-b190-3a8698f200ba"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=预算工时"
}
},
{
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "项目预算费用",
"GUID": "5bc11bd8-71a4-433a-a7ef-19afd44d4a2d"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=预算金额"
}
},
{
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "公开",
"GUID": "91b6d257-5b04-489c-827f-2b5057649cac"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=权限"
}
},
{
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "严格模式",
"GUID": "e170b5fb-a9aa-47a5-9ec7-a2eec98b3a3e"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=严格模式"
}
},
{
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "项目方案",
"GUID": "ef277d4b-8041-48a3-82e2-2bcbf25af926"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目方案"
}
},
{
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "预算方案",
"GUID": "77762991-9791-43d4-ac7b-7a92c42ca33b"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=预算方案"
}
},
{
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "计划开始日期",
"GUID": "3361cdc7-a525-47b0-a6dd-d24d4aa78575"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=开始日期"
}
},
{
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "计划完成日期",
"GUID": "4310f041-15d8-4500-bc5a-81d65276c1f0"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=结束日期"
}
},
{
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "项目状态",
"GUID": "8819b37a-ccd2-44e6-a8fe-91c4f62de1a5"
},
"Value": "0"
},
{
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "删除",
"GUID": "09c93b33-6c7f-4bc9-af5c-abd271149b3f"
},
"Value": "0"
}
],
"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": "017acb4e-0bdf-4710-ac6e-40a525a887ac"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新项目.ID"
}
},
"Initiator": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=管理员"
},
"ReturnResultName": "发起流程结果"
},
{
"$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": "%Null%",
"compareType": 1
},
{
"$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.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "项目表",
"ShowConfirm": false,
"RowsToUpdate": 1,
"RowsToUpdateCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "项目表",
"ColumnName": "ID",
"GUID": "0a361435-8e96-4c27-a78f-091a78ae4ade"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新项目.ID"
}
},
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "立项流程示例ID",
"GUID": "a284f5ba-e5d3-4017-b98f-74c18419e1d9"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=发起流程结果.ID"
}
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "项目创建成功,请等待审批"
}
],
"ID": "8d3ff6c1-708f-47c2-85fe-aa84564f3b7b"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "项目已创建,但未能发起审批,请手动发起审批流程!"
}
],
"ID": "4ae49fd6-d0fd-4c75-a782-caffeb404160"
}
]
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionCode"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
}
}
]
}
}
]
}