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..9436882
--- /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 0000000..69f35f5
Binary files /dev/null and b/HJGL_DS/FineUIPro.Web/File/Word/JGZL/管道系统泄漏性试验记录导出模板.docx differ
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 80f7761..e3436b8 100644
--- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user
+++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user
@@ -1,4 +1,4 @@
-
+
true
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs
index dba223d..821eb08 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs
+++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs
@@ -159,12 +159,22 @@ 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(".##");
- }
+ 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 0687081..ac22b8b 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineQualityCertificate2020.aspx.cs
+++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineQualityCertificate2020.aspx.cs
@@ -141,10 +141,21 @@ 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";
- 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/LeakageVacuum.aspx b/HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx
new file mode 100644
index 0000000..e83cbd7
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx
@@ -0,0 +1,237 @@
+<%@ 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..538b732
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx.cs
@@ -0,0 +1,802 @@
+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 isoInfos = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(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;
+
+ 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);
+ }
+ }
+ }
+ 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 = Const.JGZL_LeakageVacuumUrl;
+ string projectId = this.tvControlItem.SelectedNodeID;
+
+ 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);
+ 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..1c5565d
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/LeakageVacuum.aspx.designer.cs
@@ -0,0 +1,359 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+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;
+
+ ///
+ /// SimpleForm2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.SimpleForm SimpleForm2;
+
+ ///
+ /// Form2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form2;
+
+ ///
+ /// 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 @@
-
+ --%>
<%-- x.ProjectId == projectId);
+ if(install!=null)
+ {
+ installationName = install.InstallationName;
+ }
+ this.txtUseAddress.Text = "浙江石油化工有限公司4000万吨/年炼化本项目" + installationName;
+ this.txtModRepairProject.Text = "压力管道(" + pro.ProjectName + ")";
}
}
}
@@ -602,7 +613,7 @@ namespace FineUIPro.Web.JGZL
newReport.ISO_ID = ids;
newReport.PipelineCode = names;
newReport.PipeLength = this.txtPipeLength.Text.Trim();
- newReport.PipeCategory = this.txtPipeCategory.Text.Trim();
+ newReport.PipeCategory = this.drpPipeCategory.SelectedValue.Trim();
newReport.ConCategory = this.cblConCategory.SelectedValueArray[0];
newReport.UseUnit = this.txtUseUnit.Text.Trim();
newReport.UseUSCC = this.txtUseUSCC.Text.Trim();
@@ -613,8 +624,8 @@ namespace FineUIPro.Web.JGZL
newReport.ModRepairProject = this.txtModRepairProject.Text.Trim();
newReport.Remark = this.lblRemark.Text.Trim();
newReport.CompletionDate = Funs.GetNewDateTime(this.txtCompletionDate.Text.Trim());
- newReport.QC_Inspector = this.txtQC_Inspector.Text.Trim();
- newReport.QA_Engineer = this.txtQA_Engineer.Text.Trim();
+ //newReport.QC_Inspector = this.txtQC_Inspector.Text.Trim();
+ //newReport.QA_Engineer = this.txtQA_Engineer.Text.Trim();
if (!string.IsNullOrEmpty(this.QualityCertificateId))
{
newReport.QualityCertificateId = this.QualityCertificateId;
@@ -796,16 +807,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);
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ModRepairQualityCertificate.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/ModRepairQualityCertificate.aspx.designer.cs
index 5ce5531..2ceae94 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/ModRepairQualityCertificate.aspx.designer.cs
+++ b/HJGL_DS/FineUIPro.Web/JGZL/ModRepairQualityCertificate.aspx.designer.cs
@@ -240,13 +240,13 @@ namespace FineUIPro.Web.JGZL
protected global::FineUIPro.TextBox txtPipeLength;
///
- /// 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 070a5f8..3c98f31 100644
--- a/HJGL_DS/FineUIPro.Web/Web.config
+++ b/HJGL_DS/FineUIPro.Web/Web.config
@@ -11,7 +11,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
{