1465 lines
85 KiB
JSON
1465 lines
85 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": "cabad98b-ef1b-4e76-999f-b68119a2a4b7",
|
||
"BindingInfo": {
|
||
"TableName": "任务表",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "1b1dfe53-8569-419b-9ac7-4bb4e54e5cb3"
|
||
},
|
||
"ColumnName": "项目ID"
|
||
},
|
||
{
|
||
"GUID": "e9d734f3-ba72-457f-823a-b759f3d44180",
|
||
"BindingInfo": {
|
||
"TableName": "任务表",
|
||
"ColumnName": "任务名称",
|
||
"GUID": "2f0ff2cf-b0cf-49ba-99c2-9b8636152c54"
|
||
},
|
||
"ColumnName": "任务名称"
|
||
},
|
||
{
|
||
"GUID": "1a557622-4400-4489-b44b-1aded94ed806",
|
||
"BindingInfo": {
|
||
"TableName": "任务表",
|
||
"ColumnName": "任务预算工时",
|
||
"GUID": "503e9dd2-fc8c-4426-a37f-c7d582c9577a"
|
||
},
|
||
"ColumnName": "任务预算工时"
|
||
},
|
||
{
|
||
"GUID": "cc2185c2-cd98-4974-ae9e-ea5c57971a99",
|
||
"BindingInfo": {
|
||
"TableName": "任务表",
|
||
"ColumnName": "任务状态",
|
||
"GUID": "93ff9848-29c1-4cf6-a3cd-d33eb1d033c4"
|
||
},
|
||
"ColumnName": "任务状态"
|
||
},
|
||
{
|
||
"GUID": "f509ce2c-1e2d-4963-b0cb-13c0ffd8fc3d",
|
||
"BindingInfo": {
|
||
"TableName": "任务表",
|
||
"ColumnName": "任务状态",
|
||
"GUID": "da675aa2-3619-422b-817f-eed8c7c118c7",
|
||
"RelationBinding": {
|
||
"RelatedTable": "任务状态",
|
||
"RelatedColumn": "状态码",
|
||
"DisplayColumn": "任务状态"
|
||
}
|
||
},
|
||
"ColumnName": "任务状态文本"
|
||
},
|
||
{
|
||
"GUID": "d8548ddc-a298-4a77-851f-59ca4b8ca122",
|
||
"BindingInfo": {
|
||
"TableName": "任务表",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "038a41fb-93fa-46f8-b259-87eb94cc28ad",
|
||
"RelationBinding": {
|
||
"RelatedTable": "项目表",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "严格模式"
|
||
}
|
||
},
|
||
"ColumnName": "严格模式"
|
||
},
|
||
{
|
||
"GUID": "f33b2575-7064-4c8d-afcf-2a55fdf57fdc",
|
||
"BindingInfo": {
|
||
"TableName": "任务表",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "f4212e88-f2aa-4d8f-8ba8-b7c518505bb7",
|
||
"RelationBinding": {
|
||
"RelatedTable": "项目表",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "项目预算工时"
|
||
}
|
||
},
|
||
"ColumnName": "项目预算工时"
|
||
},
|
||
{
|
||
"GUID": "8683a659-1cf5-4009-af5d-383e06d05265",
|
||
"BindingInfo": {
|
||
"TableName": "任务表",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "31040160-fc88-459c-b67b-8621acbc0920",
|
||
"RelationBinding": {
|
||
"RelatedTable": "项目表",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "项目预算费用"
|
||
}
|
||
},
|
||
"ColumnName": "项目预算费用"
|
||
},
|
||
{
|
||
"GUID": "fec08861-72aa-49a0-9742-ba2ca1cf396d",
|
||
"BindingInfo": {
|
||
"TableName": "任务表",
|
||
"ColumnName": "任务类型",
|
||
"GUID": "f6fb60c7-0ba6-450b-9cda-28eb2412e296",
|
||
"RelationBinding": {
|
||
"RelatedTable": "任务类型",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "提成系数"
|
||
}
|
||
},
|
||
"ColumnName": "提成系数"
|
||
},
|
||
{
|
||
"GUID": "9668ae09-d02d-43cb-a9c7-0c092ae75031",
|
||
"BindingInfo": {
|
||
"TableName": "任务表",
|
||
"ColumnName": "总计划工时",
|
||
"GUID": "4bdf7858-40b1-495e-be0d-109aaaf4f69f"
|
||
},
|
||
"ColumnName": "总计划工时"
|
||
},
|
||
{
|
||
"GUID": "3f03767b-9ae4-4da3-b8a6-700f2b5bb4d6",
|
||
"BindingInfo": {
|
||
"TableName": "任务表",
|
||
"ColumnName": "总实际工时",
|
||
"GUID": "8505a216-3aee-4056-affe-6c760e35c844"
|
||
},
|
||
"ColumnName": "总实际工时"
|
||
},
|
||
{
|
||
"GUID": "3f6cdcdc-be33-40e1-9e7c-c5c3ba97c19a",
|
||
"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": "6883e7e943054fcb952797447c8e0ec0"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "任务成员",
|
||
"TableValue": {
|
||
"TableName": "任务成员表",
|
||
"TableValueType": 1,
|
||
"BindingInfos": [
|
||
{
|
||
"GUID": "1c6eb04d-0078-498d-8e95-adb98c5ebf30",
|
||
"BindingInfo": {
|
||
"TableName": "任务成员表",
|
||
"ColumnName": "参与人",
|
||
"GUID": "20d5971e-0ac3-4236-9e5f-0e67e2034b35"
|
||
},
|
||
"ColumnName": "参与人"
|
||
},
|
||
{
|
||
"GUID": "d27c93e7-7447-43c4-ad17-bf382a673e8a",
|
||
"BindingInfo": {
|
||
"TableName": "任务成员表",
|
||
"ColumnName": "参与人",
|
||
"GUID": "671ec8a8-ebc7-42d3-8fda-f2686d841ead",
|
||
"AttachType": {
|
||
"$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess",
|
||
"UserColumnAttachType": 1
|
||
}
|
||
},
|
||
"ColumnName": "参与人_全名"
|
||
},
|
||
{
|
||
"GUID": "2b54f293-e5ce-4964-817b-14a9ce130722",
|
||
"BindingInfo": {
|
||
"TableName": "任务成员表",
|
||
"ColumnName": "参与人",
|
||
"GUID": "b0fb9e47-ca43-45d0-bb54-cf7ac8edce15",
|
||
"AttachType": {
|
||
"$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess",
|
||
"UserColumnAttachType": 5,
|
||
"AttachTypeTag": "负荷"
|
||
}
|
||
},
|
||
"ColumnName": "参与人负荷"
|
||
},
|
||
{
|
||
"GUID": "2e920440-3a0c-4850-a901-095d8b65e7db",
|
||
"BindingInfo": {
|
||
"TableName": "任务成员表",
|
||
"ColumnName": "项目成员ID",
|
||
"GUID": "ab7cb84d-53aa-4ef4-9480-9dcf6c0081a1",
|
||
"RelationBinding": {
|
||
"RelatedTable": "项目成员表",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "默认时薪"
|
||
}
|
||
},
|
||
"ColumnName": "成员时薪"
|
||
},
|
||
{
|
||
"GUID": "2239c361-974c-4317-b500-e1a64967a954",
|
||
"BindingInfo": {
|
||
"TableName": "任务成员表",
|
||
"ColumnName": "项目成员ID",
|
||
"GUID": "5235f7aa-0a63-4bd3-8c41-f3a32d4c3a93",
|
||
"RelationBinding": {
|
||
"RelatedTable": "项目成员表",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "岗位ID",
|
||
"NextRelationBinding": {
|
||
"RelatedTable": "项目岗位",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "默认时薪"
|
||
}
|
||
}
|
||
},
|
||
"ColumnName": "岗位时薪"
|
||
},
|
||
{
|
||
"GUID": "9d654b30-786b-4428-8a29-5786f463e166",
|
||
"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": "1ab181f991f64209b8ebdc65eeff793a"
|
||
},
|
||
{
|
||
"$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": "项目成员",
|
||
"TableValue": {
|
||
"TableName": "项目成员表",
|
||
"TableValueType": 1,
|
||
"BindingInfos": [
|
||
{
|
||
"GUID": "9e4bec10-095c-4c5a-8c11-5a2f91a616e6",
|
||
"BindingInfo": {
|
||
"TableName": "项目成员表",
|
||
"ColumnName": "岗位ID",
|
||
"GUID": "e72fecb8-c4b6-4ef0-a802-f18cb6d6ba24",
|
||
"RelationBinding": {
|
||
"RelatedTable": "项目岗位",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "默认时薪"
|
||
}
|
||
},
|
||
"ColumnName": "项目岗位时薪"
|
||
},
|
||
{
|
||
"GUID": "f807a441-5307-4e91-bc3c-f5535a2e1ded",
|
||
"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": "8615b1487f3b4d1984fe1bac333cfc4d"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "提成系数",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=任务信息.提成系数"
|
||
},
|
||
"ID": "a2a37ae37d2d43eaa84993dec74c3f4c"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "核定工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=工时数"
|
||
},
|
||
"ID": "01d0003c29094ae09dd6e64261457190"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "分配天数",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=DATEDIF(开始日期,结束日期,\"d\")+1"
|
||
},
|
||
"ID": "1a72d8ca4a354a8d8992803bb66b4b8b"
|
||
},
|
||
{
|
||
"$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": "%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": "56f41feae78644538740e4decb69dcb3"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "时薪计算来源",
|
||
"ParameterValue": "成员时薪",
|
||
"ID": "28b125968e3844eda1f09f76838c2c19"
|
||
}
|
||
],
|
||
"Comments": "项目成员设置的时薪",
|
||
"ID": "e71868ab-bd99-4dc3-897f-1268ecd3e4d6"
|
||
},
|
||
{
|
||
"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": "b103c2acb94742d88008cf0f5c4c2db4"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "时薪计算来源",
|
||
"ParameterValue": "项目岗位时薪",
|
||
"ID": "e263768b10ee4715ab66e9725711e534"
|
||
}
|
||
],
|
||
"Comments": "项目岗位设置的时薪",
|
||
"ID": "cd4d1897-8bd9-492d-95bd-7a537b29cd94"
|
||
},
|
||
{
|
||
"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": "f7dc4bc4ab82417fa9ed1963c9f0743d"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "时薪计算来源",
|
||
"ParameterValue": "用户默认时薪",
|
||
"ID": "668d22dbb45f42dd80ac5280ce47cd45"
|
||
}
|
||
],
|
||
"Comments": "成员用户的默认时薪",
|
||
"ID": "7af79ed1-0eb5-42ce-a08a-2a4cd7790be3"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "计算时薪",
|
||
"ParameterValue": "0",
|
||
"ID": "e73439064fe242b393722307862923d9"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "时薪计算来源",
|
||
"ParameterValue": "无时薪配置",
|
||
"ID": "2cc6d0a7b823423692a8d09e528f56e7"
|
||
}
|
||
],
|
||
"ID": "3395e1a6-9974-4783-98c2-0ed35186ff06"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"Comments": "优先使用手动指定的提成金额",
|
||
"ID": "b8a0a6bb-46ed-4d08-a703-a76ec7893e33"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "计算时薪",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=指定时薪单价"
|
||
},
|
||
"ID": "0c71d002bf8b487e8d5fc68160f1c319"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "时薪计算来源",
|
||
"ParameterValue": "特殊指定",
|
||
"ID": "33c8559bb723411da60fd2e561aba45d"
|
||
}
|
||
],
|
||
"ID": "146c8731-243e-480c-8505-9cf8db549889"
|
||
}
|
||
],
|
||
"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": "f2db1fa6-1f7d-4dfa-939c-5f999254c14c",
|
||
"BindingInfo": {
|
||
"TableName": "View_任务工时统计",
|
||
"ColumnName": "任务ID",
|
||
"GUID": "976cf4f1-2ec3-4537-8ca8-aac1d965131e"
|
||
},
|
||
"ColumnName": "任务ID"
|
||
},
|
||
{
|
||
"GUID": "cdbb978e-7b94-4057-820b-3cf3201bc0d0",
|
||
"BindingInfo": {
|
||
"TableName": "View_任务工时统计",
|
||
"ColumnName": "总计划工时",
|
||
"GUID": "37b1cd46-749c-4870-9e65-639974e237b4"
|
||
},
|
||
"ColumnName": "总计划工时"
|
||
},
|
||
{
|
||
"GUID": "57c0c0df-9a9f-47b9-afd7-1b920bb5804c",
|
||
"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": "444448ced15144b89cec94c324bb4462",
|
||
"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": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=工时数"
|
||
},
|
||
"compareType": 4
|
||
},
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "提成系数",
|
||
"ParameterValue": "0",
|
||
"ID": "c9dca283a799483cb79dea9de241b4ef"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "核定工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=个人工时情况.总计划工时-个人工时情况.总实际工时"
|
||
},
|
||
"ID": "14b8c2e87b96446f9a5f665fc75a2db5"
|
||
}
|
||
],
|
||
"Comments": "先检查个人工时余额够不够,如果不够,直接提成为0",
|
||
"ID": "1d89ce1f-aa58-4b48-85ae-b77a3e9344e7"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"Comments": "如果分配到人头,则判断该人总计划工时还够不够",
|
||
"ID": "f86ddf49-59a7-43cb-a3ed-524ca7bb1cb3"
|
||
},
|
||
{
|
||
"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": "1895c2f1-08aa-40f7-b680-5b9ae0f86335",
|
||
"BindingInfo": {
|
||
"TableName": "View_任务工时统计",
|
||
"ColumnName": "任务ID",
|
||
"GUID": "976cf4f1-2ec3-4537-8ca8-aac1d965131e"
|
||
},
|
||
"ColumnName": "任务ID"
|
||
},
|
||
{
|
||
"GUID": "fef46176-59e2-4484-88d7-962b94405f49",
|
||
"BindingInfo": {
|
||
"TableName": "View_任务工时统计",
|
||
"ColumnName": "总计划工时",
|
||
"GUID": "37b1cd46-749c-4870-9e65-639974e237b4"
|
||
},
|
||
"ColumnName": "总计划工时"
|
||
},
|
||
{
|
||
"GUID": "75ee631a-2878-4dbe-b9a3-3b7e53229956",
|
||
"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": "a23e3a6e89904ac8bea064d536514a50",
|
||
"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": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=任务工时情况.总计划工时"
|
||
},
|
||
"compareType": 2
|
||
},
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "提成系数",
|
||
"ParameterValue": "1",
|
||
"ID": "cf6d51b5888145e496e49f2588883112"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "核定工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=任务工时情况.总计划工时-任务工时情况.总实际工时"
|
||
},
|
||
"ID": "64c79293a58c4332a6ab84d956a1524b"
|
||
}
|
||
],
|
||
"Comments": "先检查个人工时余额够不够,如果不够,直接提成为0",
|
||
"ID": "7120bd49-5672-45f4-ae00-42673dd1961c"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"Comments": "如果是共用任务工时,则查看任务计划工时够不够",
|
||
"ID": "e78ff3a3-7210-4f29-a251-ebfce76df650"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "项目统计信息",
|
||
"TableValue": {
|
||
"TableName": "View_项目统计信息",
|
||
"TableValueType": 1,
|
||
"BindingInfos": [
|
||
{
|
||
"GUID": "8314568d-c544-444c-8ea2-67056b06ada8",
|
||
"BindingInfo": {
|
||
"TableName": "View_项目统计信息",
|
||
"ColumnName": "项目预算费用",
|
||
"GUID": "1f23c586-e318-41f8-9e2c-f9fc47949199"
|
||
},
|
||
"ColumnName": "项目预算费用"
|
||
},
|
||
{
|
||
"GUID": "f17f90f8-526d-44ed-aaab-904b9a8d11a8",
|
||
"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": "54aa0a94cc96467d8def3d9040dfa058",
|
||
"Comments": "从视图统计项目的信息"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "预测本次产生成本",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=项目统计信息.总成本+(计算时薪*工时数*任务信息.提成系数)"
|
||
},
|
||
"ID": "df9bee08799c444f8a091bc840ad8606"
|
||
},
|
||
{
|
||
"$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": "该项目预算费用不足,为确保项目成本可控,请联系项目经理增加项目预算后再提交。"
|
||
}
|
||
],
|
||
"ID": "65b445d9-6178-4aeb-a091-d025d9468072"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"Comments": "如果提交的工时类型等于项目工时的核定方式且开启严格模式就校验本次有没有超标",
|
||
"ID": "cc1f75d6-e74e-42f6-a750-e3d7f0aeea8e"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "待分配工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=核定工时"
|
||
},
|
||
"ID": "45a519cbaf79430590daa0e0f12dcacf"
|
||
},
|
||
{
|
||
"$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": "56a1af3621d94e629a76af1da3b64d7e"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "统计工时",
|
||
"TableValue": {
|
||
"TableName": "View_任务工时统计",
|
||
"TableValueType": 1,
|
||
"BindingInfos": [
|
||
{
|
||
"GUID": "47478951-68f7-4831-8da9-5356c8ecb42f",
|
||
"BindingInfo": {
|
||
"TableName": "View_任务工时统计",
|
||
"ColumnName": "总计划工时",
|
||
"GUID": "5a63c0a3-e5dd-4851-b197-856a144a9466"
|
||
},
|
||
"ColumnName": "总计划工时"
|
||
},
|
||
{
|
||
"GUID": "a51dc5af-26cc-42d6-879b-1e7fd8f6ab06",
|
||
"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": "a34519403c17478d8f304509d1773d64"
|
||
},
|
||
{
|
||
"$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": "cd38f58177a44713a9fc8669babadcf4"
|
||
}
|
||
],
|
||
"ID": "cf235b74-e22c-4d89-8c5a-58def9cf7343"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "计算本次分配工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=ROUNDUP(待分配工时,1)"
|
||
},
|
||
"ID": "a247f678d3da451ba06325578f6d2856"
|
||
}
|
||
],
|
||
"ID": "9539f8f3-a286-461c-9abf-52ff4498d350"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$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": "f23a8532d2ac44b39a03c6b4021bccc7"
|
||
}
|
||
],
|
||
"Comments": "如果是按天分配,则需要检测这一天的实际工时是否超出,",
|
||
"ID": "0350d402-312d-436f-bfef-b79dbf6248c7"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "本次核定工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=计算本次分配工时"
|
||
},
|
||
"ID": "f731811eb15746a89d45814a2482eec0"
|
||
}
|
||
],
|
||
"ID": "d6b0e712-2195-408b-96b8-16c5b40ea84e"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||
"TableName": "任务工时表",
|
||
"UpdateType": "add",
|
||
"ShowConfirm": false,
|
||
"UpdateBindingValues": [
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "75c2063a-6112-43f1-b875-4c398736596b"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=任务信息.项目ID"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "任务ID",
|
||
"GUID": "b9ec0677-d4c3-43c0-953f-02cab7a958d2"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=任务ID"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "工时日期",
|
||
"GUID": "d3f1925e-dc4e-4ca5-9879-3444ef41caf7"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=当前日期"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "工时类型",
|
||
"GUID": "e8564a72-8e04-460b-ad12-9a1de6515755"
|
||
},
|
||
"Value": "实际"
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "执行人",
|
||
"GUID": "cd3d09c3-9e4e-415f-b6ec-fe482ee2696c"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=任务成员.参与人"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "执行内容",
|
||
"GUID": "5da127af-e3b2-471a-a45f-8c5fd9189683"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=进展内容"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "工时",
|
||
"GUID": "12854a68-91a0-46a7-94ef-993ec35beaa4"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=本次核定工时"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "上报工时",
|
||
"GUID": "862514a6-0d56-48ca-ab09-c1fcdd450c8c"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=计算本次分配工时"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "时薪单价",
|
||
"GUID": "2666e7c7-c66d-487a-8ca3-fd6bf682bdfb"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=计算时薪"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "提成系数",
|
||
"GUID": "dea376b0-8b4c-4aa4-90df-91612aad7950"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=提成系数"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "任务工时表",
|
||
"ColumnName": "时薪来源",
|
||
"GUID": "1cc1071a-22bb-4c4f-b9a4-f73349f9c56e"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=时薪计算来源"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "待分配工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=ROUNDUP(待分配工时-计算本次分配工时,1)"
|
||
},
|
||
"ID": "e446ff2c85514cc681efe1c72c5c0700"
|
||
}
|
||
],
|
||
"ID": "d793d796-a7ee-4f43-a55e-60b138b78fb2"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": "400",
|
||
"Message": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=\"数据不合理:报工后\"&任务成员.参与人_全名&\"在\"&TEXT(当前日期,\"yyyy年mm月dd\")&\"的实际工时会超过24小时,请修改后重新提交!\""
|
||
}
|
||
}
|
||
],
|
||
"ID": "5289e37d-df4f-4caf-85fc-8787a46e6398"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||
"TableName": "项目动态",
|
||
"UpdateType": "add",
|
||
"ShowConfirm": false,
|
||
"UpdateBindingValues": [
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "项目动态",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "a44ac880-1e37-43af-821c-b9c0a7f910d8"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=任务信息.项目ID"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "项目动态",
|
||
"ColumnName": "项目动态",
|
||
"GUID": "37cc404d-eaa5-4fb6-80bb-165d039e7bd6"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=任务成员.参与人_全名&\"在任务[\"&任务信息.任务名称&\"]中报工\"&工时数&\"小时\""
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "项目动态",
|
||
"ColumnName": "执行人",
|
||
"GUID": "33f4a668-09c6-4cd9-985a-ec2798cd6806"
|
||
},
|
||
"Value": "%CurrentUser%"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": "0",
|
||
"Message": "报工成功"
|
||
}
|
||
],
|
||
"ID": "8f5745e1-2b33-468e-9da3-54f69ac66484"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": "400",
|
||
"Message": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=\"当前任务状态为[\"&任务信息.任务状态文本&\"],无法提交工时!\""
|
||
}
|
||
}
|
||
],
|
||
"ID": "f917924c-62ca-4c7a-b3e4-7be276e5326a"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "2931d50f-844c-42a5-8ef7-738d5895c4db"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": "400",
|
||
"Message": "成员不在任务内,无法报工!"
|
||
}
|
||
],
|
||
"ID": "611b9310-8527-4a76-aa90-79bb714e104c"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
"CatchCommandPart": {
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=ExceptionCode"
|
||
},
|
||
"Message": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=ExceptionMessage"
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
]
|
||
} |