{ "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.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%" }, "CommandList": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "项目经理信息", "TableValue": { "TableName": "用户信息视图", "TableValueType": 1, "BindingInfos": [ { "GUID": "687adc15-29b6-45fa-b807-58a6b7b6b556", "BindingInfo": { "TableName": "用户信息视图", "ColumnName": "用户名", "GUID": "fa4e0570-8b5e-4f33-892f-8effa6fb2f22" }, "ColumnName": "用户名" }, { "GUID": "6f778741-c8fb-49f0-9b5d-6ef1e3655c74", "BindingInfo": { "TableName": "用户信息视图", "ColumnName": "默认时薪", "GUID": "57ec6988-4dba-4b24-b256-d5318ca97211" }, "ColumnName": "默认时薪" } ], "SqlCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "用户信息视图", "ColumnName": "用户名", "GUID": "9c0710bd-e312-4f0e-be64-a9e9498d21b9" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=管理员" } }, "NullFormulaValueQueryPolicy": 0, "TopCount": "1" }, "ID": "e38acc60f9b84e20bae09e8335dd3deb" }, { "$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.ServerTransactionCommand, ServerDesignerCommon", "CommandList": [ { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "项目表", "UpdateType": "add", "ShowConfirm": false, "UpdateBindingValues": [ { "BindingInfo": { "TableName": "项目表", "ColumnName": "项目名称", "GUID": "3e96648f-0e7c-45bf-93e6-6f500c55f334" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目名称" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "项目代号", "GUID": "5bd04bd5-968a-4b5c-8d68-8b436fc5899e" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目代号" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "项目简介", "GUID": "ea87ea44-4258-4d89-9991-90e93231d84b" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目简介" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "项目封面", "GUID": "83689259-a91f-4e9d-a64c-d8c1201dd823" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=封面" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "项目经理", "GUID": "60184710-2be4-4e6d-bf5a-3127fe9d2ca2" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=管理员" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "项目分组", "GUID": "b6373067-225c-41df-b843-20c7a297830f" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=分组" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "所属客户", "GUID": "bec5ba56-41d1-4883-bffd-827753963b99" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=所属客户" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "所属客户部门", "GUID": "c8965baa-5e55-41ea-8974-f3bf2bea7560" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=所属客户部门" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "项目预算工时", "GUID": "854752be-2f4f-476f-a8a3-c2ec29901530" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=预算工时" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "项目预算费用", "GUID": "c69062a2-5c1c-4f75-abc6-36d3d6a270f2" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=预算金额" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "公开", "GUID": "1a673e3d-715d-454e-b99f-526f536c7536" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=权限" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "严格模式", "GUID": "2ee6d9f6-6268-42be-8ed6-98dc4733f433" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=严格模式" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "工时分配方式", "GUID": "10131c97-9740-4b75-bc56-ab4d3cf66e33" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=工时分配方式" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "开启反馈收集", "GUID": "003b7e73-0897-40d7-879c-baa6c4241157" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=开启反馈收集" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "项目方案", "GUID": "7af3baa1-fac9-4485-b694-7229e9156854" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目方案" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "预算方案", "GUID": "f6175e4e-8ec3-478e-afb1-12007d0fc078" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=预算方案" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "计划开始日期", "GUID": "c3d8e642-7419-497c-a8f1-11cb25fd1a04" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=开始日期" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "计划完成日期", "GUID": "10f81871-dc90-4560-a12a-884cbcf7e3b3" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=结束日期" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "网络资源", "GUID": "4df5c6f5-b31f-4b10-9e10-56e1edee52f7" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=网络资源" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "项目状态", "GUID": "d16f45d2-8a95-4a6b-a2b1-198e7e861104" }, "Value": "0" }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "删除", "GUID": "4622cb74-678c-4ba5-820a-3129c7f56e38" }, "Value": "0" } ], "ParamNameToSaveNewRowValue": "新项目" }, { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "项目岗位", "UpdateType": "add", "ShowConfirm": false, "UpdateBindingValues": [ { "BindingInfo": { "TableName": "项目岗位", "ColumnName": "项目ID", "GUID": "e7c333a4-4ae2-4336-89ef-13b74a81afdc" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=新项目.ID" } }, { "BindingInfo": { "TableName": "项目岗位", "ColumnName": "岗位名称", "GUID": "bc6cc0de-adf0-4d7e-b906-8d50ea713b06" }, "Value": "项目经理" }, { "BindingInfo": { "TableName": "项目岗位", "ColumnName": "岗位描述", "GUID": "743ea686-ec3b-45ec-812c-9ba68e8f9e06" }, "Value": "项目开发主要负责人" }, { "BindingInfo": { "TableName": "项目岗位", "ColumnName": "默认时薪", "GUID": "843f9905-80ab-4a1a-8c8b-5eb86fbdb79b" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目经理信息.默认时薪" } } ], "ParamNameToSaveNewRowValue": "新岗位" }, { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "项目成员表", "UpdateType": "add", "ShowConfirm": false, "UpdateBindingValues": [ { "BindingInfo": { "TableName": "项目成员表", "ColumnName": "项目ID", "GUID": "e0ff396d-0572-43f5-97ea-f26da738a354" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=新项目.ID" } }, { "BindingInfo": { "TableName": "项目成员表", "ColumnName": "项目成员", "GUID": "981b2389-c28b-4a7b-83bb-edce041511df" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目经理信息.用户名" } }, { "BindingInfo": { "TableName": "项目成员表", "ColumnName": "岗位ID", "GUID": "bc79feb2-7989-4046-bf94-1884697bc848" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=新岗位.ID" } }, { "BindingInfo": { "TableName": "项目成员表", "ColumnName": "默认时薪", "GUID": "9cca855a-b469-4475-a100-461fe1567996" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目经理信息.默认时薪" } } ] } ] }, { "$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": "2aeae676-f1b4-4bfd-bfa9-12ec0f173380" }, "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.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": [ { "Condition": { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目经理信息.用户名" } }, "value": "%CurrentUser.UserName%" }, "CommandList": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "查找任务", "TableValue": { "TableName": "ACT_RU_TASK_View", "TableValueType": 1, "BindingInfos": [ { "GUID": "2ec75406-cec5-45e5-af28-33e063f35052", "BindingInfo": { "TableName": "ACT_RU_TASK_View", "ColumnName": "ID_", "GUID": "8ff1ac1e-86a8-4b86-8344-e58af591f2ed" }, "ColumnName": "ID" } ], "SqlCondition": { "$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess", "SubConditions": [ { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "ACT_RU_TASK_View", "ColumnName": "PROC_INST_ID_", "GUID": "cfc14f9c-7c2e-4fb0-857c-914086b404b8" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=发起流程结果.ID" } }, { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "ACT_RU_TASK_View", "ColumnName": "ASSIGNEE_", "GUID": "b74fa4bd-b315-4b34-bcfa-9cf869338179" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目经理信息.用户名" } } ] }, "TopCount": "1", "OrderBySqlCondition": { "OrderByColumns": [ { "ColumnBindingInfo": { "TableName": "ACT_RU_TASK_View", "ColumnName": "CREATE_TIME_", "GUID": "b2a828b2-523a-4a24-840c-f5885ba5eaa0" }, "Order": 1 } ] } }, "ID": "10dac7be6f2d44aa9f18cc2c932f57e0" }, { "$type": "Forguncy.Model.ProcessTaskCommand, ServerDesignerCommon", "TaskId": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=查找任务.ID" }, "CustomOperationName": "提交", "Operator": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目经理信息.用户名" }, "Comment": "系统自动提交审批" } ], "ID": "3eadfb6f-b641-4683-886c-8d4cf29e9738" } ] }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "项目创建成功,正在审批,别忘了在菜单里设置项目岗位和薪资哦!" } ], "ID": "f41cd5d9-316b-4ff6-9f58-541ed818c98d" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "项目已创建,但未能发起审批,请手动发起审批流程!" } ], "ID": "d9e4dc5a-1704-4038-b87a-c12a78af03fc" } ] } ], "ID": "591b202f-63a1-4fcd-bf42-025e16d24d33" } ] } ], "ID": "e78856db-59d2-4656-9d60-c21ba92b3500" }, { "CommandList": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "项目信息", "TableValue": { "TableName": "项目表", "TableValueType": 1, "BindingInfos": [ { "GUID": "bf0a849d-8177-4e15-8d39-0d66c04ea7ad", "BindingInfo": { "TableName": "项目表", "ColumnName": "严格模式", "GUID": "b8486155-4f64-4dd8-b85c-16543680907f" }, "ColumnName": "严格模式" }, { "GUID": "4f150d93-829c-4971-87a9-bef7113f4108", "BindingInfo": { "TableName": "项目表", "ColumnName": "项目经理", "GUID": "f5e1a885-651e-497c-90ef-1e5c341bca1a" }, "ColumnName": "项目经理" } ], "SqlCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "项目表", "ColumnName": "ID", "GUID": "2c0631c8-c61b-431a-bdf4-13f968834089" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=ID" } }, "NullFormulaValueQueryPolicy": 0, "TopCount": "1" }, "ID": "768912ca847b455a9aca3255eb8cd259" }, { "$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.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "项目统计信息", "TableValue": { "TableName": "View_项目统计信息", "TableValueType": 1, "BindingInfos": [ { "GUID": "e5f967d9-238c-4b88-9a3e-16308c7c7f2b", "BindingInfo": { "TableName": "View_项目统计信息", "ColumnName": "项目预算工时", "GUID": "020613fe-5e4a-47bc-82ee-e2ede6fb5737" }, "ColumnName": "项目预算工时" }, { "GUID": "461ef28f-c4d0-431f-b742-cffdcac82826", "BindingInfo": { "TableName": "View_项目统计信息", "ColumnName": "总实际工时", "GUID": "5a3c8588-de2e-4e88-8116-09021dc36bd8" }, "ColumnName": "总实际工时" }, { "GUID": "85ccda72-7fc9-4e99-9702-c27e1a8a1b45", "BindingInfo": { "TableName": "View_项目统计信息", "ColumnName": "项目预算费用", "GUID": "b5e66ce2-c04f-45e2-9ef8-cb6f1be2534d" }, "ColumnName": "项目预算费用" }, { "GUID": "53152fc6-253e-4877-b30f-f5eafab16fcc", "BindingInfo": { "TableName": "View_项目统计信息", "ColumnName": "总成本", "GUID": "82679dce-9071-486f-9eb5-9a36171e90a2" }, "ColumnName": "总核定成本" } ], "SqlCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "View_项目统计信息", "ColumnName": "项目ID", "GUID": "ecc83868-39ca-446f-afde-d95c38fe55d5" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=ID" } }, "TopCount": "1" }, "ID": "438b9541159f4e059c41ac6218483385" }, { "$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": "acfa1b46-d4ae-4c29-9710-5f763a086dc8" }, { "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": "a594f370-5692-4b8a-b2ba-e1e85469242a" } ] } ], "Comments": "如果是更新项目,且改变了严格模式,那么就要校验。超标就不允许切换", "ID": "50fe9277-097f-4724-bf8e-3b345a0ab25c" } ] }, { "$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon", "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": 1 }, "CommandList": [ { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "项目成员表", "ShowConfirm": false, "RowsToUpdate": 1, "RowsToUpdateCondition": { "$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess", "SubConditions": [ { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "项目成员表", "ColumnName": "项目ID", "GUID": "db0befa6-0885-460f-b25a-6e9f19a8037f" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=ID" } }, { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "项目成员表", "ColumnName": "项目成员", "GUID": "7b89d50e-7e26-4adc-8edf-1df1056507ec" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目信息.项目经理" } } ] }, "UpdateBindingValues": [ { "BindingInfo": { "TableName": "项目成员表", "ColumnName": "项目成员", "GUID": "f1858360-ae53-4066-9519-b532e9626890" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目经理信息.用户名" } } ] } ], "ID": "f07132ba-3ef7-4560-982f-263579eb2f6b" } ] }, { "$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": "7ddc40d8-7955-4e89-8690-1b46e11ece27" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目名称" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "项目代号", "GUID": "1e4059c5-b185-494e-aa18-195aa0c5f204" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目代号" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "项目简介", "GUID": "b1338e5a-9521-415f-94b9-6c1a9abcbc1f" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目简介" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "项目封面", "GUID": "184d4581-59a7-4d22-abca-5268afd76020" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=封面" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "项目经理", "GUID": "7563f455-296b-40e2-a822-c96d0139d20a" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=管理员" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "项目分组", "GUID": "0f0b8862-a1d4-48ff-a166-122dd7e802f4" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=分组" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "所属客户", "GUID": "05f27db9-9934-4353-91bb-333205cbc63d" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=所属客户" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "所属客户部门", "GUID": "7ff393d2-d6bb-49f9-9ff1-2363796f8cb3" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=所属客户部门" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "公开", "GUID": "610eb519-4062-4d06-948f-c2d9bc2f18b4" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=权限" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "严格模式", "GUID": "b87efa95-efd1-4a6d-81dc-b7933d759b86" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=严格模式" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "计划开始日期", "GUID": "2c510e3d-e6f7-460f-9ae5-bd1ce61ea0c9" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=开始日期" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "计划完成日期", "GUID": "70671e09-1c83-4574-909f-97145bc9463c" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=结束日期" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "项目方案", "GUID": "cefa0f72-e7fd-4a47-9209-cef16d1c42fc" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目方案" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "预算方案", "GUID": "83e17ee8-346d-49a4-98d7-bbe61738e4a1" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=预算方案" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "网络资源", "GUID": "9337a4fb-1f99-418f-b744-1fa49ebb0f43" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=网络资源" } }, { "BindingInfo": { "TableName": "项目表", "ColumnName": "开启反馈收集", "GUID": "5c21d73b-7c99-498c-97d5-8daa01016645" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=开启反馈收集" } } ] } ] }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "更新项目成功" } ], "ID": "94efdee4-bfa4-42b2-8235-9c3219942dc8" } ] } ] }, "CatchCommandPart": { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=ExceptionCode" }, "Message": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=ExceptionMessage" } } ] } } ] }