501 lines
18 KiB
JSON
501 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": {}
|
|
},
|
|
{
|
|
"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": {}
|
|
},
|
|
{
|
|
"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": "33d50656-3216-4c8f-be14-4af6b5f66709",
|
|
"BindingInfo": {
|
|
"TableName": "项目平行视图",
|
|
"ColumnName": "严格模式",
|
|
"GUID": "f3304d3a-e441-49c0-8657-9ff7e7361662"
|
|
},
|
|
"ColumnName": "严格模式"
|
|
},
|
|
{
|
|
"GUID": "c2db4524-4543-413d-b6f0-5faed4ffc5e1",
|
|
"BindingInfo": {
|
|
"TableName": "项目平行视图",
|
|
"ColumnName": "项目经理",
|
|
"GUID": "60604077-31c1-4fad-b2d4-0d982c368e43"
|
|
},
|
|
"ColumnName": "项目经理"
|
|
},
|
|
{
|
|
"GUID": "0f709b85-7855-4ffd-aa1c-2c77e43dae6b",
|
|
"BindingInfo": {
|
|
"TableName": "项目平行视图",
|
|
"ColumnName": "项目预算工时",
|
|
"GUID": "f04c13b6-7fbd-4bcc-9af5-626e57bbcca1"
|
|
},
|
|
"ColumnName": "项目预算工时"
|
|
},
|
|
{
|
|
"GUID": "434ca903-9f8b-4d44-8987-cbd1540bb52e",
|
|
"BindingInfo": {
|
|
"TableName": "项目平行视图",
|
|
"ColumnName": "项目预算费用",
|
|
"GUID": "59227a0d-b65a-4b79-b36a-cfbbc093dab2"
|
|
},
|
|
"ColumnName": "项目预算费用"
|
|
},
|
|
{
|
|
"GUID": "d1000f52-2e9d-451b-8992-d4cc48d52edf",
|
|
"BindingInfo": {
|
|
"TableName": "项目平行视图",
|
|
"ColumnName": "项目总核定工时",
|
|
"GUID": "7877033e-26a7-4d66-9b99-b3ab95d177d7"
|
|
},
|
|
"ColumnName": "项目总核定工时"
|
|
},
|
|
{
|
|
"GUID": "951736e8-83cf-4c62-994d-6646d688c692",
|
|
"BindingInfo": {
|
|
"TableName": "项目平行视图",
|
|
"ColumnName": "已消耗成本",
|
|
"GUID": "3f924701-9367-4fb5-bae8-2ce947198ff0"
|
|
},
|
|
"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": "8918cb2c149640419f57ed025694bb6e"
|
|
},
|
|
{
|
|
"$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": "21ef7738-6fbd-4023-a4f3-2c962707083f"
|
|
},
|
|
{
|
|
"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": "8f0a643f-0ba6-4959-8f73-3c340863f642"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Comments": "如果是更新项目,且改变了严格模式,那么就要校验。超标就不允许切换",
|
|
"ID": "30dddffc-2a20-4b09-b409-d445c547a03a"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$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": "4a77b2dd-1ccc-46e6-8218-ee1c29b1a0bb"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=项目名称"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "项目代号",
|
|
"GUID": "cfbbaef2-4de2-48dc-a87b-230f27b7b290"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=项目代号"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "项目简介",
|
|
"GUID": "cb83085f-f922-4d7f-82e0-47dbdf7a94d0"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=项目简介"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "项目封面",
|
|
"GUID": "9ad7f9b2-95ea-4789-a865-51fa7650e142"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=封面"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "项目经理",
|
|
"GUID": "e1c08af9-ee35-4f6f-be2b-bb5e1044a827"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=管理员"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "项目分组",
|
|
"GUID": "cc97e502-f24d-4ea3-8c62-3e932074154c"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=分组"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "所属客户",
|
|
"GUID": "d63618c7-475a-4e5d-837f-e807183c2ef1"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=所属客户"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "所属客户部门",
|
|
"GUID": "2b79c431-9b82-4ef2-972c-b0e21e706560"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=所属客户部门"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "公开",
|
|
"GUID": "bb1169cf-e40f-4529-97f4-5f12dd45fbf1"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=权限"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "严格模式",
|
|
"GUID": "0056379a-c3fb-4d91-8946-4421bd818a4c"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=严格模式"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "计划开始日期",
|
|
"GUID": "676824b7-b173-4e44-bf02-e43e44437a79"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=开始日期"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "计划完成日期",
|
|
"GUID": "c131ae4a-325f-4a2f-86d2-63cff4323449"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=结束日期"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "项目方案",
|
|
"GUID": "d4bae995-6a31-48ea-9d79-fcbdb5e38fb1"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=项目方案"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "预算方案",
|
|
"GUID": "61350024-f231-486e-b6ad-5e9166ae5e14"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=预算方案"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "网络资源",
|
|
"GUID": "161d79bf-6b79-4c07-b5e4-87a5ad76d24e"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=网络资源"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "开启反馈收集",
|
|
"GUID": "695630ae-19a8-41d0-88ba-fa497c50c1fd"
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
} |