256 lines
9.4 KiB
JSON
256 lines
9.4 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": "c358a68d-b262-4537-af8a-9fa7fa80c334"
|
|
},
|
|
"ColumnName": "项目ID"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "项目ID",
|
|
"GUID": "30cf2bdb-e5ac-4291-a6a7-d82359931ab9",
|
|
"RelationBinding": {
|
|
"RelatedTable": "项目表",
|
|
"RelatedColumn": "ID",
|
|
"DisplayColumn": "项目名称"
|
|
}
|
|
},
|
|
"ColumnName": "项目名称"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "申请人",
|
|
"GUID": "3df8d4d9-a9f9-439b-9380-2ccc41558510",
|
|
"AttachType": {
|
|
"$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess",
|
|
"UserColumnAttachType": 1
|
|
}
|
|
},
|
|
"ColumnName": "申请人"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "原预算工时",
|
|
"GUID": "bd7157ab-e5e4-48d9-8553-c09cb2f07977"
|
|
},
|
|
"ColumnName": "原预算工时"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "增加预算工时",
|
|
"GUID": "bc7899f3-0dda-452b-9454-3b02caae30b4"
|
|
},
|
|
"ColumnName": "增加预算工时"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "状态",
|
|
"GUID": "11ba6ee3-3c4f-40ba-a74e-de502508b653"
|
|
},
|
|
"ColumnName": "状态"
|
|
}
|
|
],
|
|
"SqlCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "ID",
|
|
"GUID": "423e1509-3433-462a-9925-c74ef20fb74a"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请ID"
|
|
}
|
|
},
|
|
"TopCount": "1"
|
|
},
|
|
"ID": "0f3c40a2b6704fd58b6364fbaa26c72f"
|
|
},
|
|
{
|
|
"$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",
|
|
"IsolationLevel": 4096,
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
|
"TableName": "项目预算变动表",
|
|
"ShowConfirm": false,
|
|
"RowsToUpdate": 1,
|
|
"RowsToUpdateCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "ID",
|
|
"GUID": "56549cfe-5d2c-40be-9b4e-b37189a7cc09"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请ID"
|
|
}
|
|
},
|
|
"UpdateBindingValues": [
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目预算变动表",
|
|
"ColumnName": "状态",
|
|
"GUID": "70c1e56f-b20a-4404-a138-2026373fc13f"
|
|
},
|
|
"Value": "已通过"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
|
"TableName": "项目表",
|
|
"ShowConfirm": false,
|
|
"RowsToUpdate": 1,
|
|
"RowsToUpdateCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "ID",
|
|
"GUID": "6ea0fe03-a28c-4587-8261-e3e3f225f6ba"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请表.项目ID"
|
|
}
|
|
},
|
|
"UpdateBindingValues": [
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "项目预算工时",
|
|
"GUID": "e2998a34-b8dc-487e-828a-f88d10845e9c"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请表.原预算工时+申请表.增加预算工时"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
|
"TableName": "项目动态",
|
|
"UpdateType": "add",
|
|
"ShowConfirm": false,
|
|
"UpdateBindingValues": [
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目动态",
|
|
"ColumnName": "项目ID",
|
|
"GUID": "0ee6e5e6-124f-43ca-b155-c57301a1bcc1"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请表.项目ID"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目动态",
|
|
"ColumnName": "项目动态",
|
|
"GUID": "a7ce2d71-85a3-45d0-8c81-b291857f059d"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=申请表.申请人&\"申请增补了\"&申请表.增加预算工时&\"个工时预算\""
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "项目动态",
|
|
"ColumnName": "执行人",
|
|
"GUID": "eb609cce-274a-437a-956a-611f8e5f4c65"
|
|
},
|
|
"Value": "%CurrentUser%"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "0",
|
|
"Message": "应用成功"
|
|
}
|
|
],
|
|
"ID": "c538d873-4a71-456b-b7ef-fe41997fa7dc"
|
|
},
|
|
{
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "400",
|
|
"Message": "找不到该申请记录"
|
|
}
|
|
],
|
|
"ID": "72d41603-3d13-4aac-a6d7-a6b28c79a3dc"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |