1109 lines
68 KiB
JSON
1109 lines
68 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": "45"
|
||
},
|
||
{
|
||
"Name": "开始日期",
|
||
"DataValidationInfo": {
|
||
"IgnoreBlank": false
|
||
},
|
||
"TestData": "2024-03-01"
|
||
},
|
||
{
|
||
"Name": "结束日期",
|
||
"DataValidationInfo": {
|
||
"IgnoreBlank": false
|
||
},
|
||
"TestData": "2024-03-1"
|
||
},
|
||
{
|
||
"Name": "执行人",
|
||
"DataValidationInfo": {
|
||
"IgnoreBlank": false
|
||
},
|
||
"TestData": "shamus"
|
||
},
|
||
{
|
||
"Name": "工时数",
|
||
"DataValidationInfo": {
|
||
"IgnoreBlank": false
|
||
},
|
||
"TestData": "0"
|
||
},
|
||
{
|
||
"Name": "进展内容",
|
||
"DataValidationInfo": {},
|
||
"TestData": "1. 测试\r\n2.2323\r\n3、333\r\n4. 444\r\n- sdfdsf"
|
||
},
|
||
{
|
||
"Name": "指定时薪单价",
|
||
"DataValidationInfo": {}
|
||
}
|
||
],
|
||
"InvokeTriggerTestData": {
|
||
"UserName": "Administrator"
|
||
}
|
||
}
|
||
],
|
||
"Commands": [
|
||
{
|
||
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
|
||
"TryCommandPart": {
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "任务信息",
|
||
"TableValue": {
|
||
"TableName": "任务平行视图",
|
||
"TableValueType": 1,
|
||
"BindingInfos": [
|
||
{
|
||
"GUID": "73cab051-4981-451d-8e25-12bfcb1b7d6f",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "7fdb06e2-cdb4-4b14-96e5-b16a0dc7ebf8"
|
||
},
|
||
"ColumnName": "项目ID"
|
||
},
|
||
{
|
||
"GUID": "a661203f-2a9a-425c-9a70-0bd2c108c0dd",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "任务名称",
|
||
"GUID": "67c8366a-f017-4613-ab85-45f9735a09e9"
|
||
},
|
||
"ColumnName": "任务名称"
|
||
},
|
||
{
|
||
"GUID": "4397f439-0ebf-4569-a805-e551990474ab",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "7c382f44-2671-42e4-bcb6-54391d8ca5c1",
|
||
"RelationBinding": {
|
||
"RelatedTable": "项目平行视图",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "严格模式"
|
||
}
|
||
},
|
||
"ColumnName": "严格模式"
|
||
},
|
||
{
|
||
"GUID": "67003c11-d82c-4a3d-938a-50483ce1dfe9",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "e7579388-e204-4b20-80bb-252f08702dcb",
|
||
"RelationBinding": {
|
||
"RelatedTable": "项目平行视图",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "工时分配方式"
|
||
}
|
||
},
|
||
"ColumnName": "工时分配方式"
|
||
},
|
||
{
|
||
"GUID": "414b51d3-0095-42b6-ba3d-0d6260b0a59a",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "任务状态",
|
||
"GUID": "dbce198e-cb11-4ac9-96e3-d3747a2ca23b"
|
||
},
|
||
"ColumnName": "任务状态"
|
||
},
|
||
{
|
||
"GUID": "cbc00a12-b92b-4d89-bf75-62a2d10c760e",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "任务状态",
|
||
"GUID": "b316af2a-362c-4368-87f3-06a450cf885f",
|
||
"RelationBinding": {
|
||
"RelatedTable": "任务状态",
|
||
"RelatedColumn": "状态码",
|
||
"DisplayColumn": "任务状态"
|
||
}
|
||
},
|
||
"ColumnName": "任务状态文本"
|
||
}
|
||
],
|
||
"SqlCondition": {
|
||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||
"ColumnBindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "ID",
|
||
"GUID": "24d636d8-dc6e-4105-aad7-e3fcb17e77cb"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=任务ID"
|
||
}
|
||
},
|
||
"NullFormulaValueQueryPolicy": 0,
|
||
"TopCount": "1"
|
||
},
|
||
"ID": "3b8850e5b77640ff80ac3afe2028fda2"
|
||
},
|
||
{
|
||
"$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": "2"
|
||
},
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
|
||
"ServerCommandName": "计算报工数据",
|
||
"Parameters": [
|
||
{
|
||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||
"ParamName": "任务ID",
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=任务ID"
|
||
}
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||
"ParamName": "执行人",
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=执行人"
|
||
}
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||
"ParamName": "工时数",
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=工时数"
|
||
}
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||
"ParamName": "指定时薪单价",
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=指定时薪单价"
|
||
}
|
||
}
|
||
],
|
||
"ResultErrorCodeTo": {
|
||
"SerializeProperty": "code"
|
||
},
|
||
"ResultMessageTo": {
|
||
"SerializeProperty": "msg"
|
||
},
|
||
"ReturnPropertiesTo": [
|
||
{
|
||
"ResultPropertyName": "提交工时",
|
||
"ResultTo": {
|
||
"SerializeProperty": "提交工时"
|
||
}
|
||
},
|
||
{
|
||
"ResultPropertyName": "核定工时",
|
||
"ResultTo": {
|
||
"SerializeProperty": "核定工时"
|
||
}
|
||
},
|
||
{
|
||
"ResultPropertyName": "提成系数",
|
||
"ResultTo": {
|
||
"SerializeProperty": "提成系数"
|
||
}
|
||
},
|
||
{
|
||
"ResultPropertyName": "计算时薪",
|
||
"ResultTo": {
|
||
"SerializeProperty": "计算时薪"
|
||
}
|
||
},
|
||
{
|
||
"ResultPropertyName": "核定收益",
|
||
"ResultTo": {
|
||
"SerializeProperty": "核定收益"
|
||
}
|
||
},
|
||
{
|
||
"ResultPropertyName": "时薪来源",
|
||
"ResultTo": {
|
||
"SerializeProperty": "时薪来源"
|
||
}
|
||
},
|
||
{
|
||
"ResultPropertyName": "核定工时说明",
|
||
"ResultTo": {
|
||
"SerializeProperty": "工时核定说明"
|
||
}
|
||
},
|
||
{
|
||
"ResultPropertyName": "报工人姓名"
|
||
}
|
||
],
|
||
"RefreshAfterFinish": true,
|
||
"CheckDataValidation": true
|
||
},
|
||
{
|
||
"$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": "=code"
|
||
}
|
||
},
|
||
"value": "0"
|
||
},
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "分配天数",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=DATEDIF(开始日期,结束日期,\"d\")+1"
|
||
},
|
||
"ID": "9e168dd0c268433e9bcc733a6477cf2e"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "待分配工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=核定工时"
|
||
},
|
||
"ID": "3e3182753b7c4738ba3b1677f0a33da2"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "待分配上报工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=工时数"
|
||
},
|
||
"ID": "04b93773b7d84e33b23af98da0891576"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
|
||
"LoopInfo": {
|
||
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
|
||
"LoopCount": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=分配天数"
|
||
},
|
||
"LoopIndexParamName": "index",
|
||
"LoopItemParamName": "Item"
|
||
},
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "当前日期",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=开始日期+(index-1)"
|
||
},
|
||
"ID": "e3a8e9da07c247d2bf471c00cdd5dac9"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "统计工时",
|
||
"TableValue": {
|
||
"TableName": "View_任务工时统计",
|
||
"TableValueType": 1,
|
||
"BindingInfos": [
|
||
{
|
||
"GUID": "77edb895-c01f-4f57-9d1b-ebd22738e87a",
|
||
"BindingInfo": {
|
||
"TableName": "View_任务工时统计",
|
||
"ColumnName": "总计划工时",
|
||
"GUID": "5a63c0a3-e5dd-4851-b197-856a144a9466"
|
||
},
|
||
"ColumnName": "总计划工时"
|
||
},
|
||
{
|
||
"GUID": "f84fce9c-f3ff-449d-825e-eb0da9a68372",
|
||
"BindingInfo": {
|
||
"TableName": "View_任务工时统计",
|
||
"ColumnName": "总核定工时",
|
||
"GUID": "21ea4bc4-f68e-446b-9760-413f048a32ea"
|
||
},
|
||
"ColumnName": "总实际工时"
|
||
}
|
||
],
|
||
"SqlCondition": {
|
||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||
"SubConditions": [
|
||
{
|
||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||
"ColumnBindingInfo": {
|
||
"TableName": "View_任务工时统计",
|
||
"ColumnName": "任务ID",
|
||
"GUID": "8d915019-2cfd-4c95-b3b3-158f9b202f35"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=任务ID"
|
||
}
|
||
},
|
||
{
|
||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||
"ColumnBindingInfo": {
|
||
"TableName": "View_任务工时统计",
|
||
"ColumnName": "执行人",
|
||
"GUID": "14c58079-0d75-42a0-a3ba-8f35c3a578a1"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=执行人"
|
||
}
|
||
},
|
||
{
|
||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||
"ColumnBindingInfo": {
|
||
"TableName": "View_任务工时统计",
|
||
"ColumnName": "日期",
|
||
"GUID": "abf612b1-a865-4aa4-afae-e47acfc79220"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=当前日期"
|
||
}
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"ID": "11c2430cef2041938ec503c42a76bf4f"
|
||
},
|
||
{
|
||
"$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": "=index"
|
||
}
|
||
},
|
||
"value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=分配天数"
|
||
},
|
||
"compareType": 4
|
||
},
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "计算上报工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=ROUNDUP(核定工时/分配天数,1)"
|
||
},
|
||
"ID": "1d0a8e541f5a4d8792f0be39665a1f82"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "计算本次分配工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=ROUNDUP(核定工时/分配天数,1)"
|
||
},
|
||
"ID": "2d719d51ef5a46ee9aa64f113a34cce3"
|
||
}
|
||
],
|
||
"ID": "5b60736d-45f9-4a98-8040-8a9d0e4d8046"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "计算上报工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=待分配上报工时"
|
||
},
|
||
"ID": "c812d51f95704a98b5b24d093a898de5"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "计算本次分配工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=待分配工时"
|
||
},
|
||
"ID": "11255bb1a556487e972cf64b9d1da58b"
|
||
}
|
||
],
|
||
"ID": "ab7e4879-a8f0-4d6d-9c85-d72a60cfc5c4"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||
"ConditionAndCommandPairList": [
|
||
{
|
||
"Condition": {
|
||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||
"SubConditions": [
|
||
{
|
||
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||
"param": {
|
||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||
"ParamObject": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=统计工时.总实际工时+计算上报工时"
|
||
}
|
||
},
|
||
"value": "24",
|
||
"compareType": 5
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||
"param": {
|
||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||
"ParamObject": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=任务信息.严格模式"
|
||
}
|
||
},
|
||
"value": "1",
|
||
"compareType": 1
|
||
}
|
||
],
|
||
"RelationType": 1
|
||
},
|
||
"CommandList": [
|
||
{
|
||
"$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": "1"
|
||
},
|
||
"CommandList": [
|
||
{
|
||
"$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": "2"
|
||
},
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "本次核定工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=IF(计算本次分配工时>(个人工时情况.总计划工时-个人工时情况.总实际工时),(个人工时情况.总计划工时-个人工时情况.总实际工时),计算本次分配工时)"
|
||
},
|
||
"ID": "6928da5ea67d4786a7f8c0215c904bd4"
|
||
}
|
||
],
|
||
"Comments": "如果是分配到天,就检测当前日期该人员在任务里的计划工时是否够用",
|
||
"ID": "c258c8f6-9986-4ff9-b416-2e79231b9476"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "本次核定工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=计算本次分配工时"
|
||
},
|
||
"ID": "82c651b1c1424340b8c6b3ed1361b1fd"
|
||
}
|
||
],
|
||
"ID": "d272daa9-385c-4fb3-8714-cda480a40473"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"Comments": "如果是按天分配,则需要检测这一天的实际工时是否超出,",
|
||
"ID": "15f7d9f3-b957-45a9-aa3a-f1a14b968ea0"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "本次核定工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=计算本次分配工时"
|
||
},
|
||
"ID": "3f324a9712e14a6693472fa215c3143f"
|
||
}
|
||
],
|
||
"ID": "b87fe06d-b8df-42bc-abd3-7084cd5465b0"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
|
||
"Operation": 17,
|
||
"OperationParamaterAName": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=CHAR(10)&CHAR(13)"
|
||
},
|
||
"OperationParamaterBName": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=进展内容"
|
||
},
|
||
"OutParamaterName": "进展内容拆分数组"
|
||
},
|
||
{
|
||
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
|
||
"OutParamaterName": "新内容数组"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
|
||
"LoopInfo": {
|
||
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
|
||
"LoopCount": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=进展内容拆分数组"
|
||
},
|
||
"LoopItemParamName": "进展内容item"
|
||
},
|
||
"CommandList": [
|
||
{
|
||
"$type": "GETPOST.正则类.正则_取匹配文本, GETPOST",
|
||
"JieShouMsg": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=进展内容item"
|
||
},
|
||
"JieShouMsg2": "^[^\\S\\r\\n]*[\\d]*[、.\\-]?[^\\S\\r\\n]*",
|
||
"FanHuiMsg": "取无用符号"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "新进展内容行",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=SUBSTITUTE(进展内容item,取无用符号,\" - \")"
|
||
},
|
||
"ID": "20472572ee904f20a1ea7c5f32683622"
|
||
},
|
||
{
|
||
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
|
||
"InParamater": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=新内容数组"
|
||
},
|
||
"Operation": 4,
|
||
"OperationParamaterAName": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=新进展内容行"
|
||
},
|
||
"OutParamaterName": "新内容数组"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
|
||
"InParamater": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=新内容数组"
|
||
},
|
||
"Operation": 16,
|
||
"OperationParamaterAName": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=CHAR(10)"
|
||
},
|
||
"OutParamaterName": "新内容"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||
"TableName": "任务工时表",
|
||
"UpdateType": "add",
|
||
"ShowConfirm": false,
|
||
"UpdateBindingValues": [
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "0f4e16c5-9bdc-4adc-a9de-fef475690b68"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=任务信息.项目ID"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "任务ID",
|
||
"GUID": "a5934eea-82eb-49b8-b015-b6da1439a5df"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=任务ID"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "工时日期",
|
||
"GUID": "3fd626c5-ce88-4893-9ef4-e3270ed970e1"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=当前日期"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "工时类型",
|
||
"GUID": "6600c0a6-85e4-402f-85ae-c27d9cdf380a"
|
||
},
|
||
"Value": "实际"
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "执行人",
|
||
"GUID": "68d08e51-3d2d-439b-bb51-d8d580eab964"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=执行人"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "执行内容",
|
||
"GUID": "912d6a22-9f2b-40ea-81a0-9b50f8528c26"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=新内容"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "工时",
|
||
"GUID": "51d2ceba-2831-4ca9-be9d-11614a741fb8"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=本次核定工时"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "上报工时",
|
||
"GUID": "b4ab089f-734d-4a7a-8907-007d1f984b2f"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=计算上报工时"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "时薪单价",
|
||
"GUID": "54418511-ce0f-460e-a0f7-bdc2047c5491"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=计算时薪"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "提成系数",
|
||
"GUID": "aec753ae-d03d-48d7-9792-c3a61e5a8e6c"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=提成系数"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "时薪来源",
|
||
"GUID": "37c4bbac-d9a0-4c9c-b3d7-2a5c48d7a0fe"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=时薪来源"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||
"ConditionAndCommandPairList": [
|
||
{
|
||
"Condition": {
|
||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||
"SubConditions": [
|
||
{
|
||
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||
"param": {
|
||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||
"ParamObject": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=任务信息.工时分配方式"
|
||
}
|
||
},
|
||
"value": "3"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||
"param": {
|
||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||
"ParamObject": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=本次核定工时"
|
||
}
|
||
},
|
||
"value": "0",
|
||
"compareType": 1
|
||
}
|
||
]
|
||
},
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||
"TableName": "任务工时表",
|
||
"UpdateType": "add",
|
||
"ShowConfirm": false,
|
||
"UpdateBindingValues": [
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "abdb8a3b-0224-46b4-87a7-bf23bd2eca8d"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=任务信息.项目ID"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "任务ID",
|
||
"GUID": "d125eaf0-d897-4221-9a3b-6788a7b69416"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=任务ID"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "工时日期",
|
||
"GUID": "78fd7bcb-f094-4e2b-96f2-7a1cbc343195"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=当前日期"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "工时类型",
|
||
"GUID": "85c19113-b8ea-4fda-bb10-176346c40738"
|
||
},
|
||
"Value": "计划"
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "执行人",
|
||
"GUID": "1c71172a-ca87-4122-b8a9-b0a2309364ce"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=执行人"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "执行内容",
|
||
"GUID": "4a675b98-438d-4e63-b474-11c60ffbe600"
|
||
},
|
||
"Value": "系统自动生成对应计划,保证任务可分配工时"
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "工时",
|
||
"GUID": "805ba35f-642a-4731-8104-e0b35188dc43"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=本次核定工时"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "上报工时",
|
||
"GUID": "c2825b07-08dc-4c7d-b91d-1e8f2fa05013"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=计算上报工时"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "时薪单价",
|
||
"GUID": "a53fafaa-3b2b-4f2b-bd6d-29460279954c"
|
||
},
|
||
"Value": "0"
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "提成系数",
|
||
"GUID": "93933002-d8c4-40bb-9bfd-08c6983dafae"
|
||
},
|
||
"Value": "0"
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "时薪来源",
|
||
"GUID": "f27ee3f0-a505-4722-92f8-0921f1cd2211"
|
||
}
|
||
}
|
||
],
|
||
"Comments": "针对分配到任务的场景,系统补一个计划任务,保证视图数据正常"
|
||
}
|
||
],
|
||
"Comments": "如果是分配到任务,就补一条计划,保证任务可分配工时准确",
|
||
"ID": "51f81352-af6f-4a77-8674-5eef8aa45b73"
|
||
}
|
||
],
|
||
"Disabled": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "待分配工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=ROUNDUP(待分配工时-计算上报工时,1)"
|
||
},
|
||
"ID": "0a87d0ac1625451caaae7de7289a1cd4"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "待分配上报工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=ROUNDUP(待分配上报工时-计算上报工时,1)"
|
||
},
|
||
"ID": "dfe08a493a80498e8915bc2fe710ad21"
|
||
}
|
||
],
|
||
"ID": "c963de63-7574-4716-90a2-21b394f3ed01"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": "400",
|
||
"Message": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=\"数据不合理:报工会导致在\"&TEXT(当前日期,\"yyyy年mm月dd\")&\"的实际工时会超过24小时,请修改后重新提交!\""
|
||
}
|
||
}
|
||
],
|
||
"ID": "d4d82229-a7fc-42f8-9c8b-31cc24fe86ca"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||
"TableName": "项目动态",
|
||
"UpdateType": "add",
|
||
"ShowConfirm": false,
|
||
"UpdateBindingValues": [
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "项目动态",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "ad77fcdf-55a6-477e-9d6a-7197107ac13a"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=任务信息.项目ID"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "项目动态",
|
||
"ColumnName": "项目动态",
|
||
"GUID": "6c60d59f-b4d1-4918-b6ad-5528e53cd560"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=执行人&\"在任务[\"&任务信息.任务名称&\"]中报工\"&工时数&\"小时\""
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "项目动态",
|
||
"ColumnName": "执行人",
|
||
"GUID": "26304b92-3427-4848-8c0b-a175c88fbf43"
|
||
},
|
||
"Value": "%CurrentUser%"
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "项目动态",
|
||
"ColumnName": "类型",
|
||
"GUID": "d0f88789-880e-43d3-919d-89e10c8bf5bf"
|
||
},
|
||
"Value": "5"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": "0",
|
||
"Message": "报工成功"
|
||
}
|
||
],
|
||
"ID": "7f9764bc-0fbb-4930-a5ec-67f3ab1e60c0"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=code"
|
||
},
|
||
"Message": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=msg"
|
||
}
|
||
}
|
||
],
|
||
"ID": "7ba3bdbe-02f2-4280-bea7-498f26ea4cf8"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "cbfaeab0-9778-4e00-b6c2-1e38411cc0e9"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": "400",
|
||
"Message": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=\"当前任务状态为[\"&任务信息.任务状态文本&\"],无法提交工时!\""
|
||
}
|
||
}
|
||
],
|
||
"ID": "e4365ede-cb1b-4b90-863f-2d74a03832cb"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
"CatchCommandPart": {
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=ExceptionCode"
|
||
},
|
||
"Message": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=ExceptionMessage"
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
]
|
||
} |