From 47921967d7b95adec9d84840b14752c9dceb4201 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Mon, 6 Nov 2023 15:45:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../版本日志/SGGLDB_WH_2023-11-06.sql | 11 + .../CQMS/Performance/MonthTargetEdit.aspx | 26 +- .../MonthTargetEdit.aspx.designer.cs | 12 +- .../CQMS/Performance/Performance.aspx.cs | 55 +-- .../CQMS/Performance/PerformanceEdit.aspx | 143 +++++-- .../CQMS/Performance/PerformanceEdit.aspx.cs | 252 +++++++++---- .../PerformanceEdit.aspx.designer.cs | 78 ++-- .../CQMS/Performance/TaskContentEdit.aspx | 45 ++- .../CQMS/Performance/TaskContentEdit.aspx.cs | 185 +++++---- .../TaskContentEdit.aspx.designer.cs | 79 +--- .../CQMS/Performance/WorkPlanEdit.aspx | 56 ++- .../CQMS/Performance/WorkPlanEdit.aspx.cs | 352 +++++++++++------- .../Performance/WorkPlanEdit.aspx.designer.cs | 21 +- SGGL/Model/Model.cs | 24 ++ .../Controllers/CQMS/PerformanceController.cs | 110 +++--- 15 files changed, 909 insertions(+), 540 deletions(-) diff --git a/DataBase/版本日志/SGGLDB_WH_2023-11-06.sql b/DataBase/版本日志/SGGLDB_WH_2023-11-06.sql index b2c5eab5..717896df 100644 --- a/DataBase/版本日志/SGGLDB_WH_2023-11-06.sql +++ b/DataBase/版本日志/SGGLDB_WH_2023-11-06.sql @@ -15,4 +15,15 @@ alter table PreRun_SubInspectTerm add UnifyWanderAboutData datetime null GO --ͳһת alter table PreRun_SubInspectTerm add UnifyWanderAboutOpinion varchar(max) null +GO + + +-- +delete from CQMS_Performance +delete from CQMS_Performance_Child1 +delete from CQMS_Performance_Child2 +delete from CQMS_Performance_Child3 +GO +--ʩ +alter table CQMS_Performance add SgCount int null GO \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/CQMS/Performance/MonthTargetEdit.aspx b/SGGL/FineUIPro.Web/CQMS/Performance/MonthTargetEdit.aspx index 27b41993..66119ff7 100644 --- a/SGGL/FineUIPro.Web/CQMS/Performance/MonthTargetEdit.aspx +++ b/SGGL/FineUIPro.Web/CQMS/Performance/MonthTargetEdit.aspx @@ -24,9 +24,11 @@ - - + --%> + + @@ -37,8 +39,8 @@ - - + + @@ -50,8 +52,8 @@ - - + + @@ -63,8 +65,8 @@ - - + + @@ -76,8 +78,8 @@ - - + + @@ -89,8 +91,8 @@ - - + + diff --git a/SGGL/FineUIPro.Web/CQMS/Performance/MonthTargetEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/Performance/MonthTargetEdit.aspx.designer.cs index 5133120a..d1c2b1f2 100644 --- a/SGGL/FineUIPro.Web/CQMS/Performance/MonthTargetEdit.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/CQMS/Performance/MonthTargetEdit.aspx.designer.cs @@ -66,7 +66,7 @@ namespace FineUIPro.Web.CQMS.Performance /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtMonthTarget1; + protected global::FineUIPro.TextArea txtMonthTarget1; /// /// SimpleForm3 控件。 @@ -84,7 +84,7 @@ namespace FineUIPro.Web.CQMS.Performance /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtMonthTarget2; + protected global::FineUIPro.TextArea txtMonthTarget2; /// /// SimpleForm4 控件。 @@ -102,7 +102,7 @@ namespace FineUIPro.Web.CQMS.Performance /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtMonthTarget3; + protected global::FineUIPro.TextArea txtMonthTarget3; /// /// SimpleForm5 控件。 @@ -120,7 +120,7 @@ namespace FineUIPro.Web.CQMS.Performance /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtMonthTarget4; + protected global::FineUIPro.TextArea txtMonthTarget4; /// /// SimpleForm6 控件。 @@ -138,7 +138,7 @@ namespace FineUIPro.Web.CQMS.Performance /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtMonthTarget5; + protected global::FineUIPro.TextArea txtMonthTarget5; /// /// SimpleForm7 控件。 @@ -156,7 +156,7 @@ namespace FineUIPro.Web.CQMS.Performance /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtMonthTarget6; + protected global::FineUIPro.TextArea txtMonthTarget6; /// /// Toolbar4 控件。 diff --git a/SGGL/FineUIPro.Web/CQMS/Performance/Performance.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Performance/Performance.aspx.cs index 2af9885b..6c55bd3f 100644 --- a/SGGL/FineUIPro.Web/CQMS/Performance/Performance.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/Performance/Performance.aspx.cs @@ -1038,31 +1038,38 @@ namespace FineUIPro.Web.CQMS.Performance //根据gid获取CQMS_Performance_Child2 施工进度管理的子表数据,大于一条,就要多增加数据到List中 var ChildSgjdCount = db.CQMS_Performance_Child2.Where(x => x.NowWeek == 1 && x.PerformanceGid == PerformanceGid &&x.Performance_ChildGid1== OneGid).ToList().Count(); - var addList = db.CQMS_Performance_Child1.Where(x => x.PerformanceGid == PerformanceGid && x.SortIndex==1) - .Select(x => new GridModels - { - Performance_ChildGid1 = x.Performance_ChildGid1, - PerformanceGid = x.PerformanceGid, - PType = x.PType, - EvaScore = x.EvaScore, - Itemize = x.Itemize, - WorkArea = x.WorkArea, - MonthTarget = x.MonthTarget, - SortIndex = x.SortIndex - }).ToList(); - if (ChildSgjdCount == 2) + + for (int i = 0; i < ChildSgjdCount-1; i++) { - addList[0].Performance_ChildGid1 = addList[0].Performance_ChildGid1 + "one"; - listChild1.InsertRange(1, addList); - } - else if (ChildSgjdCount == 3) - { - var pgid = addList[0].Performance_ChildGid1; - addList[0].Performance_ChildGid1 = pgid + "one"; - listChild1.InsertRange(1, addList); - addList[0].Performance_ChildGid1 = pgid + "two"; - listChild1.InsertRange(2, addList); + var addList = db.CQMS_Performance_Child1.Where(x => x.PerformanceGid == PerformanceGid && x.SortIndex == 1) + .Select(x => new GridModels + { + Performance_ChildGid1 = x.Performance_ChildGid1, + PerformanceGid = x.PerformanceGid, + PType = x.PType, + EvaScore = x.EvaScore, + Itemize = x.Itemize, + WorkArea = x.WorkArea, + MonthTarget = x.MonthTarget, + SortIndex = x.SortIndex + }).ToList(); + + addList[0].Performance_ChildGid1 = addList[0].Performance_ChildGid1 + "one"+i.ToString(); + listChild1.InsertRange(i+1, addList); } + //if (ChildSgjdCount == 2) + //{ + // addList[0].Performance_ChildGid1 = addList[0].Performance_ChildGid1 + "one"; + // listChild1.InsertRange(1, addList); + //} + //else if (ChildSgjdCount == 3) + //{ + // var pgid = addList[0].Performance_ChildGid1; + // addList[0].Performance_ChildGid1 = pgid + "one"; + // listChild1.InsertRange(1, addList); + // addList[0].Performance_ChildGid1 = pgid + "two"; + // listChild1.InsertRange(2, addList); + //} //循环list给每周任务、工程量、资源需求计划、本周工作任务完成情况 ,每日工作计划、完成情况赋值 //获取周数 @@ -1089,7 +1096,7 @@ namespace FineUIPro.Web.CQMS.Performance var chilGid = listChild1[i].Performance_ChildGid1; if (chilGid.IndexOf("one")>-1|| chilGid.IndexOf("two") > -1) { - chilGid = chilGid.Substring(0, chilGid.Length - 3); + chilGid = chilGid.Substring(0, chilGid.Length - 4); } //根据周数获取数据 diff --git a/SGGL/FineUIPro.Web/CQMS/Performance/PerformanceEdit.aspx b/SGGL/FineUIPro.Web/CQMS/Performance/PerformanceEdit.aspx index 90d4d5f2..a2ce3768 100644 --- a/SGGL/FineUIPro.Web/CQMS/Performance/PerformanceEdit.aspx +++ b/SGGL/FineUIPro.Web/CQMS/Performance/PerformanceEdit.aspx @@ -73,9 +73,11 @@ - - + --%> + + @@ -86,8 +88,10 @@ - - + <%-- + --%> + + @@ -99,8 +103,10 @@ - - +<%-- + --%> + + @@ -112,8 +118,10 @@ - - +<%-- + --%> + + @@ -125,8 +133,10 @@ - - + <%-- + --%> + + @@ -138,8 +148,11 @@ - - + <%-- + --%> + + + @@ -158,22 +171,78 @@