Files
clue/ServerCommands/收益/绑定工时与请款单.json

104 lines
3.2 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
}
}
]
}
],
"Commands": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "单据",
"TableValue": {
"TableName": "收益请款单表",
"TableValueType": 1,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "收益请款单表",
"ColumnName": "工时ID数组",
"GUID": "244ec80e-5831-44d1-8366-df1406ead9ff"
},
"ColumnName": "工时ID数组"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "收益请款单表",
"ColumnName": "ID",
"GUID": "aed2d551-3fe7-4d07-88a6-4d935d9792f7"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=请款单ID"
}
},
"TopCount": "1"
},
"ID": "ec9c21ad2fe34592ae97cbf4d94e7e58"
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务工时表",
"ShowConfirm": false,
"RowsToUpdate": 1,
"RowsToUpdateCondition": {
"$type": "ForguncyDataAccess.TextCESqlCondition, ForguncyDataAccess",
"CompareType": 8,
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "ID",
"GUID": "ec5b4589-e045-4cba-8519-4fd44ff5c266"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=单据.工时ID数组"
}
},
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "请款单ID",
"GUID": "81fdadc9-bb3e-4d66-abaa-d85414a4f5d7"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=请款单ID"
}
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "同步成功"
}
]
}