{"Message":"修改工时表,将人员ID绑定到成员表","MessageType":2,"Modules":[{"State":1,"Type":7,"Name":"Table/项目表"},{"State":1,"Type":1,"Name":"PCPage/项目列表"},{"State":1,"Type":1,"Name":"PCPage/项目标题"},{"State":1,"Type":7,"Name":"Table/任务工时表"},{"State":1,"Type":1,"Name":"PCPage/工时详情"},{"State":1,"Type":1,"Name":"PCPage/新增报工"},{"State":1,"Type":15,"Name":"ServerCommand/新增工时"},{"State":2,"Type":15,"Name":"ServerCommand/删除指定人员工时"},{"State":1,"Type":1,"Name":"PCPage/修改报工"},{"State":1,"Type":15,"Name":"ServerCommand/修改工时"},{"State":2,"Type":1,"Name":"PCPage/新增项目"},{"State":3,"Type":1,"Name":"PCPage/项目信息"},{"State":3,"Type":15,"Name":"ServerCommand/删除任务成员所有工时"},{"State":3,"Type":15,"Name":"ServerCommand/移除任务成员"}],"Version":"v1"}
This commit is contained in:
153
ServerCommands/任务/移除任务成员.json
Normal file
153
ServerCommands/任务/移除任务成员.json
Normal file
@@ -0,0 +1,153 @@
|
||||
{
|
||||
"Name": "移除任务成员",
|
||||
"Enabled": true,
|
||||
"Triggers": [
|
||||
{
|
||||
"$type": "Forguncy.ServerCommands.Models.PostRequestTrigger, 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
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "成员用户名",
|
||||
"DataValidationInfo": {
|
||||
"IgnoreBlank": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Commands": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "报工数量",
|
||||
"TableValue": {
|
||||
"TableName": "任务工时表",
|
||||
"TableValueType": 3,
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||||
"SubConditions": [
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "任务ID",
|
||||
"GUID": "5fb317c6-8101-48cd-893d-2758d549729f"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务ID"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "执行人",
|
||||
"GUID": "0a8199b6-268c-4a4e-87da-1c4bd4dbf6ea"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=成员用户名"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0
|
||||
},
|
||||
"ID": "795cb7cd430945c68dbd04d92fbf1bf4"
|
||||
},
|
||||
{
|
||||
"$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": "0"
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "任务成员表",
|
||||
"UpdateType": "delete",
|
||||
"ShowConfirm": true,
|
||||
"ConfirmText": "您确定要删除吗?",
|
||||
"RowsToUpdate": 1,
|
||||
"RowsToUpdateCondition": {
|
||||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||||
"SubConditions": [
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务成员表",
|
||||
"ColumnName": "任务ID",
|
||||
"GUID": "00ffba4f-9904-4623-bd2e-206d3b8d3614"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务ID"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务成员表",
|
||||
"ColumnName": "参与人",
|
||||
"GUID": "d107675e-70ed-47fd-b145-f99afe00253c"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=成员用户名"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "移除成功"
|
||||
}
|
||||
],
|
||||
"ID": "b54a97c5-6bad-4d9f-b704-8a73e3ce8cbd"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": "该成员存在报工记录,无法移除!"
|
||||
}
|
||||
],
|
||||
"ID": "e0a62269-f13b-4e6d-b0e2-97a5e424162e"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -36,7 +36,7 @@
|
||||
"TestData": "2024-03-01"
|
||||
},
|
||||
{
|
||||
"Name": "新执行者",
|
||||
"Name": "成员ID",
|
||||
"DataValidationInfo": {
|
||||
"IgnoreBlank": false
|
||||
},
|
||||
@@ -75,7 +75,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "任务ID",
|
||||
"GUID": "2a0f3989-eb4c-4880-9a84-e0bb02f0ff4f"
|
||||
"GUID": "e7ac8f1b-36f9-43b7-ace8-1dd7719b9aa9"
|
||||
},
|
||||
"ColumnName": "任务ID"
|
||||
},
|
||||
@@ -83,7 +83,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "工时类型",
|
||||
"GUID": "c2159a41-2005-4c9d-9d56-6837720b58ad"
|
||||
"GUID": "35f864d9-6a77-41d4-95aa-0d19f8edbd8b"
|
||||
},
|
||||
"ColumnName": "工时类型"
|
||||
},
|
||||
@@ -91,7 +91,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "任务ID",
|
||||
"GUID": "f5c955d8-221c-4d6f-9539-688cf2226c0d",
|
||||
"GUID": "66fc6430-8f59-4f1d-a59d-9c65493210f6",
|
||||
"RelationBinding": {
|
||||
"RelatedTable": "任务表",
|
||||
"RelatedColumn": "ID",
|
||||
@@ -104,7 +104,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "任务ID",
|
||||
"GUID": "b4e60853-be38-42dc-afe4-f7952fdc738b",
|
||||
"GUID": "086151c5-f4b2-4325-82e7-8457e1eb681d",
|
||||
"RelationBinding": {
|
||||
"RelatedTable": "任务表",
|
||||
"RelatedColumn": "ID",
|
||||
@@ -124,7 +124,7 @@
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "98a8dedc-639e-4eee-b5d3-a160f03632ea"
|
||||
"GUID": "9b3d5fb4-44ad-4a4f-8d86-9e0659149b83"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -134,302 +134,111 @@
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "37d3a730e3c443e5a0faef85944856d7"
|
||||
"ID": "0b0135ff570b49d785ee52145a8d1354"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "执行者",
|
||||
"TableValue": {
|
||||
"TableName": "用户信息视图",
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "全名",
|
||||
"GUID": "8b30a356-3f3b-4b53-8eca-8ddad3d5dc6a"
|
||||
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "任务工时表",
|
||||
"UpdateType": "delete",
|
||||
"ShowConfirm": true,
|
||||
"ConfirmText": "您确定要删除吗?",
|
||||
"RowsToUpdate": 1,
|
||||
"RowsToUpdateCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "7ad7c09e-adb8-424f-86da-b50fe4b72c0f"
|
||||
},
|
||||
"ColumnName": "全名"
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "负荷",
|
||||
"GUID": "d045ab4b-5dc9-45b0-b0fd-e0820d081760"
|
||||
},
|
||||
"ColumnName": "负荷"
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=报工ID"
|
||||
}
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "用户名",
|
||||
"GUID": "4242eed5-1317-4247-85d6-487a0d28482d"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
|
||||
"ServerCommandName": "新增工时",
|
||||
"Parameters": [
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||||
"ParamName": "任务ID",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=报工信息.任务ID"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||||
"ParamName": "开始日期",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=新日期"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||||
"ParamName": "结束日期",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=新日期"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||||
"ParamName": "成员ID",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=成员ID"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||||
"ParamName": "工时数",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=新工时数"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||||
"ParamName": "进展内容",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=新进展内容"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||||
"ParamName": "工时类型",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=报工信息.工时类型"
|
||||
}
|
||||
}
|
||||
],
|
||||
"ResultErrorCodeTo": {
|
||||
"SerializeProperty": "code"
|
||||
},
|
||||
"Value": {
|
||||
"ResultMessageTo": {
|
||||
"SerializeProperty": "msg"
|
||||
},
|
||||
"RefreshAfterFinish": true,
|
||||
"CheckDataValidation": true
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=新执行者"
|
||||
}
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "831eeac58ef048508ca1b6a6d9a0f130"
|
||||
},
|
||||
{
|
||||
"$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"
|
||||
"SerializeProperty": "=code"
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "统计时长",
|
||||
"TableValue": {
|
||||
"TableName": "任务工时表",
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "总工时",
|
||||
"GUID": "37a2654f-b7c5-4e19-a9c3-6ab16b77bbe9"
|
||||
},
|
||||
"ColumnName": "总工时"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||||
"SubConditions": [
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "执行人",
|
||||
"GUID": "51191cba-1a0c-4290-b0e3-74d5138f35b9"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=新执行者"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "工时类型",
|
||||
"GUID": "fc94b9e1-c61f-4d76-9ac3-e5b0f6acc74c"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=报工信息.工时类型"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"CompareType": 1,
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "2f9dd395-014a-4ae0-8e20-756d2a7c2677"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=报工ID"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "工时日期",
|
||||
"GUID": "bdccfeef-34a2-47a2-9c3c-61f97cb0867c"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=新日期"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0
|
||||
},
|
||||
"ID": "7176cf9473f14ad8999ca17165be68a2"
|
||||
},
|
||||
{
|
||||
"$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": "计划"
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "最大负荷",
|
||||
"ParameterValue": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=IF(OR(执行者.负荷=\"\",执行者.负荷=0,执行者.负荷>24),24,执行者.负荷)"
|
||||
},
|
||||
"ID": "ba90f02dc09f480d9f6bb05a0870bf01"
|
||||
}
|
||||
],
|
||||
"ID": "75c00f0b-03b1-4105-9035-39089d210515"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "最大负荷",
|
||||
"ParameterValue": "24",
|
||||
"ID": "54da0c7bde46476c964ac90743685d76"
|
||||
}
|
||||
],
|
||||
"ID": "7393f8d1-70c2-4835-b084-6eacf76487b4"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$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": "=IF(统计时长.总工时=\"\",0,统计时长.总工时)+新工时数"
|
||||
}
|
||||
},
|
||||
"value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=最大负荷"
|
||||
},
|
||||
"compareType": 5
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "任务工时表",
|
||||
"ShowConfirm": false,
|
||||
"RowsToUpdate": 1,
|
||||
"RowsToUpdateCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "6364508b-0430-40c8-819c-5abfd9112015"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=报工ID"
|
||||
}
|
||||
},
|
||||
"UpdateBindingValues": [
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "工时日期",
|
||||
"GUID": "12979f18-64fe-4738-9040-962247aee8a5"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=新日期"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "执行人",
|
||||
"GUID": "86bb7645-a0c3-441e-9aec-238115c4ed87"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=新执行者"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "执行内容",
|
||||
"GUID": "dc82c110-eb9f-40b7-a4ba-a64d925f217e"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=新进展内容"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "工时",
|
||||
"GUID": "807fdc8e-d861-4e31-9db2-e194c40e05ee"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=新工时数"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "更新成功"
|
||||
}
|
||||
],
|
||||
"ID": "f8bb6f85-bc98-42f7-a06e-7f16bc423dc9"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"你提交的工时超过了\"&执行者.全名&\"设置的最大负荷\"&最大负荷&\"小时\""
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "1c2b1dce-073d-42a3-848e-c6ea584e5a63"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "6235168d-f1f1-4270-bee6-a6b93e27e00e"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"当前任务状态为[\"&报工信息.任务状态文本&\"],无法修改工时!\""
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "0635cab1-c78a-44cb-affb-ca9c62c0b52b"
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=msg"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"Name": "删除指定人员工时",
|
||||
"Name": "删除任务成员所有工时",
|
||||
"Enabled": true,
|
||||
"Triggers": [
|
||||
{
|
||||
@@ -42,7 +42,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "任务状态",
|
||||
"GUID": "00aa5a64-0edd-47bc-9ec1-5245376ee62c"
|
||||
"GUID": "9ea75b46-5a71-4f91-bfcb-f2e367a43a82"
|
||||
},
|
||||
"ColumnName": "任务状态"
|
||||
},
|
||||
@@ -50,7 +50,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "任务状态",
|
||||
"GUID": "7bab014d-d6c2-49af-b5da-0afae2793aa8",
|
||||
"GUID": "69dde50a-4375-47c9-9897-404ebc2fd8fe",
|
||||
"RelationBinding": {
|
||||
"RelatedTable": "任务状态",
|
||||
"RelatedColumn": "状态码",
|
||||
@@ -63,7 +63,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "任务类型",
|
||||
"GUID": "d54c81be-871c-4ba8-8706-bcc2304f6cdc"
|
||||
"GUID": "23e9d9ab-6308-49fa-b0e8-ccbed2db67a2"
|
||||
},
|
||||
"ColumnName": "任务类型"
|
||||
}
|
||||
@@ -73,7 +73,7 @@
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "827b7c28-fbc7-4d4a-a273-1c90554cb137"
|
||||
"GUID": "6dc78ef9-3bc4-4c2c-97cf-6c845d7216ee"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -83,7 +83,7 @@
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "a0c98a2d500949ac867577b3f08ccc7b"
|
||||
"ID": "74a4d3159eba48cca952216009b2a633"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
@@ -153,7 +153,7 @@
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "任务ID",
|
||||
"GUID": "8cff3e41-b713-4545-bbde-04d10c988366"
|
||||
"GUID": "a1f40291-8adf-4f2d-b2dd-a0163f820016"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -165,7 +165,7 @@
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "执行人",
|
||||
"GUID": "0611afcf-09d9-46a0-9163-e09bae749db7"
|
||||
"GUID": "5103a89d-5ee6-47e8-a46c-1cf0ac4bd453"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -181,7 +181,7 @@
|
||||
"Message": "删除成功"
|
||||
}
|
||||
],
|
||||
"ID": "bcf6dfc0-78df-49b5-a949-debefb8592f4"
|
||||
"ID": "d9b3b7bb-08f2-4f1c-a16d-b94298f5670d"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -194,7 +194,7 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "6d98122d-fb75-41a3-b1a5-bf6e995961ee"
|
||||
"ID": "5f272736-970b-41a4-8e1e-051bed40e0e4"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -43,7 +43,7 @@
|
||||
"TestData": "2024-03-10"
|
||||
},
|
||||
{
|
||||
"Name": "执行者",
|
||||
"Name": "成员ID",
|
||||
"DataValidationInfo": {
|
||||
"IgnoreBlank": false
|
||||
},
|
||||
@@ -89,7 +89,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "项目ID",
|
||||
"GUID": "36a0694f-32c4-4a5d-86b1-da1a65563db3"
|
||||
"GUID": "d6b6824a-a3d5-44d3-bef2-34b3561cbe6a"
|
||||
},
|
||||
"ColumnName": "项目ID"
|
||||
},
|
||||
@@ -97,7 +97,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "任务状态",
|
||||
"GUID": "cbe473f3-ee2b-4642-aec2-84ec97ef77e4"
|
||||
"GUID": "be3c9952-34a3-4915-97ac-340dca60f67a"
|
||||
},
|
||||
"ColumnName": "任务状态"
|
||||
},
|
||||
@@ -105,7 +105,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "任务状态",
|
||||
"GUID": "12dcebf1-d5e1-4a05-b259-3628d2003f9b",
|
||||
"GUID": "89014ca0-175a-4817-9b63-9d1d819f777a",
|
||||
"RelationBinding": {
|
||||
"RelatedTable": "任务状态",
|
||||
"RelatedColumn": "状态码",
|
||||
@@ -114,24 +114,11 @@
|
||||
},
|
||||
"ColumnName": "任务状态文本"
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "执行者",
|
||||
"GUID": "c2b0ef94-b9ac-45d8-875b-56579f08b417",
|
||||
"AttachType": {
|
||||
"$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess",
|
||||
"UserColumnAttachType": 5,
|
||||
"AttachTypeTag": "负荷"
|
||||
}
|
||||
},
|
||||
"ColumnName": "执行者负荷"
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "项目ID",
|
||||
"GUID": "58da35e6-75ed-4ace-9b10-28dedc13ed08",
|
||||
"GUID": "3b56f3a2-20fc-47ea-bc61-2de38614800a",
|
||||
"RelationBinding": {
|
||||
"RelatedTable": "项目表",
|
||||
"RelatedColumn": "ID",
|
||||
@@ -144,7 +131,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "项目ID",
|
||||
"GUID": "f363707a-74b8-46a4-935c-ea52eeae0aab",
|
||||
"GUID": "8b21bb41-cba8-4063-bce6-654ce97c4208",
|
||||
"RelationBinding": {
|
||||
"RelatedTable": "项目表",
|
||||
"RelatedColumn": "ID",
|
||||
@@ -152,6 +139,32 @@
|
||||
}
|
||||
},
|
||||
"ColumnName": "项目预算工时"
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "项目ID",
|
||||
"GUID": "b3370de2-8e76-453c-956c-66ee0e4fbf16",
|
||||
"RelationBinding": {
|
||||
"RelatedTable": "项目表",
|
||||
"RelatedColumn": "ID",
|
||||
"DisplayColumn": "项目预算费用"
|
||||
}
|
||||
},
|
||||
"ColumnName": "项目预算费用"
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "项目ID",
|
||||
"GUID": "19d450ec-d2ee-4640-b4f5-0cb10cd2d797",
|
||||
"RelationBinding": {
|
||||
"RelatedTable": "项目表",
|
||||
"RelatedColumn": "ID",
|
||||
"DisplayColumn": "默认工时核定方式"
|
||||
}
|
||||
},
|
||||
"ColumnName": "默认工时核定方式"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
@@ -159,7 +172,7 @@
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "a411452d-d49e-4d87-aea9-ffe528a11127"
|
||||
"GUID": "54cd58a8-21ad-4171-91d5-3b122e25bcf1"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -169,7 +182,53 @@
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "2adb2826506a4367a08cea1a22dc2c88"
|
||||
"ID": "da510110eedd4b1b9707dfd37852471a"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "任务成员",
|
||||
"TableValue": {
|
||||
"TableName": "任务成员表",
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "任务成员表",
|
||||
"ColumnName": "参与人",
|
||||
"GUID": "9a5e191a-1702-4e0e-9aa3-9bde3875efe8"
|
||||
},
|
||||
"ColumnName": "参与人"
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "任务成员表",
|
||||
"ColumnName": "参与人",
|
||||
"GUID": "fbd6dea1-5ca9-47ff-96eb-b9940b927304",
|
||||
"AttachType": {
|
||||
"$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess",
|
||||
"UserColumnAttachType": 5,
|
||||
"AttachTypeTag": "负荷"
|
||||
}
|
||||
},
|
||||
"ColumnName": "参与人负荷"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务成员表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "6efd1b18-859e-4ec6-a731-bf8fd9bcfe02"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=成员ID"
|
||||
}
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "5392853d39164a9eb658391557796b84"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
@@ -203,52 +262,6 @@
|
||||
"value": "1"
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "总计划工时",
|
||||
"TableValue": {
|
||||
"TableName": "任务工时表",
|
||||
"OnlyGetValue": true,
|
||||
"TableValueType": 0,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "总工时",
|
||||
"GUID": "15a53c55-5e66-4742-a71f-1fc64e017a10"
|
||||
},
|
||||
"ColumnName": "总工时"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||||
"SubConditions": [
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "64a6f2c9-8782-4c12-9164-b2636c815cc3"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务ID"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "工时类型",
|
||||
"GUID": "c97a3bc2-1392-4cb9-8eba-7965bf4b2fe0"
|
||||
},
|
||||
"Value": "计划"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"ID": "29d508af935d4c97a0aefdf509ff7f30"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
"ConditionAndCommandPairList": [
|
||||
@@ -259,31 +272,238 @@
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=总计划工时+工时数"
|
||||
"SerializeProperty": "=工时类型"
|
||||
}
|
||||
},
|
||||
"value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务信息.项目预算工时"
|
||||
},
|
||||
"compareType": 2
|
||||
"SerializeProperty": "=任务信息.默认工时核定方式"
|
||||
}
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"计划工时总时长(\"&工时数&\"h)超过项目预算工时时长(\"&任务信息.项目预算工时&\"h),请修改后提交!\""
|
||||
}
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "总计划工时",
|
||||
"TableValue": {
|
||||
"TableName": "任务工时表",
|
||||
"OnlyGetValue": true,
|
||||
"TableValueType": 0,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "总工时",
|
||||
"GUID": "ed609fb6-3202-43b6-b725-5bf94aed3446"
|
||||
},
|
||||
"ColumnName": "总工时"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||||
"SubConditions": [
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "db82b94a-603e-42c9-94fb-64b10011c044"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务ID"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "工时类型",
|
||||
"GUID": "8ea1007d-e0f2-4a14-98d2-8dbbbf6037cf"
|
||||
},
|
||||
"Value": "计划"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"ID": "8a326bb3f5e14ad4a1d0f195ba26c5f6",
|
||||
"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.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"计划工时总时长(\"&工时数&\"h)超过项目预算工时时长(\"&任务信息.项目预算工时&\"h),请修改后提交!\""
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "c5c7aac0-dd9d-4706-8ee4-c005ce24d766"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "计划消耗列表",
|
||||
"TableValue": {
|
||||
"TableName": "任务工时表",
|
||||
"BindingInfos": [
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "成员ID",
|
||||
"GUID": "e2865898-e911-4984-af03-a632533958f1",
|
||||
"RelationBinding": {
|
||||
"RelatedTable": "任务成员表",
|
||||
"RelatedColumn": "ID",
|
||||
"DisplayColumn": "参与人"
|
||||
}
|
||||
},
|
||||
"ColumnName": "参与人"
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "成员ID",
|
||||
"GUID": "de51f79d-6019-4e75-8385-023cc8e19249",
|
||||
"RelationBinding": {
|
||||
"RelatedTable": "任务成员表",
|
||||
"RelatedColumn": "ID",
|
||||
"DisplayColumn": "任务时薪"
|
||||
}
|
||||
},
|
||||
"ColumnName": "任务时薪"
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "总工时",
|
||||
"GUID": "6462a6b8-bb0b-41c9-8483-7a006ffbc538"
|
||||
},
|
||||
"ColumnName": "总工时"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||||
"SubConditions": [
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "56e375d1-b201-4b44-9aac-2621262c6e29"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务ID"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "工时类型",
|
||||
"GUID": "9021677f-d0bd-48a5-8462-cefd2ff6e02a"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=IF(任务信息.默认工时核定方式=1,\"计划\",\"实际\")"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"ID": "df6f78761b1249f78144e101115282e7",
|
||||
"Comments": "检查预算是否超支"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "总消耗金额",
|
||||
"ParameterValue": "0",
|
||||
"ID": "3443b1c570584aaea455f4f7fb79eed1"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
|
||||
"LoopInfo": {
|
||||
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
|
||||
"LoopCount": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=计划消耗列表"
|
||||
},
|
||||
"LoopItemParamName": "Item"
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "总消耗金额",
|
||||
"ParameterValue": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=总消耗金额+(Item.任务时薪*Item.总工时)"
|
||||
},
|
||||
"ID": "504fbfc09a2b4656b4bbcc9f38604960"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$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": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"计划工时总预算超过项目预算金额(\"&任务信息.项目预算费用&\"元),请修改后提交!\""
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "47bf4734-aece-421e-b41a-a6d0eff5fc1a"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "6f1e3391-cb31-4999-b19c-5f912adb6a29"
|
||||
"Comments": "如果提交的工时类型等于项目工时的核定方式",
|
||||
"ID": "1534bc82-d82f-4186-967d-c3bac1031f0c"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "d755b8c1-d2ad-42d9-9d93-41bd67b58c39"
|
||||
"ID": "404ab964-9c86-46e2-bdf4-9366a7d6f2f3"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -294,7 +514,7 @@
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=工时数"
|
||||
},
|
||||
"ID": "5b24b76c69a14a0d9031135d1f8e11ce"
|
||||
"ID": "181e4cf6c6f14d98b7bbad5f1a76839c"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
@@ -303,7 +523,7 @@
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=DATEDIF(开始日期,结束日期,\"d\")+1"
|
||||
},
|
||||
"ID": "09b4f9a0f25c48edb56edcf77966ebee"
|
||||
"ID": "eb8e1b79731e4e8f91be8550ffa3e68b"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
|
||||
@@ -327,7 +547,7 @@
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=开始日期+(index-1)"
|
||||
},
|
||||
"ID": "261d1560d2d04104b760349265aa9212"
|
||||
"ID": "b9b5ba8e100b4e46940ad640cdb69a1a"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
@@ -340,7 +560,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "总工时",
|
||||
"GUID": "39d3e8c6-b36b-4ac5-9b53-203e4f6a1c7d"
|
||||
"GUID": "f911f362-c418-4e69-9cf9-a54058b9ba65"
|
||||
},
|
||||
"ColumnName": "总工时"
|
||||
}
|
||||
@@ -353,7 +573,7 @@
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "工时日期",
|
||||
"GUID": "36e54b34-5a5a-4543-9abb-2c8602bc1d72"
|
||||
"GUID": "3c3ddeda-accd-4fa6-bfcc-3a7ec1211ada"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -365,11 +585,11 @@
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "执行人",
|
||||
"GUID": "bdd49d3f-eb98-4fc6-baee-8352828d50c7"
|
||||
"GUID": "5cd28f80-f30d-405a-a8a9-5a055ce78348"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=执行者"
|
||||
"SerializeProperty": "=成员ID"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -377,7 +597,7 @@
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "工时类型",
|
||||
"GUID": "619d9834-f4b6-430a-9ba8-2b32fcd82df4"
|
||||
"GUID": "9da43b76-13c1-4475-85f7-b3d3f21a7969"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -388,7 +608,7 @@
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0
|
||||
},
|
||||
"ID": "05785ad08042483fb9e59d05853898aa"
|
||||
"ID": "0c1eccf143b14acbab9d4f4a3e3851b6"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
@@ -417,10 +637,10 @@
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=ROUNDUP(工时数/分配天数,1)"
|
||||
},
|
||||
"ID": "727872ced2d14737b0da0bbf25b79bca"
|
||||
"ID": "740a550bb158456e8be9a90f65ca36c3"
|
||||
}
|
||||
],
|
||||
"ID": "d075d749-01ed-4381-a0b9-415105afb341"
|
||||
"ID": "302c7551-ea18-47fe-bb85-aa7b43c3a752"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -431,10 +651,10 @@
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=待分配工时"
|
||||
},
|
||||
"ID": "7c9e9ffb15eb431aa10c0ee6fabd7454"
|
||||
"ID": "fc07533dafce4f5aaeaa7eaf961939f1"
|
||||
}
|
||||
],
|
||||
"ID": "9c71d8e3-9dca-4bcb-9b6e-64125790b6bb"
|
||||
"ID": "63594e0b-c901-480e-a2d0-d03a28a78dea"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -459,12 +679,12 @@
|
||||
"ParameterName": "执行人负荷",
|
||||
"ParameterValue": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=IF(OR(任务信息.执行者负荷=\"\",任务信息.执行者负荷=0,任务信息.执行者负荷>24),24,任务信息.执行者负荷)"
|
||||
"SerializeProperty": "=IF(OR(任务成员.参与人负荷=\"\",任务成员.参与人负荷=0,任务成员.参与人负荷>24),24,任务成员.参与人负荷)"
|
||||
},
|
||||
"ID": "2fc4fb1e599245bdb1e65648e14ad3bd"
|
||||
"ID": "1e53b7b9e8a04c129e342b45e3c47d54"
|
||||
}
|
||||
],
|
||||
"ID": "2a778196-c88a-4c80-a0e9-c928865f4c2e"
|
||||
"ID": "d352a4cd-8204-42d0-80f3-e831bf67125f"
|
||||
},
|
||||
{
|
||||
"Condition": {
|
||||
@@ -483,10 +703,10 @@
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "执行人负荷",
|
||||
"ParameterValue": "24",
|
||||
"ID": "d87617ab7b214ad481ebe98958a76552"
|
||||
"ID": "0f3ac37afb4749209bea30938a910663"
|
||||
}
|
||||
],
|
||||
"ID": "8335a6a7-bc0e-4811-ad71-1508ae57643f"
|
||||
"ID": "be05c5f0-f7c5-4d3f-aa3e-3d82e74bea92"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -497,7 +717,7 @@
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=IF(统计工时.总工时=\"\",0,统计工时.总工时)+计算本次分配工时"
|
||||
},
|
||||
"ID": "ee940c0f58de4d6480c109b32ec635a2"
|
||||
"ID": "98fea5cb661f497bb382b80dde04f07c"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
@@ -526,7 +746,7 @@
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=ROUNDUP(待分配工时-计算本次分配工时,1)"
|
||||
},
|
||||
"ID": "10b16e8c91154affa858f537a7595469"
|
||||
"ID": "b9eea0e94cf94ac488b37d8dcdf5edaa"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
@@ -534,11 +754,22 @@
|
||||
"UpdateType": "add",
|
||||
"ShowConfirm": false,
|
||||
"UpdateBindingValues": [
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "成员ID",
|
||||
"GUID": "b6d5eb08-a115-4f80-9d9e-fa5b7423f967"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=成员ID"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "项目ID",
|
||||
"GUID": "48483244-a5f1-467f-9f33-213ccbf0765c"
|
||||
"GUID": "aed1cf5e-031c-4368-a844-878a85358b4e"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -549,7 +780,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "任务ID",
|
||||
"GUID": "a81043f5-58b2-4d28-ba59-2386b7b98e45"
|
||||
"GUID": "3aba7d32-b856-4517-9cf0-7b47a686cbe0"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -560,7 +791,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "工时日期",
|
||||
"GUID": "0ac58b66-e8c3-44ec-895a-2dd40d1438bb"
|
||||
"GUID": "08a8a09b-0eb6-448c-ade1-ff8fd2a81e20"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -571,7 +802,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "工时类型",
|
||||
"GUID": "0aebba8e-fef3-4471-a0b6-428a290ada8d"
|
||||
"GUID": "8bba0c26-5b4c-491a-8791-b278aca28a67"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -582,18 +813,18 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "执行人",
|
||||
"GUID": "489ed3df-150c-47ad-87c0-914630d2ca63"
|
||||
"GUID": "1e35b016-8e3f-46ee-92c9-71e0ee277d69"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=执行者"
|
||||
"SerializeProperty": "=任务成员.参与人"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "执行内容",
|
||||
"GUID": "806dfe71-8ceb-437d-ab2c-5b4d79adc391"
|
||||
"GUID": "d4f76905-219c-43b0-888f-2bfee023a802"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -604,7 +835,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "任务工时表",
|
||||
"ColumnName": "工时",
|
||||
"GUID": "599e9d1f-aa89-4865-8062-de9a823bb900"
|
||||
"GUID": "f9998452-573f-4e93-9444-76d1a69dc894"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -614,7 +845,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "a819aec2-a9ec-45c1-ae74-432af31c0025"
|
||||
"ID": "6553c41b-585c-45e3-ae30-fde01272f2b1"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -627,7 +858,7 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "eebdd38f-929c-484b-9027-8660567f77c3"
|
||||
"ID": "d73b9976-948d-4d5b-bba9-12310d0a4494"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -641,7 +872,7 @@
|
||||
"Message": "提交工时成功"
|
||||
}
|
||||
],
|
||||
"ID": "eb9e9b05-5af5-4929-9a34-fb3d4698f293"
|
||||
"ID": "5a018d8e-9938-45df-857d-2b9bdb6ffff5"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -654,7 +885,7 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "9b060da7-032d-4f17-b3c9-6fc88a586731"
|
||||
"ID": "e858b937-99d5-4d7a-b2e8-1feb8a808a8d"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user