Files
clue/ServerCommands/收益/生成请款单.json
超哥 43974fddb7 {"Message":"完成请款流程","MessageType":2,"Modules":[{"State":1,"Type":7,"Name":"Table/任务工时表"},{"State":1,"Type":7,"Name":"Table/收益变动记录表"},{"State":1,"Type":7,"Name":"Table/收款账户信息表"},{"State":1,"Type":7,"Name":"Table/收益请款单表"},{"State":1,"Type":7,"Name":"Table/付款凭证表"},{"State":1,"Type":1,"Name":"PCPage/项目列表"},{"State":1,"Type":1,"Name":"PCPage/项目首页"},{"State":1,"Type":1,"Name":"PCPage/项目标题"},{"State":1,"Type":1,"Name":"PCPage/项目信息"},{"State":1,"Type":1,"Name":"PCPage/任务-子任务列表"},{"State":1,"Type":1,"Name":"PCPage/工时详情"},{"State":1,"Type":1,"Name":"PCPage/修改报工"},{"State":1,"Type":1,"Name":"PCPage/个人中心-收款账户"},{"State":1,"Type":1,"Name":"PCPage/收益中心"},{"State":1,"Type":1,"Name":"PCPage/收益中心-收益请款记录"},{"State":1,"Type":1,"Name":"PCPage/收益中心-变动记录"},{"State":1,"Type":1,"Name":"PCPage/收益中心-收益明细"},{"State":2,"Type":1,"Name":"PCPage/提交结算申请单"},{"State":1,"Type":1,"Name":"PCPage/审批结算申请单"},{"State":1,"Type":1,"Name":"PCPage/办理结算审批单"},{"State":1,"Type":15,"Name":"ServerCommand/分配任务工时"},{"State":2,"Type":15,"Name":"ServerCommand/绑定工时与请款单"},{"State":2,"Type":15,"Name":"ServerCommand/绑定结算请款单凭证ID"},{"State":2,"Type":15,"Name":"ServerCommand/记录收益变动"},{"State":1,"Type":28,"Name":"ProcessItem/结算申请"},{"State":1,"Type":12,"Name":"CustomLibrary"},{"State":1,"Type":23,"Name":"TableView/项目平行视图"},{"State":3,"Type":38,"Name":"Image/返回.svg"},{"State":3,"Type":15,"Name":"ServerCommand/删除请款单"},{"State":3,"Type":1,"Name":"PCPage/生成结算申请单"},{"State":3,"Type":15,"Name":"ServerCommand/完成请款单"},{"State":3,"Type":15,"Name":"ServerCommand/生成请款单"}],"Version":"v1"}
2024-06-21 14:39:24 +08:00

314 lines
13 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": "请款人",
"DataValidationInfo": {
"IgnoreBlank": false
}
},
{
"Name": "工时任务ID数组",
"DataValidationInfo": {
"IgnoreBlank": false
}
}
]
}
],
"Commands": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "非法工时行数",
"TableValue": {
"TableName": "任务工时表",
"TableValueType": 3,
"SqlCondition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "ForguncyDataAccess.TextCESqlCondition, ForguncyDataAccess",
"CompareType": 8,
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "ID",
"GUID": "0d6f51fb-9eb2-4b1d-ac2c-dc3f2edc0f0b"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=工时任务ID数组"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "是否请款",
"GUID": "74138321-dcbc-4d9a-b4a1-3ada8c41d214"
},
"Value": "1"
}
]
},
"NullFormulaValueQueryPolicy": 0
},
"ID": "4b82b14025984224abd390c269d3f762"
},
{
"$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": "0"
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "明细统计",
"TableValue": {
"TableName": "任务工时表",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "a2491042-2ce1-48ff-992c-c00115a515b9",
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "行数",
"GUID": "ca5a08ac-a4ed-4180-9448-05fda1d81c74"
},
"ColumnName": "行数"
},
{
"GUID": "a98ae5d4-9431-45d2-b81f-539a58c792f2",
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "收益求和",
"GUID": "76131ef4-0310-47ef-b95b-8cae1845c009"
},
"ColumnName": "收益求和"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "ForguncyDataAccess.TextCESqlCondition, ForguncyDataAccess",
"CompareType": 8,
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "ID",
"GUID": "1183f68f-e95a-4ecd-b874-2dcce7f59d38"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=工时任务ID数组"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "是否请款",
"GUID": "eead7ffa-1ca4-4700-a84e-32710d76ebae"
},
"Value": "0"
}
]
},
"NullFormulaValueQueryPolicy": 0
},
"ID": "6157ee87b3124e34b569b2553994bd1e"
},
{
"$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": "0",
"compareType": 2
},
"CommandList": [
{
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "收益请款单表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "收益请款单表",
"ColumnName": "请款日期",
"GUID": "62435986-c8bf-4491-aaf8-ec30e282b42b"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=TODAY()"
}
},
{
"BindingInfo": {
"TableName": "收益请款单表",
"ColumnName": "请款人",
"GUID": "eafbf4d3-4c74-44eb-83ee-cec98785a0c9"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=请款人"
}
},
{
"BindingInfo": {
"TableName": "收益请款单表",
"ColumnName": "请款金额",
"GUID": "8e6c8fe9-3f92-4e3d-a524-1384df5f04a0"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=明细统计.收益求和"
}
},
{
"BindingInfo": {
"TableName": "收益请款单表",
"ColumnName": "状态",
"GUID": "01351c77-d2bb-4497-ba13-cf2210e5c0b0"
},
"Value": "0"
}
],
"ParamNameToSaveNewRowValue": "请款单"
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务工时表",
"ShowConfirm": false,
"RowsToUpdate": 1,
"RowsToUpdateCondition": {
"$type": "ForguncyDataAccess.TextCESqlCondition, ForguncyDataAccess",
"CompareType": 8,
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "ID",
"GUID": "85f7e8e6-4603-4fc5-83c0-013d6776f3b9"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=工时任务ID数组"
}
},
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "请款单ID",
"GUID": "07397efc-e2da-4a06-a997-087d59191b2d"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=请款单.ID"
}
}
]
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "生成完毕",
"CustomReturns": [
{
"ReturnPropertyName": "请款单ID",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=请款单.ID"
}
}
]
}
],
"ID": "f0308d1b-eb04-41e1-b249-c21df4cd8c11"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "请至少选择一条有效工时收益进行提交",
"CustomReturns": [
{
"ReturnPropertyName": "请款单ID"
}
]
}
],
"ID": "5031410c-0004-4e5a-8aef-f07f4a0648b8"
}
]
}
],
"ID": "e3bbc74f-c709-4562-a69d-664ff78bb0d8"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "所选工时中存在已请款记录,请重新选择!",
"CustomReturns": [
{
"ReturnPropertyName": "请款单ID"
}
]
}
],
"ID": "009cec1f-3b29-4dee-8f67-5ab17413ddd0"
}
]
}
],
"ReturnProperties": [
{
"Name": "请款单ID"
}
]
}