508 lines
21 KiB
JSON
508 lines
21 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
|
|
},
|
|
"TestData": "11"
|
|
},
|
|
{
|
|
"Name": "状态",
|
|
"DataValidationInfo": {}
|
|
}
|
|
],
|
|
"InvokeTriggerTestData": {
|
|
"UserName": "Administrator"
|
|
}
|
|
}
|
|
],
|
|
"Commands": [
|
|
{
|
|
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
|
"ParameterName": "申请表",
|
|
"TableValue": {
|
|
"TableName": "项目预算变动表",
|
|
"TableValueType": 1,
|
|
"BindingInfos": [
|
|
{
|
|
"GUID": "9fc2ad56-0a40-4c7b-96b1-85ef049ee14a",
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "项目ID",
|
|
"GUID": "6e064348-1eeb-44d5-bb4b-c785edf11fbe"
|
|
},
|
|
"ColumnName": "项目ID"
|
|
},
|
|
{
|
|
"GUID": "b7f17588-04c8-4270-b66a-13d75501cbf3",
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "项目ID",
|
|
"GUID": "3ee07a7f-1678-418e-b6f6-45d32d361cfe",
|
|
"RelationBinding": {
|
|
"RelatedTable": "项目表",
|
|
"RelatedColumn": "ID",
|
|
"DisplayColumn": "项目名称"
|
|
}
|
|
},
|
|
"ColumnName": "项目名称"
|
|
},
|
|
{
|
|
"GUID": "227a1e00-e2da-4d7b-b478-b87880fe6f37",
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "申请人",
|
|
"GUID": "7774924c-568e-41ce-83d6-1d15bf5bfc1e",
|
|
"AttachType": {
|
|
"$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess",
|
|
"UserColumnAttachType": 1
|
|
}
|
|
},
|
|
"ColumnName": "申请人"
|
|
},
|
|
{
|
|
"GUID": "8bc3c867-022d-4c83-8ee6-6cbe3723a27c",
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "原预算工时",
|
|
"GUID": "2f829421-650a-4afe-8f4a-47b072ff34f7"
|
|
},
|
|
"ColumnName": "原预算工时"
|
|
},
|
|
{
|
|
"GUID": "aff4f6a3-de30-446f-a82c-e908cbde624b",
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "增加工时",
|
|
"GUID": "d20c2435-1bd6-4000-b0d3-9574c1819b51"
|
|
},
|
|
"ColumnName": "增加预算工时"
|
|
},
|
|
{
|
|
"GUID": "475310bf-7d3b-4efb-a78b-9d13c1393490",
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "原预算费用",
|
|
"GUID": "04939afc-0fb3-47d6-88df-a243fdc0f528"
|
|
},
|
|
"ColumnName": "原预算费用"
|
|
},
|
|
{
|
|
"GUID": "e65af3b9-db3c-45d1-874b-d9de33c9a986",
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "增加费用",
|
|
"GUID": "4cf8d69f-4405-44e8-a69e-fcdeb3fe7053"
|
|
},
|
|
"ColumnName": "增加费用"
|
|
},
|
|
{
|
|
"GUID": "2ea80a5b-1732-4f31-890c-10a14a06e66f",
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "状态",
|
|
"GUID": "4b70f5b6-af53-497f-aad0-5adf92c56673"
|
|
},
|
|
"ColumnName": "状态"
|
|
},
|
|
{
|
|
"GUID": "6722bac0-ca20-460e-908f-82371d863359",
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "流程实例ID",
|
|
"GUID": "203c38c2-b306-491b-a4e7-ed08e847fdfc"
|
|
},
|
|
"ColumnName": "流程实例ID"
|
|
},
|
|
{
|
|
"GUID": "36ff8dbb-6d8c-4b8e-b6a8-c87069e14ea1",
|
|
"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": "3aeda0a3eb2e480dbe7511a73da86c81"
|
|
},
|
|
{
|
|
"$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": [
|
|
{
|
|
"GUID": "dee148b1-5b94-4fe0-8205-e7d9be842bbc",
|
|
"BindingInfo": {
|
|
"TableName": "ACT_HI_COMMENT_View",
|
|
"ColumnName": "USER_ID_",
|
|
"GUID": "d47fd7fa-5d2c-4b61-936b-064a69f72834"
|
|
},
|
|
"ColumnName": "审批人"
|
|
},
|
|
{
|
|
"GUID": "0af2d1f2-800e-4d27-9185-213d071cca3e",
|
|
"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": "5d37a150-74cb-4ae7-b3dc-601b8f453be8"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请表.项目ID"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目动态",
|
|
"ColumnName": "项目动态",
|
|
"GUID": "8a64349c-265a-4ec0-b3d3-a57ca7ea62f0"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请表.申请人&\"申请的项目增补项目预算已通过,共增加\"&申请表.增加预算工时&\"小时、\"&申请表.增加费用&\"元预算\""
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目动态",
|
|
"ColumnName": "执行人",
|
|
"GUID": "1b0f0d6e-48e4-4b66-8004-813a8e2f03b8"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=审批历史.审批人"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目动态",
|
|
"ColumnName": "类型",
|
|
"GUID": "32580e36-ecd5-4e3c-a069-eced8ac538d9"
|
|
},
|
|
"Value": "4"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"ID": "be181f8f-f7b0-430b-adfe-9eb2a1bbc90d"
|
|
},
|
|
{
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
|
"TableName": "项目动态",
|
|
"UpdateType": "add",
|
|
"ShowConfirm": false,
|
|
"UpdateBindingValues": [
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目动态",
|
|
"ColumnName": "项目ID",
|
|
"GUID": "53fa0c52-3ba6-46ed-9b16-4d3877db09a7"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请表.项目ID"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目动态",
|
|
"ColumnName": "项目动态",
|
|
"GUID": "ec6531f0-c692-4200-9382-3464f2d8d9ee"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请表.申请人&\"提交的预算增补申请被拒绝:\"&申请表.结束原因"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目动态",
|
|
"ColumnName": "执行人",
|
|
"GUID": "25bcc1ed-7e15-44be-9b79-da03974f4ff5"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=审批历史.审批人"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目动态",
|
|
"ColumnName": "类型",
|
|
"GUID": "87214c6d-f3ea-4113-8a42-0229e615bb50"
|
|
},
|
|
"Value": "4"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"ID": "21421448-d880-4ce7-a5c5-659dd475c06b"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "0",
|
|
"Message": "应用成功"
|
|
}
|
|
],
|
|
"ID": "d137078c-b455-4aea-9994-39346a33a91b"
|
|
},
|
|
{
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "400",
|
|
"Message": "找不到该申请记录"
|
|
}
|
|
],
|
|
"ID": "f5ca19fa-4fb3-4646-a9da-11696abdf9ef"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |