{"Message":"完善任务功能","MessageType":2,"Modules":[{"State":4,"Type":7,"Name":"Table/任务表"},{"State":2,"Type":7,"Name":"Table/任务版本"},{"State":4,"Type":7,"Name":"Table/任务状态"},{"State":2,"Type":7,"Name":"Table/任务分组"},{"State":1,"Type":1,"Name":"PCPage/任务列表"},{"State":1,"Type":1,"Name":"PCPage/任务首页"},{"State":1,"Type":1,"Name":"PCPage/任务-基本信息"},{"State":1,"Type":1,"Name":"PCPage/任务-任务信息"},{"State":1,"Type":1,"Name":"PCPage/任务-侧栏"},{"State":1,"Type":9,"Name":"Theme"},{"State":1,"Type":11,"Name":"UserService"},{"State":1,"Type":12,"Name":"CustomLibrary"},{"State":1,"Type":1,"Name":"PCPage/任务-子任务列表"},{"State":1,"Type":1,"Name":"PCPage/任务-关联资源"},{"State":1,"Type":1,"Name":"PCPage/任务-工时"},{"State":1,"Type":1,"Name":"PCPage/任务-进展"},{"State":4,"Type":7,"Name":"Table/任务进展"},{"State":1,"Type":7,"Name":"Table/任务工时表"},{"State":1,"Type":1,"Name":"PCPage/工时详情"},{"State":1,"Type":31,"Name":"UserControlPage/工时记录列表"},{"State":1,"Type":15,"Name":"ServerCommand/新增工时"},{"State":4,"Type":23,"Name":"TableView/子任务视图"},{"State":3,"Type":38,"Name":"Image/未选择.svg"},{"State":3,"Type":1,"Name":"PCPage/修改报工"},{"State":3,"Type":15,"Name":"ServerCommand/修改工时"},{"State":3,"Type":1,"Name":"PCPage/新增任务"},{"State":3,"Type":7,"Name":"Table/项目版本"},{"State":3,"Type":7,"Name":"Table/项目分组"},{"State":3,"Type":22,"Name":"Tables/任务"},{"State":3,"Type":20,"Name":"ServerCommands/任务"},{"State":3,"Type":15,"Name":"ServerCommand/新增任务"}],"Version":"v1"}

This commit is contained in:
SHAMUSPC\NINGMEI
2024-03-02 00:04:06 +08:00
parent b7c5beb6f1
commit 1238fed76c
32 changed files with 4374 additions and 1042 deletions

View File

@@ -0,0 +1,263 @@
{
"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": "父任务ID"
},
{
"Name": "任务标题",
"DataValidationInfo": {
"IgnoreBlank": false
}
},
{
"Name": "执行人"
},
{
"Name": "开始日期"
},
{
"Name": "结束日期"
},
{
"Name": "任务分组"
},
{
"Name": "任务类型"
},
{
"Name": "任务版本"
},
{
"Name": "参与人"
},
{
"Name": "任务说明"
},
{
"Name": "备注"
},
{
"Name": "工时核定方式",
"DataValidationInfo": {
"IgnoreBlank": false
}
}
]
}
],
"Commands": [
{
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
"TryCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "ff76b3a3-881e-4719-a83a-14d0f634497d"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "父任务ID",
"GUID": "0247aa38-8c81-4940-bc75-302de35a7c4a"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务ID"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务名称",
"GUID": "72503d5d-bc91-4c1f-be04-a8e04c7c886d"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务标题"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "执行者",
"GUID": "240a30c9-0088-4974-853b-e3c0a737b89c"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务标题"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "参与者",
"GUID": "1537acb2-7621-45ad-824a-0f04bb5cfbcb"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=参与人"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "开始时间",
"GUID": "122bed43-b1c8-4082-b4a1-8e58b9f7c7a8"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=开始日期"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "结束时间",
"GUID": "6c1281e9-205c-466d-94eb-8020781bbd91"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=结束日期"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务类型",
"GUID": "b20ec680-9479-4d02-a930-c88311d82b6c"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务类型"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "分组ID",
"GUID": "c2071865-f380-419e-9e77-20642d0121bc"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务分组"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "版本",
"GUID": "32dfbe51-6077-4e79-a99b-8ac3944b0e08"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务版本"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务说明",
"GUID": "3bb00b65-95b4-4d34-b640-98130db8a89c"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务说明"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "备注",
"GUID": "262c8ecc-2af6-456d-8f28-fd14d84d5c8d"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=备注"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "工时核定方式",
"GUID": "76825213-c1b2-43df-8521-7889a516f1f8"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=工时核定方式"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务状态",
"GUID": "663d69a6-3cb7-4362-863d-284768b26135"
},
"Value": "0"
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "新增成功"
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionCode"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
}
}
]
}
}
]
}

View File

@@ -0,0 +1,467 @@
{
"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
},
"TestData": "2"
},
{
"Name": "新日期",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "2024-03-01"
},
{
"Name": "新执行者",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "administrator"
},
{
"Name": "新工时数",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "40"
},
{
"Name": "新进展内容",
"TestData": "测试"
}
],
"InvokeTriggerTestData": {
"UserName": "Administrator"
}
}
],
"Commands": [
{
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
"TryCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "报工信息",
"TableValue": {
"TableName": "任务工时表",
"TableValueType": 1,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "任务ID",
"GUID": "f250f3d4-306f-4f2f-b1d3-0be7458a2623"
},
"ColumnName": "任务ID"
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时类型",
"GUID": "2309d652-ed06-48e9-bbf9-fb9583aca0ce"
},
"ColumnName": "工时类型"
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "任务ID",
"GUID": "09989c87-5b7e-40eb-be4c-9ba87b32b467",
"RelationBinding": {
"RelatedTable": "任务表",
"RelatedColumn": "ID",
"DisplayColumn": "任务状态"
}
},
"ColumnName": "任务状态"
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "任务ID",
"GUID": "ec846c2f-3aa5-4484-95ef-1972503a07b3",
"RelationBinding": {
"RelatedTable": "任务表",
"RelatedColumn": "ID",
"DisplayColumn": "任务状态",
"NextRelationBinding": {
"RelatedTable": "任务状态",
"RelatedColumn": "状态码",
"DisplayColumn": "任务状态"
}
}
},
"ColumnName": "任务状态文本"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "ID",
"GUID": "cabb4369-8835-48c1-a904-84a5e39c961c"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=报工ID"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "08a93b043f414bad996c1d2f2c516c4c"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "执行者",
"TableValue": {
"TableName": "用户信息视图",
"TableValueType": 1,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "全名",
"GUID": "f0683fc3-36ac-4c4b-ab9a-dd9886a93fa5"
},
"ColumnName": "全名"
},
{
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "负荷",
"GUID": "50c4d16c-d1aa-4984-9701-89ad5d48ef41"
},
"ColumnName": "负荷"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "用户名",
"GUID": "d1335a82-4ec2-4bd6-8097-b8cde857970b"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新执行者"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "62c361ee22e4405e96f2e66576c96c73"
},
{
"$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": "任务工时表",
"TableValueType": 1,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "总工时",
"GUID": "f3ff96b9-45fd-4ef8-b770-a8d687a57989"
},
"ColumnName": "总工时"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "任务ID",
"GUID": "fc31ce71-9de3-410e-9bbe-e0c4f47901b4"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=报工信息.任务ID"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "执行人",
"GUID": "24a62ccf-962a-4f4b-b401-6ba78e64281a"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新执行者"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时类型",
"GUID": "58bd9aa1-8b1f-4302-ae42-6182aa229f65"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=报工信息.工时类型"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"CompareType": 1,
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "ID",
"GUID": "3f29fdbd-f187-451e-b7f7-964742413192"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=报工ID"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时日期",
"GUID": "fc7683a1-dd0d-4616-852a-bd0571eb863d"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新日期"
}
}
]
},
"NullFormulaValueQueryPolicy": 0
},
"ID": "6f71560168554d95937ce8d8597f8d79"
},
{
"$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": "3315ab13956142d98db874dbb6d85684"
}
],
"ID": "874adf86-99b3-4d05-ba83-f3a7392422f0"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "最大负荷",
"ParameterValue": "24",
"ID": "8d185b9ac0734ccca2814b16b5b62eca"
}
],
"ID": "26ed4dcb-8918-48fb-9a3e-182863a109b0"
}
]
},
{
"$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": "1a75f32d-f665-4ec1-838a-9fc3b661edf3"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=报工ID"
}
},
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时日期",
"GUID": "a7499f28-816b-4847-aaab-35b90c7ce942"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新日期"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "执行人",
"GUID": "21b0cae0-c6d1-4e89-862f-1d3213e791d6"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新执行者"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "执行内容",
"GUID": "c8a590ce-4e0d-4794-a5f5-13042a5e27f1"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新进展内容"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时",
"GUID": "1cc7e19f-312e-48a6-9cea-f19461825e84"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新工时数"
}
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "更新成功"
}
],
"ID": "db78052b-f630-4b4a-b526-fea681effc86"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"你提交的工时超过了\"&执行者.全名&\"设置的最大负荷\"&最大负荷&\"小时\""
}
}
],
"ID": "caa50012-ca70-4365-a388-15c10cbaef7e"
}
]
}
],
"ID": "644a39c8-965f-4aa3-8208-5c7d0aba82b6"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"当前任务状态为[\"&报工信息.任务状态文本&\"],无法修改工时!\""
}
}
],
"ID": "110c39a0-614b-4903-91ce-0289a3db5db2"
}
]
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionCode"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
}
}
]
}
}
]
}

View File

@@ -89,7 +89,7 @@
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "b1249d88-174d-4f42-b82e-87c775a5ec16"
"GUID": "443f2b0d-af7e-4ac1-9c22-7a04789c5675"
},
"ColumnName": "项目ID"
},
@@ -97,7 +97,7 @@
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务状态",
"GUID": "dfd8dba3-a9e7-46af-82b0-e6346ced04c1"
"GUID": "32c54bbb-3010-4305-979c-afceecd898bb"
},
"ColumnName": "任务状态"
},
@@ -105,7 +105,7 @@
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务状态",
"GUID": "17d042b8-e5cd-423f-a4f2-5bfca0a2de16",
"GUID": "34e3e030-33d1-4702-b671-9d80aff1878f",
"RelationBinding": {
"RelatedTable": "任务状态",
"RelatedColumn": "状态码",
@@ -118,7 +118,7 @@
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "执行者",
"GUID": "45d69552-542b-431e-9153-d5f2f886ac89",
"GUID": "f955d975-fc25-450d-a340-a0348b1770a0",
"AttachType": {
"$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess",
"UserColumnAttachType": 5,
@@ -133,7 +133,7 @@
"ColumnBindingInfo": {
"TableName": "任务表",
"ColumnName": "ID",
"GUID": "77617259-ecbf-4a0a-943a-bc9523d74a4a"
"GUID": "7a204e75-e430-43dc-9c86-429583d827aa"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
@@ -143,7 +143,7 @@
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "40fc605c55a049edb4ddfa172010d1fa"
"ID": "4b2c214a5f994ff090f13264d24b40c3"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
@@ -168,7 +168,7 @@
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=工时数"
},
"ID": "3c523ae8bad44c56803f29297f525e6a"
"ID": "17ae0d0a18d24ffc99da37a3bea6c9ae"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
@@ -177,7 +177,7 @@
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=DATEDIF(开始日期,结束日期,\"d\")+1"
},
"ID": "47a4bd79866c44a68d4a8130857e0e0e"
"ID": "5d5f82547d254cbf864287ef61108e71"
},
{
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
@@ -201,7 +201,80 @@
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=开始日期+(index-1)"
},
"ID": "60a04c424d0b4a51a96e2eb557cf1df9"
"ID": "3775019110024537bd38cf500a9a7c58"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "统计工时",
"TableValue": {
"TableName": "任务工时表",
"TableValueType": 1,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "总工时",
"GUID": "ce66991b-0d8e-4d0c-9d58-08670f889a3b"
},
"ColumnName": "总工时"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "任务ID",
"GUID": "6c5abdb9-f1f9-4f93-8966-a5de658d187e"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时日期",
"GUID": "1f0d5e7e-310f-4f4e-b9fc-063bab50acc0"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=当前日期"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "执行人",
"GUID": "ce3bfc81-bd71-4997-8575-39fba998a519"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=执行者"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时类型",
"GUID": "11614c3e-2e4d-45a5-9893-7e2fb712f669"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=工时类型"
}
}
]
},
"NullFormulaValueQueryPolicy": 0
},
"ID": "a8f97b3ecff64f2183b9661fd518d352"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
@@ -221,133 +294,49 @@
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "统计负荷",
"TableValue": {
"TableName": "View_任务工时统计",
"TableValueType": 1,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "View_任务工时统计",
"ColumnName": "计划工时",
"GUID": "c293ccd3-0a01-450a-9c96-4a22b5f40bba"
},
"ColumnName": "计划工时"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "View_任务工时统计",
"ColumnName": "任务ID",
"GUID": "88d7be4e-bac7-4366-9e82-5ec0e43d3cde"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "View_任务工时统计",
"ColumnName": "执行人",
"GUID": "45422432-e2a6-4c0e-ae7f-85d15794298f"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=执行者"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "View_任务工时统计",
"ColumnName": "工时日期",
"GUID": "b38537dd-3794-42b1-b349-46edd53fbca9"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=当前日期"
}
}
]
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
"ParameterName": "执行人负荷",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=IF(OR(任务信息.执行者负荷=\"\",任务信息.执行者负荷=0,任务信息.执行者负荷>24),24,任务信息.执行者负荷)"
},
"ID": "1a7c7a0561d24027953d7057ac3caa93"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Condition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务信息.执行者负荷"
}
},
"value": "0",
"compareType": 2
},
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=统计负荷"
}
},
"value": "%Null%",
"compareType": 1
},
{
"$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": "=TEXT(当前日期,\"yyyy年mm月dd\")&\"的最大工作负荷超出限制,请重新编排提交!\""
}
}
],
"ID": "b539d26d-1d71-4ce6-b60b-527c90f86132"
}
]
"ID": "e6c17fbe939f404a86a2202cd0fb333e"
}
],
"ID": "d6558544-652c-44af-81eb-31dec04f33b2"
"ID": "c4642a97-a10f-42d5-b742-e4abfb383a4c"
},
{
"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": "24",
"ID": "688762495ecf42728377db40799fedf2"
}
],
"ID": "a6c78a62-0e06-4a39-8ffa-100924338ac1"
}
]
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "预计增加后工时",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=IF(统计工时.总工时=\"\",0,统计工时.总工时)+工时数"
},
"ID": "d99f897ea0ff419e846e224d637397f2"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
@@ -358,135 +347,173 @@
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=index"
"SerializeProperty": "=预计增加后工时"
}
},
"value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=分配天数"
"SerializeProperty": "=执行人负荷"
},
"compareType": 4
"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": "=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": "8f33fe4ca9764403aa6b64d560452ff2"
}
],
"ID": "3a68d9c7-f9d8-4e0d-ba86-42d4512b7c13"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "计算本次分配工时",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=待分配工时"
},
"ID": "e35aa196929541b980131a3874132cae"
}
],
"ID": "2515088d-3dad-4ad0-ac3d-f06e56e8edd4"
}
]
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "计算本次分配工时",
"ParameterName": "分配工时",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ROUNDUP(工时数/分配天数,1)"
"SerializeProperty": "=ROUNDUP(待分配工时-计算本次分配工时,1)"
},
"ID": "cb78ce7bdd4c440b9b449d7af1470fd9"
"ID": "18bfc113ae4b448dbdba213446cdf103"
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务工时表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "项目ID",
"GUID": "89a862aa-235c-4422-a18f-fcd4644b5d36"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务信息.项目ID"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "任务ID",
"GUID": "ba269f5e-db97-4e17-9cb8-a15f44846c81"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时日期",
"GUID": "c97ed24d-b14b-469b-9074-66d4ed98d5c6"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=当前日期"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时类型",
"GUID": "48d6e343-9b6c-43b5-9778-9b868ccd55df"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=工时类型"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "执行人",
"GUID": "df8c4912-a0e0-4088-a341-be55e3db2ca1"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=执行者"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "执行内容",
"GUID": "173e91d1-15ec-4f9a-a54e-98ddd185b4af"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=进展内容"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时",
"GUID": "2bf153a9-56fd-4599-97f4-7f317af68b46"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=计算本次分配工时"
}
}
]
}
],
"ID": "52096b70-4bfb-4135-9f7c-a3a984edea0b"
"ID": "fcf70c56-6464-42a7-8a70-825884a0ffd8"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "计算本次分配工时",
"ParameterValue": {
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=待分配工时"
},
"ID": "308e266c05e3417f9d13962caff1095b"
"SerializeProperty": "=TEXT(当前日期,\"yyyy年mm月dd\")&\"的最大工作负荷超出限制的\"&执行人负荷&\"小时,请重新提交!\""
}
}
],
"ID": "60f32b23-a3f2-4b49-b84a-11eb342d4799"
}
]
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "待分配工时",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ROUNDUP(待分配工时-计算本次分配工时,1)"
},
"ID": "0a0b3c873fcf4de9b94766fc7c44005e"
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务工时表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "项目ID",
"GUID": "62460558-f2bd-4b87-8cea-6fc0dadf3b39"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务信息.项目ID"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "任务ID",
"GUID": "acc1cf0b-5748-40bc-b1b2-5bb59df509a1"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时日期",
"GUID": "d8afca37-aace-413f-8d57-1fba6d54b77c"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=当前日期"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时类型",
"GUID": "1dd01750-f4f3-4c1d-9afb-37c8caa80b30"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=工时类型"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "执行人",
"GUID": "29749b4c-60d8-4963-9ced-4fc1c4d52d67"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=执行者"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "执行内容",
"GUID": "3e99bd55-10d7-4f5d-9dd8-a866365961a2"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=进展内容"
}
},
{
"BindingInfo": {
"TableName": "任务工时表",
"ColumnName": "工时",
"GUID": "d9623657-4a05-4e47-a927-0e188c5fa69a"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=计算本次分配工时"
}
"ID": "f3875778-80dd-40b4-b317-4f21ef53e746"
}
]
}
@@ -500,7 +527,7 @@
"Message": "提交工时成功"
}
],
"ID": "67983164-51fb-452a-ad85-bab842928a39"
"ID": "5abf293f-a8c6-4f12-bb5d-6e1819ef38b7"
},
{
"CommandList": [
@@ -513,7 +540,7 @@
}
}
],
"ID": "876ca00c-e70e-4e57-beb3-7f440cb828b8"
"ID": "89048532-fdfa-4235-9972-20d722f6d461"
}
]
}