From db46ed8cd1dd8bf88c5f7d45e9a2a9906617b258 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Tue, 28 Nov 2023 10:59:50 +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 --- DataBase/版本日志/SGGLDB_V2023-11-28.sql | 22 +++ SGGL/BLL/CQMS/WBS/WorkPackageService.cs | 26 ++-- .../CQMS/WBS/WorkPackageSet2.aspx | 2 +- .../CQMS/WBS/WorkPackageSet2In2.aspx | 22 ++- .../CQMS/WBS/WorkPackageSet2In2.aspx.cs | 145 ++++++++++++++++++ .../Excel/DataIn/WBS定制导入模板(电仪).xls | Bin 19456 -> 25088 bytes .../WeldingManage/PipelineListPDMSIn.aspx.cs | 16 +- .../JDGL/Check/CompleteInput.aspx | 3 + SGGL/FineUIPro.Web/JDGL/Check/PlanSet.aspx | 8 + SGGL/FineUIPro.Web/JDGL/Check/PlanSet.aspx.cs | 2 + .../JDGL/Check/PlanSet.aspx.designer.cs | 9 ++ .../InformationProject/ConstructionLog.aspx | 89 +---------- .../ConstructionLog.aspx.cs | 118 +++++--------- .../ConstructionLogFileCabinet.aspx | 4 +- .../ConstructionLogFileCabinet.aspx.cs | 40 +++++ .../ProjectConstructionLog.aspx | 4 +- .../ProjectConstructionLog.aspx.cs | 41 +++++ SGGL/Model/Model.cs | 42 +++++ 18 files changed, 402 insertions(+), 191 deletions(-) create mode 100644 DataBase/版本日志/SGGLDB_V2023-11-28.sql diff --git a/DataBase/版本日志/SGGLDB_V2023-11-28.sql b/DataBase/版本日志/SGGLDB_V2023-11-28.sql new file mode 100644 index 00000000..d4097938 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2023-11-28.sql @@ -0,0 +1,22 @@ +alter table WBS_WorkPackage add DrawProjectQuantity decimal(18,2) null +GO + +ALTER VIEW [dbo].[View_WBS] +AS +select '1' as Id,'0' as SupId ,'JZ' as Code, '' as Name,'ProjectType' as WBSType,null as PlanStartDate,null as PlanEndDate,null as RealEndDate,null as WBSCode,null as JDWeights,null as Unit,null as PlanProjectQuantity,null as RealProjectQuantity,null as RealStartDate,null as IsMileStone,null as PlanCost,null as PreWorkCode,'' as ShowId,null as DrawProjectQuantity, +ProjectId from dbo.Base_Project +Union +select '2' as Id,'0' as SupId ,'AZ' as Code, 'װ' as Name,'ProjectType' as WBSType,null as PlanStartDate,null as PlanEndDate,null as RealEndDate,null as WBSCode,null as JDWeights,null as Unit,null as PlanProjectQuantity,null as RealProjectQuantity,null as RealStartDate,null as IsMileStone,null as PlanCost,null as PreWorkCode,'' as ShowId,null as DrawProjectQuantity, +ProjectId from dbo.Base_Project +Union +select UnitWorkId as Id,ProjectType as SupId ,UnitWorkCode as Code, UnitWorkName as Name,'UnitWork' as WBSType,PlanStartDate, PlanEndDate,RealEndDate,WBSCode,JDWeights,null as Unit,null as PlanProjectQuantity,null as RealProjectQuantity,RealStartDate,null as IsMileStone,PlanCost,null as PreWorkCode,'' as ShowId,null as DrawProjectQuantity, +ProjectId from dbo.WBS_UnitWork +Union all +select WorkPackageId as id,UnitWorkId as SupId,WorkPackageCode as Code,PackageContent as Name,'WorkPackage' as WBSType,PlanStartDate, PlanEndDate,RealEndDate,WBSCode,JDWeights,Unit,PlanProjectQuantity,RealProjectQuantity,RealStartDate,IsMileStone,PlanCost,PreWorkCode,case when (select COUNT(*) from WBS_WorkPackage a where a.SuperWorkPackageId=w.WorkPackageId and a.IsApprove=1)=0 then WorkPackageId else '' end as ShowId,DrawProjectQuantity, +ProjectId from dbo.WBS_WorkPackage w where IsApprove=1 and SuperWorkPackageId is null +Union all +select WorkPackageId as id,SuperWorkPackageId as SupId,WorkPackageCode as Code, PackageContent as Name,'WorkPackage' as WBSType,PlanStartDate, PlanEndDate,RealEndDate,WBSCode,JDWeights,Unit,PlanProjectQuantity,RealProjectQuantity,RealStartDate,IsMileStone,PlanCost,PreWorkCode,case when (select COUNT(*) from WBS_WorkPackage a where a.SuperWorkPackageId=w.WorkPackageId and a.IsApprove=1)=0 then WorkPackageId else '' end as ShowId,DrawProjectQuantity, +ProjectId from dbo.WBS_WorkPackage w where IsApprove=1 and SuperWorkPackageId is not null + + +GO diff --git a/SGGL/BLL/CQMS/WBS/WorkPackageService.cs b/SGGL/BLL/CQMS/WBS/WorkPackageService.cs index 6f3ccb43..2c6e85c7 100644 --- a/SGGL/BLL/CQMS/WBS/WorkPackageService.cs +++ b/SGGL/BLL/CQMS/WBS/WorkPackageService.cs @@ -40,6 +40,7 @@ namespace BLL newWorkPackage.RealStartDate = WorkPackage.RealStartDate; newWorkPackage.RealEndDate = WorkPackage.RealEndDate; newWorkPackage.Unit = WorkPackage.Unit; + newWorkPackage.DrawProjectQuantity = WorkPackage.DrawProjectQuantity; db.WBS_WorkPackage.InsertOnSubmit(newWorkPackage); db.SubmitChanges(); @@ -76,6 +77,7 @@ namespace BLL newWorkPackage.PlanCost = WorkPackage.PlanCost; newWorkPackage.JDWeights = WorkPackage.JDWeights; newWorkPackage.PreWorkCode = WorkPackage.PreWorkCode; + newWorkPackage.DrawProjectQuantity = WorkPackage.DrawProjectQuantity; db.SubmitChanges(); } @@ -505,6 +507,7 @@ namespace BLL table.Columns.Add(new DataColumn("JDWeights", typeof(String))); table.Columns.Add(new DataColumn("Unit", typeof(String))); table.Columns.Add(new DataColumn("PlanProjectQuantity", typeof(String))); + table.Columns.Add(new DataColumn("DrawProjectQuantity", typeof(String))); table.Columns.Add(new DataColumn("RealProjectQuantity", typeof(String))); table.Columns.Add(new DataColumn("PlanStartDate", typeof(DateTime))); table.Columns.Add(new DataColumn("PlanEndDate", typeof(DateTime))); @@ -551,30 +554,31 @@ namespace BLL row[6] = item.JDWeights; row[7] = item.Unit; row[8] = item.PlanProjectQuantity; - row[9] = item.RealProjectQuantity; + row[9] = item.DrawProjectQuantity; + row[10] = item.RealProjectQuantity; if (item.PlanStartDate != null) { - row[10] = item.PlanStartDate; + row[11] = item.PlanStartDate; } if (item.PlanEndDate != null) { - row[11] = item.PlanEndDate; + row[12] = item.PlanEndDate; } if (item.RealStartDate != null) { - row[12] = item.RealStartDate; + row[13] = item.RealStartDate; } if (item.RealEndDate != null) { - row[13] = item.RealEndDate; + row[14] = item.RealEndDate; } if (item.IsMileStone != null) { - row[14] = item.IsMileStone; + row[15] = item.IsMileStone; } - row[15] = item.PlanCost; - row[16] = item.PreWorkCode; - row[17] = item.Code; + row[16] = item.PlanCost; + row[17] = item.PreWorkCode; + row[18] = item.Code; if (!string.IsNullOrEmpty(item.ShowId)) { var details = getDetails.Where(x => x.WorkPackageId == item.Id).ToList(); @@ -583,11 +587,11 @@ namespace BLL var index = months.FindIndex(x => x.Equals(item1.Months)); if (item1.PlanNum != 0) { - row[18 + index * 2] = decimal.Round(Convert.ToDecimal(item1.PlanNum), 2); + row[19 + index * 2] = decimal.Round(Convert.ToDecimal(item1.PlanNum), 2); } if (item1.ThisNum != 0) { - row[19 + index * 2] = decimal.Round(Convert.ToDecimal(item1.ThisNum), 2); + row[20 + index * 2] = decimal.Round(Convert.ToDecimal(item1.ThisNum), 2); } } } diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/WorkPackageSet2.aspx b/SGGL/FineUIPro.Web/CQMS/WBS/WorkPackageSet2.aspx index efe46b98..843cbead 100644 --- a/SGGL/FineUIPro.Web/CQMS/WBS/WorkPackageSet2.aspx +++ b/SGGL/FineUIPro.Web/CQMS/WBS/WorkPackageSet2.aspx @@ -116,7 +116,7 @@