{ "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": "1" }, { "Name": "执行人", "DataValidationInfo": { "IgnoreBlank": false }, "TestData": "shamus" }, { "Name": "工时数", "DataValidationInfo": { "IgnoreBlank": false }, "TestData": "2000" }, { "Name": "指定时薪单价", "DataValidationInfo": {} } ], "InvokeTriggerTestData": { "UserName": "Administrator" } } ], "Commands": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "任务信息", "TableValue": { "TableName": "任务表", "TableValueType": 1, "BindingInfos": [ { "GUID": "a4525178-4350-49a0-9b74-eafe7c58f7ad", "BindingInfo": { "TableName": "任务表", "ColumnName": "项目ID", "GUID": "1b1dfe53-8569-419b-9ac7-4bb4e54e5cb3" }, "ColumnName": "项目ID" }, { "GUID": "28277e69-51c0-44d2-aaf4-8a64d47540f5", "BindingInfo": { "TableName": "任务表", "ColumnName": "任务名称", "GUID": "2f0ff2cf-b0cf-49ba-99c2-9b8636152c54" }, "ColumnName": "任务名称" }, { "GUID": "de559be7-424c-4c8c-a544-b9fe4a979b82", "BindingInfo": { "TableName": "任务表", "ColumnName": "任务预算工时", "GUID": "503e9dd2-fc8c-4426-a37f-c7d582c9577a" }, "ColumnName": "任务预算工时" }, { "GUID": "f8e2c444-6df2-4419-bea1-e1964f5c417d", "BindingInfo": { "TableName": "任务表", "ColumnName": "任务状态", "GUID": "93ff9848-29c1-4cf6-a3cd-d33eb1d033c4" }, "ColumnName": "任务状态" }, { "GUID": "7b06a1fd-184e-4654-9737-ffcdb46fbf9c", "BindingInfo": { "TableName": "任务表", "ColumnName": "任务状态", "GUID": "da675aa2-3619-422b-817f-eed8c7c118c7", "RelationBinding": { "RelatedTable": "任务状态", "RelatedColumn": "状态码", "DisplayColumn": "任务状态" } }, "ColumnName": "任务状态文本" }, { "GUID": "1251e695-ecf1-4bc6-96c1-141385475459", "BindingInfo": { "TableName": "任务表", "ColumnName": "项目ID", "GUID": "038a41fb-93fa-46f8-b259-87eb94cc28ad", "RelationBinding": { "RelatedTable": "项目表", "RelatedColumn": "ID", "DisplayColumn": "严格模式" } }, "ColumnName": "严格模式" }, { "GUID": "ae8749c3-3c07-4bd6-9cda-3d6676493a35", "BindingInfo": { "TableName": "任务表", "ColumnName": "项目ID", "GUID": "f4212e88-f2aa-4d8f-8ba8-b7c518505bb7", "RelationBinding": { "RelatedTable": "项目表", "RelatedColumn": "ID", "DisplayColumn": "项目预算工时" } }, "ColumnName": "项目预算工时" }, { "GUID": "eff04df7-1d05-4aa8-8b4a-69bda7b01609", "BindingInfo": { "TableName": "任务表", "ColumnName": "项目ID", "GUID": "31040160-fc88-459c-b67b-8621acbc0920", "RelationBinding": { "RelatedTable": "项目表", "RelatedColumn": "ID", "DisplayColumn": "项目预算费用" } }, "ColumnName": "项目预算费用" }, { "GUID": "ddb0a421-4a62-4b26-b13f-dab5a964e89e", "BindingInfo": { "TableName": "任务表", "ColumnName": "任务类型", "GUID": "f6fb60c7-0ba6-450b-9cda-28eb2412e296", "RelationBinding": { "RelatedTable": "任务类型", "RelatedColumn": "ID", "DisplayColumn": "提成系数" } }, "ColumnName": "提成系数" }, { "GUID": "3c7ef327-7f18-4452-be72-a221854f6ba7", "BindingInfo": { "TableName": "任务表", "ColumnName": "总计划工时", "GUID": "4bdf7858-40b1-495e-be0d-109aaaf4f69f" }, "ColumnName": "总计划工时" }, { "GUID": "3d4e1b59-74f6-4c1f-ab7d-7885ee230e52", "BindingInfo": { "TableName": "任务表", "ColumnName": "总实际工时", "GUID": "8505a216-3aee-4056-affe-6c760e35c844" }, "ColumnName": "总实际工时" }, { "GUID": "6e41f3a4-30a4-4893-a08c-25fa63f7abf3", "BindingInfo": { "TableName": "任务表", "ColumnName": "项目ID", "GUID": "b5020b4b-8e2e-4b31-a2ac-53ca31b14b8e", "RelationBinding": { "RelatedTable": "项目表", "RelatedColumn": "ID", "DisplayColumn": "工时分配方式" } }, "ColumnName": "工时分配方式" } ], "SqlCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "任务表", "ColumnName": "ID", "GUID": "6ffb7caa-1cd8-4373-b2bf-8a03556c1866" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务ID" } }, "NullFormulaValueQueryPolicy": 0, "TopCount": "1" }, "ID": "b58da3c8bfef4ca68be4a6994359c1e1" }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "任务成员", "TableValue": { "TableName": "任务成员表", "TableValueType": 1, "BindingInfos": [ { "GUID": "fe0babb8-290f-4984-98e8-b9b65fbec016", "BindingInfo": { "TableName": "任务成员表", "ColumnName": "参与人", "GUID": "20d5971e-0ac3-4236-9e5f-0e67e2034b35" }, "ColumnName": "参与人" }, { "GUID": "6c6a6ff8-1d75-4169-b865-7dbb8bbcb47f", "BindingInfo": { "TableName": "任务成员表", "ColumnName": "参与人", "GUID": "671ec8a8-ebc7-42d3-8fda-f2686d841ead", "AttachType": { "$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess", "UserColumnAttachType": 1 } }, "ColumnName": "参与人_全名" }, { "GUID": "631a0727-4b42-42b7-8d71-cb7dc03c5012", "BindingInfo": { "TableName": "任务成员表", "ColumnName": "参与人", "GUID": "b0fb9e47-ca43-45d0-bb54-cf7ac8edce15", "AttachType": { "$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess", "UserColumnAttachType": 5, "AttachTypeTag": "负荷" } }, "ColumnName": "参与人负荷" }, { "GUID": "7735fa98-f0e3-4055-81b9-14cc489d9d5a", "BindingInfo": { "TableName": "任务成员表", "ColumnName": "项目成员ID", "GUID": "ab7cb84d-53aa-4ef4-9480-9dcf6c0081a1", "RelationBinding": { "RelatedTable": "项目成员表", "RelatedColumn": "ID", "DisplayColumn": "默认时薪" } }, "ColumnName": "成员时薪" }, { "GUID": "627e2b07-d512-4f1e-8d76-321e226fa1f3", "BindingInfo": { "TableName": "任务成员表", "ColumnName": "项目成员ID", "GUID": "5235f7aa-0a63-4bd3-8c41-f3a32d4c3a93", "RelationBinding": { "RelatedTable": "项目成员表", "RelatedColumn": "ID", "DisplayColumn": "岗位ID", "NextRelationBinding": { "RelatedTable": "项目岗位", "RelatedColumn": "ID", "DisplayColumn": "默认时薪" } } }, "ColumnName": "岗位时薪" }, { "GUID": "74144ece-f4d7-40c6-9f4c-c0370f7074a2", "BindingInfo": { "TableName": "任务成员表", "ColumnName": "参与人", "GUID": "b9b7cb37-08a6-4720-bddc-153de4068f89", "AttachType": { "$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess", "UserColumnAttachType": 5, "AttachTypeTag": "默认时薪" } }, "ColumnName": "用户时薪" } ], "SqlCondition": { "$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess", "SubConditions": [ { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "任务成员表", "ColumnName": "任务ID", "GUID": "7d139430-ab2a-40df-98d0-38bc039435e2" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务ID" } }, { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "任务成员表", "ColumnName": "参与人", "GUID": "2b46a973-8db3-40e7-b10b-93ddb666b812" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=执行人" } } ] }, "NullFormulaValueQueryPolicy": 0, "TopCount": "1" }, "ID": "5aca1277f99d40a5b327a846fe0dde87" }, { "$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.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "核定工时说明", "ParameterValue": "按正常核定", "ID": "b16e7b987bb04c70a410df753fbeee20" }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "项目成员", "TableValue": { "TableName": "项目成员表", "TableValueType": 1, "BindingInfos": [ { "GUID": "f1fd9018-3cc6-4910-883a-66e03bee6e48", "BindingInfo": { "TableName": "项目成员表", "ColumnName": "岗位ID", "GUID": "e72fecb8-c4b6-4ef0-a802-f18cb6d6ba24", "RelationBinding": { "RelatedTable": "项目岗位", "RelatedColumn": "ID", "DisplayColumn": "默认时薪" } }, "ColumnName": "项目岗位时薪" }, { "GUID": "113de3b5-551e-4d43-bfc6-ecd139d58ed5", "BindingInfo": { "TableName": "项目成员表", "ColumnName": "默认时薪", "GUID": "90991267-4d34-4537-8be3-0ef990118f3e" }, "ColumnName": "项目成员时薪" } ], "SqlCondition": { "$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess", "SubConditions": [ { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "项目成员表", "ColumnName": "项目ID", "GUID": "25c7933c-8b27-4163-ad03-a22d7efe88fb" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务信息.项目ID" } }, { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "项目成员表", "ColumnName": "项目成员", "GUID": "02b01205-9bbb-4e4f-8534-f52ea963c907" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=执行人" } } ] }, "NullFormulaValueQueryPolicy": 0, "TopCount": "1" }, "ID": "919180f493fd46d4927d25dc48fa0e16" }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "提成系数", "ParameterValue": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务信息.提成系数" }, "ID": "7edb658f76be4a2aafd12f785ba10d11" }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "核定工时", "ParameterValue": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=工时数" }, "ID": "ef1b4fe8bc0048d880ef5985f778eebe" }, { "$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%" }, "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": "%Null%", "compareType": 1 }, "CommandList": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "计算时薪", "ParameterValue": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务成员.成员时薪" }, "ID": "c33d7341c73745a9ad4d94f64bc0a06c" }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "时薪计算来源", "ParameterValue": "成员时薪", "ID": "fbfb1d421b85425d8db5b6b2bac8aed1" } ], "Comments": "项目成员设置的时薪", "ID": "196360f2-7520-4373-a5c6-569e78ef6607" }, { "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.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "计算时薪", "ParameterValue": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务成员.岗位时薪" }, "ID": "24e1b15423514fa898c3e849e6641a3e" }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "时薪计算来源", "ParameterValue": "项目岗位时薪", "ID": "621753f632544315879bf59e65625f4e" } ], "Comments": "项目岗位设置的时薪", "ID": "a6e9b625-8a97-483d-8ddb-5ac946126350" }, { "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.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "计算时薪", "ParameterValue": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务成员.用户时薪" }, "ID": "ae5b39531d3b4679acfe463b62dd8cac" }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "时薪计算来源", "ParameterValue": "用户默认时薪", "ID": "eb64126e247b4986831480c66ca84918" } ], "Comments": "成员用户的默认时薪", "ID": "07c39884-8926-4a0b-acb4-eb8832e8c1ba" }, { "CommandList": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "计算时薪", "ParameterValue": "0", "ID": "671f14a1ad5949f7afcfc30d28fc477e" }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "时薪计算来源", "ParameterValue": "无时薪配置", "ID": "eb0ba1839ebc4ec58750e971080fc72b" } ], "ID": "3e5fdd55-d865-4147-9294-996b4c6ad1f1" } ] } ], "Comments": "优先使用手动指定的提成金额", "ID": "03a5ef08-ca90-48dd-a97b-497445585504" }, { "CommandList": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "计算时薪", "ParameterValue": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=指定时薪单价" }, "ID": "fc60439fc8cf41048b1245fd93c999ea" }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "时薪计算来源", "ParameterValue": "特殊指定", "ID": "2eafc4d65af44d18adfcd21c68734df8" } ], "ID": "bfd527d9-f865-4d28-8f53-d0597bc99bf7" } ], "Comments": "计算成员的时薪" }, { "$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": "1" }, "CommandList": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "个人工时情况", "TableValue": { "TableName": "View_任务工时统计", "TableValueType": 1, "BindingInfos": [ { "GUID": "1b238274-dd6b-4c25-82ac-9b61d4efba32", "BindingInfo": { "TableName": "View_任务工时统计", "ColumnName": "任务ID", "GUID": "976cf4f1-2ec3-4537-8ca8-aac1d965131e" }, "ColumnName": "任务ID" }, { "GUID": "1f313c9e-4960-484d-984f-75ab3965ccf5", "BindingInfo": { "TableName": "View_任务工时统计", "ColumnName": "总计划工时", "GUID": "37b1cd46-749c-4870-9e65-639974e237b4" }, "ColumnName": "总计划工时" }, { "GUID": "bd3ba593-9a1e-4864-b038-670ae01756f1", "BindingInfo": { "TableName": "View_任务工时统计", "ColumnName": "总实际工时", "GUID": "58613864-7f3d-4ab2-9b2e-f1e1b7a86879" }, "ColumnName": "总实际工时" } ], "SqlCondition": { "$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess", "SubConditions": [ { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "View_任务工时统计", "ColumnName": "任务ID", "GUID": "b732175b-c55c-4a15-b703-223f45ab07a1" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务ID" } }, { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "View_任务工时统计", "ColumnName": "执行人", "GUID": "4bd4f915-e792-4219-ad86-6602ef9080bd" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=执行人" } } ] } }, "ID": "bd1036451d524ce98a641c7eac350ccb", "Comments": "从视图统计项目的信息" }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "个人工时余额", "ParameterValue": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=个人工时情况.总计划工时-个人工时情况.总实际工时" }, "ID": "29e1c2c06f2e427bad0ccd1c37772485" }, { "$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": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=工时数" }, "compareType": 4 }, "CommandList": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "核定工时", "ParameterValue": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=个人工时情况.总计划工时-个人工时情况.总实际工时" }, "ID": "bde7738eb3154f93a0e189ea107db3ea" }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "核定工时说明", "ParameterValue": "个人工时余额不足,按剩余工时核定!", "ID": "58bcc74765f1449baceb214856d42160" } ], "Comments": "先检查个人工时余额够不够,如果不够,直接提成为0", "ID": "ba878135-8e02-406f-af6b-cccb447eca45" } ] } ], "Comments": "如果分配到人头,则判断该人总计划工时还够不够", "ID": "32052fab-784c-419e-86dd-1f40cb25407d" }, { "Condition": { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务信息.工时分配方式" } }, "value": "3" }, "CommandList": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "任务工时情况", "TableValue": { "TableName": "View_任务工时统计", "TableValueType": 1, "BindingInfos": [ { "GUID": "88e5a9aa-873c-46c3-b76f-69a424956526", "BindingInfo": { "TableName": "View_任务工时统计", "ColumnName": "任务ID", "GUID": "976cf4f1-2ec3-4537-8ca8-aac1d965131e" }, "ColumnName": "任务ID" }, { "GUID": "5fed6798-5151-4540-b566-d913b4615d93", "BindingInfo": { "TableName": "View_任务工时统计", "ColumnName": "总计划工时", "GUID": "37b1cd46-749c-4870-9e65-639974e237b4" }, "ColumnName": "总计划工时" }, { "GUID": "a30f02c0-4c0f-4308-a747-49bd5ac545dc", "BindingInfo": { "TableName": "View_任务工时统计", "ColumnName": "总实际工时", "GUID": "58613864-7f3d-4ab2-9b2e-f1e1b7a86879" }, "ColumnName": "总实际工时" } ], "SqlCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "View_任务工时统计", "ColumnName": "任务ID", "GUID": "b732175b-c55c-4a15-b703-223f45ab07a1" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务ID" } } }, "ID": "9dac211ac8804f90a07ac0a1924d99ca", "Comments": "从视图统计项目的信息" }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "任务工时余额", "ParameterValue": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务工时情况.总计划工时-任务工时情况.总实际工时" }, "ID": "b8f71de2a6994493970617644965cf31" }, { "$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": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=工时数" }, "compareType": 4 }, "CommandList": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "核定工时", "ParameterValue": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务工时情况.总计划工时-任务工时情况.总实际工时" }, "ID": "4fafcec6dc9b424a9a9caff2cb9c43af" }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "核定工时说明", "ParameterValue": "任务工时余额不足,按剩余工时核定!", "ID": "8ebb8fba5ce4400ca854cb1156c86f66" } ], "Comments": "先检查个人工时余额够不够,如果不够,直接提成为0", "ID": "6a83bcdf-756e-4c92-b42e-d0e32495a504" } ] } ], "Comments": "如果是共用任务工时,则查看任务计划工时够不够", "ID": "13321a98-7059-4cc4-b1cd-3609329f079c" } ] }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "项目统计信息", "TableValue": { "TableName": "View_项目统计信息", "TableValueType": 1, "BindingInfos": [ { "GUID": "75d4b655-e599-47e4-8c9c-a27eafa7a9cb", "BindingInfo": { "TableName": "View_项目统计信息", "ColumnName": "项目预算费用", "GUID": "1f23c586-e318-41f8-9e2c-f9fc47949199" }, "ColumnName": "项目预算费用" }, { "GUID": "4657e91e-3cd7-4a82-a79c-a0fab2e0cac9", "BindingInfo": { "TableName": "View_项目统计信息", "ColumnName": "总成本", "GUID": "7c3a493f-d2ac-49b3-957f-7a772d5138bf" }, "ColumnName": "总成本" } ], "SqlCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "View_项目统计信息", "ColumnName": "项目ID", "GUID": "0aa2d908-82fb-4233-a1e8-eb5a36cecaa2" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务信息.项目ID" } }, "TopCount": "1" }, "ID": "9d817f8a12e0490faa4817839ddd3330", "Comments": "从视图统计项目的信息" }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "预测本次产生成本", "ParameterValue": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目统计信息.总成本+(计算时薪*工时数*任务信息.提成系数)" }, "ID": "0b80da88679c4f178aa22d6333666401" }, { "$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": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=项目统计信息.项目预算费用" }, "compareType": 2 }, "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "该项目预算费用不足,为确保项目成本可控,请联系项目经理增加项目预算后再提交。", "CustomReturns": [ { "ReturnPropertyName": "提交工时", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=工时数" } }, { "ReturnPropertyName": "核定工时", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=核定工时" } }, { "ReturnPropertyName": "提成系数", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务信息.提成系数" } }, { "ReturnPropertyName": "计算时薪", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=计算时薪" } }, { "ReturnPropertyName": "核定收益", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=核定工时*计算时薪*提成系数" } }, { "ReturnPropertyName": "时薪来源", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=时薪计算来源" } }, { "ReturnPropertyName": "核定工时说明", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=核定工时说明" } } ] } ], "ID": "b029ab62-2ed4-450b-93da-1aa7e32aeb5a" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "以下是本次报工的核定数据,请确认无误后提交", "CustomReturns": [ { "ReturnPropertyName": "提交工时", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=工时数" } }, { "ReturnPropertyName": "核定工时", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=核定工时" } }, { "ReturnPropertyName": "提成系数", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务信息.提成系数" } }, { "ReturnPropertyName": "计算时薪", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=计算时薪" } }, { "ReturnPropertyName": "核定收益", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=核定工时*计算时薪*提成系数" } }, { "ReturnPropertyName": "时薪来源", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=时薪计算来源" } }, { "ReturnPropertyName": "核定工时说明", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=核定工时说明" } } ] } ], "ID": "f5618930-6c00-45a7-96d2-66a48f878063" } ] } ], "Comments": "如果提交的工时类型等于项目工时的核定方式且开启严格模式就校验本次有没有超标", "ID": "4435ea5c-76f7-4074-9a3f-67efdeaa7958" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "以下是本次报工的核定数据,请确认无误后提交", "CustomReturns": [ { "ReturnPropertyName": "提交工时", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=工时数" } }, { "ReturnPropertyName": "核定工时", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=核定工时" } }, { "ReturnPropertyName": "提成系数", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务信息.提成系数" } }, { "ReturnPropertyName": "计算时薪", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=计算时薪" } }, { "ReturnPropertyName": "核定收益", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=核定工时*计算时薪*提成系数" } }, { "ReturnPropertyName": "时薪来源", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=时薪计算来源" } }, { "ReturnPropertyName": "核定工时说明" } ] } ], "ID": "805cb12e-065e-49a6-bd5a-2f2581c3458f" } ] } ], "ID": "412221e1-a820-4a0b-963a-d57a9b3ffa10" }, { "CommandList": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "成员不在任务内,无法报工!", "CustomReturns": [ { "ReturnPropertyName": "提交工时" }, { "ReturnPropertyName": "核定工时" }, { "ReturnPropertyName": "提成系数" }, { "ReturnPropertyName": "计算时薪" }, { "ReturnPropertyName": "核定收益" }, { "ReturnPropertyName": "时薪来源" }, { "ReturnPropertyName": "核定工时说明" } ] } ], "ID": "5ec5ed41-9521-4a99-8f5a-cbe9da2543fb" } ] } ], "ReturnProperties": [ { "Name": "提交工时" }, { "Name": "核定工时" }, { "Name": "提成系数" }, { "Name": "计算时薪" }, { "Name": "核定收益" }, { "Name": "时薪来源" }, { "Name": "核定工时说明" } ] }