Files
clue/ServerCommands/项目/项目流程发起前校验.json

539 lines
23 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
}
}
]
}
],
"Commands": [
{
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
"TryCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "项目信息",
"TableValue": {
"TableName": "项目表",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "3bfe4ccd-703d-4b2d-895a-1e3c14ec922f",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "ID",
"GUID": "3d85cd7a-9659-4edd-88eb-7503f436cb1a"
},
"ColumnName": "ID"
},
{
"GUID": "58f331ed-74fe-4291-8aef-b44ecda111e5",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "项目名称",
"GUID": "048bbdfa-7531-49e4-afcf-1594aff44864"
},
"ColumnName": "项目名称"
},
{
"GUID": "54dd07bd-6f61-401f-b62e-36ed7ce885cb",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "项目代号",
"GUID": "252e17c3-5352-4a05-a18c-cb0a603b3b56"
},
"ColumnName": "项目代号"
},
{
"GUID": "1e79be20-3cd7-4405-be38-e322558eb2b6",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "项目简介",
"GUID": "ed8e8a2e-d186-453c-8adb-61aa3349d12a"
},
"ColumnName": "项目简介"
},
{
"GUID": "bd3f6025-6a7a-462c-bf24-9768a9856acc",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "项目封面",
"GUID": "e1413f8c-c2da-4bd7-8d22-39ec12b85343"
},
"ColumnName": "项目封面"
},
{
"GUID": "f08ada6b-04cb-492a-bbb2-80bb0a98d864",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "项目经理",
"GUID": "287ce3eb-4703-4eb5-b701-175d09f67030"
},
"ColumnName": "项目经理"
},
{
"GUID": "912c852f-7f8e-4517-b3e9-01fd1c635da5",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "项目分组",
"GUID": "d5b30a9e-791a-48fe-905c-42d8eb8affac"
},
"ColumnName": "项目分组"
},
{
"GUID": "50ecc137-dc6a-457f-aae5-773875ccd606",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "所属客户",
"GUID": "27fec1eb-62ed-4e9f-85a1-e0e39b4fad7d"
},
"ColumnName": "所属客户"
},
{
"GUID": "41ab5854-6503-48fe-b69d-8a6ea311b292",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "所属客户部门",
"GUID": "fc9c5e99-79f8-4c0c-879a-1d332aad4401"
},
"ColumnName": "所属客户部门"
},
{
"GUID": "acdbe594-bf9d-4634-92ac-aa4628ed0443",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "工时分配方式",
"GUID": "c7d939e2-de06-4e5a-bb68-adbdf157095a"
},
"ColumnName": "工时分配方式"
},
{
"GUID": "ba003acf-8175-4823-9698-6b432c9b8f2b",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "项目预算工时",
"GUID": "e2a16be9-4794-467f-a6f4-2f93c8f597da"
},
"ColumnName": "项目预算工时"
},
{
"GUID": "37385f83-216a-4bbf-9851-4749c1552fe3",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "项目预算费用",
"GUID": "9451ae1e-8f25-4ae6-a03a-b0d57f5a1135"
},
"ColumnName": "项目预算费用"
},
{
"GUID": "09e14ad9-1b0d-4394-9384-0ab933482b20",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "公开",
"GUID": "e65770f8-0cc9-4443-9112-4c593df9258d"
},
"ColumnName": "公开"
},
{
"GUID": "67f9a1d4-7469-4fee-8c42-7ff79d970fea",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "严格模式",
"GUID": "ac6c3fe7-b892-4c74-91c4-10a76b600ef3"
},
"ColumnName": "严格模式"
},
{
"GUID": "34512663-fce3-4ff3-a907-7164c7482bde",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "计划开始日期",
"GUID": "ec3721cf-4d3d-4842-b396-3019eb023bda"
},
"ColumnName": "计划开始日期"
},
{
"GUID": "fd7245a0-4f12-46e0-838d-ae6ba20015a3",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "计划完成日期",
"GUID": "4d38dc12-c932-4f2e-8bbb-e5116bd1ad45"
},
"ColumnName": "计划完成日期"
},
{
"GUID": "5b5c67e7-7d87-4415-bcd5-c2c52aaae908",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "项目方案",
"GUID": "264583fb-5acc-41bb-a4c3-243366d1fbd3"
},
"ColumnName": "项目方案"
},
{
"GUID": "504e37b6-5ada-4f21-be75-cedbc6f82d03",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "预算方案",
"GUID": "ee5a981b-0617-481f-8732-2a0784d135c1"
},
"ColumnName": "预算方案"
},
{
"GUID": "b19da5b5-92a9-4bbe-8bf0-f37c4483a12d",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "网络资源",
"GUID": "d39c4700-048a-4763-a685-00219b4a5f1c"
},
"ColumnName": "网络资源"
},
{
"GUID": "dc993af7-79cb-447c-a26a-8401471502cd",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "参与人",
"GUID": "98389e66-fb86-4117-8193-1a41e8592b7b"
},
"ColumnName": "参与人"
},
{
"GUID": "631207ba-f34a-454b-b127-1b866e61eff6",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "开启反馈收集",
"GUID": "9b42d410-5fa3-4236-b57e-f21546343c51"
},
"ColumnName": "开启反馈收集"
},
{
"GUID": "1b0e3b14-0dd8-4d87-b4c5-03d776d5f951",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "项目状态",
"GUID": "73fe8e59-e7d8-4156-b95d-f54632e9b5ae"
},
"ColumnName": "项目状态"
},
{
"GUID": "449771bb-b1bf-43d0-b5c9-3a679fbf50aa",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "立项流程示例ID",
"GUID": "11084f4f-4132-41dc-ad2e-a78072285e3b"
},
"ColumnName": "立项流程示例ID"
},
{
"GUID": "66df9413-b7d8-491b-9ac6-aff85cad2d01",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "删除",
"GUID": "23082ac2-2bcc-4951-ac5c-fb7081b422fb"
},
"ColumnName": "删除"
},
{
"GUID": "eef17543-8be5-4e67-af0d-7f624a125e53",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "FGC_Creator",
"GUID": "ccf8d1d7-17d3-43af-ac7f-a9e8dfdd7d73",
"AttachType": {
"$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess",
"UserColumnAttachType": 1
}
},
"ColumnName": "创建者_全名"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "项目表",
"ColumnName": "ID",
"GUID": "28da52df-db8e-4c38-9b26-532dcd6997c9"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ID"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "2b983ad184f144caa4a3f2adb3435fbc"
},
{
"$type": "Forguncy.Model.ProcessInstanceCommand, ServerDesignerCommon",
"ProcessInstanceId": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目信息.立项流程示例ID"
},
"OperateType": 400,
"ProcessInstanceName": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目信息.创建者_全名&\"发起的\"&\"[\"&项目信息.项目名称&\"]项目立项申请\""
}
},
{
"$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": "%Null%"
},
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "项目名称及代号不能为空"
}
],
"ID": "67dc248f-a0f8-4993-98d1-76bbc52aab96"
}
]
},
{
"$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": "581984ca-729a-4b01-a938-7fb9705c656b"
}
]
},
{
"$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%"
},
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目信息.所属客户部门"
}
}
}
],
"RelationType": 1
},
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "项目所属客户及部门不能为空"
}
],
"ID": "65b1ae4d-df27-48b0-a56c-ab1c2e6ff668"
}
]
},
{
"$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%"
},
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目信息.计划完成日期"
}
},
"value": "%Null%"
}
],
"RelationType": 1
},
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "项目计划日期不能为空"
}
],
"ID": "39a702b1-bc56-45e1-94dc-6c3b4f916d48"
}
]
},
{
"$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": "1"
},
{
"$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": "3c1c2e13-f6ae-4806-8d85-e0d95a256140"
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "校验通过"
}
],
"ID": "3a297371-5af1-4b51-8c75-d72eea8b849f"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "项目不存在"
}
],
"ID": "64651437-a3cd-47cb-bf1c-05d173b6b205"
}
]
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionCode"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
}
}
]
}
}
]
}