838 lines
44 KiB
JSON
838 lines
44 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": "2"
|
||
},
|
||
{
|
||
"Name": "开始日期",
|
||
"DataValidationInfo": {
|
||
"IgnoreBlank": false
|
||
},
|
||
"TestData": "2024-03-01"
|
||
},
|
||
{
|
||
"Name": "结束日期",
|
||
"DataValidationInfo": {
|
||
"IgnoreBlank": false
|
||
},
|
||
"TestData": "2024-03-10"
|
||
},
|
||
{
|
||
"Name": "执行人",
|
||
"DataValidationInfo": {
|
||
"IgnoreBlank": false
|
||
},
|
||
"TestData": "administrator"
|
||
},
|
||
{
|
||
"Name": "工时数",
|
||
"DataValidationInfo": {
|
||
"IgnoreBlank": false
|
||
},
|
||
"TestData": "40"
|
||
},
|
||
{
|
||
"Name": "进展内容",
|
||
"DataValidationInfo": {},
|
||
"TestData": "测试"
|
||
},
|
||
{
|
||
"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": "2c2767fc-9c55-4efe-b6b2-224ecc020029",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "7fdb06e2-cdb4-4b14-96e5-b16a0dc7ebf8"
|
||
},
|
||
"ColumnName": "项目ID"
|
||
},
|
||
{
|
||
"GUID": "c530784c-9ec7-4b10-8b13-2a2e2313ed0f",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "任务名称",
|
||
"GUID": "67c8366a-f017-4613-ab85-45f9735a09e9"
|
||
},
|
||
"ColumnName": "任务名称"
|
||
},
|
||
{
|
||
"GUID": "a5925b6c-d337-4cbe-8923-c518ef23d291",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "任务预算工时",
|
||
"GUID": "88baaaea-577c-4e64-ac91-fc6821062c8e"
|
||
},
|
||
"ColumnName": "任务预算工时"
|
||
},
|
||
{
|
||
"GUID": "76a3c299-61b1-4dba-a237-9afee0c01605",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "任务状态",
|
||
"GUID": "dbce198e-cb11-4ac9-96e3-d3747a2ca23b"
|
||
},
|
||
"ColumnName": "任务状态"
|
||
},
|
||
{
|
||
"GUID": "74266711-61bf-4bed-8222-9b4e6266bb1c",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "任务状态",
|
||
"GUID": "b316af2a-362c-4368-87f3-06a450cf885f",
|
||
"RelationBinding": {
|
||
"RelatedTable": "任务状态",
|
||
"RelatedColumn": "状态码",
|
||
"DisplayColumn": "任务状态"
|
||
}
|
||
},
|
||
"ColumnName": "任务状态文本"
|
||
},
|
||
{
|
||
"GUID": "791f2501-5a1c-4ffd-9005-1cc0715b34de",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "7c382f44-2671-42e4-bcb6-54391d8ca5c1",
|
||
"RelationBinding": {
|
||
"RelatedTable": "项目平行视图",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "严格模式"
|
||
}
|
||
},
|
||
"ColumnName": "严格模式"
|
||
},
|
||
{
|
||
"GUID": "167a9561-3e96-4434-84bc-48fe9e2ebb6b",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "b4ff6da3-d41f-42f4-a431-d660f7993661",
|
||
"RelationBinding": {
|
||
"RelatedTable": "项目平行视图",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "项目预算工时"
|
||
}
|
||
},
|
||
"ColumnName": "项目预算工时"
|
||
},
|
||
{
|
||
"GUID": "0e30f9f8-40aa-492f-a9dc-d1b865a53a5c",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "1b694496-49f0-4511-ab3d-00cdd03bc6c8",
|
||
"RelationBinding": {
|
||
"RelatedTable": "项目平行视图",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "项目预算费用"
|
||
}
|
||
},
|
||
"ColumnName": "项目预算费用"
|
||
},
|
||
{
|
||
"GUID": "0f4ec208-cb60-4f19-a38f-710e101dfceb",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "e7579388-e204-4b20-80bb-252f08702dcb",
|
||
"RelationBinding": {
|
||
"RelatedTable": "项目平行视图",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "工时分配方式"
|
||
}
|
||
},
|
||
"ColumnName": "工时分配方式"
|
||
},
|
||
{
|
||
"GUID": "d374362a-62bf-4271-9401-da087b8ad5e6",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "任务类型",
|
||
"GUID": "c0e462ce-e3de-494a-bcf8-309a62d6279a",
|
||
"RelationBinding": {
|
||
"RelatedTable": "任务类型",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "提成系数"
|
||
}
|
||
},
|
||
"ColumnName": "提成系数"
|
||
},
|
||
{
|
||
"GUID": "2380db01-cfa4-414b-87d6-1c6b1851e275",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "总计划工时",
|
||
"GUID": "8607fe01-1f38-41f0-a9d2-ac602ee7f344"
|
||
},
|
||
"ColumnName": "总计划工时"
|
||
},
|
||
{
|
||
"GUID": "939b27b6-1d20-44b2-a1a4-f100a4b5c510",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "总实际工时",
|
||
"GUID": "51709060-4e4c-4a5f-8e70-ee6a68823f4d"
|
||
},
|
||
"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": "0d9ae2153be64cb98c234c175b166743"
|
||
},
|
||
{
|
||
"$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": "提交工时"
|
||
},
|
||
{
|
||
"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": "6c71d95a7c3b4623870467ca0311eb97"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "待分配工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=核定工时"
|
||
},
|
||
"ID": "b42dac8b18d84c598f870fe2f9ae199d"
|
||
},
|
||
{
|
||
"$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": "f7725b3448fe402eb5bc32aaa4d6b224"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "统计工时",
|
||
"TableValue": {
|
||
"TableName": "View_任务工时统计",
|
||
"TableValueType": 1,
|
||
"BindingInfos": [
|
||
{
|
||
"GUID": "a7a1a922-a3ad-49f7-93dc-b86b73212252",
|
||
"BindingInfo": {
|
||
"TableName": "View_任务工时统计",
|
||
"ColumnName": "总计划工时",
|
||
"GUID": "5a63c0a3-e5dd-4851-b197-856a144a9466"
|
||
},
|
||
"ColumnName": "总计划工时"
|
||
},
|
||
{
|
||
"GUID": "f2f3a120-2e1f-4b4c-aea8-bf34d3bdaef9",
|
||
"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": "1be412269af54be3bd653f7be7590390"
|
||
},
|
||
{
|
||
"$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": "ca981e56b58e4a889cce1e811fc89764"
|
||
}
|
||
],
|
||
"ID": "88e79a14-c58e-467e-bb9e-d08a9992bf10"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "计算本次分配工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=ROUNDUP(待分配工时,1)"
|
||
},
|
||
"ID": "5e88c98d260e4a2bacdc4d385f1855f1"
|
||
}
|
||
],
|
||
"ID": "569f1523-a560-4d2b-8a29-228c39a3e1da"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$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": "24",
|
||
"compareType": 5
|
||
},
|
||
"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": "01501a2b7fbf48c5a85ab2382177039b"
|
||
}
|
||
],
|
||
"Comments": "如果是按天分配,则需要检测这一天的实际工时是否超出,",
|
||
"ID": "fca1b2d6-54f4-4565-8604-8d8614a2bfc0"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "本次核定工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=计算本次分配工时"
|
||
},
|
||
"ID": "9f4c8206193a47cfa79333c2dbb3d2a7"
|
||
}
|
||
],
|
||
"ID": "84459d53-9392-4771-9058-7e77386f8ced"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||
"TableName": "任务工时表",
|
||
"UpdateType": "add",
|
||
"ShowConfirm": false,
|
||
"UpdateBindingValues": [
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "ef3e72ab-2719-4a4b-9c5e-1022779f94c4"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=任务信息.项目ID"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "任务ID",
|
||
"GUID": "2f0b6f3e-8c93-4d60-97ad-10162af5559f"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=任务ID"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "工时日期",
|
||
"GUID": "6998850f-50af-4735-9060-f75e9024c849"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=当前日期"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "工时类型",
|
||
"GUID": "182162e5-f28d-4b1c-b373-8920f4f22a43"
|
||
},
|
||
"Value": "实际"
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "执行人",
|
||
"GUID": "d4cd13c5-cfd1-4a21-a983-e46b993cfb87"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=执行人"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "执行内容",
|
||
"GUID": "26d85a47-4c9a-4c76-b000-0fa84620efca"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=进展内容"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "工时",
|
||
"GUID": "39c63dac-4155-4f4e-80e7-d5461dd5ff95"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=本次核定工时"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "上报工时",
|
||
"GUID": "c6884584-fd8e-4fe8-8078-8b8c82c08754"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=计算本次分配工时"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "时薪单价",
|
||
"GUID": "40e5c2e0-ff4d-4d0f-a8ca-bc85923ac8d4"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=计算时薪"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "提成系数",
|
||
"GUID": "61b2b2ef-6a68-4c91-baa0-190818f161dd"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=提成系数"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "时薪来源",
|
||
"GUID": "2f57acba-81cd-466c-b67d-f5c1900d5427"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=时薪来源"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "待分配工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=ROUNDUP(待分配工时-计算本次分配工时,1)"
|
||
},
|
||
"ID": "d9e13b85ae5640d5972aeb4ea3180a34"
|
||
}
|
||
],
|
||
"ID": "df8a7a6d-1c71-48dd-8584-d9bbb1f86460"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": "400",
|
||
"Message": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=\"数据不合理:报工会导致在\"&TEXT(当前日期,\"yyyy年mm月dd\")&\"的实际工时会超过24小时,请修改后重新提交!\""
|
||
}
|
||
}
|
||
],
|
||
"ID": "a1c69d1d-002b-472c-a7dd-79628870581f"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||
"TableName": "项目动态",
|
||
"UpdateType": "add",
|
||
"ShowConfirm": false,
|
||
"UpdateBindingValues": [
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "项目动态",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "d56ef504-b228-4a69-8150-9aa4ca29702d"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=任务信息.项目ID"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "项目动态",
|
||
"ColumnName": "项目动态",
|
||
"GUID": "c1d71456-ff2c-49cc-8865-c5c6e33d4c91"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=执行人&\"在任务[\"&任务信息.任务名称&\"]中报工\"&工时数&\"小时\""
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "项目动态",
|
||
"ColumnName": "执行人",
|
||
"GUID": "a37c71d3-42b6-4cd0-8b66-73fd55c2ffb5"
|
||
},
|
||
"Value": "%CurrentUser%"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": "0",
|
||
"Message": "报工成功"
|
||
}
|
||
],
|
||
"ID": "904a25fd-f4ad-4289-91c7-47445727e2d3"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=code"
|
||
},
|
||
"Message": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=msg"
|
||
}
|
||
}
|
||
],
|
||
"ID": "6f50c329-4ab8-415c-9a0a-0d465b51d856"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "bc625af4-ce67-445e-b9bb-2506acba7dab"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": "400",
|
||
"Message": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=\"当前任务状态为[\"&任务信息.任务状态文本&\"],无法提交工时!\""
|
||
}
|
||
}
|
||
],
|
||
"ID": "08cc418b-c996-4c53-a5c5-dca13abf61f7"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
"CatchCommandPart": {
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=ExceptionCode"
|
||
},
|
||
"Message": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=ExceptionMessage"
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
]
|
||
} |