479 lines
20 KiB
JSON
479 lines
20 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": "申请ID",
|
|
"DataValidationInfo": {
|
|
"IgnoreBlank": false
|
|
},
|
|
"TestData": "11"
|
|
},
|
|
{
|
|
"Name": "状态"
|
|
}
|
|
],
|
|
"InvokeTriggerTestData": {
|
|
"UserName": "Administrator"
|
|
}
|
|
}
|
|
],
|
|
"Commands": [
|
|
{
|
|
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
|
"ParameterName": "申请表",
|
|
"TableValue": {
|
|
"TableName": "项目预算变动表",
|
|
"TableValueType": 1,
|
|
"BindingInfos": [
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "项目ID",
|
|
"GUID": "6e064348-1eeb-44d5-bb4b-c785edf11fbe"
|
|
},
|
|
"ColumnName": "项目ID"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "项目ID",
|
|
"GUID": "3ee07a7f-1678-418e-b6f6-45d32d361cfe",
|
|
"RelationBinding": {
|
|
"RelatedTable": "项目表",
|
|
"RelatedColumn": "ID",
|
|
"DisplayColumn": "项目名称"
|
|
}
|
|
},
|
|
"ColumnName": "项目名称"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "申请人",
|
|
"GUID": "7774924c-568e-41ce-83d6-1d15bf5bfc1e",
|
|
"AttachType": {
|
|
"$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess",
|
|
"UserColumnAttachType": 1
|
|
}
|
|
},
|
|
"ColumnName": "申请人"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "原预算工时",
|
|
"GUID": "2f829421-650a-4afe-8f4a-47b072ff34f7"
|
|
},
|
|
"ColumnName": "原预算工时"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "增加工时",
|
|
"GUID": "d20c2435-1bd6-4000-b0d3-9574c1819b51"
|
|
},
|
|
"ColumnName": "增加预算工时"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "原预算费用",
|
|
"GUID": "04939afc-0fb3-47d6-88df-a243fdc0f528"
|
|
},
|
|
"ColumnName": "原预算费用"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "增加费用",
|
|
"GUID": "4cf8d69f-4405-44e8-a69e-fcdeb3fe7053"
|
|
},
|
|
"ColumnName": "增加费用"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "状态",
|
|
"GUID": "4b70f5b6-af53-497f-aad0-5adf92c56673"
|
|
},
|
|
"ColumnName": "状态"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "流程实例ID",
|
|
"GUID": "203c38c2-b306-491b-a4e7-ed08e847fdfc"
|
|
},
|
|
"ColumnName": "流程实例ID"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "流程实例ID",
|
|
"GUID": "42853655-988e-466e-a0b6-ef948827222a",
|
|
"RelationBinding": {
|
|
"RelatedTable": "ACT_HI_PROCINST_View",
|
|
"RelatedColumn": "ID_",
|
|
"DisplayColumn": "DELETE_REASON_"
|
|
}
|
|
},
|
|
"ColumnName": "结束原因"
|
|
}
|
|
],
|
|
"SqlCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "ID",
|
|
"GUID": "b82bc3f0-00a9-4863-8294-4868aee0e3e5"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请ID"
|
|
}
|
|
},
|
|
"TopCount": "1"
|
|
},
|
|
"ID": "679cb7d5a3b442379a2ebe94bfe9523d"
|
|
},
|
|
{
|
|
"$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.Commands.SetParameterCommand, ServerDesignerCommon",
|
|
"ParameterName": "审批历史",
|
|
"TableValue": {
|
|
"TableName": "ACT_HI_COMMENT_View",
|
|
"TableValueType": 1,
|
|
"BindingInfos": [
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "ACT_HI_COMMENT_View",
|
|
"ColumnName": "USER_ID_",
|
|
"GUID": "d47fd7fa-5d2c-4b61-936b-064a69f72834"
|
|
},
|
|
"ColumnName": "审批人"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "ACT_HI_COMMENT_View",
|
|
"ColumnName": "MESSAGE_",
|
|
"GUID": "fc404b40-f47f-45f7-af6f-e0d90ca2c0cd"
|
|
},
|
|
"ColumnName": "备注"
|
|
}
|
|
],
|
|
"SqlCondition": {
|
|
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
|
"SubConditions": [
|
|
{
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "ACT_HI_COMMENT_View",
|
|
"ColumnName": "PROC_INST_ID_",
|
|
"GUID": "f848ef49-a9d9-43de-83d9-89a736cc29a9"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请表.流程实例ID"
|
|
}
|
|
},
|
|
{
|
|
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
|
"SubConditions": [
|
|
{
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "ACT_HI_COMMENT_View",
|
|
"ColumnName": "ACTION_",
|
|
"GUID": "447d54ce-e9d4-45ec-b61f-f69ef1e3277f"
|
|
},
|
|
"Value": "拒绝",
|
|
"LeftBracket": 1
|
|
},
|
|
{
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "ACT_HI_COMMENT_View",
|
|
"ColumnName": "ACTION_",
|
|
"GUID": "652385b1-e3f1-4bbf-b414-a17af8ed839e"
|
|
},
|
|
"Value": "同意",
|
|
"RightBracket": 1
|
|
}
|
|
],
|
|
"RelationType": 1
|
|
}
|
|
]
|
|
},
|
|
"TopCount": "1",
|
|
"OrderBySqlCondition": {
|
|
"OrderByColumns": [
|
|
{
|
|
"ColumnBindingInfo": {
|
|
"TableName": "ACT_HI_COMMENT_View",
|
|
"ColumnName": "TIME_",
|
|
"GUID": "ae8aaba3-7023-4540-9e59-8ae8a266df29"
|
|
},
|
|
"Order": 1
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"ID": "1390cfffc2804899b260900fff1ca732"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
|
|
"IsolationLevel": 4096,
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
|
"TableName": "项目预算变动表",
|
|
"ShowConfirm": false,
|
|
"RowsToUpdate": 1,
|
|
"RowsToUpdateCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "ID",
|
|
"GUID": "1ad1063b-7d9d-43b5-bb3a-0f08debf60e3"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请ID"
|
|
}
|
|
},
|
|
"UpdateBindingValues": [
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "状态",
|
|
"GUID": "22e1a131-ae3d-4c40-8ba8-5e61b1fac69c"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=状态"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "审批信息",
|
|
"GUID": "ba9d4ddc-4dac-4bee-933d-c75cc1b21dec"
|
|
},
|
|
"Value": {
|
|
"$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": "拒绝",
|
|
"compareType": 1
|
|
},
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
|
"TableName": "项目表",
|
|
"ShowConfirm": false,
|
|
"RowsToUpdate": 1,
|
|
"RowsToUpdateCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "ID",
|
|
"GUID": "254ec264-9054-48e7-ae8b-3498bb05955a"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请表.项目ID"
|
|
}
|
|
},
|
|
"UpdateBindingValues": [
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "项目预算工时",
|
|
"GUID": "1717fdeb-ae7e-4228-a61c-f86179632c98"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请表.原预算工时+申请表.增加预算工时"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "项目预算费用",
|
|
"GUID": "845cb912-a246-4ef1-82db-fc09131955d2"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请表.原预算费用+申请表.增加费用"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
|
"TableName": "项目动态",
|
|
"UpdateType": "add",
|
|
"ShowConfirm": false,
|
|
"UpdateBindingValues": [
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目动态",
|
|
"ColumnName": "项目ID",
|
|
"GUID": "b39e4031-dd55-4dca-a58a-2f6976a5fb92"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请表.项目ID"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目动态",
|
|
"ColumnName": "项目动态",
|
|
"GUID": "68534133-0480-4dc6-a60f-aeace160b2fb"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请表.申请人&\"申请的项目增补项目预算已通过,共增加\"&申请表.增加预算工时&\"小时、\"&申请表.增加费用&\"元预算\""
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目动态",
|
|
"ColumnName": "执行人",
|
|
"GUID": "b20267d5-c3f0-49e3-b153-3c6291422a62"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=审批历史.审批人"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"ID": "4162c508-2474-4077-8358-c88051f0733e"
|
|
},
|
|
{
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
|
"TableName": "项目动态",
|
|
"UpdateType": "add",
|
|
"ShowConfirm": false,
|
|
"UpdateBindingValues": [
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目动态",
|
|
"ColumnName": "项目ID",
|
|
"GUID": "2d659bf5-e136-4647-bc98-3064b251dd44"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请表.项目ID"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目动态",
|
|
"ColumnName": "项目动态",
|
|
"GUID": "6e34a0a8-8846-4504-96cc-9339d829bea5"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请表.申请人&\"提交的预算增补申请被拒绝:\"&申请表.结束原因"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目动态",
|
|
"ColumnName": "执行人",
|
|
"GUID": "f755a804-f7ef-4547-a095-6508ca514835"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=审批历史.审批人"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"ID": "dc132149-9674-46a5-b8dc-fbc192a5ebf0"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "0",
|
|
"Message": "应用成功"
|
|
}
|
|
],
|
|
"ID": "c83854cd-235b-4e28-9d59-54197de71200"
|
|
},
|
|
{
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "400",
|
|
"Message": "找不到该申请记录"
|
|
}
|
|
],
|
|
"ID": "57bf652c-6740-44a7-a9b7-469ba33483d3"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |