415 lines
17 KiB
JSON
415 lines
17 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
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Commands": [
|
|
{
|
|
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
|
"ParameterName": "申请表",
|
|
"TableValue": {
|
|
"TableName": "项目预算变动表",
|
|
"TableValueType": 1,
|
|
"BindingInfos": [
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "项目ID",
|
|
"GUID": "5da894c4-c883-486e-8932-c3c232ec7e18"
|
|
},
|
|
"ColumnName": "项目ID"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "项目ID",
|
|
"GUID": "5cb5b717-15d5-49d9-a6df-f54bd8b144a8",
|
|
"RelationBinding": {
|
|
"RelatedTable": "项目表",
|
|
"RelatedColumn": "ID",
|
|
"DisplayColumn": "项目名称"
|
|
}
|
|
},
|
|
"ColumnName": "项目名称"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "申请人",
|
|
"GUID": "214bd775-5f76-4f6b-93be-c05d4c0246e2",
|
|
"AttachType": {
|
|
"$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess",
|
|
"UserColumnAttachType": 1
|
|
}
|
|
},
|
|
"ColumnName": "申请人"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "原预算工时",
|
|
"GUID": "21b15405-6ee0-4905-8d37-e92aec036a64"
|
|
},
|
|
"ColumnName": "原预算工时"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "增加预算工时",
|
|
"GUID": "7e71029d-77fd-4969-8397-8ac1844c4c6b"
|
|
},
|
|
"ColumnName": "增加预算工时"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "原预算费用",
|
|
"GUID": "ad26dbf9-b1c7-4e05-beea-bf9f871cddad"
|
|
},
|
|
"ColumnName": "原预算费用"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "增加费用",
|
|
"GUID": "61bf736b-f9c7-4c73-89d4-181e0b254c7f"
|
|
},
|
|
"ColumnName": "增加费用"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "状态",
|
|
"GUID": "233c2f41-7339-4ddc-ba7b-e5215c97c59b"
|
|
},
|
|
"ColumnName": "状态"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "流程实例ID",
|
|
"GUID": "0030d8d0-781f-49a1-9423-2f90d99bbb45"
|
|
},
|
|
"ColumnName": "流程实例ID"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "流程实例ID",
|
|
"GUID": "18bf2fdf-676b-4461-acb8-a41a8da4ef8d",
|
|
"RelationBinding": {
|
|
"RelatedTable": "ACT_HI_PROCINST_View",
|
|
"RelatedColumn": "ID_",
|
|
"DisplayColumn": "DELETE_REASON_"
|
|
}
|
|
},
|
|
"ColumnName": "结束原因"
|
|
}
|
|
],
|
|
"SqlCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "ID",
|
|
"GUID": "3d56db16-5b99-4702-8cd1-b3fcc54d6d1b"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请ID"
|
|
}
|
|
},
|
|
"TopCount": "1"
|
|
},
|
|
"ID": "3f8a6ff80e494e6f8638269f2da384ad"
|
|
},
|
|
{
|
|
"$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": "MESSAGE_",
|
|
"GUID": "5a67d3c2-151d-42cb-8779-e7582043fa20"
|
|
},
|
|
"ColumnName": "备注"
|
|
}
|
|
],
|
|
"SqlCondition": {
|
|
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
|
"SubConditions": [
|
|
{
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "ACT_HI_COMMENT_View",
|
|
"ColumnName": "PROC_INST_ID_",
|
|
"GUID": "ac5c1bf7-df32-41fd-994e-496ec9d7d77d"
|
|
},
|
|
"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": "299ba4e6-9bb1-46c3-9b19-f1f42eb0c4dd"
|
|
},
|
|
"Value": "拒绝",
|
|
"LeftBracket": 1
|
|
},
|
|
{
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "ACT_HI_COMMENT_View",
|
|
"ColumnName": "ACTION_",
|
|
"GUID": "75857f2e-4e45-470c-819e-e4000608a84e"
|
|
},
|
|
"Value": "同意",
|
|
"RightBracket": 1
|
|
}
|
|
],
|
|
"RelationType": 1
|
|
}
|
|
]
|
|
},
|
|
"TopCount": "1",
|
|
"OrderBySqlCondition": {
|
|
"OrderByColumns": [
|
|
{
|
|
"ColumnBindingInfo": {
|
|
"TableName": "ACT_HI_COMMENT_View",
|
|
"ColumnName": "TIME_",
|
|
"GUID": "0ed02494-6bb3-4c15-97a7-5d62d8756eb6"
|
|
},
|
|
"Order": 1
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"ID": "2a2d252247be4f2c9f29394e0483d065"
|
|
},
|
|
{
|
|
"$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": "e86f50d7-8217-4fc6-8776-b97a79eab9f8"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请ID"
|
|
}
|
|
},
|
|
"UpdateBindingValues": [
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "状态",
|
|
"GUID": "b798f803-4150-4646-982a-2684760de783"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请表.结束原因"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "审批信息",
|
|
"GUID": "1e97d34c-e4bf-44fa-869d-68d0ea0a5942"
|
|
},
|
|
"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": "4d24b55f-714e-4669-b5cd-93f37095523c"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请表.项目ID"
|
|
}
|
|
},
|
|
"UpdateBindingValues": [
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "项目预算工时",
|
|
"GUID": "6439bc2c-dc5f-4101-b7a7-05775feb39d0"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请表.原预算工时+申请表.增加预算工时"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "项目预算费用",
|
|
"GUID": "2c14f476-1f59-4d9f-86b7-f644e48adbae"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请表.原预算费用+申请表.增加费用"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
|
"TableName": "项目动态",
|
|
"UpdateType": "add",
|
|
"ShowConfirm": false,
|
|
"UpdateBindingValues": [
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目动态",
|
|
"ColumnName": "项目ID",
|
|
"GUID": "ee0d1050-03a7-4b89-ba36-81012da5fc88"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请表.项目ID"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目动态",
|
|
"ColumnName": "项目动态",
|
|
"GUID": "8f4036f5-847d-47f4-bc9e-6d8891192793"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请表.申请人&\"申请增补了\"&申请表.增加预算工时&\"个工时预算\""
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目动态",
|
|
"ColumnName": "执行人",
|
|
"GUID": "b78983ed-9348-436f-88ba-1f80ba1a5f50"
|
|
},
|
|
"Value": "%CurrentUser%"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"ID": "4e7e3aa4-4acf-4c9b-8be1-ed0dca3092fb"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "0",
|
|
"Message": "应用成功"
|
|
}
|
|
],
|
|
"ID": "c4b363ca-3080-443e-8a5c-51d5774b8de5"
|
|
},
|
|
{
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "400",
|
|
"Message": "找不到该申请记录"
|
|
}
|
|
],
|
|
"ID": "70a53f04-ebfb-4ea6-8a25-ad3570adcfb5"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |