Files
clue/ServerCommands/工时/计算报工数据.json
超哥 60ad662fb3 {"Message":"1. 增加项目、任务平行视图,解决子表成员的权限问题;\r\n2. 重新整理页面绑定,取消原表的统计字段;\r\n3. 优化任务、项目的人员管理;","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":23,"Name":"TableView/View_任务工时统计"},{"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":1,"Type":1,"Name":"PCPage/工时详情"},{"State":1,"Type":1,"Name":"PCPage/新增任务"},{"State":4,"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":1,"Name":"PCPage/分配计划工时"},{"State":1,"Type":15,"Name":"ServerCommand/变更任务状态"},{"State":1,"Type":15,"Name":"ServerCommand/修改任务预算工时"},{"State":1,"Type":15,"Name":"ServerCommand/移除任务成员"},{"State":2,"Type":15,"Name":"ServerCommand/更新任务参与人"},{"State":2,"Type":15,"Name":"ServerCommand/同步任务参与人字段"},{"State":1,"Type":15,"Name":"ServerCommand/上报实际工时"},{"State":1,"Type":15,"Name":"ServerCommand/分配任务工时"},{"State":1,"Type":15,"Name":"ServerCommand/移除项目成员"},{"State":2,"Type":15,"Name":"ServerCommand/同步项目成员"},{"State":1,"Type":27,"Name":"ServerCommandPrivate/后端新增项目反馈"},{"State":1,"Type":36,"Name":"ShareCommandContainer/打开任务详情"},{"State":1,"Type":9,"Name":"Theme"},{"State":1,"Type":40,"Name":"Plugin"},{"State":1,"Type":15,"Name":"ServerCommand/计算报工数据"},{"State":2,"Type":15,"Name":"ServerCommand/上报实际工时(备份)"},{"State":1,"Type":7,"Name":"Table/汇报状态"},{"State":1,"Type":7,"Name":"Table/EmojiTable"},{"State":1,"Type":15,"Name":"ServerCommand/任务发起流程前校验"},{"State":1,"Type":28,"Name":"ProcessItem/新增任务流程"},{"State":1,"Type":15,"Name":"ServerCommand/发起任务流程"},{"State":3,"Type":23,"Name":"TableView/项目平行视图"},{"State":3,"Type":6,"Name":"Pages/任务/任务成员"},{"State":3,"Type":23,"Name":"TableView/任务成员视图"},{"State":3,"Type":23,"Name":"TableView/任务平行视图"},{"State":3,"Type":6,"Name":"Pages/任务/任务类型管理"}],"Version":"v1"}
2024-06-17 22:35:04 +08:00

1197 lines
56 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"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": "51d29667-c8fa-4ac7-9a80-84635b43c671",
"BindingInfo": {
"TableName": "任务平行视图",
"ColumnName": "项目ID",
"GUID": "7a775562-0089-4f89-b487-adb6c325aae7"
},
"ColumnName": "项目ID"
},
{
"GUID": "1178509c-4606-4631-9f47-3ac0c387dd5c",
"BindingInfo": {
"TableName": "任务平行视图",
"ColumnName": "任务名称",
"GUID": "82947834-93d4-4141-ae13-ac868718c9e3"
},
"ColumnName": "任务名称"
},
{
"GUID": "595928d5-c5e2-4a0b-b9c5-1fb1b6994092",
"BindingInfo": {
"TableName": "任务平行视图",
"ColumnName": "任务预算工时",
"GUID": "9eadb3da-071f-490d-9a93-52bd6ab236c9"
},
"ColumnName": "任务预算工时"
},
{
"GUID": "39dd63aa-a9c6-4646-a0a1-d16bad89b4ce",
"BindingInfo": {
"TableName": "任务平行视图",
"ColumnName": "任务状态",
"GUID": "8ab893d0-a983-49c5-83d4-f924307b44d8"
},
"ColumnName": "任务状态"
},
{
"GUID": "0f951348-a489-4498-b0df-c01a04a35554",
"BindingInfo": {
"TableName": "任务平行视图",
"ColumnName": "任务状态",
"GUID": "7dd81639-004a-4e1f-8801-bdb573d4689f",
"RelationBinding": {
"RelatedTable": "任务状态",
"RelatedColumn": "状态码",
"DisplayColumn": "任务状态"
}
},
"ColumnName": "任务状态文本"
},
{
"GUID": "b8d887d3-7e95-450e-8c41-55fe618bee11",
"BindingInfo": {
"TableName": "任务平行视图",
"ColumnName": "项目ID",
"GUID": "e7c38242-5a9e-4a27-9f2e-e7310190db0e",
"RelationBinding": {
"RelatedTable": "项目平行视图",
"RelatedColumn": "ID",
"DisplayColumn": "严格模式"
}
},
"ColumnName": "严格模式"
},
{
"GUID": "df02b131-76d0-4fc6-8c7d-4a2485886371",
"BindingInfo": {
"TableName": "任务平行视图",
"ColumnName": "项目ID",
"GUID": "0c95b352-574d-479b-b97d-6216b400ee70",
"RelationBinding": {
"RelatedTable": "项目平行视图",
"RelatedColumn": "ID",
"DisplayColumn": "项目预算工时"
}
},
"ColumnName": "项目预算工时"
},
{
"GUID": "518fccab-2ffd-47eb-a849-fc448c36ed5d",
"BindingInfo": {
"TableName": "任务平行视图",
"ColumnName": "项目ID",
"GUID": "4bc603a4-f90b-4160-abf6-efd30574f3db",
"RelationBinding": {
"RelatedTable": "项目平行视图",
"RelatedColumn": "ID",
"DisplayColumn": "项目预算费用"
}
},
"ColumnName": "项目预算费用"
},
{
"GUID": "b1e1ddce-0b10-4c9e-876b-8168a0b1827e",
"BindingInfo": {
"TableName": "任务平行视图",
"ColumnName": "项目ID",
"GUID": "27e931f9-2c3b-4d36-9d31-f513387b9366",
"RelationBinding": {
"RelatedTable": "项目平行视图",
"RelatedColumn": "ID",
"DisplayColumn": "工时分配方式"
}
},
"ColumnName": "工时分配方式"
},
{
"GUID": "4b56bc02-6a36-44c9-861b-ef6f83ba1e51",
"BindingInfo": {
"TableName": "任务平行视图",
"ColumnName": "任务类型",
"GUID": "ccd2fb35-e336-4b95-a031-480e1b81d7e4",
"RelationBinding": {
"RelatedTable": "任务类型",
"RelatedColumn": "ID",
"DisplayColumn": "提成系数"
}
},
"ColumnName": "提成系数"
},
{
"GUID": "74dfdd5f-cf5c-4a78-b999-d362ed94b09d",
"BindingInfo": {
"TableName": "任务平行视图",
"ColumnName": "总计划工时",
"GUID": "9b9f88c0-c367-46c7-948c-5b43579844d0"
},
"ColumnName": "总计划工时"
},
{
"GUID": "561c6627-404a-4cd6-8110-221e757e6fde",
"BindingInfo": {
"TableName": "任务平行视图",
"ColumnName": "总实际工时",
"GUID": "980d85ec-3b78-448b-b4de-3987fd4e4f28"
},
"ColumnName": "总实际工时"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务平行视图",
"ColumnName": "ID",
"GUID": "9e13ce69-9a90-4903-b1bc-191e78046201"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "de7afa1d5ff1408fb92f64a23e648572"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "任务成员",
"TableValue": {
"TableName": "任务成员视图",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "95107486-9b29-4c73-8f89-62be80d0240d",
"BindingInfo": {
"TableName": "任务成员视图",
"ColumnName": "任务成员",
"GUID": "c9f1bc1f-0740-4216-ac99-e79dd41fef88"
},
"ColumnName": "参与人"
},
{
"GUID": "6723495f-8637-4d58-bdb2-649aa4fb1d93",
"BindingInfo": {
"TableName": "任务成员视图",
"ColumnName": "任务成员",
"GUID": "5f56fb6d-7c2e-4270-94c8-ab56bc9b6ae7",
"AttachType": {
"$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess",
"UserColumnAttachType": 1
}
},
"ColumnName": "参与人_全名"
},
{
"GUID": "27eded30-6e46-43a3-865e-519f92fcb92f",
"BindingInfo": {
"TableName": "任务成员视图",
"ColumnName": "任务成员",
"GUID": "781a90fc-9c77-43ca-a831-8006774fd4da",
"AttachType": {
"$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess",
"UserColumnAttachType": 5,
"AttachTypeTag": "负荷"
}
},
"ColumnName": "参与人负荷"
},
{
"GUID": "655461f1-c357-428f-990d-5cbb79baf4ed",
"BindingInfo": {
"TableName": "任务成员视图",
"ColumnName": "默认时薪",
"GUID": "4d44146b-7124-4f18-aa8d-17da23a4c0b3"
},
"ColumnName": "成员时薪"
},
{
"GUID": "8d8eef54-67cd-4ecd-beac-5635c6f5134e",
"BindingInfo": {
"TableName": "任务成员视图",
"ColumnName": "岗位ID",
"GUID": "faf4cb38-75c8-4741-8b38-cefcb863754d",
"RelationBinding": {
"RelatedTable": "项目岗位",
"RelatedColumn": "ID",
"DisplayColumn": "默认时薪"
}
},
"ColumnName": "岗位时薪"
},
{
"GUID": "3ccae4c3-7547-4909-8821-4bacc610fa9b",
"BindingInfo": {
"TableName": "任务成员视图",
"ColumnName": "任务成员",
"GUID": "30da9fdf-e11e-4efe-94ec-0a98cc6fff27",
"AttachType": {
"$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess",
"UserColumnAttachType": 5,
"AttachTypeTag": "默认时薪"
}
},
"ColumnName": "用户时薪"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务成员视图",
"ColumnName": "任务ID",
"GUID": "4cadf610-6894-4d43-a84b-ca682a8ebd1c"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务成员视图",
"ColumnName": "任务成员",
"GUID": "232ca578-e6be-4684-a198-81c16c892591"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=执行人"
}
}
]
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "29b01c80875b4c53b56afeb8829c0df6"
},
{
"$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": "81cfbfdb-2497-4c80-8969-4d3a0e6a8e74",
"BindingInfo": {
"TableName": "项目成员表",
"ColumnName": "岗位ID",
"GUID": "e72fecb8-c4b6-4ef0-a802-f18cb6d6ba24",
"RelationBinding": {
"RelatedTable": "项目岗位",
"RelatedColumn": "ID",
"DisplayColumn": "默认时薪"
}
},
"ColumnName": "项目岗位时薪"
},
{
"GUID": "906b9a8e-10ce-4c3c-9d1b-55de074e0938",
"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": "17f1d03afb8745f49c7c4bb15b1cb482"
},
{
"$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": "c9ed015e-b153-4a1e-90f9-f2b77fd41e7f"
},
{
"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": "02ae84f0-3eff-43e7-a7a6-3e2edc3780f9"
},
{
"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": "31512194-2720-46c4-a700-bc507e1e321c"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "计算时薪",
"ParameterValue": "0",
"ID": "671f14a1ad5949f7afcfc30d28fc477e"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "时薪计算来源",
"ParameterValue": "无时薪配置",
"ID": "eb0ba1839ebc4ec58750e971080fc72b"
}
],
"ID": "60c0485a-c34d-4729-af35-6c8a1ba45269"
}
]
}
],
"Comments": "优先使用手动指定的提成金额",
"ID": "d12bb755-e110-459f-b338-04f09e322ecd"
},
{
"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": "71c0233d-4246-4440-84ac-e996ce1ad688"
}
],
"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": "347f6c15-2879-4049-9c22-9b1fe9ac797d"
}
]
}
],
"Comments": "如果分配到人头,则判断该人总计划工时还够不够",
"ID": "4189a1c9-c394-4568-a101-a494d9410881"
},
{
"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": "0b981156-3a4e-4de7-930e-a6822be0525a"
}
]
}
],
"Comments": "如果是共用任务工时,则查看任务计划工时够不够",
"ID": "fcfde3f5-0254-416d-8ddd-0a3ab08323dc"
}
]
},
{
"$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": "935dd64c-f2b8-4028-8f0f-ce63ef2489cc"
},
{
"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": "bc661f54-29f0-4057-8a35-2ab125f2de75"
}
]
}
],
"Comments": "如果提交的工时类型等于项目工时的核定方式且开启严格模式就校验本次有没有超标",
"ID": "2feed033-ba7d-4f12-ab19-6291a2e35524"
},
{
"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": "4d2d8bc6-9ed2-4de0-b162-702afb3d01cf"
}
]
}
],
"ID": "1c07d0f0-a59d-472c-856b-77b65143d27b"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "成员不在任务内,无法报工!",
"CustomReturns": [
{
"ReturnPropertyName": "提交工时"
},
{
"ReturnPropertyName": "核定工时"
},
{
"ReturnPropertyName": "提成系数"
},
{
"ReturnPropertyName": "计算时薪"
},
{
"ReturnPropertyName": "核定收益"
},
{
"ReturnPropertyName": "时薪来源"
},
{
"ReturnPropertyName": "核定工时说明"
}
]
}
],
"ID": "b59cbb75-8ff9-4413-8ecd-2886d5a1e03c"
}
]
}
],
"ReturnProperties": [
{
"Name": "提交工时"
},
{
"Name": "核定工时"
},
{
"Name": "提成系数"
},
{
"Name": "计算时薪"
},
{
"Name": "核定收益"
},
{
"Name": "时薪来源"
},
{
"Name": "核定工时说明"
}
]
}