{"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:
SHAMUSPC\NINGMEI
2024-03-02 17:06:17 +08:00
parent 2e407672cb
commit 5eb41831ef
13 changed files with 1076 additions and 743 deletions

View File

@@ -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"
}
}
]
}