555 lines
20 KiB
JSON
555 lines
20 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": {}
|
|
},
|
|
{
|
|
"Name": "封面",
|
|
"DataValidationInfo": {}
|
|
},
|
|
{
|
|
"Name": "项目名称",
|
|
"DataValidationInfo": {
|
|
"IgnoreBlank": false
|
|
}
|
|
},
|
|
{
|
|
"Name": "项目代号",
|
|
"DataValidationInfo": {}
|
|
},
|
|
{
|
|
"Name": "项目简介",
|
|
"DataValidationInfo": {}
|
|
},
|
|
{
|
|
"Name": "项目方案",
|
|
"DataValidationInfo": {}
|
|
},
|
|
{
|
|
"Name": "预算方案",
|
|
"DataValidationInfo": {}
|
|
},
|
|
{
|
|
"Name": "所属客户",
|
|
"DataValidationInfo": {
|
|
"IgnoreBlank": false
|
|
}
|
|
},
|
|
{
|
|
"Name": "所属客户部门",
|
|
"DataValidationInfo": {}
|
|
},
|
|
{
|
|
"Name": "项目经理",
|
|
"DataValidationInfo": {
|
|
"IgnoreBlank": false
|
|
}
|
|
},
|
|
{
|
|
"Name": "商务经理",
|
|
"DataValidationInfo": {
|
|
"IgnoreBlank": false
|
|
}
|
|
},
|
|
{
|
|
"Name": "客服经理",
|
|
"DataValidationInfo": {
|
|
"IgnoreBlank": false
|
|
}
|
|
},
|
|
{
|
|
"Name": "权限",
|
|
"DataValidationInfo": {}
|
|
},
|
|
{
|
|
"Name": "分组",
|
|
"DataValidationInfo": {}
|
|
},
|
|
{
|
|
"Name": "预算工时",
|
|
"DataValidationInfo": {}
|
|
},
|
|
{
|
|
"Name": "预算金额",
|
|
"DataValidationInfo": {}
|
|
},
|
|
{
|
|
"Name": "严格模式",
|
|
"DataValidationInfo": {}
|
|
},
|
|
{
|
|
"Name": "工时分配方式",
|
|
"DataValidationInfo": {
|
|
"IgnoreBlank": false
|
|
}
|
|
},
|
|
{
|
|
"Name": "开启反馈收集",
|
|
"DataValidationInfo": {}
|
|
},
|
|
{
|
|
"Name": "开始日期",
|
|
"DataValidationInfo": {}
|
|
},
|
|
{
|
|
"Name": "结束日期",
|
|
"DataValidationInfo": {}
|
|
},
|
|
{
|
|
"Name": "网络资源",
|
|
"DataValidationInfo": {}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Commands": [
|
|
{
|
|
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
|
|
"TryCommandPart": {
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
|
"ParameterName": "项目信息",
|
|
"TableValue": {
|
|
"TableName": "项目平行视图",
|
|
"TableValueType": 1,
|
|
"BindingInfos": [
|
|
{
|
|
"GUID": "d8ecf053-3cdb-446d-a946-b9f1526de3b9",
|
|
"BindingInfo": {
|
|
"TableName": "项目平行视图",
|
|
"ColumnName": "严格模式",
|
|
"GUID": "f3304d3a-e441-49c0-8657-9ff7e7361662"
|
|
},
|
|
"ColumnName": "严格模式"
|
|
},
|
|
{
|
|
"GUID": "ba71134c-4f15-494a-a5e3-6de8bdf63972",
|
|
"BindingInfo": {
|
|
"TableName": "项目平行视图",
|
|
"ColumnName": "项目经理",
|
|
"GUID": "60604077-31c1-4fad-b2d4-0d982c368e43"
|
|
},
|
|
"ColumnName": "项目经理"
|
|
},
|
|
{
|
|
"GUID": "b111d706-c1f7-468e-b8bc-e166ab13a0b7",
|
|
"BindingInfo": {
|
|
"TableName": "项目平行视图",
|
|
"ColumnName": "项目预算工时",
|
|
"GUID": "f04c13b6-7fbd-4bcc-9af5-626e57bbcca1"
|
|
},
|
|
"ColumnName": "项目预算工时"
|
|
},
|
|
{
|
|
"GUID": "45d6344f-75c4-402d-b2eb-4206014dfd42",
|
|
"BindingInfo": {
|
|
"TableName": "项目平行视图",
|
|
"ColumnName": "项目预算费用",
|
|
"GUID": "59227a0d-b65a-4b79-b36a-cfbbc093dab2"
|
|
},
|
|
"ColumnName": "项目预算费用"
|
|
},
|
|
{
|
|
"GUID": "535853d1-0e2f-48ec-990f-96d48aee5f91",
|
|
"BindingInfo": {
|
|
"TableName": "项目平行视图",
|
|
"ColumnName": "项目总核定工时",
|
|
"GUID": "7877033e-26a7-4d66-9b99-b3ab95d177d7"
|
|
},
|
|
"ColumnName": "项目总核定工时"
|
|
},
|
|
{
|
|
"GUID": "f03b9b49-d9ff-42b8-b23a-055b6a16d473",
|
|
"BindingInfo": {
|
|
"TableName": "项目平行视图",
|
|
"ColumnName": "已消耗成本",
|
|
"GUID": "3f924701-9367-4fb5-bae8-2ce947198ff0"
|
|
},
|
|
"ColumnName": "已消耗成本"
|
|
},
|
|
{
|
|
"GUID": "f10d0091-d7b3-4a14-886e-af14ff0e084e",
|
|
"BindingInfo": {
|
|
"TableName": "项目平行视图",
|
|
"ColumnName": "工时分配方式",
|
|
"GUID": "6f5c347e-b614-4124-be0d-e60522cb6233"
|
|
},
|
|
"ColumnName": "工时分配方式"
|
|
}
|
|
],
|
|
"SqlCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "项目平行视图",
|
|
"ColumnName": "ID",
|
|
"GUID": "19b70b8a-01a2-45e5-a7df-3f81bcc3b844"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=ID"
|
|
}
|
|
},
|
|
"TopCount": "1"
|
|
},
|
|
"ID": "a71c025ff0654154b85a30c0de1d312e"
|
|
},
|
|
{
|
|
"$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": "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": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=项目信息.项目预算工时"
|
|
},
|
|
"compareType": 2
|
|
},
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "400",
|
|
"Message": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=\"项目总核定工时已超标,无法为您切换为严格模式!\""
|
|
}
|
|
}
|
|
],
|
|
"ID": "cec38e27-e103-472a-bc40-9b4130803fb5"
|
|
},
|
|
{
|
|
"Condition": {
|
|
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
|
"param": {
|
|
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
|
"ParamObject": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=项目信息.已消耗成本"
|
|
}
|
|
},
|
|
"value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=项目信息.项目预算费用"
|
|
},
|
|
"compareType": 2
|
|
},
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "400",
|
|
"Message": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=\"项目费用已超标,此时无法为您切换为严格模式\""
|
|
}
|
|
}
|
|
],
|
|
"ID": "da641921-20b5-4e5e-8d42-dfa84e05eb94"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Comments": "如果是更新项目,且改变了严格模式,那么就要校验。超标就不允许切换",
|
|
"ID": "767ccea8-519f-4580-8cdd-746b41248d21"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
|
"TableName": "项目表",
|
|
"ShowConfirm": false,
|
|
"RowsToUpdate": 1,
|
|
"RowsToUpdateCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "ID",
|
|
"GUID": "a8a27903-2609-49d7-8f9c-318870a24d2a"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=ID"
|
|
}
|
|
},
|
|
"UpdateBindingValues": [
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "项目名称",
|
|
"GUID": "2e3291ed-3eaa-4316-bc66-86ac61940b3e"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=项目名称"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "项目代号",
|
|
"GUID": "9bab3993-734e-48d6-9004-fd4395ff0fde"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=项目代号"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "项目简介",
|
|
"GUID": "1fe13b54-3818-4414-8b76-f3d7889e474b"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=项目简介"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "项目封面",
|
|
"GUID": "6ea8f5a5-21eb-494a-9963-d6765ef27159"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=封面"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "项目经理",
|
|
"GUID": "00608156-11fa-4d20-8a89-cb4656088900"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=项目经理"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "商务经理",
|
|
"GUID": "0d62988c-b86b-4759-af3b-7de04f143f02"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=商务经理"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "客服经理",
|
|
"GUID": "c82d6117-1c79-4263-bd2f-ba688c51dae0"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=客服经理"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "项目分组",
|
|
"GUID": "14ff2c48-94f8-410d-afb6-1e444c2d5c00"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=分组"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "所属客户",
|
|
"GUID": "5619d849-460b-4478-a463-42537f9af0c8"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=所属客户"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "所属客户部门",
|
|
"GUID": "8bdfa5e4-262e-4d36-83cd-35cce155a025"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=所属客户部门"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "公开",
|
|
"GUID": "8d4c4fbc-b122-4604-aa9b-9bb2745bff42"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=权限"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "严格模式",
|
|
"GUID": "200eba0a-8547-4de3-b1cf-a4038a3ef6f7"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=严格模式"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "计划开始日期",
|
|
"GUID": "bd41bd29-aa72-496d-a8c9-29cc44859754"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=开始日期"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "计划完成日期",
|
|
"GUID": "a0f3e6b9-2431-4143-aca1-c676852abae9"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=结束日期"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "项目方案",
|
|
"GUID": "3b80315e-1a82-4b50-8bbb-8eae8a351eaa"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=项目方案"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "预算方案",
|
|
"GUID": "48efd388-b97c-4ee2-87a0-034c6d420078"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=预算方案"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "网络资源",
|
|
"GUID": "e2a85925-600d-4dd7-9177-44e29b7f5bac"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=网络资源"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "开启反馈收集",
|
|
"GUID": "52ce4a9f-efcb-440a-99e6-def2db2adbf9"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=开启反馈收集"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "工时分配方式",
|
|
"GUID": "5d2c51f1-841f-4fd3-8c4b-4f1101b4ebd0"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=工时分配方式"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "0",
|
|
"Message": "更新项目成功"
|
|
}
|
|
]
|
|
},
|
|
"CatchCommandPart": {
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=ExceptionCode"
|
|
},
|
|
"Message": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=ExceptionMessage"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
} |