From 0d681e07ac4a452c968c1b3b95bce47d65c601db Mon Sep 17 00:00:00 2001 From: gaofei <231232131@163.com> Date: Tue, 14 Jun 2022 18:21:58 +0800 Subject: [PATCH] =?UTF-8?q?0614-=E8=BF=9B=E5=BA=A6=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E5=92=8C=E5=AE=9E=E9=99=85=E5=BC=80=E5=A7=8B?= =?UTF-8?q?/=E5=AE=8C=E6=88=90=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SGGLDB_V2022-06-14-001.sql | 5 + SGGL/BLL/JDGL/WBS/CostControlService.cs | 4 + .../BLL/JDGL/WBS/WorkloadStatisticsService.cs | 26 ++++- .../JDGL/WBS/WorkloadInputEditAll.aspx | 54 ++++++++--- .../JDGL/WBS/WorkloadInputEditAll.aspx.cs | 18 +++- .../WBS/WorkloadInputEditAll.aspx.designer.cs | 36 +++++++ .../JDGL/WBS/WorkloadInputIn.aspx | 12 +++ .../JDGL/WBS/WorkloadInputIn.aspx.cs | 79 ++++++++++----- SGGL/Model/Model.cs | 96 +++++++++++++++++++ 9 files changed, 289 insertions(+), 41 deletions(-) create mode 100644 DataBase/版本日志/已更新脚本/SGGLDB_V2022-06-14-001.sql diff --git a/DataBase/版本日志/已更新脚本/SGGLDB_V2022-06-14-001.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2022-06-14-001.sql new file mode 100644 index 00000000..436b268d --- /dev/null +++ b/DataBase/版本日志/已更新脚本/SGGLDB_V2022-06-14-001.sql @@ -0,0 +1,5 @@ +alter table [dbo].[WBS_CostControl] add PlanStartDate datetime null +alter table [dbo].[WBS_CostControl] add PlanEndDate datetime null +alter table [dbo].[WBS_CostControl] add RealStartDate datetime null +alter table [dbo].[WBS_CostControl] add RealEndDate datetime null +GO \ No newline at end of file diff --git a/SGGL/BLL/JDGL/WBS/CostControlService.cs b/SGGL/BLL/JDGL/WBS/CostControlService.cs index 630a7239..e0d1b599 100644 --- a/SGGL/BLL/JDGL/WBS/CostControlService.cs +++ b/SGGL/BLL/JDGL/WBS/CostControlService.cs @@ -86,6 +86,10 @@ namespace BLL newUP.IsSelected = costControl.IsSelected; newUP.RealPrice = costControl.RealPrice; newUP.PlanPrice = costControl.PlanPrice; + newUP.PlanStartDate = costControl.PlanStartDate; + newUP.PlanEndDate = costControl.PlanEndDate; + newUP.RealStartDate = costControl.RealStartDate; + newUP.RealEndDate = costControl.RealEndDate; db.SubmitChanges(); } diff --git a/SGGL/BLL/JDGL/WBS/WorkloadStatisticsService.cs b/SGGL/BLL/JDGL/WBS/WorkloadStatisticsService.cs index d5d6e533..3f7f6c3e 100644 --- a/SGGL/BLL/JDGL/WBS/WorkloadStatisticsService.cs +++ b/SGGL/BLL/JDGL/WBS/WorkloadStatisticsService.cs @@ -2588,6 +2588,10 @@ namespace BLL table.Columns.Add(new DataColumn("TotalNum", typeof(String))); table.Columns.Add(new DataColumn("RealPrice", typeof(String))); table.Columns.Add(new DataColumn("PlanPrice", typeof(String))); + table.Columns.Add(new DataColumn("PlanStartDate", typeof(DateTime))); + table.Columns.Add(new DataColumn("PlanEndDate", typeof(DateTime))); + table.Columns.Add(new DataColumn("RealStartDate", typeof(DateTime))); + table.Columns.Add(new DataColumn("RealEndDate", typeof(DateTime))); for (int i = 0; i < months.Count; i++) { table.Columns.Add(new DataColumn("PlanNum" + (i + 1).ToString(), typeof(String))); @@ -2644,6 +2648,22 @@ namespace BLL { row[7] = decimal.Round(Convert.ToDecimal(costControl.PlanPrice), 2);//控制预算单价 } + if (costControl.PlanStartDate != null) + { + row[8] = costControl.PlanStartDate;//计划开始时间 + } + if (costControl.PlanEndDate != null) + { + row[9] = costControl.PlanEndDate;//计划完成时间 + } + if (costControl.RealStartDate != null) + { + row[10] = costControl.RealStartDate;//实际开始时间 + } + if (costControl.RealEndDate != null) + { + row[11] = costControl.RealEndDate;//实际完成时间 + } for (int i = 0; i < months.Count; i++) { Model.View_WBS_CostControlDetail detail = details.FirstOrDefault(x => x.CostControlId == item.Id && x.Months == months[i]); @@ -2651,15 +2671,15 @@ namespace BLL { if (detail.PlanNum != 0) { - row[8 + i * 2] = decimal.Round(Convert.ToDecimal(detail.PlanNum), 2); + row[12 + i * 2] = decimal.Round(Convert.ToDecimal(detail.PlanNum), 2); } if (detail.ThisNum != 0) { - row[9 + i * 2] = decimal.Round(Convert.ToDecimal(detail.ThisNum), 2); + row[13 + i * 2] = decimal.Round(Convert.ToDecimal(detail.ThisNum), 2); } } } - row[10 + (months.Count-1) * 2] = item.Id; + row[14 + (months.Count-1) * 2] = item.Id; //row[10] = decimal.Round(Convert.ToDecimal(detail.ThisRealCost), 2);//本月实际成本 //row[11] = decimal.Round(Convert.ToDecimal(detail.ThisPlanValue), 2);//本月计划完成预算 //row[12] = decimal.Round(Convert.ToDecimal(detail.ThisPlanCost), 2);//本月完成预算 diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/WorkloadInputEditAll.aspx b/SGGL/FineUIPro.Web/JDGL/WBS/WorkloadInputEditAll.aspx index bc4379c8..e42531bd 100644 --- a/SGGL/FineUIPro.Web/JDGL/WBS/WorkloadInputEditAll.aspx +++ b/SGGL/FineUIPro.Web/JDGL/WBS/WorkloadInputEditAll.aspx @@ -5,12 +5,12 @@