From b2f446f93d3779406594acbfc8e3fbb46ccb6249 Mon Sep 17 00:00:00 2001 From: wendy <408182087@qq.com> Date: Wed, 16 Sep 2026 17:21:02 +0800 Subject: [PATCH 1/5] =?UTF-8?q?20260916=20=E7=AE=A1=E9=81=93=E5=AE=89?= =?UTF-8?q?=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../版本日志/HJGLDB_DS_2026-09-14_bwj.sql | 74 ++ .../版本日志/HJGLDB_DS_2026-09-16_bwj.sql | 7 + HJGL_DS/BLL/BLL.csproj | 2 + HJGL_DS/BLL/Common/Const.cs | 12 + HJGL_DS/BLL/JGZL/LeakageVacuumService.cs | 85 ++ .../BLL/JGZL/LeakageVacuumTestRecordServic.cs | 72 ++ ...�“系统泄漏性、真空试验条件确认与试验记录.frx | 285 ++++++ .../JGZL/管道系统泄漏性试验记录.frx | 4 +- .../JGZL/管道系统泄漏性试验记录导出模板.docx | Bin 0 -> 15913 bytes HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj | 8 + .../FineUIPro.Web/FineUIPro.Web.csproj.user | 2 +- ...lineInstallationQualityCertificate.aspx.cs | 10 +- ...rialPipelineQualityCertificate2020.aspx.cs | 7 + HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx | 225 +++++ .../FineUIPro.Web/JGZL/LeakageVacuum.aspx.cs | 817 ++++++++++++++++++ .../JGZL/LeakageVacuum.aspx.designer.cs | 341 ++++++++ .../JGZL/ModRepairQualityCertificate.aspx | 15 +- .../JGZL/ModRepairQualityCertificate.aspx.cs | 35 +- ...dRepairQualityCertificate.aspx.designer.cs | 40 +- HJGL_DS/FineUIPro.Web/Web.config | 2 +- HJGL_DS/Model/Model.cs | 764 ++++++++++++++++ HJGL_DS/WebAPI/WebAPI.csproj.user | 2 +- 22 files changed, 2744 insertions(+), 65 deletions(-) create mode 100644 DataBase/版本日志/HJGLDB_DS_2026-09-14_bwj.sql create mode 100644 DataBase/版本日志/HJGLDB_DS_2026-09-16_bwj.sql create mode 100644 HJGL_DS/BLL/JGZL/LeakageVacuumService.cs create mode 100644 HJGL_DS/BLL/JGZL/LeakageVacuumTestRecordServic.cs create mode 100644 HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道系统泄漏性、真空试验条件确认与试验记录.frx create mode 100644 HJGL_DS/FineUIPro.Web/File/Word/JGZL/管道系统泄漏性试验记录导出模板.docx create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx.cs create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx.designer.cs diff --git a/DataBase/版本日志/HJGLDB_DS_2026-09-14_bwj.sql b/DataBase/版本日志/HJGLDB_DS_2026-09-14_bwj.sql new file mode 100644 index 0000000..61a765c --- /dev/null +++ b/DataBase/版本日志/HJGLDB_DS_2026-09-14_bwj.sql @@ -0,0 +1,74 @@ + +CREATE TABLE [dbo].[JGZL_LeakageVacuum]( + [LeakageVacuumId] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NOT NULL, + [SystemName] [nvarchar](50) NULL, + [SystemCode] [nvarchar](50) NULL, + [CheckItemResult1] [nvarchar](50) NULL, + [CheckItemResult2] [nvarchar](50) NULL, + [CheckItemResult3] [nvarchar](50) NULL, + [CheckItemResult4] [nvarchar](50) NULL, + [CheckItemResult5] [nvarchar](50) NULL, + [Conclusion] [nvarchar](500) NULL, + CONSTRAINT [PK_JGZL_LeakageVacuum] PRIMARY KEY CLUSTERED +( + [LeakageVacuumId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY] +) ON [PRIMARY] +GO + +ALTER TABLE [dbo].[JGZL_LeakageVacuum] WITH CHECK ADD CONSTRAINT [FK_JGZL_LeakageVacuum_Base_Project] FOREIGN KEY([ProjectId]) +REFERENCES [dbo].[Base_Project] ([ProjectId]) +GO + +ALTER TABLE [dbo].[JGZL_LeakageVacuum] CHECK CONSTRAINT [FK_JGZL_LeakageVacuum_Base_Project] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ö÷¼ü' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakageVacuum', @level2type=N'COLUMN',@level2name=N'LeakageVacuumId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ÏîĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakageVacuum', @level2type=N'COLUMN',@level2name=N'ProjectId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϵͳÃû³Æ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakageVacuum', @level2type=N'COLUMN',@level2name=N'SystemName' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϵͳ±àºÅ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakageVacuum', @level2type=N'COLUMN',@level2name=N'SystemCode' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ÊÔÑé½áÂÛ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakageVacuum', @level2type=N'COLUMN',@level2name=N'Conclusion' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¹ܵÀϵͳй©ÐÔ/Õæ¿ÕÊÔÑéÌõ¼þȷÈÏÓëÊÔÑé¼Ç¼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakageVacuum' +GO + + +CREATE TABLE [dbo].[JGZL_LeakageVacuumTestRecord]( + [LeakageVacuumTestRecordId] [nvarchar](50) NOT NULL, + [LeakageVacuumId] [nvarchar](50) NULL, + [PipelineId] [nvarchar](50) NULL, + [PipelineCode] [nvarchar](50) NULL, + [DesignPressure] [nvarchar](50) NULL, + [DesignTem] [nvarchar](50) NULL, + [TestAmbientTemp] [nvarchar](50) NULL, + [TestMediumTemp] [nvarchar](50) NULL, + [LeakPressure] [nvarchar](50) NULL, + [LeakMedium] [nvarchar](50) NULL, + [VacuumPressure] [nvarchar](50) NULL, + [VacuumMedium] [nvarchar](50) NULL, + CONSTRAINT [PK_JGZL_LeakageVacuumTestRecord] PRIMARY KEY CLUSTERED +( + [LeakageVacuumTestRecordId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY] +) ON [PRIMARY] +GO + +ALTER TABLE [dbo].[JGZL_LeakageVacuumTestRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_LeakageVacuumTestRecord_JGZL_LeakageVacuum] FOREIGN KEY([LeakageVacuumId]) +REFERENCES [dbo].[JGZL_LeakageVacuum] ([LeakageVacuumId]) +GO + +ALTER TABLE [dbo].[JGZL_LeakageVacuumTestRecord] CHECK CONSTRAINT [FK_JGZL_LeakageVacuumTestRecord_JGZL_LeakageVacuum] +GO + +update Sys_Menu set MenuName='¹ܵÀϵͳй©ÐÔ/Õæ¿ÕÊÔÑéÌõ¼þȷÈÏÓëÊÔÑé¼Ç¼',Url='JGZL/LeakageVacuum.aspx' where MenuId='FF56CCBE-0B8C-4AF6-832E-EC6ED1584C94' +go \ No newline at end of file diff --git a/DataBase/版本日志/HJGLDB_DS_2026-09-16_bwj.sql b/DataBase/版本日志/HJGLDB_DS_2026-09-16_bwj.sql new file mode 100644 index 0000000..e1badfb --- /dev/null +++ b/DataBase/版本日志/HJGLDB_DS_2026-09-16_bwj.sql @@ -0,0 +1,7 @@ + +update Sys_Menu set MenuName='¹¤ҵ¹ܵÀ°²װÖÊÁ¿֤Ã÷Ê飨°²װ2025°棩',SortIndex=50 where MenuId='F5833B38-65DF-4236-A676-EE75F9487061' +update Sys_Menu set MenuName='¹¤ҵ¹ܵÀ°²װ»ã×ܱí£¨°²װ2025°棩',SortIndex=51 where MenuId='C527812C-0FF8-4EAC-B1FD-3B561DBE46ED' +update Sys_Menu set MenuName='¹¤ҵ¹ܵÀ°²װÖÊÁ¿֤Ã÷Ê飨°²װ2020°棩',SortIndex=53 where MenuId='1B71BBF6-2686-458F-B6F9-639A5B71AE86' +update Sys_Menu set MenuName='¹¤ҵ¹ܵÀ°²װ»ã×ܱí£¨°²װ2020°棩',SortIndex=54 where MenuId='151BA8BA-E6A8-4941-AEAB-1D32AD6BAC31' +update Sys_Menu set MenuName='ѹÁ¦¹ܵÀ¸ÄÔìάÐÞÖÊÁ¿֤Ã÷Ê飨¸ÄÔ졢ÖشóÐÞÀí¡¢άÐޣ©',SortIndex=55 where MenuId='087420E0-A459-4CD7-A1B6-A7A5E001ABF8' +go \ No newline at end of file diff --git a/HJGL_DS/BLL/BLL.csproj b/HJGL_DS/BLL/BLL.csproj index f1367b3..8a53395 100644 --- a/HJGL_DS/BLL/BLL.csproj +++ b/HJGL_DS/BLL/BLL.csproj @@ -266,6 +266,8 @@ + + diff --git a/HJGL_DS/BLL/Common/Const.cs b/HJGL_DS/BLL/Common/Const.cs index fd17d98..86f5eac 100644 --- a/HJGL_DS/BLL/Common/Const.cs +++ b/HJGL_DS/BLL/Common/Const.cs @@ -1831,6 +1831,11 @@ namespace BLL /// public const string JGZL_BlowingCleaningMenuId = "E64FC226-8164-43F7-AA4D-6E268EDEC5BC"; + /// + /// 管道系统泄漏性/真空试验条件确认与试验记录 + /// + public const string JGZL_LeakageVacuumMenuId = "FF56CCBE-0B8C-4AF6-832E-EC6ED1584C94"; + /// /// 防腐工程质量验收记录 @@ -2625,6 +2630,11 @@ namespace BLL /// public const string JGZL_ArchivalTransferUrl = "File\\Word\\JGZL\\档案资料移交表导出模板.docx"; + /// + /// 管道系统泄漏性/真空试验条件确认与试验记录 + /// + public const string JGZL_LeakageVacuumUrl = "File\\Word\\JGZL\\管道系统泄漏性试验记录导出模板.docx"; + #endregion /// @@ -2636,5 +2646,7 @@ namespace BLL /// 焊缝返修台账导出模板 /// public const string HJGL_WeldRepairListsUrl = "File\\Excel\\焊缝返修台账导出模板.xlsx"; + + } } diff --git a/HJGL_DS/BLL/JGZL/LeakageVacuumService.cs b/HJGL_DS/BLL/JGZL/LeakageVacuumService.cs new file mode 100644 index 0000000..c0fd44e --- /dev/null +++ b/HJGL_DS/BLL/JGZL/LeakageVacuumService.cs @@ -0,0 +1,85 @@ +using Model; +using System; +using System.Collections.Generic; +using System.Diagnostics.Eventing.Reader; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + /// + /// 管道系统泄漏性/真空试验条件确认与试验记录 + /// + public class LeakageVacuumService + { + /// + /// 根据项目Id获取管道系统泄漏性/真空试验条件确认与试验记录 + /// + /// + /// + public static Model.JGZL_LeakageVacuum GetLeakageVacuumByProjectId(string projectId) + { + return Funs.DB.JGZL_LeakageVacuum.FirstOrDefault(e => e.ProjectId == projectId); + } + + /// + /// 添加获取管道系统泄漏性/真空试验条件确认与试验记录 + /// + /// + public static void AddLeakageVacuum(Model.JGZL_LeakageVacuum leakageVacuum) + { + Model.SGGLDB db = Funs.DB; + Model.JGZL_LeakageVacuum newLeakageVacuum = new Model.JGZL_LeakageVacuum(); + newLeakageVacuum.LeakageVacuumId = leakageVacuum.LeakageVacuumId; + newLeakageVacuum.ProjectId = leakageVacuum.ProjectId; + newLeakageVacuum.SystemName = leakageVacuum.SystemName; + newLeakageVacuum.SystemCode = leakageVacuum.SystemCode; + newLeakageVacuum.CheckItemResult1 = leakageVacuum.CheckItemResult1; + newLeakageVacuum.CheckItemResult2 = leakageVacuum.CheckItemResult2; + newLeakageVacuum.CheckItemResult3 = leakageVacuum.CheckItemResult3; + newLeakageVacuum.CheckItemResult4 = leakageVacuum.CheckItemResult4; + newLeakageVacuum.CheckItemResult5 = leakageVacuum.CheckItemResult5; + newLeakageVacuum.Conclusion = leakageVacuum.Conclusion; + db.JGZL_LeakageVacuum.InsertOnSubmit(newLeakageVacuum); + db.SubmitChanges(); + } + + /// + /// 修改管道系统泄漏性/真空试验条件确认与试验记录 + /// + /// + public static void UpdateLeakageVacuum(Model.JGZL_LeakageVacuum leakageVacuum) + { + Model.SGGLDB db = Funs.DB; + Model.JGZL_LeakageVacuum newLeakageVacuum = db.JGZL_LeakageVacuum.FirstOrDefault(e => e.LeakageVacuumId == leakageVacuum.LeakageVacuumId); + if (newLeakageVacuum != null) + { + newLeakageVacuum.SystemName = leakageVacuum.SystemName; + newLeakageVacuum.SystemCode = leakageVacuum.SystemCode; + newLeakageVacuum.CheckItemResult1 = leakageVacuum.CheckItemResult1; + newLeakageVacuum.CheckItemResult2 = leakageVacuum.CheckItemResult2; + newLeakageVacuum.CheckItemResult3 = leakageVacuum.CheckItemResult3; + newLeakageVacuum.CheckItemResult4 = leakageVacuum.CheckItemResult4; + newLeakageVacuum.CheckItemResult5 = leakageVacuum.CheckItemResult5; + newLeakageVacuum.Conclusion = leakageVacuum.Conclusion; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除管道系统泄漏性/真空试验条件确认与试验记录 + /// + /// + public static void DeleteLeakageVacuumById(string leakageVacuumId) + { + SGGLDB db = Funs.DB; + Model.JGZL_LeakageVacuum leakageVacuum = db.JGZL_LeakageVacuum.FirstOrDefault(e => e.LeakageVacuumId == leakageVacuumId); + if (leakageVacuum != null) + { + db.JGZL_LeakageVacuum.DeleteOnSubmit(leakageVacuum); + db.SubmitChanges(); + } + } + } +} diff --git a/HJGL_DS/BLL/JGZL/LeakageVacuumTestRecordServic.cs b/HJGL_DS/BLL/JGZL/LeakageVacuumTestRecordServic.cs new file mode 100644 index 0000000..ab0f221 --- /dev/null +++ b/HJGL_DS/BLL/JGZL/LeakageVacuumTestRecordServic.cs @@ -0,0 +1,72 @@ +using Model; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + /// + /// 管道系统泄漏性/真空试验条件确认与试验记录 + /// + public class LeakageVacuumTestRecordServic + { + /// + /// 根据主键获取明细信息 + /// + /// + /// + public static List GetLeakageVacuumTestRecordByLeakageVacuumId(string leakageVacuumId) + { + return (from x in Funs.DB.JGZL_LeakageVacuumTestRecord where x.LeakageVacuumId == leakageVacuumId select x).ToList(); + } + + /// + /// 添加试验记录 + /// + /// + public static void AddLeakageVacuumTestRecord(Model.JGZL_LeakageVacuumTestRecord record) + { + SGGLDB db = Funs.DB; + Model.JGZL_LeakageVacuumTestRecord newRecord = new JGZL_LeakageVacuumTestRecord(); + newRecord.LeakageVacuumTestRecordId = record.LeakageVacuumTestRecordId; + newRecord.LeakageVacuumId = record.LeakageVacuumId; + newRecord.PipelineId = record.PipelineId; + newRecord.PipelineCode = record.PipelineCode; + newRecord.DesignPressure = record.DesignPressure; + newRecord.DesignTem = record.DesignTem; + newRecord.TestAmbientTemp = record.TestAmbientTemp; + newRecord.TestMediumTemp = record.TestMediumTemp; + newRecord.LeakPressure = record.LeakPressure; + newRecord.LeakMedium = record.LeakMedium; + newRecord.VacuumPressure = record.VacuumPressure; + newRecord.VacuumMedium = record.VacuumMedium; + db.JGZL_LeakageVacuumTestRecord.InsertOnSubmit(newRecord); + db.SubmitChanges(); + } + + /// + /// 根据主键Id删除试验记录 + /// + /// + public static void DeleteLeakageVacuumTestRecordByLeakageVacuumId(string leakageVacuumId) + { + SGGLDB db = Funs.DB; + var q = (from x in db.JGZL_LeakageVacuumTestRecord where x.LeakageVacuumId == leakageVacuumId select x).ToList(); + if (q.Count > 0) + { + db.JGZL_LeakageVacuumTestRecord.DeleteAllOnSubmit(q); + db.SubmitChanges(); + } + } + + public static Model.JGZL_LeakageVacuumTestRecord GetItemByIsoNo(string projectId, string isoNo) + { + return (from x in Funs.DB.JGZL_LeakageVacuumTestRecord + join y in Funs.DB.JGZL_LeakageVacuum on x.LeakageVacuumId equals y.LeakageVacuumId + where y.ProjectId == projectId && x.PipelineCode == isoNo + select x).FirstOrDefault(); + } + } +} diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道系统泄漏性、真空试验条件确认与试验记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道系统泄漏性、真空试验条件确认与试验记录.frx new file mode 100644 index 0000000..880f831 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道系统泄漏性、真空试验条件确认与试验记录.frx @@ -0,0 +1,285 @@ + + + using System; +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using System.Windows.Forms; +using System.Drawing; +using System.Data; +using FastReport; +using FastReport.Data; +using FastReport.Dialog; +using FastReport.Barcode; +using FastReport.Table; +using FastReport.Utils; + +namespace FastReport +{ + public class ReportScript + { + + private void Table3_ManualBuild(object sender, EventArgs e) + { + DataSourceBase rowData = Report.GetDataSource("Data"); + // init the data source + rowData.Init(); + + // print the first table row - it is a header + + // now enumerate the data source and print the table body + while (rowData.HasMoreRows) + { + // print the table body + Table3.PrintRow(0); + Table3.PrintColumns(); + + // go next data source row + rowData.Next(); + } + } + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道系统泄漏性试验记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道系统泄漏性试验记录.frx index 2a2cb0c..1cb41a1 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道系统泄漏性试验记录.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道系统泄漏性试验记录.frx @@ -1,5 +1,5 @@  - + using System; using System.Collections; using System.Collections.Generic; @@ -42,7 +42,7 @@ namespace FastReport } - + diff --git a/HJGL_DS/FineUIPro.Web/File/Word/JGZL/管道系统泄漏性试验记录导出模板.docx b/HJGL_DS/FineUIPro.Web/File/Word/JGZL/管道系统泄漏性试验记录导出模板.docx new file mode 100644 index 0000000000000000000000000000000000000000..16286c1b8a5234ab66407e12d7b9195b37b09eba GIT binary patch literal 15913 zcmeIZRdk$L&NgahW{R1anVDl|rkI)Sm>FVB%*@PXW@d(%nPO(n@9ycD?#}c&SLg1V zx7Mz**V>P&>XlU5dL${xfP$d`K>$Gk0Ra&Kt(WMag#ZHq6+i$1p#njHXp7j{I-A-$ z>#KO!n>y*zyW3b3=7NDxW&?q|@BiQRfA|j6s}5WCG9tBOJ|T)P8qpl(BpUIA(hssv z-GHK5q$e-OPssv0tJ?Y!<2mI57$6MyZ9MS@6KpiWtn8CxAFE+r2XS+vR~82nv`M%TEH8HeImgx zo~IA}W%8g|gH;TxS>G-|bSepxVIRa80va)J^lTi?_l>UgWYQKOD9k#BeDf;0?7kqs70i3ypn$msE(?$*t0fslGp#l4G zSPPrpDUuKF6`*A*v2(O~+p7~RAF30fbAC%O?_W<7(v$~rPs(S`rXY1U^clrlMfnr0 zqyA8t6^!a5TJeK;39>D6?AC_e3ZlsWLlYJ3fZ#%o5gPix026T}Ie00@jAuH1t1yXJxfq;Jg z1O-y~oBO7y`hbJIyYJS!cf!8AufC(HwG#vVZ_od8+yBG9`j@X>9zQAFD~L339&lbg z)}B%y5ypBX7PKz94GPyfOPc)Jd#19|=tdU?VL1~xnDMxuw&8u^=~Nx)d64XRPOX7K zM(Mhow%&l=#{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hj&~NgCT;RtSTUJWxB|QL{==6)(aAO88oEoghoed|G>b9BzbC z*MSxv=r&<>p7CuATt(Jm6L_Fp6B`xB2zMHoFJHu4Tv=Flgij)axk=SN zjj?8-2p&2ek@|3U-17Qnjo$|O@p7;C-Y!c^sl5I`vSji>cqsC#O! zbA)&+R?XM>jB}r`WrFUECJ{7o#hK!JWbnLBLY(dV>_7lTu096=f%r{GqyQ1OuXRr{5SG^9i7XuiYAY+TnKS@fI}F>G%faI{A>~7&Gq$S=G0lj6))qM1{H?5yIp^6 z_378;!nn;03u@W0`GO<9LVzG05Wb7UzWZvUl?*4IfRxRVJFjGJN##$f@XFPm8;*ap z8s5QIVBhy6=;XWQApJENGPJkrb54?fG)?DXCiPD> z{p+uPm{3)a`MZF>PsROJK<9gF$X{mUeg*!0GU%_soAKzG@oTZ} zPZ8yWe~9>N>F!tfuY~KLaEkY#uHQBB3;p`5guj!Uf8v3FUf(7B1J(JffWK2oe-$uA z{Z|2h5KF(pf6em$6yQwv?;G%+oc~wwukrp*a1q-dV6*o@?f*poU-5tc<^K~61hn=Z eD*p53|A+$$GT`s#4FrVn{_ubIka+Ij{`-GgG0^q^ literal 0 HcmV?d00001 diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj index 1f937f8..ea2bfce 100644 --- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj +++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj @@ -1408,6 +1408,7 @@ + @@ -7090,6 +7091,13 @@ InsulationAcceptanceRecordEdit.aspx + + LeakageVacuum.aspx + ASPXCodeBehind + + + LeakageVacuum.aspx + ModRepairQualityCertificate.aspx ASPXCodeBehind diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user index e3436b8..6e29203 100644 --- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user +++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user @@ -2,7 +2,7 @@ true - Release|Any CPU + Debug|Any CPU diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs index dba223d..defdfa0 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs @@ -159,10 +159,16 @@ namespace FineUIPro.Web.JGZL else { this.CertificateId = string.Empty; - this.txtInstallationInspection.Text = "浙江省特种设备研究院"; + this.txtCertificateCode.Text = "0XXX-91330921MA2A2R3F6G-" + DateTime.Now.Year; + var insta = (from x in Funs.DB.Project_Installation where x.ProjectId == this.CurrUser.LoginProjectId select x).FirstOrDefault(); + if (insta != null) + { + this.txtDeliveryUnit.Text = insta.InstallationName; + this.txtDeliveryUnitCode.Text = insta.InstallationCode; + } + this.txtInstallationInspection.Text = "浙江省特种设备科学研究院"; this.txtConstructionUnit.Text = "浙江石油化工有限公司"; this.txtSpecialEquipmentProductionLicenseCode.Text = "TS3833339-2028"; - //this.txtRemark.Text = "GB50517-2023"; this.txtPipelineLength.Text = BLL.HJGL_PW_IsoInfoService.GetPipeLineLengthList(this.tvControlItem.SelectedNodeID).Value.ToString(".##"); } } diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineQualityCertificate2020.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineQualityCertificate2020.aspx.cs index 0687081..63165e4 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineQualityCertificate2020.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineQualityCertificate2020.aspx.cs @@ -141,6 +141,13 @@ namespace FineUIPro.Web.JGZL else { this.CertificateId = string.Empty; + this.txtCertificateCode.Text = "0XXX-31330921MA2A2R3F6G-" + DateTime.Now.Year; + var insta = (from x in Funs.DB.Project_Installation where x.ProjectId == this.CurrUser.LoginProjectId select x).FirstOrDefault(); + if (insta != null) + { + this.txtDeliveryUnit.Text = insta.InstallationName; + this.txtDeliveryUnitCode.Text = insta.InstallationCode; + } this.txtInstallationInspection.Text = "浙江省特种设备科学研究院"; this.txtConstructionUnit.Text = "浙江石油化工有限公司"; this.txtSpecialEquipmentProductionLicenseCode.Text = "TS3833339-2028"; diff --git a/HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx b/HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx new file mode 100644 index 0000000..04be9f9 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx @@ -0,0 +1,225 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LeakageVacuum.aspx.cs" Inherits="FineUIPro.Web.JGZL.LeakageVacuum" %> + + + + + + + 管道系统泄漏性/真空试验条件确认与试验记录 + + +
+ + + + + + + + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + + + + + <%-- + + + --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + + + --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx.cs new file mode 100644 index 0000000..591bd50 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx.cs @@ -0,0 +1,817 @@ +using Aspose.Words; +using Aspose.Words.Tables; +using BLL; +using FastReport.DevComponents.DotNetBar; +using Model; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.DirectoryServices.ActiveDirectory; +using System.IO; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.JGZL +{ + public partial class LeakageVacuum : PageBase + { + #region 定义项 + /// + /// 主键 + /// + private string LeakageVacuumTestRecordId + { + get + { + return (string)ViewState["LeakageVacuumTestRecordId"]; + } + set + { + ViewState["LeakageVacuumTestRecordId"] = value; + } + } + + /// + /// 项目Id + /// + private string ProjectId + { + get + { + return (string)ViewState["ProjectId"]; + } + set + { + ViewState["ProjectId"] = value; + } + } + + /// + /// 外键—LeakageVacuumId + /// + public string LeakageVacuumId + { + get + { + return (string)ViewState["LeakageVacuumId"]; + } + set + { + ViewState["LeakageVacuumId"] = value; + } + } + + /// + /// 定义集合 + /// + private static List itemLists = new List(); + #endregion + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); + + this.drpProjectId.DataTextField = "ProjectCode"; + this.drpProjectId.DataValueField = "ProjectId"; + this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1"); + this.drpProjectId.DataBind(); + Funs.FineUIPleaseSelect(this.drpProjectId); + + this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId; + this.InitTreeMenu();//加载树 + this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue; + this.ProjectId = this.tvControlItem.SelectedNodeID; + + DataIsoInfo(); + } + } + + private void DataIsoInfo() + { + this.txtSystemCode.Text = string.Empty; + this.txtSystemName.Text = string.Empty; + this.drpCheckResult1.SelectedValue = "合格"; + this.drpCheckResult2.SelectedValue = "合格"; + this.drpCheckResult3.SelectedValue = "合格"; + this.drpCheckResult4.SelectedValue = "合格"; + this.drpCheckResult5.SelectedValue = "合格"; + itemLists.Clear(); + if (!string.IsNullOrEmpty(this.ProjectId)) + { + var record = BLL.LeakageVacuumService.GetLeakageVacuumByProjectId(this.ProjectId); + if (record != null) + { + this.LeakageVacuumId = record.LeakageVacuumId; + this.txtSystemCode.Text = record.SystemCode; + this.txtSystemName.Text = record.SystemName; + this.drpCheckResult1.SelectedValue = record.CheckItemResult1; + this.drpCheckResult2.SelectedValue = record.CheckItemResult2; + this.drpCheckResult3.SelectedValue = record.CheckItemResult3; + this.drpCheckResult4.SelectedValue = record.CheckItemResult4; + this.drpCheckResult5.SelectedValue = record.CheckItemResult5; + + var isoInfos = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.ProjectId); + itemLists = BLL.LeakageVacuumTestRecordServic.GetLeakageVacuumTestRecordByLeakageVacuumId(this.LeakageVacuumId); + if (itemLists.Count > 0) + { + foreach (var item in isoInfos) + { + var iso = itemLists.Where(x => x.PipelineId != null && !string.IsNullOrEmpty(x.PipelineId) && x.PipelineId == item.ISO_ID).FirstOrDefault(); + if (iso == null) + { + Model.JGZL_LeakageVacuumTestRecord newIso = new JGZL_LeakageVacuumTestRecord(); + newIso.LeakageVacuumTestRecordId = SQLHelper.GetNewID(typeof(Model.JGZL_LeakageVacuumTestRecord)); + newIso.PipelineId = item.ISO_ID; + newIso.PipelineCode = item.ISO_IsoNo; + newIso.DesignPressure = item.ISO_DesignPress.HasValue ? item.ISO_DesignPress.Value.ToString("0.##########") : ""; + newIso.DesignTem = item.ISO_DesignTemperature.HasValue ? item.ISO_DesignTemperature.Value.ToString("0.##########") : ""; + newIso.LeakPressure = item.LeakageTest.ToString(); + itemLists.Add(newIso); + } + } + } + else + { + foreach (var item in isoInfos) + { + Model.JGZL_LeakageVacuumTestRecord newItem = new JGZL_LeakageVacuumTestRecord(); + newItem.LeakageVacuumTestRecordId = SQLHelper.GetNewID(typeof(Model.JGZL_LeakageVacuumTestRecord)); + newItem.PipelineId = item.ISO_ID; + newItem.PipelineCode = item.ISO_IsoNo; + newItem.DesignPressure = item.ISO_DesignPress.HasValue ? item.ISO_DesignPress.Value.ToString("0.##########") : ""; + newItem.DesignTem = item.ISO_DesignTemperature.HasValue ? item.ISO_DesignTemperature.Value.ToString("0.##########") : ""; + newItem.LeakPressure = item.LeakageTest.ToString(); + itemLists.Add(newItem); + } + } + this.Grid1.DataSource = itemLists; + this.Grid1.DataBind(); + } + } + } + #endregion + + #region 加载树项目 + /// + /// 加载树 + /// + private void InitTreeMenu() + { + this.tvControlItem.Nodes.Clear(); + TreeNode rootNode = new TreeNode(); + rootNode.Text = "项目"; + rootNode.ToolTip = "项目"; + rootNode.NodeID = "0"; + rootNode.Expanded = true; + this.tvControlItem.Nodes.Add(rootNode); + + List projects = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1"); + if (this.drpProjectId.SelectedValue != BLL.Const._Null) + { + projects = projects.Where(e => e.ProjectId == this.drpProjectId.SelectedValue).ToList(); + } + foreach (var item in projects) + { + TreeNode rootProjectNode = new TreeNode();//定义根节点 + rootProjectNode.Text = item.ProjectCode; + rootProjectNode.NodeID = item.ProjectId; + rootProjectNode.EnableClickEvent = true; + rootProjectNode.Expanded = true; + rootProjectNode.ToolTip = item.ProjectName; + rootProjectNode.CommandName = "项目名称"; + rootNode.Nodes.Add(rootProjectNode); + } + } + #endregion + + #region 点击TreeView + /// + /// 点击TreeView + /// + /// + /// + protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e) + { + if (this.tvControlItem.SelectedNodeID != "0") + { + this.BindGrid(); + } + } + #endregion + + #region 数据绑定 + /// + /// 数据绑定 + /// + private void BindGrid() + { + //string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1"); + string strSql = @"SELECT * from JGZL_LeakageVacuumTestRecord m left join JGZL_LeakageVacuum b on b.LeakageVacuumId = m.LeakageVacuumId where 1=1"; + List listStr = new List(); + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + strSql += " AND b.ProjectId = @ProjectId"; + listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID)); + } + //else + //{ + // strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 "; + // listStr.Add(new SqlParameter("@ProjectId", projectIds)); + //} + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + // 2.获取当前分页数据 + Grid1.RecordCount = tb.Rows.Count; + //tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 分页排序 + #region 页索引改变事件 + /// + /// 页索引改变事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + #endregion + + #region 排序 + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + BindGrid(); + } + #endregion + + #region 分页选择下拉改变事件 + /// + /// 分页选择下拉改变事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + #endregion + #endregion + + #region 查询 + /// + ///查询 + /// + /// + /// + protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) + { + this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue; + this.ProjectId = this.tvControlItem.SelectedNodeID; + this.InitTreeMenu(); + DataIsoInfo(); + } + + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 维护 + /// + /// 增加 + /// + /// + /// + protected void btnAdd_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + JArray teamGroupData = Grid1.GetMergedData(); + List list = new List(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + list.Add(values); + } + + JObject defaultObj = new JObject + { + { "LeakageVacuumTestRecordId", Guid.NewGuid() }, + { "LeakageVacuumId", this.LeakageVacuumId }, + { "PipelineId", "" }, + { "PipelineCode", "" }, + { "DesignPressure", "" }, + { "DesignTem", "" }, + { "TestAmbientTemp", "" }, + { "TestMediumTemp", "" }, + { "LeakPressure", "" }, + { "LeakMedium", "" }, + { "VacuumPressure", "" }, + { "VacuumMedium", "" }, + { + "Delete3", + String.Format("", + GetDeleteScriptGrid1(), IconHelper.GetResolvedIconUrl(Icon.Delete)) + } + }; + list.Add(defaultObj); + Grid1.DataSource = list; + Grid1.DataBind(); + //PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PressureTestOfPipelineSystemRecordEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - "))); + } + else + { + Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); + return; + } + } + else + { + Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); + return; + } + } + + protected void Grid1_PreDataBound(object sender, EventArgs e) + { + // 设置LinkButtonField的点击客户端事件 + LinkButtonField deleteField = Grid1.FindColumn("Delete3") as LinkButtonField; + deleteField.OnClientClick = GetDeleteScriptGrid1(); + } + + /// + /// 删除提示 + /// + /// + private string GetDeleteScriptGrid1() + { + return Confirm.GetShowReference("删除选中行?", String.Empty, MessageBoxIcon.Question, + Grid1.GetDeleteSelectedRowsReference(), String.Empty); + } + + #endregion + + #region 保存 + /// + /// 保存按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, + Const.JGZL_LeakageVacuumMenuId, Const.BtnSave)) + { + Model.JGZL_LeakageVacuum newRecord = new JGZL_LeakageVacuum(); + newRecord.SystemCode = this.txtSystemCode.Text; + newRecord.SystemName = this.txtSystemName.Text; + newRecord.CheckItemResult1 = this.drpCheckResult1.SelectedValue; + newRecord.CheckItemResult2 = this.drpCheckResult2.SelectedValue; + newRecord.CheckItemResult3 = this.drpCheckResult3.SelectedValue; + newRecord.CheckItemResult4 = this.drpCheckResult4.SelectedValue; + newRecord.CheckItemResult5 = this.drpCheckResult5.SelectedValue; + if (!string.IsNullOrEmpty(this.LeakageVacuumId)) + { + newRecord.LeakageVacuumId = this.LeakageVacuumId; + BLL.LeakageVacuumService.UpdateLeakageVacuum(newRecord); + } + else + { + newRecord.ProjectId = this.tvControlItem.SelectedNodeID; + newRecord.LeakageVacuumId = SQLHelper.GetNewID(typeof(Model.JGZL_LeakageVacuum)); + this.LeakageVacuumId = newRecord.LeakageVacuumId; + BLL.LeakageVacuumService.AddLeakageVacuum(newRecord); + } + saveItem(); + BindGrid(); + ShowNotify("保存成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + + void saveItem() + { + itemLists.Clear(); + BLL.LeakageVacuumTestRecordServic.DeleteLeakageVacuumTestRecordByLeakageVacuumId(this.LeakageVacuumId); + JArray teamGroupData = Grid1.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.JGZL_LeakageVacuumTestRecord newDetail = new Model.JGZL_LeakageVacuumTestRecord + { + LeakageVacuumTestRecordId = values.Value("LeakageVacuumTestRecordId"), + LeakageVacuumId = this.LeakageVacuumId, + PipelineId = values.Value("PipelineId"), + PipelineCode = values.Value("PipelineCode"), + DesignPressure = values.Value("DesignPressure"), + DesignTem = values.Value("DesignTem"), + TestAmbientTemp = values.Value("TestAmbientTemp"), + TestMediumTemp = values.Value("TestMediumTemp"), + LeakPressure = values.Value("LeakPressure"), + LeakMedium = values.Value("LeakMedium"), + VacuumPressure = values.Value("VacuumPressure"), + VacuumMedium = values.Value("VacuumMedium"), + }; + itemLists.Add(newDetail); + } + try + { + if (itemLists.Count > 0) + { + Funs.DB.JGZL_LeakageVacuumTestRecord.InsertAllOnSubmit(itemLists); + } + Funs.DB.SubmitChanges(); + } + catch (Exception) + { + return; + } + } + #endregion + + #region 打印 + /// + /// 打印 + /// + /// + /// + protected void btnPrint_Click(object sender, EventArgs e) + { + string projectId = this.tvControlItem.SelectedNodeID; + + if (projectId != null) + { + string initTemplatePath = ""; + string rootPath = Server.MapPath("~/"); + BLL.Common.FastReportService.ResetData(); + + var report = BLL.LeakageVacuumService.GetLeakageVacuumByProjectId(projectId); + if (report != null) + { + DataTable dt = new DataTable(); + dt.TableName = "MainData"; + dt.Columns.Add("ProjectName"); + dt.Columns.Add("SystemName"); + dt.Columns.Add("SystemCode"); + dt.Columns.Add("CheckItemResult1"); + dt.Columns.Add("CheckItemResult2"); + dt.Columns.Add("CheckItemResult3"); + dt.Columns.Add("CheckItemResult4"); + dt.Columns.Add("CheckItemResult5"); + dt.Columns.Add("Conclusion"); + + var newRow = dt.NewRow(); + newRow["ProjectName"] = BLL.Base_ProjectService.GetProjectByProjectId(report.ProjectId).ProjectName; + newRow["SystemName"] = this.txtSystemName.Text.Trim(); + newRow["SystemCode"] = this.txtSystemCode.Text.Trim(); + newRow["CheckItemResult1"] = report.CheckItemResult1; + newRow["CheckItemResult2"] = report.CheckItemResult2; + newRow["CheckItemResult3"] = report.CheckItemResult3; + newRow["CheckItemResult4"] = report.CheckItemResult4; + newRow["CheckItemResult5"] = report.CheckItemResult5; + newRow["Conclusion"] = report.Conclusion; + dt.Rows.Add(newRow); + BLL.Common.FastReportService.AddFastreportTable(dt); + + var recordLists = BLL.LeakageVacuumTestRecordServic.GetLeakageVacuumTestRecordByLeakageVacuumId(report.LeakageVacuumId); + if (recordLists.Count == Grid1.GetMergedData().Count) + { + DataTable itemdt = new DataTable(); + itemdt.TableName = "Data"; + itemdt.Columns.Add("PipelineNo"); + itemdt.Columns.Add("DesignPressure"); + itemdt.Columns.Add("DesignTem"); + itemdt.Columns.Add("TestAmbientTemp"); + itemdt.Columns.Add("TestMediumTemp"); + itemdt.Columns.Add("LeakPressure"); + itemdt.Columns.Add("LeakMedium"); + itemdt.Columns.Add("VacuumPressure"); + itemdt.Columns.Add("VacuumMedium"); + + foreach (var item in recordLists) + { + var newRow2 = itemdt.NewRow(); + newRow2["PipelineNo"] = item.PipelineCode; + newRow2["DesignPressure"] = item.DesignPressure; + newRow2["DesignTem"] = item.DesignTem; + newRow2["TestAmbientTemp"] = item.TestAmbientTemp; + newRow2["TestMediumTemp"] = item.TestMediumTemp; + newRow2["LeakPressure"] = item.LeakPressure; + newRow2["LeakMedium"] = item.LeakMedium; + newRow2["VacuumPressure"] = item.VacuumPressure; + newRow2["VacuumMedium"] = item.VacuumMedium; + itemdt.Rows.Add(newRow2); + } + BLL.Common.FastReportService.AddFastreportTable(itemdt); + + Dictionary keyValuePairs = new Dictionary(); + //keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); + BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); + + initTemplatePath = "File\\Fastreport\\JGZL\\管道系统泄漏性、真空试验条件确认与试验记录.frx"; + if (File.Exists(rootPath + initTemplatePath)) + { + PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath))); + } + } + else + { + Alert.ShowInTop("请先保存数据!", MessageBoxIcon.Warning); + return; + } + } + else + { + Alert.ShowInTop("请先保存数据!", MessageBoxIcon.Warning); + return; + } + } + else + { + Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); + return; + } + } + #endregion + + #region 导出按钮 + /// 导出按钮 + /// + /// + /// + protected void btnOut_Click(object sender, EventArgs e) + { + string rootPath = Server.MapPath("~/"); + string initTemplatePath = string.Empty; + string uploadfilepath = string.Empty; + string newUrl = string.Empty; + string filePath = string.Empty; + + //每页显示的固定数据行数 + int rowsPerPage = 8; + + string projectId = this.tvControlItem.SelectedNodeID; + if (!string.IsNullOrEmpty(projectId)) + { + var report = BLL.LeakageVacuumService.GetLeakageVacuumByProjectId(projectId); + if (report != null) + { + initTemplatePath = Const.JGZL_LeakageVacuumUrl; + uploadfilepath = rootPath + initTemplatePath; + + newUrl = uploadfilepath.Replace("管道系统泄漏性试验记录导出模板", "管道系统泄漏性试验记录"); + if (File.Exists(newUrl)) + { + File.Delete(newUrl); + } + File.Copy(uploadfilepath, newUrl); + //更新书签内容 + Document doc = new Aspose.Words.Document(newUrl); + DocumentBuilder builder = new DocumentBuilder(doc); + + Aspose.Words.Tables.Table table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, 0, true); + + Bookmark projectName = doc.Range.Bookmarks["ProjectName"]; + if (projectName != null) + { + projectName.Text = BLL.Base_ProjectService.GetProjectByProjectId(report.ProjectId).ProjectName; + } + Bookmark systemName = doc.Range.Bookmarks["SystemName"]; + if (systemName != null) + { + systemName.Text = report.SystemName; + } + Bookmark systemCode = doc.Range.Bookmarks["SystemCode"]; + if (systemCode != null) + { + systemCode.Text = report.SystemCode; + } + Bookmark checkItemResult1 = doc.Range.Bookmarks["CheckItemResult1"]; + if (checkItemResult1 != null) + { + checkItemResult1.Text = report.CheckItemResult1; + } + Bookmark checkItemResult2 = doc.Range.Bookmarks["CheckItemResult2"]; + if (checkItemResult2 != null) + { + checkItemResult2.Text = report.CheckItemResult2; + } + Bookmark checkItemResult3 = doc.Range.Bookmarks["CheckItemResult3"]; + if (checkItemResult3 != null) + { + checkItemResult3.Text = report.CheckItemResult3; + } + Bookmark checkItemResult4 = doc.Range.Bookmarks["CheckItemResult4"]; + if (checkItemResult4 != null) + { + checkItemResult4.Text = report.CheckItemResult4; + } + Bookmark checkItemResult5 = doc.Range.Bookmarks["CheckItemResult5"]; + if (checkItemResult5 != null) + { + checkItemResult5.Text = report.CheckItemResult5; + } + + // 设置表头行重复显示 + table.Rows[0].RowFormat.HeadingFormat = true; + table.Rows[1].RowFormat.HeadingFormat = true; + table.Rows[2].RowFormat.HeadingFormat = true; + table.Rows[3].RowFormat.HeadingFormat = true; + table.Rows[4].RowFormat.HeadingFormat = true; + table.Rows[5].RowFormat.HeadingFormat = true; + table.Rows[6].RowFormat.HeadingFormat = true; + table.Rows[7].RowFormat.HeadingFormat = true; + table.Rows[8].RowFormat.HeadingFormat = true; + table.Rows[9].RowFormat.HeadingFormat = true; + table.Rows[10].RowFormat.HeadingFormat = true; + + // ====固定表格布局===== + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + table.AllowAutoFit = false; + table.Alignment = TableAlignment.Center; + + // 先记录页尾行,并从表格中移除 + //Row footerRow = table.Rows[table.Rows.Count - 1]; + //table.Rows.RemoveAt(table.Rows.Count - 1); + + var recordLists = BLL.LeakageVacuumTestRecordServic.GetLeakageVacuumTestRecordByLeakageVacuumId(report.LeakageVacuumId); + if (recordLists.Count == Grid1.GetMergedData().Count) + { + int i = 0; + foreach (var item in recordLists) + { + //创建行 + Aspose.Words.Tables.Row row = new Aspose.Words.Tables.Row(doc); + row.Cells.Add(CreateCell(item.PipelineCode, doc, 128.42, "", ""));//管道编号/单线号 + row.Cells.Add(CreateCell(item.DesignPressure, doc, 35.72, "", ""));//设计压力 + row.Cells.Add(CreateCell(item.DesignTem, doc, 41.96, "", ""));//设计温度 + row.Cells.Add(CreateCell(item.TestAmbientTemp, doc, 52.73, "", ""));//试验环境温度℃ + row.Cells.Add(CreateCell(item.TestMediumTemp, doc, 41.96, "", ""));//试验介质温度℃ + row.Cells.Add(CreateCell(item.LeakPressure, doc, 39.4, "", ""));//泄漏性试验-压力 + row.Cells.Add(CreateCell(item.LeakMedium, doc, 41.96, "", ""));//泄漏性试验-介质 + row.Cells.Add(CreateCell(item.VacuumPressure, doc, 45.07, "", ""));//真空试验-压力 + row.Cells.Add(CreateCell(item.VacuumMedium, doc, 41.39, "", ""));//真空试验-介质 + + table.Rows.Insert(i + 11, row); + } + + // 计算并插入空白行,填满整页 + // 计算总数据行数 + int totalDataRows = recordLists.Count; + // 计算需要补充的空白行数量 + int remainder = totalDataRows % rowsPerPage; + int needBlankRows = remainder == 0 ? 0 : rowsPerPage - remainder; + + // 插入空白行(和数据行格式保持一致,仅内容为空) + //for (int i = 0; i < needBlankRows - 1; i++) + //{ + // Aspose.Words.Tables.Row blankRow = new Aspose.Words.Tables.Row(doc); + // 空白行的单元格宽度和数据行保持一致 + //blankRow.Cells.Add(CreateCell("", doc, 22.68, "", "")); + //blankRow.Cells.Add(CreateCell("", doc, 65.49, "", "")); + //blankRow.Cells.Add(CreateCell("", doc, 37.14, "", "")); + //blankRow.Cells.Add(CreateCell("", doc, 27.78, "", "")); + //blankRow.Cells.Add(CreateCell("", doc, 28.06, "", "")); + //blankRow.Cells.Add(CreateCell("", doc, 28, "", "")); + //blankRow.Cells.Add(CreateCell("", doc, 34.87, "", "")); + //blankRow.Cells.Add(CreateCell("", doc, 43.66, "", "")); + //blankRow.Cells.Add(CreateCell("", doc, 59.82, "", "")); + //blankRow.Cells.Add(CreateCell("", doc, 34.58, "", "")); + //blankRow.Cells.Add(CreateCell("", doc, 33.74, "", "")); + //blankRow.Cells.Add(CreateCell("", doc, 27, "", "")); + //blankRow.Cells.Add(CreateCell("", doc, 45.93, "", "")); + //blankRow.Cells.Add(CreateCell("", doc, 37.14, "", "")); + //blankRow.Cells.Add(CreateCell("", doc, 30.62, "", "")); + //blankRow.Cells.Add(CreateCell("", doc, 48.76, "", "")); + //blankRow.Cells.Add(CreateCell("", doc, 25.23, "", "")); + //blankRow.Cells.Add(CreateCell("", doc, 28.92, "", "")); + //blankRow.Cells.Add(CreateCell("", doc, 48.76, "", "")); + //blankRow.Cells.Add(CreateCell("", doc, 26.08, "", "")); + //blankRow.Cells.Add(CreateCell("", doc, 56.7, "", "")); + //blankRow.Cells.Add(CreateCell("", doc, 22.11, "", "")); + // 插入到表格最后一行 + // table.Rows.Add(blankRow); + //} + //把页尾行重新加回表格最后 + //table.Rows.Add(footerRow); + + doc.Save(newUrl); + } + else + { + Alert.ShowInTop("请先保存数据!", MessageBoxIcon.Warning); + return; + } + + string fileName = Path.GetFileName(newUrl); + FileInfo info = new FileInfo(newUrl); + long fileSize = info.Length; + Response.Clear(); + Response.ContentType = "application/x-zip-compressed"; + Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8)); + Response.AddHeader("Content-Length", fileSize.ToString()); + Response.TransmitFile(newUrl, 0, fileSize); + Response.Flush(); + Response.Close(); + File.Delete(newUrl); + } + else + { + Alert.ShowInTop("没有要导出的数据!", MessageBoxIcon.Warning); + return; + } + } + else + { + Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); + return; + } + } + + public static Cell CreateCell(String value, Document doc, double cellWidth, string cellMerge = "", string CenterPage = "", string cellUnitLeft = "") + { + Cell cell = new Cell(doc); + Paragraph p = new Paragraph(doc); + if (!string.IsNullOrEmpty(cellMerge)) + { + if (cellMerge == "0") + { + cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;//竖直方向合并的第一个单元格 + } + else + { + cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;//竖直方向合并的第一个单元格 + } + + } + else + { + cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None; + } + if (!string.IsNullOrEmpty(CenterPage)) + { + //序号 + value = " " + value; + } + if (!string.IsNullOrEmpty(cellUnitLeft)) + { + p.ParagraphFormat.Alignment = ParagraphAlignment.Left;//表格中字体居左 + } + else + { + p.ParagraphFormat.Alignment = ParagraphAlignment.Center;//表格中字体居中 + } + + + p.AppendChild(new Run(doc, value)); + + cell.CellFormat.Width = cellWidth; + + cell.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center; + + cell.CellFormat.Borders.LineWidth = 0.75; + + cell.AppendChild(p); + return cell; + } + + #endregion + } +} \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx.designer.cs new file mode 100644 index 0000000..16b8b8a --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx.designer.cs @@ -0,0 +1,341 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.JGZL +{ + + + public partial class LeakageVacuum + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// panelLeftRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelLeftRegion; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// drpProjectId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpProjectId; + + /// + /// tvControlItem 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Tree tvControlItem; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnAdd 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAdd; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnPrint 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnPrint; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtSystemName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSystemName; + + /// + /// txtSystemCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSystemCode; + + /// + /// drpCheckResult1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpCheckResult1; + + /// + /// drpCheckResult2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpCheckResult2; + + /// + /// drpCheckResult3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpCheckResult3; + + /// + /// drpCheckResult4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpCheckResult4; + + /// + /// drpCheckResult5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpCheckResult5; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// txtPipelineCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPipelineCode; + + /// + /// txtDesignPressure 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDesignPressure; + + /// + /// txtDesignTem 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDesignTem; + + /// + /// txtTestAmbientTemp 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTestAmbientTemp; + + /// + /// txtTestMediumTemp 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTestMediumTemp; + + /// + /// txtLeakPressure 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtLeakPressure; + + /// + /// txtLeakMedium 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtLeakMedium; + + /// + /// txtVacuumPressure 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtVacuumPressure; + + /// + /// txtVacuumMedium 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtVacuumMedium; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// WindowPrint 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowPrint; + } +} diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ModRepairQualityCertificate.aspx b/HJGL_DS/FineUIPro.Web/JGZL/ModRepairQualityCertificate.aspx index e37c8ec..5b13c26 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/ModRepairQualityCertificate.aspx +++ b/HJGL_DS/FineUIPro.Web/JGZL/ModRepairQualityCertificate.aspx @@ -81,16 +81,21 @@ - + - + <%----%> + + + + + - + @@ -138,7 +143,7 @@ - + <%-- @@ -149,7 +154,7 @@ - + --%> <%-- - /// txtPipeCategory 控件。 + /// drpPipeCategory 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtPipeCategory; + protected global::FineUIPro.DropDownList drpPipeCategory; /// /// cblConCategory 控件。 @@ -347,42 +347,6 @@ namespace FineUIPro.Web.JGZL /// protected global::FineUIPro.DatePicker txtCompletionDate; - /// - /// Label2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Label Label2; - - /// - /// txtQC_Inspector 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtQC_Inspector; - - /// - /// Label3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Label Label3; - - /// - /// txtQA_Engineer 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtQA_Engineer; - /// /// WindowPrint 控件。 /// diff --git a/HJGL_DS/FineUIPro.Web/Web.config b/HJGL_DS/FineUIPro.Web/Web.config index 3c98f31..557f12f 100644 --- a/HJGL_DS/FineUIPro.Web/Web.config +++ b/HJGL_DS/FineUIPro.Web/Web.config @@ -67,7 +67,7 @@ - + diff --git a/HJGL_DS/Model/Model.cs b/HJGL_DS/Model/Model.cs index 449453e..8f1b68e 100644 --- a/HJGL_DS/Model/Model.cs +++ b/HJGL_DS/Model/Model.cs @@ -431,6 +431,12 @@ namespace Model partial void InsertJGZL_InsulationAcceptanceRecordItem(JGZL_InsulationAcceptanceRecordItem instance); partial void UpdateJGZL_InsulationAcceptanceRecordItem(JGZL_InsulationAcceptanceRecordItem instance); partial void DeleteJGZL_InsulationAcceptanceRecordItem(JGZL_InsulationAcceptanceRecordItem instance); + partial void InsertJGZL_LeakageVacuum(JGZL_LeakageVacuum instance); + partial void UpdateJGZL_LeakageVacuum(JGZL_LeakageVacuum instance); + partial void DeleteJGZL_LeakageVacuum(JGZL_LeakageVacuum instance); + partial void InsertJGZL_LeakageVacuumTestRecord(JGZL_LeakageVacuumTestRecord instance); + partial void UpdateJGZL_LeakageVacuumTestRecord(JGZL_LeakageVacuumTestRecord instance); + partial void DeleteJGZL_LeakageVacuumTestRecord(JGZL_LeakageVacuumTestRecord instance); partial void InsertJGZL_LeakTestOfPipelineSystemRecord(JGZL_LeakTestOfPipelineSystemRecord instance); partial void UpdateJGZL_LeakTestOfPipelineSystemRecord(JGZL_LeakTestOfPipelineSystemRecord instance); partial void DeleteJGZL_LeakTestOfPipelineSystemRecord(JGZL_LeakTestOfPipelineSystemRecord instance); @@ -2084,6 +2090,22 @@ namespace Model } } + public System.Data.Linq.Table JGZL_LeakageVacuum + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table JGZL_LeakageVacuumTestRecord + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table JGZL_LeakTestOfPipelineSystemRecord { get @@ -5011,6 +5033,8 @@ namespace Model private EntitySet _JGZL_InsulationAcceptanceRecord; + private EntitySet _JGZL_LeakageVacuum; + private EntitySet _JGZL_LeakTestOfPipelineSystemRecord; private EntitySet _JGZL_MaterialIdentificationInspectionRecord; @@ -5210,6 +5234,7 @@ namespace Model this._JGZL_IndustrialPipelineInstallationQualityCertificate = new EntitySet(new Action(this.attach_JGZL_IndustrialPipelineInstallationQualityCertificate), new Action(this.detach_JGZL_IndustrialPipelineInstallationQualityCertificate)); this._JGZL_IndustrialPipelineInstallationSummary = new EntitySet(new Action(this.attach_JGZL_IndustrialPipelineInstallationSummary), new Action(this.detach_JGZL_IndustrialPipelineInstallationSummary)); this._JGZL_InsulationAcceptanceRecord = new EntitySet(new Action(this.attach_JGZL_InsulationAcceptanceRecord), new Action(this.detach_JGZL_InsulationAcceptanceRecord)); + this._JGZL_LeakageVacuum = new EntitySet(new Action(this.attach_JGZL_LeakageVacuum), new Action(this.detach_JGZL_LeakageVacuum)); this._JGZL_LeakTestOfPipelineSystemRecord = new EntitySet(new Action(this.attach_JGZL_LeakTestOfPipelineSystemRecord), new Action(this.detach_JGZL_LeakTestOfPipelineSystemRecord)); this._JGZL_MaterialIdentificationInspectionRecord = new EntitySet(new Action(this.attach_JGZL_MaterialIdentificationInspectionRecord), new Action(this.detach_JGZL_MaterialIdentificationInspectionRecord)); this._JGZL_MaterialQualityCertificateDoc = new EntitySet(new Action(this.attach_JGZL_MaterialQualityCertificateDoc), new Action(this.detach_JGZL_MaterialQualityCertificateDoc)); @@ -6540,6 +6565,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_LeakageVacuum_Base_Project", Storage="_JGZL_LeakageVacuum", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet JGZL_LeakageVacuum + { + get + { + return this._JGZL_LeakageVacuum; + } + set + { + this._JGZL_LeakageVacuum.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_LeakTestOfPipelineSystemRecord_Base_Project", Storage="_JGZL_LeakTestOfPipelineSystemRecord", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] public EntitySet JGZL_LeakTestOfPipelineSystemRecord { @@ -7742,6 +7780,18 @@ namespace Model entity.Base_Project = null; } + private void attach_JGZL_LeakageVacuum(JGZL_LeakageVacuum entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_JGZL_LeakageVacuum(JGZL_LeakageVacuum entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + private void attach_JGZL_LeakTestOfPipelineSystemRecord(JGZL_LeakTestOfPipelineSystemRecord entity) { this.SendPropertyChanging(); @@ -90909,6 +90959,720 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_LeakageVacuum")] + public partial class JGZL_LeakageVacuum : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _LeakageVacuumId; + + private string _ProjectId; + + private string _SystemName; + + private string _SystemCode; + + private string _CheckItemResult1; + + private string _CheckItemResult2; + + private string _CheckItemResult3; + + private string _CheckItemResult4; + + private string _CheckItemResult5; + + private string _Conclusion; + + private EntityRef _Base_Project; + + private EntitySet _JGZL_LeakageVacuumTestRecord; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnLeakageVacuumIdChanging(string value); + partial void OnLeakageVacuumIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnSystemNameChanging(string value); + partial void OnSystemNameChanged(); + partial void OnSystemCodeChanging(string value); + partial void OnSystemCodeChanged(); + partial void OnCheckItemResult1Changing(string value); + partial void OnCheckItemResult1Changed(); + partial void OnCheckItemResult2Changing(string value); + partial void OnCheckItemResult2Changed(); + partial void OnCheckItemResult3Changing(string value); + partial void OnCheckItemResult3Changed(); + partial void OnCheckItemResult4Changing(string value); + partial void OnCheckItemResult4Changed(); + partial void OnCheckItemResult5Changing(string value); + partial void OnCheckItemResult5Changed(); + partial void OnConclusionChanging(string value); + partial void OnConclusionChanged(); + #endregion + + public JGZL_LeakageVacuum() + { + this._Base_Project = default(EntityRef); + this._JGZL_LeakageVacuumTestRecord = new EntitySet(new Action(this.attach_JGZL_LeakageVacuumTestRecord), new Action(this.detach_JGZL_LeakageVacuumTestRecord)); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeakageVacuumId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string LeakageVacuumId + { + get + { + return this._LeakageVacuumId; + } + set + { + if ((this._LeakageVacuumId != value)) + { + this.OnLeakageVacuumIdChanging(value); + this.SendPropertyChanging(); + this._LeakageVacuumId = value; + this.SendPropertyChanged("LeakageVacuumId"); + this.OnLeakageVacuumIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + if (this._Base_Project.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemName", DbType="NVarChar(50)")] + public string SystemName + { + get + { + return this._SystemName; + } + set + { + if ((this._SystemName != value)) + { + this.OnSystemNameChanging(value); + this.SendPropertyChanging(); + this._SystemName = value; + this.SendPropertyChanged("SystemName"); + this.OnSystemNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemCode", DbType="NVarChar(50)")] + public string SystemCode + { + get + { + return this._SystemCode; + } + set + { + if ((this._SystemCode != value)) + { + this.OnSystemCodeChanging(value); + this.SendPropertyChanging(); + this._SystemCode = value; + this.SendPropertyChanged("SystemCode"); + this.OnSystemCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckItemResult1", DbType="NVarChar(50)")] + public string CheckItemResult1 + { + get + { + return this._CheckItemResult1; + } + set + { + if ((this._CheckItemResult1 != value)) + { + this.OnCheckItemResult1Changing(value); + this.SendPropertyChanging(); + this._CheckItemResult1 = value; + this.SendPropertyChanged("CheckItemResult1"); + this.OnCheckItemResult1Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckItemResult2", DbType="NVarChar(50)")] + public string CheckItemResult2 + { + get + { + return this._CheckItemResult2; + } + set + { + if ((this._CheckItemResult2 != value)) + { + this.OnCheckItemResult2Changing(value); + this.SendPropertyChanging(); + this._CheckItemResult2 = value; + this.SendPropertyChanged("CheckItemResult2"); + this.OnCheckItemResult2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckItemResult3", DbType="NVarChar(50)")] + public string CheckItemResult3 + { + get + { + return this._CheckItemResult3; + } + set + { + if ((this._CheckItemResult3 != value)) + { + this.OnCheckItemResult3Changing(value); + this.SendPropertyChanging(); + this._CheckItemResult3 = value; + this.SendPropertyChanged("CheckItemResult3"); + this.OnCheckItemResult3Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckItemResult4", DbType="NVarChar(50)")] + public string CheckItemResult4 + { + get + { + return this._CheckItemResult4; + } + set + { + if ((this._CheckItemResult4 != value)) + { + this.OnCheckItemResult4Changing(value); + this.SendPropertyChanging(); + this._CheckItemResult4 = value; + this.SendPropertyChanged("CheckItemResult4"); + this.OnCheckItemResult4Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckItemResult5", DbType="NVarChar(50)")] + public string CheckItemResult5 + { + get + { + return this._CheckItemResult5; + } + set + { + if ((this._CheckItemResult5 != value)) + { + this.OnCheckItemResult5Changing(value); + this.SendPropertyChanging(); + this._CheckItemResult5 = value; + this.SendPropertyChanged("CheckItemResult5"); + this.OnCheckItemResult5Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Conclusion", DbType="NVarChar(500)")] + public string Conclusion + { + get + { + return this._Conclusion; + } + set + { + if ((this._Conclusion != value)) + { + this.OnConclusionChanging(value); + this.SendPropertyChanging(); + this._Conclusion = value; + this.SendPropertyChanged("Conclusion"); + this.OnConclusionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_LeakageVacuum_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] + public Base_Project Base_Project + { + get + { + return this._Base_Project.Entity; + } + set + { + Base_Project previousValue = this._Base_Project.Entity; + if (((previousValue != value) + || (this._Base_Project.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_Project.Entity = null; + previousValue.JGZL_LeakageVacuum.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.JGZL_LeakageVacuum.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_LeakageVacuumTestRecord_JGZL_LeakageVacuum", Storage="_JGZL_LeakageVacuumTestRecord", ThisKey="LeakageVacuumId", OtherKey="LeakageVacuumId", DeleteRule="NO ACTION")] + public EntitySet JGZL_LeakageVacuumTestRecord + { + get + { + return this._JGZL_LeakageVacuumTestRecord; + } + set + { + this._JGZL_LeakageVacuumTestRecord.Assign(value); + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + private void attach_JGZL_LeakageVacuumTestRecord(JGZL_LeakageVacuumTestRecord entity) + { + this.SendPropertyChanging(); + entity.JGZL_LeakageVacuum = this; + } + + private void detach_JGZL_LeakageVacuumTestRecord(JGZL_LeakageVacuumTestRecord entity) + { + this.SendPropertyChanging(); + entity.JGZL_LeakageVacuum = null; + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_LeakageVacuumTestRecord")] + public partial class JGZL_LeakageVacuumTestRecord : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _LeakageVacuumTestRecordId; + + private string _LeakageVacuumId; + + private string _PipelineId; + + private string _PipelineCode; + + private string _DesignPressure; + + private string _DesignTem; + + private string _TestAmbientTemp; + + private string _TestMediumTemp; + + private string _LeakPressure; + + private string _LeakMedium; + + private string _VacuumPressure; + + private string _VacuumMedium; + + private EntityRef _JGZL_LeakageVacuum; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnLeakageVacuumTestRecordIdChanging(string value); + partial void OnLeakageVacuumTestRecordIdChanged(); + partial void OnLeakageVacuumIdChanging(string value); + partial void OnLeakageVacuumIdChanged(); + partial void OnPipelineIdChanging(string value); + partial void OnPipelineIdChanged(); + partial void OnPipelineCodeChanging(string value); + partial void OnPipelineCodeChanged(); + partial void OnDesignPressureChanging(string value); + partial void OnDesignPressureChanged(); + partial void OnDesignTemChanging(string value); + partial void OnDesignTemChanged(); + partial void OnTestAmbientTempChanging(string value); + partial void OnTestAmbientTempChanged(); + partial void OnTestMediumTempChanging(string value); + partial void OnTestMediumTempChanged(); + partial void OnLeakPressureChanging(string value); + partial void OnLeakPressureChanged(); + partial void OnLeakMediumChanging(string value); + partial void OnLeakMediumChanged(); + partial void OnVacuumPressureChanging(string value); + partial void OnVacuumPressureChanged(); + partial void OnVacuumMediumChanging(string value); + partial void OnVacuumMediumChanged(); + #endregion + + public JGZL_LeakageVacuumTestRecord() + { + this._JGZL_LeakageVacuum = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeakageVacuumTestRecordId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string LeakageVacuumTestRecordId + { + get + { + return this._LeakageVacuumTestRecordId; + } + set + { + if ((this._LeakageVacuumTestRecordId != value)) + { + this.OnLeakageVacuumTestRecordIdChanging(value); + this.SendPropertyChanging(); + this._LeakageVacuumTestRecordId = value; + this.SendPropertyChanged("LeakageVacuumTestRecordId"); + this.OnLeakageVacuumTestRecordIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeakageVacuumId", DbType="NVarChar(50)")] + public string LeakageVacuumId + { + get + { + return this._LeakageVacuumId; + } + set + { + if ((this._LeakageVacuumId != value)) + { + if (this._JGZL_LeakageVacuum.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnLeakageVacuumIdChanging(value); + this.SendPropertyChanging(); + this._LeakageVacuumId = value; + this.SendPropertyChanged("LeakageVacuumId"); + this.OnLeakageVacuumIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineId", DbType="NVarChar(50)")] + public string PipelineId + { + get + { + return this._PipelineId; + } + set + { + if ((this._PipelineId != value)) + { + this.OnPipelineIdChanging(value); + this.SendPropertyChanging(); + this._PipelineId = value; + this.SendPropertyChanged("PipelineId"); + this.OnPipelineIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(50)")] + public string PipelineCode + { + get + { + return this._PipelineCode; + } + set + { + if ((this._PipelineCode != value)) + { + this.OnPipelineCodeChanging(value); + this.SendPropertyChanging(); + this._PipelineCode = value; + this.SendPropertyChanged("PipelineCode"); + this.OnPipelineCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignPressure", DbType="NVarChar(50)")] + public string DesignPressure + { + get + { + return this._DesignPressure; + } + set + { + if ((this._DesignPressure != value)) + { + this.OnDesignPressureChanging(value); + this.SendPropertyChanging(); + this._DesignPressure = value; + this.SendPropertyChanged("DesignPressure"); + this.OnDesignPressureChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignTem", DbType="NVarChar(50)")] + public string DesignTem + { + get + { + return this._DesignTem; + } + set + { + if ((this._DesignTem != value)) + { + this.OnDesignTemChanging(value); + this.SendPropertyChanging(); + this._DesignTem = value; + this.SendPropertyChanged("DesignTem"); + this.OnDesignTemChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestAmbientTemp", DbType="NVarChar(50)")] + public string TestAmbientTemp + { + get + { + return this._TestAmbientTemp; + } + set + { + if ((this._TestAmbientTemp != value)) + { + this.OnTestAmbientTempChanging(value); + this.SendPropertyChanging(); + this._TestAmbientTemp = value; + this.SendPropertyChanged("TestAmbientTemp"); + this.OnTestAmbientTempChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestMediumTemp", DbType="NVarChar(50)")] + public string TestMediumTemp + { + get + { + return this._TestMediumTemp; + } + set + { + if ((this._TestMediumTemp != value)) + { + this.OnTestMediumTempChanging(value); + this.SendPropertyChanging(); + this._TestMediumTemp = value; + this.SendPropertyChanged("TestMediumTemp"); + this.OnTestMediumTempChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeakPressure", DbType="NVarChar(50)")] + public string LeakPressure + { + get + { + return this._LeakPressure; + } + set + { + if ((this._LeakPressure != value)) + { + this.OnLeakPressureChanging(value); + this.SendPropertyChanging(); + this._LeakPressure = value; + this.SendPropertyChanged("LeakPressure"); + this.OnLeakPressureChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeakMedium", DbType="NVarChar(50)")] + public string LeakMedium + { + get + { + return this._LeakMedium; + } + set + { + if ((this._LeakMedium != value)) + { + this.OnLeakMediumChanging(value); + this.SendPropertyChanging(); + this._LeakMedium = value; + this.SendPropertyChanged("LeakMedium"); + this.OnLeakMediumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_VacuumPressure", DbType="NVarChar(50)")] + public string VacuumPressure + { + get + { + return this._VacuumPressure; + } + set + { + if ((this._VacuumPressure != value)) + { + this.OnVacuumPressureChanging(value); + this.SendPropertyChanging(); + this._VacuumPressure = value; + this.SendPropertyChanged("VacuumPressure"); + this.OnVacuumPressureChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_VacuumMedium", DbType="NVarChar(50)")] + public string VacuumMedium + { + get + { + return this._VacuumMedium; + } + set + { + if ((this._VacuumMedium != value)) + { + this.OnVacuumMediumChanging(value); + this.SendPropertyChanging(); + this._VacuumMedium = value; + this.SendPropertyChanged("VacuumMedium"); + this.OnVacuumMediumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_LeakageVacuumTestRecord_JGZL_LeakageVacuum", Storage="_JGZL_LeakageVacuum", ThisKey="LeakageVacuumId", OtherKey="LeakageVacuumId", IsForeignKey=true)] + public JGZL_LeakageVacuum JGZL_LeakageVacuum + { + get + { + return this._JGZL_LeakageVacuum.Entity; + } + set + { + JGZL_LeakageVacuum previousValue = this._JGZL_LeakageVacuum.Entity; + if (((previousValue != value) + || (this._JGZL_LeakageVacuum.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._JGZL_LeakageVacuum.Entity = null; + previousValue.JGZL_LeakageVacuumTestRecord.Remove(this); + } + this._JGZL_LeakageVacuum.Entity = value; + if ((value != null)) + { + value.JGZL_LeakageVacuumTestRecord.Add(this); + this._LeakageVacuumId = value.LeakageVacuumId; + } + else + { + this._LeakageVacuumId = default(string); + } + this.SendPropertyChanged("JGZL_LeakageVacuum"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_LeakTestOfPipelineSystemRecord")] public partial class JGZL_LeakTestOfPipelineSystemRecord : INotifyPropertyChanging, INotifyPropertyChanged { diff --git a/HJGL_DS/WebAPI/WebAPI.csproj.user b/HJGL_DS/WebAPI/WebAPI.csproj.user index 8cd7f1f..ef14066 100644 --- a/HJGL_DS/WebAPI/WebAPI.csproj.user +++ b/HJGL_DS/WebAPI/WebAPI.csproj.user @@ -1,7 +1,7 @@ - Release|Any CPU + Debug|Any CPU FolderProfile true From b4874d3399ba8cc533a65ad2dc5c6a4e89471b9e Mon Sep 17 00:00:00 2001 From: wendy <408182087@qq.com> Date: Thu, 17 Sep 2026 08:31:52 +0800 Subject: [PATCH 2/5] =?UTF-8?q?20260917=20=E7=AE=A1=E9=81=93=E5=AE=89?= =?UTF-8?q?=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user | 4 ++-- ...dustrialPipelineInstallationQualityCertificate.aspx.cs | 8 ++++++-- .../JGZL/IndustrialPipelineQualityCertificate2020.aspx.cs | 6 +++++- HJGL_DS/FineUIPro.Web/Web.config | 4 ++-- HJGL_DS/WebAPI/WebAPI.csproj.user | 2 +- 5 files changed, 16 insertions(+), 8 deletions(-) diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user index abef49a..e3436b8 100644 --- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user +++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user @@ -1,8 +1,8 @@ - + true - Debug|Any CPU + Release|Any CPU diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs index defdfa0..821eb08 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs @@ -169,8 +169,12 @@ namespace FineUIPro.Web.JGZL this.txtInstallationInspection.Text = "浙江省特种设备科学研究院"; this.txtConstructionUnit.Text = "浙江石油化工有限公司"; this.txtSpecialEquipmentProductionLicenseCode.Text = "TS3833339-2028"; - this.txtPipelineLength.Text = BLL.HJGL_PW_IsoInfoService.GetPipeLineLengthList(this.tvControlItem.SelectedNodeID).Value.ToString(".##"); - } + var pipeLineLength = BLL.HJGL_PW_IsoInfoService.GetPipeLineLengthList(this.tvControlItem.SelectedNodeID); + if (pipeLineLength != null) + { + this.txtPipelineLength.Text = pipeLineLength.Value.ToString(".##"); + } + } } } } diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineQualityCertificate2020.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineQualityCertificate2020.aspx.cs index 63165e4..ac22b8b 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineQualityCertificate2020.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineQualityCertificate2020.aspx.cs @@ -151,7 +151,11 @@ namespace FineUIPro.Web.JGZL this.txtInstallationInspection.Text = "浙江省特种设备科学研究院"; this.txtConstructionUnit.Text = "浙江石油化工有限公司"; this.txtSpecialEquipmentProductionLicenseCode.Text = "TS3833339-2028"; - this.txtPipelineLength.Text = BLL.HJGL_PW_IsoInfoService.GetPipeLineLengthList(this.tvControlItem.SelectedNodeID).Value.ToString(".##"); + var pipeLineLength = BLL.HJGL_PW_IsoInfoService.GetPipeLineLengthList(this.tvControlItem.SelectedNodeID); + if (pipeLineLength != null) + { + this.txtPipelineLength.Text = pipeLineLength.Value.ToString(".##"); + } } } } diff --git a/HJGL_DS/FineUIPro.Web/Web.config b/HJGL_DS/FineUIPro.Web/Web.config index f469b13..3c98f31 100644 --- a/HJGL_DS/FineUIPro.Web/Web.config +++ b/HJGL_DS/FineUIPro.Web/Web.config @@ -11,7 +11,7 @@ - + @@ -67,7 +67,7 @@ - + diff --git a/HJGL_DS/WebAPI/WebAPI.csproj.user b/HJGL_DS/WebAPI/WebAPI.csproj.user index ef14066..8cd7f1f 100644 --- a/HJGL_DS/WebAPI/WebAPI.csproj.user +++ b/HJGL_DS/WebAPI/WebAPI.csproj.user @@ -1,7 +1,7 @@ - Debug|Any CPU + Release|Any CPU FolderProfile true From 5a8271ef135e33e9608107d6707dbd031716bb6a Mon Sep 17 00:00:00 2001 From: wendy <408182087@qq.com> Date: Thu, 17 Sep 2026 13:18:56 +0800 Subject: [PATCH 3/5] 20260917 1 --- .../JGZL/ModRepairQualityCertificate.aspx.cs | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ModRepairQualityCertificate.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/ModRepairQualityCertificate.aspx.cs index f3a2394..7fe67fd 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/ModRepairQualityCertificate.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/ModRepairQualityCertificate.aspx.cs @@ -801,16 +801,16 @@ namespace FineUIPro.Web.JGZL { completionDate.Text = report.CompletionDate.HasValue ? string.Format("{0:yyyy年MM月dd日}", report.CompletionDate) : ""; } - Bookmark inspector = doc.Range.Bookmarks["QC_Inspector"]; - if (inspector != null) - { - inspector.Text = report.QC_Inspector; - } - Bookmark engineer = doc.Range.Bookmarks["QA_Engineer"]; - if (engineer != null) - { - engineer.Text = report.QA_Engineer; - } + //Bookmark inspector = doc.Range.Bookmarks["QC_Inspector"]; + //if (inspector != null) + //{ + // inspector.Text = report.QC_Inspector; + //} + //Bookmark engineer = doc.Range.Bookmarks["QA_Engineer"]; + //if (engineer != null) + //{ + // engineer.Text = report.QA_Engineer; + //} doc.Save(newUrl); From 2a50577412add317da9b2b4fe13bf1087dcecdc1 Mon Sep 17 00:00:00 2001 From: wendy <408182087@qq.com> Date: Thu, 17 Sep 2026 14:50:16 +0800 Subject: [PATCH 4/5] 20260917 --- .../JGZL/ModRepairQualityCertificate.aspx.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ModRepairQualityCertificate.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/ModRepairQualityCertificate.aspx.cs index 7fe67fd..3f67d6e 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/ModRepairQualityCertificate.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/ModRepairQualityCertificate.aspx.cs @@ -150,7 +150,13 @@ namespace FineUIPro.Web.JGZL this.txtNotificationCode.Text = "0XXX-91330921MA2A2R3F6G-" + DateTime.Now.Year; this.txtUseUnit.Text = "浙江石油化工有限公司"; this.txtUseUSCC.Text = "913309003440581426"; - this.txtUseAddress.Text = pro.ProjectName; + string installationName = string.Empty; + var install = Funs.DB.Project_Installation.FirstOrDefault(x => x.ProjectId == projectId); + if(install!=null) + { + installationName = install.InstallationName; + } + this.txtUseAddress.Text = "浙江石油化工有限公司4000万吨/年炼化本项目" + installationName; this.txtModRepairProject.Text = "压力管道(" + pro.ProjectName + ")"; } } From 2b3539cd85d268a9748b7121860b16c01aa6f040 Mon Sep 17 00:00:00 2001 From: wendy <408182087@qq.com> Date: Fri, 18 Sep 2026 11:31:28 +0800 Subject: [PATCH 5/5] =?UTF-8?q?20260918=20=E7=AE=A1=E9=81=93=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E6=B3=84=E6=BC=8F=E6=80=A7=E8=AF=95=E9=AA=8C=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...�“系统泄漏性、真空试验条件确认与试验记录.frx | 4 +- .../JGZL/管道系统泄漏性试验记录导出模板.docx | Bin 15913 -> 16256 bytes HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx | 122 +++--- .../FineUIPro.Web/JGZL/LeakageVacuum.aspx.cs | 351 +++++++++--------- .../JGZL/LeakageVacuum.aspx.designer.cs | 18 + 5 files changed, 255 insertions(+), 240 deletions(-) diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道系统泄漏性、真空试验条件确认与试验记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道系统泄漏性、真空试验条件确认与试验记录.frx index 880f831..9436882 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道系统泄漏性、真空试验条件确认与试验记录.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道系统泄漏性、真空试验条件确认与试验记录.frx @@ -1,5 +1,5 @@  - + using System; using System.Collections; using System.Collections.Generic; @@ -42,7 +42,7 @@ namespace FastReport } - + diff --git a/HJGL_DS/FineUIPro.Web/File/Word/JGZL/管道系统泄漏性试验记录导出模板.docx b/HJGL_DS/FineUIPro.Web/File/Word/JGZL/管道系统泄漏性试验记录导出模板.docx index 16286c1b8a5234ab66407e12d7b9195b37b09eba..69f35f5d9f00b4427f9f51ffde2c01b66f8ab183 100644 GIT binary patch delta 7392 zcmaKRWl$VUv-RTcWO0J~;_mM5?hptp5G;WZ77Ol62=0q4?(XiE;O-JUKmq}7p0~bx zpQ`uA*T1HwPEAjBPuKK0T^0}osWHZYIHM3Dx8ni;n(qMs0ssK;-rdul%ii722khYH z&G`ZB`om(?Yu=C?vYGz$T09VKyy=H|u?jQtk{g;YZ;$Wm_rxYD-DZii@TGIZfY<2!~>5kc^?^m!`mK_e50G0!5#Pr2^{s zO|=I;C+jZ|&B&WjScJ8EwONvB!1&*3vSF;)!05hgAH)`&ue!rnvNRqg2c2 zj;sC1;`t)w)u)4Bo;*BgHT2WF{#`U!TIsVOG}%I->S# zcB)^Zxlv&ilcTRD-73Gix^NGQv?mSbsc@u5-+8HhVd;FOZ-enmhb`HLi}h`O0b4M{53mkPJfi}>f(oNi zemeaOPNaaFeAyBnZS*U~Z}Gl?92j*t5Pf6gF95O)|jjxe1|StgGryTmGw z+H~LEfemu9UD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ohTxLOCRGk^iNPWh96YM@gZE5)z1R zq&_HfW}# n1fmxwbV*VSu}Ba~D#h@xX9AUxB0^jdh8jxIp`^U}r{jMBq}V+n diff --git a/HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx b/HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx index 04be9f9..e83cbd7 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx +++ b/HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx @@ -45,7 +45,7 @@ @@ -62,62 +62,74 @@ - - - <%-- - - - --%> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <%-- - - - --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0) { @@ -143,7 +143,7 @@ namespace FineUIPro.Web.JGZL } } else - { + { foreach (var item in isoInfos) { Model.JGZL_LeakageVacuumTestRecord newItem = new JGZL_LeakageVacuumTestRecord(); @@ -156,9 +156,23 @@ namespace FineUIPro.Web.JGZL itemLists.Add(newItem); } } - this.Grid1.DataSource = itemLists; - this.Grid1.DataBind(); } + else + { + foreach (var item in isoInfos) + { + Model.JGZL_LeakageVacuumTestRecord newItem = new JGZL_LeakageVacuumTestRecord(); + newItem.LeakageVacuumTestRecordId = SQLHelper.GetNewID(typeof(Model.JGZL_LeakageVacuumTestRecord)); + newItem.PipelineId = item.ISO_ID; + newItem.PipelineCode = item.ISO_IsoNo; + newItem.DesignPressure = item.ISO_DesignPress.HasValue ? item.ISO_DesignPress.Value.ToString("0.##########") : ""; + newItem.DesignTem = item.ISO_DesignTemperature.HasValue ? item.ISO_DesignTemperature.Value.ToString("0.##########") : ""; + newItem.LeakPressure = item.LeakageTest.ToString(); + itemLists.Add(newItem); + } + } + this.Grid1.DataSource = itemLists; + this.Grid1.DataBind(); } } #endregion @@ -579,192 +593,163 @@ namespace FineUIPro.Web.JGZL protected void btnOut_Click(object sender, EventArgs e) { string rootPath = Server.MapPath("~/"); - string initTemplatePath = string.Empty; - string uploadfilepath = string.Empty; - string newUrl = string.Empty; - string filePath = string.Empty; - - //每页显示的固定数据行数 - int rowsPerPage = 8; - + string initTemplatePath = Const.JGZL_LeakageVacuumUrl; string projectId = this.tvControlItem.SelectedNodeID; - if (!string.IsNullOrEmpty(projectId)) - { - var report = BLL.LeakageVacuumService.GetLeakageVacuumByProjectId(projectId); - if (report != null) - { - initTemplatePath = Const.JGZL_LeakageVacuumUrl; - uploadfilepath = rootPath + initTemplatePath; - newUrl = uploadfilepath.Replace("管道系统泄漏性试验记录导出模板", "管道系统泄漏性试验记录"); - if (File.Exists(newUrl)) - { - File.Delete(newUrl); - } - File.Copy(uploadfilepath, newUrl); - //更新书签内容 - Document doc = new Aspose.Words.Document(newUrl); - DocumentBuilder builder = new DocumentBuilder(doc); - - Aspose.Words.Tables.Table table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, 0, true); - - Bookmark projectName = doc.Range.Bookmarks["ProjectName"]; - if (projectName != null) - { - projectName.Text = BLL.Base_ProjectService.GetProjectByProjectId(report.ProjectId).ProjectName; - } - Bookmark systemName = doc.Range.Bookmarks["SystemName"]; - if (systemName != null) - { - systemName.Text = report.SystemName; - } - Bookmark systemCode = doc.Range.Bookmarks["SystemCode"]; - if (systemCode != null) - { - systemCode.Text = report.SystemCode; - } - Bookmark checkItemResult1 = doc.Range.Bookmarks["CheckItemResult1"]; - if (checkItemResult1 != null) - { - checkItemResult1.Text = report.CheckItemResult1; - } - Bookmark checkItemResult2 = doc.Range.Bookmarks["CheckItemResult2"]; - if (checkItemResult2 != null) - { - checkItemResult2.Text = report.CheckItemResult2; - } - Bookmark checkItemResult3 = doc.Range.Bookmarks["CheckItemResult3"]; - if (checkItemResult3 != null) - { - checkItemResult3.Text = report.CheckItemResult3; - } - Bookmark checkItemResult4 = doc.Range.Bookmarks["CheckItemResult4"]; - if (checkItemResult4 != null) - { - checkItemResult4.Text = report.CheckItemResult4; - } - Bookmark checkItemResult5 = doc.Range.Bookmarks["CheckItemResult5"]; - if (checkItemResult5 != null) - { - checkItemResult5.Text = report.CheckItemResult5; - } - - // 设置表头行重复显示 - table.Rows[0].RowFormat.HeadingFormat = true; - table.Rows[1].RowFormat.HeadingFormat = true; - table.Rows[2].RowFormat.HeadingFormat = true; - table.Rows[3].RowFormat.HeadingFormat = true; - table.Rows[4].RowFormat.HeadingFormat = true; - table.Rows[5].RowFormat.HeadingFormat = true; - table.Rows[6].RowFormat.HeadingFormat = true; - table.Rows[7].RowFormat.HeadingFormat = true; - table.Rows[8].RowFormat.HeadingFormat = true; - table.Rows[9].RowFormat.HeadingFormat = true; - table.Rows[10].RowFormat.HeadingFormat = true; - - // ====固定表格布局===== - table.AutoFit(AutoFitBehavior.FixedColumnWidths); - table.AllowAutoFit = false; - table.Alignment = TableAlignment.Center; - - // 先记录页尾行,并从表格中移除 - //Row footerRow = table.Rows[table.Rows.Count - 1]; - //table.Rows.RemoveAt(table.Rows.Count - 1); - - var recordLists = BLL.LeakageVacuumTestRecordServic.GetLeakageVacuumTestRecordByLeakageVacuumId(report.LeakageVacuumId); - if (recordLists.Count == Grid1.GetMergedData().Count) - { - int i = 0; - foreach (var item in recordLists) - { - //创建行 - Aspose.Words.Tables.Row row = new Aspose.Words.Tables.Row(doc); - row.Cells.Add(CreateCell(item.PipelineCode, doc, 128.42, "", ""));//管道编号/单线号 - row.Cells.Add(CreateCell(item.DesignPressure, doc, 35.72, "", ""));//设计压力 - row.Cells.Add(CreateCell(item.DesignTem, doc, 41.96, "", ""));//设计温度 - row.Cells.Add(CreateCell(item.TestAmbientTemp, doc, 52.73, "", ""));//试验环境温度℃ - row.Cells.Add(CreateCell(item.TestMediumTemp, doc, 41.96, "", ""));//试验介质温度℃ - row.Cells.Add(CreateCell(item.LeakPressure, doc, 39.4, "", ""));//泄漏性试验-压力 - row.Cells.Add(CreateCell(item.LeakMedium, doc, 41.96, "", ""));//泄漏性试验-介质 - row.Cells.Add(CreateCell(item.VacuumPressure, doc, 45.07, "", ""));//真空试验-压力 - row.Cells.Add(CreateCell(item.VacuumMedium, doc, 41.39, "", ""));//真空试验-介质 - - table.Rows.Insert(i + 11, row); - } - - // 计算并插入空白行,填满整页 - // 计算总数据行数 - int totalDataRows = recordLists.Count; - // 计算需要补充的空白行数量 - int remainder = totalDataRows % rowsPerPage; - int needBlankRows = remainder == 0 ? 0 : rowsPerPage - remainder; - - // 插入空白行(和数据行格式保持一致,仅内容为空) - //for (int i = 0; i < needBlankRows - 1; i++) - //{ - // Aspose.Words.Tables.Row blankRow = new Aspose.Words.Tables.Row(doc); - // 空白行的单元格宽度和数据行保持一致 - //blankRow.Cells.Add(CreateCell("", doc, 22.68, "", "")); - //blankRow.Cells.Add(CreateCell("", doc, 65.49, "", "")); - //blankRow.Cells.Add(CreateCell("", doc, 37.14, "", "")); - //blankRow.Cells.Add(CreateCell("", doc, 27.78, "", "")); - //blankRow.Cells.Add(CreateCell("", doc, 28.06, "", "")); - //blankRow.Cells.Add(CreateCell("", doc, 28, "", "")); - //blankRow.Cells.Add(CreateCell("", doc, 34.87, "", "")); - //blankRow.Cells.Add(CreateCell("", doc, 43.66, "", "")); - //blankRow.Cells.Add(CreateCell("", doc, 59.82, "", "")); - //blankRow.Cells.Add(CreateCell("", doc, 34.58, "", "")); - //blankRow.Cells.Add(CreateCell("", doc, 33.74, "", "")); - //blankRow.Cells.Add(CreateCell("", doc, 27, "", "")); - //blankRow.Cells.Add(CreateCell("", doc, 45.93, "", "")); - //blankRow.Cells.Add(CreateCell("", doc, 37.14, "", "")); - //blankRow.Cells.Add(CreateCell("", doc, 30.62, "", "")); - //blankRow.Cells.Add(CreateCell("", doc, 48.76, "", "")); - //blankRow.Cells.Add(CreateCell("", doc, 25.23, "", "")); - //blankRow.Cells.Add(CreateCell("", doc, 28.92, "", "")); - //blankRow.Cells.Add(CreateCell("", doc, 48.76, "", "")); - //blankRow.Cells.Add(CreateCell("", doc, 26.08, "", "")); - //blankRow.Cells.Add(CreateCell("", doc, 56.7, "", "")); - //blankRow.Cells.Add(CreateCell("", doc, 22.11, "", "")); - // 插入到表格最后一行 - // table.Rows.Add(blankRow); - //} - //把页尾行重新加回表格最后 - //table.Rows.Add(footerRow); - - doc.Save(newUrl); - } - else - { - Alert.ShowInTop("请先保存数据!", MessageBoxIcon.Warning); - return; - } - - string fileName = Path.GetFileName(newUrl); - FileInfo info = new FileInfo(newUrl); - long fileSize = info.Length; - Response.Clear(); - Response.ContentType = "application/x-zip-compressed"; - Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8)); - Response.AddHeader("Content-Length", fileSize.ToString()); - Response.TransmitFile(newUrl, 0, fileSize); - Response.Flush(); - Response.Close(); - File.Delete(newUrl); - } - else - { - Alert.ShowInTop("没有要导出的数据!", MessageBoxIcon.Warning); - return; - } - } - else + if (string.IsNullOrEmpty(projectId)) { Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); return; } + var report = BLL.LeakageVacuumService.GetLeakageVacuumByProjectId(projectId); + if (report == null) + { + Alert.ShowInTop("请先保存数据!", MessageBoxIcon.Warning); + return; + } + else + { + var lists = BLL.LeakageVacuumTestRecordServic.GetLeakageVacuumTestRecordByLeakageVacuumId(report.LeakageVacuumId); + if (lists.Count != Grid1.GetMergedData().Count) + { + Alert.ShowInTop("请先保存数据!", MessageBoxIcon.Warning); + return; + } + } + string templateFullPath = Path.Combine(rootPath, initTemplatePath); + if (!File.Exists(templateFullPath)) + { + Alert.ShowInTop("导出模板文件不存在!", MessageBoxIcon.Warning); + return; + } + Document doc = new Aspose.Words.Document(templateFullPath); + Aspose.Words.Tables.Table table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, 0, true); + + #region 顶层书签赋值(工程名称、系统、检查项) + SafeSetBookmarkText(doc, "ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(report.ProjectId)?.ProjectName); + SafeSetBookmarkText(doc, "SystemName", report.SystemName); + SafeSetBookmarkText(doc, "SystemCode", report.SystemCode); + SafeSetBookmarkText(doc, "CheckItemResult1", report.CheckItemResult1); + SafeSetBookmarkText(doc, "CheckItemResult2", report.CheckItemResult2); + SafeSetBookmarkText(doc, "CheckItemResult3", report.CheckItemResult3); + SafeSetBookmarkText(doc, "CheckItemResult4", report.CheckItemResult4); + SafeSetBookmarkText(doc, "CheckItemResult5", report.CheckItemResult5); + #endregion + + #region 表头跨页重复设置 + for (int r = 0; r <= 10; r++) + { + table.Rows[r].RowFormat.HeadingFormat = true; + } + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + table.AllowAutoFit = false; + table.Alignment = TableAlignment.Center; + #endregion + + var recordLists = BLL.LeakageVacuumTestRecordServic.GetLeakageVacuumTestRecordByLeakageVacuumId(report.LeakageVacuumId); + Aspose.Words.Tables.Row templateDataRow = table.Rows[11]; + + if (recordLists.Count > 0) + { + foreach (var item in recordLists) + { + Aspose.Words.Tables.Row newDataRow = (Aspose.Words.Tables.Row)templateDataRow.Clone(true); + + SafeSetRowBookmarkText(newDataRow, "Bk_PipelineCode", item.PipelineCode); + SafeSetRowBookmarkText(newDataRow, "Bk_DesignPressure", item.DesignPressure); + SafeSetRowBookmarkText(newDataRow, "Bk_DesignTem", item.DesignTem); + SafeSetRowBookmarkText(newDataRow, "Bk_TestAmbientTemp", item.TestAmbientTemp); + SafeSetRowBookmarkText(newDataRow, "Bk_TestMediumTemp", item.TestMediumTemp); + SafeSetRowBookmarkText(newDataRow, "Bk_LeakPressure", item.LeakPressure); + SafeSetRowBookmarkText(newDataRow, "Bk_LeakMedium", item.LeakMedium); + SafeSetRowBookmarkText(newDataRow, "Bk_VacuumPressure", item.VacuumPressure); + SafeSetRowBookmarkText(newDataRow, "Bk_VacuumMedium", item.VacuumMedium); + + table.InsertBefore(newDataRow, templateDataRow); + } + } + + #region 补充空白行填满每页8行 + int rowsPerPage = 8; + int totalDataRows = recordLists.Count; + int remainder = totalDataRows % rowsPerPage; + int needBlankRows = remainder == 0 ? 0 : rowsPerPage - remainder; + + for (int i = 0; i < needBlankRows; i++) + { + Aspose.Words.Tables.Row blankRow = (Aspose.Words.Tables.Row)templateDataRow.Clone(true); + SafeSetRowBookmarkText(blankRow, "Bk_PipelineCode", ""); + SafeSetRowBookmarkText(blankRow, "Bk_DesignPressure", ""); + SafeSetRowBookmarkText(blankRow, "Bk_DesignTem", ""); + SafeSetRowBookmarkText(blankRow, "Bk_TestAmbientTemp", ""); + SafeSetRowBookmarkText(blankRow, "Bk_TestMediumTemp", ""); + SafeSetRowBookmarkText(blankRow, "Bk_LeakPressure", ""); + SafeSetRowBookmarkText(blankRow, "Bk_LeakMedium", ""); + SafeSetRowBookmarkText(blankRow, "Bk_VacuumPressure", ""); + SafeSetRowBookmarkText(blankRow, "Bk_VacuumMedium", ""); + + table.InsertBefore(blankRow, templateDataRow); + } + #endregion + + templateDataRow.Remove(); + + using (MemoryStream ms = new MemoryStream()) + { + doc.Save(ms, Aspose.Words.SaveFormat.Docx); + ms.Position = 0; + + Response.Clear(); + Response.ContentType = "application/x-zip-compressed"; + string downloadFileName = "管道系统泄漏性试验记录.docx"; + Response.AddHeader("Content-Disposition", $"attachment;filename={System.Web.HttpUtility.UrlEncode(downloadFileName, System.Text.Encoding.UTF8)}"); + Response.BinaryWrite(ms.ToArray()); + Response.Flush(); + Response.End(); + } } + /// + /// 设置文档全局书签文本 + /// + private static void SafeSetBookmarkText(Document doc, string bookmarkName, string text) + { + Bookmark bm = doc.Range.Bookmarks[bookmarkName]; + if (bm == null) return; + bm.Text = text ?? ""; + } + + /// + /// 在指定Row行节点范围内查找书签并赋值 + /// + private static void SafeSetRowBookmarkText(Row row, string bookmarkName, string text) + { + text = text ?? ""; + BookmarkStart bkStart = null; + NodeCollection childNodes = row.GetChildNodes(NodeType.BookmarkStart, true); + foreach (Node childNode in childNodes) + { + BookmarkStart bs = childNode as BookmarkStart; + if (bs != null && bs.Name == bookmarkName) + { + bkStart = bs; + break; + } + } + if (bkStart == null) return; + + Node cur = bkStart.NextSibling; + while (cur != null && cur.NodeType != NodeType.BookmarkEnd) + { + Node next = cur.NextSibling; + cur.Remove(); + cur = next; + } + Run run = new Run(row.Document, text); + bkStart.ParentNode.InsertAfter(run, bkStart); + } + + public static Cell CreateCell(String value, Document doc, double cellWidth, string cellMerge = "", string CenterPage = "", string cellUnitLeft = "") { Cell cell = new Cell(doc); diff --git a/HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx.designer.cs index 16b8b8a..1c5565d 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx.designer.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx.designer.cs @@ -167,6 +167,24 @@ namespace FineUIPro.Web.JGZL /// protected global::FineUIPro.TextBox txtSystemCode; + /// + /// SimpleForm2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.SimpleForm SimpleForm2; + + /// + /// Form2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form2; + /// /// drpCheckResult1 控件。 ///