1109 lines
54 KiB
JSON
1109 lines
54 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": "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": "afc70b8a-3b5c-4dcd-9f28-c2ff688947c8",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "7a775562-0089-4f89-b487-adb6c325aae7"
|
||
},
|
||
"ColumnName": "项目ID"
|
||
},
|
||
{
|
||
"GUID": "d723118e-eb55-469f-a95c-57d943e8d224",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "任务名称",
|
||
"GUID": "82947834-93d4-4141-ae13-ac868718c9e3"
|
||
},
|
||
"ColumnName": "任务名称"
|
||
},
|
||
{
|
||
"GUID": "568fdd28-7ca7-487c-b79d-b31b9bf5c2b5",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "总分配工时",
|
||
"GUID": "5bd82d2d-ef35-4d87-8acf-e4db9c4caadf"
|
||
},
|
||
"ColumnName": "总分配工时"
|
||
},
|
||
{
|
||
"GUID": "45ccb343-6ebf-4bf7-ae9e-6e92cd71c2ef",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "任务状态",
|
||
"GUID": "8ab893d0-a983-49c5-83d4-f924307b44d8"
|
||
},
|
||
"ColumnName": "任务状态"
|
||
},
|
||
{
|
||
"GUID": "2e9cc93a-22f1-4290-b8db-57e9ce13562b",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "任务状态",
|
||
"GUID": "7dd81639-004a-4e1f-8801-bdb573d4689f",
|
||
"RelationBinding": {
|
||
"RelatedTable": "任务状态",
|
||
"RelatedColumn": "状态码",
|
||
"DisplayColumn": "任务状态"
|
||
}
|
||
},
|
||
"ColumnName": "任务状态文本"
|
||
},
|
||
{
|
||
"GUID": "6b0d9c9f-2cae-40da-acf4-60952c085338",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "e7c38242-5a9e-4a27-9f2e-e7310190db0e",
|
||
"RelationBinding": {
|
||
"RelatedTable": "项目平行视图",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "严格模式"
|
||
}
|
||
},
|
||
"ColumnName": "严格模式"
|
||
},
|
||
{
|
||
"GUID": "cca6bf37-23dc-4d69-91a8-02c3b1b472bc",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "0c95b352-574d-479b-b97d-6216b400ee70",
|
||
"RelationBinding": {
|
||
"RelatedTable": "项目平行视图",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "项目预算工时"
|
||
}
|
||
},
|
||
"ColumnName": "项目预算工时"
|
||
},
|
||
{
|
||
"GUID": "11118acb-9533-48b1-be1f-78d305cd4dfb",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "4bc603a4-f90b-4160-abf6-efd30574f3db",
|
||
"RelationBinding": {
|
||
"RelatedTable": "项目平行视图",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "项目预算费用"
|
||
}
|
||
},
|
||
"ColumnName": "项目预算费用"
|
||
},
|
||
{
|
||
"GUID": "636c6ce8-5f76-4b24-b6ab-4bec06f7686b",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "27e931f9-2c3b-4d36-9d31-f513387b9366",
|
||
"RelationBinding": {
|
||
"RelatedTable": "项目平行视图",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "工时分配方式"
|
||
}
|
||
},
|
||
"ColumnName": "工时分配方式"
|
||
},
|
||
{
|
||
"GUID": "b0e3308f-5205-4e32-99ef-38c65207a523",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "任务类型",
|
||
"GUID": "ccd2fb35-e336-4b95-a031-480e1b81d7e4",
|
||
"RelationBinding": {
|
||
"RelatedTable": "任务类型",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "提成系数"
|
||
}
|
||
},
|
||
"ColumnName": "提成系数"
|
||
},
|
||
{
|
||
"GUID": "99987fb5-2450-44cb-8973-0d68d12f6591",
|
||
"BindingInfo": {
|
||
"TableName": "任务平行视图",
|
||
"ColumnName": "可分配工时",
|
||
"GUID": "009ee24a-cbef-4445-a1c5-143dd462d4c3"
|
||
},
|
||
"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": "f717aacf32884bc1a7ee967f563a1959"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "任务成员",
|
||
"TableValue": {
|
||
"TableName": "任务成员视图",
|
||
"TableValueType": 1,
|
||
"BindingInfos": [
|
||
{
|
||
"GUID": "a5be516e-8331-4006-88c0-c5e22f067f4e",
|
||
"BindingInfo": {
|
||
"TableName": "任务成员视图",
|
||
"ColumnName": "任务成员",
|
||
"GUID": "c9f1bc1f-0740-4216-ac99-e79dd41fef88"
|
||
},
|
||
"ColumnName": "参与人"
|
||
},
|
||
{
|
||
"GUID": "c8fc8a28-48eb-4f48-b2a5-61025f73e102",
|
||
"BindingInfo": {
|
||
"TableName": "任务成员视图",
|
||
"ColumnName": "任务成员",
|
||
"GUID": "5f56fb6d-7c2e-4270-94c8-ab56bc9b6ae7",
|
||
"AttachType": {
|
||
"$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess",
|
||
"UserColumnAttachType": 1
|
||
}
|
||
},
|
||
"ColumnName": "参与人_全名"
|
||
},
|
||
{
|
||
"GUID": "76651da6-ade4-4ebe-a8e0-1011fe218cfc",
|
||
"BindingInfo": {
|
||
"TableName": "任务成员视图",
|
||
"ColumnName": "任务成员",
|
||
"GUID": "781a90fc-9c77-43ca-a831-8006774fd4da",
|
||
"AttachType": {
|
||
"$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess",
|
||
"UserColumnAttachType": 5,
|
||
"AttachTypeTag": "负荷"
|
||
}
|
||
},
|
||
"ColumnName": "参与人负荷"
|
||
},
|
||
{
|
||
"GUID": "b9a92701-8211-4ec9-9202-50162854ee19",
|
||
"BindingInfo": {
|
||
"TableName": "任务成员视图",
|
||
"ColumnName": "默认时薪",
|
||
"GUID": "4d44146b-7124-4f18-aa8d-17da23a4c0b3"
|
||
},
|
||
"ColumnName": "成员时薪"
|
||
},
|
||
{
|
||
"GUID": "372d652b-8dcc-4061-ac4d-e286baeaafaa",
|
||
"BindingInfo": {
|
||
"TableName": "任务成员视图",
|
||
"ColumnName": "岗位ID",
|
||
"GUID": "faf4cb38-75c8-4741-8b38-cefcb863754d",
|
||
"RelationBinding": {
|
||
"RelatedTable": "项目岗位",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "默认时薪"
|
||
}
|
||
},
|
||
"ColumnName": "岗位时薪"
|
||
},
|
||
{
|
||
"GUID": "c1eae37d-9de2-4f8d-ad1d-0f221210eddc",
|
||
"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": "caac35624fd348c88813516f23ecd04d"
|
||
},
|
||
{
|
||
"$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": "25360003dd544c19b8e90209180aa4ee"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "提成系数",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=任务信息.提成系数"
|
||
},
|
||
"ID": "199c55eec5134d38bbab871c06c3d4df"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "核定工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=工时数"
|
||
},
|
||
"ID": "513208670e2048768df441f7e683b0e1"
|
||
},
|
||
{
|
||
"$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": "e239398731d64f5ab4487f359a7b68d2"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "时薪计算来源",
|
||
"ParameterValue": "成员时薪",
|
||
"ID": "3495ffc5934e49b3811032b982d3be49"
|
||
}
|
||
],
|
||
"Comments": "项目成员设置的时薪",
|
||
"ID": "f3cecd58-92dc-4c45-a33a-a9be4741249d"
|
||
},
|
||
{
|
||
"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": "1c99efd220cc49e49849137de836e5b0"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "时薪计算来源",
|
||
"ParameterValue": "项目岗位时薪",
|
||
"ID": "e274eb97ae084105b74b649d06290524"
|
||
}
|
||
],
|
||
"Comments": "项目岗位设置的时薪",
|
||
"ID": "944f8103-63ef-4716-8c1b-d30b3949d535"
|
||
},
|
||
{
|
||
"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": "ae993cad96d24c45959b377a9573f78d"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "时薪计算来源",
|
||
"ParameterValue": "用户默认时薪",
|
||
"ID": "f058c2d1ef7d45dbaf239b859a434b76"
|
||
}
|
||
],
|
||
"Comments": "成员用户的默认时薪",
|
||
"ID": "dadfcb03-24f1-466a-99da-0bfdec822e05"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "计算时薪",
|
||
"ParameterValue": "0",
|
||
"ID": "7cb8676765614a4b913a540495f8dc63"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "时薪计算来源",
|
||
"ParameterValue": "无时薪配置",
|
||
"ID": "1034a8bcf12a49328a31314e519829f0"
|
||
}
|
||
],
|
||
"ID": "3df86216-2d54-4b98-a932-299d5e9e4983"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"Comments": "优先使用手动指定的提成金额",
|
||
"ID": "96797711-3589-4e4f-bfc5-aa778e4c3332"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "计算时薪",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=指定时薪单价"
|
||
},
|
||
"ID": "7d2e6e5fc0034ca387253b6ca5b1d760"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "时薪计算来源",
|
||
"ParameterValue": "特殊指定",
|
||
"ID": "c9b6eb8cb30e4eaa839a7e1e28ee50a1"
|
||
}
|
||
],
|
||
"ID": "0df29ad0-e291-4646-9ae8-86bda46ac916"
|
||
}
|
||
],
|
||
"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": "2"
|
||
},
|
||
"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": "6522ba61-80e8-414a-85dd-a350ee0740e5",
|
||
"BindingInfo": {
|
||
"TableName": "View_任务工时统计",
|
||
"ColumnName": "总计划工时",
|
||
"GUID": "37b1cd46-749c-4870-9e65-639974e237b4"
|
||
},
|
||
"ColumnName": "总计划工时"
|
||
},
|
||
{
|
||
"GUID": "3d8ba6c8-14ff-4946-8236-e584acd8c684",
|
||
"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": "=执行人"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"NullFormulaValueQueryPolicy": 0
|
||
},
|
||
"ID": "8662f7dbb85a461591528d74dbba18de",
|
||
"Comments": "从视图统计项目的信息"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "个人剩余总工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=个人工时情况.总计划工时-个人工时情况.总实际工时"
|
||
},
|
||
"ID": "6dc07a32702540ba8c1c8e67f4d7f66b"
|
||
},
|
||
{
|
||
"$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": "9d3acc4ac63a4609981e0d4c77223315"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "核定工时说明",
|
||
"ParameterValue": "个人工时余额不足,按剩余工时核定!",
|
||
"ID": "35f0050c10914815a69f515fbe6fcaae"
|
||
}
|
||
],
|
||
"Comments": "先检查个人工时余额够不够,如果不够,直接提成为0",
|
||
"ID": "f7e4ea09-ecd6-4c98-9c59-31e62151354d"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"Comments": "如果分配到人头,则判断该人总计划工时还够不够",
|
||
"ID": "e52068bc-737f-4176-aa20-d3046d94e71e"
|
||
},
|
||
{
|
||
"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.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": "=IF(任务信息.可分配工时<0,0,任务信息.可分配工时)"
|
||
},
|
||
"ID": "13f9ccabb92d4ae484ab121e41955010"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "核定工时说明",
|
||
"ParameterValue": "任务工时余额不足,按剩余工时核定!",
|
||
"ID": "5afd6a71883042c2aa9bf0919d9e3c6c"
|
||
}
|
||
],
|
||
"Comments": "先检查个人工时余额够不够,如果不够,直接提成为0",
|
||
"ID": "3e3b73a2-f093-436c-838f-750dd8525859"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"Comments": "如果是共用任务工时,则查看任务计划工时够不够",
|
||
"ID": "3f7f1f9e-bbb4-4387-a9e0-46affd2a65c7"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "项目统计信息",
|
||
"TableValue": {
|
||
"TableName": "View_项目统计信息",
|
||
"TableValueType": 1,
|
||
"BindingInfos": [
|
||
{
|
||
"GUID": "d5112f23-c686-4543-a368-36de9071418f",
|
||
"BindingInfo": {
|
||
"TableName": "View_项目统计信息",
|
||
"ColumnName": "项目预算费用",
|
||
"GUID": "1f23c586-e318-41f8-9e2c-f9fc47949199"
|
||
},
|
||
"ColumnName": "项目预算费用"
|
||
},
|
||
{
|
||
"GUID": "3cf0425f-b400-4d94-8ffb-823e77ff9805",
|
||
"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": "d27566a7c6b44b408b1ef9869716aa75",
|
||
"Comments": "从视图统计项目的信息"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "预测本次产生成本",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=计算时薪*工时数*任务信息.提成系数"
|
||
},
|
||
"ID": "29f5e69fe1814d4cb586221dec465ad3"
|
||
},
|
||
{
|
||
"$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": "875c33fc-351e-49d6-a37c-f147a04befdd"
|
||
},
|
||
{
|
||
"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": "b5cd6ccb-30ac-44fa-a9cc-e1ef62b87bd8"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "c46789d7-2412-40ee-b963-bda96df4db6e"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": "400",
|
||
"Message": "当前任务状态尚不允许报工",
|
||
"CustomReturns": [
|
||
{
|
||
"ReturnPropertyName": "提交工时"
|
||
},
|
||
{
|
||
"ReturnPropertyName": "核定工时"
|
||
},
|
||
{
|
||
"ReturnPropertyName": "提成系数"
|
||
},
|
||
{
|
||
"ReturnPropertyName": "计算时薪"
|
||
},
|
||
{
|
||
"ReturnPropertyName": "核定收益"
|
||
},
|
||
{
|
||
"ReturnPropertyName": "时薪来源"
|
||
},
|
||
{
|
||
"ReturnPropertyName": "核定工时说明"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "3bf512b4-7357-4959-9cab-f2822b771dd2"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"Comments": "如果提交的工时类型等于项目工时的核定方式且开启严格模式就校验本次有没有超标",
|
||
"ID": "13102dd0-43c7-4320-9bdc-7de0318c2b10"
|
||
},
|
||
{
|
||
"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": "670c9908-cf7f-4f63-a6a2-ee06ef589f29"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "e0654318-c53f-4e99-821e-6b0fd1177431"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": "400",
|
||
"Message": "成员不在任务内,无法报工!",
|
||
"CustomReturns": [
|
||
{
|
||
"ReturnPropertyName": "提交工时"
|
||
},
|
||
{
|
||
"ReturnPropertyName": "核定工时"
|
||
},
|
||
{
|
||
"ReturnPropertyName": "提成系数"
|
||
},
|
||
{
|
||
"ReturnPropertyName": "计算时薪"
|
||
},
|
||
{
|
||
"ReturnPropertyName": "核定收益"
|
||
},
|
||
{
|
||
"ReturnPropertyName": "时薪来源"
|
||
},
|
||
{
|
||
"ReturnPropertyName": "核定工时说明"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "281bd9ca-b9be-4f9e-b4ab-469348391773"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ReturnProperties": [
|
||
{
|
||
"Name": "提交工时"
|
||
},
|
||
{
|
||
"Name": "核定工时"
|
||
},
|
||
{
|
||
"Name": "提成系数"
|
||
},
|
||
{
|
||
"Name": "计算时薪"
|
||
},
|
||
{
|
||
"Name": "核定收益"
|
||
},
|
||
{
|
||
"Name": "时薪来源"
|
||
},
|
||
{
|
||
"Name": "核定工时说明"
|
||
}
|
||
]
|
||
} |