From 0822e3467ddce0bac815d59b545183063c0c9ba6 Mon Sep 17 00:00:00 2001
From: xiaju <1784803958@qq.com>
Date: Thu, 22 Jan 2026 20:41:07 +0800
Subject: [PATCH] =?UTF-8?q?42=E3=80=81=E7=AE=A1=E9=81=93=E5=AE=89=E8=A3=85?=
=?UTF-8?q?=E6=A3=80=E6=9F=A5=E8=AE=B0=E5=BD=95=2043=E3=80=81=E9=9A=90?=
=?UTF-8?q?=E8=94=BD=E5=B7=A5=E7=A8=8B=E9=AA=8C=E6=94=B6=E8=AE=B0=E5=BD=95?=
=?UTF-8?q?=2044=E3=80=81=E5=B7=A5=E4=B8=9A=E7=AE=A1=E9=81=93=E5=AE=89?=
=?UTF-8?q?=E8=A3=85=E8=B4=A8=E9=87=8F=E8=AF=81=E6=98=8E=E4=B9=A6=2044?=
=?UTF-8?q?=E3=80=81=E5=B7=A5=E4=B8=9A=E7=AE=A1=E9=81=93=E5=AE=89=E8=A3=85?=
=?UTF-8?q?=E6=B1=87=E6=80=BB=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../版本日志/HJGLDB_DS_2026-01-24_xiaj.sql | 330 +++
HJGL_DS/BLL/BLL.csproj | 4 +
HJGL_DS/BLL/Common/Const.cs | 20 +
.../ConcealedWorksInspectionRecordService.cs | 78 +
...neInstallationQualityCertificateService.cs | 136 +
...trialPipelineInstallationSummaryService.cs | 113 +
...lineInstallationInspectionRecordService.cs | 78 +
HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj | 64 +
.../JGZL/ConcealedWorksInspectionRecord.aspx | 121 +
.../ConcealedWorksInspectionRecord.aspx.cs | 405 +++
...aledWorksInspectionRecord.aspx.designer.cs | 206 ++
.../ConcealedWorksInspectionRecordEdit.aspx | 56 +
...ConcealedWorksInspectionRecordEdit.aspx.cs | 112 +
...WorksInspectionRecordEdit.aspx.designer.cs | 116 +
...ipelineInstallationQualityCertificate.aspx | 151 +
...lineInstallationQualityCertificate.aspx.cs | 426 +++
...llationQualityCertificate.aspx.designer.cs | 206 ++
...ineInstallationQualityCertificateEdit.aspx | 78 +
...InstallationQualityCertificateEdit.aspx.cs | 132 +
...ionQualityCertificateEdit.aspx.designer.cs | 206 ++
...IndustrialPipelineInstallationSummary.aspx | 186 ++
...ustrialPipelineInstallationSummary.aspx.cs | 408 +++
...pelineInstallationSummary.aspx.designer.cs | 206 ++
...strialPipelineInstallationSummaryEdit.aspx | 114 +
...ialPipelineInstallationSummaryEdit.aspx.cs | 208 ++
...neInstallationSummaryEdit.aspx.designer.cs | 296 ++
.../MaterialQualityCertificateDoc.aspx.cs | 7 +
.../PipelineInstallationInspectionRecord.aspx | 121 +
...pelineInstallationInspectionRecord.aspx.cs | 404 +++
...tallationInspectionRecord.aspx.designer.cs | 206 ++
...elineInstallationInspectionRecordEdit.aspx | 56 +
...neInstallationInspectionRecordEdit.aspx.cs | 112 +
...ationInspectionRecordEdit.aspx.designer.cs | 116 +
HJGL_DS/Model/Model.cs | 2476 +++++++++++++++++
34 files changed, 7954 insertions(+)
create mode 100644 DataBase/版本日志/HJGLDB_DS_2026-01-24_xiaj.sql
create mode 100644 HJGL_DS/BLL/JGZL/ConcealedWorksInspectionRecordService.cs
create mode 100644 HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationQualityCertificateService.cs
create mode 100644 HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationSummaryService.cs
create mode 100644 HJGL_DS/BLL/JGZL/PipelineInstallationInspectionRecordService.cs
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecord.aspx
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecord.aspx.cs
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecord.aspx.designer.cs
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecordEdit.aspx
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecordEdit.aspx.cs
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecordEdit.aspx.designer.cs
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.designer.cs
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx.cs
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx.designer.cs
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx.cs
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx.designer.cs
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx.cs
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx.designer.cs
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx.cs
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx.designer.cs
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecordEdit.aspx
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecordEdit.aspx.cs
create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecordEdit.aspx.designer.cs
diff --git a/DataBase/版本日志/HJGLDB_DS_2026-01-24_xiaj.sql b/DataBase/版本日志/HJGLDB_DS_2026-01-24_xiaj.sql
new file mode 100644
index 0000000..11c0ff2
--- /dev/null
+++ b/DataBase/版本日志/HJGLDB_DS_2026-01-24_xiaj.sql
@@ -0,0 +1,330 @@
+
+
+
+
+
+/**********˵************************************************************/
+
+
+--42ܵװ¼
+IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = '32B46F24-DA2A-40BC-9DB8-29D0A1A382B1')
+BEGIN
+ INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
+ VALUES ('32B46F24-DA2A-40BC-9DB8-29D0A1A382B1','ܵװ¼','JGZL/PipelineInstallationInspectionRecord.aspx',420,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
+END
+GO
+IF NOT EXISTS (SELECT * FROM ButtonToMenu WHERE MenuId = '32B46F24-DA2A-40BC-9DB8-29D0A1A382B1')
+BEGIN
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('85405401-D732-43CE-AC4B-146C4BA617DF','32B46F24-DA2A-40BC-9DB8-29D0A1A382B1','',1)
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('3CEEF467-4B7B-4E8C-A0A3-412920FBA25C','32B46F24-DA2A-40BC-9DB8-29D0A1A382B1','',2)
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('D83B664F-025E-476A-AF14-4DDB5934D042','32B46F24-DA2A-40BC-9DB8-29D0A1A382B1','ɾ',3)
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('7966E502-5E7B-4889-8E08-1F22ED72F5B0','32B46F24-DA2A-40BC-9DB8-29D0A1A382B1','',4)
+END
+GO
+
+
+--43ιռ¼
+IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = 'F0B43C16-6825-47A5-88D4-8ADDC5C9F34E')
+BEGIN
+ INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
+ VALUES ('F0B43C16-6825-47A5-88D4-8ADDC5C9F34E','ιռ¼','JGZL/ConcealedWorksInspectionRecord.aspx',430,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
+END
+GO
+IF NOT EXISTS (SELECT * FROM ButtonToMenu WHERE MenuId = 'F0B43C16-6825-47A5-88D4-8ADDC5C9F34E')
+BEGIN
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('CD62B4FD-4571-4C5F-9E7E-DD00AB5ECCF1','F0B43C16-6825-47A5-88D4-8ADDC5C9F34E','',1)
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('604FC21D-62F0-493E-A229-96A579C74118','F0B43C16-6825-47A5-88D4-8ADDC5C9F34E','',2)
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('2638A948-5C2C-44F5-97E6-7047E6FB95E8','F0B43C16-6825-47A5-88D4-8ADDC5C9F34E','ɾ',3)
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('D2293061-360B-4DAF-AF15-79917598389B','F0B43C16-6825-47A5-88D4-8ADDC5C9F34E','',4)
+END
+GO
+--44ҵܵװ֤
+IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = 'F5833B38-65DF-4236-A676-EE75F9487061')
+BEGIN
+ INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
+ VALUES ('F5833B38-65DF-4236-A676-EE75F9487061','ҵܵװ֤','JGZL/IndustrialPipelineInstallationQualityCertificate.aspx',440,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
+END
+GO
+IF NOT EXISTS (SELECT * FROM ButtonToMenu WHERE MenuId = 'F5833B38-65DF-4236-A676-EE75F9487061')
+BEGIN
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('091E0FE5-4DEE-4044-9A4B-B5AB11305D6E','F5833B38-65DF-4236-A676-EE75F9487061','',1)
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('FE861861-DC5F-45CE-A24C-797CE564A30D','F5833B38-65DF-4236-A676-EE75F9487061','',2)
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('A77D1C0C-1E84-451B-B565-ACE676337273','F5833B38-65DF-4236-A676-EE75F9487061','ɾ',3)
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('98D45B02-B1F8-4C9E-9FDB-92EE01ABE4C6','F5833B38-65DF-4236-A676-EE75F9487061','',4)
+END
+GO
+--44ҵܵװܱ
+IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = 'C527812C-0FF8-4EAC-B1FD-3B561DBE46ED')
+BEGIN
+ INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
+ VALUES ('C527812C-0FF8-4EAC-B1FD-3B561DBE46ED','ҵܵװܱ','JGZL/IndustrialPipelineInstallationSummary.aspx',445,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
+END
+GO
+IF NOT EXISTS (SELECT * FROM ButtonToMenu WHERE MenuId = 'C527812C-0FF8-4EAC-B1FD-3B561DBE46ED')
+BEGIN
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('4406F283-A0BE-49D2-B467-6E5D135124D9','C527812C-0FF8-4EAC-B1FD-3B561DBE46ED','',1)
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('8D020AEC-1F19-49F1-A71D-458586FA788C','C527812C-0FF8-4EAC-B1FD-3B561DBE46ED','',2)
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('9D6996F3-B2B0-450C-87A0-D069D38640E8','C527812C-0FF8-4EAC-B1FD-3B561DBE46ED','ɾ',3)
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('60FBB6AA-F717-4639-8724-370F03458FBD','C527812C-0FF8-4EAC-B1FD-3B561DBE46ED','',4)
+END
+GO
+
+/**********ݱ************************************************************/
+
+
+--42ܵװ¼
+IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_PipelineInstallationInspectionRecord') AND type = N'U')
+BEGIN
+
+CREATE TABLE [dbo].[JGZL_PipelineInstallationInspectionRecord](
+ [RecordId] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [ProfessionalEngineering] [nvarchar](50) NULL,
+ [DrawingNumber] [nvarchar](50) NULL,
+ [InspectionItems] [nvarchar](2000) NULL,
+ [InspectionResults] [nvarchar](2000) NULL,
+ [Remark] [nvarchar](500) NULL,
+ [CompileMan] [nvarchar](50) NULL,
+ [CompileDate] [datetime] NULL,
+ [Reviewer] [nvarchar](50) NULL,
+ [RevieweDate] [datetime] NULL,
+ CONSTRAINT [PK_JGZL_PipelineInstallationInspectionRecord] PRIMARY KEY CLUSTERED
+(
+ [RecordId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+ALTER TABLE [dbo].[JGZL_PipelineInstallationInspectionRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_PipelineInstallationInspectionRecord_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+ALTER TABLE [dbo].[JGZL_PipelineInstallationInspectionRecord] CHECK CONSTRAINT [FK_JGZL_PipelineInstallationInspectionRecord_Base_Project]
+ALTER TABLE [dbo].[JGZL_PipelineInstallationInspectionRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_PipelineInstallationInspectionRecord_Sys_User] FOREIGN KEY([CompileMan])
+REFERENCES [dbo].[Sys_User] ([UserId])
+ALTER TABLE [dbo].[JGZL_PipelineInstallationInspectionRecord] CHECK CONSTRAINT [FK_JGZL_PipelineInstallationInspectionRecord_Sys_User]
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipelineInstallationInspectionRecord', @level2type=N'COLUMN',@level2name=N'RecordId'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipelineInstallationInspectionRecord', @level2type=N'COLUMN',@level2name=N'ProjectId'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'רҵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipelineInstallationInspectionRecord', @level2type=N'COLUMN',@level2name=N'ProfessionalEngineering'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʩͼ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipelineInstallationInspectionRecord', @level2type=N'COLUMN',@level2name=N'DrawingNumber'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ŀ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipelineInstallationInspectionRecord', @level2type=N'COLUMN',@level2name=N'InspectionItems'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipelineInstallationInspectionRecord', @level2type=N'COLUMN',@level2name=N'InspectionResults'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipelineInstallationInspectionRecord', @level2type=N'COLUMN',@level2name=N'Remark'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipelineInstallationInspectionRecord', @level2type=N'COLUMN',@level2name=N'CompileMan'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipelineInstallationInspectionRecord', @level2type=N'COLUMN',@level2name=N'CompileDate'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipelineInstallationInspectionRecord', @level2type=N'COLUMN',@level2name=N'Reviewer'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipelineInstallationInspectionRecord', @level2type=N'COLUMN',@level2name=N'RevieweDate'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܵװ¼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipelineInstallationInspectionRecord'
+
+END
+
+GO
+
+
+--43ιռ¼
+IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_ConcealedWorksInspectionRecord') AND type = N'U')
+BEGIN
+
+CREATE TABLE [dbo].[JGZL_ConcealedWorksInspectionRecord](
+ [RecordId] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [ConcealedWorks] [nvarchar](50) NULL,
+ [DrawingNumber] [nvarchar](50) NULL,
+ [ConcealedContentAndDiagram] [nvarchar](2000) NULL,
+ [InspectionResults] [nvarchar](2000) NULL,
+ [Remark] [nvarchar](500) NULL,
+ [CompileMan] [nvarchar](50) NULL,
+ [CompileDate] [datetime] NULL,
+ [Reviewer] [nvarchar](50) NULL,
+ [RevieweDate] [datetime] NULL,
+ CONSTRAINT [PK_JGZL_ConcealedWorksInspectionRecord] PRIMARY KEY CLUSTERED
+(
+ [RecordId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+ALTER TABLE [dbo].[JGZL_ConcealedWorksInspectionRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_ConcealedWorksInspectionRecord_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+ALTER TABLE [dbo].[JGZL_ConcealedWorksInspectionRecord] CHECK CONSTRAINT [FK_JGZL_ConcealedWorksInspectionRecord_Base_Project]
+ALTER TABLE [dbo].[JGZL_ConcealedWorksInspectionRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_ConcealedWorksInspectionRecord_Sys_User] FOREIGN KEY([CompileMan])
+REFERENCES [dbo].[Sys_User] ([UserId])
+ALTER TABLE [dbo].[JGZL_ConcealedWorksInspectionRecord] CHECK CONSTRAINT [FK_JGZL_ConcealedWorksInspectionRecord_Sys_User]
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConcealedWorksInspectionRecord', @level2type=N'COLUMN',@level2name=N'RecordId'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConcealedWorksInspectionRecord', @level2type=N'COLUMN',@level2name=N'ProjectId'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ŀ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConcealedWorksInspectionRecord', @level2type=N'COLUMN',@level2name=N'ConcealedWorks'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʩͼ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConcealedWorksInspectionRecord', @level2type=N'COLUMN',@level2name=N'DrawingNumber'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ݼͼ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConcealedWorksInspectionRecord', @level2type=N'COLUMN',@level2name=N'ConcealedContentAndDiagram'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConcealedWorksInspectionRecord', @level2type=N'COLUMN',@level2name=N'InspectionResults'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConcealedWorksInspectionRecord', @level2type=N'COLUMN',@level2name=N'Remark'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConcealedWorksInspectionRecord', @level2type=N'COLUMN',@level2name=N'CompileMan'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConcealedWorksInspectionRecord', @level2type=N'COLUMN',@level2name=N'CompileDate'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConcealedWorksInspectionRecord', @level2type=N'COLUMN',@level2name=N'Reviewer'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConcealedWorksInspectionRecord', @level2type=N'COLUMN',@level2name=N'RevieweDate'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ιռ¼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConcealedWorksInspectionRecord'
+
+END
+
+GO
+
+--44ҵܵװ֤
+IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_IndustrialPipelineInstallationQualityCertificate') AND type = N'U')
+BEGIN
+
+CREATE TABLE [dbo].[JGZL_IndustrialPipelineInstallationQualityCertificate](
+ [CertificateId] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [CertificateCode] [nvarchar](50) NULL,
+ [EngineeringName] [nvarchar](50) NULL,
+ [EngineeringCode] [nvarchar](50) NULL,
+ [DeliveryUnit] [nvarchar](50) NULL,
+ [DeliveryUnitCode] [nvarchar](50) NULL,
+ [InstallStartDate] [datetime] NULL,
+ [InstallEndDate] [datetime] NULL,
+ [PipelineLevel] [nvarchar](50) NULL,
+ [PipelineLength] [nvarchar](50) NULL,
+ [DesignUnit] [nvarchar](50) NULL,
+ [LosslessTestingAgency] [nvarchar](50) NULL,
+ [SupervisoryAndInspectionAgency] [nvarchar](50) NULL,
+ [ConstructionUnit] [nvarchar](50) NULL,
+ [SpecialEquipmentProductionLicenseCode] [nvarchar](50) NULL,
+ [Remark] [nvarchar](500) NULL,
+ [CompileMan] [nvarchar](50) NULL,
+ [CompileDate] [datetime] NULL,
+ [Reviewer] [nvarchar](50) NULL,
+ [RevieweDate] [datetime] NULL,
+ CONSTRAINT [PK_JGZL_IndustrialPipelineInstallationQualityCertificate] PRIMARY KEY CLUSTERED
+(
+ [CertificateId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+ALTER TABLE [dbo].[JGZL_IndustrialPipelineInstallationQualityCertificate] WITH CHECK ADD CONSTRAINT [FK_JGZL_IndustrialPipelineInstallationQualityCertificate_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+ALTER TABLE [dbo].[JGZL_IndustrialPipelineInstallationQualityCertificate] CHECK CONSTRAINT [FK_JGZL_IndustrialPipelineInstallationQualityCertificate_Base_Project]
+ALTER TABLE [dbo].[JGZL_IndustrialPipelineInstallationQualityCertificate] WITH CHECK ADD CONSTRAINT [FK_JGZL_IndustrialPipelineInstallationQualityCertificate_Sys_User] FOREIGN KEY([CompileMan])
+REFERENCES [dbo].[Sys_User] ([UserId])
+ALTER TABLE [dbo].[JGZL_IndustrialPipelineInstallationQualityCertificate] CHECK CONSTRAINT [FK_JGZL_IndustrialPipelineInstallationQualityCertificate_Sys_User]
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationQualityCertificate', @level2type=N'COLUMN',@level2name=N'CertificateId'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationQualityCertificate', @level2type=N'COLUMN',@level2name=N'ProjectId'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationQualityCertificate', @level2type=N'COLUMN',@level2name=N'CertificateCode'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationQualityCertificate', @level2type=N'COLUMN',@level2name=N'EngineeringName'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'̱' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationQualityCertificate', @level2type=N'COLUMN',@level2name=N'EngineeringCode'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ԫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationQualityCertificate', @level2type=N'COLUMN',@level2name=N'DeliveryUnit'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ԫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationQualityCertificate', @level2type=N'COLUMN',@level2name=N'DeliveryUnitCode'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'װ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationQualityCertificate', @level2type=N'COLUMN',@level2name=N'InstallStartDate'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'װ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationQualityCertificate', @level2type=N'COLUMN',@level2name=N'InstallEndDate'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationQualityCertificate', @level2type=N'COLUMN',@level2name=N'PipelineLevel'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationQualityCertificate', @level2type=N'COLUMN',@level2name=N'PipelineLength'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ƶλ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationQualityCertificate', @level2type=N'COLUMN',@level2name=N'DesignUnit'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationQualityCertificate', @level2type=N'COLUMN',@level2name=N'LosslessTestingAgency'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationQualityCertificate', @level2type=N'COLUMN',@level2name=N'SupervisoryAndInspectionAgency'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'赥λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationQualityCertificate', @level2type=N'COLUMN',@level2name=N'ConstructionUnit'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'豸֤' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationQualityCertificate', @level2type=N'COLUMN',@level2name=N'SpecialEquipmentProductionLicenseCode'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationQualityCertificate', @level2type=N'COLUMN',@level2name=N'Remark'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationQualityCertificate', @level2type=N'COLUMN',@level2name=N'CompileMan'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationQualityCertificate', @level2type=N'COLUMN',@level2name=N'CompileDate'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationQualityCertificate', @level2type=N'COLUMN',@level2name=N'Reviewer'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationQualityCertificate', @level2type=N'COLUMN',@level2name=N'RevieweDate'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵܵװ֤' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationQualityCertificate'
+
+END
+
+GO
+
+
+
+--44ҵܵװܱ
+IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_IndustrialPipelineInstallationSummary') AND type = N'U')
+BEGIN
+
+CREATE TABLE [dbo].[JGZL_IndustrialPipelineInstallationSummary](
+ [SummaryId] [nvarchar](50) NOT NULL,
+ [CertificateId] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [PipelineCode] [nvarchar](50) NULL,
+ [PipelineLevel] [nvarchar](50) NULL,
+ [PipelineStartPoint] [nvarchar](50) NULL,
+ [PipelineEndPoint] [nvarchar](50) NULL,
+ [DesignPressure] [nvarchar](50) NULL,
+ [DesignTemperature] [nvarchar](50) NULL,
+ [Medium] [nvarchar](50) NULL,
+ [Material] [nvarchar](50) NULL,
+ [Specifications] [nvarchar](50) NULL,
+ [Length] [nvarchar](50) NULL,
+ [LayingMethod] [nvarchar](50) NULL,
+ [WeldsNum] [nvarchar](50) NULL,
+ [LosslessRatio] [nvarchar](50) NULL,
+ [VoltageResistantTestMethod] [nvarchar](50) NULL,
+ [VoltageResistantTestMedium] [nvarchar](50) NULL,
+ [VoltageResistantTestPressure] [nvarchar](50) NULL,
+ [LeakageTestMedium] [nvarchar](50) NULL,
+ [LeakageTestPressure] [nvarchar](50) NULL,
+ [CleaningMethod] [nvarchar](50) NULL,
+ [CorrosionControlMethod] [nvarchar](50) NULL,
+ [InsulationMethod] [nvarchar](50) NULL,
+ [Remark] [nvarchar](500) NULL,
+ [CompileMan] [nvarchar](50) NULL,
+ [CompileDate] [datetime] NULL,
+ [Reviewer] [nvarchar](50) NULL,
+ [RevieweDate] [datetime] NULL,
+ CONSTRAINT [PK_JGZL_IndustrialPipelineInstallationSummary] PRIMARY KEY CLUSTERED
+(
+ [SummaryId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+ALTER TABLE [dbo].[JGZL_IndustrialPipelineInstallationSummary] WITH CHECK ADD CONSTRAINT [FK_JGZL_IndustrialPipelineInstallationSummary_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+ALTER TABLE [dbo].[JGZL_IndustrialPipelineInstallationSummary] CHECK CONSTRAINT [FK_JGZL_IndustrialPipelineInstallationSummary_Base_Project]
+ALTER TABLE [dbo].[JGZL_IndustrialPipelineInstallationSummary] WITH CHECK ADD CONSTRAINT [FK_JGZL_IndustrialPipelineInstallationSummary_Sys_User] FOREIGN KEY([CompileMan])
+REFERENCES [dbo].[Sys_User] ([UserId])
+ALTER TABLE [dbo].[JGZL_IndustrialPipelineInstallationSummary] CHECK CONSTRAINT [FK_JGZL_IndustrialPipelineInstallationSummary_Sys_User]
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'SummaryId'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'֤Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'CertificateId'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'ProjectId'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'PipelineCode'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'PipelineLevel'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'PipelineStartPoint'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܵյ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'PipelineEndPoint'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ѹ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'DesignPressure'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¶' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'DesignTemperature'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'Medium'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'Material'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'Specifications'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'Length'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'跽ʽ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'LayingMethod'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'WeldsNum'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ⷽ/' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'LosslessRatio'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ѹ鷽' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'VoltageResistantTestMethod'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ѹ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'VoltageResistantTestMedium'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ѹѹ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'VoltageResistantTestPressure'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'й¶' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'LeakageTestMedium'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'й¶ѹ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'LeakageTestPressure'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ɨϴ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'CleaningMethod'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʴƷʽ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'CorrosionControlMethod'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'·ʽ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'InsulationMethod'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'Remark'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'CompileMan'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'CompileDate'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'Reviewer'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary', @level2type=N'COLUMN',@level2name=N'RevieweDate'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵܵװ֤' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialPipelineInstallationSummary'
+
+END
+
+GO
+
+
+
+
+
+
diff --git a/HJGL_DS/BLL/BLL.csproj b/HJGL_DS/BLL/BLL.csproj
index 3ea6fa4..a85c77c 100644
--- a/HJGL_DS/BLL/BLL.csproj
+++ b/HJGL_DS/BLL/BLL.csproj
@@ -250,10 +250,14 @@
+
+
+
+
diff --git a/HJGL_DS/BLL/Common/Const.cs b/HJGL_DS/BLL/Common/Const.cs
index 766efb1..c74e7b2 100644
--- a/HJGL_DS/BLL/Common/Const.cs
+++ b/HJGL_DS/BLL/Common/Const.cs
@@ -1817,6 +1817,26 @@ namespace BLL
public const string JGZL_BlowingCleaningMenuId = "E64FC226-8164-43F7-AA4D-6E268EDEC5BC";
+ ///
+ /// 管道安装检查记录
+ ///
+ public const string JGZL_PipelineInstallationInspectionRecordMenuId = "32B46F24-DA2A-40BC-9DB8-29D0A1A382B1";
+
+ ///
+ /// 隐蔽工程验收记录
+ ///
+ public const string JGZL_ConcealedWorksInspectionRecordMenuId = "F0B43C16-6825-47A5-88D4-8ADDC5C9F34E";
+
+ ///
+ /// 工业管道安装质量证明书
+ ///
+ public const string JGZL_IndustrialPipelineInstallationQualityCertificateMenuId = "F5833B38-65DF-4236-A676-EE75F9487061";
+
+ ///
+ /// 工业管道安装汇总表
+ ///
+ public const string JGZL_IndustrialPipelineInstallationSummaryMenuId = "C527812C-0FF8-4EAC-B1FD-3B561DBE46ED";
+
///
/// 材料质量证明文件一览表
///
diff --git a/HJGL_DS/BLL/JGZL/ConcealedWorksInspectionRecordService.cs b/HJGL_DS/BLL/JGZL/ConcealedWorksInspectionRecordService.cs
new file mode 100644
index 0000000..038fa51
--- /dev/null
+++ b/HJGL_DS/BLL/JGZL/ConcealedWorksInspectionRecordService.cs
@@ -0,0 +1,78 @@
+using Model;
+using System.Linq;
+
+namespace BLL
+{
+ ///
+ /// 隐蔽工程验收记录
+ ///
+ public class ConcealedWorksInspectionRecordService
+ {
+ ///
+ /// 根据主键获取隐蔽工程验收记录
+ ///
+ ///
+ ///
+ public static Model.JGZL_ConcealedWorksInspectionRecord GetConcealedWorksInspectionRecordById(string Id)
+ {
+ return Funs.DB.JGZL_ConcealedWorksInspectionRecord.FirstOrDefault(e => e.RecordId == Id);
+ }
+
+ ///
+ /// 添加隐蔽工程验收记录
+ ///
+ ///
+ public static void AddConcealedWorksInspectionRecord(Model.JGZL_ConcealedWorksInspectionRecord model)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_ConcealedWorksInspectionRecord newModel = new JGZL_ConcealedWorksInspectionRecord();
+ newModel.RecordId = model.RecordId;
+ newModel.ProjectId = model.ProjectId;
+ newModel.ConcealedWorks = model.ConcealedWorks;
+ newModel.DrawingNumber = model.DrawingNumber;
+ newModel.ConcealedContentAndDiagram = model.ConcealedContentAndDiagram;
+ newModel.InspectionResults = model.InspectionResults;
+ newModel.Remark = model.Remark;
+ newModel.CompileMan = model.CompileMan;
+ newModel.CompileDate = model.CompileDate;
+ newModel.Reviewer = model.Reviewer;
+ newModel.RevieweDate = model.RevieweDate;
+ db.JGZL_ConcealedWorksInspectionRecord.InsertOnSubmit(newModel);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 修改隐蔽工程验收记录
+ ///
+ ///
+ public static void UpdateConcealedWorksInspectionRecord(Model.JGZL_ConcealedWorksInspectionRecord model)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_ConcealedWorksInspectionRecord newModel = db.JGZL_ConcealedWorksInspectionRecord.FirstOrDefault(e => e.RecordId == model.RecordId);
+ if (newModel != null)
+ {
+ newModel.ConcealedWorks = model.ConcealedWorks;
+ newModel.DrawingNumber = model.DrawingNumber;
+ newModel.ConcealedContentAndDiagram = model.ConcealedContentAndDiagram;
+ newModel.InspectionResults = model.InspectionResults;
+ newModel.Remark = model.Remark;
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除隐蔽工程验收记录
+ ///
+ ///
+ public static void DeleteConcealedWorksInspectionRecordById(string Id)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_ConcealedWorksInspectionRecord model = db.JGZL_ConcealedWorksInspectionRecord.FirstOrDefault(e => e.RecordId == Id);
+ if (model != null)
+ {
+ db.JGZL_ConcealedWorksInspectionRecord.DeleteOnSubmit(model);
+ db.SubmitChanges();
+ }
+ }
+ }
+}
diff --git a/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationQualityCertificateService.cs b/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationQualityCertificateService.cs
new file mode 100644
index 0000000..74efa26
--- /dev/null
+++ b/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationQualityCertificateService.cs
@@ -0,0 +1,136 @@
+using Model;
+using System.Linq;
+using System.Collections.Generic;
+
+namespace BLL
+{
+ ///
+ /// 工业管道安装质量证明书
+ ///
+ public class IndustrialPipelineInstallationQualityCertificateService
+ {
+ ///
+ /// 根据主键获取工业管道安装质量证明书
+ ///
+ ///
+ ///
+ public static Model.JGZL_IndustrialPipelineInstallationQualityCertificate GetIndustrialPipelineInstallationQualityCertificateById(string Id)
+ {
+ return Funs.DB.JGZL_IndustrialPipelineInstallationQualityCertificate.FirstOrDefault(e => e.CertificateId == Id);
+ }
+
+ ///
+ /// 添加工业管道安装质量证明书
+ ///
+ ///
+ public static void AddIndustrialPipelineInstallationQualityCertificate(Model.JGZL_IndustrialPipelineInstallationQualityCertificate model)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_IndustrialPipelineInstallationQualityCertificate newModel = new JGZL_IndustrialPipelineInstallationQualityCertificate();
+ newModel.CertificateId = model.CertificateId;
+ newModel.ProjectId = model.ProjectId;
+ newModel.CertificateCode = model.CertificateCode;
+ newModel.EngineeringName = model.EngineeringName;
+ newModel.EngineeringCode = model.EngineeringCode;
+ newModel.DeliveryUnit = model.DeliveryUnit;
+ newModel.DeliveryUnitCode = model.DeliveryUnitCode;
+ newModel.InstallStartDate = model.InstallStartDate;
+ newModel.InstallEndDate = model.InstallEndDate;
+ newModel.PipelineLevel = model.PipelineLevel;
+ newModel.PipelineLength = model.PipelineLength;
+ newModel.DesignUnit = model.DesignUnit;
+ newModel.LosslessTestingAgency = model.LosslessTestingAgency;
+ newModel.SupervisoryAndInspectionAgency = model.SupervisoryAndInspectionAgency;
+ newModel.ConstructionUnit = model.ConstructionUnit;
+ newModel.SpecialEquipmentProductionLicenseCode = model.SpecialEquipmentProductionLicenseCode;
+ newModel.Remark = model.Remark;
+ newModel.CompileMan = model.CompileMan;
+ newModel.CompileDate = model.CompileDate;
+ newModel.Reviewer = model.Reviewer;
+ newModel.RevieweDate = model.RevieweDate;
+ db.JGZL_IndustrialPipelineInstallationQualityCertificate.InsertOnSubmit(newModel);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 修改工业管道安装质量证明书
+ ///
+ ///
+ public static void UpdateIndustrialPipelineInstallationQualityCertificate(Model.JGZL_IndustrialPipelineInstallationQualityCertificate model)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_IndustrialPipelineInstallationQualityCertificate newModel = db.JGZL_IndustrialPipelineInstallationQualityCertificate.FirstOrDefault(e => e.CertificateId == model.CertificateId);
+ if (newModel != null)
+ {
+ newModel.CertificateCode = model.CertificateCode;
+ newModel.EngineeringName = model.EngineeringName;
+ newModel.EngineeringCode = model.EngineeringCode;
+ newModel.DeliveryUnit = model.DeliveryUnit;
+ newModel.DeliveryUnitCode = model.DeliveryUnitCode;
+ newModel.InstallStartDate = model.InstallStartDate;
+ newModel.InstallEndDate = model.InstallEndDate;
+ newModel.PipelineLevel = model.PipelineLevel;
+ newModel.PipelineLength = model.PipelineLength;
+ newModel.DesignUnit = model.DesignUnit;
+ newModel.LosslessTestingAgency = model.LosslessTestingAgency;
+ newModel.SupervisoryAndInspectionAgency = model.SupervisoryAndInspectionAgency;
+ newModel.ConstructionUnit = model.ConstructionUnit;
+ newModel.SpecialEquipmentProductionLicenseCode = model.SpecialEquipmentProductionLicenseCode;
+ newModel.Remark = model.Remark;
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除工业管道安装质量证明书
+ ///
+ ///
+ public static void DeleteIndustrialPipelineInstallationQualityCertificateById(string Id)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_IndustrialPipelineInstallationQualityCertificate model = db.JGZL_IndustrialPipelineInstallationQualityCertificate.FirstOrDefault(e => e.CertificateId == Id);
+ if (model != null)
+ {
+ db.JGZL_IndustrialPipelineInstallationQualityCertificate.DeleteOnSubmit(model);
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 获取下拉选择项本项目下所有工业管道安装质量证明书信息
+ ///
+ ///
+ ///
+ ///
+ public static void InitIndustrialPipelineInstallationQualityCertificateDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease)
+ {
+ dropName.DataValueField = "CertificateId";
+ dropName.DataTextField = "CertificateCode";
+ dropName.DataSource = GetIndustrialPipelineInstallationQualityCertificateList(projectId);
+ dropName.DataBind();
+ if (isShowPlease)
+ {
+ Funs.FineUIPleaseSelect(dropName);
+ }
+ }
+
+ ///
+ /// 获取下拉选择项本项目下所有工业管道安装质量证明书信息
+ ///
+ /// 项目Id
+ ///
+ public static List GetIndustrialPipelineInstallationQualityCertificateList(string projectId)
+ {
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ var q = (from x in db.JGZL_IndustrialPipelineInstallationQualityCertificate orderby x.CertificateCode descending select x).ToList();
+ if (!string.IsNullOrWhiteSpace(projectId))
+ {
+ q = q.Where(x => x.ProjectId == projectId).ToList();
+ }
+ return q;
+ }
+ }
+
+ }
+}
diff --git a/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationSummaryService.cs b/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationSummaryService.cs
new file mode 100644
index 0000000..4a84850
--- /dev/null
+++ b/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationSummaryService.cs
@@ -0,0 +1,113 @@
+using Model;
+using System.Linq;
+
+namespace BLL
+{
+ ///
+ /// 工业管道安装汇总表
+ ///
+ public class IndustrialPipelineInstallationSummaryService
+ {
+ ///
+ /// 根据主键获取工业管道安装汇总表
+ ///
+ ///
+ ///
+ public static Model.JGZL_IndustrialPipelineInstallationSummary GetIndustrialPipelineInstallationSummaryById(string Id)
+ {
+ return Funs.DB.JGZL_IndustrialPipelineInstallationSummary.FirstOrDefault(e => e.SummaryId == Id);
+ }
+
+ ///
+ /// 添加工业管道安装汇总表
+ ///
+ ///
+ public static void AddIndustrialPipelineInstallationSummary(Model.JGZL_IndustrialPipelineInstallationSummary model)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_IndustrialPipelineInstallationSummary newModel = new JGZL_IndustrialPipelineInstallationSummary();
+ newModel.SummaryId = model.SummaryId;
+ newModel.CertificateId = model.CertificateId;
+ newModel.ProjectId = model.ProjectId;
+ newModel.PipelineCode = model.PipelineCode;
+ newModel.PipelineLevel = model.PipelineLevel;
+ newModel.PipelineStartPoint = model.PipelineStartPoint;
+ newModel.PipelineEndPoint = model.PipelineEndPoint;
+ newModel.DesignPressure = model.DesignPressure;
+ newModel.DesignTemperature = model.DesignTemperature;
+ newModel.Medium = model.Medium;
+ newModel.Material = model.Material;
+ newModel.Specifications = model.Specifications;
+ newModel.Length = model.Length;
+ newModel.LayingMethod = model.LayingMethod;
+ newModel.WeldsNum = model.WeldsNum;
+ newModel.LosslessRatio = model.LosslessRatio;
+ newModel.VoltageResistantTestMethod = model.VoltageResistantTestMethod;
+ newModel.VoltageResistantTestMedium = model.VoltageResistantTestMedium;
+ newModel.VoltageResistantTestPressure = model.VoltageResistantTestPressure;
+ newModel.LeakageTestMedium = model.LeakageTestMedium;
+ newModel.LeakageTestPressure = model.LeakageTestPressure;
+ newModel.CleaningMethod = model.CleaningMethod;
+ newModel.CorrosionControlMethod = model.CorrosionControlMethod;
+ newModel.InsulationMethod = model.InsulationMethod;
+ newModel.Remark = model.Remark;
+ newModel.CompileMan = model.CompileMan;
+ newModel.CompileDate = model.CompileDate;
+ newModel.Reviewer = model.Reviewer;
+ newModel.RevieweDate = model.RevieweDate;
+ db.JGZL_IndustrialPipelineInstallationSummary.InsertOnSubmit(newModel);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 修改工业管道安装汇总表
+ ///
+ ///
+ public static void UpdateIndustrialPipelineInstallationSummary(Model.JGZL_IndustrialPipelineInstallationSummary model)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_IndustrialPipelineInstallationSummary newModel = db.JGZL_IndustrialPipelineInstallationSummary.FirstOrDefault(e => e.SummaryId == model.SummaryId);
+ if (newModel != null)
+ {
+ newModel.PipelineCode = model.PipelineCode;
+ newModel.PipelineLevel = model.PipelineLevel;
+ newModel.PipelineStartPoint = model.PipelineStartPoint;
+ newModel.PipelineEndPoint = model.PipelineEndPoint;
+ newModel.DesignPressure = model.DesignPressure;
+ newModel.DesignTemperature = model.DesignTemperature;
+ newModel.Medium = model.Medium;
+ newModel.Material = model.Material;
+ newModel.Specifications = model.Specifications;
+ newModel.Length = model.Length;
+ newModel.LayingMethod = model.LayingMethod;
+ newModel.WeldsNum = model.WeldsNum;
+ newModel.LosslessRatio = model.LosslessRatio;
+ newModel.VoltageResistantTestMethod = model.VoltageResistantTestMethod;
+ newModel.VoltageResistantTestMedium = model.VoltageResistantTestMedium;
+ newModel.VoltageResistantTestPressure = model.VoltageResistantTestPressure;
+ newModel.LeakageTestMedium = model.LeakageTestMedium;
+ newModel.LeakageTestPressure = model.LeakageTestPressure;
+ newModel.CleaningMethod = model.CleaningMethod;
+ newModel.CorrosionControlMethod = model.CorrosionControlMethod;
+ newModel.InsulationMethod = model.InsulationMethod;
+ newModel.Remark = model.Remark;
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除工业管道安装汇总表
+ ///
+ ///
+ public static void DeleteIndustrialPipelineInstallationSummaryById(string Id)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_IndustrialPipelineInstallationSummary model = db.JGZL_IndustrialPipelineInstallationSummary.FirstOrDefault(e => e.SummaryId == Id);
+ if (model != null)
+ {
+ db.JGZL_IndustrialPipelineInstallationSummary.DeleteOnSubmit(model);
+ db.SubmitChanges();
+ }
+ }
+ }
+}
diff --git a/HJGL_DS/BLL/JGZL/PipelineInstallationInspectionRecordService.cs b/HJGL_DS/BLL/JGZL/PipelineInstallationInspectionRecordService.cs
new file mode 100644
index 0000000..499ee41
--- /dev/null
+++ b/HJGL_DS/BLL/JGZL/PipelineInstallationInspectionRecordService.cs
@@ -0,0 +1,78 @@
+using Model;
+using System.Linq;
+
+namespace BLL
+{
+ ///
+ /// 管道安装检查记录
+ ///
+ public class PipelineInstallationInspectionRecordService
+ {
+ ///
+ /// 根据主键获取管道安装检查记录
+ ///
+ ///
+ ///
+ public static Model.JGZL_PipelineInstallationInspectionRecord GetPipelineInstallationInspectionRecordById(string Id)
+ {
+ return Funs.DB.JGZL_PipelineInstallationInspectionRecord.FirstOrDefault(e => e.RecordId == Id);
+ }
+
+ ///
+ /// 添加管道安装检查记录
+ ///
+ ///
+ public static void AddPipelineInstallationInspectionRecord(Model.JGZL_PipelineInstallationInspectionRecord model)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_PipelineInstallationInspectionRecord newModel = new JGZL_PipelineInstallationInspectionRecord();
+ newModel.RecordId = model.RecordId;
+ newModel.ProjectId = model.ProjectId;
+ newModel.ProfessionalEngineering = model.ProfessionalEngineering;
+ newModel.DrawingNumber = model.DrawingNumber;
+ newModel.InspectionItems = model.InspectionItems;
+ newModel.InspectionResults = model.InspectionResults;
+ newModel.Remark = model.Remark;
+ newModel.CompileMan = model.CompileMan;
+ newModel.CompileDate = model.CompileDate;
+ newModel.Reviewer = model.Reviewer;
+ newModel.RevieweDate = model.RevieweDate;
+ db.JGZL_PipelineInstallationInspectionRecord.InsertOnSubmit(newModel);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 修改管道安装检查记录
+ ///
+ ///
+ public static void UpdatePipelineInstallationInspectionRecord(Model.JGZL_PipelineInstallationInspectionRecord model)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_PipelineInstallationInspectionRecord newModel = db.JGZL_PipelineInstallationInspectionRecord.FirstOrDefault(e => e.RecordId == model.RecordId);
+ if (newModel != null)
+ {
+ newModel.ProfessionalEngineering = model.ProfessionalEngineering;
+ newModel.DrawingNumber = model.DrawingNumber;
+ newModel.InspectionItems = model.InspectionItems;
+ newModel.InspectionResults = model.InspectionResults;
+ newModel.Remark = model.Remark;
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除管道安装检查记录
+ ///
+ ///
+ public static void DeletePipelineInstallationInspectionRecordById(string Id)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_PipelineInstallationInspectionRecord model = db.JGZL_PipelineInstallationInspectionRecord.FirstOrDefault(e => e.RecordId == Id);
+ if (model != null)
+ {
+ db.JGZL_PipelineInstallationInspectionRecord.DeleteOnSubmit(model);
+ db.SubmitChanges();
+ }
+ }
+ }
+}
diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
index 837de6c..2697363 100644
--- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
@@ -1248,6 +1248,12 @@
+
+
+
+
+
+
@@ -1256,7 +1262,9 @@
+
+
@@ -6602,6 +6610,48 @@
CommencementReportEdit.aspx
+
+ IndustrialPipelineInstallationSummary.aspx
+ ASPXCodeBehind
+
+
+ IndustrialPipelineInstallationSummary.aspx
+
+
+ IndustrialPipelineInstallationSummaryEdit.aspx
+ ASPXCodeBehind
+
+
+ IndustrialPipelineInstallationSummaryEdit.aspx
+
+
+ IndustrialPipelineInstallationQualityCertificate.aspx
+ ASPXCodeBehind
+
+
+ IndustrialPipelineInstallationQualityCertificate.aspx
+
+
+ IndustrialPipelineInstallationQualityCertificateEdit.aspx
+ ASPXCodeBehind
+
+
+ IndustrialPipelineInstallationQualityCertificateEdit.aspx
+
+
+ PipelineInstallationInspectionRecord.aspx
+ ASPXCodeBehind
+
+
+ PipelineInstallationInspectionRecord.aspx
+
+
+ PipelineInstallationInspectionRecordEdit.aspx
+ ASPXCodeBehind
+
+
+ PipelineInstallationInspectionRecordEdit.aspx
+
ConDrawingVerification.aspx
ASPXCodeBehind
@@ -6658,6 +6708,13 @@
HandoverCertificateEdit.aspx
+
+ ConcealedWorksInspectionRecord.aspx
+ ASPXCodeBehind
+
+
+ ConcealedWorksInspectionRecord.aspx
+
MaterialQualityCertificateDoc.aspx
ASPXCodeBehind
@@ -6665,6 +6722,13 @@
MaterialQualityCertificateDoc.aspx
+
+ ConcealedWorksInspectionRecordEdit.aspx
+ ASPXCodeBehind
+
+
+ ConcealedWorksInspectionRecordEdit.aspx
+
MeasuringInstruments.aspx
ASPXCodeBehind
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecord.aspx b/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecord.aspx
new file mode 100644
index 0000000..a939451
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecord.aspx
@@ -0,0 +1,121 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ConcealedWorksInspectionRecord.aspx.cs" Inherits="FineUIPro.Web.JGZL.ConcealedWorksInspectionRecord" %>
+
+
+
+
+
+
+ 隐蔽工程验收记录
+
+
+
+
+
+
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecord.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecord.aspx.cs
new file mode 100644
index 0000000..4805bc5
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecord.aspx.cs
@@ -0,0 +1,405 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data.SqlClient;
+using System.Data;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.IO;
+
+namespace FineUIPro.Web.JGZL
+{
+ public partial class ConcealedWorksInspectionRecord : PageBase
+ {
+ #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.InitTreeMenu();//加载树
+
+ if (!string.IsNullOrWhiteSpace(this.CurrUser.LoginProjectId))
+ {
+ this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
+ this.tvControlItem.SelectedNodeID = this.CurrUser.LoginProjectId;
+ this.BindGrid();
+ }
+ }
+ }
+ #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_ConcealedWorksInspectionRecord where 1=1";
+ List listStr = new List();
+ if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
+ {
+ strSql += " AND 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.InitTreeMenu();
+ this.BindGrid();
+ }
+
+ ///
+ /// 查询
+ ///
+ ///
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ this.BindGrid();
+ }
+ #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();
+
+ string strSql = @"SELECT * from JGZL_ConcealedWorksInspectionRecord where ProjectId = @ProjectId order by DrawingNumber desc";
+ List listStr = new List();
+ listStr.Add(new SqlParameter("@ProjectId", projectId));
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+
+ DataTable dt = new DataTable();
+ dt.TableName = "Data";
+ dt.Columns.Add("Num");
+ dt.Columns.Add("ConcealedWorks");
+ dt.Columns.Add("DrawingNumber");
+ dt.Columns.Add("ConcealedContentAndDiagram");
+ dt.Columns.Add("InspectionResults");
+ dt.Columns.Add("Remark");
+
+ DataRow[] rows = tb.DefaultView.ToTable().Select();
+ int i = 0;
+ foreach (var row in rows)
+ {
+ var newRow = dt.NewRow();
+ newRow["Num"] = (i + 1).ToString();
+ newRow["ConcealedWorks"] = row["ConcealedWorks"].ToString();
+ newRow["DrawingNumber"] = row["DrawingNumber"].ToString();
+ newRow["ConcealedContentAndDiagram"] = row["ConcealedContentAndDiagram"].ToString();
+ newRow["Remark"] = row["Remark"].ToString();
+ dt.Rows.Add(newRow);
+ i++;
+ }
+ BLL.Common.FastReportService.AddFastreportTable(dt);
+
+ 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;
+ }
+ }
+ #endregion
+
+ #region 维护
+ ///
+ /// 增加
+ ///
+ ///
+ ///
+ protected void btnAdd_Click(object sender, EventArgs e)
+ {
+ if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ConcealedWorksInspectionRecordEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
+ }
+ else
+ {
+ Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+
+ ///
+ /// 双击编辑
+ ///
+ ///
+ ///
+ protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_ConcealedWorksInspectionRecordMenuId, BLL.Const.BtnModify))
+ {
+ if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
+ {
+ if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ConcealedWorksInspectionRecordEdit.aspx?recordId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
+ }
+ else
+ {
+ Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ else
+ {
+ Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ else
+ {
+ ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+
+ ///
+ /// 右键编辑
+ ///
+ ///
+ ///
+ protected void btnMenuEdit_Click(object sender, EventArgs e)
+ {
+ if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_ConcealedWorksInspectionRecordMenuId, BLL.Const.BtnModify))
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ConcealedWorksInspectionRecordEdit.aspx?recordId={0}", Grid1.SelectedRowID, "维护 - ")));
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+
+ ///
+ /// 右键删除
+ ///
+ ///
+ ///
+ protected void btnMenuDelete_Click(object sender, EventArgs e)
+ {
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_ConcealedWorksInspectionRecordMenuId, Const.BtnDelete))
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+
+ bool isShow = true;
+ if (Grid1.SelectedRowIndexArray.Length > 1)
+ {
+ isShow = false;
+ }
+ bool isDelete = false;
+ foreach (int rowIndex in Grid1.SelectedRowIndexArray)
+ {
+ string rowID = Grid1.DataKeys[rowIndex][0].ToString();
+ if (judgementDelete(rowID, isShow))
+ {
+ isDelete = true;
+ BLL.ConcealedWorksInspectionRecordService.DeleteConcealedWorksInspectionRecordById(rowID);
+ BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除隐蔽工程验收记录");
+ }
+ }
+ if (isDelete)
+ {
+ ShowNotify("删除成功!", MessageBoxIcon.Success);
+ }
+ this.BindGrid();
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+
+ #region 判断是否可删除
+ ///
+ /// 判断是否可以删除
+ ///
+ ///
+ private bool judgementDelete(string id, bool isShow)
+ {
+ string content = string.Empty;
+
+ if (string.IsNullOrEmpty(content))
+ {
+ return true;
+ }
+ else
+ {
+ if (isShow)
+ {
+ Alert.ShowInTop(content, MessageBoxIcon.Error);
+ }
+ return false;
+ }
+ }
+ #endregion
+ #endregion
+
+ #region 关闭弹出窗口及刷新页面
+ ///
+ /// 关闭弹出窗口
+ ///
+ ///
+ ///
+ protected void Window1_Close(object sender, WindowCloseEventArgs e)
+ {
+ this.InitTreeMenu();//加载树
+ this.BindGrid();
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecord.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecord.aspx.designer.cs
new file mode 100644
index 0000000..0e1c114
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecord.aspx.designer.cs
@@ -0,0 +1,206 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.JGZL
+{
+
+
+ public partial class ConcealedWorksInspectionRecord
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// btnPrint 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnPrint;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+
+ ///
+ /// WindowPrint 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window WindowPrint;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnMenuEdit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuEdit;
+
+ ///
+ /// btnMenuDelete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuDelete;
+ }
+}
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecordEdit.aspx b/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecordEdit.aspx
new file mode 100644
index 0000000..d148d26
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecordEdit.aspx
@@ -0,0 +1,56 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ConcealedWorksInspectionRecordEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.ConcealedWorksInspectionRecordEdit" %>
+
+
+
+
+
+
+ 编辑隐蔽工程验收记录
+
+
+
+
+
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecordEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecordEdit.aspx.cs
new file mode 100644
index 0000000..9986065
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecordEdit.aspx.cs
@@ -0,0 +1,112 @@
+using BLL;
+using System;
+
+namespace FineUIPro.Web.JGZL
+{
+ public partial class ConcealedWorksInspectionRecordEdit : PageBase
+ {
+ #region 定义项
+ ///
+ /// 主键
+ ///
+ private string RecordId
+ {
+ get
+ {
+ return (string)ViewState["RecordId"];
+ }
+ set
+ {
+ ViewState["RecordId"] = value;
+ }
+ }
+
+ ///
+ /// 项目Id
+ ///
+ private string ProjectId
+ {
+ get
+ {
+ return (string)ViewState["ProjectId"];
+ }
+ set
+ {
+ ViewState["ProjectId"] = value;
+ }
+ }
+ #endregion
+
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.ProjectId = Request.Params["projectId"];
+ this.RecordId = Request.Params["recordId"];
+ if (!string.IsNullOrEmpty(this.RecordId))
+ {
+ var report = BLL.ConcealedWorksInspectionRecordService.GetConcealedWorksInspectionRecordById(this.RecordId);
+ if (report != null)
+ {
+ this.txtDrawingNumber.Text = report.DrawingNumber;
+ this.txtConcealedWorks.Text = report.ConcealedWorks;
+ this.txtConcealedContentAndDiagram.Text = report.ConcealedContentAndDiagram;
+ this.txtInspectionResults.Text = report.InspectionResults;
+ this.txtRemark.Text = report.Remark;
+ }
+ }
+ }
+ }
+ #endregion
+
+ #region 提交按钮
+ ///
+ /// 提交按钮
+ ///
+ ///
+ ///
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_ConcealedWorksInspectionRecordMenuId, Const.BtnSave))
+ {
+ Model.JGZL_ConcealedWorksInspectionRecord newReport = new Model.JGZL_ConcealedWorksInspectionRecord();
+ newReport.DrawingNumber = this.txtDrawingNumber.Text.Trim();
+ newReport.ConcealedWorks = this.txtConcealedWorks.Text.Trim();
+ newReport.ConcealedContentAndDiagram = this.txtConcealedContentAndDiagram.Text.Trim();
+ newReport.InspectionResults = this.txtInspectionResults.Text.Trim();
+ newReport.Remark = this.txtRemark.Text.Trim();
+
+ if (!string.IsNullOrEmpty(this.RecordId))
+ {
+ newReport.RecordId = this.RecordId;
+ BLL.ConcealedWorksInspectionRecordService.UpdateConcealedWorksInspectionRecord(newReport);
+ }
+ else
+ {
+ newReport.ProjectId = this.ProjectId;
+ newReport.CompileMan = this.CurrUser.UserId;
+ newReport.CompileDate = DateTime.Now;
+ newReport.Reviewer = this.CurrUser.UserId;
+ newReport.RevieweDate = DateTime.Now;
+ newReport.RecordId = SQLHelper.GetNewID(typeof(Model.JGZL_ConcealedWorksInspectionRecord));
+ this.RecordId = newReport.RecordId;
+ BLL.ConcealedWorksInspectionRecordService.AddConcealedWorksInspectionRecord(newReport);
+ }
+ ShowNotify("保存成功!", MessageBoxIcon.Success);
+ PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecordEdit.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecordEdit.aspx.designer.cs
new file mode 100644
index 0000000..7f96d19
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecordEdit.aspx.designer.cs
@@ -0,0 +1,116 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.JGZL
+{
+
+
+ public partial class ConcealedWorksInspectionRecordEdit
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// txtDrawingNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtDrawingNumber;
+
+ ///
+ /// txtConcealedWorks 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtConcealedWorks;
+
+ ///
+ /// txtConcealedContentAndDiagram 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtConcealedContentAndDiagram;
+
+ ///
+ /// txtInspectionResults 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtInspectionResults;
+
+ ///
+ /// txtRemark 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtRemark;
+ }
+}
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx
new file mode 100644
index 0000000..b04635f
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx
@@ -0,0 +1,151 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="IndustrialPipelineInstallationQualityCertificate.aspx.cs" Inherits="FineUIPro.Web.JGZL.IndustrialPipelineInstallationQualityCertificate" %>
+
+
+
+
+
+
+ 工业管道安装质量证明书
+
+
+
+
+
+
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs
new file mode 100644
index 0000000..fb3d8bc
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs
@@ -0,0 +1,426 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data.SqlClient;
+using System.Data;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.IO;
+
+namespace FineUIPro.Web.JGZL
+{
+ public partial class IndustrialPipelineInstallationQualityCertificate : PageBase
+ {
+ #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.InitTreeMenu();//加载树
+
+ if (!string.IsNullOrWhiteSpace(this.CurrUser.LoginProjectId))
+ {
+ this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
+ this.tvControlItem.SelectedNodeID = this.CurrUser.LoginProjectId;
+ this.BindGrid();
+ }
+ }
+ }
+ #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_IndustrialPipelineInstallationQualityCertificate where 1=1";
+ List listStr = new List();
+ if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
+ {
+ strSql += " AND 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.InitTreeMenu();
+ this.BindGrid();
+ }
+
+ ///
+ /// 查询
+ ///
+ ///
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ this.BindGrid();
+ }
+ #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();
+
+ string strSql = @"SELECT * from JGZL_IndustrialPipelineInstallationQualityCertificate where ProjectId = @ProjectId order by DrawingNumber desc";
+ List listStr = new List();
+ listStr.Add(new SqlParameter("@ProjectId", projectId));
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+
+ DataTable dt = new DataTable();
+ dt.TableName = "Data";
+ dt.Columns.Add("Num");
+ dt.Columns.Add("CertificateCode");
+ dt.Columns.Add("EngineeringName");
+ dt.Columns.Add("EngineeringCode");
+ dt.Columns.Add("DeliveryUnit");
+ dt.Columns.Add("DeliveryUnitCode");
+ dt.Columns.Add("InstallStartDate");
+ dt.Columns.Add("InstallEndDate");
+ dt.Columns.Add("PipelineLevel");
+ dt.Columns.Add("PipelineLength");
+ dt.Columns.Add("DesignUnit");
+ dt.Columns.Add("LosslessTestingAgency");
+ dt.Columns.Add("SupervisoryAndInspectionAgency");
+ dt.Columns.Add("ConstructionUnit");
+ dt.Columns.Add("SpecialEquipmentProductionLicenseCode");
+ dt.Columns.Add("Remark");
+
+ DataRow[] rows = tb.DefaultView.ToTable().Select();
+ int i = 0;
+ foreach (var row in rows)
+ {
+ var newRow = dt.NewRow();
+ newRow["Num"] = (i + 1).ToString();
+ newRow["CertificateCode"] = row["CertificateCode"].ToString();
+ newRow["EngineeringName"] = row["EngineeringName"].ToString();
+ newRow["EngineeringCode"] = row["EngineeringCode"].ToString();
+ newRow["DeliveryUnit"] = row["DeliveryUnit"].ToString();
+ newRow["DeliveryUnitCode"] = row["DeliveryUnitCode"].ToString();
+ newRow["InstallStartDate"] = row["InstallStartDate"].ToString();
+ newRow["InstallEndDate"] = row["InstallEndDate"].ToString();
+ newRow["PipelineLevel"] = row["PipelineLevel"].ToString();
+ newRow["PipelineLength"] = row["PipelineLength"].ToString();
+ newRow["DesignUnit"] = row["DesignUnit"].ToString();
+ newRow["LosslessTestingAgency"] = row["LosslessTestingAgency"].ToString();
+ newRow["SupervisoryAndInspectionAgency"] = row["SupervisoryAndInspectionAgency"].ToString();
+ newRow["ConstructionUnit"] = row["ConstructionUnit"].ToString();
+ newRow["SpecialEquipmentProductionLicenseCode"] = row["SpecialEquipmentProductionLicenseCode"].ToString();
+ newRow["Remark"] = row["Remark"].ToString();
+ dt.Rows.Add(newRow);
+ i++;
+ }
+ BLL.Common.FastReportService.AddFastreportTable(dt);
+
+ 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;
+ }
+ }
+ #endregion
+
+ #region 维护
+ ///
+ /// 增加
+ ///
+ ///
+ ///
+ protected void btnAdd_Click(object sender, EventArgs e)
+ {
+ if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationQualityCertificateEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
+ }
+ else
+ {
+ Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+
+ ///
+ /// 双击编辑
+ ///
+ ///
+ ///
+ protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_IndustrialPipelineInstallationQualityCertificateMenuId, BLL.Const.BtnModify))
+ {
+ if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
+ {
+ if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationQualityCertificateEdit.aspx?certificateId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
+ }
+ else
+ {
+ Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ else
+ {
+ Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ else
+ {
+ ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+
+ ///
+ /// 右键编辑
+ ///
+ ///
+ ///
+ protected void btnMenuEdit_Click(object sender, EventArgs e)
+ {
+ if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_IndustrialPipelineInstallationQualityCertificateMenuId, BLL.Const.BtnModify))
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationQualityCertificateEdit.aspx?certificateId={0}", Grid1.SelectedRowID, "维护 - ")));
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+
+ ///
+ /// 右键删除
+ ///
+ ///
+ ///
+ protected void btnMenuDelete_Click(object sender, EventArgs e)
+ {
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_IndustrialPipelineInstallationQualityCertificateMenuId, Const.BtnDelete))
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+
+ bool isShow = true;
+ if (Grid1.SelectedRowIndexArray.Length > 1)
+ {
+ isShow = false;
+ }
+ bool isDelete = false;
+ foreach (int rowIndex in Grid1.SelectedRowIndexArray)
+ {
+ string rowID = Grid1.DataKeys[rowIndex][0].ToString();
+ if (judgementDelete(rowID, isShow))
+ {
+ isDelete = true;
+ BLL.IndustrialPipelineInstallationQualityCertificateService.DeleteIndustrialPipelineInstallationQualityCertificateById(rowID);
+ BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除工业管道安装质量证明书");
+ }
+ }
+ if (isDelete)
+ {
+ ShowNotify("删除成功!", MessageBoxIcon.Success);
+ }
+ this.BindGrid();
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+
+ #region 判断是否可删除
+ ///
+ /// 判断是否可以删除
+ ///
+ ///
+ private bool judgementDelete(string id, bool isShow)
+ {
+ string content = string.Empty;
+
+ if (string.IsNullOrEmpty(content))
+ {
+ return true;
+ }
+ else
+ {
+ if (isShow)
+ {
+ Alert.ShowInTop(content, MessageBoxIcon.Error);
+ }
+ return false;
+ }
+ }
+ #endregion
+ #endregion
+
+ #region 关闭弹出窗口及刷新页面
+ ///
+ /// 关闭弹出窗口
+ ///
+ ///
+ ///
+ protected void Window1_Close(object sender, WindowCloseEventArgs e)
+ {
+ this.InitTreeMenu();//加载树
+ this.BindGrid();
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.designer.cs
new file mode 100644
index 0000000..979e2e5
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.designer.cs
@@ -0,0 +1,206 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.JGZL
+{
+
+
+ public partial class IndustrialPipelineInstallationQualityCertificate
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// btnPrint 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnPrint;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+
+ ///
+ /// WindowPrint 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window WindowPrint;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnMenuEdit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuEdit;
+
+ ///
+ /// btnMenuDelete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuDelete;
+ }
+}
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx
new file mode 100644
index 0000000..0d23460
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx
@@ -0,0 +1,78 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="IndustrialPipelineInstallationQualityCertificateEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.IndustrialPipelineInstallationQualityCertificateEdit" %>
+
+
+
+
+
+
+ 编辑工业管道安装质量证明书
+
+
+
+
+
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx.cs
new file mode 100644
index 0000000..eeda40a
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx.cs
@@ -0,0 +1,132 @@
+using BLL;
+using System;
+
+namespace FineUIPro.Web.JGZL
+{
+ public partial class IndustrialPipelineInstallationQualityCertificateEdit : PageBase
+ {
+ #region 定义项
+ ///
+ /// 主键
+ ///
+ private string CertificateId
+ {
+ get
+ {
+ return (string)ViewState["CertificateId"];
+ }
+ set
+ {
+ ViewState["CertificateId"] = value;
+ }
+ }
+
+ ///
+ /// 项目Id
+ ///
+ private string ProjectId
+ {
+ get
+ {
+ return (string)ViewState["ProjectId"];
+ }
+ set
+ {
+ ViewState["ProjectId"] = value;
+ }
+ }
+ #endregion
+
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.ProjectId = Request.Params["projectId"];
+ this.CertificateId = Request.Params["certificateId"];
+ if (!string.IsNullOrEmpty(this.CertificateId))
+ {
+ var report = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(this.CertificateId);
+ if (report != null)
+ {
+ this.txtCertificateCode.Text = report.CertificateCode;
+ this.txtSpecialEquipmentProductionLicenseCode.Text = report.SpecialEquipmentProductionLicenseCode;
+ this.txtEngineeringName.Text = report.EngineeringName;
+ this.txtEngineeringCode.Text = report.EngineeringCode;
+ this.txtDeliveryUnit.Text = report.DeliveryUnit;
+ this.txtDeliveryUnitCode.Text = report.DeliveryUnitCode;
+ this.txtInstallStartDate.Text = report.InstallStartDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.InstallStartDate) : "";
+ this.txtInstallEndDate.Text = report.InstallEndDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.InstallEndDate) : "";
+ this.txtPipelineLevel.Text = report.PipelineLevel;
+ this.txtPipelineLength.Text = report.PipelineLength;
+ this.txtDesignUnit.Text = report.DesignUnit;
+ this.txtLosslessTestingAgency.Text = report.LosslessTestingAgency;
+ this.txtSupervisoryAndInspectionAgency.Text = report.SupervisoryAndInspectionAgency;
+ this.txtConstructionUnit.Text = report.ConstructionUnit;
+ this.txtRemark.Text = report.Remark;
+ }
+ }
+ }
+ }
+ #endregion
+
+ #region 提交按钮
+ ///
+ /// 提交按钮
+ ///
+ ///
+ ///
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_IndustrialPipelineInstallationQualityCertificateMenuId, Const.BtnSave))
+ {
+ Model.JGZL_IndustrialPipelineInstallationQualityCertificate newReport = new Model.JGZL_IndustrialPipelineInstallationQualityCertificate();
+ newReport.CertificateCode = this.txtCertificateCode.Text.Trim();
+ newReport.SpecialEquipmentProductionLicenseCode = this.txtSpecialEquipmentProductionLicenseCode.Text.Trim();
+ newReport.EngineeringName = this.txtEngineeringName.Text.Trim();
+ newReport.EngineeringCode = this.txtEngineeringCode.Text.Trim();
+ newReport.DeliveryUnit = this.txtDeliveryUnit.Text.Trim();
+ newReport.DeliveryUnitCode = this.txtDeliveryUnitCode.Text.Trim();
+ newReport.InstallStartDate = Funs.GetNewDateTime(this.txtInstallStartDate.Text.Trim());
+ newReport.InstallEndDate = Funs.GetNewDateTime(this.txtInstallEndDate.Text.Trim());
+ newReport.PipelineLevel = this.txtPipelineLevel.Text.Trim();
+ newReport.PipelineLength = this.txtPipelineLength.Text.Trim();
+ newReport.DesignUnit = this.txtDesignUnit.Text.Trim();
+ newReport.LosslessTestingAgency = this.txtLosslessTestingAgency.Text.Trim();
+ newReport.SupervisoryAndInspectionAgency = this.txtSupervisoryAndInspectionAgency.Text.Trim();
+ newReport.ConstructionUnit = this.txtConstructionUnit.Text.Trim();
+ newReport.Remark = this.txtRemark.Text.Trim();
+
+ if (!string.IsNullOrEmpty(this.CertificateId))
+ {
+ newReport.CertificateId = this.CertificateId;
+ BLL.IndustrialPipelineInstallationQualityCertificateService.UpdateIndustrialPipelineInstallationQualityCertificate(newReport);
+ }
+ else
+ {
+ newReport.ProjectId = this.ProjectId;
+ newReport.CompileMan = this.CurrUser.UserId;
+ newReport.CompileDate = DateTime.Now;
+ newReport.Reviewer = this.CurrUser.UserId;
+ newReport.RevieweDate = DateTime.Now;
+ newReport.CertificateId = SQLHelper.GetNewID(typeof(Model.JGZL_IndustrialPipelineInstallationQualityCertificate));
+ this.CertificateId = newReport.CertificateId;
+ BLL.IndustrialPipelineInstallationQualityCertificateService.AddIndustrialPipelineInstallationQualityCertificate(newReport);
+ }
+ ShowNotify("保存成功!", MessageBoxIcon.Success);
+ PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx.designer.cs
new file mode 100644
index 0000000..f5d96e7
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx.designer.cs
@@ -0,0 +1,206 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.JGZL
+{
+
+
+ public partial class IndustrialPipelineInstallationQualityCertificateEdit
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// txtCertificateCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtCertificateCode;
+
+ ///
+ /// txtSpecialEquipmentProductionLicenseCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtSpecialEquipmentProductionLicenseCode;
+
+ ///
+ /// txtEngineeringName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtEngineeringName;
+
+ ///
+ /// txtEngineeringCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtEngineeringCode;
+
+ ///
+ /// txtDeliveryUnit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtDeliveryUnit;
+
+ ///
+ /// txtDeliveryUnitCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtDeliveryUnitCode;
+
+ ///
+ /// txtInstallStartDate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtInstallStartDate;
+
+ ///
+ /// txtInstallEndDate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtInstallEndDate;
+
+ ///
+ /// txtPipelineLevel 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPipelineLevel;
+
+ ///
+ /// txtPipelineLength 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPipelineLength;
+
+ ///
+ /// txtDesignUnit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtDesignUnit;
+
+ ///
+ /// txtLosslessTestingAgency 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtLosslessTestingAgency;
+
+ ///
+ /// txtSupervisoryAndInspectionAgency 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtSupervisoryAndInspectionAgency;
+
+ ///
+ /// txtConstructionUnit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtConstructionUnit;
+
+ ///
+ /// txtRemark 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtRemark;
+ }
+}
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx
new file mode 100644
index 0000000..29e7d3a
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx
@@ -0,0 +1,186 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="IndustrialPipelineInstallationSummary.aspx.cs" Inherits="FineUIPro.Web.JGZL.IndustrialPipelineInstallationSummary" %>
+
+
+
+
+
+
+ 工业管道安装汇总表
+
+
+
+
+
+
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx.cs
new file mode 100644
index 0000000..8eecb9c
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx.cs
@@ -0,0 +1,408 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data.SqlClient;
+using System.Data;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.IO;
+
+namespace FineUIPro.Web.JGZL
+{
+ public partial class IndustrialPipelineInstallationSummary : PageBase
+ {
+ #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.InitTreeMenu();//加载树
+
+ if (!string.IsNullOrWhiteSpace(this.CurrUser.LoginProjectId))
+ {
+ this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
+ this.tvControlItem.SelectedNodeID = this.CurrUser.LoginProjectId;
+ this.BindGrid();
+ }
+ }
+ }
+ #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 tbb.CertificateCode,tbb.DeliveryUnit,tbb.DeliveryUnitCode,tba.*
+ FROM JGZL_IndustrialPipelineInstallationSummary AS tba
+ LEFT JOIN JGZL_IndustrialPipelineInstallationQualityCertificate AS tbb ON tbb.CertificateId=tba.CertificateId
+ WHERE 1=1 ";
+ List listStr = new List();
+ if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
+ {
+ strSql += " AND tba.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.InitTreeMenu();
+ this.BindGrid();
+ }
+
+ ///
+ /// 查询
+ ///
+ ///
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ this.BindGrid();
+ }
+ #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();
+
+ string strSql = @"SELECT * from JGZL_IndustrialPipelineInstallationSummary where ProjectId = @ProjectId order by DrawingNumber desc";
+ List listStr = new List();
+ listStr.Add(new SqlParameter("@ProjectId", projectId));
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+
+ DataTable dt = new DataTable();
+ dt.TableName = "Data";
+ dt.Columns.Add("Num");
+ dt.Columns.Add("ConcealedWorks");
+ dt.Columns.Add("DrawingNumber");
+ dt.Columns.Add("ConcealedContentAndDiagram");
+ dt.Columns.Add("InspectionResults");
+ dt.Columns.Add("Remark");
+
+ DataRow[] rows = tb.DefaultView.ToTable().Select();
+ int i = 0;
+ foreach (var row in rows)
+ {
+ var newRow = dt.NewRow();
+ newRow["Num"] = (i + 1).ToString();
+ newRow["ConcealedWorks"] = row["ConcealedWorks"].ToString();
+ newRow["DrawingNumber"] = row["DrawingNumber"].ToString();
+ newRow["ConcealedContentAndDiagram"] = row["ConcealedContentAndDiagram"].ToString();
+ newRow["Remark"] = row["Remark"].ToString();
+ dt.Rows.Add(newRow);
+ i++;
+ }
+ BLL.Common.FastReportService.AddFastreportTable(dt);
+
+ 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;
+ }
+ }
+ #endregion
+
+ #region 维护
+ ///
+ /// 增加
+ ///
+ ///
+ ///
+ protected void btnAdd_Click(object sender, EventArgs e)
+ {
+ if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationSummaryEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
+ }
+ else
+ {
+ Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+
+ ///
+ /// 双击编辑
+ ///
+ ///
+ ///
+ protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_IndustrialPipelineInstallationSummaryMenuId, BLL.Const.BtnModify))
+ {
+ if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
+ {
+ if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationSummaryEdit.aspx?summaryId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
+ }
+ else
+ {
+ Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ else
+ {
+ Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ else
+ {
+ ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+
+ ///
+ /// 右键编辑
+ ///
+ ///
+ ///
+ protected void btnMenuEdit_Click(object sender, EventArgs e)
+ {
+ if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_IndustrialPipelineInstallationSummaryMenuId, BLL.Const.BtnModify))
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationSummaryEdit.aspx?summaryId={0}", Grid1.SelectedRowID, "维护 - ")));
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+
+ ///
+ /// 右键删除
+ ///
+ ///
+ ///
+ protected void btnMenuDelete_Click(object sender, EventArgs e)
+ {
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_IndustrialPipelineInstallationSummaryMenuId, Const.BtnDelete))
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+
+ bool isShow = true;
+ if (Grid1.SelectedRowIndexArray.Length > 1)
+ {
+ isShow = false;
+ }
+ bool isDelete = false;
+ foreach (int rowIndex in Grid1.SelectedRowIndexArray)
+ {
+ string rowID = Grid1.DataKeys[rowIndex][0].ToString();
+ if (judgementDelete(rowID, isShow))
+ {
+ isDelete = true;
+ BLL.IndustrialPipelineInstallationSummaryService.DeleteIndustrialPipelineInstallationSummaryById(rowID);
+ BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除工业管道安装汇总表");
+ }
+ }
+ if (isDelete)
+ {
+ ShowNotify("删除成功!", MessageBoxIcon.Success);
+ }
+ this.BindGrid();
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+
+ #region 判断是否可删除
+ ///
+ /// 判断是否可以删除
+ ///
+ ///
+ private bool judgementDelete(string id, bool isShow)
+ {
+ string content = string.Empty;
+
+ if (string.IsNullOrEmpty(content))
+ {
+ return true;
+ }
+ else
+ {
+ if (isShow)
+ {
+ Alert.ShowInTop(content, MessageBoxIcon.Error);
+ }
+ return false;
+ }
+ }
+ #endregion
+ #endregion
+
+ #region 关闭弹出窗口及刷新页面
+ ///
+ /// 关闭弹出窗口
+ ///
+ ///
+ ///
+ protected void Window1_Close(object sender, WindowCloseEventArgs e)
+ {
+ this.InitTreeMenu();//加载树
+ this.BindGrid();
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx.designer.cs
new file mode 100644
index 0000000..c25bb36
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx.designer.cs
@@ -0,0 +1,206 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.JGZL
+{
+
+
+ public partial class IndustrialPipelineInstallationSummary
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// btnPrint 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnPrint;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+
+ ///
+ /// WindowPrint 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window WindowPrint;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnMenuEdit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuEdit;
+
+ ///
+ /// btnMenuDelete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuDelete;
+ }
+}
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx
new file mode 100644
index 0000000..66771e4
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx
@@ -0,0 +1,114 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="IndustrialPipelineInstallationSummaryEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.IndustrialPipelineInstallationSummaryEdit" %>
+
+
+
+
+
+
+ 编辑工业管道安装汇总表
+
+
+
+
+
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx.cs
new file mode 100644
index 0000000..1f19898
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx.cs
@@ -0,0 +1,208 @@
+using BLL;
+using FastReport;
+using Org.BouncyCastle.Crypto.Tls;
+using Org.BouncyCastle.Ocsp;
+using System;
+using System.Collections.Generic;
+
+namespace FineUIPro.Web.JGZL
+{
+ public partial class IndustrialPipelineInstallationSummaryEdit : PageBase
+ {
+ #region 定义项
+ ///
+ /// 主键
+ ///
+ private string SummaryId
+ {
+ get
+ {
+ return (string)ViewState["SummaryId"];
+ }
+ set
+ {
+ ViewState["SummaryId"] = value;
+ }
+ }
+
+ ///
+ /// 项目Id
+ ///
+ private string ProjectId
+ {
+ get
+ {
+ return (string)ViewState["ProjectId"];
+ }
+ set
+ {
+ ViewState["ProjectId"] = value;
+ }
+ }
+ ///
+ /// 外键—CertificateId
+ ///
+ public string CertificateId
+ {
+ get
+ {
+ return (string)ViewState["CertificateId"];
+ }
+ set
+ {
+ ViewState["CertificateId"] = value;
+ }
+ }
+ #endregion
+
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.ProjectId = Request.Params["projectId"];
+ this.SummaryId = Request.Params["summaryId"];
+ if (!string.IsNullOrWhiteSpace(this.ProjectId))
+ {
+ //获取下拉选择项本项目下所有工业管道安装质量证明书信息
+ IndustrialPipelineInstallationQualityCertificateService.InitIndustrialPipelineInstallationQualityCertificateDownList(this.drpCertificateCode, this.ProjectId, false);
+ }
+ if (!string.IsNullOrEmpty(this.SummaryId))
+ {
+ var report = BLL.IndustrialPipelineInstallationSummaryService.GetIndustrialPipelineInstallationSummaryById(this.SummaryId);
+ if (report != null)
+ {
+ this.ProjectId = report.ProjectId;
+ if (!string.IsNullOrWhiteSpace(this.ProjectId))
+ {
+ //获取下拉选择项本项目下所有工业管道安装质量证明书信息
+ IndustrialPipelineInstallationQualityCertificateService.InitIndustrialPipelineInstallationQualityCertificateDownList(this.drpCertificateCode, this.ProjectId, false);
+ this.drpCertificateCode.SelectedValue = report.CertificateId;
+ this.drpCertificateCode.Readonly = true;
+ }
+ var certificate = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(report.CertificateId);
+ this.txtDeliveryUnit.Text = certificate.DeliveryUnit;
+ this.txtDeliveryUnitCode.Text = certificate.DeliveryUnitCode;
+
+ this.txtPipelineCode.Text = report.PipelineCode;
+ this.txtPipelineLevel.Text = report.PipelineLevel;
+ this.txtPipelineStartPoint.Text = report.PipelineStartPoint;
+ this.txtPipelineEndPoint.Text = report.PipelineEndPoint;
+ this.txtDesignPressure.Text = report.DesignPressure;
+ this.txtDesignTemperature.Text = report.DesignTemperature;
+ this.txtMedium.Text = report.Medium;
+ this.txtMaterial.Text = report.Material;
+ this.txtSpecifications.Text = report.Specifications;
+ this.txtLength.Text = report.Length;
+ this.txtLayingMethod.Text = report.LayingMethod;
+ this.txtWeldsNum.Text = report.WeldsNum;
+ this.txtLosslessRatio.Text = report.LosslessRatio;
+ this.txtVoltageResistantTestMethod.Text = report.VoltageResistantTestMethod;
+ this.txtVoltageResistantTestMedium.Text = report.VoltageResistantTestMedium;
+ this.txtVoltageResistantTestPressure.Text = report.VoltageResistantTestPressure;
+ this.txtLeakageTestMedium.Text = report.LeakageTestMedium;
+ this.txtLeakageTestPressure.Text = report.LeakageTestPressure;
+ this.txtCleaningMethod.Text = report.CleaningMethod;
+ this.txtCorrosionControlMethod.Text = report.CorrosionControlMethod;
+ this.txtInsulationMethod.Text = report.InsulationMethod;
+ this.txtRemark.Text = report.Remark;
+ }
+ }
+
+ }
+ }
+
+ ///
+ /// 选择质量证明书编号
+ ///
+ ///
+ ///
+ protected void drpCertificateCode_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ if (!string.IsNullOrWhiteSpace(this.drpCertificateCode.SelectedValue))
+ {
+ this.CertificateId = this.drpCertificateCode.SelectedValue;
+
+ #region 质量证明书
+ var certificate = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(this.CertificateId);
+ if (certificate != null)
+ {
+ this.txtDeliveryUnit.Text = certificate.DeliveryUnit;
+ this.txtDeliveryUnitCode.Text = certificate.DeliveryUnitCode;
+ }
+ #endregion
+ }
+ }
+
+
+ #endregion
+
+ #region 提交按钮
+ ///
+ /// 提交按钮
+ ///
+ ///
+ ///
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_IndustrialPipelineInstallationSummaryMenuId, Const.BtnSave))
+ {
+ Model.JGZL_IndustrialPipelineInstallationSummary newReport = new Model.JGZL_IndustrialPipelineInstallationSummary();
+ newReport.PipelineCode = this.txtPipelineCode.Text.Trim();
+ newReport.PipelineLevel = this.txtPipelineLevel.Text.Trim();
+ newReport.PipelineStartPoint = this.txtPipelineStartPoint.Text.Trim();
+ newReport.PipelineEndPoint = this.txtPipelineEndPoint.Text.Trim();
+ newReport.DesignPressure = this.txtDesignPressure.Text.Trim();
+ newReport.DesignTemperature = this.txtDesignTemperature.Text.Trim();
+ newReport.Medium = this.txtMedium.Text.Trim();
+ newReport.Material = this.txtMaterial.Text.Trim();
+ newReport.Specifications = this.txtSpecifications.Text.Trim();
+ newReport.Length = this.txtLength.Text.Trim();
+ newReport.LayingMethod = this.txtLayingMethod.Text.Trim();
+ newReport.WeldsNum = this.txtWeldsNum.Text.Trim();
+ newReport.LosslessRatio = this.txtLosslessRatio.Text.Trim();
+ newReport.VoltageResistantTestMethod = this.txtVoltageResistantTestMethod.Text.Trim();
+ newReport.VoltageResistantTestMedium = this.txtVoltageResistantTestMedium.Text.Trim();
+ newReport.VoltageResistantTestPressure = this.txtVoltageResistantTestPressure.Text.Trim();
+ newReport.LeakageTestMedium = this.txtLeakageTestMedium.Text.Trim();
+ newReport.LeakageTestPressure = this.txtLeakageTestPressure.Text.Trim();
+ newReport.CleaningMethod = this.txtCleaningMethod.Text.Trim();
+ newReport.CorrosionControlMethod = this.txtCorrosionControlMethod.Text.Trim();
+ newReport.InsulationMethod = this.txtInsulationMethod.Text.Trim();
+ newReport.Remark = this.txtRemark.Text.Trim();
+
+ if (!string.IsNullOrEmpty(this.SummaryId))
+ {
+ newReport.SummaryId = this.SummaryId;
+ newReport.CertificateId = this.drpCertificateCode.SelectedValue;
+ BLL.IndustrialPipelineInstallationSummaryService.UpdateIndustrialPipelineInstallationSummary(newReport);
+ }
+ else
+ {
+ newReport.CertificateId = this.drpCertificateCode.SelectedValue;
+ newReport.ProjectId = this.ProjectId;
+ newReport.CompileMan = this.CurrUser.UserId;
+ newReport.CompileDate = DateTime.Now;
+ newReport.Reviewer = this.CurrUser.UserId;
+ newReport.RevieweDate = DateTime.Now;
+ newReport.SummaryId = SQLHelper.GetNewID(typeof(Model.JGZL_IndustrialPipelineInstallationSummary));
+ this.SummaryId = newReport.SummaryId;
+ BLL.IndustrialPipelineInstallationSummaryService.AddIndustrialPipelineInstallationSummary(newReport);
+ }
+ ShowNotify("保存成功!", MessageBoxIcon.Success);
+ PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx.designer.cs
new file mode 100644
index 0000000..7f467f2
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx.designer.cs
@@ -0,0 +1,296 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.JGZL
+{
+
+
+ public partial class IndustrialPipelineInstallationSummaryEdit
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// drpCertificateCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpCertificateCode;
+
+ ///
+ /// txtDeliveryUnit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtDeliveryUnit;
+
+ ///
+ /// txtDeliveryUnitCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtDeliveryUnitCode;
+
+ ///
+ /// txtPipelineCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPipelineCode;
+
+ ///
+ /// txtPipelineLevel 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPipelineLevel;
+
+ ///
+ /// txtPipelineStartPoint 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPipelineStartPoint;
+
+ ///
+ /// txtPipelineEndPoint 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPipelineEndPoint;
+
+ ///
+ /// txtDesignPressure 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtDesignPressure;
+
+ ///
+ /// txtDesignTemperature 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtDesignTemperature;
+
+ ///
+ /// txtMedium 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtMedium;
+
+ ///
+ /// txtMaterial 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtMaterial;
+
+ ///
+ /// txtSpecifications 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtSpecifications;
+
+ ///
+ /// txtLength 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtLength;
+
+ ///
+ /// txtLayingMethod 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtLayingMethod;
+
+ ///
+ /// txtWeldsNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtWeldsNum;
+
+ ///
+ /// txtLosslessRatio 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtLosslessRatio;
+
+ ///
+ /// txtVoltageResistantTestMethod 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtVoltageResistantTestMethod;
+
+ ///
+ /// txtVoltageResistantTestMedium 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtVoltageResistantTestMedium;
+
+ ///
+ /// txtVoltageResistantTestPressure 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtVoltageResistantTestPressure;
+
+ ///
+ /// txtLeakageTestMedium 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtLeakageTestMedium;
+
+ ///
+ /// txtLeakageTestPressure 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtLeakageTestPressure;
+
+ ///
+ /// txtCleaningMethod 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtCleaningMethod;
+
+ ///
+ /// txtCorrosionControlMethod 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtCorrosionControlMethod;
+
+ ///
+ /// txtInsulationMethod 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtInsulationMethod;
+
+ ///
+ /// txtRemark 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtRemark;
+ }
+}
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/MaterialQualityCertificateDoc.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/MaterialQualityCertificateDoc.aspx.cs
index a71179f..3460769 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/MaterialQualityCertificateDoc.aspx.cs
+++ b/HJGL_DS/FineUIPro.Web/JGZL/MaterialQualityCertificateDoc.aspx.cs
@@ -32,6 +32,12 @@ namespace FineUIPro.Web.JGZL
Funs.FineUIPleaseSelect(this.drpProjectId);
this.InitTreeMenu();//加载树
+ if (!string.IsNullOrWhiteSpace(this.CurrUser.LoginProjectId))
+ {
+ this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
+ this.tvControlItem.SelectedNodeID = this.CurrUser.LoginProjectId;
+ this.BindGrid();
+ }
}
}
#endregion
@@ -162,6 +168,7 @@ namespace FineUIPro.Web.JGZL
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{
this.InitTreeMenu();
+ this.BindGrid();
}
///
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx b/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx
new file mode 100644
index 0000000..8fec039
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx
@@ -0,0 +1,121 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PipelineInstallationInspectionRecord.aspx.cs" Inherits="FineUIPro.Web.JGZL.PipelineInstallationInspectionRecord" %>
+
+
+
+
+
+
+ 管道安装检查记录
+
+
+
+
+
+
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx.cs
new file mode 100644
index 0000000..b526003
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx.cs
@@ -0,0 +1,404 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data.SqlClient;
+using System.Data;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.IO;
+
+namespace FineUIPro.Web.JGZL
+{
+ public partial class PipelineInstallationInspectionRecord : PageBase
+ {
+ #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.InitTreeMenu();//加载树
+ if (!string.IsNullOrWhiteSpace(this.CurrUser.LoginProjectId))
+ {
+ this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
+ this.tvControlItem.SelectedNodeID = this.CurrUser.LoginProjectId;
+ this.BindGrid();
+ }
+ }
+ }
+ #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_PipelineInstallationInspectionRecord where 1=1";
+ List listStr = new List();
+ if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
+ {
+ strSql += " AND 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.InitTreeMenu();
+ this.BindGrid();
+ }
+
+ ///
+ /// 查询
+ ///
+ ///
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ this.BindGrid();
+ }
+ #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();
+
+ string strSql = @"SELECT * from JGZL_PipelineInstallationInspectionRecord where ProjectId = @ProjectId order by DrawingNumber desc";
+ List listStr = new List();
+ listStr.Add(new SqlParameter("@ProjectId", projectId));
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+
+ DataTable dt = new DataTable();
+ dt.TableName = "Data";
+ dt.Columns.Add("Num");
+ dt.Columns.Add("ConcealedWorks");
+ dt.Columns.Add("DrawingNumber");
+ dt.Columns.Add("ConcealedContentAndDiagram");
+ dt.Columns.Add("InspectionResults");
+ dt.Columns.Add("Remark");
+
+ DataRow[] rows = tb.DefaultView.ToTable().Select();
+ int i = 0;
+ foreach (var row in rows)
+ {
+ var newRow = dt.NewRow();
+ newRow["Num"] = (i + 1).ToString();
+ newRow["ConcealedWorks"] = row["ConcealedWorks"].ToString();
+ newRow["DrawingNumber"] = row["DrawingNumber"].ToString();
+ newRow["ConcealedContentAndDiagram"] = row["ConcealedContentAndDiagram"].ToString();
+ newRow["Remark"] = row["Remark"].ToString();
+ dt.Rows.Add(newRow);
+ i++;
+ }
+ BLL.Common.FastReportService.AddFastreportTable(dt);
+
+ 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;
+ }
+ }
+ #endregion
+
+ #region 维护
+ ///
+ /// 增加
+ ///
+ ///
+ ///
+ protected void btnAdd_Click(object sender, EventArgs e)
+ {
+ if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PipelineInstallationInspectionRecordEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
+ }
+ else
+ {
+ Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+
+ ///
+ /// 双击编辑
+ ///
+ ///
+ ///
+ protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_PipelineInstallationInspectionRecordMenuId, BLL.Const.BtnModify))
+ {
+ if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
+ {
+ if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PipelineInstallationInspectionRecordEdit.aspx?recordId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
+ }
+ else
+ {
+ Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ else
+ {
+ Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ else
+ {
+ ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+
+ ///
+ /// 右键编辑
+ ///
+ ///
+ ///
+ protected void btnMenuEdit_Click(object sender, EventArgs e)
+ {
+ if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_PipelineInstallationInspectionRecordMenuId, BLL.Const.BtnModify))
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PipelineInstallationInspectionRecordEdit.aspx?recordId={0}", Grid1.SelectedRowID, "维护 - ")));
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+
+ ///
+ /// 右键删除
+ ///
+ ///
+ ///
+ protected void btnMenuDelete_Click(object sender, EventArgs e)
+ {
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_PipelineInstallationInspectionRecordMenuId, Const.BtnDelete))
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+
+ bool isShow = true;
+ if (Grid1.SelectedRowIndexArray.Length > 1)
+ {
+ isShow = false;
+ }
+ bool isDelete = false;
+ foreach (int rowIndex in Grid1.SelectedRowIndexArray)
+ {
+ string rowID = Grid1.DataKeys[rowIndex][0].ToString();
+ if (judgementDelete(rowID, isShow))
+ {
+ isDelete = true;
+ BLL.PipelineInstallationInspectionRecordService.DeletePipelineInstallationInspectionRecordById(rowID);
+ BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除隐蔽工程验收记录");
+ }
+ }
+ if (isDelete)
+ {
+ ShowNotify("删除成功!", MessageBoxIcon.Success);
+ }
+ this.BindGrid();
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+
+ #region 判断是否可删除
+ ///
+ /// 判断是否可以删除
+ ///
+ ///
+ private bool judgementDelete(string id, bool isShow)
+ {
+ string content = string.Empty;
+
+ if (string.IsNullOrEmpty(content))
+ {
+ return true;
+ }
+ else
+ {
+ if (isShow)
+ {
+ Alert.ShowInTop(content, MessageBoxIcon.Error);
+ }
+ return false;
+ }
+ }
+ #endregion
+ #endregion
+
+ #region 关闭弹出窗口及刷新页面
+ ///
+ /// 关闭弹出窗口
+ ///
+ ///
+ ///
+ protected void Window1_Close(object sender, WindowCloseEventArgs e)
+ {
+ this.InitTreeMenu();//加载树
+ this.BindGrid();
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx.designer.cs
new file mode 100644
index 0000000..31149df
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx.designer.cs
@@ -0,0 +1,206 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.JGZL
+{
+
+
+ public partial class PipelineInstallationInspectionRecord
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// btnPrint 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnPrint;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+
+ ///
+ /// WindowPrint 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window WindowPrint;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnMenuEdit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuEdit;
+
+ ///
+ /// btnMenuDelete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuDelete;
+ }
+}
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecordEdit.aspx b/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecordEdit.aspx
new file mode 100644
index 0000000..1c94021
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecordEdit.aspx
@@ -0,0 +1,56 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PipelineInstallationInspectionRecordEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.PipelineInstallationInspectionRecordEdit" %>
+
+
+
+
+
+
+ 编辑管道安装检查记录
+
+
+
+
+
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecordEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecordEdit.aspx.cs
new file mode 100644
index 0000000..1386a8e
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecordEdit.aspx.cs
@@ -0,0 +1,112 @@
+using BLL;
+using System;
+
+namespace FineUIPro.Web.JGZL
+{
+ public partial class PipelineInstallationInspectionRecordEdit : PageBase
+ {
+ #region 定义项
+ ///
+ /// 主键
+ ///
+ private string RecordId
+ {
+ get
+ {
+ return (string)ViewState["RecordId"];
+ }
+ set
+ {
+ ViewState["RecordId"] = value;
+ }
+ }
+
+ ///
+ /// 项目Id
+ ///
+ private string ProjectId
+ {
+ get
+ {
+ return (string)ViewState["ProjectId"];
+ }
+ set
+ {
+ ViewState["ProjectId"] = value;
+ }
+ }
+ #endregion
+
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.ProjectId = Request.Params["projectId"];
+ this.RecordId = Request.Params["recordId"];
+ if (!string.IsNullOrEmpty(this.RecordId))
+ {
+ var report = BLL.PipelineInstallationInspectionRecordService.GetPipelineInstallationInspectionRecordById(this.RecordId);
+ if (report != null)
+ {
+ this.txtDrawingNumber.Text = report.DrawingNumber;
+ this.txtProfessionalEngineering.Text = report.ProfessionalEngineering;
+ this.txtInspectionItems.Text = report.InspectionItems;
+ this.txtInspectionResults.Text = report.InspectionResults;
+ this.txtRemark.Text = report.Remark;
+ }
+ }
+ }
+ }
+ #endregion
+
+ #region 提交按钮
+ ///
+ /// 提交按钮
+ ///
+ ///
+ ///
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_PipelineInstallationInspectionRecordMenuId, Const.BtnSave))
+ {
+ Model.JGZL_PipelineInstallationInspectionRecord newReport = new Model.JGZL_PipelineInstallationInspectionRecord();
+ newReport.DrawingNumber = this.txtDrawingNumber.Text.Trim();
+ newReport.ProfessionalEngineering = this.txtProfessionalEngineering.Text.Trim();
+ newReport.InspectionItems = this.txtInspectionItems.Text.Trim();
+ newReport.InspectionResults = this.txtInspectionResults.Text.Trim();
+ newReport.Remark = this.txtRemark.Text.Trim();
+
+ if (!string.IsNullOrEmpty(this.RecordId))
+ {
+ newReport.RecordId = this.RecordId;
+ BLL.PipelineInstallationInspectionRecordService.UpdatePipelineInstallationInspectionRecord(newReport);
+ }
+ else
+ {
+ newReport.ProjectId = this.ProjectId;
+ newReport.CompileMan = this.CurrUser.UserId;
+ newReport.CompileDate = DateTime.Now;
+ newReport.Reviewer = this.CurrUser.UserId;
+ newReport.RevieweDate = DateTime.Now;
+ newReport.RecordId = SQLHelper.GetNewID(typeof(Model.JGZL_PipelineInstallationInspectionRecord));
+ this.RecordId = newReport.RecordId;
+ BLL.PipelineInstallationInspectionRecordService.AddPipelineInstallationInspectionRecord(newReport);
+ }
+ ShowNotify("保存成功!", MessageBoxIcon.Success);
+ PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecordEdit.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecordEdit.aspx.designer.cs
new file mode 100644
index 0000000..c364f0e
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecordEdit.aspx.designer.cs
@@ -0,0 +1,116 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.JGZL
+{
+
+
+ public partial class PipelineInstallationInspectionRecordEdit
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// txtDrawingNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtDrawingNumber;
+
+ ///
+ /// txtProfessionalEngineering 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtProfessionalEngineering;
+
+ ///
+ /// txtInspectionItems 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtInspectionItems;
+
+ ///
+ /// txtInspectionResults 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtInspectionResults;
+
+ ///
+ /// txtRemark 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtRemark;
+ }
+}
diff --git a/HJGL_DS/Model/Model.cs b/HJGL_DS/Model/Model.cs
index ba866bc..4db8e92 100644
--- a/HJGL_DS/Model/Model.cs
+++ b/HJGL_DS/Model/Model.cs
@@ -383,6 +383,9 @@ namespace Model
partial void InsertJGZL_CommencementReport(JGZL_CommencementReport instance);
partial void UpdateJGZL_CommencementReport(JGZL_CommencementReport instance);
partial void DeleteJGZL_CommencementReport(JGZL_CommencementReport instance);
+ partial void InsertJGZL_ConcealedWorksInspectionRecord(JGZL_ConcealedWorksInspectionRecord instance);
+ partial void UpdateJGZL_ConcealedWorksInspectionRecord(JGZL_ConcealedWorksInspectionRecord instance);
+ partial void DeleteJGZL_ConcealedWorksInspectionRecord(JGZL_ConcealedWorksInspectionRecord instance);
partial void InsertJGZL_ConDrawingVerification(JGZL_ConDrawingVerification instance);
partial void UpdateJGZL_ConDrawingVerification(JGZL_ConDrawingVerification instance);
partial void DeleteJGZL_ConDrawingVerification(JGZL_ConDrawingVerification instance);
@@ -395,6 +398,12 @@ namespace Model
partial void InsertJGZL_HandoverCertificate(JGZL_HandoverCertificate instance);
partial void UpdateJGZL_HandoverCertificate(JGZL_HandoverCertificate instance);
partial void DeleteJGZL_HandoverCertificate(JGZL_HandoverCertificate instance);
+ partial void InsertJGZL_IndustrialPipelineInstallationQualityCertificate(JGZL_IndustrialPipelineInstallationQualityCertificate instance);
+ partial void UpdateJGZL_IndustrialPipelineInstallationQualityCertificate(JGZL_IndustrialPipelineInstallationQualityCertificate instance);
+ partial void DeleteJGZL_IndustrialPipelineInstallationQualityCertificate(JGZL_IndustrialPipelineInstallationQualityCertificate instance);
+ partial void InsertJGZL_IndustrialPipelineInstallationSummary(JGZL_IndustrialPipelineInstallationSummary instance);
+ partial void UpdateJGZL_IndustrialPipelineInstallationSummary(JGZL_IndustrialPipelineInstallationSummary instance);
+ partial void DeleteJGZL_IndustrialPipelineInstallationSummary(JGZL_IndustrialPipelineInstallationSummary instance);
partial void InsertJGZL_MaterialQualityCertificateDoc(JGZL_MaterialQualityCertificateDoc instance);
partial void UpdateJGZL_MaterialQualityCertificateDoc(JGZL_MaterialQualityCertificateDoc instance);
partial void DeleteJGZL_MaterialQualityCertificateDoc(JGZL_MaterialQualityCertificateDoc instance);
@@ -404,6 +413,9 @@ namespace Model
partial void InsertJGZL_NDTPerson(JGZL_NDTPerson instance);
partial void UpdateJGZL_NDTPerson(JGZL_NDTPerson instance);
partial void DeleteJGZL_NDTPerson(JGZL_NDTPerson instance);
+ partial void InsertJGZL_PipelineInstallationInspectionRecord(JGZL_PipelineInstallationInspectionRecord instance);
+ partial void UpdateJGZL_PipelineInstallationInspectionRecord(JGZL_PipelineInstallationInspectionRecord instance);
+ partial void DeleteJGZL_PipelineInstallationInspectionRecord(JGZL_PipelineInstallationInspectionRecord instance);
partial void InsertJGZL_QualityControlPointInspection(JGZL_QualityControlPointInspection instance);
partial void UpdateJGZL_QualityControlPointInspection(JGZL_QualityControlPointInspection instance);
partial void DeleteJGZL_QualityControlPointInspection(JGZL_QualityControlPointInspection instance);
@@ -1804,6 +1816,14 @@ namespace Model
}
}
+ public System.Data.Linq.Table JGZL_ConcealedWorksInspectionRecord
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table JGZL_ConDrawingVerification
{
get
@@ -1836,6 +1856,22 @@ namespace Model
}
}
+ public System.Data.Linq.Table JGZL_IndustrialPipelineInstallationQualityCertificate
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
+ public System.Data.Linq.Table JGZL_IndustrialPipelineInstallationSummary
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table JGZL_MaterialQualityCertificateDoc
{
get
@@ -1860,6 +1896,14 @@ namespace Model
}
}
+ public System.Data.Linq.Table JGZL_PipelineInstallationInspectionRecord
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table JGZL_QualityControlPointInspection
{
get
@@ -4487,6 +4531,8 @@ namespace Model
private EntitySet _JGZL_CommencementReport;
+ private EntitySet _JGZL_ConcealedWorksInspectionRecord;
+
private EntitySet _JGZL_ConDrawingVerification;
private EntitySet _JGZL_Contact;
@@ -4495,12 +4541,18 @@ namespace Model
private EntitySet _JGZL_HandoverCertificate;
+ private EntitySet _JGZL_IndustrialPipelineInstallationQualityCertificate;
+
+ private EntitySet _JGZL_IndustrialPipelineInstallationSummary;
+
private EntitySet _JGZL_MaterialQualityCertificateDoc;
private EntitySet _JGZL_MeasuringInstruments;
private EntitySet _JGZL_NDTPerson;
+ private EntitySet _JGZL_PipelineInstallationInspectionRecord;
+
private EntitySet _JGZL_QualityControlPointInspection;
private EntitySet _JGZL_SpecialEquipmentMaintenance;
@@ -4634,13 +4686,17 @@ namespace Model
this._JGZL_AcceptanceCertificate = new EntitySet(new Action(this.attach_JGZL_AcceptanceCertificate), new Action(this.detach_JGZL_AcceptanceCertificate));
this._JGZL_BlowingCleaning = new EntitySet(new Action(this.attach_JGZL_BlowingCleaning), new Action(this.detach_JGZL_BlowingCleaning));
this._JGZL_CommencementReport = new EntitySet(new Action(this.attach_JGZL_CommencementReport), new Action(this.detach_JGZL_CommencementReport));
+ this._JGZL_ConcealedWorksInspectionRecord = new EntitySet(new Action(this.attach_JGZL_ConcealedWorksInspectionRecord), new Action(this.detach_JGZL_ConcealedWorksInspectionRecord));
this._JGZL_ConDrawingVerification = new EntitySet(new Action(this.attach_JGZL_ConDrawingVerification), new Action(this.detach_JGZL_ConDrawingVerification));
this._JGZL_Contact = new EntitySet(new Action(this.attach_JGZL_Contact), new Action(this.detach_JGZL_Contact));
this._JGZL_ElectrostaticGrounding = new EntitySet(new Action(this.attach_JGZL_ElectrostaticGrounding), new Action(this.detach_JGZL_ElectrostaticGrounding));
this._JGZL_HandoverCertificate = new EntitySet(new Action(this.attach_JGZL_HandoverCertificate), new Action(this.detach_JGZL_HandoverCertificate));
+ 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_MaterialQualityCertificateDoc = new EntitySet(new Action(this.attach_JGZL_MaterialQualityCertificateDoc), new Action(this.detach_JGZL_MaterialQualityCertificateDoc));
this._JGZL_MeasuringInstruments = new EntitySet(new Action(this.attach_JGZL_MeasuringInstruments), new Action(this.detach_JGZL_MeasuringInstruments));
this._JGZL_NDTPerson = new EntitySet(new Action(this.attach_JGZL_NDTPerson), new Action(this.detach_JGZL_NDTPerson));
+ this._JGZL_PipelineInstallationInspectionRecord = new EntitySet(new Action(this.attach_JGZL_PipelineInstallationInspectionRecord), new Action(this.detach_JGZL_PipelineInstallationInspectionRecord));
this._JGZL_QualityControlPointInspection = new EntitySet(new Action(this.attach_JGZL_QualityControlPointInspection), new Action(this.detach_JGZL_QualityControlPointInspection));
this._JGZL_SpecialEquipmentMaintenance = new EntitySet(new Action(this.attach_JGZL_SpecialEquipmentMaintenance), new Action(this.detach_JGZL_SpecialEquipmentMaintenance));
this._JGZL_TeamWeldingInspection = new EntitySet(new Action(this.attach_JGZL_TeamWeldingInspection), new Action(this.detach_JGZL_TeamWeldingInspection));
@@ -5750,6 +5806,19 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_ConcealedWorksInspectionRecord_Base_Project", Storage="_JGZL_ConcealedWorksInspectionRecord", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
+ public EntitySet JGZL_ConcealedWorksInspectionRecord
+ {
+ get
+ {
+ return this._JGZL_ConcealedWorksInspectionRecord;
+ }
+ set
+ {
+ this._JGZL_ConcealedWorksInspectionRecord.Assign(value);
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_ConDrawingVerification_Base_Project", Storage="_JGZL_ConDrawingVerification", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet JGZL_ConDrawingVerification
{
@@ -5802,6 +5871,32 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_IndustrialPipelineInstallationQualityCertificate_Base_Project", Storage="_JGZL_IndustrialPipelineInstallationQualityCertificate", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
+ public EntitySet JGZL_IndustrialPipelineInstallationQualityCertificate
+ {
+ get
+ {
+ return this._JGZL_IndustrialPipelineInstallationQualityCertificate;
+ }
+ set
+ {
+ this._JGZL_IndustrialPipelineInstallationQualityCertificate.Assign(value);
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_IndustrialPipelineInstallationSummary_Base_Project", Storage="_JGZL_IndustrialPipelineInstallationSummary", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
+ public EntitySet JGZL_IndustrialPipelineInstallationSummary
+ {
+ get
+ {
+ return this._JGZL_IndustrialPipelineInstallationSummary;
+ }
+ set
+ {
+ this._JGZL_IndustrialPipelineInstallationSummary.Assign(value);
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_MaterialQualityCertificateDoc_Base_Project", Storage="_JGZL_MaterialQualityCertificateDoc", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet JGZL_MaterialQualityCertificateDoc
{
@@ -5841,6 +5936,19 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_PipelineInstallationInspectionRecord_Base_Project", Storage="_JGZL_PipelineInstallationInspectionRecord", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
+ public EntitySet JGZL_PipelineInstallationInspectionRecord
+ {
+ get
+ {
+ return this._JGZL_PipelineInstallationInspectionRecord;
+ }
+ set
+ {
+ this._JGZL_PipelineInstallationInspectionRecord.Assign(value);
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_QualityControlPointInspection_Base_Project", Storage="_JGZL_QualityControlPointInspection", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet JGZL_QualityControlPointInspection
{
@@ -6574,6 +6682,18 @@ namespace Model
entity.Base_Project = null;
}
+ private void attach_JGZL_ConcealedWorksInspectionRecord(JGZL_ConcealedWorksInspectionRecord entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = this;
+ }
+
+ private void detach_JGZL_ConcealedWorksInspectionRecord(JGZL_ConcealedWorksInspectionRecord entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = null;
+ }
+
private void attach_JGZL_ConDrawingVerification(JGZL_ConDrawingVerification entity)
{
this.SendPropertyChanging();
@@ -6622,6 +6742,30 @@ namespace Model
entity.Base_Project = null;
}
+ private void attach_JGZL_IndustrialPipelineInstallationQualityCertificate(JGZL_IndustrialPipelineInstallationQualityCertificate entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = this;
+ }
+
+ private void detach_JGZL_IndustrialPipelineInstallationQualityCertificate(JGZL_IndustrialPipelineInstallationQualityCertificate entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = null;
+ }
+
+ private void attach_JGZL_IndustrialPipelineInstallationSummary(JGZL_IndustrialPipelineInstallationSummary entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = this;
+ }
+
+ private void detach_JGZL_IndustrialPipelineInstallationSummary(JGZL_IndustrialPipelineInstallationSummary entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = null;
+ }
+
private void attach_JGZL_MaterialQualityCertificateDoc(JGZL_MaterialQualityCertificateDoc entity)
{
this.SendPropertyChanging();
@@ -6658,6 +6802,18 @@ namespace Model
entity.Base_Project = null;
}
+ private void attach_JGZL_PipelineInstallationInspectionRecord(JGZL_PipelineInstallationInspectionRecord entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = this;
+ }
+
+ private void detach_JGZL_PipelineInstallationInspectionRecord(JGZL_PipelineInstallationInspectionRecord entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = null;
+ }
+
private void attach_JGZL_QualityControlPointInspection(JGZL_QualityControlPointInspection entity)
{
this.SendPropertyChanging();
@@ -81199,6 +81355,390 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_ConcealedWorksInspectionRecord")]
+ public partial class JGZL_ConcealedWorksInspectionRecord : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _RecordId;
+
+ private string _ProjectId;
+
+ private string _ConcealedWorks;
+
+ private string _DrawingNumber;
+
+ private string _ConcealedContentAndDiagram;
+
+ private string _InspectionResults;
+
+ private string _Remark;
+
+ private string _CompileMan;
+
+ private System.Nullable _CompileDate;
+
+ private string _Reviewer;
+
+ private System.Nullable _RevieweDate;
+
+ private EntityRef _Base_Project;
+
+ private EntityRef _Sys_User;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnRecordIdChanging(string value);
+ partial void OnRecordIdChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnConcealedWorksChanging(string value);
+ partial void OnConcealedWorksChanged();
+ partial void OnDrawingNumberChanging(string value);
+ partial void OnDrawingNumberChanged();
+ partial void OnConcealedContentAndDiagramChanging(string value);
+ partial void OnConcealedContentAndDiagramChanged();
+ partial void OnInspectionResultsChanging(string value);
+ partial void OnInspectionResultsChanged();
+ partial void OnRemarkChanging(string value);
+ partial void OnRemarkChanged();
+ partial void OnCompileManChanging(string value);
+ partial void OnCompileManChanged();
+ partial void OnCompileDateChanging(System.Nullable value);
+ partial void OnCompileDateChanged();
+ partial void OnReviewerChanging(string value);
+ partial void OnReviewerChanged();
+ partial void OnRevieweDateChanging(System.Nullable value);
+ partial void OnRevieweDateChanged();
+ #endregion
+
+ public JGZL_ConcealedWorksInspectionRecord()
+ {
+ this._Base_Project = default(EntityRef);
+ this._Sys_User = default(EntityRef);
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string RecordId
+ {
+ get
+ {
+ return this._RecordId;
+ }
+ set
+ {
+ if ((this._RecordId != value))
+ {
+ this.OnRecordIdChanging(value);
+ this.SendPropertyChanging();
+ this._RecordId = value;
+ this.SendPropertyChanged("RecordId");
+ this.OnRecordIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ 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="_ConcealedWorks", DbType="NVarChar(50)")]
+ public string ConcealedWorks
+ {
+ get
+ {
+ return this._ConcealedWorks;
+ }
+ set
+ {
+ if ((this._ConcealedWorks != value))
+ {
+ this.OnConcealedWorksChanging(value);
+ this.SendPropertyChanging();
+ this._ConcealedWorks = value;
+ this.SendPropertyChanged("ConcealedWorks");
+ this.OnConcealedWorksChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DrawingNumber", DbType="NVarChar(50)")]
+ public string DrawingNumber
+ {
+ get
+ {
+ return this._DrawingNumber;
+ }
+ set
+ {
+ if ((this._DrawingNumber != value))
+ {
+ this.OnDrawingNumberChanging(value);
+ this.SendPropertyChanging();
+ this._DrawingNumber = value;
+ this.SendPropertyChanged("DrawingNumber");
+ this.OnDrawingNumberChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConcealedContentAndDiagram", DbType="NVarChar(2000)")]
+ public string ConcealedContentAndDiagram
+ {
+ get
+ {
+ return this._ConcealedContentAndDiagram;
+ }
+ set
+ {
+ if ((this._ConcealedContentAndDiagram != value))
+ {
+ this.OnConcealedContentAndDiagramChanging(value);
+ this.SendPropertyChanging();
+ this._ConcealedContentAndDiagram = value;
+ this.SendPropertyChanged("ConcealedContentAndDiagram");
+ this.OnConcealedContentAndDiagramChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionResults", DbType="NVarChar(2000)")]
+ public string InspectionResults
+ {
+ get
+ {
+ return this._InspectionResults;
+ }
+ set
+ {
+ if ((this._InspectionResults != value))
+ {
+ this.OnInspectionResultsChanging(value);
+ this.SendPropertyChanging();
+ this._InspectionResults = value;
+ this.SendPropertyChanged("InspectionResults");
+ this.OnInspectionResultsChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(500)")]
+ public string Remark
+ {
+ get
+ {
+ return this._Remark;
+ }
+ set
+ {
+ if ((this._Remark != value))
+ {
+ this.OnRemarkChanging(value);
+ this.SendPropertyChanging();
+ this._Remark = value;
+ this.SendPropertyChanged("Remark");
+ this.OnRemarkChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
+ public string CompileMan
+ {
+ get
+ {
+ return this._CompileMan;
+ }
+ set
+ {
+ if ((this._CompileMan != value))
+ {
+ if (this._Sys_User.HasLoadedOrAssignedValue)
+ {
+ throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
+ }
+ this.OnCompileManChanging(value);
+ this.SendPropertyChanging();
+ this._CompileMan = value;
+ this.SendPropertyChanged("CompileMan");
+ this.OnCompileManChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
+ public System.Nullable CompileDate
+ {
+ get
+ {
+ return this._CompileDate;
+ }
+ set
+ {
+ if ((this._CompileDate != value))
+ {
+ this.OnCompileDateChanging(value);
+ this.SendPropertyChanging();
+ this._CompileDate = value;
+ this.SendPropertyChanged("CompileDate");
+ this.OnCompileDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Reviewer", DbType="NVarChar(50)")]
+ public string Reviewer
+ {
+ get
+ {
+ return this._Reviewer;
+ }
+ set
+ {
+ if ((this._Reviewer != value))
+ {
+ this.OnReviewerChanging(value);
+ this.SendPropertyChanging();
+ this._Reviewer = value;
+ this.SendPropertyChanged("Reviewer");
+ this.OnReviewerChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RevieweDate", DbType="DateTime")]
+ public System.Nullable RevieweDate
+ {
+ get
+ {
+ return this._RevieweDate;
+ }
+ set
+ {
+ if ((this._RevieweDate != value))
+ {
+ this.OnRevieweDateChanging(value);
+ this.SendPropertyChanging();
+ this._RevieweDate = value;
+ this.SendPropertyChanged("RevieweDate");
+ this.OnRevieweDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_ConcealedWorksInspectionRecord_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_ConcealedWorksInspectionRecord.Remove(this);
+ }
+ this._Base_Project.Entity = value;
+ if ((value != null))
+ {
+ value.JGZL_ConcealedWorksInspectionRecord.Add(this);
+ this._ProjectId = value.ProjectId;
+ }
+ else
+ {
+ this._ProjectId = default(string);
+ }
+ this.SendPropertyChanged("Base_Project");
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_ConcealedWorksInspectionRecord_Sys_User", Storage="_Sys_User", ThisKey="CompileMan", OtherKey="UserId", IsForeignKey=true)]
+ public Sys_User Sys_User
+ {
+ get
+ {
+ return this._Sys_User.Entity;
+ }
+ set
+ {
+ Sys_User previousValue = this._Sys_User.Entity;
+ if (((previousValue != value)
+ || (this._Sys_User.HasLoadedOrAssignedValue == false)))
+ {
+ this.SendPropertyChanging();
+ if ((previousValue != null))
+ {
+ this._Sys_User.Entity = null;
+ previousValue.JGZL_ConcealedWorksInspectionRecord.Remove(this);
+ }
+ this._Sys_User.Entity = value;
+ if ((value != null))
+ {
+ value.JGZL_ConcealedWorksInspectionRecord.Add(this);
+ this._CompileMan = value.UserId;
+ }
+ else
+ {
+ this._CompileMan = default(string);
+ }
+ this.SendPropertyChanged("Sys_User");
+ }
+ }
+ }
+
+ 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_ConDrawingVerification")]
public partial class JGZL_ConDrawingVerification : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -82999,6 +83539,1446 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_IndustrialPipelineInstallationQualityCertificate")]
+ public partial class JGZL_IndustrialPipelineInstallationQualityCertificate : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _CertificateId;
+
+ private string _ProjectId;
+
+ private string _CertificateCode;
+
+ private string _EngineeringName;
+
+ private string _EngineeringCode;
+
+ private string _DeliveryUnit;
+
+ private string _DeliveryUnitCode;
+
+ private System.Nullable _InstallStartDate;
+
+ private System.Nullable _InstallEndDate;
+
+ private string _PipelineLevel;
+
+ private string _PipelineLength;
+
+ private string _DesignUnit;
+
+ private string _LosslessTestingAgency;
+
+ private string _SupervisoryAndInspectionAgency;
+
+ private string _ConstructionUnit;
+
+ private string _SpecialEquipmentProductionLicenseCode;
+
+ private string _Remark;
+
+ private string _CompileMan;
+
+ private System.Nullable _CompileDate;
+
+ private string _Reviewer;
+
+ private System.Nullable _RevieweDate;
+
+ private EntityRef _Base_Project;
+
+ private EntityRef _Sys_User;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnCertificateIdChanging(string value);
+ partial void OnCertificateIdChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnCertificateCodeChanging(string value);
+ partial void OnCertificateCodeChanged();
+ partial void OnEngineeringNameChanging(string value);
+ partial void OnEngineeringNameChanged();
+ partial void OnEngineeringCodeChanging(string value);
+ partial void OnEngineeringCodeChanged();
+ partial void OnDeliveryUnitChanging(string value);
+ partial void OnDeliveryUnitChanged();
+ partial void OnDeliveryUnitCodeChanging(string value);
+ partial void OnDeliveryUnitCodeChanged();
+ partial void OnInstallStartDateChanging(System.Nullable value);
+ partial void OnInstallStartDateChanged();
+ partial void OnInstallEndDateChanging(System.Nullable value);
+ partial void OnInstallEndDateChanged();
+ partial void OnPipelineLevelChanging(string value);
+ partial void OnPipelineLevelChanged();
+ partial void OnPipelineLengthChanging(string value);
+ partial void OnPipelineLengthChanged();
+ partial void OnDesignUnitChanging(string value);
+ partial void OnDesignUnitChanged();
+ partial void OnLosslessTestingAgencyChanging(string value);
+ partial void OnLosslessTestingAgencyChanged();
+ partial void OnSupervisoryAndInspectionAgencyChanging(string value);
+ partial void OnSupervisoryAndInspectionAgencyChanged();
+ partial void OnConstructionUnitChanging(string value);
+ partial void OnConstructionUnitChanged();
+ partial void OnSpecialEquipmentProductionLicenseCodeChanging(string value);
+ partial void OnSpecialEquipmentProductionLicenseCodeChanged();
+ partial void OnRemarkChanging(string value);
+ partial void OnRemarkChanged();
+ partial void OnCompileManChanging(string value);
+ partial void OnCompileManChanged();
+ partial void OnCompileDateChanging(System.Nullable value);
+ partial void OnCompileDateChanged();
+ partial void OnReviewerChanging(string value);
+ partial void OnReviewerChanged();
+ partial void OnRevieweDateChanging(System.Nullable value);
+ partial void OnRevieweDateChanged();
+ #endregion
+
+ public JGZL_IndustrialPipelineInstallationQualityCertificate()
+ {
+ this._Base_Project = default(EntityRef);
+ this._Sys_User = default(EntityRef);
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CertificateId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string CertificateId
+ {
+ get
+ {
+ return this._CertificateId;
+ }
+ set
+ {
+ if ((this._CertificateId != value))
+ {
+ this.OnCertificateIdChanging(value);
+ this.SendPropertyChanging();
+ this._CertificateId = value;
+ this.SendPropertyChanged("CertificateId");
+ this.OnCertificateIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ 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="_CertificateCode", DbType="NVarChar(50)")]
+ public string CertificateCode
+ {
+ get
+ {
+ return this._CertificateCode;
+ }
+ set
+ {
+ if ((this._CertificateCode != value))
+ {
+ this.OnCertificateCodeChanging(value);
+ this.SendPropertyChanging();
+ this._CertificateCode = value;
+ this.SendPropertyChanged("CertificateCode");
+ this.OnCertificateCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EngineeringName", DbType="NVarChar(50)")]
+ public string EngineeringName
+ {
+ get
+ {
+ return this._EngineeringName;
+ }
+ set
+ {
+ if ((this._EngineeringName != value))
+ {
+ this.OnEngineeringNameChanging(value);
+ this.SendPropertyChanging();
+ this._EngineeringName = value;
+ this.SendPropertyChanged("EngineeringName");
+ this.OnEngineeringNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EngineeringCode", DbType="NVarChar(50)")]
+ public string EngineeringCode
+ {
+ get
+ {
+ return this._EngineeringCode;
+ }
+ set
+ {
+ if ((this._EngineeringCode != value))
+ {
+ this.OnEngineeringCodeChanging(value);
+ this.SendPropertyChanging();
+ this._EngineeringCode = value;
+ this.SendPropertyChanged("EngineeringCode");
+ this.OnEngineeringCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeliveryUnit", DbType="NVarChar(50)")]
+ public string DeliveryUnit
+ {
+ get
+ {
+ return this._DeliveryUnit;
+ }
+ set
+ {
+ if ((this._DeliveryUnit != value))
+ {
+ this.OnDeliveryUnitChanging(value);
+ this.SendPropertyChanging();
+ this._DeliveryUnit = value;
+ this.SendPropertyChanged("DeliveryUnit");
+ this.OnDeliveryUnitChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeliveryUnitCode", DbType="NVarChar(50)")]
+ public string DeliveryUnitCode
+ {
+ get
+ {
+ return this._DeliveryUnitCode;
+ }
+ set
+ {
+ if ((this._DeliveryUnitCode != value))
+ {
+ this.OnDeliveryUnitCodeChanging(value);
+ this.SendPropertyChanging();
+ this._DeliveryUnitCode = value;
+ this.SendPropertyChanged("DeliveryUnitCode");
+ this.OnDeliveryUnitCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallStartDate", DbType="DateTime")]
+ public System.Nullable InstallStartDate
+ {
+ get
+ {
+ return this._InstallStartDate;
+ }
+ set
+ {
+ if ((this._InstallStartDate != value))
+ {
+ this.OnInstallStartDateChanging(value);
+ this.SendPropertyChanging();
+ this._InstallStartDate = value;
+ this.SendPropertyChanged("InstallStartDate");
+ this.OnInstallStartDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallEndDate", DbType="DateTime")]
+ public System.Nullable InstallEndDate
+ {
+ get
+ {
+ return this._InstallEndDate;
+ }
+ set
+ {
+ if ((this._InstallEndDate != value))
+ {
+ this.OnInstallEndDateChanging(value);
+ this.SendPropertyChanging();
+ this._InstallEndDate = value;
+ this.SendPropertyChanged("InstallEndDate");
+ this.OnInstallEndDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineLevel", DbType="NVarChar(50)")]
+ public string PipelineLevel
+ {
+ get
+ {
+ return this._PipelineLevel;
+ }
+ set
+ {
+ if ((this._PipelineLevel != value))
+ {
+ this.OnPipelineLevelChanging(value);
+ this.SendPropertyChanging();
+ this._PipelineLevel = value;
+ this.SendPropertyChanged("PipelineLevel");
+ this.OnPipelineLevelChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineLength", DbType="NVarChar(50)")]
+ public string PipelineLength
+ {
+ get
+ {
+ return this._PipelineLength;
+ }
+ set
+ {
+ if ((this._PipelineLength != value))
+ {
+ this.OnPipelineLengthChanging(value);
+ this.SendPropertyChanging();
+ this._PipelineLength = value;
+ this.SendPropertyChanged("PipelineLength");
+ this.OnPipelineLengthChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignUnit", DbType="NVarChar(50)")]
+ public string DesignUnit
+ {
+ get
+ {
+ return this._DesignUnit;
+ }
+ set
+ {
+ if ((this._DesignUnit != value))
+ {
+ this.OnDesignUnitChanging(value);
+ this.SendPropertyChanging();
+ this._DesignUnit = value;
+ this.SendPropertyChanged("DesignUnit");
+ this.OnDesignUnitChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LosslessTestingAgency", DbType="NVarChar(50)")]
+ public string LosslessTestingAgency
+ {
+ get
+ {
+ return this._LosslessTestingAgency;
+ }
+ set
+ {
+ if ((this._LosslessTestingAgency != value))
+ {
+ this.OnLosslessTestingAgencyChanging(value);
+ this.SendPropertyChanging();
+ this._LosslessTestingAgency = value;
+ this.SendPropertyChanged("LosslessTestingAgency");
+ this.OnLosslessTestingAgencyChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SupervisoryAndInspectionAgency", DbType="NVarChar(50)")]
+ public string SupervisoryAndInspectionAgency
+ {
+ get
+ {
+ return this._SupervisoryAndInspectionAgency;
+ }
+ set
+ {
+ if ((this._SupervisoryAndInspectionAgency != value))
+ {
+ this.OnSupervisoryAndInspectionAgencyChanging(value);
+ this.SendPropertyChanging();
+ this._SupervisoryAndInspectionAgency = value;
+ this.SendPropertyChanged("SupervisoryAndInspectionAgency");
+ this.OnSupervisoryAndInspectionAgencyChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionUnit", DbType="NVarChar(50)")]
+ public string ConstructionUnit
+ {
+ get
+ {
+ return this._ConstructionUnit;
+ }
+ set
+ {
+ if ((this._ConstructionUnit != value))
+ {
+ this.OnConstructionUnitChanging(value);
+ this.SendPropertyChanging();
+ this._ConstructionUnit = value;
+ this.SendPropertyChanged("ConstructionUnit");
+ this.OnConstructionUnitChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialEquipmentProductionLicenseCode", DbType="NVarChar(50)")]
+ public string SpecialEquipmentProductionLicenseCode
+ {
+ get
+ {
+ return this._SpecialEquipmentProductionLicenseCode;
+ }
+ set
+ {
+ if ((this._SpecialEquipmentProductionLicenseCode != value))
+ {
+ this.OnSpecialEquipmentProductionLicenseCodeChanging(value);
+ this.SendPropertyChanging();
+ this._SpecialEquipmentProductionLicenseCode = value;
+ this.SendPropertyChanged("SpecialEquipmentProductionLicenseCode");
+ this.OnSpecialEquipmentProductionLicenseCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(500)")]
+ public string Remark
+ {
+ get
+ {
+ return this._Remark;
+ }
+ set
+ {
+ if ((this._Remark != value))
+ {
+ this.OnRemarkChanging(value);
+ this.SendPropertyChanging();
+ this._Remark = value;
+ this.SendPropertyChanged("Remark");
+ this.OnRemarkChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
+ public string CompileMan
+ {
+ get
+ {
+ return this._CompileMan;
+ }
+ set
+ {
+ if ((this._CompileMan != value))
+ {
+ if (this._Sys_User.HasLoadedOrAssignedValue)
+ {
+ throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
+ }
+ this.OnCompileManChanging(value);
+ this.SendPropertyChanging();
+ this._CompileMan = value;
+ this.SendPropertyChanged("CompileMan");
+ this.OnCompileManChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
+ public System.Nullable CompileDate
+ {
+ get
+ {
+ return this._CompileDate;
+ }
+ set
+ {
+ if ((this._CompileDate != value))
+ {
+ this.OnCompileDateChanging(value);
+ this.SendPropertyChanging();
+ this._CompileDate = value;
+ this.SendPropertyChanged("CompileDate");
+ this.OnCompileDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Reviewer", DbType="NVarChar(50)")]
+ public string Reviewer
+ {
+ get
+ {
+ return this._Reviewer;
+ }
+ set
+ {
+ if ((this._Reviewer != value))
+ {
+ this.OnReviewerChanging(value);
+ this.SendPropertyChanging();
+ this._Reviewer = value;
+ this.SendPropertyChanged("Reviewer");
+ this.OnReviewerChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RevieweDate", DbType="DateTime")]
+ public System.Nullable RevieweDate
+ {
+ get
+ {
+ return this._RevieweDate;
+ }
+ set
+ {
+ if ((this._RevieweDate != value))
+ {
+ this.OnRevieweDateChanging(value);
+ this.SendPropertyChanging();
+ this._RevieweDate = value;
+ this.SendPropertyChanged("RevieweDate");
+ this.OnRevieweDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_IndustrialPipelineInstallationQualityCertificate_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_IndustrialPipelineInstallationQualityCertificate.Remove(this);
+ }
+ this._Base_Project.Entity = value;
+ if ((value != null))
+ {
+ value.JGZL_IndustrialPipelineInstallationQualityCertificate.Add(this);
+ this._ProjectId = value.ProjectId;
+ }
+ else
+ {
+ this._ProjectId = default(string);
+ }
+ this.SendPropertyChanged("Base_Project");
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_IndustrialPipelineInstallationQualityCertificate_Sys_User", Storage="_Sys_User", ThisKey="CompileMan", OtherKey="UserId", IsForeignKey=true)]
+ public Sys_User Sys_User
+ {
+ get
+ {
+ return this._Sys_User.Entity;
+ }
+ set
+ {
+ Sys_User previousValue = this._Sys_User.Entity;
+ if (((previousValue != value)
+ || (this._Sys_User.HasLoadedOrAssignedValue == false)))
+ {
+ this.SendPropertyChanging();
+ if ((previousValue != null))
+ {
+ this._Sys_User.Entity = null;
+ previousValue.JGZL_IndustrialPipelineInstallationQualityCertificate.Remove(this);
+ }
+ this._Sys_User.Entity = value;
+ if ((value != null))
+ {
+ value.JGZL_IndustrialPipelineInstallationQualityCertificate.Add(this);
+ this._CompileMan = value.UserId;
+ }
+ else
+ {
+ this._CompileMan = default(string);
+ }
+ this.SendPropertyChanged("Sys_User");
+ }
+ }
+ }
+
+ 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_IndustrialPipelineInstallationSummary")]
+ public partial class JGZL_IndustrialPipelineInstallationSummary : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _SummaryId;
+
+ private string _CertificateId;
+
+ private string _ProjectId;
+
+ private string _PipelineCode;
+
+ private string _PipelineLevel;
+
+ private string _PipelineStartPoint;
+
+ private string _PipelineEndPoint;
+
+ private string _DesignPressure;
+
+ private string _DesignTemperature;
+
+ private string _Medium;
+
+ private string _Material;
+
+ private string _Specifications;
+
+ private string _Length;
+
+ private string _LayingMethod;
+
+ private string _WeldsNum;
+
+ private string _LosslessRatio;
+
+ private string _VoltageResistantTestMethod;
+
+ private string _VoltageResistantTestMedium;
+
+ private string _VoltageResistantTestPressure;
+
+ private string _LeakageTestMedium;
+
+ private string _LeakageTestPressure;
+
+ private string _CleaningMethod;
+
+ private string _CorrosionControlMethod;
+
+ private string _InsulationMethod;
+
+ private string _Remark;
+
+ private string _CompileMan;
+
+ private System.Nullable _CompileDate;
+
+ private string _Reviewer;
+
+ private System.Nullable _RevieweDate;
+
+ private EntityRef _Base_Project;
+
+ private EntityRef _Sys_User;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnSummaryIdChanging(string value);
+ partial void OnSummaryIdChanged();
+ partial void OnCertificateIdChanging(string value);
+ partial void OnCertificateIdChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnPipelineCodeChanging(string value);
+ partial void OnPipelineCodeChanged();
+ partial void OnPipelineLevelChanging(string value);
+ partial void OnPipelineLevelChanged();
+ partial void OnPipelineStartPointChanging(string value);
+ partial void OnPipelineStartPointChanged();
+ partial void OnPipelineEndPointChanging(string value);
+ partial void OnPipelineEndPointChanged();
+ partial void OnDesignPressureChanging(string value);
+ partial void OnDesignPressureChanged();
+ partial void OnDesignTemperatureChanging(string value);
+ partial void OnDesignTemperatureChanged();
+ partial void OnMediumChanging(string value);
+ partial void OnMediumChanged();
+ partial void OnMaterialChanging(string value);
+ partial void OnMaterialChanged();
+ partial void OnSpecificationsChanging(string value);
+ partial void OnSpecificationsChanged();
+ partial void OnLengthChanging(string value);
+ partial void OnLengthChanged();
+ partial void OnLayingMethodChanging(string value);
+ partial void OnLayingMethodChanged();
+ partial void OnWeldsNumChanging(string value);
+ partial void OnWeldsNumChanged();
+ partial void OnLosslessRatioChanging(string value);
+ partial void OnLosslessRatioChanged();
+ partial void OnVoltageResistantTestMethodChanging(string value);
+ partial void OnVoltageResistantTestMethodChanged();
+ partial void OnVoltageResistantTestMediumChanging(string value);
+ partial void OnVoltageResistantTestMediumChanged();
+ partial void OnVoltageResistantTestPressureChanging(string value);
+ partial void OnVoltageResistantTestPressureChanged();
+ partial void OnLeakageTestMediumChanging(string value);
+ partial void OnLeakageTestMediumChanged();
+ partial void OnLeakageTestPressureChanging(string value);
+ partial void OnLeakageTestPressureChanged();
+ partial void OnCleaningMethodChanging(string value);
+ partial void OnCleaningMethodChanged();
+ partial void OnCorrosionControlMethodChanging(string value);
+ partial void OnCorrosionControlMethodChanged();
+ partial void OnInsulationMethodChanging(string value);
+ partial void OnInsulationMethodChanged();
+ partial void OnRemarkChanging(string value);
+ partial void OnRemarkChanged();
+ partial void OnCompileManChanging(string value);
+ partial void OnCompileManChanged();
+ partial void OnCompileDateChanging(System.Nullable value);
+ partial void OnCompileDateChanged();
+ partial void OnReviewerChanging(string value);
+ partial void OnReviewerChanged();
+ partial void OnRevieweDateChanging(System.Nullable value);
+ partial void OnRevieweDateChanged();
+ #endregion
+
+ public JGZL_IndustrialPipelineInstallationSummary()
+ {
+ this._Base_Project = default(EntityRef);
+ this._Sys_User = default(EntityRef);
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SummaryId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string SummaryId
+ {
+ get
+ {
+ return this._SummaryId;
+ }
+ set
+ {
+ if ((this._SummaryId != value))
+ {
+ this.OnSummaryIdChanging(value);
+ this.SendPropertyChanging();
+ this._SummaryId = value;
+ this.SendPropertyChanged("SummaryId");
+ this.OnSummaryIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CertificateId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
+ public string CertificateId
+ {
+ get
+ {
+ return this._CertificateId;
+ }
+ set
+ {
+ if ((this._CertificateId != value))
+ {
+ this.OnCertificateIdChanging(value);
+ this.SendPropertyChanging();
+ this._CertificateId = value;
+ this.SendPropertyChanged("CertificateId");
+ this.OnCertificateIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ 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="_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="_PipelineLevel", DbType="NVarChar(50)")]
+ public string PipelineLevel
+ {
+ get
+ {
+ return this._PipelineLevel;
+ }
+ set
+ {
+ if ((this._PipelineLevel != value))
+ {
+ this.OnPipelineLevelChanging(value);
+ this.SendPropertyChanging();
+ this._PipelineLevel = value;
+ this.SendPropertyChanged("PipelineLevel");
+ this.OnPipelineLevelChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineStartPoint", DbType="NVarChar(50)")]
+ public string PipelineStartPoint
+ {
+ get
+ {
+ return this._PipelineStartPoint;
+ }
+ set
+ {
+ if ((this._PipelineStartPoint != value))
+ {
+ this.OnPipelineStartPointChanging(value);
+ this.SendPropertyChanging();
+ this._PipelineStartPoint = value;
+ this.SendPropertyChanged("PipelineStartPoint");
+ this.OnPipelineStartPointChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineEndPoint", DbType="NVarChar(50)")]
+ public string PipelineEndPoint
+ {
+ get
+ {
+ return this._PipelineEndPoint;
+ }
+ set
+ {
+ if ((this._PipelineEndPoint != value))
+ {
+ this.OnPipelineEndPointChanging(value);
+ this.SendPropertyChanging();
+ this._PipelineEndPoint = value;
+ this.SendPropertyChanged("PipelineEndPoint");
+ this.OnPipelineEndPointChanged();
+ }
+ }
+ }
+
+ [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="_DesignTemperature", DbType="NVarChar(50)")]
+ public string DesignTemperature
+ {
+ get
+ {
+ return this._DesignTemperature;
+ }
+ set
+ {
+ if ((this._DesignTemperature != value))
+ {
+ this.OnDesignTemperatureChanging(value);
+ this.SendPropertyChanging();
+ this._DesignTemperature = value;
+ this.SendPropertyChanged("DesignTemperature");
+ this.OnDesignTemperatureChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Medium", DbType="NVarChar(50)")]
+ public string Medium
+ {
+ get
+ {
+ return this._Medium;
+ }
+ set
+ {
+ if ((this._Medium != value))
+ {
+ this.OnMediumChanging(value);
+ this.SendPropertyChanging();
+ this._Medium = value;
+ this.SendPropertyChanged("Medium");
+ this.OnMediumChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Material", DbType="NVarChar(50)")]
+ public string Material
+ {
+ get
+ {
+ return this._Material;
+ }
+ set
+ {
+ if ((this._Material != value))
+ {
+ this.OnMaterialChanging(value);
+ this.SendPropertyChanging();
+ this._Material = value;
+ this.SendPropertyChanged("Material");
+ this.OnMaterialChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specifications", DbType="NVarChar(50)")]
+ public string Specifications
+ {
+ get
+ {
+ return this._Specifications;
+ }
+ set
+ {
+ if ((this._Specifications != value))
+ {
+ this.OnSpecificationsChanging(value);
+ this.SendPropertyChanging();
+ this._Specifications = value;
+ this.SendPropertyChanged("Specifications");
+ this.OnSpecificationsChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Length", DbType="NVarChar(50)")]
+ public string Length
+ {
+ get
+ {
+ return this._Length;
+ }
+ set
+ {
+ if ((this._Length != value))
+ {
+ this.OnLengthChanging(value);
+ this.SendPropertyChanging();
+ this._Length = value;
+ this.SendPropertyChanged("Length");
+ this.OnLengthChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LayingMethod", DbType="NVarChar(50)")]
+ public string LayingMethod
+ {
+ get
+ {
+ return this._LayingMethod;
+ }
+ set
+ {
+ if ((this._LayingMethod != value))
+ {
+ this.OnLayingMethodChanging(value);
+ this.SendPropertyChanging();
+ this._LayingMethod = value;
+ this.SendPropertyChanged("LayingMethod");
+ this.OnLayingMethodChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldsNum", DbType="NVarChar(50)")]
+ public string WeldsNum
+ {
+ get
+ {
+ return this._WeldsNum;
+ }
+ set
+ {
+ if ((this._WeldsNum != value))
+ {
+ this.OnWeldsNumChanging(value);
+ this.SendPropertyChanging();
+ this._WeldsNum = value;
+ this.SendPropertyChanged("WeldsNum");
+ this.OnWeldsNumChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LosslessRatio", DbType="NVarChar(50)")]
+ public string LosslessRatio
+ {
+ get
+ {
+ return this._LosslessRatio;
+ }
+ set
+ {
+ if ((this._LosslessRatio != value))
+ {
+ this.OnLosslessRatioChanging(value);
+ this.SendPropertyChanging();
+ this._LosslessRatio = value;
+ this.SendPropertyChanged("LosslessRatio");
+ this.OnLosslessRatioChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_VoltageResistantTestMethod", DbType="NVarChar(50)")]
+ public string VoltageResistantTestMethod
+ {
+ get
+ {
+ return this._VoltageResistantTestMethod;
+ }
+ set
+ {
+ if ((this._VoltageResistantTestMethod != value))
+ {
+ this.OnVoltageResistantTestMethodChanging(value);
+ this.SendPropertyChanging();
+ this._VoltageResistantTestMethod = value;
+ this.SendPropertyChanged("VoltageResistantTestMethod");
+ this.OnVoltageResistantTestMethodChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_VoltageResistantTestMedium", DbType="NVarChar(50)")]
+ public string VoltageResistantTestMedium
+ {
+ get
+ {
+ return this._VoltageResistantTestMedium;
+ }
+ set
+ {
+ if ((this._VoltageResistantTestMedium != value))
+ {
+ this.OnVoltageResistantTestMediumChanging(value);
+ this.SendPropertyChanging();
+ this._VoltageResistantTestMedium = value;
+ this.SendPropertyChanged("VoltageResistantTestMedium");
+ this.OnVoltageResistantTestMediumChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_VoltageResistantTestPressure", DbType="NVarChar(50)")]
+ public string VoltageResistantTestPressure
+ {
+ get
+ {
+ return this._VoltageResistantTestPressure;
+ }
+ set
+ {
+ if ((this._VoltageResistantTestPressure != value))
+ {
+ this.OnVoltageResistantTestPressureChanging(value);
+ this.SendPropertyChanging();
+ this._VoltageResistantTestPressure = value;
+ this.SendPropertyChanged("VoltageResistantTestPressure");
+ this.OnVoltageResistantTestPressureChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeakageTestMedium", DbType="NVarChar(50)")]
+ public string LeakageTestMedium
+ {
+ get
+ {
+ return this._LeakageTestMedium;
+ }
+ set
+ {
+ if ((this._LeakageTestMedium != value))
+ {
+ this.OnLeakageTestMediumChanging(value);
+ this.SendPropertyChanging();
+ this._LeakageTestMedium = value;
+ this.SendPropertyChanged("LeakageTestMedium");
+ this.OnLeakageTestMediumChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeakageTestPressure", DbType="NVarChar(50)")]
+ public string LeakageTestPressure
+ {
+ get
+ {
+ return this._LeakageTestPressure;
+ }
+ set
+ {
+ if ((this._LeakageTestPressure != value))
+ {
+ this.OnLeakageTestPressureChanging(value);
+ this.SendPropertyChanging();
+ this._LeakageTestPressure = value;
+ this.SendPropertyChanged("LeakageTestPressure");
+ this.OnLeakageTestPressureChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CleaningMethod", DbType="NVarChar(50)")]
+ public string CleaningMethod
+ {
+ get
+ {
+ return this._CleaningMethod;
+ }
+ set
+ {
+ if ((this._CleaningMethod != value))
+ {
+ this.OnCleaningMethodChanging(value);
+ this.SendPropertyChanging();
+ this._CleaningMethod = value;
+ this.SendPropertyChanged("CleaningMethod");
+ this.OnCleaningMethodChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CorrosionControlMethod", DbType="NVarChar(50)")]
+ public string CorrosionControlMethod
+ {
+ get
+ {
+ return this._CorrosionControlMethod;
+ }
+ set
+ {
+ if ((this._CorrosionControlMethod != value))
+ {
+ this.OnCorrosionControlMethodChanging(value);
+ this.SendPropertyChanging();
+ this._CorrosionControlMethod = value;
+ this.SendPropertyChanged("CorrosionControlMethod");
+ this.OnCorrosionControlMethodChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InsulationMethod", DbType="NVarChar(50)")]
+ public string InsulationMethod
+ {
+ get
+ {
+ return this._InsulationMethod;
+ }
+ set
+ {
+ if ((this._InsulationMethod != value))
+ {
+ this.OnInsulationMethodChanging(value);
+ this.SendPropertyChanging();
+ this._InsulationMethod = value;
+ this.SendPropertyChanged("InsulationMethod");
+ this.OnInsulationMethodChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(500)")]
+ public string Remark
+ {
+ get
+ {
+ return this._Remark;
+ }
+ set
+ {
+ if ((this._Remark != value))
+ {
+ this.OnRemarkChanging(value);
+ this.SendPropertyChanging();
+ this._Remark = value;
+ this.SendPropertyChanged("Remark");
+ this.OnRemarkChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
+ public string CompileMan
+ {
+ get
+ {
+ return this._CompileMan;
+ }
+ set
+ {
+ if ((this._CompileMan != value))
+ {
+ if (this._Sys_User.HasLoadedOrAssignedValue)
+ {
+ throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
+ }
+ this.OnCompileManChanging(value);
+ this.SendPropertyChanging();
+ this._CompileMan = value;
+ this.SendPropertyChanged("CompileMan");
+ this.OnCompileManChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
+ public System.Nullable CompileDate
+ {
+ get
+ {
+ return this._CompileDate;
+ }
+ set
+ {
+ if ((this._CompileDate != value))
+ {
+ this.OnCompileDateChanging(value);
+ this.SendPropertyChanging();
+ this._CompileDate = value;
+ this.SendPropertyChanged("CompileDate");
+ this.OnCompileDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Reviewer", DbType="NVarChar(50)")]
+ public string Reviewer
+ {
+ get
+ {
+ return this._Reviewer;
+ }
+ set
+ {
+ if ((this._Reviewer != value))
+ {
+ this.OnReviewerChanging(value);
+ this.SendPropertyChanging();
+ this._Reviewer = value;
+ this.SendPropertyChanged("Reviewer");
+ this.OnReviewerChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RevieweDate", DbType="DateTime")]
+ public System.Nullable RevieweDate
+ {
+ get
+ {
+ return this._RevieweDate;
+ }
+ set
+ {
+ if ((this._RevieweDate != value))
+ {
+ this.OnRevieweDateChanging(value);
+ this.SendPropertyChanging();
+ this._RevieweDate = value;
+ this.SendPropertyChanged("RevieweDate");
+ this.OnRevieweDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_IndustrialPipelineInstallationSummary_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_IndustrialPipelineInstallationSummary.Remove(this);
+ }
+ this._Base_Project.Entity = value;
+ if ((value != null))
+ {
+ value.JGZL_IndustrialPipelineInstallationSummary.Add(this);
+ this._ProjectId = value.ProjectId;
+ }
+ else
+ {
+ this._ProjectId = default(string);
+ }
+ this.SendPropertyChanged("Base_Project");
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_IndustrialPipelineInstallationSummary_Sys_User", Storage="_Sys_User", ThisKey="CompileMan", OtherKey="UserId", IsForeignKey=true)]
+ public Sys_User Sys_User
+ {
+ get
+ {
+ return this._Sys_User.Entity;
+ }
+ set
+ {
+ Sys_User previousValue = this._Sys_User.Entity;
+ if (((previousValue != value)
+ || (this._Sys_User.HasLoadedOrAssignedValue == false)))
+ {
+ this.SendPropertyChanging();
+ if ((previousValue != null))
+ {
+ this._Sys_User.Entity = null;
+ previousValue.JGZL_IndustrialPipelineInstallationSummary.Remove(this);
+ }
+ this._Sys_User.Entity = value;
+ if ((value != null))
+ {
+ value.JGZL_IndustrialPipelineInstallationSummary.Add(this);
+ this._CompileMan = value.UserId;
+ }
+ else
+ {
+ this._CompileMan = default(string);
+ }
+ this.SendPropertyChanged("Sys_User");
+ }
+ }
+ }
+
+ 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_MaterialQualityCertificateDoc")]
public partial class JGZL_MaterialQualityCertificateDoc : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -84343,6 +86323,390 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_PipelineInstallationInspectionRecord")]
+ public partial class JGZL_PipelineInstallationInspectionRecord : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _RecordId;
+
+ private string _ProjectId;
+
+ private string _ProfessionalEngineering;
+
+ private string _DrawingNumber;
+
+ private string _InspectionItems;
+
+ private string _InspectionResults;
+
+ private string _Remark;
+
+ private string _CompileMan;
+
+ private System.Nullable _CompileDate;
+
+ private string _Reviewer;
+
+ private System.Nullable _RevieweDate;
+
+ private EntityRef _Base_Project;
+
+ private EntityRef _Sys_User;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnRecordIdChanging(string value);
+ partial void OnRecordIdChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnProfessionalEngineeringChanging(string value);
+ partial void OnProfessionalEngineeringChanged();
+ partial void OnDrawingNumberChanging(string value);
+ partial void OnDrawingNumberChanged();
+ partial void OnInspectionItemsChanging(string value);
+ partial void OnInspectionItemsChanged();
+ partial void OnInspectionResultsChanging(string value);
+ partial void OnInspectionResultsChanged();
+ partial void OnRemarkChanging(string value);
+ partial void OnRemarkChanged();
+ partial void OnCompileManChanging(string value);
+ partial void OnCompileManChanged();
+ partial void OnCompileDateChanging(System.Nullable value);
+ partial void OnCompileDateChanged();
+ partial void OnReviewerChanging(string value);
+ partial void OnReviewerChanged();
+ partial void OnRevieweDateChanging(System.Nullable value);
+ partial void OnRevieweDateChanged();
+ #endregion
+
+ public JGZL_PipelineInstallationInspectionRecord()
+ {
+ this._Base_Project = default(EntityRef);
+ this._Sys_User = default(EntityRef);
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string RecordId
+ {
+ get
+ {
+ return this._RecordId;
+ }
+ set
+ {
+ if ((this._RecordId != value))
+ {
+ this.OnRecordIdChanging(value);
+ this.SendPropertyChanging();
+ this._RecordId = value;
+ this.SendPropertyChanged("RecordId");
+ this.OnRecordIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ 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="_ProfessionalEngineering", DbType="NVarChar(50)")]
+ public string ProfessionalEngineering
+ {
+ get
+ {
+ return this._ProfessionalEngineering;
+ }
+ set
+ {
+ if ((this._ProfessionalEngineering != value))
+ {
+ this.OnProfessionalEngineeringChanging(value);
+ this.SendPropertyChanging();
+ this._ProfessionalEngineering = value;
+ this.SendPropertyChanged("ProfessionalEngineering");
+ this.OnProfessionalEngineeringChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DrawingNumber", DbType="NVarChar(50)")]
+ public string DrawingNumber
+ {
+ get
+ {
+ return this._DrawingNumber;
+ }
+ set
+ {
+ if ((this._DrawingNumber != value))
+ {
+ this.OnDrawingNumberChanging(value);
+ this.SendPropertyChanging();
+ this._DrawingNumber = value;
+ this.SendPropertyChanged("DrawingNumber");
+ this.OnDrawingNumberChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionItems", DbType="NVarChar(2000)")]
+ public string InspectionItems
+ {
+ get
+ {
+ return this._InspectionItems;
+ }
+ set
+ {
+ if ((this._InspectionItems != value))
+ {
+ this.OnInspectionItemsChanging(value);
+ this.SendPropertyChanging();
+ this._InspectionItems = value;
+ this.SendPropertyChanged("InspectionItems");
+ this.OnInspectionItemsChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionResults", DbType="NVarChar(2000)")]
+ public string InspectionResults
+ {
+ get
+ {
+ return this._InspectionResults;
+ }
+ set
+ {
+ if ((this._InspectionResults != value))
+ {
+ this.OnInspectionResultsChanging(value);
+ this.SendPropertyChanging();
+ this._InspectionResults = value;
+ this.SendPropertyChanged("InspectionResults");
+ this.OnInspectionResultsChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(500)")]
+ public string Remark
+ {
+ get
+ {
+ return this._Remark;
+ }
+ set
+ {
+ if ((this._Remark != value))
+ {
+ this.OnRemarkChanging(value);
+ this.SendPropertyChanging();
+ this._Remark = value;
+ this.SendPropertyChanged("Remark");
+ this.OnRemarkChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
+ public string CompileMan
+ {
+ get
+ {
+ return this._CompileMan;
+ }
+ set
+ {
+ if ((this._CompileMan != value))
+ {
+ if (this._Sys_User.HasLoadedOrAssignedValue)
+ {
+ throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
+ }
+ this.OnCompileManChanging(value);
+ this.SendPropertyChanging();
+ this._CompileMan = value;
+ this.SendPropertyChanged("CompileMan");
+ this.OnCompileManChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
+ public System.Nullable CompileDate
+ {
+ get
+ {
+ return this._CompileDate;
+ }
+ set
+ {
+ if ((this._CompileDate != value))
+ {
+ this.OnCompileDateChanging(value);
+ this.SendPropertyChanging();
+ this._CompileDate = value;
+ this.SendPropertyChanged("CompileDate");
+ this.OnCompileDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Reviewer", DbType="NVarChar(50)")]
+ public string Reviewer
+ {
+ get
+ {
+ return this._Reviewer;
+ }
+ set
+ {
+ if ((this._Reviewer != value))
+ {
+ this.OnReviewerChanging(value);
+ this.SendPropertyChanging();
+ this._Reviewer = value;
+ this.SendPropertyChanged("Reviewer");
+ this.OnReviewerChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RevieweDate", DbType="DateTime")]
+ public System.Nullable RevieweDate
+ {
+ get
+ {
+ return this._RevieweDate;
+ }
+ set
+ {
+ if ((this._RevieweDate != value))
+ {
+ this.OnRevieweDateChanging(value);
+ this.SendPropertyChanging();
+ this._RevieweDate = value;
+ this.SendPropertyChanged("RevieweDate");
+ this.OnRevieweDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_PipelineInstallationInspectionRecord_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_PipelineInstallationInspectionRecord.Remove(this);
+ }
+ this._Base_Project.Entity = value;
+ if ((value != null))
+ {
+ value.JGZL_PipelineInstallationInspectionRecord.Add(this);
+ this._ProjectId = value.ProjectId;
+ }
+ else
+ {
+ this._ProjectId = default(string);
+ }
+ this.SendPropertyChanged("Base_Project");
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_PipelineInstallationInspectionRecord_Sys_User", Storage="_Sys_User", ThisKey="CompileMan", OtherKey="UserId", IsForeignKey=true)]
+ public Sys_User Sys_User
+ {
+ get
+ {
+ return this._Sys_User.Entity;
+ }
+ set
+ {
+ Sys_User previousValue = this._Sys_User.Entity;
+ if (((previousValue != value)
+ || (this._Sys_User.HasLoadedOrAssignedValue == false)))
+ {
+ this.SendPropertyChanging();
+ if ((previousValue != null))
+ {
+ this._Sys_User.Entity = null;
+ previousValue.JGZL_PipelineInstallationInspectionRecord.Remove(this);
+ }
+ this._Sys_User.Entity = value;
+ if ((value != null))
+ {
+ value.JGZL_PipelineInstallationInspectionRecord.Add(this);
+ this._CompileMan = value.UserId;
+ }
+ else
+ {
+ this._CompileMan = default(string);
+ }
+ this.SendPropertyChanged("Sys_User");
+ }
+ }
+ }
+
+ 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_QualityControlPointInspection")]
public partial class JGZL_QualityControlPointInspection : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -107753,6 +110117,8 @@ namespace Model
private EntitySet _JGZL_CommencementReport;
+ private EntitySet _JGZL_ConcealedWorksInspectionRecord;
+
private EntitySet _JGZL_ConDrawingVerification;
private EntitySet _JGZL_Contact;
@@ -107761,12 +110127,18 @@ namespace Model
private EntitySet _JGZL_HandoverCertificate;
+ private EntitySet _JGZL_IndustrialPipelineInstallationQualityCertificate;
+
+ private EntitySet _JGZL_IndustrialPipelineInstallationSummary;
+
private EntitySet _JGZL_MaterialQualityCertificateDoc;
private EntitySet _JGZL_MeasuringInstruments;
private EntitySet _JGZL_NDTPerson;
+ private EntitySet _JGZL_PipelineInstallationInspectionRecord;
+
private EntitySet _JGZL_QualityControlPointInspection;
private EntitySet _JGZL_SpecialEquipmentMaintenance;
@@ -107857,13 +110229,17 @@ namespace Model
this._JGZL_AcceptanceCertificate = new EntitySet(new Action(this.attach_JGZL_AcceptanceCertificate), new Action(this.detach_JGZL_AcceptanceCertificate));
this._JGZL_BlowingCleaning = new EntitySet(new Action(this.attach_JGZL_BlowingCleaning), new Action(this.detach_JGZL_BlowingCleaning));
this._JGZL_CommencementReport = new EntitySet(new Action(this.attach_JGZL_CommencementReport), new Action(this.detach_JGZL_CommencementReport));
+ this._JGZL_ConcealedWorksInspectionRecord = new EntitySet(new Action(this.attach_JGZL_ConcealedWorksInspectionRecord), new Action(this.detach_JGZL_ConcealedWorksInspectionRecord));
this._JGZL_ConDrawingVerification = new EntitySet(new Action(this.attach_JGZL_ConDrawingVerification), new Action(this.detach_JGZL_ConDrawingVerification));
this._JGZL_Contact = new EntitySet(new Action(this.attach_JGZL_Contact), new Action(this.detach_JGZL_Contact));
this._JGZL_ElectrostaticGrounding = new EntitySet(new Action(this.attach_JGZL_ElectrostaticGrounding), new Action(this.detach_JGZL_ElectrostaticGrounding));
this._JGZL_HandoverCertificate = new EntitySet(new Action(this.attach_JGZL_HandoverCertificate), new Action(this.detach_JGZL_HandoverCertificate));
+ 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_MaterialQualityCertificateDoc = new EntitySet(new Action(this.attach_JGZL_MaterialQualityCertificateDoc), new Action(this.detach_JGZL_MaterialQualityCertificateDoc));
this._JGZL_MeasuringInstruments = new EntitySet(new Action(this.attach_JGZL_MeasuringInstruments), new Action(this.detach_JGZL_MeasuringInstruments));
this._JGZL_NDTPerson = new EntitySet(new Action(this.attach_JGZL_NDTPerson), new Action(this.detach_JGZL_NDTPerson));
+ this._JGZL_PipelineInstallationInspectionRecord = new EntitySet(new Action(this.attach_JGZL_PipelineInstallationInspectionRecord), new Action(this.detach_JGZL_PipelineInstallationInspectionRecord));
this._JGZL_QualityControlPointInspection = new EntitySet(new Action(this.attach_JGZL_QualityControlPointInspection), new Action(this.detach_JGZL_QualityControlPointInspection));
this._JGZL_SpecialEquipmentMaintenance = new EntitySet(new Action(this.attach_JGZL_SpecialEquipmentMaintenance), new Action(this.detach_JGZL_SpecialEquipmentMaintenance));
this._JGZL_TeamWeldingInspection = new EntitySet(new Action(this.attach_JGZL_TeamWeldingInspection), new Action(this.detach_JGZL_TeamWeldingInspection));
@@ -108544,6 +110920,19 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_ConcealedWorksInspectionRecord_Sys_User", Storage="_JGZL_ConcealedWorksInspectionRecord", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
+ public EntitySet JGZL_ConcealedWorksInspectionRecord
+ {
+ get
+ {
+ return this._JGZL_ConcealedWorksInspectionRecord;
+ }
+ set
+ {
+ this._JGZL_ConcealedWorksInspectionRecord.Assign(value);
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_ConDrawingVerification_Sys_User", Storage="_JGZL_ConDrawingVerification", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
public EntitySet JGZL_ConDrawingVerification
{
@@ -108596,6 +110985,32 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_IndustrialPipelineInstallationQualityCertificate_Sys_User", Storage="_JGZL_IndustrialPipelineInstallationQualityCertificate", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
+ public EntitySet JGZL_IndustrialPipelineInstallationQualityCertificate
+ {
+ get
+ {
+ return this._JGZL_IndustrialPipelineInstallationQualityCertificate;
+ }
+ set
+ {
+ this._JGZL_IndustrialPipelineInstallationQualityCertificate.Assign(value);
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_IndustrialPipelineInstallationSummary_Sys_User", Storage="_JGZL_IndustrialPipelineInstallationSummary", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
+ public EntitySet JGZL_IndustrialPipelineInstallationSummary
+ {
+ get
+ {
+ return this._JGZL_IndustrialPipelineInstallationSummary;
+ }
+ set
+ {
+ this._JGZL_IndustrialPipelineInstallationSummary.Assign(value);
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_MaterialQualityCertificateDoc_Sys_User", Storage="_JGZL_MaterialQualityCertificateDoc", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
public EntitySet JGZL_MaterialQualityCertificateDoc
{
@@ -108635,6 +111050,19 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_PipelineInstallationInspectionRecord_Sys_User", Storage="_JGZL_PipelineInstallationInspectionRecord", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
+ public EntitySet JGZL_PipelineInstallationInspectionRecord
+ {
+ get
+ {
+ return this._JGZL_PipelineInstallationInspectionRecord;
+ }
+ set
+ {
+ this._JGZL_PipelineInstallationInspectionRecord.Assign(value);
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_QualityControlPointInspection_Sys_User", Storage="_JGZL_QualityControlPointInspection", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
public EntitySet JGZL_QualityControlPointInspection
{
@@ -109077,6 +111505,18 @@ namespace Model
entity.Sys_User = null;
}
+ private void attach_JGZL_ConcealedWorksInspectionRecord(JGZL_ConcealedWorksInspectionRecord entity)
+ {
+ this.SendPropertyChanging();
+ entity.Sys_User = this;
+ }
+
+ private void detach_JGZL_ConcealedWorksInspectionRecord(JGZL_ConcealedWorksInspectionRecord entity)
+ {
+ this.SendPropertyChanging();
+ entity.Sys_User = null;
+ }
+
private void attach_JGZL_ConDrawingVerification(JGZL_ConDrawingVerification entity)
{
this.SendPropertyChanging();
@@ -109125,6 +111565,30 @@ namespace Model
entity.Sys_User = null;
}
+ private void attach_JGZL_IndustrialPipelineInstallationQualityCertificate(JGZL_IndustrialPipelineInstallationQualityCertificate entity)
+ {
+ this.SendPropertyChanging();
+ entity.Sys_User = this;
+ }
+
+ private void detach_JGZL_IndustrialPipelineInstallationQualityCertificate(JGZL_IndustrialPipelineInstallationQualityCertificate entity)
+ {
+ this.SendPropertyChanging();
+ entity.Sys_User = null;
+ }
+
+ private void attach_JGZL_IndustrialPipelineInstallationSummary(JGZL_IndustrialPipelineInstallationSummary entity)
+ {
+ this.SendPropertyChanging();
+ entity.Sys_User = this;
+ }
+
+ private void detach_JGZL_IndustrialPipelineInstallationSummary(JGZL_IndustrialPipelineInstallationSummary entity)
+ {
+ this.SendPropertyChanging();
+ entity.Sys_User = null;
+ }
+
private void attach_JGZL_MaterialQualityCertificateDoc(JGZL_MaterialQualityCertificateDoc entity)
{
this.SendPropertyChanging();
@@ -109161,6 +111625,18 @@ namespace Model
entity.Sys_User = null;
}
+ private void attach_JGZL_PipelineInstallationInspectionRecord(JGZL_PipelineInstallationInspectionRecord entity)
+ {
+ this.SendPropertyChanging();
+ entity.Sys_User = this;
+ }
+
+ private void detach_JGZL_PipelineInstallationInspectionRecord(JGZL_PipelineInstallationInspectionRecord entity)
+ {
+ this.SendPropertyChanging();
+ entity.Sys_User = null;
+ }
+
private void attach_JGZL_QualityControlPointInspection(JGZL_QualityControlPointInspection entity)
{
this.SendPropertyChanging();