From 4da0548152b4ed7e7a75df27db46a0f53ac7c269 Mon Sep 17 00:00:00 2001 From: wendy <408182087@qq.com> Date: Thu, 8 Jan 2026 15:27:09 +0800 Subject: [PATCH] =?UTF-8?q?20260108=20=E4=BA=A4=E5=B7=A5=E8=B5=84=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../版本日志/HJGLDB_DS_2026-01-08_bwj.sql | 239 +++ HJGL_DS/BLL/BLL.csproj | 3 + HJGL_DS/BLL/Common/Const.cs | 10 + .../QualityControlPointInspectionService.cs | 84 ++ .../JGZL/TeamWeldingInspectionItemService.cs | 123 ++ .../BLL/JGZL/TeamWeldingInspectionService.cs | 75 + ...连接焊接接头、角焊接头组对焊接检查记录.frx | 312 ++++ .../Fastreport/JGZL/质量控制点检查记录.frx | 111 ++ HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj | 32 + .../FineUIPro.Web/FineUIPro.Web.csproj.user | 2 +- .../JGZL/CommencementReportEdit.aspx.cs | 1 + .../JGZL/QualityControlPointInspection.aspx | 122 ++ .../QualityControlPointInspection.aspx.cs | 385 +++++ ...ityControlPointInspection.aspx.designer.cs | 206 +++ .../QualityControlPointInspectionEdit.aspx | 58 + .../QualityControlPointInspectionEdit.aspx.cs | 123 ++ ...ontrolPointInspectionEdit.aspx.designer.cs | 134 ++ .../JGZL/TeamWeldingInspection.aspx | 132 ++ .../JGZL/TeamWeldingInspection.aspx.cs | 544 +++++++ .../TeamWeldingInspection.aspx.designer.cs | 251 ++++ .../JGZL/TeamWeldingInspectionEdit.aspx | 88 ++ .../JGZL/TeamWeldingInspectionEdit.aspx.cs | 202 +++ ...TeamWeldingInspectionEdit.aspx.designer.cs | 233 +++ HJGL_DS/FineUIPro.Web/Web.config | 4 +- HJGL_DS/Model/Model.cs | 1308 +++++++++++++++++ HJGL_DS/WebAPI/WebAPI.csproj.user | 2 +- 26 files changed, 4780 insertions(+), 4 deletions(-) create mode 100644 DataBase/版本日志/HJGLDB_DS_2026-01-08_bwj.sql create mode 100644 HJGL_DS/BLL/JGZL/QualityControlPointInspectionService.cs create mode 100644 HJGL_DS/BLL/JGZL/TeamWeldingInspectionItemService.cs create mode 100644 HJGL_DS/BLL/JGZL/TeamWeldingInspectionService.cs create mode 100644 HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/支管连接焊接接头、角焊接头组对焊接检查记录.frx create mode 100644 HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/质量控制点检查记录.frx create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspection.aspx create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspection.aspx.cs create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspection.aspx.designer.cs create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspectionEdit.aspx create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspectionEdit.aspx.cs create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspectionEdit.aspx.designer.cs create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspection.aspx create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspection.aspx.cs create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspection.aspx.designer.cs create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspectionEdit.aspx create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspectionEdit.aspx.cs create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspectionEdit.aspx.designer.cs diff --git a/DataBase/版本日志/HJGLDB_DS_2026-01-08_bwj.sql b/DataBase/版本日志/HJGLDB_DS_2026-01-08_bwj.sql new file mode 100644 index 0000000..8a76bb8 --- /dev/null +++ b/DataBase/版本日志/HJGLDB_DS_2026-01-08_bwj.sql @@ -0,0 +1,239 @@ + +insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule) +values('A09FAFBF-5E2E-40E0-B10D-72CC0D90FB3A','֧ӺӽͷǺͷӺӼ¼','JGZL/TeamWeldingInspection.aspx',190,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3') +go +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('FC5A1BD4-D0BF-4E02-80B8-7783C9E438BB','A09FAFBF-5E2E-40E0-B10D-72CC0D90FB3A','',1) +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('4FBBB785-E584-4F92-BE79-97D996D97E66','A09FAFBF-5E2E-40E0-B10D-72CC0D90FB3A','޸',2) +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('DC64D6E7-284A-453E-BE8D-5F4A210F7032','A09FAFBF-5E2E-40E0-B10D-72CC0D90FB3A','ɾ',3) +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('4F63D5EA-4822-4E09-83C8-C5C72EB5A375','A09FAFBF-5E2E-40E0-B10D-72CC0D90FB3A','',4) +go + +insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule) +values('594F3A00-5B63-4149-9250-3A048397D537','Ƶ¼','JGZL/QualityControlPointInspection.aspx',200,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3') +go +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('B0D685EC-84F1-4899-A40E-1FAD6D810E44','594F3A00-5B63-4149-9250-3A048397D537','',1) +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('6291B7FA-28A7-4FD5-9AE3-3FD581C1DD3D','594F3A00-5B63-4149-9250-3A048397D537','޸',2) +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('FA49F2AD-620E-47CB-B541-5673497C7786','594F3A00-5B63-4149-9250-3A048397D537','ɾ',3) +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('A134F6DA-CED0-4A5F-BCB0-95E196F93D86','594F3A00-5B63-4149-9250-3A048397D537','',4) +go + + +CREATE TABLE [dbo].[JGZL_TeamWeldingInspection]( + [TeamWeldingInspectionId] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [UsingUnitTeam] [nvarchar](50) NULL, + [InstallationArea] [nvarchar](50) NULL, + [CompileMan] [nvarchar](50) NULL, + [CompileDate] [datetime] NULL, + CONSTRAINT [PK_JGZL_TeamWeldingInspection] PRIMARY KEY CLUSTERED +( + [TeamWeldingInspectionId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY] +) ON [PRIMARY] +GO + +ALTER TABLE [dbo].[JGZL_TeamWeldingInspection] WITH CHECK ADD CONSTRAINT [FK_JGZL_TeamWeldingInspection_Base_Project] FOREIGN KEY([ProjectId]) +REFERENCES [dbo].[Base_Project] ([ProjectId]) +GO + +ALTER TABLE [dbo].[JGZL_TeamWeldingInspection] CHECK CONSTRAINT [FK_JGZL_TeamWeldingInspection_Base_Project] +GO + +ALTER TABLE [dbo].[JGZL_TeamWeldingInspection] WITH CHECK ADD CONSTRAINT [FK_JGZL_TeamWeldingInspection_Sys_User] FOREIGN KEY([CompileMan]) +REFERENCES [dbo].[Sys_User] ([UserId]) +GO + +ALTER TABLE [dbo].[JGZL_TeamWeldingInspection] CHECK CONSTRAINT [FK_JGZL_TeamWeldingInspection_Sys_User] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspection', @level2type=N'COLUMN',@level2name=N'TeamWeldingInspectionId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspection', @level2type=N'COLUMN',@level2name=N'ProjectId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʹõλ/' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspection', @level2type=N'COLUMN',@level2name=N'UsingUnitTeam' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'װ/ʩ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspection', @level2type=N'COLUMN',@level2name=N'InstallationArea' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspection', @level2type=N'COLUMN',@level2name=N'CompileMan' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspection', @level2type=N'COLUMN',@level2name=N'CompileDate' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'֧ӺӽͷǺͷӺӼ¼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspection' +GO + + +CREATE TABLE [dbo].[JGZL_TeamWeldingInspectionItem]( + [TeamWeldingInspectionItemId] [nvarchar](50) NOT NULL, + [TeamWeldingInspectionId] [nvarchar](50) NULL, + [CheckDate] [datetime] NULL, + [Material] [nvarchar](50) NULL, + [PipelineNo] [nvarchar](50) NULL, + [WeldingJointNo] [nvarchar](50) NULL, + [InstallationMethod] [nvarchar](50) NULL, + [WeldingWire] [nvarchar](50) NULL, + [WeldingRod] [nvarchar](50) NULL, + [TeamGap] [nvarchar](50) NULL, + [TeamPlumber] [nvarchar](50) NULL, + [TeamWelder] [nvarchar](50) NULL, + [TeamInspector] [nvarchar](50) NULL, + [GTAWWelder] [nvarchar](50) NULL, + [GTAWInspector] [nvarchar](50) NULL, + [SMAWWelder] [nvarchar](50) NULL, + [VTInspector] [nvarchar](50) NULL, + CONSTRAINT [PK_JGZL_TeamWeldingInspectionItem] PRIMARY KEY CLUSTERED +( + [TeamWeldingInspectionItemId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY] +) ON [PRIMARY] +GO + +ALTER TABLE [dbo].[JGZL_TeamWeldingInspectionItem] WITH CHECK ADD CONSTRAINT [FK_JGZL_TeamWeldingInspectionItem_JGZL_TeamWeldingInspection] FOREIGN KEY([TeamWeldingInspectionId]) +REFERENCES [dbo].[JGZL_TeamWeldingInspection] ([TeamWeldingInspectionId]) +GO + +ALTER TABLE [dbo].[JGZL_TeamWeldingInspectionItem] CHECK CONSTRAINT [FK_JGZL_TeamWeldingInspectionItem_JGZL_TeamWeldingInspection] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspectionItem', @level2type=N'COLUMN',@level2name=N'TeamWeldingInspectionItemId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspectionItem', @level2type=N'COLUMN',@level2name=N'TeamWeldingInspectionId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspectionItem', @level2type=N'COLUMN',@level2name=N'CheckDate' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspectionItem', @level2type=N'COLUMN',@level2name=N'Material' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspectionItem', @level2type=N'COLUMN',@level2name=N'PipelineNo' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ڱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspectionItem', @level2type=N'COLUMN',@level2name=N'WeldingJointNo' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'װʽʽ/ʽ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspectionItem', @level2type=N'COLUMN',@level2name=N'InstallationMethod' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ú˿ƺ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspectionItem', @level2type=N'COLUMN',@level2name=N'WeldingWire' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'úƺ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspectionItem', @level2type=N'COLUMN',@level2name=N'WeldingRod' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ӽ϶mm' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspectionItem', @level2type=N'COLUMN',@level2name=N'TeamGap' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȷ-ܹ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspectionItem', @level2type=N'COLUMN',@level2name=N'TeamPlumber' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȷ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspectionItem', @level2type=N'COLUMN',@level2name=N'TeamWelder' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȷ-ʼԱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspectionItem', @level2type=N'COLUMN',@level2name=N'TeamInspector' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'GTAW-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspectionItem', @level2type=N'COLUMN',@level2name=N'GTAWWelder' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'GTAW-ʼԱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspectionItem', @level2type=N'COLUMN',@level2name=N'GTAWInspector' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'SMAW' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspectionItem', @level2type=N'COLUMN',@level2name=N'SMAWWelder' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'VTʼԱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspectionItem', @level2type=N'COLUMN',@level2name=N'VTInspector' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'֧ӺӽͷǺͷӺӼ¼ϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_TeamWeldingInspectionItem' +GO + + + +CREATE TABLE [dbo].[JGZL_QualityControlPointInspection]( + [QualityControlPointInspectionId] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [Professional] [nvarchar](50) NULL, + [ConstructionStandards] [nvarchar](100) NULL, + [ControlPointName] [nvarchar](50) NULL, + [ConTeamGroup] [nvarchar](50) NULL, + [CheckContents] [nvarchar](2000) NULL, + [Problems] [nvarchar](2000) NULL, + [Conclusion] [nvarchar](2000) NULL, + [CompileMan] [nvarchar](50) NULL, + [CompileDate] [datetime] NULL, + CONSTRAINT [PK_JGZL_QualityControlPointInspection] PRIMARY KEY CLUSTERED +( + [QualityControlPointInspectionId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY] +) ON [PRIMARY] +GO + +ALTER TABLE [dbo].[JGZL_QualityControlPointInspection] WITH CHECK ADD CONSTRAINT [FK_JGZL_QualityControlPointInspection_Base_Project] FOREIGN KEY([ProjectId]) +REFERENCES [dbo].[Base_Project] ([ProjectId]) +GO + +ALTER TABLE [dbo].[JGZL_QualityControlPointInspection] CHECK CONSTRAINT [FK_JGZL_QualityControlPointInspection_Base_Project] +GO + +ALTER TABLE [dbo].[JGZL_QualityControlPointInspection] WITH CHECK ADD CONSTRAINT [FK_JGZL_QualityControlPointInspection_Sys_User] FOREIGN KEY([CompileMan]) +REFERENCES [dbo].[Sys_User] ([UserId]) +GO + +ALTER TABLE [dbo].[JGZL_QualityControlPointInspection] CHECK CONSTRAINT [FK_JGZL_QualityControlPointInspection_Sys_User] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_QualityControlPointInspection', @level2type=N'COLUMN',@level2name=N'QualityControlPointInspectionId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_QualityControlPointInspection', @level2type=N'COLUMN',@level2name=N'ProjectId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'רҵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_QualityControlPointInspection', @level2type=N'COLUMN',@level2name=N'Professional' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʩ׼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_QualityControlPointInspection', @level2type=N'COLUMN',@level2name=N'ConstructionStandards' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ƶ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_QualityControlPointInspection', @level2type=N'COLUMN',@level2name=N'ControlPointName' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʩ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_QualityControlPointInspection', @level2type=N'COLUMN',@level2name=N'ConTeamGroup' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_QualityControlPointInspection', @level2type=N'COLUMN',@level2name=N'CheckContents' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_QualityControlPointInspection', @level2type=N'COLUMN',@level2name=N'Problems' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_QualityControlPointInspection', @level2type=N'COLUMN',@level2name=N'Conclusion' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_QualityControlPointInspection', @level2type=N'COLUMN',@level2name=N'CompileMan' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_QualityControlPointInspection', @level2type=N'COLUMN',@level2name=N'CompileDate' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ƶ¼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_QualityControlPointInspection' +GO + + + + + diff --git a/HJGL_DS/BLL/BLL.csproj b/HJGL_DS/BLL/BLL.csproj index 01966b1..992ccb0 100644 --- a/HJGL_DS/BLL/BLL.csproj +++ b/HJGL_DS/BLL/BLL.csproj @@ -253,7 +253,10 @@ + + + diff --git a/HJGL_DS/BLL/Common/Const.cs b/HJGL_DS/BLL/Common/Const.cs index 5516ec9..eca9512 100644 --- a/HJGL_DS/BLL/Common/Const.cs +++ b/HJGL_DS/BLL/Common/Const.cs @@ -1795,6 +1795,16 @@ namespace BLL /// 周期检定计量器具清单 /// public const string JGZL_MeasuringInstrumentsMenuId = "AA56E986-CDB6-438E-B4AA-F1A7DE373C8B"; + + /// + /// 支管连接焊接接头、角焊接头组队焊接检查记录 + /// + public const string JGZL_TeamWeldingInspectionMenuId = "A09FAFBF-5E2E-40E0-B10D-72CC0D90FB3A"; + + /// + /// 质量控制点检查记录 + /// + public const string JGZL_QualityControlPointInspectionMenuId = "594F3A00-5B63-4149-9250-3A048397D537"; #endregion #region 报表对应ID diff --git a/HJGL_DS/BLL/JGZL/QualityControlPointInspectionService.cs b/HJGL_DS/BLL/JGZL/QualityControlPointInspectionService.cs new file mode 100644 index 0000000..4e088db --- /dev/null +++ b/HJGL_DS/BLL/JGZL/QualityControlPointInspectionService.cs @@ -0,0 +1,84 @@ +using Model; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + /// + /// 质量控制点检查记录 + /// + public class QualityControlPointInspectionService + { + /// + /// 根据主键获取质量控制点检查记录 + /// + /// + /// + public static Model.JGZL_QualityControlPointInspection GetQualityControlPointInspectionById(string qualityControlPointInspectionId) + { + return Funs.DB.JGZL_QualityControlPointInspection.FirstOrDefault(e => e.QualityControlPointInspectionId == qualityControlPointInspectionId); + } + + /// + /// 添加 + /// + /// + public static void AddQualityControlPointInspection(Model.JGZL_QualityControlPointInspection qualityControlPointInspection) + { + SGGLDB db = Funs.DB; + Model.JGZL_QualityControlPointInspection newInspection = new JGZL_QualityControlPointInspection(); + newInspection.QualityControlPointInspectionId = qualityControlPointInspection.QualityControlPointInspectionId; + newInspection.ProjectId = qualityControlPointInspection.ProjectId; + newInspection.Professional = qualityControlPointInspection.Professional; + newInspection.ConstructionStandards = qualityControlPointInspection.ConstructionStandards; + newInspection.ControlPointName = qualityControlPointInspection.ControlPointName; + newInspection.ConTeamGroup = qualityControlPointInspection.ConTeamGroup; + newInspection.CheckContents = qualityControlPointInspection.CheckContents; + newInspection.Problems = qualityControlPointInspection.Problems; + newInspection.Conclusion = qualityControlPointInspection.Conclusion; + newInspection.CompileMan = qualityControlPointInspection.CompileMan; + newInspection.CompileDate = qualityControlPointInspection.CompileDate; + db.JGZL_QualityControlPointInspection.InsertOnSubmit(newInspection); + db.SubmitChanges(); + } + + /// + /// 修改 + /// + /// + public static void UpdateQualityControlPointInspection(Model.JGZL_QualityControlPointInspection qualityControlPointInspection) + { + SGGLDB db = Funs.DB; + Model.JGZL_QualityControlPointInspection newInspection = db.JGZL_QualityControlPointInspection.FirstOrDefault(e => e.QualityControlPointInspectionId == qualityControlPointInspection.QualityControlPointInspectionId); + if (newInspection != null) + { + newInspection.Professional = qualityControlPointInspection.Professional; + newInspection.ConstructionStandards = qualityControlPointInspection.ConstructionStandards; + newInspection.ControlPointName = qualityControlPointInspection.ControlPointName; + newInspection.ConTeamGroup = qualityControlPointInspection.ConTeamGroup; + newInspection.CheckContents = qualityControlPointInspection.CheckContents; + newInspection.Problems = qualityControlPointInspection.Problems; + newInspection.Conclusion = qualityControlPointInspection.Conclusion; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除质量控制点检查记录 + /// + /// + public static void DeleteQualityControlPointInspectionById(string qualityControlPointInspectionId) + { + SGGLDB db = Funs.DB; + Model.JGZL_QualityControlPointInspection inspection = db.JGZL_QualityControlPointInspection.FirstOrDefault(e => e.QualityControlPointInspectionId == qualityControlPointInspectionId); + if (inspection != null) + { + db.JGZL_QualityControlPointInspection.DeleteOnSubmit(inspection); + db.SubmitChanges(); + } + } + } +} diff --git a/HJGL_DS/BLL/JGZL/TeamWeldingInspectionItemService.cs b/HJGL_DS/BLL/JGZL/TeamWeldingInspectionItemService.cs new file mode 100644 index 0000000..1697313 --- /dev/null +++ b/HJGL_DS/BLL/JGZL/TeamWeldingInspectionItemService.cs @@ -0,0 +1,123 @@ +using Model; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + /// + /// 支管连接焊接接头、角焊接头组对焊接检查记录明细 + /// + public class TeamWeldingInspectionItemService + { + /// + /// 根据主键获取明细信息 + /// + /// + /// + public static Model.JGZL_TeamWeldingInspectionItem GetTeamWeldingInspectionItemById(string teamWeldingInspectionItemId) + { + return Funs.DB.JGZL_TeamWeldingInspectionItem.FirstOrDefault(e=>e.TeamWeldingInspectionItemId==teamWeldingInspectionItemId); + } + + /// + /// 根据支管连接焊接接头、角焊接头组对焊接检查记录Id获取明细信息 + /// + /// + /// + public static List GetTeamWeldingInspectionItemList(string teamWeldingInspectionId) + { + return (from x in Funs.DB.JGZL_TeamWeldingInspectionItem where x.TeamWeldingInspectionId == teamWeldingInspectionId select x).ToList(); + } + + /// + /// 添加 + /// + /// + public static void AddTeamWeldingInspectionItem(Model.JGZL_TeamWeldingInspectionItem item) + { + SGGLDB db = Funs.DB; + Model.JGZL_TeamWeldingInspectionItem newItem = new JGZL_TeamWeldingInspectionItem(); + newItem.TeamWeldingInspectionItemId = item.TeamWeldingInspectionItemId; + newItem.TeamWeldingInspectionId = item.TeamWeldingInspectionId; + newItem.CheckDate = item.CheckDate; + newItem.Material = item.Material; + newItem.PipelineNo = item.PipelineNo; + newItem.WeldingJointNo = item.WeldingJointNo; + newItem.InstallationMethod = item.InstallationMethod; + newItem.WeldingWire = item.WeldingWire; + newItem.WeldingRod = item.WeldingRod; + newItem.TeamGap = item.TeamGap; + newItem.TeamPlumber = item.TeamPlumber; + newItem.TeamWelder = item.TeamWelder; + newItem.TeamInspector = item.TeamInspector; + newItem.GTAWWelder = item.GTAWWelder; + newItem.GTAWInspector = item.GTAWInspector; + newItem.SMAWWelder = item.SMAWWelder; + newItem.VTInspector = item.VTInspector; + db.JGZL_TeamWeldingInspectionItem.InsertOnSubmit(newItem); + db.SubmitChanges(); + } + + /// + /// 修改 + /// + /// + public static void UpdateTeamWeldingInspectionItem(Model.JGZL_TeamWeldingInspectionItem item) + { + SGGLDB db = Funs.DB; + Model.JGZL_TeamWeldingInspectionItem newItem = db.JGZL_TeamWeldingInspectionItem.FirstOrDefault(e => e.TeamWeldingInspectionItemId == item.TeamWeldingInspectionItemId); + if (newItem != null) + { + newItem.CheckDate = item.CheckDate; + newItem.Material = item.Material; + newItem.PipelineNo = item.PipelineNo; + newItem.WeldingJointNo = item.WeldingJointNo; + newItem.InstallationMethod = item.InstallationMethod; + newItem.WeldingWire = item.WeldingWire; + newItem.WeldingRod = item.WeldingRod; + newItem.TeamGap = item.TeamGap; + newItem.TeamPlumber = item.TeamPlumber; + newItem.TeamWelder = item.TeamWelder; + newItem.TeamInspector = item.TeamInspector; + newItem.GTAWWelder = item.GTAWWelder; + newItem.GTAWInspector = item.GTAWInspector; + newItem.SMAWWelder = item.SMAWWelder; + newItem.VTInspector = item.VTInspector; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除明细信息 + /// + /// + public static void DeleteTeamWeldingInspectionItemById(string teamWeldingInspectionItemId) + { + SGGLDB db = Funs.DB; + var q = (from x in db.JGZL_TeamWeldingInspectionItem where x.TeamWeldingInspectionItemId == teamWeldingInspectionItemId select x).FirstOrDefault(); + if (q != null) + { + db.JGZL_TeamWeldingInspectionItem.DeleteOnSubmit(q); + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除明细信息 + /// + /// + public static void DeleteTeamWeldingInspectionItem(string teamWeldingInspectionId) + { + SGGLDB db = Funs.DB; + var q = (from x in db.JGZL_TeamWeldingInspectionItem where x.TeamWeldingInspectionId == teamWeldingInspectionId select x).ToList(); + if (q != null) + { + db.JGZL_TeamWeldingInspectionItem.DeleteAllOnSubmit(q); + db.SubmitChanges(); + } + } + } +} diff --git a/HJGL_DS/BLL/JGZL/TeamWeldingInspectionService.cs b/HJGL_DS/BLL/JGZL/TeamWeldingInspectionService.cs new file mode 100644 index 0000000..b390c25 --- /dev/null +++ b/HJGL_DS/BLL/JGZL/TeamWeldingInspectionService.cs @@ -0,0 +1,75 @@ +using Model; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.Caching.Hosting; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + /// + /// 支管连接焊接接头、角焊接头组对焊接检查记录主表 + /// + public class TeamWeldingInspectionService + { + /// + /// 根据主键获取支管连接焊接接头、角焊接头组对焊接检查记录主表 + /// + /// + /// + public static Model.JGZL_TeamWeldingInspection GetTeamWeldingInspectionById(string teamWeldingInspectionId) + { + return Funs.DB.JGZL_TeamWeldingInspection.FirstOrDefault(e => e.TeamWeldingInspectionId == teamWeldingInspectionId); + } + + /// + /// 添加 + /// + /// + public static void AddTeamWeldingInspection(Model.JGZL_TeamWeldingInspection teamWeldingInspection) + { + SGGLDB db = Funs.DB; + Model.JGZL_TeamWeldingInspection newTeamWeldingInspection = new Model.JGZL_TeamWeldingInspection(); + newTeamWeldingInspection.TeamWeldingInspectionId = teamWeldingInspection.TeamWeldingInspectionId; + newTeamWeldingInspection.ProjectId = teamWeldingInspection.ProjectId; + newTeamWeldingInspection.UsingUnitTeam = teamWeldingInspection.UsingUnitTeam; + newTeamWeldingInspection.InstallationArea = teamWeldingInspection.InstallationArea; + newTeamWeldingInspection.CompileMan = teamWeldingInspection.CompileMan; + newTeamWeldingInspection.CompileDate = teamWeldingInspection.CompileDate; + db.JGZL_TeamWeldingInspection.InsertOnSubmit(newTeamWeldingInspection); + db.SubmitChanges(); + } + + /// + /// 修改 + /// + /// + public static void UpdateTeamWeldingInspection(Model.JGZL_TeamWeldingInspection teamWeldingInspection) + { + SGGLDB db = Funs.DB; + Model.JGZL_TeamWeldingInspection newTeamWeldingInspection = db.JGZL_TeamWeldingInspection.FirstOrDefault(e => e.TeamWeldingInspectionId == teamWeldingInspection.TeamWeldingInspectionId); + if (newTeamWeldingInspection != null) + { + newTeamWeldingInspection.UsingUnitTeam = teamWeldingInspection.UsingUnitTeam; + newTeamWeldingInspection.InstallationArea = teamWeldingInspection.InstallationArea; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除支管连接焊接接头、角焊接头组对焊接检查记录主表 + /// + /// + public static void DeleteTeamWeldingInspectionById(string teamWeldingInspectionId) + { + SGGLDB db = Funs.DB; + Model.JGZL_TeamWeldingInspection teamWeldingInspection = db.JGZL_TeamWeldingInspection.FirstOrDefault(e => e.TeamWeldingInspectionId == teamWeldingInspectionId); + if (teamWeldingInspection != null) + { + db.JGZL_TeamWeldingInspection.DeleteOnSubmit(teamWeldingInspection); + db.SubmitChanges(); + } + } + } +} diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/支管连接焊接接头、角焊接头组对焊接检查记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/支管连接焊接接头、角焊接头组对焊接检查记录.frx new file mode 100644 index 0000000..e3a9527 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/支管连接焊接接头、角焊接头组对焊接检查记录.frx @@ -0,0 +1,312 @@ + + + using System; +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using System.Windows.Forms; +using System.Drawing; +using System.Data; +using FastReport; +using FastReport.Data; +using FastReport.Dialog; +using FastReport.Barcode; +using FastReport.Table; +using FastReport.Utils; + +namespace FastReport +{ + public class ReportScript + { + + private void Table2_ManualBuild(object sender, EventArgs e) + { + DataSourceBase rowData = Report.GetDataSource("Data"); + // init the data source + rowData.Init(); + + // print the first table row - it is a header + + // now enumerate the data source and print the table body + while (rowData.HasMoreRows) + { + // print the table body + Table2.PrintRow(0); + Table2.PrintColumns(); + + // go next data source row + rowData.Next(); + } + } + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/质量控制点检查记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/质量控制点检查记录.frx new file mode 100644 index 0000000..d102d82 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/质量控制点检查记录.frx @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj index 6b8d385..62d7d65 100644 --- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj +++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj @@ -1257,8 +1257,12 @@ + + + + @@ -6651,6 +6655,20 @@ QualifiedWelder.aspx + + QualityControlPointInspection.aspx + ASPXCodeBehind + + + QualityControlPointInspection.aspx + + + QualityControlPointInspectionEdit.aspx + ASPXCodeBehind + + + QualityControlPointInspectionEdit.aspx + SpecialEquipmentMaintenance.aspx ASPXCodeBehind @@ -6665,6 +6683,20 @@ SpecialEquipmentMaintenanceEdit.aspx + + TeamWeldingInspection.aspx + ASPXCodeBehind + + + TeamWeldingInspection.aspx + + + TeamWeldingInspectionEdit.aspx + ASPXCodeBehind + + + TeamWeldingInspectionEdit.aspx + WeldInspectionCheckRecord.aspx ASPXCodeBehind diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user index 72b6a27..a1d9585 100644 --- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user +++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user @@ -2,7 +2,7 @@ true - Debug|Any CPU + Release|Any CPU diff --git a/HJGL_DS/FineUIPro.Web/JGZL/CommencementReportEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/CommencementReportEdit.aspx.cs index 3765ba5..455ad70 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/CommencementReportEdit.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/CommencementReportEdit.aspx.cs @@ -93,6 +93,7 @@ namespace FineUIPro.Web.JGZL double SumSize = Convert.ToDouble((from x in Funs.DB.HJGL_PW_JointInfo where x.ProjectId == this.ProjectId select x.JOT_Size).Sum()); this.txtContractNumber.Text = BLL.Base_ProjectService.GetProjectCode(this.ProjectId); this.txtProjectContent.Text = BLL.Base_ProjectService.GetProjectByProjectId(this.ProjectId).ProjectName + ",管道类别为" + pipeLineClass + "级,共计安装压力管道" + isoInfos.Count.ToString() + "条,总吋径量" + SumSize.ToString(".00") + "吋,该项目已经达到开工条件。"; + this.txtConditions.Text = "1、施工方案已经审批:\r\n2、压力管道告知已经办理:\r\n3、材料已经到货并报验合格:\r\n4、人员已经进行技术安全交底:\r\n5、现场已经施工具备开工条件。"; } } } diff --git a/HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspection.aspx b/HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspection.aspx new file mode 100644 index 0000000..b54f281 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspection.aspx @@ -0,0 +1,122 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QualityControlPointInspection.aspx.cs" Inherits="FineUIPro.Web.JGZL.QualityControlPointInspection" %> + + + + + + + 质量控制点检查记录 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspection.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspection.aspx.cs new file mode 100644 index 0000000..b36a0ba --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspection.aspx.cs @@ -0,0 +1,385 @@ +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 QualityControlPointInspection :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();//加载树 + } + } + #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_QualityControlPointInspection 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(); + } + + /// + /// 查询 + /// + /// + /// + 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) + { + if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID)) + { + string initTemplatePath = ""; + string rootPath = Server.MapPath("~/"); + BLL.Common.FastReportService.ResetData(); + + var report = BLL.QualityControlPointInspectionService.GetQualityControlPointInspectionById(this.Grid1.SelectedRowID); + if (report != null) + { + Dictionary keyValuePairs = new Dictionary(); + keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); + keyValuePairs.Add("Professional", report.Professional); + keyValuePairs.Add("ConstructionStandards", report.ConstructionStandards); + keyValuePairs.Add("ControlPointName", report.ControlPointName); + keyValuePairs.Add("ConTeamGroup", report.ConTeamGroup); + keyValuePairs.Add("CheckContents", report.CheckContents); + keyValuePairs.Add("Problems", report.Problems); + keyValuePairs.Add("Conclusion", report.Conclusion); + BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); + } + initTemplatePath = "File\\Fastreport\\JGZL\\质量控制点检查记录.frx"; + if (File.Exists(rootPath + initTemplatePath)) + { + PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath))); + } + } + else + { + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; + } + } + else + { + Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); + return; + } + } + #endregion + + #region 维护 + /// + /// 增加 + /// + /// + /// + protected void btnAdd_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("QualityControlPointInspectionEdit.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_QualityControlPointInspectionMenuId, BLL.Const.BtnModify)) + { + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("QualityControlPointInspectionEdit.aspx?qualityControlPointInspectionId={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_QualityControlPointInspectionMenuId, BLL.Const.BtnModify)) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; + } + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("QualityControlPointInspectionEdit.aspx?qualityControlPointInspectionId={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_QualityControlPointInspectionMenuId, 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.QualityControlPointInspectionService.DeleteQualityControlPointInspectionById(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/QualityControlPointInspection.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspection.aspx.designer.cs new file mode 100644 index 0000000..ee3ef53 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspection.aspx.designer.cs @@ -0,0 +1,206 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.JGZL +{ + + + public partial class QualityControlPointInspection + { + + /// + /// 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/QualityControlPointInspectionEdit.aspx b/HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspectionEdit.aspx new file mode 100644 index 0000000..d759757 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspectionEdit.aspx @@ -0,0 +1,58 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QualityControlPointInspectionEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.QualityControlPointInspectionEdit" %> + + + + + + + 编辑质量控制点检查记录 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspectionEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspectionEdit.aspx.cs new file mode 100644 index 0000000..56f2b4b --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspectionEdit.aspx.cs @@ -0,0 +1,123 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.JGZL +{ + public partial class QualityControlPointInspectionEdit : PageBase + { + #region 定义项 + /// + /// 主键 + /// + private string QualityControlPointInspectionId + { + get + { + return (string)ViewState["QualityControlPointInspectionId"]; + } + set + { + ViewState["QualityControlPointInspectionId"] = 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.QualityControlPointInspectionId = Request.Params["qualityControlPointInspectionId"]; + if (!string.IsNullOrEmpty(this.QualityControlPointInspectionId)) + { + var report = BLL.QualityControlPointInspectionService.GetQualityControlPointInspectionById(this.QualityControlPointInspectionId); + if (report != null) + { + this.txtProfessional.Text = report.Professional; + this.txtConstructionStandards.Text = report.ConstructionStandards; + this.txtControlPointName.Text = report.ControlPointName; + this.txtConTeamGroup.Text = report.ConTeamGroup; + this.txtCheckContents.Text = report.CheckContents; + this.txtProblems.Text = report.Problems; + this.txtConclusion.Text = report.Conclusion; + } + } + else + { + this.txtProfessional.Text = "管道安装工程"; + this.txtConstructionStandards.Text = "SH/T 3501/2011《石油化工有毒、可燃介质钢制管道工程施工及验收规范》"; + } + } + } + #endregion + + #region 提交按钮 + /// + /// 提交按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_QualityControlPointInspectionMenuId, Const.BtnSave)) + { + Model.JGZL_QualityControlPointInspection newReport = new Model.JGZL_QualityControlPointInspection(); + newReport.Professional = this.txtProfessional.Text.Trim(); + newReport.ConstructionStandards = this.txtConstructionStandards.Text.Trim(); + newReport.ControlPointName = this.txtControlPointName.Text.Trim(); + newReport.ConTeamGroup = this.txtConTeamGroup.Text.Trim(); + newReport.CheckContents = this.txtCheckContents.Text; + newReport.Problems = txtProblems.Text; + newReport.Conclusion = this.txtConclusion.Text; + if (!string.IsNullOrEmpty(this.QualityControlPointInspectionId)) + { + newReport.QualityControlPointInspectionId = this.QualityControlPointInspectionId; + BLL.QualityControlPointInspectionService.UpdateQualityControlPointInspection(newReport); + } + else + { + newReport.ProjectId = this.ProjectId; + newReport.CompileMan = this.CurrUser.UserId; + newReport.CompileDate = DateTime.Now; + newReport.QualityControlPointInspectionId = SQLHelper.GetNewID(typeof(Model.JGZL_QualityControlPointInspection)); + this.QualityControlPointInspectionId = newReport.QualityControlPointInspectionId; + BLL.QualityControlPointInspectionService.AddQualityControlPointInspection(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/QualityControlPointInspectionEdit.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspectionEdit.aspx.designer.cs new file mode 100644 index 0000000..94dc200 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspectionEdit.aspx.designer.cs @@ -0,0 +1,134 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.JGZL +{ + + + public partial class QualityControlPointInspectionEdit + { + + /// + /// 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; + + /// + /// txtProfessional 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtProfessional; + + /// + /// txtConstructionStandards 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtConstructionStandards; + + /// + /// txtControlPointName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtControlPointName; + + /// + /// txtConTeamGroup 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtConTeamGroup; + + /// + /// txtCheckContents 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtCheckContents; + + /// + /// txtProblems 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtProblems; + + /// + /// txtConclusion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtConclusion; + } +} diff --git a/HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspection.aspx b/HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspection.aspx new file mode 100644 index 0000000..e70e7bc --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspection.aspx @@ -0,0 +1,132 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TeamWeldingInspection.aspx.cs" Inherits="FineUIPro.Web.JGZL.TeamWeldingInspection" %> + + + + + + + 支管连接焊接接头、角焊接头组对焊接检查记录 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspection.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspection.aspx.cs new file mode 100644 index 0000000..a8cfaef --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspection.aspx.cs @@ -0,0 +1,544 @@ +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; +using System.Text; + +namespace FineUIPro.Web.JGZL +{ + public partial class TeamWeldingInspection : 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); + + Funs.FineUIPleaseSelect(this.drpUsingUnitTeam); + Funs.FineUIPleaseSelect(this.drpInstallationArea); + + this.InitTreeMenu();//加载树 + } + } + #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.drpUsingUnitTeam.Items.Clear(); + this.drpUsingUnitTeam.DataTextField = "UsingUnitTeam"; + this.drpUsingUnitTeam.DataValueField = "UsingUnitTeam"; + this.drpUsingUnitTeam.DataSource = (from x in Funs.DB.JGZL_TeamWeldingInspection + where x.ProjectId == this.tvControlItem.SelectedNodeID + select x.UsingUnitTeam).Distinct().ToList(); + this.drpUsingUnitTeam.DataBind(); + Funs.FineUIPleaseSelect(this.drpUsingUnitTeam); + this.drpUsingUnitTeam.SelectedIndex = 0; + + this.drpInstallationArea.Items.Clear(); + this.drpInstallationArea.DataTextField = ""; + this.drpInstallationArea.DataValueField = ""; + this.drpInstallationArea.DataSource= (from x in Funs.DB.JGZL_TeamWeldingInspection + where x.ProjectId == this.tvControlItem.SelectedNodeID + select x.InstallationArea).Distinct().ToList(); + this.drpInstallationArea.DataBind(); + Funs.FineUIPleaseSelect(this.drpInstallationArea); + + this.BindGrid(); + } + } + #endregion + + #region 数据绑定 + /// + /// 数据绑定 + /// + private void BindGrid() + { + //string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1"); + string strSql = @"select i.TeamWeldingInspectionItemId, + i.TeamWeldingInspectionId, + i.CheckDate, + t.UsingUnitTeam, + t.InstallationArea, + i.PipelineNo, + i.WeldingJointNo, + iso.ISO_IsoNo, + joint.JOT_JointNo, + t.ProjectId + from JGZL_TeamWeldingInspectionItem i + left join JGZL_TeamWeldingInspection t on t.TeamWeldingInspectionId = i.TeamWeldingInspectionId + left join HJGL_PW_IsoInfo iso on iso.ISO_ID = i.PipelineNo + left join HJGL_PW_JointInfo joint on joint.JOT_ID= i.WeldingJointNo where 1=1"; + List listStr = new List(); + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + strSql += " AND t.ProjectId = @ProjectId"; + listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID)); + } + //else + //{ + // strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 "; + // listStr.Add(new SqlParameter("@ProjectId", projectIds)); + //} + if (this.drpUsingUnitTeam.SelectedValue!=BLL.Const._Null&&!string.IsNullOrEmpty(this.drpUsingUnitTeam.SelectedValue)) + { + strSql += " AND t.UsingUnitTeam = @UsingUnitTeam"; + listStr.Add(new SqlParameter("@UsingUnitTeam", this.drpUsingUnitTeam.SelectedValue)); + } + if (this.drpInstallationArea.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpInstallationArea.SelectedValue)) + { + strSql += " AND t.InstallationArea = @InstallationArea"; + listStr.Add(new SqlParameter("@InstallationArea", this.drpInstallationArea.SelectedValue)); + } + if (!string.IsNullOrEmpty(this.txtCheckDate.Text)) + { + strSql += " AND i.CheckDate = @checkDate"; + listStr.Add(new SqlParameter("@checkDate", Funs.GetNewDateTime(this.txtCheckDate.Text))); + } + 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(); + } + + /// + /// 查询 + /// + /// + /// + 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) + { + if (string.IsNullOrEmpty(this.drpUsingUnitTeam.SelectedText) || this.drpUsingUnitTeam.SelectedValue == BLL.Const._Null) + { + Alert.ShowInTop("请选择使用单位/班组!", MessageBoxIcon.Warning); + return; + } + if (string.IsNullOrEmpty(this.drpInstallationArea.SelectedText) || this.drpInstallationArea.SelectedValue == BLL.Const._Null) + { + Alert.ShowInTop("请选择装置名称/施工区域!", MessageBoxIcon.Warning); + return; + } + string initTemplatePath = ""; + string rootPath = Server.MapPath("~/"); + BLL.Common.FastReportService.ResetData(); + + string strSql = @"select i.TeamWeldingInspectionItemId, + i.TeamWeldingInspectionId, + i.CheckDate, + t.UsingUnitTeam, + t.InstallationArea, + i.PipelineNo, + i.WeldingJointNo, + iso.ISO_IsoNo, + joint.JOT_JointNo, + t.ProjectId, + i.Material, + (case when i.InstallationMethod='安放式' then '√' else '' end) as InstallationMethod, + (case when i.InstallationMethod='插入式' then '√' else '' end) as InstallationMethod2, + i.WeldingWire, + i.WeldingRod, + i.TeamGap, + i.TeamPlumber, + i.TeamWelder, + i.TeamInspector, + i.GTAWWelder, + i.GTAWInspector, + i.SMAWWelder, + i.VTInspector + from JGZL_TeamWeldingInspectionItem i + left join JGZL_TeamWeldingInspection t on t.TeamWeldingInspectionId = i.TeamWeldingInspectionId + left join HJGL_PW_IsoInfo iso on iso.ISO_ID = i.PipelineNo + left join HJGL_PW_JointInfo joint on joint.JOT_ID= i.WeldingJointNo where t.ProjectId=@ProjectId and t.UsingUnitTeam=@usingUnitTeam and t.InstallationArea=@installationArea "; + + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", projectId)); + listStr.Add(new SqlParameter("@usingUnitTeam", this.drpUsingUnitTeam.SelectedValue)); + listStr.Add(new SqlParameter("@installationArea", this.drpInstallationArea.SelectedValue)); + if (!string.IsNullOrEmpty(this.txtCheckDate.Text)) + { + strSql += " and i.CheckDate=@checkDate"; + listStr.Add(new SqlParameter("@checkDate", Funs.GetNewDateTime(this.txtCheckDate.Text.Trim()))); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + DataTable dt = new DataTable(); + dt.TableName = "Data"; + dt.Columns.Add("Num"); + dt.Columns.Add("CheckDate"); + dt.Columns.Add("ISO_IsoNo"); + dt.Columns.Add("JOT_JointNo"); + dt.Columns.Add("Material"); + dt.Columns.Add("InstallationMethod"); + dt.Columns.Add("InstallationMethod2"); + dt.Columns.Add("WeldingWire"); + dt.Columns.Add("WeldingRod"); + dt.Columns.Add("TeamGap"); + dt.Columns.Add("TeamPlumber"); + dt.Columns.Add("TeamWelder"); + dt.Columns.Add("TeamInspector"); + dt.Columns.Add("GTAWWelder"); + dt.Columns.Add("GTAWInspector"); + dt.Columns.Add("SMAWWelder"); + dt.Columns.Add("VTInspector"); + + DataView dv = tb.DefaultView;//获取表视图 + dv.Sort = "CheckDate ASC";//按照ID倒序排序 + tb = dv.ToTable();//转为表 + DataRow[] rows = tb.DefaultView.ToTable().Select(); + int i = 0; + foreach (var row in rows) + { + var newRow = dt.NewRow(); + newRow["Num"] = (i + 1).ToString(); + string CheckDate = string.Format("{0:yyyy-MM-dd}", row["CheckDate"]); + newRow["CheckDate"] = CheckDate; + newRow["ISO_IsoNo"] = row["ISO_IsoNo"].ToString(); + newRow["JOT_JointNo"] = row["JOT_JointNo"].ToString(); + newRow["Material"] = row["Material"].ToString(); + newRow["InstallationMethod"] = row["InstallationMethod"].ToString(); + newRow["InstallationMethod2"] = row["InstallationMethod2"].ToString(); + newRow["WeldingWire"] = row["WeldingWire"].ToString(); + newRow["WeldingRod"] = row["WeldingRod"].ToString(); + newRow["TeamGap"] = row["TeamGap"].ToString(); + newRow["TeamPlumber"] = row["TeamPlumber"].ToString(); + newRow["TeamWelder"] = row["TeamWelder"].ToString(); + newRow["TeamInspector"] = row["TeamInspector"].ToString(); + newRow["GTAWWelder"] = row["GTAWWelder"].ToString(); + newRow["GTAWInspector"] = row["GTAWInspector"].ToString(); + newRow["SMAWWelder"] = row["SMAWWelder"].ToString(); + newRow["VTInspector"] = row["VTInspector"].ToString(); + dt.Rows.Add(newRow); + i++; + } + BLL.Common.FastReportService.AddFastreportTable(dt); + + Dictionary keyValuePairs = new Dictionary(); + keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); + keyValuePairs.Add("ProjectCode", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectCode); + keyValuePairs.Add("UsingUnitTeam", this.drpUsingUnitTeam.SelectedText); + keyValuePairs.Add("InstallationArea", this.drpInstallationArea.SelectedText); + 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("TeamWeldingInspectionEdit.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_TeamWeldingInspectionMenuId, BLL.Const.BtnModify)) + { + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("TeamWeldingInspectionEdit.aspx?teamWeldingInspectionItemId={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_TeamWeldingInspectionMenuId, BLL.Const.BtnModify)) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; + } + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("TeamWeldingInspectionEdit.aspx?teamWeldingInspectionItemId={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_TeamWeldingInspectionMenuId, 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(); + var item = BLL.TeamWeldingInspectionItemService.GetTeamWeldingInspectionItemById(rowID); + if (item != null) + { + if (judgementDelete(rowID, isShow)) + { + string id = item.TeamWeldingInspectionId; + isDelete = true; + BLL.TeamWeldingInspectionItemService.DeleteTeamWeldingInspectionItemById(rowID); + var lists = BLL.TeamWeldingInspectionItemService.GetTeamWeldingInspectionItemList(id); + if (lists.Count == 0) + { + BLL.TeamWeldingInspectionService.DeleteTeamWeldingInspectionById(id); + } + 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 + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void drpUsingUnitTeam_SelectedIndexChanged(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + } +} \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspection.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspection.aspx.designer.cs new file mode 100644 index 0000000..b487b31 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspection.aspx.designer.cs @@ -0,0 +1,251 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.JGZL +{ + + + public partial class TeamWeldingInspection + { + + /// + /// 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; + + /// + /// Toolbar3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar3; + + /// + /// drpUsingUnitTeam 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUsingUnitTeam; + + /// + /// drpInstallationArea 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpInstallationArea; + + /// + /// txtCheckDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtCheckDate; + + /// + /// ToolbarFill2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill2; + + /// + /// 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/TeamWeldingInspectionEdit.aspx b/HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspectionEdit.aspx new file mode 100644 index 0000000..b434ed7 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspectionEdit.aspx @@ -0,0 +1,88 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TeamWeldingInspectionEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.TeamWeldingInspectionEdit" %> + + + + + + + 编辑支管连接焊接接头、角焊接头组对焊接检查记录 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspectionEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspectionEdit.aspx.cs new file mode 100644 index 0000000..61ebd3d --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspectionEdit.aspx.cs @@ -0,0 +1,202 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.JGZL +{ + public partial class TeamWeldingInspectionEdit : PageBase + { + #region 定义项 + /// + /// 主键 + /// + private string TeamWeldingInspectionItemId + { + get + { + return (string)ViewState["TeamWeldingInspectionItemId"]; + } + set + { + ViewState["TeamWeldingInspectionItemId"] = 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.TeamWeldingInspectionItemId = Request.Params["teamWeldingInspectionItemId"]; + if (!string.IsNullOrEmpty(this.TeamWeldingInspectionItemId)) + { + var item = BLL.TeamWeldingInspectionItemService.GetTeamWeldingInspectionItemById(this.TeamWeldingInspectionItemId); + if (item != null) + { + var report = BLL.TeamWeldingInspectionService.GetTeamWeldingInspectionById(item.TeamWeldingInspectionId); + if (report != null) + { + this.ProjectId = report.ProjectId; + this.drpPipeline.DataTextField = "ISO_IsoNo"; + this.drpPipeline.DataValueField = "ISO_ID"; + this.drpPipeline.DataSource = (from x in Funs.DB.HJGL_PW_IsoInfo where x.ProjectId == this.ProjectId orderby x.ISO_IsoNo select x).ToList(); + this.drpPipeline.DataBind(); + Funs.FineUIPleaseSelect(this.drpPipeline); + + this.txtUsingUnitTeam.Text = report.UsingUnitTeam; + this.txtInstallationArea.Text = report.InstallationArea; + } + txtCheckDate.Text = item.CheckDate.HasValue ? string.Format("{0:yyyy-MM-dd}", item.CheckDate) : ""; + txtMaterial.Text = item.Material; + if (!string.IsNullOrEmpty(item.PipelineNo)) + { + this.drpPipeline.SelectedValue = item.PipelineNo; + this.drpWeldingJoint.DataTextField = "JOT_JointNo"; + this.drpWeldingJoint.DataValueField = "JOT_ID"; + this.drpWeldingJoint.DataSource = (from x in Funs.DB.HJGL_PW_JointInfo where x.ISO_ID == this.drpPipeline.SelectedValue select x).ToList().OrderBy(x=>x.Sort1).OrderBy(x => x.Sort2).OrderBy(x => x.Sort3).OrderBy(x => x.Sort4).OrderBy(x => x.Sort5); + this.drpWeldingJoint.DataBind(); + Funs.FineUIPleaseSelect(this.drpWeldingJoint); + } + if (!string.IsNullOrEmpty(item.WeldingJointNo)) + { + this.drpWeldingJoint.SelectedValue = item.WeldingJointNo; + } + rblInstallationMethod.SelectedValue = item.InstallationMethod; + txtWeldingWire.Text = item.WeldingWire; + txtWeldingRod.Text = item.WeldingRod; + txtTeamGap.Text = item.TeamGap; + txtTeamPlumber.Text = item.TeamPlumber; + txtTeamWelder.Text = item.TeamWelder; + txtTeamInspector.Text = item.TeamInspector; + txtGTAWWelder.Text = item.GTAWWelder; + txtGTAWInspector.Text = item.GTAWInspector; + txtSMAWWelder.Text = item.SMAWWelder; + txtVTInspector.Text = item.VTInspector; + } + } + else + { + this.drpPipeline.DataTextField = "ISO_IsoNo"; + this.drpPipeline.DataValueField = "ISO_ID"; + this.drpPipeline.DataSource = (from x in Funs.DB.HJGL_PW_IsoInfo where x.ProjectId == this.ProjectId orderby x.ISO_IsoNo select x).ToList(); + this.drpPipeline.DataBind(); + Funs.FineUIPleaseSelect(this.drpPipeline); + Funs.FineUIPleaseSelect(this.drpWeldingJoint); + } + } + } + #endregion + + #region 提交按钮 + /// + /// 提交按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_TeamWeldingInspectionMenuId, Const.BtnSave)) + { + if (this.drpPipeline.SelectedValue==BLL.Const._Null||string.IsNullOrEmpty(this.drpPipeline.SelectedValue)) + { + Alert.ShowInTop("请选择管道编号!", MessageBoxIcon.Warning); + return; + } + if (this.drpWeldingJoint.SelectedValue == BLL.Const._Null || string.IsNullOrEmpty(this.drpWeldingJoint.SelectedValue)) + { + Alert.ShowInTop("请选择焊口编号!", MessageBoxIcon.Warning); + return; + } + Model.JGZL_TeamWeldingInspection newReport = new Model.JGZL_TeamWeldingInspection(); + newReport.ProjectId = this.ProjectId; + newReport.UsingUnitTeam = this.txtUsingUnitTeam.Text.Trim(); + newReport.InstallationArea = this.txtInstallationArea.Text.Trim(); + newReport.CompileMan = this.CurrUser.UserId; + newReport.CompileDate = DateTime.Now; + + Model.JGZL_TeamWeldingInspectionItem newItem = new Model.JGZL_TeamWeldingInspectionItem(); + newItem.CheckDate = Funs.GetNewDateTime(this.txtCheckDate.Text); + newItem.Material = this.txtMaterial.Text; + newItem.PipelineNo = this.drpPipeline.SelectedValue; + newItem.WeldingJointNo = this.drpWeldingJoint.SelectedValue; + newItem.InstallationMethod = this.rblInstallationMethod.SelectedValue; + newItem.WeldingWire = this.txtWeldingWire.Text.Trim(); + newItem.WeldingRod = this.txtWeldingRod.Text.Trim(); + newItem.TeamGap = this.txtTeamGap.Text.Trim(); + newItem.TeamPlumber=this.txtTeamPlumber.Text.Trim(); + newItem.TeamWelder = this.txtTeamWelder.Text.Trim(); + newItem.TeamInspector = this.txtTeamInspector.Text.Trim(); + newItem.GTAWWelder =this.txtGTAWWelder.Text.Trim(); + newItem.GTAWInspector=this.txtGTAWInspector.Text.Trim(); + newItem.SMAWWelder=this.txtSMAWWelder.Text.Trim(); + newItem.VTInspector = this.txtVTInspector.Text.Trim(); + + if (!string.IsNullOrEmpty(this.TeamWeldingInspectionItemId)) + { + newItem.TeamWeldingInspectionItemId = this.TeamWeldingInspectionItemId; + var item = BLL.TeamWeldingInspectionItemService.GetTeamWeldingInspectionItemById(this.TeamWeldingInspectionItemId); + newReport.TeamWeldingInspectionId = item.TeamWeldingInspectionId; + BLL.TeamWeldingInspectionService.UpdateTeamWeldingInspection(newReport); + BLL.TeamWeldingInspectionItemService.UpdateTeamWeldingInspectionItem(newItem); + } + else + { + + newReport.TeamWeldingInspectionId = SQLHelper.GetNewID(typeof(Model.JGZL_TeamWeldingInspection)); + BLL.TeamWeldingInspectionService.AddTeamWeldingInspection(newReport); + newItem.TeamWeldingInspectionId = newReport.TeamWeldingInspectionId; + newItem.TeamWeldingInspectionItemId = SQLHelper.GetNewID(typeof(Model.JGZL_TeamWeldingInspectionItem)); + BLL.TeamWeldingInspectionItemService.AddTeamWeldingInspectionItem(newItem); + } + ShowNotify("保存成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + #endregion + + protected void drpPipeline_SelectedIndexChanged(object sender, EventArgs e) + { + this.drpWeldingJoint.Items.Clear(); + if (this.drpPipeline.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpPipeline.SelectedValue)) + { + this.drpWeldingJoint.DataTextField = "JOT_JointNo"; + this.drpWeldingJoint.DataValueField = "JOT_ID"; + this.drpWeldingJoint.DataSource = (from x in Funs.DB.HJGL_PW_JointInfo where x.ISO_ID == this.drpPipeline.SelectedValue select x).ToList().OrderBy(x => x.Sort1).OrderBy(x => x.Sort2).OrderBy(x => x.Sort3).OrderBy(x => x.Sort4).OrderBy(x => x.Sort5); + this.drpWeldingJoint.DataBind(); + } + Funs.FineUIPleaseSelect(this.drpWeldingJoint); + this.drpWeldingJoint.SelectedIndex = 0; + } + } +} \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspectionEdit.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspectionEdit.aspx.designer.cs new file mode 100644 index 0000000..4f658a3 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/TeamWeldingInspectionEdit.aspx.designer.cs @@ -0,0 +1,233 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.JGZL +{ + + + public partial class TeamWeldingInspectionEdit + { + + /// + /// 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; + + /// + /// txtUsingUnitTeam 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtUsingUnitTeam; + + /// + /// txtInstallationArea 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtInstallationArea; + + /// + /// txtCheckDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtCheckDate; + + /// + /// txtMaterial 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtMaterial; + + /// + /// drpPipeline 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpPipeline; + + /// + /// drpWeldingJoint 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWeldingJoint; + + /// + /// rblInstallationMethod 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList rblInstallationMethod; + + /// + /// txtWeldingWire 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWeldingWire; + + /// + /// txtWeldingRod 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWeldingRod; + + /// + /// txtTeamGap 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTeamGap; + + /// + /// txtTeamPlumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTeamPlumber; + + /// + /// txtTeamWelder 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTeamWelder; + + /// + /// txtTeamInspector 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTeamInspector; + + /// + /// txtGTAWWelder 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtGTAWWelder; + + /// + /// txtGTAWInspector 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtGTAWInspector; + + /// + /// txtSMAWWelder 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSMAWWelder; + + /// + /// txtVTInspector 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtVTInspector; + + /// + /// hdId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdId; + } +} diff --git a/HJGL_DS/FineUIPro.Web/Web.config b/HJGL_DS/FineUIPro.Web/Web.config index 6ef1abe..30834b7 100644 --- a/HJGL_DS/FineUIPro.Web/Web.config +++ b/HJGL_DS/FineUIPro.Web/Web.config @@ -11,7 +11,7 @@ - + @@ -67,7 +67,7 @@ - + diff --git a/HJGL_DS/Model/Model.cs b/HJGL_DS/Model/Model.cs index 8ad3ddc..45196eb 100644 --- a/HJGL_DS/Model/Model.cs +++ b/HJGL_DS/Model/Model.cs @@ -392,9 +392,18 @@ 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_QualityControlPointInspection(JGZL_QualityControlPointInspection instance); + partial void UpdateJGZL_QualityControlPointInspection(JGZL_QualityControlPointInspection instance); + partial void DeleteJGZL_QualityControlPointInspection(JGZL_QualityControlPointInspection instance); partial void InsertJGZL_SpecialEquipmentMaintenance(JGZL_SpecialEquipmentMaintenance instance); partial void UpdateJGZL_SpecialEquipmentMaintenance(JGZL_SpecialEquipmentMaintenance instance); partial void DeleteJGZL_SpecialEquipmentMaintenance(JGZL_SpecialEquipmentMaintenance instance); + partial void InsertJGZL_TeamWeldingInspection(JGZL_TeamWeldingInspection instance); + partial void UpdateJGZL_TeamWeldingInspection(JGZL_TeamWeldingInspection instance); + partial void DeleteJGZL_TeamWeldingInspection(JGZL_TeamWeldingInspection instance); + partial void InsertJGZL_TeamWeldingInspectionItem(JGZL_TeamWeldingInspectionItem instance); + partial void UpdateJGZL_TeamWeldingInspectionItem(JGZL_TeamWeldingInspectionItem instance); + partial void DeleteJGZL_TeamWeldingInspectionItem(JGZL_TeamWeldingInspectionItem instance); partial void InsertOAM_UesrQualified(OAM_UesrQualified instance); partial void UpdateOAM_UesrQualified(OAM_UesrQualified instance); partial void DeleteOAM_UesrQualified(OAM_UesrQualified instance); @@ -1807,6 +1816,14 @@ namespace Model } } + public System.Data.Linq.Table JGZL_QualityControlPointInspection + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table JGZL_SpecialEquipmentMaintenance { get @@ -1815,6 +1832,22 @@ namespace Model } } + public System.Data.Linq.Table JGZL_TeamWeldingInspection + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table JGZL_TeamWeldingInspectionItem + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table OAM_UesrQualified { get @@ -4418,8 +4451,12 @@ namespace Model private EntitySet _JGZL_NDTPerson; + private EntitySet _JGZL_QualityControlPointInspection; + private EntitySet _JGZL_SpecialEquipmentMaintenance; + private EntitySet _JGZL_TeamWeldingInspection; + private EntitySet _Project_Installation; private EntitySet _Project_RoleButtonPower; @@ -4551,7 +4588,9 @@ namespace Model this._JGZL_HandoverCertificate = new EntitySet(new Action(this.attach_JGZL_HandoverCertificate), new Action(this.detach_JGZL_HandoverCertificate)); 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_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)); this._Project_Installation = new EntitySet(new Action(this.attach_Project_Installation), new Action(this.detach_Project_Installation)); this._Project_RoleButtonPower = new EntitySet(new Action(this.attach_Project_RoleButtonPower), new Action(this.detach_Project_RoleButtonPower)); this._Project_RolePower = new EntitySet(new Action(this.attach_Project_RolePower), new Action(this.detach_Project_RolePower)); @@ -5710,6 +5749,19 @@ namespace Model } } + [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 + { + get + { + return this._JGZL_QualityControlPointInspection; + } + set + { + this._JGZL_QualityControlPointInspection.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_SpecialEquipmentMaintenance_Base_Project", Storage="_JGZL_SpecialEquipmentMaintenance", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] public EntitySet JGZL_SpecialEquipmentMaintenance { @@ -5723,6 +5775,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_TeamWeldingInspection_Base_Project", Storage="_JGZL_TeamWeldingInspection", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet JGZL_TeamWeldingInspection + { + get + { + return this._JGZL_TeamWeldingInspection; + } + set + { + this._JGZL_TeamWeldingInspection.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Project_Installation_Base_Project", Storage="_Project_Installation", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] public EntitySet Project_Installation { @@ -6465,6 +6530,18 @@ namespace Model entity.Base_Project = null; } + private void attach_JGZL_QualityControlPointInspection(JGZL_QualityControlPointInspection entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_JGZL_QualityControlPointInspection(JGZL_QualityControlPointInspection entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + private void attach_JGZL_SpecialEquipmentMaintenance(JGZL_SpecialEquipmentMaintenance entity) { this.SendPropertyChanging(); @@ -6477,6 +6554,18 @@ namespace Model entity.Base_Project = null; } + private void attach_JGZL_TeamWeldingInspection(JGZL_TeamWeldingInspection entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_JGZL_TeamWeldingInspection(JGZL_TeamWeldingInspection entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + private void attach_Project_Installation(Project_Installation entity) { this.SendPropertyChanging(); @@ -82441,6 +82530,390 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_QualityControlPointInspection")] + public partial class JGZL_QualityControlPointInspection : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _QualityControlPointInspectionId; + + private string _ProjectId; + + private string _Professional; + + private string _ConstructionStandards; + + private string _ControlPointName; + + private string _ConTeamGroup; + + private string _CheckContents; + + private string _Problems; + + private string _Conclusion; + + private string _CompileMan; + + private System.Nullable _CompileDate; + + 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 OnQualityControlPointInspectionIdChanging(string value); + partial void OnQualityControlPointInspectionIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnProfessionalChanging(string value); + partial void OnProfessionalChanged(); + partial void OnConstructionStandardsChanging(string value); + partial void OnConstructionStandardsChanged(); + partial void OnControlPointNameChanging(string value); + partial void OnControlPointNameChanged(); + partial void OnConTeamGroupChanging(string value); + partial void OnConTeamGroupChanged(); + partial void OnCheckContentsChanging(string value); + partial void OnCheckContentsChanged(); + partial void OnProblemsChanging(string value); + partial void OnProblemsChanged(); + partial void OnConclusionChanging(string value); + partial void OnConclusionChanged(); + partial void OnCompileManChanging(string value); + partial void OnCompileManChanged(); + partial void OnCompileDateChanging(System.Nullable value); + partial void OnCompileDateChanged(); + #endregion + + public JGZL_QualityControlPointInspection() + { + this._Base_Project = default(EntityRef); + this._Sys_User = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QualityControlPointInspectionId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string QualityControlPointInspectionId + { + get + { + return this._QualityControlPointInspectionId; + } + set + { + if ((this._QualityControlPointInspectionId != value)) + { + this.OnQualityControlPointInspectionIdChanging(value); + this.SendPropertyChanging(); + this._QualityControlPointInspectionId = value; + this.SendPropertyChanged("QualityControlPointInspectionId"); + this.OnQualityControlPointInspectionIdChanged(); + } + } + } + + [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="_Professional", DbType="NVarChar(50)")] + public string Professional + { + get + { + return this._Professional; + } + set + { + if ((this._Professional != value)) + { + this.OnProfessionalChanging(value); + this.SendPropertyChanging(); + this._Professional = value; + this.SendPropertyChanged("Professional"); + this.OnProfessionalChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionStandards", DbType="NVarChar(100)")] + public string ConstructionStandards + { + get + { + return this._ConstructionStandards; + } + set + { + if ((this._ConstructionStandards != value)) + { + this.OnConstructionStandardsChanging(value); + this.SendPropertyChanging(); + this._ConstructionStandards = value; + this.SendPropertyChanged("ConstructionStandards"); + this.OnConstructionStandardsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ControlPointName", DbType="NVarChar(50)")] + public string ControlPointName + { + get + { + return this._ControlPointName; + } + set + { + if ((this._ControlPointName != value)) + { + this.OnControlPointNameChanging(value); + this.SendPropertyChanging(); + this._ControlPointName = value; + this.SendPropertyChanged("ControlPointName"); + this.OnControlPointNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConTeamGroup", DbType="NVarChar(50)")] + public string ConTeamGroup + { + get + { + return this._ConTeamGroup; + } + set + { + if ((this._ConTeamGroup != value)) + { + this.OnConTeamGroupChanging(value); + this.SendPropertyChanging(); + this._ConTeamGroup = value; + this.SendPropertyChanged("ConTeamGroup"); + this.OnConTeamGroupChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckContents", DbType="NVarChar(2000)")] + public string CheckContents + { + get + { + return this._CheckContents; + } + set + { + if ((this._CheckContents != value)) + { + this.OnCheckContentsChanging(value); + this.SendPropertyChanging(); + this._CheckContents = value; + this.SendPropertyChanged("CheckContents"); + this.OnCheckContentsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Problems", DbType="NVarChar(2000)")] + public string Problems + { + get + { + return this._Problems; + } + set + { + if ((this._Problems != value)) + { + this.OnProblemsChanging(value); + this.SendPropertyChanging(); + this._Problems = value; + this.SendPropertyChanged("Problems"); + this.OnProblemsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Conclusion", DbType="NVarChar(2000)")] + public string Conclusion + { + get + { + return this._Conclusion; + } + set + { + if ((this._Conclusion != value)) + { + this.OnConclusionChanging(value); + this.SendPropertyChanging(); + this._Conclusion = value; + this.SendPropertyChanged("Conclusion"); + this.OnConclusionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.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.AssociationAttribute(Name="FK_JGZL_QualityControlPointInspection_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_QualityControlPointInspection.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.JGZL_QualityControlPointInspection.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_QualityControlPointInspection_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_QualityControlPointInspection.Remove(this); + } + this._Sys_User.Entity = value; + if ((value != null)) + { + value.JGZL_QualityControlPointInspection.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_SpecialEquipmentMaintenance")] public partial class JGZL_SpecialEquipmentMaintenance : INotifyPropertyChanging, INotifyPropertyChanged { @@ -83233,6 +83706,785 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_TeamWeldingInspection")] + public partial class JGZL_TeamWeldingInspection : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _TeamWeldingInspectionId; + + private string _ProjectId; + + private string _UsingUnitTeam; + + private string _InstallationArea; + + private string _CompileMan; + + private System.Nullable _CompileDate; + + private EntityRef _Base_Project; + + private EntityRef _Sys_User; + + private EntitySet _JGZL_TeamWeldingInspectionItem; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnTeamWeldingInspectionIdChanging(string value); + partial void OnTeamWeldingInspectionIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnUsingUnitTeamChanging(string value); + partial void OnUsingUnitTeamChanged(); + partial void OnInstallationAreaChanging(string value); + partial void OnInstallationAreaChanged(); + partial void OnCompileManChanging(string value); + partial void OnCompileManChanged(); + partial void OnCompileDateChanging(System.Nullable value); + partial void OnCompileDateChanged(); + #endregion + + public JGZL_TeamWeldingInspection() + { + this._Base_Project = default(EntityRef); + this._Sys_User = default(EntityRef); + this._JGZL_TeamWeldingInspectionItem = new EntitySet(new Action(this.attach_JGZL_TeamWeldingInspectionItem), new Action(this.detach_JGZL_TeamWeldingInspectionItem)); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TeamWeldingInspectionId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string TeamWeldingInspectionId + { + get + { + return this._TeamWeldingInspectionId; + } + set + { + if ((this._TeamWeldingInspectionId != value)) + { + this.OnTeamWeldingInspectionIdChanging(value); + this.SendPropertyChanging(); + this._TeamWeldingInspectionId = value; + this.SendPropertyChanged("TeamWeldingInspectionId"); + this.OnTeamWeldingInspectionIdChanged(); + } + } + } + + [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="_UsingUnitTeam", DbType="NVarChar(50)")] + public string UsingUnitTeam + { + get + { + return this._UsingUnitTeam; + } + set + { + if ((this._UsingUnitTeam != value)) + { + this.OnUsingUnitTeamChanging(value); + this.SendPropertyChanging(); + this._UsingUnitTeam = value; + this.SendPropertyChanged("UsingUnitTeam"); + this.OnUsingUnitTeamChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationArea", DbType="NVarChar(50)")] + public string InstallationArea + { + get + { + return this._InstallationArea; + } + set + { + if ((this._InstallationArea != value)) + { + this.OnInstallationAreaChanging(value); + this.SendPropertyChanging(); + this._InstallationArea = value; + this.SendPropertyChanged("InstallationArea"); + this.OnInstallationAreaChanged(); + } + } + } + + [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.AssociationAttribute(Name="FK_JGZL_TeamWeldingInspection_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_TeamWeldingInspection.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.JGZL_TeamWeldingInspection.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_TeamWeldingInspection_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_TeamWeldingInspection.Remove(this); + } + this._Sys_User.Entity = value; + if ((value != null)) + { + value.JGZL_TeamWeldingInspection.Add(this); + this._CompileMan = value.UserId; + } + else + { + this._CompileMan = default(string); + } + this.SendPropertyChanged("Sys_User"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_TeamWeldingInspectionItem_JGZL_TeamWeldingInspection", Storage="_JGZL_TeamWeldingInspectionItem", ThisKey="TeamWeldingInspectionId", OtherKey="TeamWeldingInspectionId", DeleteRule="NO ACTION")] + public EntitySet JGZL_TeamWeldingInspectionItem + { + get + { + return this._JGZL_TeamWeldingInspectionItem; + } + set + { + this._JGZL_TeamWeldingInspectionItem.Assign(value); + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + private void attach_JGZL_TeamWeldingInspectionItem(JGZL_TeamWeldingInspectionItem entity) + { + this.SendPropertyChanging(); + entity.JGZL_TeamWeldingInspection = this; + } + + private void detach_JGZL_TeamWeldingInspectionItem(JGZL_TeamWeldingInspectionItem entity) + { + this.SendPropertyChanging(); + entity.JGZL_TeamWeldingInspection = null; + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_TeamWeldingInspectionItem")] + public partial class JGZL_TeamWeldingInspectionItem : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _TeamWeldingInspectionItemId; + + private string _TeamWeldingInspectionId; + + private System.Nullable _CheckDate; + + private string _Material; + + private string _PipelineNo; + + private string _WeldingJointNo; + + private string _InstallationMethod; + + private string _WeldingWire; + + private string _WeldingRod; + + private string _TeamGap; + + private string _TeamPlumber; + + private string _TeamWelder; + + private string _TeamInspector; + + private string _GTAWWelder; + + private string _GTAWInspector; + + private string _SMAWWelder; + + private string _VTInspector; + + private EntityRef _JGZL_TeamWeldingInspection; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnTeamWeldingInspectionItemIdChanging(string value); + partial void OnTeamWeldingInspectionItemIdChanged(); + partial void OnTeamWeldingInspectionIdChanging(string value); + partial void OnTeamWeldingInspectionIdChanged(); + partial void OnCheckDateChanging(System.Nullable value); + partial void OnCheckDateChanged(); + partial void OnMaterialChanging(string value); + partial void OnMaterialChanged(); + partial void OnPipelineNoChanging(string value); + partial void OnPipelineNoChanged(); + partial void OnWeldingJointNoChanging(string value); + partial void OnWeldingJointNoChanged(); + partial void OnInstallationMethodChanging(string value); + partial void OnInstallationMethodChanged(); + partial void OnWeldingWireChanging(string value); + partial void OnWeldingWireChanged(); + partial void OnWeldingRodChanging(string value); + partial void OnWeldingRodChanged(); + partial void OnTeamGapChanging(string value); + partial void OnTeamGapChanged(); + partial void OnTeamPlumberChanging(string value); + partial void OnTeamPlumberChanged(); + partial void OnTeamWelderChanging(string value); + partial void OnTeamWelderChanged(); + partial void OnTeamInspectorChanging(string value); + partial void OnTeamInspectorChanged(); + partial void OnGTAWWelderChanging(string value); + partial void OnGTAWWelderChanged(); + partial void OnGTAWInspectorChanging(string value); + partial void OnGTAWInspectorChanged(); + partial void OnSMAWWelderChanging(string value); + partial void OnSMAWWelderChanged(); + partial void OnVTInspectorChanging(string value); + partial void OnVTInspectorChanged(); + #endregion + + public JGZL_TeamWeldingInspectionItem() + { + this._JGZL_TeamWeldingInspection = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TeamWeldingInspectionItemId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string TeamWeldingInspectionItemId + { + get + { + return this._TeamWeldingInspectionItemId; + } + set + { + if ((this._TeamWeldingInspectionItemId != value)) + { + this.OnTeamWeldingInspectionItemIdChanging(value); + this.SendPropertyChanging(); + this._TeamWeldingInspectionItemId = value; + this.SendPropertyChanged("TeamWeldingInspectionItemId"); + this.OnTeamWeldingInspectionItemIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TeamWeldingInspectionId", DbType="NVarChar(50)")] + public string TeamWeldingInspectionId + { + get + { + return this._TeamWeldingInspectionId; + } + set + { + if ((this._TeamWeldingInspectionId != value)) + { + if (this._JGZL_TeamWeldingInspection.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnTeamWeldingInspectionIdChanging(value); + this.SendPropertyChanging(); + this._TeamWeldingInspectionId = value; + this.SendPropertyChanged("TeamWeldingInspectionId"); + this.OnTeamWeldingInspectionIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckDate", DbType="DateTime")] + public System.Nullable CheckDate + { + get + { + return this._CheckDate; + } + set + { + if ((this._CheckDate != value)) + { + this.OnCheckDateChanging(value); + this.SendPropertyChanging(); + this._CheckDate = value; + this.SendPropertyChanged("CheckDate"); + this.OnCheckDateChanged(); + } + } + } + + [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="_PipelineNo", DbType="NVarChar(50)")] + public string PipelineNo + { + get + { + return this._PipelineNo; + } + set + { + if ((this._PipelineNo != value)) + { + this.OnPipelineNoChanging(value); + this.SendPropertyChanging(); + this._PipelineNo = value; + this.SendPropertyChanged("PipelineNo"); + this.OnPipelineNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldingJointNo", DbType="NVarChar(50)")] + public string WeldingJointNo + { + get + { + return this._WeldingJointNo; + } + set + { + if ((this._WeldingJointNo != value)) + { + this.OnWeldingJointNoChanging(value); + this.SendPropertyChanging(); + this._WeldingJointNo = value; + this.SendPropertyChanged("WeldingJointNo"); + this.OnWeldingJointNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationMethod", DbType="NVarChar(50)")] + public string InstallationMethod + { + get + { + return this._InstallationMethod; + } + set + { + if ((this._InstallationMethod != value)) + { + this.OnInstallationMethodChanging(value); + this.SendPropertyChanging(); + this._InstallationMethod = value; + this.SendPropertyChanged("InstallationMethod"); + this.OnInstallationMethodChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldingWire", DbType="NVarChar(50)")] + public string WeldingWire + { + get + { + return this._WeldingWire; + } + set + { + if ((this._WeldingWire != value)) + { + this.OnWeldingWireChanging(value); + this.SendPropertyChanging(); + this._WeldingWire = value; + this.SendPropertyChanged("WeldingWire"); + this.OnWeldingWireChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldingRod", DbType="NVarChar(50)")] + public string WeldingRod + { + get + { + return this._WeldingRod; + } + set + { + if ((this._WeldingRod != value)) + { + this.OnWeldingRodChanging(value); + this.SendPropertyChanging(); + this._WeldingRod = value; + this.SendPropertyChanged("WeldingRod"); + this.OnWeldingRodChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TeamGap", DbType="NVarChar(50)")] + public string TeamGap + { + get + { + return this._TeamGap; + } + set + { + if ((this._TeamGap != value)) + { + this.OnTeamGapChanging(value); + this.SendPropertyChanging(); + this._TeamGap = value; + this.SendPropertyChanged("TeamGap"); + this.OnTeamGapChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TeamPlumber", DbType="NVarChar(50)")] + public string TeamPlumber + { + get + { + return this._TeamPlumber; + } + set + { + if ((this._TeamPlumber != value)) + { + this.OnTeamPlumberChanging(value); + this.SendPropertyChanging(); + this._TeamPlumber = value; + this.SendPropertyChanged("TeamPlumber"); + this.OnTeamPlumberChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TeamWelder", DbType="NVarChar(50)")] + public string TeamWelder + { + get + { + return this._TeamWelder; + } + set + { + if ((this._TeamWelder != value)) + { + this.OnTeamWelderChanging(value); + this.SendPropertyChanging(); + this._TeamWelder = value; + this.SendPropertyChanged("TeamWelder"); + this.OnTeamWelderChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TeamInspector", DbType="NVarChar(50)")] + public string TeamInspector + { + get + { + return this._TeamInspector; + } + set + { + if ((this._TeamInspector != value)) + { + this.OnTeamInspectorChanging(value); + this.SendPropertyChanging(); + this._TeamInspector = value; + this.SendPropertyChanged("TeamInspector"); + this.OnTeamInspectorChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GTAWWelder", DbType="NVarChar(50)")] + public string GTAWWelder + { + get + { + return this._GTAWWelder; + } + set + { + if ((this._GTAWWelder != value)) + { + this.OnGTAWWelderChanging(value); + this.SendPropertyChanging(); + this._GTAWWelder = value; + this.SendPropertyChanged("GTAWWelder"); + this.OnGTAWWelderChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GTAWInspector", DbType="NVarChar(50)")] + public string GTAWInspector + { + get + { + return this._GTAWInspector; + } + set + { + if ((this._GTAWInspector != value)) + { + this.OnGTAWInspectorChanging(value); + this.SendPropertyChanging(); + this._GTAWInspector = value; + this.SendPropertyChanged("GTAWInspector"); + this.OnGTAWInspectorChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SMAWWelder", DbType="NVarChar(50)")] + public string SMAWWelder + { + get + { + return this._SMAWWelder; + } + set + { + if ((this._SMAWWelder != value)) + { + this.OnSMAWWelderChanging(value); + this.SendPropertyChanging(); + this._SMAWWelder = value; + this.SendPropertyChanged("SMAWWelder"); + this.OnSMAWWelderChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_VTInspector", DbType="NVarChar(50)")] + public string VTInspector + { + get + { + return this._VTInspector; + } + set + { + if ((this._VTInspector != value)) + { + this.OnVTInspectorChanging(value); + this.SendPropertyChanging(); + this._VTInspector = value; + this.SendPropertyChanged("VTInspector"); + this.OnVTInspectorChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_TeamWeldingInspectionItem_JGZL_TeamWeldingInspection", Storage="_JGZL_TeamWeldingInspection", ThisKey="TeamWeldingInspectionId", OtherKey="TeamWeldingInspectionId", IsForeignKey=true)] + public JGZL_TeamWeldingInspection JGZL_TeamWeldingInspection + { + get + { + return this._JGZL_TeamWeldingInspection.Entity; + } + set + { + JGZL_TeamWeldingInspection previousValue = this._JGZL_TeamWeldingInspection.Entity; + if (((previousValue != value) + || (this._JGZL_TeamWeldingInspection.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._JGZL_TeamWeldingInspection.Entity = null; + previousValue.JGZL_TeamWeldingInspectionItem.Remove(this); + } + this._JGZL_TeamWeldingInspection.Entity = value; + if ((value != null)) + { + value.JGZL_TeamWeldingInspectionItem.Add(this); + this._TeamWeldingInspectionId = value.TeamWeldingInspectionId; + } + else + { + this._TeamWeldingInspectionId = default(string); + } + this.SendPropertyChanged("JGZL_TeamWeldingInspection"); + } + } + } + + 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.OAM_UesrQualified")] public partial class OAM_UesrQualified : INotifyPropertyChanging, INotifyPropertyChanged { @@ -104696,8 +105948,12 @@ namespace Model private EntitySet _JGZL_NDTPerson; + private EntitySet _JGZL_QualityControlPointInspection; + private EntitySet _JGZL_SpecialEquipmentMaintenance; + private EntitySet _JGZL_TeamWeldingInspection; + private EntitySet _Project_User; private EntitySet _Project_UserButtonPower; @@ -104786,7 +106042,9 @@ namespace Model this._JGZL_HandoverCertificate = new EntitySet(new Action(this.attach_JGZL_HandoverCertificate), new Action(this.detach_JGZL_HandoverCertificate)); 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_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)); this._Project_User = new EntitySet(new Action(this.attach_Project_User), new Action(this.detach_Project_User)); this._Project_UserButtonPower = new EntitySet(new Action(this.attach_Project_UserButtonPower), new Action(this.detach_Project_UserButtonPower)); this._Project_UserPower = new EntitySet(new Action(this.attach_Project_UserPower), new Action(this.detach_Project_UserPower)); @@ -105516,6 +106774,19 @@ namespace Model } } + [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 + { + get + { + return this._JGZL_QualityControlPointInspection; + } + set + { + this._JGZL_QualityControlPointInspection.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_SpecialEquipmentMaintenance_Sys_User", Storage="_JGZL_SpecialEquipmentMaintenance", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")] public EntitySet JGZL_SpecialEquipmentMaintenance { @@ -105529,6 +106800,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_TeamWeldingInspection_Sys_User", Storage="_JGZL_TeamWeldingInspection", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")] + public EntitySet JGZL_TeamWeldingInspection + { + get + { + return this._JGZL_TeamWeldingInspection; + } + set + { + this._JGZL_TeamWeldingInspection.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Project_User_Sys_User", Storage="_Project_User", ThisKey="UserId", OtherKey="UserId", DeleteRule="NO ACTION")] public EntitySet Project_User { @@ -105980,6 +107264,18 @@ namespace Model entity.Sys_User = null; } + private void attach_JGZL_QualityControlPointInspection(JGZL_QualityControlPointInspection entity) + { + this.SendPropertyChanging(); + entity.Sys_User = this; + } + + private void detach_JGZL_QualityControlPointInspection(JGZL_QualityControlPointInspection entity) + { + this.SendPropertyChanging(); + entity.Sys_User = null; + } + private void attach_JGZL_SpecialEquipmentMaintenance(JGZL_SpecialEquipmentMaintenance entity) { this.SendPropertyChanging(); @@ -105992,6 +107288,18 @@ namespace Model entity.Sys_User = null; } + private void attach_JGZL_TeamWeldingInspection(JGZL_TeamWeldingInspection entity) + { + this.SendPropertyChanging(); + entity.Sys_User = this; + } + + private void detach_JGZL_TeamWeldingInspection(JGZL_TeamWeldingInspection entity) + { + this.SendPropertyChanging(); + entity.Sys_User = null; + } + private void attach_Project_User(Project_User entity) { this.SendPropertyChanging(); diff --git a/HJGL_DS/WebAPI/WebAPI.csproj.user b/HJGL_DS/WebAPI/WebAPI.csproj.user index a48b337..28be9c4 100644 --- a/HJGL_DS/WebAPI/WebAPI.csproj.user +++ b/HJGL_DS/WebAPI/WebAPI.csproj.user @@ -1,7 +1,7 @@  - Debug|Any CPU + Release|Any CPU FolderProfile true