diff --git a/DataBase/版本日志/HJGLDB_DS_2026-01-23_geh(交工资料).sql b/DataBase/版本日志/HJGLDB_DS_2026-01-23_geh(交工资料).sql
new file mode 100644
index 0000000..44aba4b
--- /dev/null
+++ b/DataBase/版本日志/HJGLDB_DS_2026-01-23_geh(交工资料).sql
@@ -0,0 +1,376 @@
+
+/**********˵************************************************************/
+
+--ռ¼
+IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = 'EB66D1CE-A677-40EF-A683-47C001F57445')
+BEGIN
+ INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
+ VALUES ('EB66D1CE-A677-40EF-A683-47C001F57445','ռ¼','JGZL/AnticorrosionEngineeringInspectionRecord.aspx',360,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
+END
+GO
+IF NOT EXISTS (SELECT * FROM ButtonToMenu WHERE MenuId = 'EB66D1CE-A677-40EF-A683-47C001F57445')
+BEGIN
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('3077BAFB-783E-4E89-86FC-1413E2E26BCD','EB66D1CE-A677-40EF-A683-47C001F57445','',1)
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('1B01074A-409A-4B4D-929E-876B91051FF2','EB66D1CE-A677-40EF-A683-47C001F57445','',2)
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('E4EB6616-2EE7-407D-9551-7B2285D2F630','EB66D1CE-A677-40EF-A683-47C001F57445','ɾ',3)
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('4DC14273-890D-4734-BB4E-8203FC225E9C','EB66D1CE-A677-40EF-A683-47C001F57445','',4)
+END
+GO
+
+
+
+/**********ݱ************************************************************/
+
+
+--ռ¼
+IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_AnticorrosionEngineeringInspectionRecord') AND type = N'U')
+BEGIN
+
+CREATE TABLE [dbo].[JGZL_AnticorrosionEngineeringInspectionRecord](
+ [AnticorrosionId] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [AnticorrosionCurrentStatus] [nvarchar](50) NULL,
+ [AnticorrosionPart] [nvarchar](500) NULL,
+ [AnticorrosionRequire] [nvarchar](500) NULL,
+ [InspectionConclusion] [nvarchar](50) NULL,
+ [CompileMan] [nvarchar](50) NULL,
+ [CompileDate] [datetime] NULL,
+ CONSTRAINT [PK_JGZL_AnticorrosionEngineeringInspectionRecord] PRIMARY KEY CLUSTERED
+(
+ [AnticorrosionId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+ALTER TABLE [dbo].[JGZL_AnticorrosionEngineeringInspectionRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_AnticorrosionEngineeringInspectionRecord_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+ALTER TABLE [dbo].[JGZL_AnticorrosionEngineeringInspectionRecord] CHECK CONSTRAINT [FK_JGZL_AnticorrosionEngineeringInspectionRecord_Base_Project]
+
+ALTER TABLE [dbo].[JGZL_AnticorrosionEngineeringInspectionRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_AnticorrosionEngineeringInspectionRecord_Sys_User] FOREIGN KEY([CompileMan])
+REFERENCES [dbo].[Sys_User] ([UserId])
+ALTER TABLE [dbo].[JGZL_AnticorrosionEngineeringInspectionRecord] CHECK CONSTRAINT [FK_JGZL_AnticorrosionEngineeringInspectionRecord_Sys_User]
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecord', @level2type=N'COLUMN',@level2name=N'AnticorrosionId'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecord', @level2type=N'COLUMN',@level2name=N'ProjectId'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ǰ״̬' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecord', @level2type=N'COLUMN',@level2name=N'AnticorrosionCurrentStatus'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecord', @level2type=N'COLUMN',@level2name=N'AnticorrosionPart'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ṹҪ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecord', @level2type=N'COLUMN',@level2name=N'AnticorrosionRequire'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ս' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecord', @level2type=N'COLUMN',@level2name=N'InspectionConclusion'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecord', @level2type=N'COLUMN',@level2name=N'CompileMan'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecord', @level2type=N'COLUMN',@level2name=N'CompileDate'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ռ¼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecord'
+
+END
+
+
+
+
+IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_AnticorrosionEngineeringInspectionRecordItem') AND type = N'U')
+BEGIN
+
+CREATE TABLE [dbo].[JGZL_AnticorrosionEngineeringInspectionRecordItem](
+ [AnticorrosionItemId] [nvarchar](50) NOT NULL,
+ [AnticorrosionId] [nvarchar](50) NULL,
+ [Part] [nvarchar](50) NULL,
+ [MaterialName] [nvarchar](100) NULL,
+ [Grade] [nvarchar](50) NULL,
+ [Manufacturer] [nvarchar](100) NULL,
+ [PlanFilmThickness] [nvarchar](50) NULL,
+ [ActualFilmThickness] [nvarchar](50) NULL,
+ CONSTRAINT [PK_JGZL_AnticorrosionEngineeringInspectionRecordItem] PRIMARY KEY CLUSTERED
+(
+ [AnticorrosionItemId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+ALTER TABLE [dbo].[JGZL_AnticorrosionEngineeringInspectionRecordItem] WITH CHECK ADD CONSTRAINT [FK_JGZL_AnticorrosionEngineeringInspectionRecord_JGZL_AnticorrosionEngineeringInspectionRecord] FOREIGN KEY([AnticorrosionId])
+REFERENCES [dbo].[JGZL_AnticorrosionEngineeringInspectionRecord] ([AnticorrosionId])
+ALTER TABLE [dbo].[JGZL_AnticorrosionEngineeringInspectionRecordItem] CHECK CONSTRAINT [FK_JGZL_AnticorrosionEngineeringInspectionRecord_JGZL_AnticorrosionEngineeringInspectionRecord]
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecordItem', @level2type=N'COLUMN',@level2name=N'AnticorrosionItemId'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecordItem', @level2type=N'COLUMN',@level2name=N'AnticorrosionId'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecordItem', @level2type=N'COLUMN',@level2name=N'Part'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecordItem', @level2type=N'COLUMN',@level2name=N'MaterialName'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ƺ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecordItem', @level2type=N'COLUMN',@level2name=N'Grade'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecordItem', @level2type=N'COLUMN',@level2name=N'Manufacturer'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ĥ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecordItem', @level2type=N'COLUMN',@level2name=N'PlanFilmThickness'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʵĤ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecordItem', @level2type=N'COLUMN',@level2name=N'ActualFilmThickness'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ռ¼ӱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecordItem'
+
+END
+GO
+
+
+
+
+
+
+
+/**********˵************************************************************/
+
+--ܵϲʱʶ¼
+IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = '4AE71DAB-83F3-441E-9918-90812B7DA84C')
+BEGIN
+ INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
+ VALUES ('4AE71DAB-83F3-441E-9918-90812B7DA84C','ܵϲʱʶ¼','JGZL/MaterialIdentificationInspectionRecord.aspx',370,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
+END
+GO
+IF NOT EXISTS (SELECT * FROM ButtonToMenu WHERE MenuId = '4AE71DAB-83F3-441E-9918-90812B7DA84C')
+BEGIN
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('B24CCDAC-A878-4A76-989F-9F3855096814','4AE71DAB-83F3-441E-9918-90812B7DA84C','',1)
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('F827F507-C101-42A2-9CD0-4C2E90F5A8FE','4AE71DAB-83F3-441E-9918-90812B7DA84C','',2)
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('F631B7FE-DADA-4F53-AD9D-C36D156A3333','4AE71DAB-83F3-441E-9918-90812B7DA84C','ɾ',3)
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('8F217428-20CB-4F0C-AA6C-E9919AF91070','4AE71DAB-83F3-441E-9918-90812B7DA84C','',4)
+END
+GO
+
+
+/**********ݱ************************************************************/
+
+--ܵϲʱʶ¼
+IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_MaterialIdentificationInspectionRecord') AND type = N'U')
+BEGIN
+
+CREATE TABLE [dbo].[JGZL_MaterialIdentificationInspectionRecord](
+ [RecordId] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [ISO_Id] [nvarchar](50) NULL,
+ [STE_ID] [nvarchar](50) NULL,
+ [Specifications] [nvarchar](500) NULL,
+ [PrescribedColor] [nvarchar](50) NULL,
+ [TubeIdentificationStatus] [nvarchar](50) NULL,
+ [PipeFittingName] [nvarchar](100) NULL,
+ [PipeFittingStatus] [nvarchar](50) NULL,
+ [Conclusion] [nvarchar](500) NULL,
+ [CompileMan] [nvarchar](50) NULL,
+ [CompileDate] [datetime] NULL,
+ CONSTRAINT [PK_JGZL_MaterialIdentificationInspectionRecord] PRIMARY KEY CLUSTERED
+(
+ [RecordId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+ALTER TABLE [dbo].[JGZL_MaterialIdentificationInspectionRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_MaterialIdentificationInspectionRecord_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+ALTER TABLE [dbo].[JGZL_MaterialIdentificationInspectionRecord] CHECK CONSTRAINT [FK_JGZL_MaterialIdentificationInspectionRecord_Base_Project]
+
+ALTER TABLE [dbo].[JGZL_MaterialIdentificationInspectionRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_MaterialIdentificationInspectionRecord_Sys_User] FOREIGN KEY([CompileMan])
+REFERENCES [dbo].[Sys_User] ([UserId])
+ALTER TABLE [dbo].[JGZL_MaterialIdentificationInspectionRecord] CHECK CONSTRAINT [FK_JGZL_MaterialIdentificationInspectionRecord_Sys_User]
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialIdentificationInspectionRecord', @level2type=N'COLUMN',@level2name=N'RecordId'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialIdentificationInspectionRecord', @level2type=N'COLUMN',@level2name=N'ProjectId'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialIdentificationInspectionRecord', @level2type=N'COLUMN',@level2name=N'ISO_Id'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialIdentificationInspectionRecord', @level2type=N'COLUMN',@level2name=N'STE_ID'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialIdentificationInspectionRecord', @level2type=N'COLUMN',@level2name=N'Specifications'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'涨ɫɫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialIdentificationInspectionRecord', @level2type=N'COLUMN',@level2name=N'PrescribedColor'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ӱʶ״̬' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialIdentificationInspectionRecord', @level2type=N'COLUMN',@level2name=N'TubeIdentificationStatus'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܼ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialIdentificationInspectionRecord', @level2type=N'COLUMN',@level2name=N'PipeFittingName'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܼʶ״̬' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialIdentificationInspectionRecord', @level2type=N'COLUMN',@level2name=N'PipeFittingStatus'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialIdentificationInspectionRecord', @level2type=N'COLUMN',@level2name=N'Conclusion'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialIdentificationInspectionRecord', @level2type=N'COLUMN',@level2name=N'CompileMan'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialIdentificationInspectionRecord', @level2type=N'COLUMN',@level2name=N'CompileDate'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܵϲʱʶ¼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialIdentificationInspectionRecord'
+
+END
+GO
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+/**********˵************************************************************/
+
+--ֹܼռ¼
+IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = '83CB0DCD-1E61-4A46-A3B9-EB9B3D6D8D68')
+BEGIN
+ INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
+ VALUES ('83CB0DCD-1E61-4A46-A3B9-EB9B3D6D8D68','ֹܼռ¼','JGZL/SteelPipeCheckRecord.aspx',380,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
+END
+GO
+IF NOT EXISTS (SELECT * FROM ButtonToMenu WHERE MenuId = '83CB0DCD-1E61-4A46-A3B9-EB9B3D6D8D68')
+BEGIN
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('752D1A89-D693-43D6-9D89-8F0A1C521ED7','83CB0DCD-1E61-4A46-A3B9-EB9B3D6D8D68','',1)
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('4697C571-FB3C-483F-A6CA-5B7DF3265138','83CB0DCD-1E61-4A46-A3B9-EB9B3D6D8D68','',2)
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('D83B6E7B-4EDD-47C9-9342-FE199AFE1C0B','83CB0DCD-1E61-4A46-A3B9-EB9B3D6D8D68','ɾ',3)
+ INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES ('2CC9AD3D-9BE5-4474-BA76-D5CFDF90851E','83CB0DCD-1E61-4A46-A3B9-EB9B3D6D8D68','',4)
+END
+GO
+
+
+/**********ݱ************************************************************/
+
+--ֹܼռ¼
+IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_SteelPipeCheckRecord') AND type = N'U')
+BEGIN
+
+CREATE TABLE [dbo].[JGZL_SteelPipeCheckRecord](
+ [RecordId] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [ContractCode] [nvarchar](50) NULL,
+ [ArrivalDate] [datetime] NULL,
+ [ExecutionStandard] [nvarchar](50) NULL,
+ [Crack] [nvarchar](100) NULL,
+ [SlagInclusion] [nvarchar](100) NULL,
+ [ShrinkageHole] [nvarchar](100) NULL,
+ [HeavyLeather] [nvarchar](100) NULL,
+ [Other] [nvarchar](100) NULL,
+ [Remark] [nvarchar](500) NULL,
+ [CompileMan] [nvarchar](50) NULL,
+ [CompileDate] [datetime] NULL,
+ CONSTRAINT [PK_JGZL_SteelPipeCheckRecord] PRIMARY KEY CLUSTERED
+(
+ [RecordId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+ALTER TABLE [dbo].[JGZL_SteelPipeCheckRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_SteelPipeCheckRecord_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+ALTER TABLE [dbo].[JGZL_SteelPipeCheckRecord] CHECK CONSTRAINT [FK_JGZL_SteelPipeCheckRecord_Base_Project]
+
+ALTER TABLE [dbo].[JGZL_SteelPipeCheckRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_SteelPipeCheckRecord_Sys_User] FOREIGN KEY([CompileMan])
+REFERENCES [dbo].[Sys_User] ([UserId])
+ALTER TABLE [dbo].[JGZL_SteelPipeCheckRecord] CHECK CONSTRAINT [FK_JGZL_SteelPipeCheckRecord_Sys_User]
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecord', @level2type=N'COLUMN',@level2name=N'RecordId'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecord', @level2type=N'COLUMN',@level2name=N'ProjectId'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͬ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecord', @level2type=N'COLUMN',@level2name=N'ContractCode'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecord', @level2type=N'COLUMN',@level2name=N'ArrivalDate'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ִб' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecord', @level2type=N'COLUMN',@level2name=N'ExecutionStandard'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecord', @level2type=N'COLUMN',@level2name=N'Crack'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecord', @level2type=N'COLUMN',@level2name=N'SlagInclusion'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecord', @level2type=N'COLUMN',@level2name=N'ShrinkageHole'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ƥ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecord', @level2type=N'COLUMN',@level2name=N'HeavyLeather'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecord', @level2type=N'COLUMN',@level2name=N'Other'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecord', @level2type=N'COLUMN',@level2name=N'Remark'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecord', @level2type=N'COLUMN',@level2name=N'CompileMan'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecord', @level2type=N'COLUMN',@level2name=N'CompileDate'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹܼռ¼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecord'
+
+END
+
+
+
+
+-- ֹܼռ¼ӱ1
+IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_SteelPipeCheckRecordItem1') AND type = N'U')
+BEGIN
+
+CREATE TABLE [dbo].[JGZL_SteelPipeCheckRecordItem1](
+ [RecordItemId] [nvarchar](50) NOT NULL,
+ [RecordId] [nvarchar](50) NULL,
+ [Name] [nvarchar](50) NULL,
+ [Material] [nvarchar](50) NULL,
+ [Specifications] [nvarchar](50) NULL,
+ [Quantity] [nvarchar](50) NULL,
+ [MaterialCertificateCode] [nvarchar](50) NULL,
+ [HeatCode] [nvarchar](50) NULL,
+ [MaterialCertificateSelfNumber] [nvarchar](50) NULL,
+ CONSTRAINT [PK_JGZL_SteelPipeCheckRecordItem1] PRIMARY KEY CLUSTERED
+(
+ [RecordItemId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+ALTER TABLE [dbo].[JGZL_SteelPipeCheckRecordItem1] WITH CHECK ADD CONSTRAINT [FK_JGZL_SteelPipeCheckRecordItem1_JGZL_SteelPipeCheckRecord] FOREIGN KEY([RecordId])
+REFERENCES [dbo].[JGZL_SteelPipeCheckRecord] ([RecordId])
+ALTER TABLE [dbo].[JGZL_SteelPipeCheckRecordItem1] CHECK CONSTRAINT [FK_JGZL_SteelPipeCheckRecordItem1_JGZL_SteelPipeCheckRecord]
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecordItem1', @level2type=N'COLUMN',@level2name=N'RecordItemId'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecordItem1', @level2type=N'COLUMN',@level2name=N'RecordId'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecordItem1', @level2type=N'COLUMN',@level2name=N'Name'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecordItem1', @level2type=N'COLUMN',@level2name=N'Material'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecordItem1', @level2type=N'COLUMN',@level2name=N'Specifications'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecordItem1', @level2type=N'COLUMN',@level2name=N'Quantity'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'֤' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecordItem1', @level2type=N'COLUMN',@level2name=N'MaterialCertificateCode'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¯' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecordItem1', @level2type=N'COLUMN',@level2name=N'HeatCode'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'֤Ա' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecordItem1', @level2type=N'COLUMN',@level2name=N'MaterialCertificateSelfNumber'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹܼռ¼ӱһ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecordItem1'
+
+END
+
+
+
+
+
+-- ֹܼռ¼ӱ2
+IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_SteelPipeCheckRecordItem2') AND type = N'U')
+BEGIN
+
+CREATE TABLE [dbo].[JGZL_SteelPipeCheckRecordItem2](
+ [RecordItemId] [nvarchar](50) NOT NULL,
+ [RecordId] [nvarchar](50) NULL,
+ [Part1] [nvarchar](50) NULL,
+ [Part2] [nvarchar](50) NULL,
+ [Part3] [nvarchar](50) NULL,
+ [Part4] [nvarchar](50) NULL,
+ [InnerDiameter] [nvarchar](50) NULL,
+ [OuterDiameter] [nvarchar](50) NULL,
+ [Lengths] [nvarchar](50) NULL,
+ CONSTRAINT [PK_JGZL_SteelPipeCheckRecordItem2] PRIMARY KEY CLUSTERED
+(
+ [RecordItemId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+ALTER TABLE [dbo].[JGZL_SteelPipeCheckRecordItem2] WITH CHECK ADD CONSTRAINT [FK_JGZL_SteelPipeCheckRecordItem2_JGZL_SteelPipeCheckRecord] FOREIGN KEY([RecordId])
+REFERENCES [dbo].[JGZL_SteelPipeCheckRecord] ([RecordId])
+ALTER TABLE [dbo].[JGZL_SteelPipeCheckRecordItem2] CHECK CONSTRAINT [FK_JGZL_SteelPipeCheckRecordItem2_JGZL_SteelPipeCheckRecord]
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecordItem2', @level2type=N'COLUMN',@level2name=N'RecordItemId'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecordItem2', @level2type=N'COLUMN',@level2name=N'RecordId'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ1' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecordItem2', @level2type=N'COLUMN',@level2name=N'Part1'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ2' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecordItem2', @level2type=N'COLUMN',@level2name=N'Part2'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ3' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecordItem2', @level2type=N'COLUMN',@level2name=N'Part3'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ4' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecordItem2', @level2type=N'COLUMN',@level2name=N'Part4'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ھ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecordItem2', @level2type=N'COLUMN',@level2name=N'InnerDiameter'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'⾶' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecordItem2', @level2type=N'COLUMN',@level2name=N'OuterDiameter'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecordItem2', @level2type=N'COLUMN',@level2name=N'Lengths'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹܼռ¼ӱ2' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SteelPipeCheckRecordItem2'
+
+END
+
+
+GO
+
+
+
+
+
+
+
+
diff --git a/HJGL_DS/BLL/BLL.csproj b/HJGL_DS/BLL/BLL.csproj
index b2548fe..bcd23af 100644
--- a/HJGL_DS/BLL/BLL.csproj
+++ b/HJGL_DS/BLL/BLL.csproj
@@ -247,29 +247,35 @@
+
+
-
-
-
-
-
-
-
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/HJGL_DS/BLL/Common/Const.cs b/HJGL_DS/BLL/Common/Const.cs
index 04c4a03..69627f5 100644
--- a/HJGL_DS/BLL/Common/Const.cs
+++ b/HJGL_DS/BLL/Common/Const.cs
@@ -1817,6 +1817,19 @@ namespace BLL
public const string JGZL_BlowingCleaningMenuId = "E64FC226-8164-43F7-AA4D-6E268EDEC5BC";
+ ///
+ /// 防腐工程质量验收记录
+ ///
+ public const string JGZL_AnticorrosionEngineeringInspectionRecordMenuId = "EB66D1CE-A677-40EF-A683-47C001F57445";
+ ///
+ /// 防腐工程质量验收记录
+ ///
+ public const string JGZL_MaterialIdentificationInspectionRecordMenuId = "4AE71DAB-83F3-441E-9918-90812B7DA84C";
+ ///
+ /// 钢管检查验收记录
+ ///
+ public const string JGZL_SteelPipeCheckRecordMenuId = "83CB0DCD-1E61-4A46-A3B9-EB9B3D6D8D68";
+
///
/// 管道安装检查记录
///
diff --git a/HJGL_DS/BLL/JGZL/AnticorrosionEngineeringInspectionRecordItemService.cs b/HJGL_DS/BLL/JGZL/AnticorrosionEngineeringInspectionRecordItemService.cs
new file mode 100644
index 0000000..e39aedb
--- /dev/null
+++ b/HJGL_DS/BLL/JGZL/AnticorrosionEngineeringInspectionRecordItemService.cs
@@ -0,0 +1,110 @@
+using System.Collections.Generic;
+using Model;
+using System.Linq;
+
+
+namespace BLL
+{
+ public class AnticorrosionEngineeringInspectionRecordItemService
+ {
+ ///
+ /// 根据主键获取防腐工程质量验收记录子表
+ ///
+ ///
+ ///
+ public static Model.JGZL_AnticorrosionEngineeringInspectionRecordItem GetAnticorrosionReportItemById(string anticorrosionItemId)
+ {
+ return Funs.DB.JGZL_AnticorrosionEngineeringInspectionRecordItem.FirstOrDefault(e =>
+ e.AnticorrosionItemId == anticorrosionItemId);
+ }
+
+
+ ///
+ /// 根据主键获取防腐工程质量验收记录子表
+ ///
+ ///
+ ///
+ public static List GetAnticorrosionReportItemByAnticorrosionId(string anticorrosionId)
+ {
+ return Funs.DB.JGZL_AnticorrosionEngineeringInspectionRecordItem.Where(e =>
+ e.AnticorrosionId == anticorrosionId).ToList();
+ }
+
+
+ ///
+ /// 添加防腐工程质量验收记录子表
+ ///
+ ///
+ public static void AddAnticorrosionReportItem(Model.JGZL_AnticorrosionEngineeringInspectionRecordItem anticorrosionReportItem)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_AnticorrosionEngineeringInspectionRecordItem newAnticorrosionReportItem = new Model.JGZL_AnticorrosionEngineeringInspectionRecordItem();
+ newAnticorrosionReportItem.AnticorrosionItemId = anticorrosionReportItem.AnticorrosionItemId;
+ newAnticorrosionReportItem.AnticorrosionId = anticorrosionReportItem.AnticorrosionId;
+ newAnticorrosionReportItem.Part = anticorrosionReportItem.Part;
+ newAnticorrosionReportItem.MaterialName = anticorrosionReportItem.MaterialName;
+ newAnticorrosionReportItem.Grade = anticorrosionReportItem.Grade;
+ newAnticorrosionReportItem.Manufacturer = anticorrosionReportItem.Manufacturer;
+ newAnticorrosionReportItem.PlanFilmThickness = anticorrosionReportItem.PlanFilmThickness;
+ newAnticorrosionReportItem.ActualFilmThickness = anticorrosionReportItem.ActualFilmThickness;
+ db.JGZL_AnticorrosionEngineeringInspectionRecordItem.InsertOnSubmit(newAnticorrosionReportItem);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 修改防腐工程质量验收记录子表
+ ///
+ ///
+ public static void UpdateAnticorrosionReportItem(Model.JGZL_AnticorrosionEngineeringInspectionRecordItem anticorrosionReportItem)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_AnticorrosionEngineeringInspectionRecordItem newAnticorrosionReportItem =
+ db.JGZL_AnticorrosionEngineeringInspectionRecordItem.FirstOrDefault(e =>
+ e.AnticorrosionItemId == anticorrosionReportItem.AnticorrosionItemId);
+ if (newAnticorrosionReportItem != null)
+ {
+ newAnticorrosionReportItem.Part = anticorrosionReportItem.Part;
+ newAnticorrosionReportItem.MaterialName = anticorrosionReportItem.MaterialName;
+ newAnticorrosionReportItem.Grade = anticorrosionReportItem.Grade;
+ newAnticorrosionReportItem.Manufacturer = anticorrosionReportItem.Manufacturer;
+ newAnticorrosionReportItem.PlanFilmThickness = anticorrosionReportItem.PlanFilmThickness;
+ newAnticorrosionReportItem.ActualFilmThickness = anticorrosionReportItem.ActualFilmThickness;
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除防腐工程质量验收记录子表
+ ///
+ ///
+ public static void DeleteAnticorrosionReportItemById(string anticorrosionItemId)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_AnticorrosionEngineeringInspectionRecordItem anticorrosionReportItem =
+ db.JGZL_AnticorrosionEngineeringInspectionRecordItem.FirstOrDefault(e => e.AnticorrosionItemId == anticorrosionItemId);
+ if (anticorrosionReportItem != null)
+ {
+ db.JGZL_AnticorrosionEngineeringInspectionRecordItem.DeleteOnSubmit(anticorrosionReportItem);
+ db.SubmitChanges();
+ }
+ }
+
+
+
+ ///
+ /// 根据防腐主表删除防腐工程质量验收记录子表
+ ///
+ ///
+ public static void DeleteAnticorrosionReportItemByAnticorrosionId(string anticorrosionId)
+ {
+ SGGLDB db = Funs.DB;
+ List anticorrosionReportItems =
+ db.JGZL_AnticorrosionEngineeringInspectionRecordItem.Where(e => e.AnticorrosionId == anticorrosionId).ToList();
+ if (anticorrosionReportItems != null)
+ {
+ db.JGZL_AnticorrosionEngineeringInspectionRecordItem.DeleteAllOnSubmit(anticorrosionReportItems);
+ db.SubmitChanges();
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/BLL/JGZL/AnticorrosionEngineeringInspectionRecordService.cs b/HJGL_DS/BLL/JGZL/AnticorrosionEngineeringInspectionRecordService.cs
new file mode 100644
index 0000000..9445c7f
--- /dev/null
+++ b/HJGL_DS/BLL/JGZL/AnticorrosionEngineeringInspectionRecordService.cs
@@ -0,0 +1,76 @@
+using Model;
+using System.Linq;
+
+
+namespace BLL
+{
+ public class AnticorrosionEngineeringInspectionRecordService
+ {
+ ///
+ /// 根据主键获取防腐工程质量验收记录
+ ///
+ ///
+ ///
+ public static Model.JGZL_AnticorrosionEngineeringInspectionRecord GetAnticorrosionReportById(string anticorrosionId)
+ {
+ return Funs.DB.JGZL_AnticorrosionEngineeringInspectionRecord.FirstOrDefault(e =>
+ e.AnticorrosionId == anticorrosionId);
+ }
+
+ ///
+ /// 添加防腐工程质量验收记录
+ ///
+ ///
+ public static void AddAnticorrosionReport(Model.JGZL_AnticorrosionEngineeringInspectionRecord anticorrosionReport)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_AnticorrosionEngineeringInspectionRecord newAnticorrosionReport = new Model.JGZL_AnticorrosionEngineeringInspectionRecord();
+ newAnticorrosionReport.AnticorrosionId = anticorrosionReport.AnticorrosionId;
+ newAnticorrosionReport.ProjectId = anticorrosionReport.ProjectId;
+ newAnticorrosionReport.AnticorrosionCurrentStatus = anticorrosionReport.AnticorrosionCurrentStatus;
+ newAnticorrosionReport.AnticorrosionPart = anticorrosionReport.AnticorrosionPart;
+ newAnticorrosionReport.AnticorrosionRequire = anticorrosionReport.AnticorrosionRequire;
+ newAnticorrosionReport.InspectionConclusion = anticorrosionReport.InspectionConclusion;
+ newAnticorrosionReport.CompileMan = anticorrosionReport.CompileMan;
+ newAnticorrosionReport.CompileDate = anticorrosionReport.CompileDate;
+ db.JGZL_AnticorrosionEngineeringInspectionRecord.InsertOnSubmit(newAnticorrosionReport);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 修改防腐工程质量验收记录
+ ///
+ ///
+ public static void UpdateAnticorrosionReport(Model.JGZL_AnticorrosionEngineeringInspectionRecord anticorrosionReport)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_AnticorrosionEngineeringInspectionRecord newAnticorrosionReport =
+ db.JGZL_AnticorrosionEngineeringInspectionRecord.FirstOrDefault(e =>
+ e.AnticorrosionId == anticorrosionReport.AnticorrosionId);
+ if (newAnticorrosionReport != null)
+ {
+ newAnticorrosionReport.AnticorrosionCurrentStatus = anticorrosionReport.AnticorrosionCurrentStatus;
+ newAnticorrosionReport.AnticorrosionPart = anticorrosionReport.AnticorrosionPart;
+ newAnticorrosionReport.AnticorrosionRequire = anticorrosionReport.AnticorrosionRequire;
+ newAnticorrosionReport.InspectionConclusion = anticorrosionReport.InspectionConclusion;
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除防腐工程质量验收记录
+ ///
+ ///
+ public static void DeleteAnticorrosionReportById(string anticorrosionId)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_AnticorrosionEngineeringInspectionRecord anticorrosionReport =
+ db.JGZL_AnticorrosionEngineeringInspectionRecord.FirstOrDefault(e => e.AnticorrosionId == anticorrosionId);
+ if (anticorrosionReport != null)
+ {
+ db.JGZL_AnticorrosionEngineeringInspectionRecord.DeleteOnSubmit(anticorrosionReport);
+ db.SubmitChanges();
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/BLL/JGZL/MaterialIdentificationInspectionRecordService.cs b/HJGL_DS/BLL/JGZL/MaterialIdentificationInspectionRecordService.cs
new file mode 100644
index 0000000..60e0d2c
--- /dev/null
+++ b/HJGL_DS/BLL/JGZL/MaterialIdentificationInspectionRecordService.cs
@@ -0,0 +1,93 @@
+using Model;
+using System.Linq;
+using System.Collections.Generic;
+
+namespace BLL
+{
+ public class MaterialIdentificationInspectionRecordService
+ {
+ ///
+ /// 根据主键获取管道材料材质标识检查记录
+ ///
+ ///
+ ///
+ public static Model.JGZL_MaterialIdentificationInspectionRecord GetRecordById(
+ string recordId)
+ {
+ return Funs.DB.JGZL_MaterialIdentificationInspectionRecord.FirstOrDefault(e =>
+ e.RecordId == recordId);
+ }
+
+ ///
+ /// 添加管道材料材质标识检查记录
+ ///
+ ///
+ public static void AddRecord(
+ Model.JGZL_MaterialIdentificationInspectionRecord report)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_MaterialIdentificationInspectionRecord newRecord =
+ new Model.JGZL_MaterialIdentificationInspectionRecord();
+ newRecord.RecordId = report.RecordId;
+ newRecord.ProjectId = report.ProjectId;
+ newRecord.ISO_Id = report.ISO_Id;
+ newRecord.STE_ID = report.STE_ID;
+ newRecord.Specifications = report.Specifications;
+ newRecord.PrescribedColor = report.PrescribedColor;
+ newRecord.TubeIdentificationStatus = report.TubeIdentificationStatus;
+ newRecord.PipeFittingName = report.PipeFittingName;
+ newRecord.PipeFittingStatus = report.PipeFittingStatus;
+ newRecord.Conclusion = report.Conclusion;
+ newRecord.CompileMan = report.CompileMan;
+ newRecord.CompileDate = report.CompileDate;
+ db.JGZL_MaterialIdentificationInspectionRecord.InsertOnSubmit(newRecord);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 修改管道材料材质标识检查记录
+ ///
+ ///
+ public static void UpdateRecord(
+ Model.JGZL_MaterialIdentificationInspectionRecord report)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_MaterialIdentificationInspectionRecord newRecord =
+ db.JGZL_MaterialIdentificationInspectionRecord.FirstOrDefault(e =>
+ e.RecordId == report.RecordId);
+ if (newRecord != null)
+ {
+ newRecord.ISO_Id = report.ISO_Id;
+ newRecord.STE_ID = report.STE_ID;
+ newRecord.Specifications = report.Specifications;
+ newRecord.PrescribedColor = report.PrescribedColor;
+ newRecord.TubeIdentificationStatus = report.TubeIdentificationStatus;
+ newRecord.PipeFittingName = report.PipeFittingName;
+ newRecord.PipeFittingStatus = report.PipeFittingStatus;
+ newRecord.Conclusion = report.Conclusion;
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除管道材料材质标识检查记录
+ ///
+ ///
+ public static void DeleteRecordById(string recordId)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_MaterialIdentificationInspectionRecord report =
+ db.JGZL_MaterialIdentificationInspectionRecord.FirstOrDefault(e =>
+ e.RecordId == recordId);
+ if (report != null)
+ {
+ db.JGZL_MaterialIdentificationInspectionRecord.DeleteOnSubmit(report);
+ db.SubmitChanges();
+ }
+ }
+
+
+
+
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/BLL/JGZL/SteelPipeCheckRecordItem1Service.cs b/HJGL_DS/BLL/JGZL/SteelPipeCheckRecordItem1Service.cs
new file mode 100644
index 0000000..710c364
--- /dev/null
+++ b/HJGL_DS/BLL/JGZL/SteelPipeCheckRecordItem1Service.cs
@@ -0,0 +1,111 @@
+using System.Collections.Generic;
+using Model;
+using System.Linq;
+
+namespace BLL
+{
+ public class SteelPipeCheckRecordItem1Service
+ {
+ ///
+ /// 根据主键获取钢管检查验收记录子表1
+ ///
+ ///
+ ///
+ public static Model.JGZL_SteelPipeCheckRecordItem1 GetSteelPipeItem1ById(string recordItemId)
+ {
+ return Funs.DB.JGZL_SteelPipeCheckRecordItem1.FirstOrDefault(e =>
+ e.RecordItemId == recordItemId);
+ }
+
+
+ ///
+ /// 根据主键获取钢管检查验收记录子表1
+ ///
+ ///
+ ///
+ public static List GetSteelPipeItem1ByRecordId(string recordId)
+ {
+ return Funs.DB.JGZL_SteelPipeCheckRecordItem1.Where(e =>
+ e.RecordId == recordId).ToList();
+ }
+
+
+ ///
+ /// 添加钢管检查验收记录子表1
+ ///
+ ///
+ public static void AddSteelPipeItem1(Model.JGZL_SteelPipeCheckRecordItem1 steelPipeItem1)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_SteelPipeCheckRecordItem1 newSteelPipeItem1 = new Model.JGZL_SteelPipeCheckRecordItem1();
+ newSteelPipeItem1.RecordItemId = steelPipeItem1.RecordItemId;
+ newSteelPipeItem1.RecordId = steelPipeItem1.RecordId;
+ newSteelPipeItem1.Name = steelPipeItem1.Name;
+ newSteelPipeItem1.Material = steelPipeItem1.Material;
+ newSteelPipeItem1.Specifications = steelPipeItem1.Specifications;
+ newSteelPipeItem1.Quantity = steelPipeItem1.Quantity;
+ newSteelPipeItem1.MaterialCertificateCode = steelPipeItem1.MaterialCertificateCode;
+ newSteelPipeItem1.HeatCode = steelPipeItem1.HeatCode;
+ newSteelPipeItem1.MaterialCertificateSelfNumber = steelPipeItem1.MaterialCertificateSelfNumber;
+ db.JGZL_SteelPipeCheckRecordItem1.InsertOnSubmit(newSteelPipeItem1);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 修改钢管检查验收记录子表1
+ ///
+ ///
+ public static void UpdateSteelPipeItem1(Model.JGZL_SteelPipeCheckRecordItem1 steelPipeItem1)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_SteelPipeCheckRecordItem1 newSteelPipeItem1 =
+ db.JGZL_SteelPipeCheckRecordItem1.FirstOrDefault(e =>
+ e.RecordItemId == steelPipeItem1.RecordItemId);
+ if (newSteelPipeItem1 != null)
+ {
+ newSteelPipeItem1.Name = steelPipeItem1.Name;
+ newSteelPipeItem1.Material = steelPipeItem1.Material;
+ newSteelPipeItem1.Specifications = steelPipeItem1.Specifications;
+ newSteelPipeItem1.Quantity = steelPipeItem1.Quantity;
+ newSteelPipeItem1.MaterialCertificateCode = steelPipeItem1.MaterialCertificateCode;
+ newSteelPipeItem1.HeatCode = steelPipeItem1.HeatCode;
+ newSteelPipeItem1.MaterialCertificateSelfNumber = steelPipeItem1.MaterialCertificateSelfNumber;
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除钢管检查验收记录子表1
+ ///
+ ///
+ public static void DeleteSteelPipeItem1ById(string recordItemId)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_SteelPipeCheckRecordItem1 steelPipeItem1 =
+ db.JGZL_SteelPipeCheckRecordItem1.FirstOrDefault(e => e.RecordItemId == recordItemId);
+ if (steelPipeItem1 != null)
+ {
+ db.JGZL_SteelPipeCheckRecordItem1.DeleteOnSubmit(steelPipeItem1);
+ db.SubmitChanges();
+ }
+ }
+
+
+
+ ///
+ /// 根据防腐主表删除钢管检查验收记录子表1
+ ///
+ ///
+ public static void DeleteSteelPipeItem1ByRecordId(string recordId)
+ {
+ SGGLDB db = Funs.DB;
+ List steelPipeItem1s =
+ db.JGZL_SteelPipeCheckRecordItem1.Where(e => e.RecordId == recordId).ToList();
+ if (steelPipeItem1s != null)
+ {
+ db.JGZL_SteelPipeCheckRecordItem1.DeleteAllOnSubmit(steelPipeItem1s);
+ db.SubmitChanges();
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/BLL/JGZL/SteelPipeCheckRecordItem2Service.cs b/HJGL_DS/BLL/JGZL/SteelPipeCheckRecordItem2Service.cs
new file mode 100644
index 0000000..822b058
--- /dev/null
+++ b/HJGL_DS/BLL/JGZL/SteelPipeCheckRecordItem2Service.cs
@@ -0,0 +1,111 @@
+using System.Collections.Generic;
+using Model;
+using System.Linq;
+
+namespace BLL
+{
+ public class SteelPipeCheckRecordItem2Service
+ {
+ ///
+ /// 根据主键获取钢管检查验收记录子表2
+ ///
+ ///
+ ///
+ public static Model.JGZL_SteelPipeCheckRecordItem2 GetSteelPipeItem2ById(string recordItemId)
+ {
+ return Funs.DB.JGZL_SteelPipeCheckRecordItem2.FirstOrDefault(e =>
+ e.RecordItemId == recordItemId);
+ }
+
+
+ ///
+ /// 根据主键获取钢管检查验收记录子表2
+ ///
+ ///
+ ///
+ public static List GetSteelPipeItem2ByRecordId(string recordId)
+ {
+ return Funs.DB.JGZL_SteelPipeCheckRecordItem2.Where(e =>
+ e.RecordId == recordId).ToList();
+ }
+
+
+ ///
+ /// 添加钢管检查验收记录子表2
+ ///
+ ///
+ public static void AddSteelPipeItem2(Model.JGZL_SteelPipeCheckRecordItem2 steelPipeItem2)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_SteelPipeCheckRecordItem2 newSteelPipeItem2 = new Model.JGZL_SteelPipeCheckRecordItem2();
+ newSteelPipeItem2.RecordItemId = steelPipeItem2.RecordItemId;
+ newSteelPipeItem2.RecordId = steelPipeItem2.RecordId;
+ newSteelPipeItem2.Part1 = steelPipeItem2.Part1;
+ newSteelPipeItem2.Part2 = steelPipeItem2.Part2;
+ newSteelPipeItem2.Part3 = steelPipeItem2.Part3;
+ newSteelPipeItem2.Part4 = steelPipeItem2.Part4;
+ newSteelPipeItem2.InnerDiameter = steelPipeItem2.InnerDiameter;
+ newSteelPipeItem2.OuterDiameter = steelPipeItem2.OuterDiameter;
+ newSteelPipeItem2.Lengths = steelPipeItem2.Lengths;
+ db.JGZL_SteelPipeCheckRecordItem2.InsertOnSubmit(newSteelPipeItem2);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 修改钢管检查验收记录子表2
+ ///
+ ///
+ public static void UpdateSteelPipeItem2(Model.JGZL_SteelPipeCheckRecordItem2 steelPipeItem2)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_SteelPipeCheckRecordItem2 newSteelPipeItem2 =
+ db.JGZL_SteelPipeCheckRecordItem2.FirstOrDefault(e =>
+ e.RecordItemId == steelPipeItem2.RecordItemId);
+ if (newSteelPipeItem2 != null)
+ {
+ newSteelPipeItem2.Part1 = steelPipeItem2.Part1;
+ newSteelPipeItem2.Part2 = steelPipeItem2.Part2;
+ newSteelPipeItem2.Part3 = steelPipeItem2.Part3;
+ newSteelPipeItem2.Part4 = steelPipeItem2.Part4;
+ newSteelPipeItem2.InnerDiameter = steelPipeItem2.InnerDiameter;
+ newSteelPipeItem2.OuterDiameter = steelPipeItem2.OuterDiameter;
+ newSteelPipeItem2.Lengths = steelPipeItem2.Lengths;
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除钢管检查验收记录子表2
+ ///
+ ///
+ public static void DeleteSteelPipeItem2ById(string recordItemId)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_SteelPipeCheckRecordItem2 steelPipeItem2 =
+ db.JGZL_SteelPipeCheckRecordItem2.FirstOrDefault(e => e.RecordItemId == recordItemId);
+ if (steelPipeItem2 != null)
+ {
+ db.JGZL_SteelPipeCheckRecordItem2.DeleteOnSubmit(steelPipeItem2);
+ db.SubmitChanges();
+ }
+ }
+
+
+
+ ///
+ /// 根据防腐主表删除钢管检查验收记录子表2
+ ///
+ ///
+ public static void DeleteSteelPipeItem2ByRecordId(string recordId)
+ {
+ SGGLDB db = Funs.DB;
+ List steelPipeItem2s =
+ db.JGZL_SteelPipeCheckRecordItem2.Where(e => e.RecordId == recordId).ToList();
+ if (steelPipeItem2s != null)
+ {
+ db.JGZL_SteelPipeCheckRecordItem2.DeleteAllOnSubmit(steelPipeItem2s);
+ db.SubmitChanges();
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/BLL/JGZL/SteelPipeCheckRecordService.cs b/HJGL_DS/BLL/JGZL/SteelPipeCheckRecordService.cs
new file mode 100644
index 0000000..a7f0a97
--- /dev/null
+++ b/HJGL_DS/BLL/JGZL/SteelPipeCheckRecordService.cs
@@ -0,0 +1,86 @@
+using Model;
+using System.Linq;
+
+
+namespace BLL
+{
+ public class SteelPipeCheckRecordService
+ {
+ ///
+ /// 根据主键获取钢管检查验收记录
+ ///
+ ///
+ ///
+ public static Model.JGZL_SteelPipeCheckRecord GetSteelPipeReportById(string recordId)
+ {
+ return Funs.DB.JGZL_SteelPipeCheckRecord.FirstOrDefault(e =>
+ e.RecordId == recordId);
+ }
+
+ ///
+ /// 添加钢管检查验收记录
+ ///
+ ///
+ public static void AddSteelPipeReport(Model.JGZL_SteelPipeCheckRecord steelPipeReport)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_SteelPipeCheckRecord newSteelPipeReport = new Model.JGZL_SteelPipeCheckRecord();
+ newSteelPipeReport.RecordId = steelPipeReport.RecordId;
+ newSteelPipeReport.ProjectId = steelPipeReport.ProjectId;
+ newSteelPipeReport.ContractCode = steelPipeReport.ContractCode;
+ newSteelPipeReport.ArrivalDate = steelPipeReport.ArrivalDate;
+ newSteelPipeReport.ExecutionStandard = steelPipeReport.ExecutionStandard;
+ newSteelPipeReport.Crack = steelPipeReport.Crack;
+ newSteelPipeReport.SlagInclusion = steelPipeReport.SlagInclusion;
+ newSteelPipeReport.ShrinkageHole = steelPipeReport.ShrinkageHole;
+ newSteelPipeReport.HeavyLeather = steelPipeReport.HeavyLeather;
+ newSteelPipeReport.Other = steelPipeReport.Other;
+ newSteelPipeReport.Remark = steelPipeReport.Remark;
+ newSteelPipeReport.CompileMan = steelPipeReport.CompileMan;
+ newSteelPipeReport.CompileDate = steelPipeReport.CompileDate;
+ db.JGZL_SteelPipeCheckRecord.InsertOnSubmit(newSteelPipeReport);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 修改钢管检查验收记录
+ ///
+ ///
+ public static void UpdateSteelPipeReport(Model.JGZL_SteelPipeCheckRecord steelPipeReport)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_SteelPipeCheckRecord newSteelPipeReport =
+ db.JGZL_SteelPipeCheckRecord.FirstOrDefault(e =>
+ e.RecordId == steelPipeReport.RecordId);
+ if (newSteelPipeReport != null)
+ {
+ newSteelPipeReport.ContractCode = steelPipeReport.ContractCode;
+ newSteelPipeReport.ArrivalDate = steelPipeReport.ArrivalDate;
+ newSteelPipeReport.ExecutionStandard = steelPipeReport.ExecutionStandard;
+ newSteelPipeReport.Crack = steelPipeReport.Crack;
+ newSteelPipeReport.SlagInclusion = steelPipeReport.SlagInclusion;
+ newSteelPipeReport.ShrinkageHole = steelPipeReport.ShrinkageHole;
+ newSteelPipeReport.HeavyLeather = steelPipeReport.HeavyLeather;
+ newSteelPipeReport.Other = steelPipeReport.Other;
+ newSteelPipeReport.Remark = steelPipeReport.Remark;
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除钢管检查验收记录
+ ///
+ ///
+ public static void DeleteSteelPipeReportById(string recordId)
+ {
+ SGGLDB db = Funs.DB;
+ Model.JGZL_SteelPipeCheckRecord steelPipeReport =
+ db.JGZL_SteelPipeCheckRecord.FirstOrDefault(e => e.RecordId == recordId);
+ if (steelPipeReport != null)
+ {
+ db.JGZL_SteelPipeCheckRecord.DeleteOnSubmit(steelPipeReport);
+ db.SubmitChanges();
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
index 6803a03..7680bf3 100644
--- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
@@ -1243,27 +1243,15 @@
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -1272,17 +1260,30 @@
-
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
@@ -1290,10 +1291,16 @@
+
+
+
+
+
+
@@ -6589,6 +6596,20 @@
AcceptanceCertificateEdit.aspx
+
+ ASPXCodeBehind
+ AnticorrosionEngineeringInspectionRecord.aspx
+
+
+ AnticorrosionEngineeringInspectionRecord.aspx
+
+
+ ASPXCodeBehind
+ AnticorrosionEngineeringInspectionRecordEdit.aspx
+
+
+ AnticorrosionEngineeringInspectionRecordEdit.aspx
+
BlowingCleaning.aspx
ASPXCodeBehind
@@ -6624,117 +6645,19 @@
CommencementReportEdit.aspx
-
- PipeFittingInspectionRecord.aspx
+
ASPXCodeBehind
+ ConcealedWorksInspectionRecord.aspx
-
- PipeFittingInspectionRecord.aspx
+
+ ConcealedWorksInspectionRecord.aspx
-
- PipeFittingInspectionRecordEdit.aspx
+
ASPXCodeBehind
+ ConcealedWorksInspectionRecordEdit.aspx
-
- PipeFittingInspectionRecordEdit.aspx
-
-
- ProcessHandoverRecord.aspx
- ASPXCodeBehind
-
-
- ProcessHandoverRecord.aspx
-
-
- ProcessHandoverRecordEdit.aspx
- ASPXCodeBehind
-
-
- ProcessHandoverRecordEdit.aspx
-
-
- PipelinePrefabricationConstructionInspectionRecord.aspx
- ASPXCodeBehind
-
-
- PipelinePrefabricationConstructionInspectionRecord.aspx
-
-
- PipelinePrefabricationConstructionInspectionRecordEdit.aspx
- ASPXCodeBehind
-
-
- PipelinePrefabricationConstructionInspectionRecordEdit.aspx
-
-
- ValveInspectionTestRecord.aspx
- ASPXCodeBehind
-
-
- ValveInspectionTestRecord.aspx
-
-
- ValveInspectionTestRecordEdit.aspx
- ASPXCodeBehind
-
-
- ValveInspectionTestRecordEdit.aspx
-
-
- ValveTestConfirmationForm.aspx
- ASPXCodeBehind
-
-
- ValveTestConfirmationForm.aspx
-
-
- ValveTestConfirmationFormEdit.aspx
- ASPXCodeBehind
-
-
- ValveTestConfirmationFormEdit.aspx
-
-
- IndustrialPipelineInstallationSummary.aspx
- ASPXCodeBehind
-
-
- IndustrialPipelineInstallationSummary.aspx
-
-
- IndustrialPipelineInstallationSummaryEdit.aspx
- ASPXCodeBehind
-
-
- IndustrialPipelineInstallationSummaryEdit.aspx
-
-
- IndustrialPipelineInstallationQualityCertificate.aspx
- ASPXCodeBehind
-
-
- IndustrialPipelineInstallationQualityCertificate.aspx
-
-
- IndustrialPipelineInstallationQualityCertificateEdit.aspx
- ASPXCodeBehind
-
-
- IndustrialPipelineInstallationQualityCertificateEdit.aspx
-
-
- PipelineInstallationInspectionRecord.aspx
- ASPXCodeBehind
-
-
- PipelineInstallationInspectionRecord.aspx
-
-
- PipelineInstallationInspectionRecordEdit.aspx
- ASPXCodeBehind
-
-
- PipelineInstallationInspectionRecordEdit.aspx
+
+ ConcealedWorksInspectionRecordEdit.aspx
ConDrawingVerification.aspx
@@ -6792,12 +6715,54 @@
HandoverCertificateEdit.aspx
-
- ConcealedWorksInspectionRecord.aspx
+
ASPXCodeBehind
+ IndustrialPipelineInstallationQualityCertificate.aspx
-
- ConcealedWorksInspectionRecord.aspx
+
+ IndustrialPipelineInstallationQualityCertificate.aspx
+
+
+ ASPXCodeBehind
+ IndustrialPipelineInstallationQualityCertificateEdit.aspx
+
+
+ IndustrialPipelineInstallationQualityCertificateEdit.aspx
+
+
+ ASPXCodeBehind
+ IndustrialPipelineInstallationSummary.aspx
+
+
+ IndustrialPipelineInstallationSummary.aspx
+
+
+ ASPXCodeBehind
+ IndustrialPipelineInstallationSummaryEdit.aspx
+
+
+ IndustrialPipelineInstallationSummaryEdit.aspx
+
+
+ ASPXCodeBehind
+ MaterialIdentificationInspectionRecord.aspx
+
+
+ MaterialIdentificationInspectionRecord.aspx
+
+
+ ASPXCodeBehind
+ MaterialIdentificationInspectionRecordEdit.aspx
+
+
+ MaterialIdentificationInspectionRecordEdit.aspx
+
+
+ ASPXCodeBehind
+ MaterialIdentificationInspectionRecordSearch.aspx
+
+
+ MaterialIdentificationInspectionRecordSearch.aspx
MaterialQualityCertificateDoc.aspx
@@ -6806,13 +6771,6 @@
MaterialQualityCertificateDoc.aspx
-
- ConcealedWorksInspectionRecordEdit.aspx
- ASPXCodeBehind
-
-
- ConcealedWorksInspectionRecordEdit.aspx
-
MeasuringInstruments.aspx
ASPXCodeBehind
@@ -6848,6 +6806,48 @@
NDTPersonEdit.aspx
+
+ ASPXCodeBehind
+ PipeFittingInspectionRecord.aspx
+
+
+ PipeFittingInspectionRecord.aspx
+
+
+ ASPXCodeBehind
+ PipeFittingInspectionRecordEdit.aspx
+
+
+ PipeFittingInspectionRecordEdit.aspx
+
+
+ ASPXCodeBehind
+ PipelineInstallationInspectionRecord.aspx
+
+
+ PipelineInstallationInspectionRecord.aspx
+
+
+ ASPXCodeBehind
+ PipelineInstallationInspectionRecordEdit.aspx
+
+
+ PipelineInstallationInspectionRecordEdit.aspx
+
+
+ ASPXCodeBehind
+ PipelinePrefabricationConstructionInspectionRecord.aspx
+
+
+ PipelinePrefabricationConstructionInspectionRecord.aspx
+
+
+ ASPXCodeBehind
+ PipelinePrefabricationConstructionInspectionRecordEdit.aspx
+
+
+ PipelinePrefabricationConstructionInspectionRecordEdit.aspx
+
PipelineTotalTrust.aspx
ASPXCodeBehind
@@ -6869,6 +6869,20 @@
PipeWeldingWorkRecord.aspx
+
+ ASPXCodeBehind
+ ProcessHandoverRecord.aspx
+
+
+ ProcessHandoverRecord.aspx
+
+
+ ASPXCodeBehind
+ ProcessHandoverRecordEdit.aspx
+
+
+ ProcessHandoverRecordEdit.aspx
+
QualifiedWelder.aspx
ASPXCodeBehind
@@ -6891,15 +6905,15 @@
QualityControlPointInspectionEdit.aspx
- RTCheckReport.aspx
ASPXCodeBehind
+ RTCheckReport.aspx
RTCheckReport.aspx
- RTNDTRConfirm.aspx
ASPXCodeBehind
+ RTNDTRConfirm.aspx
RTNDTRConfirm.aspx
@@ -6918,6 +6932,20 @@
SpecialEquipmentMaintenanceEdit.aspx
+
+ ASPXCodeBehind
+ SteelPipeCheckRecord.aspx
+
+
+ SteelPipeCheckRecord.aspx
+
+
+ ASPXCodeBehind
+ SteelPipeCheckRecordEdit.aspx
+
+
+ SteelPipeCheckRecordEdit.aspx
+
TeamWeldingInspection.aspx
ASPXCodeBehind
@@ -6933,19 +6961,47 @@
TeamWeldingInspectionEdit.aspx
- TestQuantityStatistics.aspx
ASPXCodeBehind
+ TestQuantityStatistics.aspx
TestQuantityStatistics.aspx
- TestResultsSummary.aspx
ASPXCodeBehind
+ TestResultsSummary.aspx
TestResultsSummary.aspx
+
+ ASPXCodeBehind
+ ValveInspectionTestRecord.aspx
+
+
+ ValveInspectionTestRecord.aspx
+
+
+ ASPXCodeBehind
+ ValveInspectionTestRecordEdit.aspx
+
+
+ ValveInspectionTestRecordEdit.aspx
+
+
+ ASPXCodeBehind
+ ValveTestConfirmationForm.aspx
+
+
+ ValveTestConfirmationForm.aspx
+
+
+ ASPXCodeBehind
+ ValveTestConfirmationFormEdit.aspx
+
+
+ ValveTestConfirmationFormEdit.aspx
+
WeldingRodBaking.aspx
ASPXCodeBehind
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/AnticorrosionEngineeringInspectionRecord.aspx b/HJGL_DS/FineUIPro.Web/JGZL/AnticorrosionEngineeringInspectionRecord.aspx
new file mode 100644
index 0000000..d5900a0
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/AnticorrosionEngineeringInspectionRecord.aspx
@@ -0,0 +1,118 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AnticorrosionEngineeringInspectionRecord.aspx.cs" Inherits="FineUIPro.Web.JGZL.AnticorrosionEngineeringInspectionRecord" %>
+
+
+
+
+
+
+ 防腐工程质量验收记录
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/AnticorrosionEngineeringInspectionRecord.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/AnticorrosionEngineeringInspectionRecord.aspx.cs
new file mode 100644
index 0000000..b53c36c
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/AnticorrosionEngineeringInspectionRecord.aspx.cs
@@ -0,0 +1,397 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data.SqlClient;
+using System.Data;
+using System.Linq;
+using System.IO;
+
+namespace FineUIPro.Web.JGZL
+{
+ public partial class AnticorrosionEngineeringInspectionRecord : 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);
+ // 默认显示选中的项目
+ if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
+ {
+ this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
+ }
+
+ 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");
+
+ // 默认显示选中的项目
+ string selectedProjectId = this.drpProjectId.SelectedValue;
+ if (!string.IsNullOrEmpty(selectedProjectId) && selectedProjectId != BLL.Const._Null)
+ {
+ projects = projects.Where(e => e.ProjectId == selectedProjectId).ToList();
+
+ // 如果项目存在,则选中该节点
+ if (projects.Any())
+ {
+ this.tvControlItem.SelectedNodeID = selectedProjectId;
+ }
+ }
+
+ 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);
+ }
+
+ if (this.tvControlItem.SelectedNodeID != "0")
+ {
+ this.BindGrid();
+ }
+ }
+ #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 strSql = @"SELECT * from JGZL_AnticorrosionEngineeringInspectionRecord 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));
+ }
+
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+ Grid1.RecordCount = tb.Rows.Count;
+ 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.AnticorrosionEngineeringInspectionRecordService.GetAnticorrosionReportById(this.Grid1.SelectedRowID);
+ if (report != null)
+ {
+ Dictionary keyValuePairs = new Dictionary();
+ keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
+ keyValuePairs.Add("AnticorrosionCurrentStatus", report.AnticorrosionCurrentStatus);
+ keyValuePairs.Add("AnticorrosionPart", report.AnticorrosionPart);
+ keyValuePairs.Add("AnticorrosionRequire", report.AnticorrosionRequire);
+ keyValuePairs.Add("InspectionConclusion", report.InspectionConclusion);
+ 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("AnticorrosionEngineeringInspectionRecordEdit.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_AnticorrosionEngineeringInspectionRecordMenuId, BLL.Const.BtnModify))
+ {
+ if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
+ {
+ if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("AnticorrosionEngineeringInspectionRecordEdit.aspx?anticorrosionId={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_AnticorrosionEngineeringInspectionRecordMenuId, BLL.Const.BtnModify))
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("AnticorrosionEngineeringInspectionRecordEdit.aspx?anticorrosionId={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_AnticorrosionEngineeringInspectionRecordMenuId, 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.AnticorrosionEngineeringInspectionRecordItemService.DeleteAnticorrosionReportItemByAnticorrosionId(rowID);
+ BLL.AnticorrosionEngineeringInspectionRecordService.DeleteAnticorrosionReportById(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/AnticorrosionEngineeringInspectionRecord.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/AnticorrosionEngineeringInspectionRecord.aspx.designer.cs
new file mode 100644
index 0000000..416c7be
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/AnticorrosionEngineeringInspectionRecord.aspx.designer.cs
@@ -0,0 +1,206 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.JGZL
+{
+
+
+ public partial class AnticorrosionEngineeringInspectionRecord
+ {
+
+ ///
+ /// 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/AnticorrosionEngineeringInspectionRecordEdit.aspx b/HJGL_DS/FineUIPro.Web/JGZL/AnticorrosionEngineeringInspectionRecordEdit.aspx
new file mode 100644
index 0000000..bbea091
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/AnticorrosionEngineeringInspectionRecordEdit.aspx
@@ -0,0 +1,140 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AnticorrosionEngineeringInspectionRecordEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.AnticorrosionEngineeringInspectionRecordEdit" %>
+
+
+
+
+
+
+ 编辑防腐工程质量验收记录
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/AnticorrosionEngineeringInspectionRecordEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/AnticorrosionEngineeringInspectionRecordEdit.aspx.cs
new file mode 100644
index 0000000..21727a6
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/AnticorrosionEngineeringInspectionRecordEdit.aspx.cs
@@ -0,0 +1,230 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using Newtonsoft.Json.Linq;
+
+namespace FineUIPro.Web.JGZL
+{
+ public partial class AnticorrosionEngineeringInspectionRecordEdit : PageBase
+ {
+ #region 定义项
+
+ ///
+ /// 主键
+ ///
+ private string AnticorrosionId
+ {
+ get { return (string)ViewState["AnticorrosionId"]; }
+ set { ViewState["AnticorrosionId"] = 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.AnticorrosionId = Request.Params["AnticorrosionId"];
+ if (!string.IsNullOrEmpty(this.AnticorrosionId))
+ {
+ var report = BLL.AnticorrosionEngineeringInspectionRecordService.GetAnticorrosionReportById(this.AnticorrosionId);
+ if (report != null)
+ {
+ this.txtAnticorrosionCurrentStatus.Text = report.AnticorrosionCurrentStatus;
+ this.txtAnticorrosionPart.Text = report.AnticorrosionPart;
+ this.txtAnticorrosionPart.Text = report.AnticorrosionPart;
+ this.txtAnticorrosionRequire.Text = report.AnticorrosionRequire;
+ this.txtInspectionConclusion.Text = report.InspectionConclusion;
+
+ var items = BLL.AnticorrosionEngineeringInspectionRecordItemService.GetAnticorrosionReportItemByAnticorrosionId(this.AnticorrosionId);
+ if (items != null)
+ {
+ Grid1.DataSource = items;
+ Grid1.DataBind();
+ }
+ }
+ }
+
+ }
+ }
+
+ #endregion
+
+ #region 提交按钮
+
+ ///
+ /// 提交按钮
+ ///
+ ///
+ ///
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId,
+ Const.JGZL_AnticorrosionEngineeringInspectionRecordMenuId, Const.BtnSave))
+ {
+ Model.JGZL_AnticorrosionEngineeringInspectionRecord newReport = new Model.JGZL_AnticorrosionEngineeringInspectionRecord();
+ newReport.AnticorrosionCurrentStatus = this.txtAnticorrosionCurrentStatus.Text.Trim();
+ newReport.AnticorrosionPart = this.txtAnticorrosionPart.Text.Trim();
+ newReport.AnticorrosionRequire = this.txtAnticorrosionRequire.Text;
+ newReport.InspectionConclusion = this.txtInspectionConclusion.Text;
+ if (!string.IsNullOrEmpty(this.AnticorrosionId))
+ {
+ newReport.AnticorrosionId = this.AnticorrosionId;
+ BLL.AnticorrosionEngineeringInspectionRecordService.UpdateAnticorrosionReport(newReport);
+ }
+ else
+ {
+ newReport.ProjectId = this.ProjectId;
+ newReport.CompileMan = this.CurrUser.UserId;
+ newReport.CompileDate = DateTime.Now;
+ newReport.AnticorrosionId = SQLHelper.GetNewID(typeof(Model.JGZL_AnticorrosionEngineeringInspectionRecord));
+ this.AnticorrosionId = newReport.AnticorrosionId;
+ BLL.AnticorrosionEngineeringInspectionRecordService.AddAnticorrosionReport(newReport);
+ }
+ //保存明细
+ saveItem();
+ ShowNotify("保存成功!", MessageBoxIcon.Success);
+ PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+
+ #endregion
+
+ #region 数据行
+
+ protected void btnAddGrid1_Click(object sender, EventArgs e)
+ {
+ Grid1.Hidden = false;
+
+ JArray teamGroupData = Grid1.GetMergedData();
+ List list = new List();
+ foreach (JObject teamGroupRow in teamGroupData)
+ {
+ JObject values = teamGroupRow.Value("values");
+ list.Add(values);
+ }
+
+ JObject defaultObj = new JObject
+ {
+ { "AnticorrosionItemId", Guid.NewGuid() },
+ { "AnticorrosionId", AnticorrosionId },
+ { "Part", "" },
+ { "MaterialName", "" },
+ { "Grade", "" },
+ { "Manufacturer", "" },
+ { "PlanFilmThickness", "" },
+ { "ActualFilmThickness", "" },
+ {
+ "Delete3",
+ String.Format("
",
+ GetDeleteScriptGrid1(), IconHelper.GetResolvedIconUrl(Icon.Delete))
+ }
+ };
+ list.Add(defaultObj);
+ Grid1.DataSource = list;
+ Grid1.DataBind();
+ }
+
+ protected void Grid3_PreDataBound(object sender, EventArgs e)
+ {
+ // 设置LinkButtonField的点击客户端事件
+ LinkButtonField deleteField = Grid1.FindColumn("Delete3") as LinkButtonField;
+ deleteField.OnClientClick = GetDeleteScriptGrid1();
+ }
+
+ ///
+ /// 删除提示
+ ///
+ ///
+ private string GetDeleteScriptGrid1()
+ {
+ return Confirm.GetShowReference("删除选中行?", String.Empty, MessageBoxIcon.Question,
+ Grid1.GetDeleteSelectedRowsReference(), String.Empty);
+ }
+
+ #endregion
+
+ #region 排序
+ ///
+ /// 排序
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ {
+ // List GetBlowingCleaningItem = this.CollectGridJointInfo();
+ // this.BindGrid(GetBlowingCleaningItem);
+ }
+ #endregion
+
+ #region 获取Grid数据
+
+
+ void saveItem()
+ {
+ List detailLists = new List();
+ JArray teamGroupData = Grid1.GetMergedData();
+ foreach (JObject teamGroupRow in teamGroupData)
+ {
+ JObject values = teamGroupRow.Value("values");
+ int rowIndex = teamGroupRow.Value("index");
+ Model.JGZL_AnticorrosionEngineeringInspectionRecordItem newDetail = new Model.JGZL_AnticorrosionEngineeringInspectionRecordItem
+ {
+ AnticorrosionItemId = values.Value("AnticorrosionItemId"),
+ AnticorrosionId = AnticorrosionId,
+ Part = values.Value("Part"),
+ MaterialName = values.Value("MaterialName"),
+ Grade = values.Value("Grade"),
+ Manufacturer = values.Value("Manufacturer"),
+ PlanFilmThickness = values.Value("PlanFilmThickness"),
+ ActualFilmThickness = values.Value("ActualFilmThickness"),
+ };
+ detailLists.Add(newDetail);
+ }
+
+ try
+ {
+ var result = Funs.DB.JGZL_AnticorrosionEngineeringInspectionRecordItem.Where(a => a.AnticorrosionId == AnticorrosionId);
+ Funs.DB.JGZL_AnticorrosionEngineeringInspectionRecordItem.DeleteAllOnSubmit(result);
+ if (detailLists.Count > 0)
+ {
+ Funs.DB.JGZL_AnticorrosionEngineeringInspectionRecordItem.InsertAllOnSubmit(detailLists);
+ }
+
+ Funs.DB.SubmitChanges();
+ }
+ catch (Exception)
+ {
+ return;
+ }
+ }
+
+
+
+ #endregion
+
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/AnticorrosionEngineeringInspectionRecordEdit.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/AnticorrosionEngineeringInspectionRecordEdit.aspx.designer.cs
new file mode 100644
index 0000000..dae60cc
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/AnticorrosionEngineeringInspectionRecordEdit.aspx.designer.cs
@@ -0,0 +1,215 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.JGZL
+{
+
+
+ public partial class AnticorrosionEngineeringInspectionRecordEdit
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// panelCenterRegion 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel panelCenterRegion;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// txtAnticorrosionCurrentStatus 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtAnticorrosionCurrentStatus;
+
+ ///
+ /// txtAnticorrosionPart 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtAnticorrosionPart;
+
+ ///
+ /// txtAnticorrosionRequire 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtAnticorrosionRequire;
+
+ ///
+ /// txtInspectionConclusion 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtInspectionConclusion;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// Button3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button Button3;
+
+ ///
+ /// txtPart 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPart;
+
+ ///
+ /// txtMaterialName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtMaterialName;
+
+ ///
+ /// txtGrade 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtGrade;
+
+ ///
+ /// txtManufacturer 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtManufacturer;
+
+ ///
+ /// txtPlanFilmThickness 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPlanFilmThickness;
+
+ ///
+ /// txtActualFilmThickness 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtActualFilmThickness;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+ }
+}
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecord.aspx b/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecord.aspx
new file mode 100644
index 0000000..b223bb1
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecord.aspx
@@ -0,0 +1,130 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MaterialIdentificationInspectionRecord.aspx.cs" Inherits="FineUIPro.Web.JGZL.MaterialIdentificationInspectionRecord" %>
+
+
+
+
+
+
+ 管道材料材质标识检查记录
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecord.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecord.aspx.cs
new file mode 100644
index 0000000..3c4ec00
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecord.aspx.cs
@@ -0,0 +1,396 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data.SqlClient;
+using System.Data;
+using System.Linq;
+using System.IO;
+
+
+namespace FineUIPro.Web.JGZL
+{
+ public partial class MaterialIdentificationInspectionRecord : 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);
+ // 默认显示选中的项目
+ if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
+ {
+ this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
+ }
+
+ 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");
+
+ // 默认显示选中的项目
+ string selectedProjectId = this.drpProjectId.SelectedValue;
+ if (!string.IsNullOrEmpty(selectedProjectId) && selectedProjectId != BLL.Const._Null)
+ {
+ projects = projects.Where(e => e.ProjectId == selectedProjectId).ToList();
+
+ // 如果项目存在,则选中该节点
+ if (projects.Any())
+ {
+ this.tvControlItem.SelectedNodeID = selectedProjectId;
+ }
+ }
+
+ 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);
+ }
+
+ if (this.tvControlItem.SelectedNodeID != "0")
+ {
+ this.BindGrid();
+ }
+ }
+ #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 strSql = @"SELECT a.*,b.ISO_IsoNo,c.STE_Code from JGZL_MaterialIdentificationInspectionRecord a
+ left join HJGL_PW_IsoInfo b on a.ISO_Id = b.ISO_Id
+ left join HJGL_BS_Steel c on a.STE_ID = c.STE_ID
+ where 1=1 ";
+ List listStr = new List();
+ if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
+ {
+ strSql += " AND a.ProjectId = @ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
+ }
+
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+ Grid1.RecordCount = tb.Rows.Count;
+ 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.MaterialIdentificationInspectionRecordService.GetRecordById(this.Grid1.SelectedRowID);
+ if (report != null)
+ {
+ Dictionary keyValuePairs = new Dictionary();
+ keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
+ BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
+ }
+ initTemplatePath = "File\\Fastreport\\JGZL\\管道材料材质标识检查记录.frx";
+ if (File.Exists(rootPath + initTemplatePath))
+ {
+ PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
+ }
+ }
+ else
+ {
+ Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ else
+ {
+ Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ #endregion
+
+ #region 维护
+ ///
+ /// 增加
+ ///
+ ///
+ ///
+ protected void btnAdd_Click(object sender, EventArgs e)
+ {
+ if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("MaterialIdentificationInspectionRecordEdit.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_MaterialIdentificationInspectionRecordMenuId, BLL.Const.BtnModify))
+ {
+ if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
+ {
+ if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("MaterialIdentificationInspectionRecordEdit.aspx?recordId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
+ }
+ else
+ {
+ Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ else
+ {
+ Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ else
+ {
+ ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+
+ ///
+ /// 右键编辑
+ ///
+ ///
+ ///
+ protected void btnMenuEdit_Click(object sender, EventArgs e)
+ {
+ if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_MaterialIdentificationInspectionRecordMenuId, BLL.Const.BtnModify))
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("MaterialIdentificationInspectionRecordEdit.aspx?recordId={0}", Grid1.SelectedRowID, "维护 - ")));
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+
+ ///
+ /// 右键删除
+ ///
+ ///
+ ///
+ protected void btnMenuDelete_Click(object sender, EventArgs e)
+ {
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_MaterialIdentificationInspectionRecordMenuId, 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.MaterialIdentificationInspectionRecordService.DeleteRecordById(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/MaterialIdentificationInspectionRecord.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecord.aspx.designer.cs
new file mode 100644
index 0000000..5835189
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecord.aspx.designer.cs
@@ -0,0 +1,206 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.JGZL
+{
+
+
+ public partial class MaterialIdentificationInspectionRecord
+ {
+
+ ///
+ /// 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/MaterialIdentificationInspectionRecordEdit.aspx b/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecordEdit.aspx
new file mode 100644
index 0000000..112789b
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecordEdit.aspx
@@ -0,0 +1,76 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MaterialIdentificationInspectionRecordEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.MaterialIdentificationInspectionRecordEdit" %>
+
+
+
+
+
+
+ 编辑材料质量证明文件一览表
+
+
+
+
+
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecordEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecordEdit.aspx.cs
new file mode 100644
index 0000000..11ca3e2
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecordEdit.aspx.cs
@@ -0,0 +1,185 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace FineUIPro.Web.JGZL
+{
+ public partial class MaterialIdentificationInspectionRecordEdit : PageBase
+ {
+ #region 定义项
+
+ ///
+ /// 主键
+ ///
+ private string RecordId
+ {
+ get { return (string)ViewState["RecordId"]; }
+ set { ViewState["RecordId"] = value; }
+ }
+
+ ///
+ /// 项目Id
+ ///
+ private string ProjectId
+ {
+ get { return (string)ViewState["ProjectId"]; }
+ set { ViewState["ProjectId"] = value; }
+ }
+
+ #endregion
+
+ #region 加载页面
+
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.ProjectId = Request.Params["projectId"];
+ this.RecordId = Request.Params["recordId"];
+ if (!string.IsNullOrEmpty(this.RecordId))
+ {
+ var report =
+ BLL.MaterialIdentificationInspectionRecordService.GetRecordById(this.RecordId);
+ if (report != null)
+ {
+
+ this.ProjectId = report.ProjectId;
+ if (!string.IsNullOrEmpty(report.ISO_Id))
+ {
+ this.txtISO_Id.Text = report.ISO_Id;
+ var isoInfo = Funs.DB.HJGL_PW_IsoInfo.FirstOrDefault(x => x.ISO_ID == report.ISO_Id);
+ if (isoInfo != null)
+ {
+ this.txtISO_IsoNo.Text = isoInfo.ISO_IsoNo;
+ }
+ }
+
+ if (!string.IsNullOrEmpty(report.STE_ID))
+ {
+ this.txtSTE_ID.Text = report.STE_ID;
+ this.txtSTE_Code.Text = BLL.HJGL_MaterialService.GetSteelBySteID(report.STE_ID).STE_Code;
+ }
+
+
+
+ this.txtSpecifications.Text = report.Specifications;
+ this.txtPrescribedColor.Text = report.PrescribedColor;
+ this.txtTubeIdentificationStatus.Text = report.TubeIdentificationStatus;
+ this.txtPipeFittingName.Text = report.PipeFittingName;
+ this.txtPipeFittingStatus.Text = report.PipeFittingStatus;
+ this.txtConclusion.Text = report.Conclusion;
+ }
+ }
+ }
+ }
+
+ #endregion
+
+ #region 提交按钮
+
+ ///
+ /// 提交按钮
+ ///
+ ///
+ ///
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId,
+ Const.JGZL_MaterialIdentificationInspectionRecordMenuId, Const.BtnSave))
+ {
+ Model.JGZL_MaterialIdentificationInspectionRecord newReport = new Model.JGZL_MaterialIdentificationInspectionRecord();
+ newReport.ISO_Id = this.txtISO_Id.Text.Trim();
+ newReport.STE_ID = this.txtSTE_ID.Text.Trim();
+ newReport.Specifications = this.txtSpecifications.Text.Trim();
+ newReport.PrescribedColor = this.txtPrescribedColor.Text.Trim();
+ newReport.TubeIdentificationStatus = this.txtTubeIdentificationStatus.Text.Trim();
+ newReport.PipeFittingName = this.txtPipeFittingName.Text.Trim();
+ newReport.PipeFittingStatus = this.txtPipeFittingStatus.Text.Trim();
+ newReport.Conclusion = this.txtConclusion.Text.Trim();
+
+ if (!string.IsNullOrEmpty(this.RecordId))
+ {
+ newReport.RecordId = this.RecordId;
+ BLL.MaterialIdentificationInspectionRecordService.UpdateRecord(newReport);
+ }
+ else
+ {
+ newReport.ProjectId = this.ProjectId;
+ newReport.CompileMan = this.CurrUser.UserId;
+ newReport.CompileDate = DateTime.Now;
+ newReport.RecordId = SQLHelper.GetNewID(typeof(Model.JGZL_MaterialIdentificationInspectionRecord));
+ this.RecordId = newReport.RecordId;
+ BLL.MaterialIdentificationInspectionRecordService.AddRecord(newReport);
+ }
+
+ ShowNotify("保存成功!", MessageBoxIcon.Success);
+ PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+
+ #endregion
+
+
+ #region 查找
+
+ ///
+ /// 查找未焊接焊口
+ ///
+ ///
+ ///
+ protected void ckSelect_Click(object sender, EventArgs e)
+ {
+ string strList = this.ProjectId + "|" + "";
+ string window = String.Format("MaterialIdentificationInspectionRecordSearch.aspx?strList={0}", strList, "编辑 - ");
+ PageContext.RegisterStartupScript(Window1.GetSaveStateReference(hdItemsString.ClientID) +
+ Window1.GetShowReference(window));
+ }
+
+ #endregion
+
+ #region Grid 关闭弹出窗口事件
+
+ ///
+ /// 关闭弹出窗口
+ ///
+ ///
+ ///
+ protected void Window1_Close(object sender, WindowCloseEventArgs e)
+ {
+ List list = Funs.GetStrListByStr(hdItemsString.Text, '|');
+ if (list.Count() > 0)
+ {
+ var isoItem = list[0];
+
+ var isoInfos = from x in Funs.DB.HJGL_PW_IsoInfo select x;
+
+ string[] strs = isoItem.Split(',');
+
+ var isoInfo = isoInfos.FirstOrDefault(x => x.ISO_ID == strs[0]);
+ if (isoInfo != null)
+ {
+ this.txtISO_IsoNo.Text = isoInfo.ISO_IsoNo;
+ this.txtSTE_Code.Text = BLL.HJGL_MaterialService.GetSteelBySteID(isoInfo.STE_ID).STE_Code;
+
+ this.txtISO_Id.Text = isoInfo.ISO_ID;
+ this.txtSTE_ID.Text = isoInfo.STE_ID;
+ }
+
+ }
+ }
+
+
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecordEdit.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecordEdit.aspx.designer.cs
new file mode 100644
index 0000000..5ba207e
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecordEdit.aspx.designer.cs
@@ -0,0 +1,197 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.JGZL
+{
+
+
+ public partial class MaterialIdentificationInspectionRecordEdit
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// hdItemsString 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HiddenField hdItemsString;
+
+ ///
+ /// txtISO_Id 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HiddenField txtISO_Id;
+
+ ///
+ /// txtSTE_ID 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HiddenField txtSTE_ID;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// txtISO_IsoNo 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtISO_IsoNo;
+
+ ///
+ /// btnSelect 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSelect;
+
+ ///
+ /// txtSTE_Code 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtSTE_Code;
+
+ ///
+ /// txtSpecifications 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtSpecifications;
+
+ ///
+ /// txtPrescribedColor 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPrescribedColor;
+
+ ///
+ /// txtTubeIdentificationStatus 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtTubeIdentificationStatus;
+
+ ///
+ /// txtPipeFittingName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPipeFittingName;
+
+ ///
+ /// txtPipeFittingStatus 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPipeFittingStatus;
+
+ ///
+ /// txtBox1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtBox1;
+
+ ///
+ /// txtConclusion 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtConclusion;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+ }
+}
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecordSearch.aspx b/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecordSearch.aspx
new file mode 100644
index 0000000..8f5817c
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecordSearch.aspx
@@ -0,0 +1,51 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MaterialIdentificationInspectionRecordSearch.aspx.cs" Inherits="FineUIPro.Web.JGZL.MaterialIdentificationInspectionRecordSearch" %>
+
+
+
+
+
+
+ 查找管线
+
+
+
+
+
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecordSearch.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecordSearch.aspx.cs
new file mode 100644
index 0000000..5e839c8
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecordSearch.aspx.cs
@@ -0,0 +1,193 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data.SqlClient;
+using System.Data;
+using System.Linq;
+
+namespace FineUIPro.Web.JGZL
+{
+ public partial class MaterialIdentificationInspectionRecordSearch : PageBase
+ {
+ #region 定义项
+
+ ///
+ /// 管线Id
+ ///
+ public string ISO_ID
+ {
+ get { return (string)ViewState["ISO_ID"]; }
+ set { ViewState["ISO_ID"] = value; }
+ }
+
+ public List SelectInfo
+ {
+ get { return (List)ViewState["SelectInfo"]; }
+ set { ViewState["SelectInfo"] = value; }
+ }
+
+ ///
+ /// 项目
+ ///
+ public string ProjectId
+ {
+ get { return (string)ViewState["ProjectId"]; }
+ set { ViewState["ProjectId"] = value; }
+ }
+
+ ///
+ /// 被选择项列表
+ ///
+ public List SelectedList
+ {
+ get { return (List)ViewState["SelectedList"]; }
+ set { ViewState["SelectedList"] = value; }
+ }
+
+ #endregion
+
+ #region 加载页面
+
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.SelectedList = new List();
+ this.SelectInfo = new List();
+
+ string strList = Request.Params["strList"];
+ List list = Funs.GetStrListByStr(strList, '|');
+ if (list.Count() == 2)
+ {
+ this.ProjectId = list[0];
+ this.BindGrid();
+ }
+ }
+ }
+
+ #endregion
+
+ #region 数据绑定
+
+ ///
+ /// 数据绑定
+ ///
+ private void BindGrid()
+ {
+ string strSql =
+ @"select isoInfo.ISO_ID,isoInfo.ProjectId,isoInfo.ISO_IsoNo,isoInfo.STE_ID,steel.STE_Code from HJGL_PW_IsoInfo isoInfo
+ left join HJGL_BS_Steel as steel on steel.STE_ID=isoInfo.STE_ID
+ where isoInfo.ProjectId=@ProjectId ";
+ List listStr = new List();
+ listStr.Add(new SqlParameter("@ProjectId", this.ProjectId));
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter);
+
+ string isoIds = Request.Params["isoIds"];
+ if (!string.IsNullOrEmpty(isoIds))
+ {
+ string[] isos = isoIds.Split('|');
+ foreach (string isoId in isos)
+ {
+ DataRow r = dt.Select("ISO_ID='" + isoId + "'").FirstOrDefault();
+ if (r != null)
+ {
+ dt.Rows.Remove(r);
+ }
+ }
+ }
+
+ // 2.获取当前分页数据
+ Grid1.RecordCount = dt.Rows.Count;
+ Grid1.DataSource = dt;
+ Grid1.DataBind();
+ }
+
+ #endregion
+
+ #region 排序
+
+ ///
+ /// 排序
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ {
+ this.BindGrid();
+ }
+
+ #endregion
+
+ #region 查询
+
+ ///
+ /// 查询
+ ///
+ ///
+ ///
+ protected void txtIsoNo_TextChanged(object sender, EventArgs e)
+ {
+ this.BindGrid();
+ }
+
+ #endregion
+
+ #region 确定
+
+ ///
+ /// 确定按钮
+ ///
+ ///
+ ///
+ protected void btnSure_Click(object sender, EventArgs e)
+ {
+ string itemsString = "";
+ string[] selectRowId = Grid1.SelectedRowIDArray;
+ int n = 0;
+ int j = 0;
+ int[] selections = new int[selectRowId.Count()];
+ foreach (GridRow row in Grid1.Rows)
+ {
+ if (selectRowId.Contains(row.DataKeys[0]))
+ {
+ selections[n] = j;
+ n++;
+ }
+
+ j++;
+ }
+
+ var select = selections.Distinct();
+ string isoIds = Request.Params["isoIds"];
+ if (!string.IsNullOrEmpty(isoIds))
+ {
+ string[] isoInfos = isoIds.Split('|');
+ foreach (string isoId in isoInfos)
+ {
+ itemsString += isoId + "|";
+ }
+ }
+
+ foreach (int i in select)
+ {
+ string rowID = Grid1.DataKeys[i][0].ToString();
+ string ids = rowID;
+ if (!itemsString.Contains(rowID))
+ {
+ itemsString += ids + "|";
+ }
+ }
+
+ PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(itemsString)
+ + ActiveWindow.GetHidePostBackReference());
+ }
+
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecordSearch.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecordSearch.aspx.designer.cs
new file mode 100644
index 0000000..8117fe7
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/MaterialIdentificationInspectionRecordSearch.aspx.designer.cs
@@ -0,0 +1,98 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.JGZL
+{
+
+
+ public partial class MaterialIdentificationInspectionRecordSearch
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// panelCenterRegion 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel panelCenterRegion;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// txtIsoNo 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtIsoNo;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnSure 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSure;
+ }
+}
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/SteelPipeCheckRecord.aspx b/HJGL_DS/FineUIPro.Web/JGZL/SteelPipeCheckRecord.aspx
new file mode 100644
index 0000000..f810d37
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/SteelPipeCheckRecord.aspx
@@ -0,0 +1,137 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SteelPipeCheckRecord.aspx.cs" Inherits="FineUIPro.Web.JGZL.SteelPipeCheckRecord" %>
+
+
+
+
+
+
+ 钢管检查验收记录
+
+
+
+
+
+
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/SteelPipeCheckRecord.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/SteelPipeCheckRecord.aspx.cs
new file mode 100644
index 0000000..4a29609
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/SteelPipeCheckRecord.aspx.cs
@@ -0,0 +1,404 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data.SqlClient;
+using System.Data;
+using System.Linq;
+using System.IO;
+namespace FineUIPro.Web.JGZL
+{
+ public partial class SteelPipeCheckRecord : 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);
+ // 默认显示选中的项目
+ if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
+ {
+ this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
+ }
+
+ 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");
+
+ // 默认显示选中的项目
+ string selectedProjectId = this.drpProjectId.SelectedValue;
+ if (!string.IsNullOrEmpty(selectedProjectId) && selectedProjectId != BLL.Const._Null)
+ {
+ projects = projects.Where(e => e.ProjectId == selectedProjectId).ToList();
+
+ // 如果项目存在,则选中该节点
+ if (projects.Any())
+ {
+ this.tvControlItem.SelectedNodeID = selectedProjectId;
+ }
+ }
+
+ 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);
+ }
+
+ if (this.tvControlItem.SelectedNodeID != "0")
+ {
+ this.BindGrid();
+ }
+ }
+ #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 strSql = @"SELECT * from JGZL_SteelPipeCheckRecord 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));
+ }
+
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+ Grid1.RecordCount = tb.Rows.Count;
+ 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.SteelPipeCheckRecordService.GetSteelPipeReportById(this.Grid1.SelectedRowID);
+ if (report != null)
+ {
+ Dictionary keyValuePairs = new Dictionary();
+ keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
+ keyValuePairs.Add("ContractCode", report.ContractCode);
+ keyValuePairs.Add("ArrivalDate", string.Format("{0:yyyy年MM月dd日}", report.ArrivalDate));
+ keyValuePairs.Add("ExecutionStandard", report.ExecutionStandard);
+ keyValuePairs.Add("Crack", report.Crack);
+ keyValuePairs.Add("SlagInclusion", report.SlagInclusion);
+ keyValuePairs.Add("ShrinkageHole", report.ShrinkageHole);
+ keyValuePairs.Add("HeavyLeather", report.HeavyLeather);
+ keyValuePairs.Add("Other", report.Other);
+ keyValuePairs.Add("Remark", report.Remark);
+ 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("SteelPipeCheckRecordEdit.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_SteelPipeCheckRecordMenuId, BLL.Const.BtnModify))
+ {
+ if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
+ {
+ if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SteelPipeCheckRecordEdit.aspx?recordId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
+ }
+ else
+ {
+ Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ else
+ {
+ Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ else
+ {
+ ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+
+ ///
+ /// 右键编辑
+ ///
+ ///
+ ///
+ protected void btnMenuEdit_Click(object sender, EventArgs e)
+ {
+ if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_SteelPipeCheckRecordMenuId, BLL.Const.BtnModify))
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SteelPipeCheckRecordEdit.aspx?recordId={0}", Grid1.SelectedRowID, "维护 - ")));
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+
+ ///
+ /// 右键删除
+ ///
+ ///
+ ///
+ protected void btnMenuDelete_Click(object sender, EventArgs e)
+ {
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_SteelPipeCheckRecordMenuId, 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;
+ //删除附件
+ AttachFileService.GetAttachFile(rowID, BLL.Const.JGZL_SteelPipeCheckRecordMenuId);
+ BLL.SteelPipeCheckRecordItem1Service.DeleteSteelPipeItem1ByRecordId(rowID);
+ BLL.SteelPipeCheckRecordItem2Service.DeleteSteelPipeItem2ByRecordId(rowID);
+ BLL.SteelPipeCheckRecordService.DeleteSteelPipeReportById(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/SteelPipeCheckRecord.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/SteelPipeCheckRecord.aspx.designer.cs
new file mode 100644
index 0000000..0d9c842
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/SteelPipeCheckRecord.aspx.designer.cs
@@ -0,0 +1,206 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.JGZL
+{
+
+
+ public partial class SteelPipeCheckRecord
+ {
+
+ ///
+ /// 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/SteelPipeCheckRecordEdit.aspx b/HJGL_DS/FineUIPro.Web/JGZL/SteelPipeCheckRecordEdit.aspx
new file mode 100644
index 0000000..8fdab7a
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/SteelPipeCheckRecordEdit.aspx
@@ -0,0 +1,249 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SteelPipeCheckRecordEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.SteelPipeCheckRecordEdit" %>
+
+
+
+
+
+
+ 编辑钢管检查验收记录
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/SteelPipeCheckRecordEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/SteelPipeCheckRecordEdit.aspx.cs
new file mode 100644
index 0000000..bf2bd80
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/SteelPipeCheckRecordEdit.aspx.cs
@@ -0,0 +1,409 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using Newtonsoft.Json.Linq;
+using System.IO;
+
+namespace FineUIPro.Web.JGZL
+{
+ public partial class SteelPipeCheckRecordEdit : PageBase
+ {
+ #region 定义项
+
+ ///
+ /// 主键
+ ///
+ private string RecordId
+ {
+ get { return (string)ViewState["RecordId"]; }
+ set { ViewState["RecordId"] = value; }
+ }
+
+ ///
+ /// 项目Id
+ ///
+ private string ProjectId
+ {
+ get { return (string)ViewState["ProjectId"]; }
+ set { ViewState["ProjectId"] = value; }
+ }
+
+ ///
+ /// 附件路径
+ ///
+ public string FullAttachUrl
+ {
+ get
+ {
+ return (string)ViewState["FullAttachUrl"];
+ }
+ set
+ {
+ ViewState["FullAttachUrl"] = value;
+ }
+ }
+
+ #endregion
+
+ #region 加载页面
+
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.ProjectId = Request.Params["projectId"];
+ this.RecordId = Request.Params["RecordId"];
+ if (!string.IsNullOrEmpty(this.RecordId))
+ {
+ var report =
+ BLL.SteelPipeCheckRecordService.GetSteelPipeReportById(
+ this.RecordId);
+ if (report != null)
+ {
+ this.hdAttach.Text = report.RecordId;
+ this.ProjectId = report.ProjectId;
+ this.RecordId = report.RecordId;
+ this.txtContractCode.Text = report.ContractCode;
+ this.txtArrivalDate.Text = report.ArrivalDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.ArrivalDate) : "";
+ this.txtExecutionStandard.Text = report.ExecutionStandard;
+ this.txtCrack.Text = report.Crack;
+ this.txtSlagInclusion.Text = report.SlagInclusion;
+ this.txtShrinkageHole.Text = report.ShrinkageHole;
+ this.txtHeavyLeather.Text = report.HeavyLeather;
+ this.txtOther.Text = report.Other;
+ this.txtRemark.Text = report.Remark;
+
+ var item1s = BLL.SteelPipeCheckRecordItem1Service
+ .GetSteelPipeItem1ByRecordId(this.RecordId);
+ if (item1s != null)
+ {
+ Grid1.DataSource = item1s;
+ Grid1.DataBind();
+ }
+
+ var item2s = BLL.SteelPipeCheckRecordItem2Service
+ .GetSteelPipeItem2ByRecordId(this.RecordId);
+ if (item2s != null)
+ {
+ Grid2.DataSource = item2s;
+ Grid2.DataBind();
+ }
+ }
+ }
+ }
+ }
+
+ #endregion
+
+ #region 提交按钮
+
+ ///
+ /// 提交按钮
+ ///
+ ///
+ ///
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId,
+ Const.JGZL_SteelPipeCheckRecordMenuId, Const.BtnSave))
+ {
+ Model.JGZL_SteelPipeCheckRecord newReport =
+ new Model.JGZL_SteelPipeCheckRecord();
+ newReport.ContractCode = this.txtContractCode.Text.Trim();
+ newReport.ArrivalDate = Funs.GetNewDateTime(this.txtArrivalDate.Text);
+ newReport.ExecutionStandard = this.txtExecutionStandard.Text;
+ newReport.Crack = this.txtCrack.Text;
+ newReport.SlagInclusion = this.txtSlagInclusion.Text;
+ newReport.ShrinkageHole = this.txtShrinkageHole.Text;
+ newReport.HeavyLeather = this.txtHeavyLeather.Text;
+ newReport.Other = this.txtOther.Text;
+ newReport.Remark = this.txtRemark.Text;
+ if (!string.IsNullOrEmpty(this.RecordId))
+ {
+ newReport.RecordId = this.RecordId;
+ BLL.SteelPipeCheckRecordService.UpdateSteelPipeReport(newReport);
+ }
+ else
+ {
+
+ if (!string.IsNullOrEmpty(hdAttach.Text))
+ {
+ newReport.RecordId = hdAttach.Text.ToString();
+ }
+ else
+ {
+ newReport.RecordId = SQLHelper.GetNewID(typeof(Model.JGZL_SteelPipeCheckRecord));
+
+ }
+ newReport.ProjectId = this.ProjectId;
+ newReport.CompileMan = this.CurrUser.UserId;
+ newReport.CompileDate = DateTime.Now;
+ this.RecordId = newReport.RecordId;
+ BLL.SteelPipeCheckRecordService.AddSteelPipeReport(newReport);
+ }
+
+ //保存明细
+ saveItem1();
+ saveItem2();
+ ShowNotify("保存成功!", MessageBoxIcon.Success);
+ PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+
+ #endregion
+
+
+ #region 数据行
+
+ protected void btnAddGrid1_Click(object sender, EventArgs e)
+ {
+ Grid1.Hidden = false;
+
+ JArray teamGroupData = Grid1.GetMergedData();
+ List list = new List();
+ foreach (JObject teamGroupRow in teamGroupData)
+ {
+ JObject values = teamGroupRow.Value("values");
+ list.Add(values);
+ }
+
+ JObject defaultObj = new JObject
+ {
+ { "RecordItemId", Guid.NewGuid() },
+ { "RecordId", RecordId },
+ { "Name", "" },
+ { "Material", "" },
+ { "Specifications", "" },
+ { "Quantity", "" },
+ { "MaterialCertificateCode", "" },
+ { "HeatCode", "" },
+ { "MaterialCertificateSelfNumber", "" },
+ {
+ "Delete1",
+ String.Format("
",
+ GetDeleteScriptGrid1(), IconHelper.GetResolvedIconUrl(Icon.Delete))
+ }
+ };
+ list.Add(defaultObj);
+ Grid1.DataSource = list;
+ Grid1.DataBind();
+ }
+
+ protected void Grid1_PreDataBound(object sender, EventArgs e)
+ {
+ // 设置LinkButtonField的点击客户端事件
+ LinkButtonField deleteField = Grid1.FindColumn("Delete1") as LinkButtonField;
+ deleteField.OnClientClick = GetDeleteScriptGrid1();
+ }
+
+ ///
+ /// 删除提示
+ ///
+ ///
+ private string GetDeleteScriptGrid1()
+ {
+ return Confirm.GetShowReference("删除选中行?", String.Empty, MessageBoxIcon.Question,
+ Grid1.GetDeleteSelectedRowsReference(), String.Empty);
+ }
+
+
+
+
+
+ protected void btnAddGrid2_Click(object sender, EventArgs e)
+ {
+ Grid2.Hidden = false;
+
+ JArray teamGroupData = Grid2.GetMergedData();
+ List list = new List();
+ foreach (JObject teamGroupRow in teamGroupData)
+ {
+ JObject values = teamGroupRow.Value("values");
+ list.Add(values);
+ }
+
+ JObject defaultObj = new JObject
+ {
+ { "RecordItemId", Guid.NewGuid() },
+ { "RecordId", RecordId },
+ { "Part1", "" },
+ { "Part2", "" },
+ { "Part3", "" },
+ { "Part4", "" },
+ { "InnerDiameter", "" },
+ { "OuterDiameter", "" },
+ { "Lengths", "" },
+ {
+ "Delete2",
+ String.Format("
",
+ GetDeleteScriptGrid2(), IconHelper.GetResolvedIconUrl(Icon.Delete))
+ }
+ };
+ list.Add(defaultObj);
+ Grid2.DataSource = list;
+ Grid2.DataBind();
+ }
+
+ protected void Grid2_PreDataBound(object sender, EventArgs e)
+ {
+ // 设置LinkButtonField的点击客户端事件
+ LinkButtonField deleteField = Grid2.FindColumn("Delete2") as LinkButtonField;
+ deleteField.OnClientClick = GetDeleteScriptGrid2();
+ }
+
+ ///
+ /// 删除提示
+ ///
+ ///
+ private string GetDeleteScriptGrid2()
+ {
+ return Confirm.GetShowReference("删除选中行?", String.Empty, MessageBoxIcon.Question,
+ Grid2.GetDeleteSelectedRowsReference(), String.Empty);
+ }
+
+ #endregion
+
+
+ #region 排序
+
+ ///
+ /// 排序
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ {
+ // List GetBlowingCleaningItem = this.CollectGridJointInfo();
+ // this.BindGrid(GetBlowingCleaningItem);
+ }
+
+ protected void Grid2_Sort(object sender, GridSortEventArgs e)
+ {
+ // List GetBlowingCleaningItem = this.CollectGridJointInfo();
+ // this.BindGrid(GetBlowingCleaningItem);
+ }
+
+ #endregion
+
+ #region 获取Grid数据
+
+ void saveItem1()
+ {
+ List detailLists =
+ new List();
+ JArray teamGroupData = Grid1.GetMergedData();
+ foreach (JObject teamGroupRow in teamGroupData)
+ {
+ JObject values = teamGroupRow.Value("values");
+ int rowIndex = teamGroupRow.Value("index");
+ Model.JGZL_SteelPipeCheckRecordItem1 newDetail =
+ new Model.JGZL_SteelPipeCheckRecordItem1
+ {
+ RecordItemId = values.Value("RecordItemId"),
+ RecordId = RecordId,
+ Name = values.Value("Name"),
+ Material = values.Value("Material"),
+ Specifications = values.Value("Specifications"),
+ Quantity = values.Value("Quantity"),
+ MaterialCertificateCode = values.Value("MaterialCertificateCode"),
+ HeatCode = values.Value("HeatCode"),
+ MaterialCertificateSelfNumber = values.Value("MaterialCertificateSelfNumber"),
+ };
+ detailLists.Add(newDetail);
+ }
+
+ try
+ {
+ var result =
+ Funs.DB.JGZL_SteelPipeCheckRecordItem1.Where(a =>
+ a.RecordId == RecordId);
+ Funs.DB.JGZL_SteelPipeCheckRecordItem1.DeleteAllOnSubmit(result);
+ if (detailLists.Count > 0)
+ {
+ Funs.DB.JGZL_SteelPipeCheckRecordItem1.InsertAllOnSubmit(detailLists);
+ }
+
+ Funs.DB.SubmitChanges();
+ }
+ catch (Exception)
+ {
+ return;
+ }
+ }
+
+
+
+ void saveItem2()
+ {
+ List detailLists =
+ new List();
+ JArray teamGroupData = Grid2.GetMergedData();
+ foreach (JObject teamGroupRow in teamGroupData)
+ {
+ JObject values = teamGroupRow.Value("values");
+ int rowIndex = teamGroupRow.Value("index");
+ Model.JGZL_SteelPipeCheckRecordItem2 newDetail =
+ new Model.JGZL_SteelPipeCheckRecordItem2
+ {
+ RecordItemId = values.Value("RecordItemId"),
+ RecordId = RecordId,
+ Part1 = values.Value("Part1"),
+ Part2 = values.Value("Part2"),
+ Part3 = values.Value("Part3"),
+ Part4 = values.Value("Part4"),
+ InnerDiameter = values.Value("InnerDiameter"),
+ OuterDiameter = values.Value("OuterDiameter"),
+ Lengths = values.Value("Lengths"),
+ };
+ detailLists.Add(newDetail);
+ }
+
+ try
+ {
+ var result =
+ Funs.DB.JGZL_SteelPipeCheckRecordItem2.Where(a =>
+ a.RecordId == RecordId);
+ Funs.DB.JGZL_SteelPipeCheckRecordItem2.DeleteAllOnSubmit(result);
+ if (detailLists.Count > 0)
+ {
+ Funs.DB.JGZL_SteelPipeCheckRecordItem2.InsertAllOnSubmit(detailLists);
+ }
+
+ Funs.DB.SubmitChanges();
+ }
+ catch (Exception)
+ {
+ return;
+ }
+ }
+
+ #endregion
+
+ #region 附件上传
+ ///
+ /// 上传附件资源
+ ///
+ ///
+ ///
+ protected void btnAttachUrl_Click(object sender, EventArgs e)
+ {
+ if (string.IsNullOrEmpty(RecordId)) //新增记录
+ {
+ this.hdAttach.Text = SQLHelper.GetNewID(typeof(Model.JGZL_SteelPipeCheckRecord));
+ }
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/JGZL/&menuId={1}&edit=1", this.hdAttach.Text, BLL.Const.JGZL_SteelPipeCheckRecordMenuId)));
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/SteelPipeCheckRecordEdit.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/SteelPipeCheckRecordEdit.aspx.designer.cs
new file mode 100644
index 0000000..92b2274
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/JGZL/SteelPipeCheckRecordEdit.aspx.designer.cs
@@ -0,0 +1,386 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.JGZL
+{
+
+
+ public partial class SteelPipeCheckRecordEdit
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// panelCenterRegion 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel panelCenterRegion;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// hdAttach 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HiddenField hdAttach;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// txtContractCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtContractCode;
+
+ ///
+ /// txtArrivalDate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtArrivalDate;
+
+ ///
+ /// txtExecutionStandard 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtExecutionStandard;
+
+ ///
+ /// txtCrack 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtCrack;
+
+ ///
+ /// txtSlagInclusion 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtSlagInclusion;
+
+ ///
+ /// txtShrinkageHole 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtShrinkageHole;
+
+ ///
+ /// txtHeavyLeather 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtHeavyLeather;
+
+ ///
+ /// txtOther 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtOther;
+
+ ///
+ /// UploadAttach 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.LinkButton UploadAttach;
+
+ ///
+ /// txtRemark 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtRemark;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// Button3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button Button3;
+
+ ///
+ /// txtPart 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPart;
+
+ ///
+ /// txtMaterialName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtMaterialName;
+
+ ///
+ /// txtGrade 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtGrade;
+
+ ///
+ /// txtManufacturer 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtManufacturer;
+
+ ///
+ /// txtPlanFilmThickness 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPlanFilmThickness;
+
+ ///
+ /// txtActualFilmThickness 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtActualFilmThickness;
+
+ ///
+ /// txtMaterialCertificateSelfNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtMaterialCertificateSelfNumber;
+
+ ///
+ /// Grid2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid2;
+
+ ///
+ /// Toolbar4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar4;
+
+ ///
+ /// Button2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button Button2;
+
+ ///
+ /// txtPart1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPart1;
+
+ ///
+ /// txtPart2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPart2;
+
+ ///
+ /// txtPart3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPart3;
+
+ ///
+ /// txtPart4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPart4;
+
+ ///
+ /// txtInnerDiameter 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtInnerDiameter;
+
+ ///
+ /// txtOuterDiameter 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtOuterDiameter;
+
+ ///
+ /// txtLengths 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtLengths;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+ }
+}
diff --git a/HJGL_DS/Model/Model.cs b/HJGL_DS/Model/Model.cs
index ea946eb..6372404 100644
--- a/HJGL_DS/Model/Model.cs
+++ b/HJGL_DS/Model/Model.cs
@@ -374,6 +374,12 @@ namespace Model
partial void InsertJGZL_AcceptanceCertificate(JGZL_AcceptanceCertificate instance);
partial void UpdateJGZL_AcceptanceCertificate(JGZL_AcceptanceCertificate instance);
partial void DeleteJGZL_AcceptanceCertificate(JGZL_AcceptanceCertificate instance);
+ partial void InsertJGZL_AnticorrosionEngineeringInspectionRecord(JGZL_AnticorrosionEngineeringInspectionRecord instance);
+ partial void UpdateJGZL_AnticorrosionEngineeringInspectionRecord(JGZL_AnticorrosionEngineeringInspectionRecord instance);
+ partial void DeleteJGZL_AnticorrosionEngineeringInspectionRecord(JGZL_AnticorrosionEngineeringInspectionRecord instance);
+ partial void InsertJGZL_AnticorrosionEngineeringInspectionRecordItem(JGZL_AnticorrosionEngineeringInspectionRecordItem instance);
+ partial void UpdateJGZL_AnticorrosionEngineeringInspectionRecordItem(JGZL_AnticorrosionEngineeringInspectionRecordItem instance);
+ partial void DeleteJGZL_AnticorrosionEngineeringInspectionRecordItem(JGZL_AnticorrosionEngineeringInspectionRecordItem instance);
partial void InsertJGZL_BlowingCleaning(JGZL_BlowingCleaning instance);
partial void UpdateJGZL_BlowingCleaning(JGZL_BlowingCleaning instance);
partial void DeleteJGZL_BlowingCleaning(JGZL_BlowingCleaning instance);
@@ -404,6 +410,9 @@ namespace Model
partial void InsertJGZL_IndustrialPipelineInstallationSummary(JGZL_IndustrialPipelineInstallationSummary instance);
partial void UpdateJGZL_IndustrialPipelineInstallationSummary(JGZL_IndustrialPipelineInstallationSummary instance);
partial void DeleteJGZL_IndustrialPipelineInstallationSummary(JGZL_IndustrialPipelineInstallationSummary instance);
+ partial void InsertJGZL_MaterialIdentificationInspectionRecord(JGZL_MaterialIdentificationInspectionRecord instance);
+ partial void UpdateJGZL_MaterialIdentificationInspectionRecord(JGZL_MaterialIdentificationInspectionRecord instance);
+ partial void DeleteJGZL_MaterialIdentificationInspectionRecord(JGZL_MaterialIdentificationInspectionRecord instance);
partial void InsertJGZL_MaterialQualityCertificateDoc(JGZL_MaterialQualityCertificateDoc instance);
partial void UpdateJGZL_MaterialQualityCertificateDoc(JGZL_MaterialQualityCertificateDoc instance);
partial void DeleteJGZL_MaterialQualityCertificateDoc(JGZL_MaterialQualityCertificateDoc instance);
@@ -431,6 +440,15 @@ namespace Model
partial void InsertJGZL_SpecialEquipmentMaintenance(JGZL_SpecialEquipmentMaintenance instance);
partial void UpdateJGZL_SpecialEquipmentMaintenance(JGZL_SpecialEquipmentMaintenance instance);
partial void DeleteJGZL_SpecialEquipmentMaintenance(JGZL_SpecialEquipmentMaintenance instance);
+ partial void InsertJGZL_SteelPipeCheckRecord(JGZL_SteelPipeCheckRecord instance);
+ partial void UpdateJGZL_SteelPipeCheckRecord(JGZL_SteelPipeCheckRecord instance);
+ partial void DeleteJGZL_SteelPipeCheckRecord(JGZL_SteelPipeCheckRecord instance);
+ partial void InsertJGZL_SteelPipeCheckRecordItem1(JGZL_SteelPipeCheckRecordItem1 instance);
+ partial void UpdateJGZL_SteelPipeCheckRecordItem1(JGZL_SteelPipeCheckRecordItem1 instance);
+ partial void DeleteJGZL_SteelPipeCheckRecordItem1(JGZL_SteelPipeCheckRecordItem1 instance);
+ partial void InsertJGZL_SteelPipeCheckRecordItem2(JGZL_SteelPipeCheckRecordItem2 instance);
+ partial void UpdateJGZL_SteelPipeCheckRecordItem2(JGZL_SteelPipeCheckRecordItem2 instance);
+ partial void DeleteJGZL_SteelPipeCheckRecordItem2(JGZL_SteelPipeCheckRecordItem2 instance);
partial void InsertJGZL_TeamWeldingInspection(JGZL_TeamWeldingInspection instance);
partial void UpdateJGZL_TeamWeldingInspection(JGZL_TeamWeldingInspection instance);
partial void DeleteJGZL_TeamWeldingInspection(JGZL_TeamWeldingInspection instance);
@@ -1807,6 +1825,22 @@ namespace Model
}
}
+ public System.Data.Linq.Table JGZL_AnticorrosionEngineeringInspectionRecord
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
+ public System.Data.Linq.Table JGZL_AnticorrosionEngineeringInspectionRecordItem
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table JGZL_BlowingCleaning
{
get
@@ -1887,6 +1921,14 @@ namespace Model
}
}
+ public System.Data.Linq.Table JGZL_MaterialIdentificationInspectionRecord
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table JGZL_MaterialQualityCertificateDoc
{
get
@@ -1959,6 +2001,30 @@ namespace Model
}
}
+ public System.Data.Linq.Table JGZL_SteelPipeCheckRecord
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
+ public System.Data.Linq.Table JGZL_SteelPipeCheckRecordItem1
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
+ public System.Data.Linq.Table JGZL_SteelPipeCheckRecordItem2
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table JGZL_TeamWeldingInspection
{
get
@@ -4582,6 +4648,8 @@ namespace Model
private EntitySet _JGZL_AcceptanceCertificate;
+ private EntitySet _JGZL_AnticorrosionEngineeringInspectionRecord;
+
private EntitySet _JGZL_BlowingCleaning;
private EntitySet _JGZL_CommencementReport;
@@ -4600,6 +4668,8 @@ namespace Model
private EntitySet _JGZL_IndustrialPipelineInstallationSummary;
+ private EntitySet _JGZL_MaterialIdentificationInspectionRecord;
+
private EntitySet _JGZL_MaterialQualityCertificateDoc;
private EntitySet _JGZL_MeasuringInstruments;
@@ -4618,6 +4688,8 @@ namespace Model
private EntitySet _JGZL_SpecialEquipmentMaintenance;
+ private EntitySet _JGZL_SteelPipeCheckRecord;
+
private EntitySet _JGZL_TeamWeldingInspection;
private EntitySet _JGZL_ValveInspectionTestRecord;
@@ -4749,6 +4821,7 @@ namespace Model
this._HJGL_WeldingProcedure_WeldRepairCard = new EntitySet(new Action(this.attach_HJGL_WeldingProcedure_WeldRepairCard), new Action(this.detach_HJGL_WeldingProcedure_WeldRepairCard));
this._HJGL_WeldingProcedure_WeldHotProcessCard = new EntitySet(new Action(this.attach_HJGL_WeldingProcedure_WeldHotProcessCard), new Action(this.detach_HJGL_WeldingProcedure_WeldHotProcessCard));
this._JGZL_AcceptanceCertificate = new EntitySet(new Action(this.attach_JGZL_AcceptanceCertificate), new Action(this.detach_JGZL_AcceptanceCertificate));
+ this._JGZL_AnticorrosionEngineeringInspectionRecord = new EntitySet(new Action(this.attach_JGZL_AnticorrosionEngineeringInspectionRecord), new Action(this.detach_JGZL_AnticorrosionEngineeringInspectionRecord));
this._JGZL_BlowingCleaning = new EntitySet(new Action(this.attach_JGZL_BlowingCleaning), new Action(this.detach_JGZL_BlowingCleaning));
this._JGZL_CommencementReport = new EntitySet(new Action(this.attach_JGZL_CommencementReport), new Action(this.detach_JGZL_CommencementReport));
this._JGZL_ConcealedWorksInspectionRecord = new EntitySet(new Action(this.attach_JGZL_ConcealedWorksInspectionRecord), new Action(this.detach_JGZL_ConcealedWorksInspectionRecord));
@@ -4758,6 +4831,7 @@ namespace Model
this._JGZL_HandoverCertificate = new EntitySet(new Action(this.attach_JGZL_HandoverCertificate), new Action(this.detach_JGZL_HandoverCertificate));
this._JGZL_IndustrialPipelineInstallationQualityCertificate = new EntitySet(new Action(this.attach_JGZL_IndustrialPipelineInstallationQualityCertificate), new Action(this.detach_JGZL_IndustrialPipelineInstallationQualityCertificate));
this._JGZL_IndustrialPipelineInstallationSummary = new EntitySet(new Action(this.attach_JGZL_IndustrialPipelineInstallationSummary), new Action(this.detach_JGZL_IndustrialPipelineInstallationSummary));
+ this._JGZL_MaterialIdentificationInspectionRecord = new EntitySet(new Action(this.attach_JGZL_MaterialIdentificationInspectionRecord), new Action(this.detach_JGZL_MaterialIdentificationInspectionRecord));
this._JGZL_MaterialQualityCertificateDoc = new EntitySet(new Action(this.attach_JGZL_MaterialQualityCertificateDoc), new Action(this.detach_JGZL_MaterialQualityCertificateDoc));
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));
@@ -4767,6 +4841,7 @@ namespace Model
this._JGZL_ProcessHandoverRecord = new EntitySet(new Action(this.attach_JGZL_ProcessHandoverRecord), new Action(this.detach_JGZL_ProcessHandoverRecord));
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_SteelPipeCheckRecord = new EntitySet(new Action(this.attach_JGZL_SteelPipeCheckRecord), new Action(this.detach_JGZL_SteelPipeCheckRecord));
this._JGZL_TeamWeldingInspection = new EntitySet(new Action(this.attach_JGZL_TeamWeldingInspection), new Action(this.detach_JGZL_TeamWeldingInspection));
this._JGZL_ValveInspectionTestRecord = new EntitySet(new Action(this.attach_JGZL_ValveInspectionTestRecord), new Action(this.detach_JGZL_ValveInspectionTestRecord));
this._JGZL_ValveTestConfirmationForm = new EntitySet(new Action(this.attach_JGZL_ValveTestConfirmationForm), new Action(this.detach_JGZL_ValveTestConfirmationForm));
@@ -5850,6 +5925,19 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_AnticorrosionEngineeringInspectionRecord_Base_Project", Storage="_JGZL_AnticorrosionEngineeringInspectionRecord", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
+ public EntitySet JGZL_AnticorrosionEngineeringInspectionRecord
+ {
+ get
+ {
+ return this._JGZL_AnticorrosionEngineeringInspectionRecord;
+ }
+ set
+ {
+ this._JGZL_AnticorrosionEngineeringInspectionRecord.Assign(value);
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_BlowingCleaning_Base_Project", Storage="_JGZL_BlowingCleaning", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet JGZL_BlowingCleaning
{
@@ -5967,6 +6055,19 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_MaterialIdentificationInspectionRecord_Base_Project", Storage="_JGZL_MaterialIdentificationInspectionRecord", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
+ public EntitySet JGZL_MaterialIdentificationInspectionRecord
+ {
+ get
+ {
+ return this._JGZL_MaterialIdentificationInspectionRecord;
+ }
+ set
+ {
+ this._JGZL_MaterialIdentificationInspectionRecord.Assign(value);
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_MaterialQualityCertificateDoc_Base_Project", Storage="_JGZL_MaterialQualityCertificateDoc", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet JGZL_MaterialQualityCertificateDoc
{
@@ -6084,6 +6185,19 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_SteelPipeCheckRecord_Base_Project", Storage="_JGZL_SteelPipeCheckRecord", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
+ public EntitySet JGZL_SteelPipeCheckRecord
+ {
+ get
+ {
+ return this._JGZL_SteelPipeCheckRecord;
+ }
+ set
+ {
+ this._JGZL_SteelPipeCheckRecord.Assign(value);
+ }
+ }
+
[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
{
@@ -6793,6 +6907,18 @@ namespace Model
entity.Base_Project = null;
}
+ private void attach_JGZL_AnticorrosionEngineeringInspectionRecord(JGZL_AnticorrosionEngineeringInspectionRecord entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = this;
+ }
+
+ private void detach_JGZL_AnticorrosionEngineeringInspectionRecord(JGZL_AnticorrosionEngineeringInspectionRecord entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = null;
+ }
+
private void attach_JGZL_BlowingCleaning(JGZL_BlowingCleaning entity)
{
this.SendPropertyChanging();
@@ -6901,6 +7027,18 @@ namespace Model
entity.Base_Project = null;
}
+ private void attach_JGZL_MaterialIdentificationInspectionRecord(JGZL_MaterialIdentificationInspectionRecord entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = this;
+ }
+
+ private void detach_JGZL_MaterialIdentificationInspectionRecord(JGZL_MaterialIdentificationInspectionRecord entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = null;
+ }
+
private void attach_JGZL_MaterialQualityCertificateDoc(JGZL_MaterialQualityCertificateDoc entity)
{
this.SendPropertyChanging();
@@ -7009,6 +7147,18 @@ namespace Model
entity.Base_Project = null;
}
+ private void attach_JGZL_SteelPipeCheckRecord(JGZL_SteelPipeCheckRecord entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = this;
+ }
+
+ private void detach_JGZL_SteelPipeCheckRecord(JGZL_SteelPipeCheckRecord entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = null;
+ }
+
private void attach_JGZL_TeamWeldingInspection(JGZL_TeamWeldingInspection entity)
{
this.SendPropertyChanging();
@@ -80473,6 +80623,619 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_AnticorrosionEngineeringInspectionRecord")]
+ public partial class JGZL_AnticorrosionEngineeringInspectionRecord : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _AnticorrosionId;
+
+ private string _ProjectId;
+
+ private string _AnticorrosionCurrentStatus;
+
+ private string _AnticorrosionPart;
+
+ private string _AnticorrosionRequire;
+
+ private string _InspectionConclusion;
+
+ private string _CompileMan;
+
+ private System.Nullable _CompileDate;
+
+ private EntityRef _Base_Project;
+
+ private EntitySet _JGZL_AnticorrosionEngineeringInspectionRecordItem;
+
+ private EntityRef _Sys_User;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnAnticorrosionIdChanging(string value);
+ partial void OnAnticorrosionIdChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnAnticorrosionCurrentStatusChanging(string value);
+ partial void OnAnticorrosionCurrentStatusChanged();
+ partial void OnAnticorrosionPartChanging(string value);
+ partial void OnAnticorrosionPartChanged();
+ partial void OnAnticorrosionRequireChanging(string value);
+ partial void OnAnticorrosionRequireChanged();
+ partial void OnInspectionConclusionChanging(string value);
+ partial void OnInspectionConclusionChanged();
+ partial void OnCompileManChanging(string value);
+ partial void OnCompileManChanged();
+ partial void OnCompileDateChanging(System.Nullable value);
+ partial void OnCompileDateChanged();
+ #endregion
+
+ public JGZL_AnticorrosionEngineeringInspectionRecord()
+ {
+ this._Base_Project = default(EntityRef);
+ this._JGZL_AnticorrosionEngineeringInspectionRecordItem = new EntitySet(new Action(this.attach_JGZL_AnticorrosionEngineeringInspectionRecordItem), new Action(this.detach_JGZL_AnticorrosionEngineeringInspectionRecordItem));
+ this._Sys_User = default(EntityRef);
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AnticorrosionId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string AnticorrosionId
+ {
+ get
+ {
+ return this._AnticorrosionId;
+ }
+ set
+ {
+ if ((this._AnticorrosionId != value))
+ {
+ this.OnAnticorrosionIdChanging(value);
+ this.SendPropertyChanging();
+ this._AnticorrosionId = value;
+ this.SendPropertyChanged("AnticorrosionId");
+ this.OnAnticorrosionIdChanged();
+ }
+ }
+ }
+
+ [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="_AnticorrosionCurrentStatus", DbType="NVarChar(50)")]
+ public string AnticorrosionCurrentStatus
+ {
+ get
+ {
+ return this._AnticorrosionCurrentStatus;
+ }
+ set
+ {
+ if ((this._AnticorrosionCurrentStatus != value))
+ {
+ this.OnAnticorrosionCurrentStatusChanging(value);
+ this.SendPropertyChanging();
+ this._AnticorrosionCurrentStatus = value;
+ this.SendPropertyChanged("AnticorrosionCurrentStatus");
+ this.OnAnticorrosionCurrentStatusChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AnticorrosionPart", DbType="NVarChar(500)")]
+ public string AnticorrosionPart
+ {
+ get
+ {
+ return this._AnticorrosionPart;
+ }
+ set
+ {
+ if ((this._AnticorrosionPart != value))
+ {
+ this.OnAnticorrosionPartChanging(value);
+ this.SendPropertyChanging();
+ this._AnticorrosionPart = value;
+ this.SendPropertyChanged("AnticorrosionPart");
+ this.OnAnticorrosionPartChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AnticorrosionRequire", DbType="NVarChar(500)")]
+ public string AnticorrosionRequire
+ {
+ get
+ {
+ return this._AnticorrosionRequire;
+ }
+ set
+ {
+ if ((this._AnticorrosionRequire != value))
+ {
+ this.OnAnticorrosionRequireChanging(value);
+ this.SendPropertyChanging();
+ this._AnticorrosionRequire = value;
+ this.SendPropertyChanged("AnticorrosionRequire");
+ this.OnAnticorrosionRequireChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionConclusion", DbType="NVarChar(50)")]
+ public string InspectionConclusion
+ {
+ get
+ {
+ return this._InspectionConclusion;
+ }
+ set
+ {
+ if ((this._InspectionConclusion != value))
+ {
+ this.OnInspectionConclusionChanging(value);
+ this.SendPropertyChanging();
+ this._InspectionConclusion = value;
+ this.SendPropertyChanged("InspectionConclusion");
+ this.OnInspectionConclusionChanged();
+ }
+ }
+ }
+
+ [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_AnticorrosionEngineeringInspectionRecord_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_AnticorrosionEngineeringInspectionRecord.Remove(this);
+ }
+ this._Base_Project.Entity = value;
+ if ((value != null))
+ {
+ value.JGZL_AnticorrosionEngineeringInspectionRecord.Add(this);
+ this._ProjectId = value.ProjectId;
+ }
+ else
+ {
+ this._ProjectId = default(string);
+ }
+ this.SendPropertyChanged("Base_Project");
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_AnticorrosionEngineeringInspectionRecord_JGZL_AnticorrosionEngineeringIns" +
+ "pectionRecord", Storage="_JGZL_AnticorrosionEngineeringInspectionRecordItem", ThisKey="AnticorrosionId", OtherKey="AnticorrosionId", DeleteRule="NO ACTION")]
+ public EntitySet JGZL_AnticorrosionEngineeringInspectionRecordItem
+ {
+ get
+ {
+ return this._JGZL_AnticorrosionEngineeringInspectionRecordItem;
+ }
+ set
+ {
+ this._JGZL_AnticorrosionEngineeringInspectionRecordItem.Assign(value);
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_AnticorrosionEngineeringInspectionRecord_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_AnticorrosionEngineeringInspectionRecord.Remove(this);
+ }
+ this._Sys_User.Entity = value;
+ if ((value != null))
+ {
+ value.JGZL_AnticorrosionEngineeringInspectionRecord.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));
+ }
+ }
+
+ private void attach_JGZL_AnticorrosionEngineeringInspectionRecordItem(JGZL_AnticorrosionEngineeringInspectionRecordItem entity)
+ {
+ this.SendPropertyChanging();
+ entity.JGZL_AnticorrosionEngineeringInspectionRecord = this;
+ }
+
+ private void detach_JGZL_AnticorrosionEngineeringInspectionRecordItem(JGZL_AnticorrosionEngineeringInspectionRecordItem entity)
+ {
+ this.SendPropertyChanging();
+ entity.JGZL_AnticorrosionEngineeringInspectionRecord = null;
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_AnticorrosionEngineeringInspectionRecordItem")]
+ public partial class JGZL_AnticorrosionEngineeringInspectionRecordItem : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _AnticorrosionItemId;
+
+ private string _AnticorrosionId;
+
+ private string _Part;
+
+ private string _MaterialName;
+
+ private string _Grade;
+
+ private string _Manufacturer;
+
+ private string _PlanFilmThickness;
+
+ private string _ActualFilmThickness;
+
+ private EntityRef _JGZL_AnticorrosionEngineeringInspectionRecord;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnAnticorrosionItemIdChanging(string value);
+ partial void OnAnticorrosionItemIdChanged();
+ partial void OnAnticorrosionIdChanging(string value);
+ partial void OnAnticorrosionIdChanged();
+ partial void OnPartChanging(string value);
+ partial void OnPartChanged();
+ partial void OnMaterialNameChanging(string value);
+ partial void OnMaterialNameChanged();
+ partial void OnGradeChanging(string value);
+ partial void OnGradeChanged();
+ partial void OnManufacturerChanging(string value);
+ partial void OnManufacturerChanged();
+ partial void OnPlanFilmThicknessChanging(string value);
+ partial void OnPlanFilmThicknessChanged();
+ partial void OnActualFilmThicknessChanging(string value);
+ partial void OnActualFilmThicknessChanged();
+ #endregion
+
+ public JGZL_AnticorrosionEngineeringInspectionRecordItem()
+ {
+ this._JGZL_AnticorrosionEngineeringInspectionRecord = default(EntityRef);
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AnticorrosionItemId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string AnticorrosionItemId
+ {
+ get
+ {
+ return this._AnticorrosionItemId;
+ }
+ set
+ {
+ if ((this._AnticorrosionItemId != value))
+ {
+ this.OnAnticorrosionItemIdChanging(value);
+ this.SendPropertyChanging();
+ this._AnticorrosionItemId = value;
+ this.SendPropertyChanged("AnticorrosionItemId");
+ this.OnAnticorrosionItemIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AnticorrosionId", DbType="NVarChar(50)")]
+ public string AnticorrosionId
+ {
+ get
+ {
+ return this._AnticorrosionId;
+ }
+ set
+ {
+ if ((this._AnticorrosionId != value))
+ {
+ if (this._JGZL_AnticorrosionEngineeringInspectionRecord.HasLoadedOrAssignedValue)
+ {
+ throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
+ }
+ this.OnAnticorrosionIdChanging(value);
+ this.SendPropertyChanging();
+ this._AnticorrosionId = value;
+ this.SendPropertyChanged("AnticorrosionId");
+ this.OnAnticorrosionIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Part", DbType="NVarChar(50)")]
+ public string Part
+ {
+ get
+ {
+ return this._Part;
+ }
+ set
+ {
+ if ((this._Part != value))
+ {
+ this.OnPartChanging(value);
+ this.SendPropertyChanging();
+ this._Part = value;
+ this.SendPropertyChanged("Part");
+ this.OnPartChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialName", DbType="NVarChar(100)")]
+ public string MaterialName
+ {
+ get
+ {
+ return this._MaterialName;
+ }
+ set
+ {
+ if ((this._MaterialName != value))
+ {
+ this.OnMaterialNameChanging(value);
+ this.SendPropertyChanging();
+ this._MaterialName = value;
+ this.SendPropertyChanged("MaterialName");
+ this.OnMaterialNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Grade", DbType="NVarChar(50)")]
+ public string Grade
+ {
+ get
+ {
+ return this._Grade;
+ }
+ set
+ {
+ if ((this._Grade != value))
+ {
+ this.OnGradeChanging(value);
+ this.SendPropertyChanging();
+ this._Grade = value;
+ this.SendPropertyChanged("Grade");
+ this.OnGradeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Manufacturer", DbType="NVarChar(100)")]
+ public string Manufacturer
+ {
+ get
+ {
+ return this._Manufacturer;
+ }
+ set
+ {
+ if ((this._Manufacturer != value))
+ {
+ this.OnManufacturerChanging(value);
+ this.SendPropertyChanging();
+ this._Manufacturer = value;
+ this.SendPropertyChanged("Manufacturer");
+ this.OnManufacturerChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlanFilmThickness", DbType="NVarChar(50)")]
+ public string PlanFilmThickness
+ {
+ get
+ {
+ return this._PlanFilmThickness;
+ }
+ set
+ {
+ if ((this._PlanFilmThickness != value))
+ {
+ this.OnPlanFilmThicknessChanging(value);
+ this.SendPropertyChanging();
+ this._PlanFilmThickness = value;
+ this.SendPropertyChanged("PlanFilmThickness");
+ this.OnPlanFilmThicknessChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ActualFilmThickness", DbType="NVarChar(50)")]
+ public string ActualFilmThickness
+ {
+ get
+ {
+ return this._ActualFilmThickness;
+ }
+ set
+ {
+ if ((this._ActualFilmThickness != value))
+ {
+ this.OnActualFilmThicknessChanging(value);
+ this.SendPropertyChanging();
+ this._ActualFilmThickness = value;
+ this.SendPropertyChanged("ActualFilmThickness");
+ this.OnActualFilmThicknessChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_AnticorrosionEngineeringInspectionRecord_JGZL_AnticorrosionEngineeringIns" +
+ "pectionRecord", Storage="_JGZL_AnticorrosionEngineeringInspectionRecord", ThisKey="AnticorrosionId", OtherKey="AnticorrosionId", IsForeignKey=true)]
+ public JGZL_AnticorrosionEngineeringInspectionRecord JGZL_AnticorrosionEngineeringInspectionRecord
+ {
+ get
+ {
+ return this._JGZL_AnticorrosionEngineeringInspectionRecord.Entity;
+ }
+ set
+ {
+ JGZL_AnticorrosionEngineeringInspectionRecord previousValue = this._JGZL_AnticorrosionEngineeringInspectionRecord.Entity;
+ if (((previousValue != value)
+ || (this._JGZL_AnticorrosionEngineeringInspectionRecord.HasLoadedOrAssignedValue == false)))
+ {
+ this.SendPropertyChanging();
+ if ((previousValue != null))
+ {
+ this._JGZL_AnticorrosionEngineeringInspectionRecord.Entity = null;
+ previousValue.JGZL_AnticorrosionEngineeringInspectionRecordItem.Remove(this);
+ }
+ this._JGZL_AnticorrosionEngineeringInspectionRecord.Entity = value;
+ if ((value != null))
+ {
+ value.JGZL_AnticorrosionEngineeringInspectionRecordItem.Add(this);
+ this._AnticorrosionId = value.AnticorrosionId;
+ }
+ else
+ {
+ this._AnticorrosionId = default(string);
+ }
+ this.SendPropertyChanged("JGZL_AnticorrosionEngineeringInspectionRecord");
+ }
+ }
+ }
+
+ 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_BlowingCleaning")]
public partial class JGZL_BlowingCleaning : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -85342,6 +86105,414 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_MaterialIdentificationInspectionRecord")]
+ public partial class JGZL_MaterialIdentificationInspectionRecord : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _RecordId;
+
+ private string _ProjectId;
+
+ private string _ISO_Id;
+
+ private string _STE_ID;
+
+ private string _Specifications;
+
+ private string _PrescribedColor;
+
+ private string _TubeIdentificationStatus;
+
+ private string _PipeFittingName;
+
+ private string _PipeFittingStatus;
+
+ 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 OnRecordIdChanging(string value);
+ partial void OnRecordIdChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnISO_IdChanging(string value);
+ partial void OnISO_IdChanged();
+ partial void OnSTE_IDChanging(string value);
+ partial void OnSTE_IDChanged();
+ partial void OnSpecificationsChanging(string value);
+ partial void OnSpecificationsChanged();
+ partial void OnPrescribedColorChanging(string value);
+ partial void OnPrescribedColorChanged();
+ partial void OnTubeIdentificationStatusChanging(string value);
+ partial void OnTubeIdentificationStatusChanged();
+ partial void OnPipeFittingNameChanging(string value);
+ partial void OnPipeFittingNameChanged();
+ partial void OnPipeFittingStatusChanging(string value);
+ partial void OnPipeFittingStatusChanged();
+ 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_MaterialIdentificationInspectionRecord()
+ {
+ this._Base_Project = default(EntityRef);
+ this._Sys_User = default(EntityRef);
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string RecordId
+ {
+ get
+ {
+ return this._RecordId;
+ }
+ set
+ {
+ if ((this._RecordId != value))
+ {
+ this.OnRecordIdChanging(value);
+ this.SendPropertyChanging();
+ this._RecordId = value;
+ this.SendPropertyChanged("RecordId");
+ this.OnRecordIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ public string ProjectId
+ {
+ get
+ {
+ return this._ProjectId;
+ }
+ set
+ {
+ if ((this._ProjectId != value))
+ {
+ if (this._Base_Project.HasLoadedOrAssignedValue)
+ {
+ throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
+ }
+ this.OnProjectIdChanging(value);
+ this.SendPropertyChanging();
+ this._ProjectId = value;
+ this.SendPropertyChanged("ProjectId");
+ this.OnProjectIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISO_Id", DbType="NVarChar(50)")]
+ public string ISO_Id
+ {
+ get
+ {
+ return this._ISO_Id;
+ }
+ set
+ {
+ if ((this._ISO_Id != value))
+ {
+ this.OnISO_IdChanging(value);
+ this.SendPropertyChanging();
+ this._ISO_Id = value;
+ this.SendPropertyChanged("ISO_Id");
+ this.OnISO_IdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_STE_ID", DbType="NVarChar(500)")]
+ public string STE_ID
+ {
+ get
+ {
+ return this._STE_ID;
+ }
+ set
+ {
+ if ((this._STE_ID != value))
+ {
+ this.OnSTE_IDChanging(value);
+ this.SendPropertyChanging();
+ this._STE_ID = value;
+ this.SendPropertyChanged("STE_ID");
+ this.OnSTE_IDChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specifications", DbType="NVarChar(500)")]
+ public string Specifications
+ {
+ get
+ {
+ return this._Specifications;
+ }
+ set
+ {
+ if ((this._Specifications != value))
+ {
+ this.OnSpecificationsChanging(value);
+ this.SendPropertyChanging();
+ this._Specifications = value;
+ this.SendPropertyChanged("Specifications");
+ this.OnSpecificationsChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PrescribedColor", DbType="NVarChar(50)")]
+ public string PrescribedColor
+ {
+ get
+ {
+ return this._PrescribedColor;
+ }
+ set
+ {
+ if ((this._PrescribedColor != value))
+ {
+ this.OnPrescribedColorChanging(value);
+ this.SendPropertyChanging();
+ this._PrescribedColor = value;
+ this.SendPropertyChanged("PrescribedColor");
+ this.OnPrescribedColorChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TubeIdentificationStatus", DbType="NVarChar(50)")]
+ public string TubeIdentificationStatus
+ {
+ get
+ {
+ return this._TubeIdentificationStatus;
+ }
+ set
+ {
+ if ((this._TubeIdentificationStatus != value))
+ {
+ this.OnTubeIdentificationStatusChanging(value);
+ this.SendPropertyChanging();
+ this._TubeIdentificationStatus = value;
+ this.SendPropertyChanged("TubeIdentificationStatus");
+ this.OnTubeIdentificationStatusChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipeFittingName", DbType="NVarChar(50)")]
+ public string PipeFittingName
+ {
+ get
+ {
+ return this._PipeFittingName;
+ }
+ set
+ {
+ if ((this._PipeFittingName != value))
+ {
+ this.OnPipeFittingNameChanging(value);
+ this.SendPropertyChanging();
+ this._PipeFittingName = value;
+ this.SendPropertyChanged("PipeFittingName");
+ this.OnPipeFittingNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipeFittingStatus", DbType="NVarChar(50)")]
+ public string PipeFittingStatus
+ {
+ get
+ {
+ return this._PipeFittingStatus;
+ }
+ set
+ {
+ if ((this._PipeFittingStatus != value))
+ {
+ this.OnPipeFittingStatusChanging(value);
+ this.SendPropertyChanging();
+ this._PipeFittingStatus = value;
+ this.SendPropertyChanged("PipeFittingStatus");
+ this.OnPipeFittingStatusChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Conclusion", DbType="NVarChar(50)")]
+ 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_MaterialIdentificationInspectionRecord_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_MaterialIdentificationInspectionRecord.Remove(this);
+ }
+ this._Base_Project.Entity = value;
+ if ((value != null))
+ {
+ value.JGZL_MaterialIdentificationInspectionRecord.Add(this);
+ this._ProjectId = value.ProjectId;
+ }
+ else
+ {
+ this._ProjectId = default(string);
+ }
+ this.SendPropertyChanged("Base_Project");
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_MaterialIdentificationInspectionRecord_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_MaterialIdentificationInspectionRecord.Remove(this);
+ }
+ this._Sys_User.Entity = value;
+ if ((value != null))
+ {
+ value.JGZL_MaterialIdentificationInspectionRecord.Add(this);
+ this._CompileMan = value.UserId;
+ }
+ else
+ {
+ this._CompileMan = default(string);
+ }
+ this.SendPropertyChanged("Sys_User");
+ }
+ }
+ }
+
+ public event PropertyChangingEventHandler PropertyChanging;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void SendPropertyChanging()
+ {
+ if ((this.PropertyChanging != null))
+ {
+ this.PropertyChanging(this, emptyChangingEventArgs);
+ }
+ }
+
+ protected virtual void SendPropertyChanged(String propertyName)
+ {
+ if ((this.PropertyChanged != null))
+ {
+ this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_MaterialQualityCertificateDoc")]
public partial class JGZL_MaterialQualityCertificateDoc : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -89662,6 +90833,1084 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_SteelPipeCheckRecord")]
+ public partial class JGZL_SteelPipeCheckRecord : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _RecordId;
+
+ private string _ProjectId;
+
+ private string _ContractCode;
+
+ private System.Nullable _ArrivalDate;
+
+ private string _ExecutionStandard;
+
+ private string _Crack;
+
+ private string _SlagInclusion;
+
+ private string _ShrinkageHole;
+
+ private string _HeavyLeather;
+
+ private string _Other;
+
+ private string _Remark;
+
+ private string _CompileMan;
+
+ private System.Nullable _CompileDate;
+
+ private EntityRef _Base_Project;
+
+ private EntityRef _Sys_User;
+
+ private EntitySet _JGZL_SteelPipeCheckRecordItem1;
+
+ private EntitySet _JGZL_SteelPipeCheckRecordItem2;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnRecordIdChanging(string value);
+ partial void OnRecordIdChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnContractCodeChanging(string value);
+ partial void OnContractCodeChanged();
+ partial void OnArrivalDateChanging(System.Nullable value);
+ partial void OnArrivalDateChanged();
+ partial void OnExecutionStandardChanging(string value);
+ partial void OnExecutionStandardChanged();
+ partial void OnCrackChanging(string value);
+ partial void OnCrackChanged();
+ partial void OnSlagInclusionChanging(string value);
+ partial void OnSlagInclusionChanged();
+ partial void OnShrinkageHoleChanging(string value);
+ partial void OnShrinkageHoleChanged();
+ partial void OnHeavyLeatherChanging(string value);
+ partial void OnHeavyLeatherChanged();
+ partial void OnOtherChanging(string value);
+ partial void OnOtherChanged();
+ partial void OnRemarkChanging(string value);
+ partial void OnRemarkChanged();
+ partial void OnCompileManChanging(string value);
+ partial void OnCompileManChanged();
+ partial void OnCompileDateChanging(System.Nullable value);
+ partial void OnCompileDateChanged();
+ #endregion
+
+ public JGZL_SteelPipeCheckRecord()
+ {
+ this._Base_Project = default(EntityRef);
+ this._Sys_User = default(EntityRef);
+ this._JGZL_SteelPipeCheckRecordItem1 = new EntitySet(new Action(this.attach_JGZL_SteelPipeCheckRecordItem1), new Action(this.detach_JGZL_SteelPipeCheckRecordItem1));
+ this._JGZL_SteelPipeCheckRecordItem2 = new EntitySet(new Action(this.attach_JGZL_SteelPipeCheckRecordItem2), new Action(this.detach_JGZL_SteelPipeCheckRecordItem2));
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string RecordId
+ {
+ get
+ {
+ return this._RecordId;
+ }
+ set
+ {
+ if ((this._RecordId != value))
+ {
+ this.OnRecordIdChanging(value);
+ this.SendPropertyChanging();
+ this._RecordId = value;
+ this.SendPropertyChanged("RecordId");
+ this.OnRecordIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ public string ProjectId
+ {
+ get
+ {
+ return this._ProjectId;
+ }
+ set
+ {
+ if ((this._ProjectId != value))
+ {
+ if (this._Base_Project.HasLoadedOrAssignedValue)
+ {
+ throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
+ }
+ this.OnProjectIdChanging(value);
+ this.SendPropertyChanging();
+ this._ProjectId = value;
+ this.SendPropertyChanged("ProjectId");
+ this.OnProjectIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractCode", DbType="NVarChar(50)")]
+ public string ContractCode
+ {
+ get
+ {
+ return this._ContractCode;
+ }
+ set
+ {
+ if ((this._ContractCode != value))
+ {
+ this.OnContractCodeChanging(value);
+ this.SendPropertyChanging();
+ this._ContractCode = value;
+ this.SendPropertyChanged("ContractCode");
+ this.OnContractCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ArrivalDate", DbType="DateTime")]
+ public System.Nullable ArrivalDate
+ {
+ get
+ {
+ return this._ArrivalDate;
+ }
+ set
+ {
+ if ((this._ArrivalDate != value))
+ {
+ this.OnArrivalDateChanging(value);
+ this.SendPropertyChanging();
+ this._ArrivalDate = value;
+ this.SendPropertyChanged("ArrivalDate");
+ this.OnArrivalDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ExecutionStandard", DbType="NVarChar(50)")]
+ public string ExecutionStandard
+ {
+ get
+ {
+ return this._ExecutionStandard;
+ }
+ set
+ {
+ if ((this._ExecutionStandard != value))
+ {
+ this.OnExecutionStandardChanging(value);
+ this.SendPropertyChanging();
+ this._ExecutionStandard = value;
+ this.SendPropertyChanged("ExecutionStandard");
+ this.OnExecutionStandardChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Crack", DbType="NVarChar(100)")]
+ public string Crack
+ {
+ get
+ {
+ return this._Crack;
+ }
+ set
+ {
+ if ((this._Crack != value))
+ {
+ this.OnCrackChanging(value);
+ this.SendPropertyChanging();
+ this._Crack = value;
+ this.SendPropertyChanged("Crack");
+ this.OnCrackChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SlagInclusion", DbType="NVarChar(100)")]
+ public string SlagInclusion
+ {
+ get
+ {
+ return this._SlagInclusion;
+ }
+ set
+ {
+ if ((this._SlagInclusion != value))
+ {
+ this.OnSlagInclusionChanging(value);
+ this.SendPropertyChanging();
+ this._SlagInclusion = value;
+ this.SendPropertyChanged("SlagInclusion");
+ this.OnSlagInclusionChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ShrinkageHole", DbType="NVarChar(100)")]
+ public string ShrinkageHole
+ {
+ get
+ {
+ return this._ShrinkageHole;
+ }
+ set
+ {
+ if ((this._ShrinkageHole != value))
+ {
+ this.OnShrinkageHoleChanging(value);
+ this.SendPropertyChanging();
+ this._ShrinkageHole = value;
+ this.SendPropertyChanged("ShrinkageHole");
+ this.OnShrinkageHoleChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HeavyLeather", DbType="NVarChar(100)")]
+ public string HeavyLeather
+ {
+ get
+ {
+ return this._HeavyLeather;
+ }
+ set
+ {
+ if ((this._HeavyLeather != value))
+ {
+ this.OnHeavyLeatherChanging(value);
+ this.SendPropertyChanging();
+ this._HeavyLeather = value;
+ this.SendPropertyChanged("HeavyLeather");
+ this.OnHeavyLeatherChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Other", DbType="NVarChar(100)")]
+ public string Other
+ {
+ get
+ {
+ return this._Other;
+ }
+ set
+ {
+ if ((this._Other != value))
+ {
+ this.OnOtherChanging(value);
+ this.SendPropertyChanging();
+ this._Other = value;
+ this.SendPropertyChanged("Other");
+ this.OnOtherChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(500)")]
+ public string Remark
+ {
+ get
+ {
+ return this._Remark;
+ }
+ set
+ {
+ if ((this._Remark != value))
+ {
+ this.OnRemarkChanging(value);
+ this.SendPropertyChanging();
+ this._Remark = value;
+ this.SendPropertyChanged("Remark");
+ this.OnRemarkChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
+ public string CompileMan
+ {
+ get
+ {
+ return this._CompileMan;
+ }
+ set
+ {
+ if ((this._CompileMan != value))
+ {
+ if (this._Sys_User.HasLoadedOrAssignedValue)
+ {
+ throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
+ }
+ this.OnCompileManChanging(value);
+ this.SendPropertyChanging();
+ this._CompileMan = value;
+ this.SendPropertyChanged("CompileMan");
+ this.OnCompileManChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
+ public System.Nullable CompileDate
+ {
+ get
+ {
+ return this._CompileDate;
+ }
+ set
+ {
+ if ((this._CompileDate != value))
+ {
+ this.OnCompileDateChanging(value);
+ this.SendPropertyChanging();
+ this._CompileDate = value;
+ this.SendPropertyChanged("CompileDate");
+ this.OnCompileDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_SteelPipeCheckRecord_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_SteelPipeCheckRecord.Remove(this);
+ }
+ this._Base_Project.Entity = value;
+ if ((value != null))
+ {
+ value.JGZL_SteelPipeCheckRecord.Add(this);
+ this._ProjectId = value.ProjectId;
+ }
+ else
+ {
+ this._ProjectId = default(string);
+ }
+ this.SendPropertyChanged("Base_Project");
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_SteelPipeCheckRecord_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_SteelPipeCheckRecord.Remove(this);
+ }
+ this._Sys_User.Entity = value;
+ if ((value != null))
+ {
+ value.JGZL_SteelPipeCheckRecord.Add(this);
+ this._CompileMan = value.UserId;
+ }
+ else
+ {
+ this._CompileMan = default(string);
+ }
+ this.SendPropertyChanged("Sys_User");
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_SteelPipeCheckRecordItem1_JGZL_SteelPipeCheckRecord", Storage="_JGZL_SteelPipeCheckRecordItem1", ThisKey="RecordId", OtherKey="RecordId", DeleteRule="NO ACTION")]
+ public EntitySet JGZL_SteelPipeCheckRecordItem1
+ {
+ get
+ {
+ return this._JGZL_SteelPipeCheckRecordItem1;
+ }
+ set
+ {
+ this._JGZL_SteelPipeCheckRecordItem1.Assign(value);
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_SteelPipeCheckRecordItem2_JGZL_SteelPipeCheckRecord", Storage="_JGZL_SteelPipeCheckRecordItem2", ThisKey="RecordId", OtherKey="RecordId", DeleteRule="NO ACTION")]
+ public EntitySet JGZL_SteelPipeCheckRecordItem2
+ {
+ get
+ {
+ return this._JGZL_SteelPipeCheckRecordItem2;
+ }
+ set
+ {
+ this._JGZL_SteelPipeCheckRecordItem2.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_SteelPipeCheckRecordItem1(JGZL_SteelPipeCheckRecordItem1 entity)
+ {
+ this.SendPropertyChanging();
+ entity.JGZL_SteelPipeCheckRecord = this;
+ }
+
+ private void detach_JGZL_SteelPipeCheckRecordItem1(JGZL_SteelPipeCheckRecordItem1 entity)
+ {
+ this.SendPropertyChanging();
+ entity.JGZL_SteelPipeCheckRecord = null;
+ }
+
+ private void attach_JGZL_SteelPipeCheckRecordItem2(JGZL_SteelPipeCheckRecordItem2 entity)
+ {
+ this.SendPropertyChanging();
+ entity.JGZL_SteelPipeCheckRecord = this;
+ }
+
+ private void detach_JGZL_SteelPipeCheckRecordItem2(JGZL_SteelPipeCheckRecordItem2 entity)
+ {
+ this.SendPropertyChanging();
+ entity.JGZL_SteelPipeCheckRecord = null;
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_SteelPipeCheckRecordItem1")]
+ public partial class JGZL_SteelPipeCheckRecordItem1 : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _RecordItemId;
+
+ private string _RecordId;
+
+ private string _Name;
+
+ private string _Material;
+
+ private string _Specifications;
+
+ private string _Quantity;
+
+ private string _MaterialCertificateCode;
+
+ private string _HeatCode;
+
+ private string _MaterialCertificateSelfNumber;
+
+ private EntityRef _JGZL_SteelPipeCheckRecord;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnRecordItemIdChanging(string value);
+ partial void OnRecordItemIdChanged();
+ partial void OnRecordIdChanging(string value);
+ partial void OnRecordIdChanged();
+ partial void OnNameChanging(string value);
+ partial void OnNameChanged();
+ partial void OnMaterialChanging(string value);
+ partial void OnMaterialChanged();
+ partial void OnSpecificationsChanging(string value);
+ partial void OnSpecificationsChanged();
+ partial void OnQuantityChanging(string value);
+ partial void OnQuantityChanged();
+ partial void OnMaterialCertificateCodeChanging(string value);
+ partial void OnMaterialCertificateCodeChanged();
+ partial void OnHeatCodeChanging(string value);
+ partial void OnHeatCodeChanged();
+ partial void OnMaterialCertificateSelfNumberChanging(string value);
+ partial void OnMaterialCertificateSelfNumberChanged();
+ #endregion
+
+ public JGZL_SteelPipeCheckRecordItem1()
+ {
+ this._JGZL_SteelPipeCheckRecord = default(EntityRef);
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordItemId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string RecordItemId
+ {
+ get
+ {
+ return this._RecordItemId;
+ }
+ set
+ {
+ if ((this._RecordItemId != value))
+ {
+ this.OnRecordItemIdChanging(value);
+ this.SendPropertyChanging();
+ this._RecordItemId = value;
+ this.SendPropertyChanged("RecordItemId");
+ this.OnRecordItemIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordId", DbType="NVarChar(50)")]
+ public string RecordId
+ {
+ get
+ {
+ return this._RecordId;
+ }
+ set
+ {
+ if ((this._RecordId != value))
+ {
+ if (this._JGZL_SteelPipeCheckRecord.HasLoadedOrAssignedValue)
+ {
+ throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
+ }
+ this.OnRecordIdChanging(value);
+ this.SendPropertyChanging();
+ this._RecordId = value;
+ this.SendPropertyChanged("RecordId");
+ this.OnRecordIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(50)")]
+ public string Name
+ {
+ get
+ {
+ return this._Name;
+ }
+ set
+ {
+ if ((this._Name != value))
+ {
+ this.OnNameChanging(value);
+ this.SendPropertyChanging();
+ this._Name = value;
+ this.SendPropertyChanged("Name");
+ this.OnNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Material", DbType="NVarChar(50)")]
+ public string Material
+ {
+ get
+ {
+ return this._Material;
+ }
+ set
+ {
+ if ((this._Material != value))
+ {
+ this.OnMaterialChanging(value);
+ this.SendPropertyChanging();
+ this._Material = value;
+ this.SendPropertyChanged("Material");
+ this.OnMaterialChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specifications", DbType="NVarChar(50)")]
+ public string Specifications
+ {
+ get
+ {
+ return this._Specifications;
+ }
+ set
+ {
+ if ((this._Specifications != value))
+ {
+ this.OnSpecificationsChanging(value);
+ this.SendPropertyChanging();
+ this._Specifications = value;
+ this.SendPropertyChanged("Specifications");
+ this.OnSpecificationsChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quantity", DbType="NVarChar(50)")]
+ public string Quantity
+ {
+ get
+ {
+ return this._Quantity;
+ }
+ set
+ {
+ if ((this._Quantity != value))
+ {
+ this.OnQuantityChanging(value);
+ this.SendPropertyChanging();
+ this._Quantity = value;
+ this.SendPropertyChanged("Quantity");
+ this.OnQuantityChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCertificateCode", DbType="NVarChar(50)")]
+ public string MaterialCertificateCode
+ {
+ get
+ {
+ return this._MaterialCertificateCode;
+ }
+ set
+ {
+ if ((this._MaterialCertificateCode != value))
+ {
+ this.OnMaterialCertificateCodeChanging(value);
+ this.SendPropertyChanging();
+ this._MaterialCertificateCode = value;
+ this.SendPropertyChanged("MaterialCertificateCode");
+ this.OnMaterialCertificateCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HeatCode", DbType="NVarChar(50)")]
+ public string HeatCode
+ {
+ get
+ {
+ return this._HeatCode;
+ }
+ set
+ {
+ if ((this._HeatCode != value))
+ {
+ this.OnHeatCodeChanging(value);
+ this.SendPropertyChanging();
+ this._HeatCode = value;
+ this.SendPropertyChanged("HeatCode");
+ this.OnHeatCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCertificateSelfNumber", DbType="NVarChar(50)")]
+ public string MaterialCertificateSelfNumber
+ {
+ get
+ {
+ return this._MaterialCertificateSelfNumber;
+ }
+ set
+ {
+ if ((this._MaterialCertificateSelfNumber != value))
+ {
+ this.OnMaterialCertificateSelfNumberChanging(value);
+ this.SendPropertyChanging();
+ this._MaterialCertificateSelfNumber = value;
+ this.SendPropertyChanged("MaterialCertificateSelfNumber");
+ this.OnMaterialCertificateSelfNumberChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_SteelPipeCheckRecordItem1_JGZL_SteelPipeCheckRecord", Storage="_JGZL_SteelPipeCheckRecord", ThisKey="RecordId", OtherKey="RecordId", IsForeignKey=true)]
+ public JGZL_SteelPipeCheckRecord JGZL_SteelPipeCheckRecord
+ {
+ get
+ {
+ return this._JGZL_SteelPipeCheckRecord.Entity;
+ }
+ set
+ {
+ JGZL_SteelPipeCheckRecord previousValue = this._JGZL_SteelPipeCheckRecord.Entity;
+ if (((previousValue != value)
+ || (this._JGZL_SteelPipeCheckRecord.HasLoadedOrAssignedValue == false)))
+ {
+ this.SendPropertyChanging();
+ if ((previousValue != null))
+ {
+ this._JGZL_SteelPipeCheckRecord.Entity = null;
+ previousValue.JGZL_SteelPipeCheckRecordItem1.Remove(this);
+ }
+ this._JGZL_SteelPipeCheckRecord.Entity = value;
+ if ((value != null))
+ {
+ value.JGZL_SteelPipeCheckRecordItem1.Add(this);
+ this._RecordId = value.RecordId;
+ }
+ else
+ {
+ this._RecordId = default(string);
+ }
+ this.SendPropertyChanged("JGZL_SteelPipeCheckRecord");
+ }
+ }
+ }
+
+ 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_SteelPipeCheckRecordItem2")]
+ public partial class JGZL_SteelPipeCheckRecordItem2 : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _RecordItemId;
+
+ private string _RecordId;
+
+ private string _Part1;
+
+ private string _Part2;
+
+ private string _Part3;
+
+ private string _Part4;
+
+ private string _InnerDiameter;
+
+ private string _OuterDiameter;
+
+ private string _Lengths;
+
+ private EntityRef _JGZL_SteelPipeCheckRecord;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnRecordItemIdChanging(string value);
+ partial void OnRecordItemIdChanged();
+ partial void OnRecordIdChanging(string value);
+ partial void OnRecordIdChanged();
+ partial void OnPart1Changing(string value);
+ partial void OnPart1Changed();
+ partial void OnPart2Changing(string value);
+ partial void OnPart2Changed();
+ partial void OnPart3Changing(string value);
+ partial void OnPart3Changed();
+ partial void OnPart4Changing(string value);
+ partial void OnPart4Changed();
+ partial void OnInnerDiameterChanging(string value);
+ partial void OnInnerDiameterChanged();
+ partial void OnOuterDiameterChanging(string value);
+ partial void OnOuterDiameterChanged();
+ partial void OnLengthsChanging(string value);
+ partial void OnLengthsChanged();
+ #endregion
+
+ public JGZL_SteelPipeCheckRecordItem2()
+ {
+ this._JGZL_SteelPipeCheckRecord = default(EntityRef);
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordItemId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string RecordItemId
+ {
+ get
+ {
+ return this._RecordItemId;
+ }
+ set
+ {
+ if ((this._RecordItemId != value))
+ {
+ this.OnRecordItemIdChanging(value);
+ this.SendPropertyChanging();
+ this._RecordItemId = value;
+ this.SendPropertyChanged("RecordItemId");
+ this.OnRecordItemIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordId", DbType="NVarChar(50)")]
+ public string RecordId
+ {
+ get
+ {
+ return this._RecordId;
+ }
+ set
+ {
+ if ((this._RecordId != value))
+ {
+ if (this._JGZL_SteelPipeCheckRecord.HasLoadedOrAssignedValue)
+ {
+ throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
+ }
+ this.OnRecordIdChanging(value);
+ this.SendPropertyChanging();
+ this._RecordId = value;
+ this.SendPropertyChanged("RecordId");
+ this.OnRecordIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Part1", DbType="NVarChar(50)")]
+ public string Part1
+ {
+ get
+ {
+ return this._Part1;
+ }
+ set
+ {
+ if ((this._Part1 != value))
+ {
+ this.OnPart1Changing(value);
+ this.SendPropertyChanging();
+ this._Part1 = value;
+ this.SendPropertyChanged("Part1");
+ this.OnPart1Changed();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Part2", DbType="NVarChar(50)")]
+ public string Part2
+ {
+ get
+ {
+ return this._Part2;
+ }
+ set
+ {
+ if ((this._Part2 != value))
+ {
+ this.OnPart2Changing(value);
+ this.SendPropertyChanging();
+ this._Part2 = value;
+ this.SendPropertyChanged("Part2");
+ this.OnPart2Changed();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Part3", DbType="NVarChar(50)")]
+ public string Part3
+ {
+ get
+ {
+ return this._Part3;
+ }
+ set
+ {
+ if ((this._Part3 != value))
+ {
+ this.OnPart3Changing(value);
+ this.SendPropertyChanging();
+ this._Part3 = value;
+ this.SendPropertyChanged("Part3");
+ this.OnPart3Changed();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Part4", DbType="NVarChar(50)")]
+ public string Part4
+ {
+ get
+ {
+ return this._Part4;
+ }
+ set
+ {
+ if ((this._Part4 != value))
+ {
+ this.OnPart4Changing(value);
+ this.SendPropertyChanging();
+ this._Part4 = value;
+ this.SendPropertyChanged("Part4");
+ this.OnPart4Changed();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InnerDiameter", DbType="NVarChar(50)")]
+ public string InnerDiameter
+ {
+ get
+ {
+ return this._InnerDiameter;
+ }
+ set
+ {
+ if ((this._InnerDiameter != value))
+ {
+ this.OnInnerDiameterChanging(value);
+ this.SendPropertyChanging();
+ this._InnerDiameter = value;
+ this.SendPropertyChanged("InnerDiameter");
+ this.OnInnerDiameterChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OuterDiameter", DbType="NVarChar(50)")]
+ public string OuterDiameter
+ {
+ get
+ {
+ return this._OuterDiameter;
+ }
+ set
+ {
+ if ((this._OuterDiameter != value))
+ {
+ this.OnOuterDiameterChanging(value);
+ this.SendPropertyChanging();
+ this._OuterDiameter = value;
+ this.SendPropertyChanged("OuterDiameter");
+ this.OnOuterDiameterChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Lengths", DbType="NVarChar(50)")]
+ public string Lengths
+ {
+ get
+ {
+ return this._Lengths;
+ }
+ set
+ {
+ if ((this._Lengths != value))
+ {
+ this.OnLengthsChanging(value);
+ this.SendPropertyChanging();
+ this._Lengths = value;
+ this.SendPropertyChanged("Lengths");
+ this.OnLengthsChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_SteelPipeCheckRecordItem2_JGZL_SteelPipeCheckRecord", Storage="_JGZL_SteelPipeCheckRecord", ThisKey="RecordId", OtherKey="RecordId", IsForeignKey=true)]
+ public JGZL_SteelPipeCheckRecord JGZL_SteelPipeCheckRecord
+ {
+ get
+ {
+ return this._JGZL_SteelPipeCheckRecord.Entity;
+ }
+ set
+ {
+ JGZL_SteelPipeCheckRecord previousValue = this._JGZL_SteelPipeCheckRecord.Entity;
+ if (((previousValue != value)
+ || (this._JGZL_SteelPipeCheckRecord.HasLoadedOrAssignedValue == false)))
+ {
+ this.SendPropertyChanging();
+ if ((previousValue != null))
+ {
+ this._JGZL_SteelPipeCheckRecord.Entity = null;
+ previousValue.JGZL_SteelPipeCheckRecordItem2.Remove(this);
+ }
+ this._JGZL_SteelPipeCheckRecord.Entity = value;
+ if ((value != null))
+ {
+ value.JGZL_SteelPipeCheckRecordItem2.Add(this);
+ this._RecordId = value.RecordId;
+ }
+ else
+ {
+ this._RecordId = default(string);
+ }
+ this.SendPropertyChanged("JGZL_SteelPipeCheckRecord");
+ }
+ }
+ }
+
+ 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_TeamWeldingInspection")]
public partial class JGZL_TeamWeldingInspection : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -113044,6 +115293,8 @@ namespace Model
private EntitySet _JGZL_AcceptanceCertificate;
+ private EntitySet _JGZL_AnticorrosionEngineeringInspectionRecord;
+
private EntitySet _JGZL_BlowingCleaning;
private EntitySet _JGZL_CommencementReport;
@@ -113062,6 +115313,8 @@ namespace Model
private EntitySet _JGZL_IndustrialPipelineInstallationSummary;
+ private EntitySet _JGZL_MaterialIdentificationInspectionRecord;
+
private EntitySet _JGZL_MaterialQualityCertificateDoc;
private EntitySet _JGZL_MeasuringInstruments;
@@ -113080,6 +115333,8 @@ namespace Model
private EntitySet _JGZL_SpecialEquipmentMaintenance;
+ private EntitySet _JGZL_SteelPipeCheckRecord;
+
private EntitySet _JGZL_TeamWeldingInspection;
private EntitySet _JGZL_ValveInspectionTestRecord;
@@ -113168,6 +115423,7 @@ namespace Model
this._HJGL_Sys_UserShowColumns = new EntitySet(new Action(this.attach_HJGL_Sys_UserShowColumns), new Action(this.detach_HJGL_Sys_UserShowColumns));
this._HJGL_WeldingProcedure_WeldHotProcessCard = new EntitySet(new Action(this.attach_HJGL_WeldingProcedure_WeldHotProcessCard), new Action(this.detach_HJGL_WeldingProcedure_WeldHotProcessCard));
this._JGZL_AcceptanceCertificate = new EntitySet(new Action(this.attach_JGZL_AcceptanceCertificate), new Action(this.detach_JGZL_AcceptanceCertificate));
+ this._JGZL_AnticorrosionEngineeringInspectionRecord = new EntitySet(new Action