diff --git a/DataBase/版本日志/HJGLDB_DS_2026-01-28_xiaj.sql b/DataBase/版本日志/HJGLDB_DS_2026-01-28_xiaj.sql new file mode 100644 index 0000000..31a6467 --- /dev/null +++ b/DataBase/版本日志/HJGLDB_DS_2026-01-28_xiaj.sql @@ -0,0 +1,290 @@ + + +-- + +/**********˵************************************************************/ + +--26ܵϵͳѹȷϼ¼ +IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = 'C1E0F7E9-7786-49B8-89BA-4BD12DF7F50E') +BEGIN + INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule) + VALUES ('C1E0F7E9-7786-49B8-89BA-4BD12DF7F50E','ܵϵͳѹȷϼ¼','JGZL/PressureTestOfPipelineSystemConfirmationRecord.aspx',260,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3') +END +GO +IF NOT EXISTS (SELECT * FROM ButtonToMenu WHERE MenuId = 'C1E0F7E9-7786-49B8-89BA-4BD12DF7F50E') +BEGIN + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('6E4DCE61-6A33-4BD0-8008-13B7DDFD4156','C1E0F7E9-7786-49B8-89BA-4BD12DF7F50E','',1) + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('58B3FFF1-CE29-4EB3-92CC-B5B274EDB182','C1E0F7E9-7786-49B8-89BA-4BD12DF7F50E','޸',2) + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('4EC3C837-3BF9-42E1-B06F-2AEA074DF52D','C1E0F7E9-7786-49B8-89BA-4BD12DF7F50E','ɾ',3) + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('139EEC34-7E29-47AA-919F-F9989211BD69','C1E0F7E9-7786-49B8-89BA-4BD12DF7F50E','',4) +END +GO + +--27ܵϵͳѹ¼ +IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = 'B8A07C4A-E480-4658-A5BF-2A2CEE829622') +BEGIN + INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule) + VALUES ('B8A07C4A-E480-4658-A5BF-2A2CEE829622','ܵϵͳѹ¼','JGZL/PressureTestOfPipelineSystemRecord.aspx',270,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3') +END +GO +IF NOT EXISTS (SELECT * FROM ButtonToMenu WHERE MenuId = 'B8A07C4A-E480-4658-A5BF-2A2CEE829622') +BEGIN + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('87CD243B-A206-4B67-AD14-2BD9F1C91D97','B8A07C4A-E480-4658-A5BF-2A2CEE829622','',1) + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('2C23E5CC-2CAE-46D8-B890-36CDFE7C64A2','B8A07C4A-E480-4658-A5BF-2A2CEE829622','޸',2) + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('E6FB0C23-6A6A-4890-9553-01C157AED2CE','B8A07C4A-E480-4658-A5BF-2A2CEE829622','ɾ',3) + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('48F71436-346A-459F-9A6F-596F9F6F66AC','B8A07C4A-E480-4658-A5BF-2A2CEE829622','',4) +END +GO + +--28ܵϵͳй©¼ +IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = 'FF56CCBE-0B8C-4AF6-832E-EC6ED1584C94') +BEGIN + INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule) + VALUES ('FF56CCBE-0B8C-4AF6-832E-EC6ED1584C94','ܵϵͳй©¼','JGZL/LeakTestOfPipelineSystemRecord.aspx',280,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3') +END +GO +IF NOT EXISTS (SELECT * FROM ButtonToMenu WHERE MenuId = 'FF56CCBE-0B8C-4AF6-832E-EC6ED1584C94') +BEGIN + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('9BD5A7CF-E829-42FF-A99F-380E6CF613C7','FF56CCBE-0B8C-4AF6-832E-EC6ED1584C94','',1) + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('C946AA1A-F7C5-422B-88DD-53614F5C9E1B','FF56CCBE-0B8C-4AF6-832E-EC6ED1584C94','޸',2) + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('1092A6E7-7FE2-4F96-A269-5A192CC98BAA','FF56CCBE-0B8C-4AF6-832E-EC6ED1584C94','ɾ',3) + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('D66ADB7B-DC0C-49C5-B190-CB66DC0CB1EF','FF56CCBE-0B8C-4AF6-832E-EC6ED1584C94','',4) +END +GO + +/**********ݱ************************************************************/ + +--26ܵϵͳѹȷϼ¼ +IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_PressureTestOfPipelineSystemConfirmationRecord') AND type = N'U') +BEGIN + +CREATE TABLE [dbo].[JGZL_PressureTestOfPipelineSystemConfirmationRecord]( + [RecordId] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [SystemCode] [nvarchar](50) NULL, + [CheckItem1] [nvarchar](50) NULL, + [CheckItem2] [nvarchar](50) NULL, + [CheckItem3] [nvarchar](50) NULL, + [CheckItem4] [nvarchar](50) NULL, + [CheckItem5] [nvarchar](50) NULL, + [CheckItem6] [nvarchar](50) NULL, + [CheckItem7] [nvarchar](50) NULL, + [CheckItem8] [nvarchar](50) NULL, + [CheckItem9] [nvarchar](50) NULL, + [CheckItem10] [nvarchar](50) NULL, + [CheckItem11] [nvarchar](50) NULL, + [CheckItem12] [nvarchar](50) NULL, + [Remark] [nvarchar](500) NULL, + [CompileMan] [nvarchar](50) NULL, + [CompileDate] [datetime] NULL, + [Reviewer] [nvarchar](50) NULL, + [RevieweDate] [datetime] NULL, + CONSTRAINT [PK_JGZL_PressureTestOfPipelineSystemConfirmationRecord] 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_PressureTestOfPipelineSystemConfirmationRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_PressureTestOfPipelineSystemConfirmationRecord_Base_Project] FOREIGN KEY([ProjectId]) +REFERENCES [dbo].[Base_Project] ([ProjectId]) +ALTER TABLE [dbo].[JGZL_PressureTestOfPipelineSystemConfirmationRecord] CHECK CONSTRAINT [FK_JGZL_PressureTestOfPipelineSystemConfirmationRecord_Base_Project] +ALTER TABLE [dbo].[JGZL_PressureTestOfPipelineSystemConfirmationRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_PressureTestOfPipelineSystemConfirmationRecord_Sys_User] FOREIGN KEY([CompileMan]) +REFERENCES [dbo].[Sys_User] ([UserId]) +ALTER TABLE [dbo].[JGZL_PressureTestOfPipelineSystemConfirmationRecord] CHECK CONSTRAINT [FK_JGZL_PressureTestOfPipelineSystemConfirmationRecord_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_PressureTestOfPipelineSystemConfirmationRecord', @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_PressureTestOfPipelineSystemConfirmationRecord', @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_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'SystemName' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϵͳ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'SystemCode' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܵװļ͹淶Ҫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem1' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܵɼϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem2' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ӹ¼ȫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem3' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ļ͹淶Ҫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem4' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȴļ͹淶Ҫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem5' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'֧ܰװȷ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem6' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ͻֹܵʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem7' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܵϵͳİȫDZѰ涨룬ѹϵͳڵķȫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem8' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʱӹ̴ʩäλʶʩҪ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem9' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ӽͷҪIJλδ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem10' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ѹѹ̡ȵȼ춨״̬Ϲ淶Ҫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem11' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹܵˮϹ淶Ҫ󡢸ˮʷ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem12' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @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_PressureTestOfPipelineSystemConfirmationRecord', @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_PressureTestOfPipelineSystemConfirmationRecord', @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_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'Reviewer' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'RevieweDate' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܵϵͳѹȷϼ¼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord' + +END + +GO + + +--27ܵϵͳѹ¼ +IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_PressureTestOfPipelineSystemRecord') AND type = N'U') +BEGIN + +CREATE TABLE [dbo].[JGZL_PressureTestOfPipelineSystemRecord]( + [RecordId] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [SystemCode] [nvarchar](50) NULL, + [TestConclusion] [nvarchar](2000) NULL, + [Remark] [nvarchar](500) NULL, + [CompileMan] [nvarchar](50) NULL, + [CompileDate] [datetime] NULL, + [Reviewer] [nvarchar](50) NULL, + [RevieweDate] [datetime] NULL, + CONSTRAINT [PK_JGZL_PressureTestOfPipelineSystemRecord] 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_PressureTestOfPipelineSystemRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_PressureTestOfPipelineSystemRecord_Base_Project] FOREIGN KEY([ProjectId]) +REFERENCES [dbo].[Base_Project] ([ProjectId]) +ALTER TABLE [dbo].[JGZL_PressureTestOfPipelineSystemRecord] CHECK CONSTRAINT [FK_JGZL_PressureTestOfPipelineSystemRecord_Base_Project] +ALTER TABLE [dbo].[JGZL_PressureTestOfPipelineSystemRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_PressureTestOfPipelineSystemRecord_Sys_User] FOREIGN KEY([CompileMan]) +REFERENCES [dbo].[Sys_User] ([UserId]) +ALTER TABLE [dbo].[JGZL_PressureTestOfPipelineSystemRecord] CHECK CONSTRAINT [FK_JGZL_PressureTestOfPipelineSystemRecord_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_PressureTestOfPipelineSystemRecord', @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_PressureTestOfPipelineSystemRecord', @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_PressureTestOfPipelineSystemRecord', @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_PressureTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'SystemName' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϵͳ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'SystemCode' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'TestConclusion' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecord', @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_PressureTestOfPipelineSystemRecord', @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_PressureTestOfPipelineSystemRecord', @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_PressureTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'Reviewer' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'RevieweDate' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܵϵͳѹ¼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecord' + +END + +GO + +--ܵϵͳѹ¼ +IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_PressureTestOfPipelineSystemRecordItem') AND type = N'U') +BEGIN + +CREATE TABLE [dbo].[JGZL_PressureTestOfPipelineSystemRecordItem]( + [Id] [nvarchar](50) NOT NULL, + [RecordId] [nvarchar](50) NOT NULL, + [PipelineNo] [nvarchar](50) NULL, + [DesignPressure] [nvarchar](50) NULL, + [DesignTemperature] [nvarchar](50) NULL, + [TestTemperature] [nvarchar](50) NULL, + [TestMedium] [nvarchar](50) NULL, + [TestMediumTemperature] [nvarchar](50) NULL, + [TestPressure] [nvarchar](50) NULL, + [VoltageStabilizationTime] [nvarchar](50) NULL, + CONSTRAINT [PK_JGZL_PressureTestOfPipelineSystemRecordItem] PRIMARY KEY CLUSTERED +( + [Id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'Id' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¼Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecordItem', @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_PressureTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'PipelineNo' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ѹMPa' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'DesignPressure' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¶ȣ棩' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'DesignTemperature' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'黷¶ȣ棩' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'TestTemperature' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'TestMedium' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¶ȣ棩' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'TestMediumTemperature' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ѹMPa' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'TestPressure' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ѹʱ䣨min' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'VoltageStabilizationTime' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܵϵͳѹ¼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecordItem' + +END + +GO + +--28ܵϵͳй©¼ +IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_LeakTestOfPipelineSystemRecord') AND type = N'U') +BEGIN + +CREATE TABLE [dbo].[JGZL_LeakTestOfPipelineSystemRecord]( + [RecordId] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [SystemCode] [nvarchar](50) NULL, + [TestConclusion] [nvarchar](2000) NULL, + [Remark] [nvarchar](500) NULL, + [CompileMan] [nvarchar](50) NULL, + [CompileDate] [datetime] NULL, + [Reviewer] [nvarchar](50) NULL, + [RevieweDate] [datetime] NULL, + CONSTRAINT [PK_JGZL_LeakTestOfPipelineSystemRecord] 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_LeakTestOfPipelineSystemRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_LeakTestOfPipelineSystemRecord_Base_Project] FOREIGN KEY([ProjectId]) +REFERENCES [dbo].[Base_Project] ([ProjectId]) +ALTER TABLE [dbo].[JGZL_LeakTestOfPipelineSystemRecord] CHECK CONSTRAINT [FK_JGZL_LeakTestOfPipelineSystemRecord_Base_Project] +ALTER TABLE [dbo].[JGZL_LeakTestOfPipelineSystemRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_LeakTestOfPipelineSystemRecord_Sys_User] FOREIGN KEY([CompileMan]) +REFERENCES [dbo].[Sys_User] ([UserId]) +ALTER TABLE [dbo].[JGZL_LeakTestOfPipelineSystemRecord] CHECK CONSTRAINT [FK_JGZL_LeakTestOfPipelineSystemRecord_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_LeakTestOfPipelineSystemRecord', @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_LeakTestOfPipelineSystemRecord', @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_LeakTestOfPipelineSystemRecord', @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_LeakTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'SystemName' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϵͳ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'SystemCode' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'TestConclusion' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecord', @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_LeakTestOfPipelineSystemRecord', @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_LeakTestOfPipelineSystemRecord', @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_LeakTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'Reviewer' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'RevieweDate' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܵϵͳѹ¼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecord' + +END + +GO + +--ܵϵͳй©¼ +IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_LeakTestOfPipelineSystemRecordItem') AND type = N'U') +BEGIN + +CREATE TABLE [dbo].[JGZL_LeakTestOfPipelineSystemRecordItem]( + [Id] [nvarchar](50) NOT NULL, + [RecordId] [nvarchar](50) NOT NULL, + [PipelineNo] [nvarchar](50) NULL, + [DesignPressure] [nvarchar](50) NULL, + [DesignTemperature] [nvarchar](50) NULL, + [TestTemperature] [nvarchar](50) NULL, + --[TestMedium] [nvarchar](50) NULL, + [TestMediumTemperature] [nvarchar](50) NULL, + [TestPressure] [nvarchar](50) NULL, + [VoltageStabilizationTime] [nvarchar](50) NULL, + CONSTRAINT [PK_JGZL_LeakTestOfPipelineSystemRecordItem] PRIMARY KEY CLUSTERED +( + [Id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'Id' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¼Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecordItem', @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_LeakTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'PipelineNo' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ѹMPa' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'DesignPressure' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¶ȣ棩' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'DesignTemperature' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'黷¶ȣ棩' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'TestTemperature' +--EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'TestMedium' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¶ȣ棩' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'TestMediumTemperature' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ѹMPa' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'TestPressure' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ѹʱ䣨min' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'VoltageStabilizationTime' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܵϵͳѹ¼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecordItem' + +END + +GO diff --git a/HJGL_DS/BLL/.vs/BLL.csproj.dtbcache.json b/HJGL_DS/BLL/.vs/BLL.csproj.dtbcache.json index e7cb59b..7f9502a 100644 --- a/HJGL_DS/BLL/.vs/BLL.csproj.dtbcache.json +++ b/HJGL_DS/BLL/.vs/BLL.csproj.dtbcache.json @@ -1 +1 @@ -{"RootPath":"G:\\公司项目\\鼎盛\\HJGL_DS\\BLL","ProjectFileName":"BLL.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"API\\APIBaseServices.cs"},{"SourceFile":"API\\APIIsoInfoServicecs.cs"},{"SourceFile":"API\\APILoginServices.cs"},{"SourceFile":"API\\APIWeldingSynServic.cs"},{"SourceFile":"API\\APIJointInfoService.cs"},{"SourceFile":"API\\APIUnitInfoService.cs"},{"SourceFile":"API\\APIWeldServices.cs"},{"SourceFile":"AttachFile\\AttachFileService.cs"},{"SourceFile":"Common\\ADomainService.cs"},{"SourceFile":"Common\\BaseInfo\\AudiFlowService.cs"},{"SourceFile":"Common\\BaseInfo\\AuditFlowApproveService.cs.cs"},{"SourceFile":"Common\\BaseInfo\\Base_DepartService.cs"},{"SourceFile":"Common\\BaseInfo\\Base_OrganizationService.cs"},{"SourceFile":"Common\\BaseInfo\\Base_PrintFileCodeService.cs"},{"SourceFile":"Common\\BaseInfo\\Base_ProjectService.cs"},{"SourceFile":"Common\\BaseInfo\\Base_TeamGroupService.cs"},{"SourceFile":"Common\\BaseInfo\\Base_UnitService.cs"},{"SourceFile":"Common\\BaseInfo\\ProjectPlanService.cs"},{"SourceFile":"Common\\CacheHelper.cs"},{"SourceFile":"Common\\ChartControlService.cs"},{"SourceFile":"Common\\ConstValue.cs"},{"SourceFile":"Common\\FastReportService.cs"},{"SourceFile":"Common\\FileManage\\Common_FileManageService.cs"},{"SourceFile":"Common\\JsonHelper.cs"},{"SourceFile":"Common\\Migrated\\GetKey.cs"},{"SourceFile":"Common\\Migrated\\RSACrypto.cs"},{"SourceFile":"Common\\Migrated\\StringHelper.cs"},{"SourceFile":"Common\\Notice\\Attach_ImageService.cs"},{"SourceFile":"Common\\Notice\\Common_NoticeService.cs"},{"SourceFile":"Common\\Notice\\Common_NoticeSignService.cs"},{"SourceFile":"Common\\NPOIHelper.cs"},{"SourceFile":"Common\\ProjectSet\\Project_InstallationService.cs"},{"SourceFile":"Common\\ProjectSet\\Project_RoleButtonPowerrService.cs"},{"SourceFile":"Common\\ProjectSet\\Project_RolePowerService.cs"},{"SourceFile":"Common\\ProjectSet\\Project_SysSetService.cs"},{"SourceFile":"Common\\ProjectSet\\Project_UnitService.cs"},{"SourceFile":"Common\\ProjectSet\\Project_UserButtonPowerrService.cs"},{"SourceFile":"Common\\ProjectSet\\Project_UserPowerService.cs"},{"SourceFile":"Common\\ProjectSet\\Project_UserService.cs"},{"SourceFile":"Common\\ProjectSet\\Project_WelderService.cs"},{"SourceFile":"Common\\ProjectSet\\Project_WorkAreaService.cs"},{"SourceFile":"Common\\ReportPrint\\Common_ReportPrintService.cs"},{"SourceFile":"Common\\Resource\\Common_ConstructionStandardService.cs"},{"SourceFile":"Common\\Resource\\Common_LawRegulationService.cs"},{"SourceFile":"Common\\SysManage\\Sys_ButtonPowerService.cs"},{"SourceFile":"Common\\SysManage\\Sys_LogService.cs"},{"SourceFile":"Common\\SysManage\\Sys_RolePowerService.cs"},{"SourceFile":"Common\\SysManage\\Sys_RoleService.cs"},{"SourceFile":"Common\\SysManage\\Sys_UserService.cs"},{"SourceFile":"Common\\SysManage\\Sys_UserSettingsService.cs"},{"SourceFile":"Common\\SysManage\\Sys_UserShowColumnsService.cs"},{"SourceFile":"Common\\UploadAttachmentService.cs"},{"SourceFile":"Common\\CommonService.cs"},{"SourceFile":"Common\\Const.cs"},{"SourceFile":"ConvertObject.cs"},{"SourceFile":"DropListService.cs"},{"SourceFile":"DynamicTHeaderHepler.cs"},{"SourceFile":"ErrLogInfo.cs"},{"SourceFile":"FriendlyException.cs"},{"SourceFile":"Funs.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_ComponentsService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_ConsumablesService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_ControlService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_DetectionService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_EquipmentService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_ExecStandardService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_GrooveService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_HotProcessCardService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_JointImageItemService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_JointImageService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_MaterialClassService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_MaterialCompareService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_MaterialGroupService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_MaterialService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_MaterialStandardService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_MediumService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_PipingClassService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_StandardService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_TestingService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_TestStandardService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_WeldControlService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_WeldingMethodService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_WeldService.cs"},{"SourceFile":"HJGLServer\\FileControl\\HJGL_FileControl_CompanyStandardsService.cs"},{"SourceFile":"HJGLServer\\FileControl\\HJGL_FileControl_DomesticLawsRegulationsService.cs"},{"SourceFile":"HJGLServer\\FileControl\\HJGL_FileControl_DomesticStandardsService.cs"},{"SourceFile":"HJGLServer\\FileControl\\HJGL_FileControl_ForeignStandardsService.cs"},{"SourceFile":"HJGLServer\\WeldingManage\\HJGL_WeldingManage_WeldingProcedureService.cs"},{"SourceFile":"HJGL\\Batch\\HJGL_BO_BatchService.cs"},{"SourceFile":"HJGL\\Batch\\HJGL_BO_BatchDetailService.cs"},{"SourceFile":"HJGL\\Batch\\HJGL_BO_QualityRatingRepairService.cs"},{"SourceFile":"HJGL\\Batch\\HJGL_BO_QualityRatingService.cs"},{"SourceFile":"HJGL\\Batch\\HJGL_BO_RepairNoticeService.cs"},{"SourceFile":"HJGL\\CheckManage\\HJGL_RemakeReasonService.cs"},{"SourceFile":"HJGL\\CheckManage\\HJGL_TestingReportPrintService.cs"},{"SourceFile":"HJGL\\DataIn\\DataInTempService.cs"},{"SourceFile":"HJGL\\HotHardManage\\HJGL_CH_HardTestReportService.cs"},{"SourceFile":"HJGL\\HotHardManage\\HJGL_CH_HardTestResultService.cs"},{"SourceFile":"HJGL\\HotProessManage\\HJGL_CH_HotProessResultService.cs"},{"SourceFile":"HJGL\\HotProessManage\\HJGL_CH_HotProessTrustService.cs"},{"SourceFile":"HJGL\\HotProessManage\\HJGL_HotProessManageEditService.cs"},{"SourceFile":"HJGL\\Match\\HJGL_Match_InStorageItemService.cs"},{"SourceFile":"HJGL\\Match\\HJGL_Match_InStorageService.cs"},{"SourceFile":"HJGL\\Match\\HJGL_Match_MaterialService.cs"},{"SourceFile":"HJGL\\Match\\HJGL_Match_PipeMaterialService.cs"},{"SourceFile":"HJGL\\Match\\HJGL_Match_StorageService.cs"},{"SourceFile":"HJGL\\MaterialManage\\HJGL_BakeRecordsProjectService.cs"},{"SourceFile":"HJGL\\MaterialManage\\HJGL_ElectrodeBakeService.cs"},{"SourceFile":"HJGL\\MaterialManage\\HJGL_ElectrodeRecoveryService.cs"},{"SourceFile":"HJGL\\MaterialManage\\HJGL_EMaterialRegistService.cs"},{"SourceFile":"HJGL\\MaterialManage\\HJGL_EMInventoryRecordsService.cs"},{"SourceFile":"HJGL\\MaterialManage\\HJGL_EWeldRHRecordService.cs"},{"SourceFile":"HJGL\\MaterialManage\\QualityCertificateService.cs"},{"SourceFile":"HJGL\\MaterialManage\\TemperatureAndHumidityProjectService.cs"},{"SourceFile":"HJGL\\PersonManage\\HJGL_PersonManageService.cs"},{"SourceFile":"HJGL\\PersonManage\\HJGL_WelderQualifiedProjectService.cs"},{"SourceFile":"HJGL\\PersonManage\\HJGL_WelderScoreService.cs"},{"SourceFile":"HJGL\\RepairManage\\HJGL_RepairItemService.cs"},{"SourceFile":"HJGL\\RepairManage\\HJGL_RepairService.cs"},{"SourceFile":"HJGL\\TestPackageManage\\HJGL_TestPackageManageEditService.cs"},{"SourceFile":"HJGL\\TrustManage\\HJGL_CH_TrustItemService.cs"},{"SourceFile":"HJGL\\TrustManage\\HJGL_TrustManageEditService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_BO_PreWeldReportMainService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_CH_RepairItemRecordService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_MatchedProcedureMaterialService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_ProcedureImageService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_PW_IsoInfoService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_PW_JointInfoService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_TestingParametersService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_UserShowColumnsService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_WeldHotProcessCardService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_WeldingProcedureJotService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_WeldingProcedureService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_WeldingProcessCardService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_WeldRepairCardService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_WeldReportService.cs"},{"SourceFile":"HJGL\\WeldingManage\\WelderOKRateService.cs"},{"SourceFile":"HJGL\\WeldingManage\\WelderOKRateStatisticsService.cs"},{"SourceFile":"HJGL\\WeldingManage\\WeldRecordInService.cs"},{"SourceFile":"JGZL\\AcceptanceCertificateService.cs"},{"SourceFile":"JGZL\\BlowingCleaningItemService.cs"},{"SourceFile":"JGZL\\BlowingCleaningService.cs"},{"SourceFile":"JGZL\\CommencementReportService.cs"},{"SourceFile":"JGZL\\ConDrawingVerificationService.cs"},{"SourceFile":"JGZL\\ContactService.cs"},{"SourceFile":"JGZL\\ElectrostaticGroundingService.cs"},{"SourceFile":"JGZL\\HandoverCertificateService.cs"},{"SourceFile":"JGZL\\MeasuringInstrumentsService.cs"},{"SourceFile":"JGZL\\NDTPersonService.cs"},{"SourceFile":"JGZL\\QualityControlPointInspectionService.cs"},{"SourceFile":"JGZL\\SpecialEquipmentMaintenanceService.cs"},{"SourceFile":"JGZL\\TeamWeldingInspectionItemService.cs"},{"SourceFile":"JGZL\\TeamWeldingInspectionService.cs"},{"SourceFile":"JsonHelper.cs"},{"SourceFile":"libFace.cs"},{"SourceFile":"libOpenCV.cs"},{"SourceFile":"Logger.cs"},{"SourceFile":"MethodRefelect.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"RefComm.cs"},{"SourceFile":"ReportPrint\\ReportPrintService.cs"},{"SourceFile":"SendEmailService.cs"},{"SourceFile":"SessionName.cs"},{"SourceFile":"SoftRegeditService.cs"},{"SourceFile":"SQLHelper.cs"},{"SourceFile":"Common\\UploadFileService.cs"},{"SourceFile":"WeldMat\\BaseInfo\\SpecificationsService.cs"},{"SourceFile":"WeldMat\\BaseInfo\\StoremanInfoService.cs"},{"SourceFile":"WeldMat\\BaseInfo\\SupplierService.cs"},{"SourceFile":"WeldMat\\BaseInfo\\UnitStoreService.cs"},{"SourceFile":"WeldMat\\BaseInfo\\WeldInfoService.cs"},{"SourceFile":"WeldMat\\BaseInfo\\WeldTypeService.cs"},{"SourceFile":"WeldMat\\MatBake\\ElectrodeBakeService.cs"},{"SourceFile":"WeldMat\\Recycle\\RecycleMatService.cs"},{"SourceFile":"WeldMat\\Recycle\\RecycleMatTopService.cs"},{"SourceFile":"WeldMat\\Stock\\StockInitService.cs"},{"SourceFile":"WeldMat\\Stock\\StockInService.cs"},{"SourceFile":"WeldMat\\UsingPlan\\UsingPlanService.cs"},{"SourceFile":"WeldMat\\UsingSentMat\\UsingMatService.cs"},{"SourceFile":"WeldMat\\WeldMatDataBase\\BakeRecordsService.cs"},{"SourceFile":"WeldMat\\WeldMatDataBase\\TemperatureAndHumidityService.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.6.1.AssemblyAttributes.cs"}],"References":[{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\packages\\Portable.BouncyCastle.1.8.9\\lib\\net40\\BouncyCastle.Crypto.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\FineUIPro\\Reference BLL\\FastReport.Bars.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\FineUIPro\\Reference BLL\\FastReport.Compat.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\FineUIPro\\Reference BLL\\FastReport.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\FineUIPro\\Reference BLL\\FastReport.Editor.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\FineUIPro\\Reference BLL\\FastReport.Web.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\FineUIPro\\FineUIPro.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\packages\\SharpZipLib.1.3.2\\lib\\net45\\ICSharpCode.SharpZipLib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\Microsoft.CSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\Microsoft.SQLServer.ManagedDTS\\v4.0_16.0.0.0__89845dcd8080cc91\\Microsoft.SQLServer.ManagedDTS.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\Model\\bin\\Debug\\Model.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":true,"ProjectPath":"G:\\公司项目\\鼎盛\\HJGL_DS\\Model\\bin\\Debug\\Model.dll"},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\packages\\Newtonsoft.Json.12.0.1\\lib\\net45\\Newtonsoft.Json.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\packages\\NPOI.2.5.5\\lib\\net45\\NPOI.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\packages\\NPOI.2.5.5\\lib\\net45\\NPOI.OOXML.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\packages\\NPOI.2.5.5\\lib\\net45\\NPOI.OpenXml4Net.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\packages\\NPOI.2.5.5\\lib\\net45\\NPOI.OpenXmlFormats.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Data.DataSetExtensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Data.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.DirectoryServices.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Drawing.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Management.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Runtime.Caching.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Runtime.Serialization.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.ServiceModel.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Web.DataVisualization.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Web.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Xml.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"G:\\公司项目\\鼎盛\\HJGL_DS\\BLL\\bin\\Debug\\BLL.dll","OutputItemRelativePath":"BLL.dll"},{"OutputItemFullPath":"","OutputItemRelativePath":""}],"CopyToOutputEntries":[]} \ No newline at end of file +{"RootPath":"G:\\公司项目\\鼎盛\\HJGL_DS\\BLL","ProjectFileName":"BLL.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"API\\APIBaseServices.cs"},{"SourceFile":"API\\APIIsoInfoServicecs.cs"},{"SourceFile":"API\\APILoginServices.cs"},{"SourceFile":"API\\APIWeldingSynServic.cs"},{"SourceFile":"API\\APIJointInfoService.cs"},{"SourceFile":"API\\APIUnitInfoService.cs"},{"SourceFile":"API\\APIWeldServices.cs"},{"SourceFile":"AttachFile\\AttachFileService.cs"},{"SourceFile":"Common\\ADomainService.cs"},{"SourceFile":"Common\\BaseInfo\\AudiFlowService.cs"},{"SourceFile":"Common\\BaseInfo\\AuditFlowApproveService.cs.cs"},{"SourceFile":"Common\\BaseInfo\\Base_DepartService.cs"},{"SourceFile":"Common\\BaseInfo\\Base_OrganizationService.cs"},{"SourceFile":"Common\\BaseInfo\\Base_PrintFileCodeService.cs"},{"SourceFile":"Common\\BaseInfo\\Base_ProjectService.cs"},{"SourceFile":"Common\\BaseInfo\\Base_TeamGroupService.cs"},{"SourceFile":"Common\\BaseInfo\\Base_UnitService.cs"},{"SourceFile":"Common\\BaseInfo\\ProjectPlanService.cs"},{"SourceFile":"Common\\CacheHelper.cs"},{"SourceFile":"Common\\ChartControlService.cs"},{"SourceFile":"Common\\ConstValue.cs"},{"SourceFile":"Common\\FastReportService.cs"},{"SourceFile":"Common\\FileManage\\Common_FileManageService.cs"},{"SourceFile":"Common\\JsonHelper.cs"},{"SourceFile":"Common\\Migrated\\GetKey.cs"},{"SourceFile":"Common\\Migrated\\RSACrypto.cs"},{"SourceFile":"Common\\Migrated\\StringHelper.cs"},{"SourceFile":"Common\\Notice\\Attach_ImageService.cs"},{"SourceFile":"Common\\Notice\\Common_NoticeService.cs"},{"SourceFile":"Common\\Notice\\Common_NoticeSignService.cs"},{"SourceFile":"Common\\NPOIHelper.cs"},{"SourceFile":"Common\\ProjectSet\\Project_InstallationService.cs"},{"SourceFile":"Common\\ProjectSet\\Project_RoleButtonPowerrService.cs"},{"SourceFile":"Common\\ProjectSet\\Project_RolePowerService.cs"},{"SourceFile":"Common\\ProjectSet\\Project_SysSetService.cs"},{"SourceFile":"Common\\ProjectSet\\Project_UnitService.cs"},{"SourceFile":"Common\\ProjectSet\\Project_UserButtonPowerrService.cs"},{"SourceFile":"Common\\ProjectSet\\Project_UserPowerService.cs"},{"SourceFile":"Common\\ProjectSet\\Project_UserService.cs"},{"SourceFile":"Common\\ProjectSet\\Project_WelderService.cs"},{"SourceFile":"Common\\ProjectSet\\Project_WorkAreaService.cs"},{"SourceFile":"Common\\ReportPrint\\Common_ReportPrintService.cs"},{"SourceFile":"Common\\Resource\\Common_ConstructionStandardService.cs"},{"SourceFile":"Common\\Resource\\Common_LawRegulationService.cs"},{"SourceFile":"Common\\SysManage\\Sys_ButtonPowerService.cs"},{"SourceFile":"Common\\SysManage\\Sys_LogService.cs"},{"SourceFile":"Common\\SysManage\\Sys_RolePowerService.cs"},{"SourceFile":"Common\\SysManage\\Sys_RoleService.cs"},{"SourceFile":"Common\\SysManage\\Sys_UserService.cs"},{"SourceFile":"Common\\SysManage\\Sys_UserSettingsService.cs"},{"SourceFile":"Common\\SysManage\\Sys_UserShowColumnsService.cs"},{"SourceFile":"Common\\UploadAttachmentService.cs"},{"SourceFile":"Common\\CommonService.cs"},{"SourceFile":"Common\\Const.cs"},{"SourceFile":"ConvertObject.cs"},{"SourceFile":"DropListService.cs"},{"SourceFile":"DynamicTHeaderHepler.cs"},{"SourceFile":"ErrLogInfo.cs"},{"SourceFile":"FriendlyException.cs"},{"SourceFile":"Funs.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_ComponentsService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_ConsumablesService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_ControlService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_DetectionService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_EquipmentService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_ExecStandardService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_GrooveService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_HotProcessCardService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_JointImageItemService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_JointImageService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_MaterialClassService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_MaterialCompareService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_MaterialGroupService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_MaterialService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_MaterialStandardService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_MediumService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_PipingClassService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_StandardService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_TestingService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_TestStandardService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_WeldControlService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_WeldingMethodService.cs"},{"SourceFile":"HJGLServer\\BaseInfo\\HJGL_WeldService.cs"},{"SourceFile":"HJGLServer\\FileControl\\HJGL_FileControl_CompanyStandardsService.cs"},{"SourceFile":"HJGLServer\\FileControl\\HJGL_FileControl_DomesticLawsRegulationsService.cs"},{"SourceFile":"HJGLServer\\FileControl\\HJGL_FileControl_DomesticStandardsService.cs"},{"SourceFile":"HJGLServer\\FileControl\\HJGL_FileControl_ForeignStandardsService.cs"},{"SourceFile":"HJGLServer\\WeldingManage\\HJGL_WeldingManage_WeldingProcedureService.cs"},{"SourceFile":"HJGL\\Batch\\HJGL_BO_BatchService.cs"},{"SourceFile":"HJGL\\Batch\\HJGL_BO_BatchDetailService.cs"},{"SourceFile":"HJGL\\Batch\\HJGL_BO_QualityRatingRepairService.cs"},{"SourceFile":"HJGL\\Batch\\HJGL_BO_QualityRatingService.cs"},{"SourceFile":"HJGL\\Batch\\HJGL_BO_RepairNoticeService.cs"},{"SourceFile":"HJGL\\CheckManage\\HJGL_RemakeReasonService.cs"},{"SourceFile":"HJGL\\CheckManage\\HJGL_TestingReportPrintService.cs"},{"SourceFile":"HJGL\\DataIn\\DataInTempService.cs"},{"SourceFile":"HJGL\\HotHardManage\\HJGL_CH_HardTestReportService.cs"},{"SourceFile":"HJGL\\HotHardManage\\HJGL_CH_HardTestResultService.cs"},{"SourceFile":"HJGL\\HotProessManage\\HJGL_CH_HotProessResultService.cs"},{"SourceFile":"HJGL\\HotProessManage\\HJGL_CH_HotProessTrustService.cs"},{"SourceFile":"HJGL\\HotProessManage\\HJGL_HotProessManageEditService.cs"},{"SourceFile":"HJGL\\Match\\HJGL_Match_InStorageItemService.cs"},{"SourceFile":"HJGL\\Match\\HJGL_Match_InStorageService.cs"},{"SourceFile":"HJGL\\Match\\HJGL_Match_MaterialService.cs"},{"SourceFile":"HJGL\\Match\\HJGL_Match_PipeMaterialService.cs"},{"SourceFile":"HJGL\\Match\\HJGL_Match_StorageService.cs"},{"SourceFile":"HJGL\\MaterialManage\\HJGL_BakeRecordsProjectService.cs"},{"SourceFile":"HJGL\\MaterialManage\\HJGL_ElectrodeBakeService.cs"},{"SourceFile":"HJGL\\MaterialManage\\HJGL_ElectrodeRecoveryService.cs"},{"SourceFile":"HJGL\\MaterialManage\\HJGL_EMaterialRegistService.cs"},{"SourceFile":"HJGL\\MaterialManage\\HJGL_EMInventoryRecordsService.cs"},{"SourceFile":"HJGL\\MaterialManage\\HJGL_EWeldRHRecordService.cs"},{"SourceFile":"HJGL\\MaterialManage\\QualityCertificateService.cs"},{"SourceFile":"HJGL\\MaterialManage\\TemperatureAndHumidityProjectService.cs"},{"SourceFile":"HJGL\\PersonManage\\HJGL_PersonManageService.cs"},{"SourceFile":"HJGL\\PersonManage\\HJGL_WelderQualifiedProjectService.cs"},{"SourceFile":"HJGL\\PersonManage\\HJGL_WelderScoreService.cs"},{"SourceFile":"HJGL\\RepairManage\\HJGL_RepairItemService.cs"},{"SourceFile":"HJGL\\RepairManage\\HJGL_RepairService.cs"},{"SourceFile":"HJGL\\TestPackageManage\\HJGL_TestPackageManageEditService.cs"},{"SourceFile":"HJGL\\TrustManage\\HJGL_CH_TrustItemService.cs"},{"SourceFile":"HJGL\\TrustManage\\HJGL_TrustManageEditService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_BO_PreWeldReportMainService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_CH_RepairItemRecordService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_MatchedProcedureMaterialService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_ProcedureImageService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_PW_IsoInfoService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_PW_JointInfoService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_TestingParametersService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_UserShowColumnsService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_WeldHotProcessCardService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_WeldingProcedureJotService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_WeldingProcedureService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_WeldingProcessCardService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_WeldRepairCardService.cs"},{"SourceFile":"HJGL\\WeldingManage\\HJGL_WeldReportService.cs"},{"SourceFile":"HJGL\\WeldingManage\\WelderOKRateService.cs"},{"SourceFile":"HJGL\\WeldingManage\\WelderOKRateStatisticsService.cs"},{"SourceFile":"HJGL\\WeldingManage\\WeldRecordInService.cs"},{"SourceFile":"JGZL\\AcceptanceCertificateService.cs"},{"SourceFile":"JGZL\\AnticorrosionEngineeringInspectionRecordItemService.cs"},{"SourceFile":"JGZL\\AnticorrosionEngineeringInspectionRecordService.cs"},{"SourceFile":"JGZL\\BlowingCleaningItemService.cs"},{"SourceFile":"JGZL\\BlowingCleaningService.cs"},{"SourceFile":"JGZL\\CommencementReportService.cs"},{"SourceFile":"JGZL\\ConcealedWorksInspectionRecordService.cs"},{"SourceFile":"JGZL\\ConDrawingVerificationService.cs"},{"SourceFile":"JGZL\\ContactService.cs"},{"SourceFile":"JGZL\\ElectrostaticGroundingService.cs"},{"SourceFile":"JGZL\\HandoverCertificateService.cs"},{"SourceFile":"JGZL\\IndustrialPipelineInstallationQualityCertificateService.cs"},{"SourceFile":"JGZL\\IndustrialPipelineInstallationSummaryService.cs"},{"SourceFile":"JGZL\\MaterialIdentificationInspectionRecordService.cs"},{"SourceFile":"JGZL\\MaterialQualityCertificateDocService.cs"},{"SourceFile":"JGZL\\MeasuringInstrumentsService.cs"},{"SourceFile":"JGZL\\NDTPersonService.cs"},{"SourceFile":"JGZL\\PipeFittingInspectionRecordService.cs"},{"SourceFile":"JGZL\\PipelineInstallationInspectionRecordService.cs"},{"SourceFile":"JGZL\\PipelinePrefabricationConstructionInspectionRecordService.cs"},{"SourceFile":"JGZL\\ProcessHandoverRecordService.cs"},{"SourceFile":"JGZL\\QualityControlPointInspectionService.cs"},{"SourceFile":"JGZL\\SpecialEquipmentMaintenanceService.cs"},{"SourceFile":"JGZL\\SteelPipeCheckRecordItem1Service.cs"},{"SourceFile":"JGZL\\SteelPipeCheckRecordItem2Service.cs"},{"SourceFile":"JGZL\\SteelPipeCheckRecordService.cs"},{"SourceFile":"JGZL\\TeamWeldingInspectionItemService.cs"},{"SourceFile":"JGZL\\TeamWeldingInspectionService.cs"},{"SourceFile":"JGZL\\ValveInspectionTestRecordService.cs"},{"SourceFile":"JGZL\\ValveTestConfirmationFormService.cs"},{"SourceFile":"JsonHelper.cs"},{"SourceFile":"libFace.cs"},{"SourceFile":"libOpenCV.cs"},{"SourceFile":"Logger.cs"},{"SourceFile":"MethodRefelect.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"RefComm.cs"},{"SourceFile":"ReportPrint\\ReportPrintService.cs"},{"SourceFile":"SendEmailService.cs"},{"SourceFile":"SessionName.cs"},{"SourceFile":"SoftRegeditService.cs"},{"SourceFile":"SQLHelper.cs"},{"SourceFile":"Common\\UploadFileService.cs"},{"SourceFile":"WeldMat\\BaseInfo\\SpecificationsService.cs"},{"SourceFile":"WeldMat\\BaseInfo\\StoremanInfoService.cs"},{"SourceFile":"WeldMat\\BaseInfo\\SupplierService.cs"},{"SourceFile":"WeldMat\\BaseInfo\\UnitStoreService.cs"},{"SourceFile":"WeldMat\\BaseInfo\\WeldInfoService.cs"},{"SourceFile":"WeldMat\\BaseInfo\\WeldTypeService.cs"},{"SourceFile":"WeldMat\\MatBake\\ElectrodeBakeService.cs"},{"SourceFile":"WeldMat\\Recycle\\RecycleMatService.cs"},{"SourceFile":"WeldMat\\Recycle\\RecycleMatTopService.cs"},{"SourceFile":"WeldMat\\Stock\\StockInitService.cs"},{"SourceFile":"WeldMat\\Stock\\StockInService.cs"},{"SourceFile":"WeldMat\\UsingPlan\\UsingPlanService.cs"},{"SourceFile":"WeldMat\\UsingSentMat\\UsingMatService.cs"},{"SourceFile":"WeldMat\\WeldMatDataBase\\BakeRecordsService.cs"},{"SourceFile":"WeldMat\\WeldMatDataBase\\TemperatureAndHumidityService.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.6.1.AssemblyAttributes.cs"}],"References":[{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\packages\\Portable.BouncyCastle.1.8.9\\lib\\net40\\BouncyCastle.Crypto.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\FineUIPro\\Reference BLL\\FastReport.Bars.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\FineUIPro\\Reference BLL\\FastReport.Compat.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\FineUIPro\\Reference BLL\\FastReport.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\FineUIPro\\Reference BLL\\FastReport.Editor.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\FineUIPro\\Reference BLL\\FastReport.Web.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\FineUIPro\\FineUIPro.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\packages\\SharpZipLib.1.3.2\\lib\\net45\\ICSharpCode.SharpZipLib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\Microsoft.CSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\Microsoft.SQLServer.ManagedDTS\\v4.0_16.0.0.0__89845dcd8080cc91\\Microsoft.SQLServer.ManagedDTS.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\Model\\bin\\Debug\\Model.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":true,"ProjectPath":"G:\\公司项目\\鼎盛\\HJGL_DS\\Model\\bin\\Debug\\Model.dll"},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\packages\\Newtonsoft.Json.12.0.1\\lib\\net45\\Newtonsoft.Json.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\packages\\NPOI.2.5.5\\lib\\net45\\NPOI.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\packages\\NPOI.2.5.5\\lib\\net45\\NPOI.OOXML.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\packages\\NPOI.2.5.5\\lib\\net45\\NPOI.OpenXml4Net.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\公司项目\\鼎盛\\HJGL_DS\\packages\\NPOI.2.5.5\\lib\\net45\\NPOI.OpenXmlFormats.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Data.DataSetExtensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Data.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.DirectoryServices.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Drawing.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Management.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Runtime.Caching.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Runtime.Serialization.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.ServiceModel.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Web.DataVisualization.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Web.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Xml.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"G:\\公司项目\\鼎盛\\HJGL_DS\\BLL\\bin\\Debug\\BLL.dll","OutputItemRelativePath":"BLL.dll"},{"OutputItemFullPath":"","OutputItemRelativePath":""}],"CopyToOutputEntries":[]} \ No newline at end of file diff --git a/HJGL_DS/BLL/BLL.csproj b/HJGL_DS/BLL/BLL.csproj index bcd23af..b07f9b6 100644 --- a/HJGL_DS/BLL/BLL.csproj +++ b/HJGL_DS/BLL/BLL.csproj @@ -247,7 +247,12 @@ + + + + + diff --git a/HJGL_DS/BLL/Common/Const.cs b/HJGL_DS/BLL/Common/Const.cs index 69627f5..e1b6194 100644 --- a/HJGL_DS/BLL/Common/Const.cs +++ b/HJGL_DS/BLL/Common/Const.cs @@ -1845,6 +1845,21 @@ namespace BLL /// public const string JGZL_PipeFittingInspectionRecordMenuId = "4A4FD28C-6B6B-4BDE-9CE0-73955FCACF5A"; + /// + /// 管道系统压力试验条件确认记录 + /// + public const string JGZL_PressureTestOfPipelineSystemConfirmationRecordMenuId = "C1E0F7E9-7786-49B8-89BA-4BD12DF7F50E"; + + /// + /// 管道系统压力试验记录 + /// + public const string JGZL_PressureTestOfPipelineSystemRecordMenuId = "B8A07C4A-E480-4658-A5BF-2A2CEE829622"; + + /// + /// 管道系统泄漏性试验记录 + /// + public const string JGZL_LeakTestOfPipelineSystemRecordMenuId = "FF56CCBE-0B8C-4AF6-832E-EC6ED1584C94"; + /// /// 工序交接记录 /// diff --git a/HJGL_DS/BLL/JGZL/LeakTestOfPipelineSystemRecordItemService.cs b/HJGL_DS/BLL/JGZL/LeakTestOfPipelineSystemRecordItemService.cs new file mode 100644 index 0000000..4d8facb --- /dev/null +++ b/HJGL_DS/BLL/JGZL/LeakTestOfPipelineSystemRecordItemService.cs @@ -0,0 +1,107 @@ +using System.Collections.Generic; +using Model; +using System.Linq; + + +namespace BLL +{ + public class LeakTestOfPipelineSystemRecordItemService + { + /// + /// 根据主键获取管道系统泄漏性试验记录子表 + /// + /// + /// + public static Model.JGZL_LeakTestOfPipelineSystemRecordItem GetItemById(string Id) + { + return Funs.DB.JGZL_LeakTestOfPipelineSystemRecordItem.FirstOrDefault(e => e.Id == Id); + } + + + /// + /// 根据主键获取管道系统泄漏性试验记录子表 + /// + /// + /// + public static List GetItemByRecordId(string recordId) + { + return Funs.DB.JGZL_LeakTestOfPipelineSystemRecordItem.Where(e => + e.RecordId == recordId).ToList(); + } + + + /// + /// 添加管道系统泄漏性试验记录子表 + /// + /// + public static void AddItem(Model.JGZL_LeakTestOfPipelineSystemRecordItem item) + { + SGGLDB db = Funs.DB; + Model.JGZL_LeakTestOfPipelineSystemRecordItem newItem = new Model.JGZL_LeakTestOfPipelineSystemRecordItem(); + newItem.Id = item.Id; + newItem.RecordId = item.RecordId; + newItem.PipelineNo = item.PipelineNo; + newItem.DesignPressure = item.DesignPressure; + newItem.DesignTemperature = item.DesignTemperature; + newItem.TestTemperature = item.TestTemperature; + //newItem.TestMedium = item.TestMedium; + newItem.TestMediumTemperature = item.TestMediumTemperature; + newItem.TestPressure = item.TestPressure; + newItem.VoltageStabilizationTime = item.VoltageStabilizationTime; + db.JGZL_LeakTestOfPipelineSystemRecordItem.InsertOnSubmit(newItem); + db.SubmitChanges(); + } + + /// + /// 修改管道系统泄漏性试验记录子表 + /// + /// + public static void UpdateItem(Model.JGZL_LeakTestOfPipelineSystemRecordItem item) + { + SGGLDB db = Funs.DB; + Model.JGZL_LeakTestOfPipelineSystemRecordItem newItem = db.JGZL_LeakTestOfPipelineSystemRecordItem.FirstOrDefault(e => e.Id == item.Id); + if (newItem != null) + { + newItem.PipelineNo = item.PipelineNo; + newItem.DesignPressure = item.DesignPressure; + newItem.DesignTemperature = item.DesignTemperature; + newItem.TestTemperature = item.TestTemperature; + //newItem.TestMedium = item.TestMedium; + newItem.TestMediumTemperature = item.TestMediumTemperature; + newItem.TestPressure = item.TestPressure; + newItem.VoltageStabilizationTime = item.VoltageStabilizationTime; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除管道系统泄漏性试验记录子表 + /// + /// + public static void DeleteItemById(string Id) + { + SGGLDB db = Funs.DB; + Model.JGZL_LeakTestOfPipelineSystemRecordItem item = db.JGZL_LeakTestOfPipelineSystemRecordItem.FirstOrDefault(e => e.Id == Id); + if (item != null) + { + db.JGZL_LeakTestOfPipelineSystemRecordItem.DeleteOnSubmit(item); + db.SubmitChanges(); + } + } + + /// + /// 根据主表删除管道系统泄漏性试验记录子表 + /// + /// + public static void DeleteItemByRecordId(string recordId) + { + SGGLDB db = Funs.DB; + List items = db.JGZL_LeakTestOfPipelineSystemRecordItem.Where(e => e.RecordId == recordId).ToList(); + if (items != null) + { + db.JGZL_LeakTestOfPipelineSystemRecordItem.DeleteAllOnSubmit(items); + db.SubmitChanges(); + } + } + } +} \ No newline at end of file diff --git a/HJGL_DS/BLL/JGZL/LeakTestOfPipelineSystemRecordService.cs b/HJGL_DS/BLL/JGZL/LeakTestOfPipelineSystemRecordService.cs new file mode 100644 index 0000000..207b8e7 --- /dev/null +++ b/HJGL_DS/BLL/JGZL/LeakTestOfPipelineSystemRecordService.cs @@ -0,0 +1,72 @@ +using Model; +using System.Linq; + + +namespace BLL +{ + public class LeakTestOfPipelineSystemRecordService + { + /// + /// 根据主键获取管道系统泄漏性试验记录 + /// + /// + /// + public static Model.JGZL_LeakTestOfPipelineSystemRecord GetLeakTestOfPipelineSystemRecordById(string recordId) + { + return Funs.DB.JGZL_LeakTestOfPipelineSystemRecord.FirstOrDefault(e => e.RecordId == recordId); + } + + /// + /// 添加管道系统泄漏性试验记录 + /// + /// + public static void AddLeakTestOfPipelineSystemRecord(Model.JGZL_LeakTestOfPipelineSystemRecord model) + { + SGGLDB db = Funs.DB; + Model.JGZL_LeakTestOfPipelineSystemRecord newModel = new Model.JGZL_LeakTestOfPipelineSystemRecord(); + newModel.RecordId = model.RecordId; + newModel.ProjectId = model.ProjectId; + newModel.SystemName = model.SystemName; + newModel.SystemCode = model.SystemCode; + newModel.TestConclusion = model.TestConclusion; + newModel.Remark = model.Remark; + newModel.CompileMan = model.CompileMan; + newModel.CompileDate = model.CompileDate; + db.JGZL_LeakTestOfPipelineSystemRecord.InsertOnSubmit(newModel); + db.SubmitChanges(); + } + + /// + /// 修改管道系统泄漏性试验记录 + /// + /// + public static void UpdateLeakTestOfPipelineSystemRecord(Model.JGZL_LeakTestOfPipelineSystemRecord model) + { + SGGLDB db = Funs.DB; + Model.JGZL_LeakTestOfPipelineSystemRecord newModel = db.JGZL_LeakTestOfPipelineSystemRecord.FirstOrDefault(e => e.RecordId == model.RecordId); + if (newModel != null) + { + newModel.SystemName = model.SystemName; + newModel.SystemCode = model.SystemCode; + newModel.TestConclusion = model.TestConclusion; + newModel.Remark = model.Remark; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除管道系统泄漏性试验记录 + /// + /// + public static void DeleteLeakTestOfPipelineSystemRecordById(string recordId) + { + SGGLDB db = Funs.DB; + Model.JGZL_LeakTestOfPipelineSystemRecord model = db.JGZL_LeakTestOfPipelineSystemRecord.FirstOrDefault(e => e.RecordId == recordId); + if (model != null) + { + db.JGZL_LeakTestOfPipelineSystemRecord.DeleteOnSubmit(model); + db.SubmitChanges(); + } + } + } +} \ No newline at end of file diff --git a/HJGL_DS/BLL/JGZL/PressureTestOfPipelineSystemConfirmationRecordService.cs b/HJGL_DS/BLL/JGZL/PressureTestOfPipelineSystemConfirmationRecordService.cs new file mode 100644 index 0000000..01e71e3 --- /dev/null +++ b/HJGL_DS/BLL/JGZL/PressureTestOfPipelineSystemConfirmationRecordService.cs @@ -0,0 +1,94 @@ +using Model; +using System.Linq; + + +namespace BLL +{ + public class PressureTestOfPipelineSystemConfirmationRecordService + { + /// + /// 根据主键获取管道系统压力试验条件确认记录 + /// + /// + /// + public static Model.JGZL_PressureTestOfPipelineSystemConfirmationRecord GetPressureTestOfPipelineSystemConfirmationRecordById(string recordId) + { + return Funs.DB.JGZL_PressureTestOfPipelineSystemConfirmationRecord.FirstOrDefault(e => e.RecordId == recordId); + } + + /// + /// 添加管道系统压力试验条件确认记录 + /// + /// + public static void AddPressureTestOfPipelineSystemConfirmationRecord(Model.JGZL_PressureTestOfPipelineSystemConfirmationRecord model) + { + SGGLDB db = Funs.DB; + Model.JGZL_PressureTestOfPipelineSystemConfirmationRecord newModel = new Model.JGZL_PressureTestOfPipelineSystemConfirmationRecord(); + newModel.RecordId = model.RecordId; + newModel.ProjectId = model.ProjectId; + newModel.SystemName = model.SystemName; + newModel.SystemCode = model.SystemCode; + newModel.CheckItem1 = model.CheckItem1; + newModel.CheckItem2 = model.CheckItem2; + newModel.CheckItem3 = model.CheckItem3; + newModel.CheckItem4 = model.CheckItem4; + newModel.CheckItem5 = model.CheckItem5; + newModel.CheckItem6 = model.CheckItem6; + newModel.CheckItem7 = model.CheckItem7; + newModel.CheckItem8 = model.CheckItem8; + newModel.CheckItem9 = model.CheckItem9; + newModel.CheckItem10 = model.CheckItem10; + newModel.CheckItem11 = model.CheckItem11; + newModel.CheckItem12 = model.CheckItem12; + newModel.Remark = model.Remark; + newModel.CompileMan = model.CompileMan; + newModel.CompileDate = model.CompileDate; + db.JGZL_PressureTestOfPipelineSystemConfirmationRecord.InsertOnSubmit(newModel); + db.SubmitChanges(); + } + + /// + /// 修改管道系统压力试验条件确认记录 + /// + /// + public static void UpdatePressureTestOfPipelineSystemConfirmationRecord(Model.JGZL_PressureTestOfPipelineSystemConfirmationRecord model) + { + SGGLDB db = Funs.DB; + Model.JGZL_PressureTestOfPipelineSystemConfirmationRecord newModel = db.JGZL_PressureTestOfPipelineSystemConfirmationRecord.FirstOrDefault(e => e.RecordId == model.RecordId); + if (newModel != null) + { + newModel.SystemName = model.SystemName; + newModel.SystemCode = model.SystemCode; + newModel.CheckItem1 = model.CheckItem1; + newModel.CheckItem2 = model.CheckItem2; + newModel.CheckItem3 = model.CheckItem3; + newModel.CheckItem4 = model.CheckItem4; + newModel.CheckItem5 = model.CheckItem5; + newModel.CheckItem6 = model.CheckItem6; + newModel.CheckItem7 = model.CheckItem7; + newModel.CheckItem8 = model.CheckItem8; + newModel.CheckItem9 = model.CheckItem9; + newModel.CheckItem10 = model.CheckItem10; + newModel.CheckItem11 = model.CheckItem11; + newModel.CheckItem12 = model.CheckItem12; + newModel.Remark = model.Remark; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除管道系统压力试验条件确认记录 + /// + /// + public static void DeletePressureTestOfPipelineSystemConfirmationRecordById(string recordId) + { + SGGLDB db = Funs.DB; + Model.JGZL_PressureTestOfPipelineSystemConfirmationRecord model = db.JGZL_PressureTestOfPipelineSystemConfirmationRecord.FirstOrDefault(e => e.RecordId == recordId); + if (model != null) + { + db.JGZL_PressureTestOfPipelineSystemConfirmationRecord.DeleteOnSubmit(model); + db.SubmitChanges(); + } + } + } +} \ No newline at end of file diff --git a/HJGL_DS/BLL/JGZL/PressureTestOfPipelineSystemRecordItemService.cs b/HJGL_DS/BLL/JGZL/PressureTestOfPipelineSystemRecordItemService.cs new file mode 100644 index 0000000..89ebc69 --- /dev/null +++ b/HJGL_DS/BLL/JGZL/PressureTestOfPipelineSystemRecordItemService.cs @@ -0,0 +1,107 @@ +using System.Collections.Generic; +using Model; +using System.Linq; + + +namespace BLL +{ + public class PressureTestOfPipelineSystemRecordItemService + { + /// + /// 根据主键获取管道系统压力试验记录子表 + /// + /// + /// + public static Model.JGZL_PressureTestOfPipelineSystemRecordItem GetItemById(string Id) + { + return Funs.DB.JGZL_PressureTestOfPipelineSystemRecordItem.FirstOrDefault(e => e.Id == Id); + } + + + /// + /// 根据主键获取管道系统压力试验记录子表 + /// + /// + /// + public static List GetItemByRecordId(string recordId) + { + return Funs.DB.JGZL_PressureTestOfPipelineSystemRecordItem.Where(e => + e.RecordId == recordId).ToList(); + } + + + /// + /// 添加管道系统压力试验记录子表 + /// + /// + public static void AddItem(Model.JGZL_PressureTestOfPipelineSystemRecordItem item) + { + SGGLDB db = Funs.DB; + Model.JGZL_PressureTestOfPipelineSystemRecordItem newItem = new Model.JGZL_PressureTestOfPipelineSystemRecordItem(); + newItem.Id = item.Id; + newItem.RecordId = item.RecordId; + newItem.PipelineNo = item.PipelineNo; + newItem.DesignPressure = item.DesignPressure; + newItem.DesignTemperature = item.DesignTemperature; + newItem.TestTemperature = item.TestTemperature; + newItem.TestMedium = item.TestMedium; + newItem.TestMediumTemperature = item.TestMediumTemperature; + newItem.TestPressure = item.TestPressure; + newItem.VoltageStabilizationTime = item.VoltageStabilizationTime; + db.JGZL_PressureTestOfPipelineSystemRecordItem.InsertOnSubmit(newItem); + db.SubmitChanges(); + } + + /// + /// 修改管道系统压力试验记录子表 + /// + /// + public static void UpdateItem(Model.JGZL_PressureTestOfPipelineSystemRecordItem item) + { + SGGLDB db = Funs.DB; + Model.JGZL_PressureTestOfPipelineSystemRecordItem newItem = db.JGZL_PressureTestOfPipelineSystemRecordItem.FirstOrDefault(e => e.Id == item.Id); + if (newItem != null) + { + newItem.PipelineNo = item.PipelineNo; + newItem.DesignPressure = item.DesignPressure; + newItem.DesignTemperature = item.DesignTemperature; + newItem.TestTemperature = item.TestTemperature; + newItem.TestMedium = item.TestMedium; + newItem.TestMediumTemperature = item.TestMediumTemperature; + newItem.TestPressure = item.TestPressure; + newItem.VoltageStabilizationTime = item.VoltageStabilizationTime; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除管道系统压力试验记录子表 + /// + /// + public static void DeleteItemById(string Id) + { + SGGLDB db = Funs.DB; + Model.JGZL_PressureTestOfPipelineSystemRecordItem item = db.JGZL_PressureTestOfPipelineSystemRecordItem.FirstOrDefault(e => e.Id == Id); + if (item != null) + { + db.JGZL_PressureTestOfPipelineSystemRecordItem.DeleteOnSubmit(item); + db.SubmitChanges(); + } + } + + /// + /// 根据主表删除管道系统压力试验记录子表 + /// + /// + public static void DeleteItemByRecordId(string recordId) + { + SGGLDB db = Funs.DB; + List items = db.JGZL_PressureTestOfPipelineSystemRecordItem.Where(e => e.RecordId == recordId).ToList(); + if (items != null) + { + db.JGZL_PressureTestOfPipelineSystemRecordItem.DeleteAllOnSubmit(items); + db.SubmitChanges(); + } + } + } +} \ No newline at end of file diff --git a/HJGL_DS/BLL/JGZL/PressureTestOfPipelineSystemRecordService.cs b/HJGL_DS/BLL/JGZL/PressureTestOfPipelineSystemRecordService.cs new file mode 100644 index 0000000..54fcbbc --- /dev/null +++ b/HJGL_DS/BLL/JGZL/PressureTestOfPipelineSystemRecordService.cs @@ -0,0 +1,72 @@ +using Model; +using System.Linq; + + +namespace BLL +{ + public class PressureTestOfPipelineSystemRecordService + { + /// + /// 根据主键获取管道系统压力试验记录 + /// + /// + /// + public static Model.JGZL_PressureTestOfPipelineSystemRecord GetPressureTestOfPipelineSystemRecordById(string recordId) + { + return Funs.DB.JGZL_PressureTestOfPipelineSystemRecord.FirstOrDefault(e => e.RecordId == recordId); + } + + /// + /// 添加管道系统压力试验记录 + /// + /// + public static void AddPressureTestOfPipelineSystemRecord(Model.JGZL_PressureTestOfPipelineSystemRecord model) + { + SGGLDB db = Funs.DB; + Model.JGZL_PressureTestOfPipelineSystemRecord newModel = new Model.JGZL_PressureTestOfPipelineSystemRecord(); + newModel.RecordId = model.RecordId; + newModel.ProjectId = model.ProjectId; + newModel.SystemName = model.SystemName; + newModel.SystemCode = model.SystemCode; + newModel.TestConclusion = model.TestConclusion; + newModel.Remark = model.Remark; + newModel.CompileMan = model.CompileMan; + newModel.CompileDate = model.CompileDate; + db.JGZL_PressureTestOfPipelineSystemRecord.InsertOnSubmit(newModel); + db.SubmitChanges(); + } + + /// + /// 修改管道系统压力试验记录 + /// + /// + public static void UpdatePressureTestOfPipelineSystemRecord(Model.JGZL_PressureTestOfPipelineSystemRecord model) + { + SGGLDB db = Funs.DB; + Model.JGZL_PressureTestOfPipelineSystemRecord newModel = db.JGZL_PressureTestOfPipelineSystemRecord.FirstOrDefault(e => e.RecordId == model.RecordId); + if (newModel != null) + { + newModel.SystemName = model.SystemName; + newModel.SystemCode = model.SystemCode; + newModel.TestConclusion = model.TestConclusion; + newModel.Remark = model.Remark; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除管道系统压力试验记录 + /// + /// + public static void DeletePressureTestOfPipelineSystemRecordById(string recordId) + { + SGGLDB db = Funs.DB; + Model.JGZL_PressureTestOfPipelineSystemRecord model = db.JGZL_PressureTestOfPipelineSystemRecord.FirstOrDefault(e => e.RecordId == recordId); + if (model != null) + { + db.JGZL_PressureTestOfPipelineSystemRecord.DeleteOnSubmit(model); + 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 7680bf3..5b74757 100644 --- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj +++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj @@ -1243,7 +1243,13 @@ + + + + + + @@ -6596,6 +6602,34 @@ AcceptanceCertificateEdit.aspx + + PressureTestOfPipelineSystemConfirmationRecord.aspx + ASPXCodeBehind + + + PressureTestOfPipelineSystemConfirmationRecord.aspx + + + LeakTestOfPipelineSystemRecord.aspx + ASPXCodeBehind + + + LeakTestOfPipelineSystemRecord.aspx + + + PressureTestOfPipelineSystemConfirmationRecordEdit.aspx + ASPXCodeBehind + + + PressureTestOfPipelineSystemConfirmationRecordEdit.aspx + + + PressureTestOfPipelineSystemRecord.aspx + ASPXCodeBehind + + + PressureTestOfPipelineSystemRecord.aspx + ASPXCodeBehind AnticorrosionEngineeringInspectionRecord.aspx @@ -6603,6 +6637,20 @@ AnticorrosionEngineeringInspectionRecord.aspx + + LeakTestOfPipelineSystemRecordEdit.aspx + ASPXCodeBehind + + + LeakTestOfPipelineSystemRecordEdit.aspx + + + PressureTestOfPipelineSystemRecordEdit.aspx + ASPXCodeBehind + + + PressureTestOfPipelineSystemRecordEdit.aspx + ASPXCodeBehind AnticorrosionEngineeringInspectionRecordEdit.aspx diff --git a/HJGL_DS/FineUIPro.Web/JGZL/LeakTestOfPipelineSystemRecord.aspx b/HJGL_DS/FineUIPro.Web/JGZL/LeakTestOfPipelineSystemRecord.aspx new file mode 100644 index 0000000..adbf6ec --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/LeakTestOfPipelineSystemRecord.aspx @@ -0,0 +1,115 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LeakTestOfPipelineSystemRecord.aspx.cs" Inherits="FineUIPro.Web.JGZL.LeakTestOfPipelineSystemRecord" %> + + + + + + + 管道系统泄漏性试验记录 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/JGZL/LeakTestOfPipelineSystemRecord.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/LeakTestOfPipelineSystemRecord.aspx.cs new file mode 100644 index 0000000..3ba5b14 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/LeakTestOfPipelineSystemRecord.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 LeakTestOfPipelineSystemRecord : 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_LeakTestOfPipelineSystemRecord 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.LeakTestOfPipelineSystemRecordService.GetLeakTestOfPipelineSystemRecordById(this.Grid1.SelectedRowID); + if (report != null) + { + Dictionary keyValuePairs = new Dictionary(); + keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); + keyValuePairs.Add("SystemName", report.SystemName); + keyValuePairs.Add("SystemCode", report.SystemCode); + keyValuePairs.Add("TestConclusion", report.TestConclusion); + 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("LeakTestOfPipelineSystemRecordEdit.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_LeakTestOfPipelineSystemRecordMenuId, BLL.Const.BtnModify)) + { + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("LeakTestOfPipelineSystemRecordEdit.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_LeakTestOfPipelineSystemRecordMenuId, BLL.Const.BtnModify)) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; + } + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("LeakTestOfPipelineSystemRecordEdit.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_LeakTestOfPipelineSystemRecordMenuId, 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.LeakTestOfPipelineSystemRecordItemService.DeleteItemByRecordId(rowID); + BLL.LeakTestOfPipelineSystemRecordService.DeleteLeakTestOfPipelineSystemRecordById(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/LeakTestOfPipelineSystemRecord.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/LeakTestOfPipelineSystemRecord.aspx.designer.cs new file mode 100644 index 0000000..901420d --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/LeakTestOfPipelineSystemRecord.aspx.designer.cs @@ -0,0 +1,206 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.JGZL +{ + + + public partial class LeakTestOfPipelineSystemRecord + { + + /// + /// 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/LeakTestOfPipelineSystemRecordEdit.aspx b/HJGL_DS/FineUIPro.Web/JGZL/LeakTestOfPipelineSystemRecordEdit.aspx new file mode 100644 index 0000000..9405a21 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/LeakTestOfPipelineSystemRecordEdit.aspx @@ -0,0 +1,150 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LeakTestOfPipelineSystemRecordEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.LeakTestOfPipelineSystemRecordEdit" %> + + + + + + + 编辑管道系统泄漏性试验记录 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + + + + --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + <%-- ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除"> --%> + <%-- --%> + + + + + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/LeakTestOfPipelineSystemRecordEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/LeakTestOfPipelineSystemRecordEdit.aspx.cs new file mode 100644 index 0000000..78050c9 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/LeakTestOfPipelineSystemRecordEdit.aspx.cs @@ -0,0 +1,229 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Linq; +using Newtonsoft.Json.Linq; + +namespace FineUIPro.Web.JGZL +{ + public partial class LeakTestOfPipelineSystemRecordEdit : 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.LeakTestOfPipelineSystemRecordService.GetLeakTestOfPipelineSystemRecordById(this.RecordId); + if (report != null) + { + this.txtSystemCode.Text = report.SystemCode; + this.txtSystemName.Text = report.SystemName; + this.txtTestConclusion.Text = report.TestConclusion; + this.txtRemark.Text = report.Remark; + + var items = BLL.LeakTestOfPipelineSystemRecordItemService.GetItemByRecordId(this.RecordId); + 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_LeakTestOfPipelineSystemRecordMenuId, Const.BtnSave)) + { + Model.JGZL_LeakTestOfPipelineSystemRecord newReport = new Model.JGZL_LeakTestOfPipelineSystemRecord(); + newReport.SystemCode = this.txtSystemCode.Text.Trim(); + newReport.SystemName = this.txtSystemName.Text.Trim(); + newReport.TestConclusion = this.txtTestConclusion.Text; + newReport.Remark = this.txtRemark.Text; + if (!string.IsNullOrEmpty(this.RecordId)) + { + newReport.RecordId = this.RecordId; + BLL.LeakTestOfPipelineSystemRecordService.UpdateLeakTestOfPipelineSystemRecord(newReport); + } + else + { + newReport.ProjectId = this.ProjectId; + newReport.CompileMan = this.CurrUser.UserId; + newReport.CompileDate = DateTime.Now; + newReport.RecordId = SQLHelper.GetNewID(typeof(Model.JGZL_LeakTestOfPipelineSystemRecord)); + this.RecordId = newReport.RecordId; + BLL.LeakTestOfPipelineSystemRecordService.AddLeakTestOfPipelineSystemRecord(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 + { + { "Id", Guid.NewGuid() }, + { "RecordId", RecordId }, + { "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_LeakTestOfPipelineSystemRecordItem newDetail = new Model.JGZL_LeakTestOfPipelineSystemRecordItem + { + Id = values.Value("Id"), + RecordId = RecordId, + PipelineNo = values.Value("PipelineNo"), + DesignPressure = values.Value("DesignPressure"), + DesignTemperature = values.Value("DesignTemperature"), + TestTemperature = values.Value("TestTemperature"), + //TestMedium = values.Value("TestMedium"), + TestMediumTemperature = values.Value("TestMediumTemperature"), + TestPressure = values.Value("TestPressure"), + VoltageStabilizationTime = values.Value("VoltageStabilizationTime"), + }; + detailLists.Add(newDetail); + } + + try + { + var result = Funs.DB.JGZL_LeakTestOfPipelineSystemRecordItem.Where(a => a.RecordId == RecordId); + Funs.DB.JGZL_LeakTestOfPipelineSystemRecordItem.DeleteAllOnSubmit(result); + if (detailLists.Count > 0) + { + Funs.DB.JGZL_LeakTestOfPipelineSystemRecordItem.InsertAllOnSubmit(detailLists); + } + + Funs.DB.SubmitChanges(); + } + catch (Exception) + { + return; + } + } + + #endregion + + } +} \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/JGZL/LeakTestOfPipelineSystemRecordEdit.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/LeakTestOfPipelineSystemRecordEdit.aspx.designer.cs new file mode 100644 index 0000000..4062ee5 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/LeakTestOfPipelineSystemRecordEdit.aspx.designer.cs @@ -0,0 +1,224 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.JGZL +{ + + + public partial class LeakTestOfPipelineSystemRecordEdit + { + + /// + /// 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; + + /// + /// txtSystemCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSystemCode; + + /// + /// txtSystemName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSystemName; + + /// + /// txtTestConclusion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtTestConclusion; + + /// + /// txtRemark 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtRemark; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// Button3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button Button3; + + /// + /// txtPipelineNo 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPipelineNo; + + /// + /// txtDesignPressure 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDesignPressure; + + /// + /// txtDesignTemperature 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDesignTemperature; + + /// + /// txtTestTemperature 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTestTemperature; + + /// + /// txtTestMediumTemperature 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTestMediumTemperature; + + /// + /// txtTestPressure 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTestPressure; + + /// + /// txtVoltageStabilizationTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtVoltageStabilizationTime; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + } +} diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecord.aspx b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecord.aspx new file mode 100644 index 0000000..f4cd8d9 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecord.aspx @@ -0,0 +1,115 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PressureTestOfPipelineSystemConfirmationRecord.aspx.cs" Inherits="FineUIPro.Web.JGZL.PressureTestOfPipelineSystemConfirmationRecord" %> + + + + + + + 管道系统压力试验条件确认记录 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecord.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecord.aspx.cs new file mode 100644 index 0000000..a11a49c --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecord.aspx.cs @@ -0,0 +1,408 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data; +using System.Linq; +using System.IO; + +namespace FineUIPro.Web.JGZL +{ + public partial class PressureTestOfPipelineSystemConfirmationRecord : 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_PressureTestOfPipelineSystemConfirmationRecord 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.PressureTestOfPipelineSystemConfirmationRecordService.GetPressureTestOfPipelineSystemConfirmationRecordById(this.Grid1.SelectedRowID); + if (report != null) + { + Dictionary keyValuePairs = new Dictionary(); + keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); + keyValuePairs.Add("SystemName", report.SystemName); + keyValuePairs.Add("SystemCode", report.SystemCode); + keyValuePairs.Add("CheckItem1", report.CheckItem1); + keyValuePairs.Add("CheckItem2", report.CheckItem2); + keyValuePairs.Add("CheckItem3", report.CheckItem3); + keyValuePairs.Add("CheckItem4", report.CheckItem4); + keyValuePairs.Add("CheckItem5", report.CheckItem5); + keyValuePairs.Add("CheckItem6", report.CheckItem6); + keyValuePairs.Add("CheckItem7", report.CheckItem7); + keyValuePairs.Add("CheckItem8", report.CheckItem8); + keyValuePairs.Add("CheckItem9", report.CheckItem9); + keyValuePairs.Add("CheckItem10", report.CheckItem10); + keyValuePairs.Add("CheckItem11", report.CheckItem11); + keyValuePairs.Add("CheckItem12", report.CheckItem12); + //keyValuePairs.Add("TestConclusion", report.TestConclusion); + 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("PressureTestOfPipelineSystemConfirmationRecordEdit.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_PressureTestOfPipelineSystemConfirmationRecordMenuId, BLL.Const.BtnModify)) + { + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PressureTestOfPipelineSystemConfirmationRecordEdit.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_PressureTestOfPipelineSystemConfirmationRecordMenuId, BLL.Const.BtnModify)) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; + } + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PressureTestOfPipelineSystemConfirmationRecordEdit.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_PressureTestOfPipelineSystemConfirmationRecordMenuId, 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.PressureTestOfPipelineSystemConfirmationRecordService.DeletePressureTestOfPipelineSystemConfirmationRecordById(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/PressureTestOfPipelineSystemConfirmationRecord.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecord.aspx.designer.cs new file mode 100644 index 0000000..506a356 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecord.aspx.designer.cs @@ -0,0 +1,206 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.JGZL +{ + + + public partial class PressureTestOfPipelineSystemConfirmationRecord + { + + /// + /// 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/PressureTestOfPipelineSystemConfirmationRecordEdit.aspx b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecordEdit.aspx new file mode 100644 index 0000000..5b7abbe --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecordEdit.aspx @@ -0,0 +1,118 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PressureTestOfPipelineSystemConfirmationRecordEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.PressureTestOfPipelineSystemConfirmationRecordEdit" %> + + + + + + + 编辑管道系统压力试验条件确认记录 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecordEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecordEdit.aspx.cs new file mode 100644 index 0000000..9b53985 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecordEdit.aspx.cs @@ -0,0 +1,128 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Linq; +using Newtonsoft.Json.Linq; + +namespace FineUIPro.Web.JGZL +{ + public partial class PressureTestOfPipelineSystemConfirmationRecordEdit : 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.PressureTestOfPipelineSystemConfirmationRecordService.GetPressureTestOfPipelineSystemConfirmationRecordById(this.RecordId); + if (report != null) + { + this.txtSystemCode.Text = report.SystemCode; + this.txtSystemName.Text = report.SystemName; + this.txtCheckItem1.Text = report.CheckItem1; + this.txtCheckItem2.Text = report.CheckItem2; + this.txtCheckItem3.Text = report.CheckItem3; + this.txtCheckItem4.Text = report.CheckItem4; + this.txtCheckItem5.Text = report.CheckItem5; + this.txtCheckItem6.Text = report.CheckItem6; + this.txtCheckItem7.Text = report.CheckItem7; + this.txtCheckItem8.Text = report.CheckItem8; + this.txtCheckItem9.Text = report.CheckItem9; + this.txtCheckItem10.Text = report.CheckItem10; + this.txtCheckItem11.Text = report.CheckItem11; + this.txtCheckItem12.Text = report.CheckItem12; + this.txtRemark.Text = report.Remark; + } + } + + } + } + + #endregion + + #region 提交按钮 + + /// + /// 提交按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_PressureTestOfPipelineSystemConfirmationRecordMenuId, Const.BtnSave)) + { + Model.JGZL_PressureTestOfPipelineSystemConfirmationRecord newReport = new Model.JGZL_PressureTestOfPipelineSystemConfirmationRecord(); + newReport.SystemCode = this.txtSystemCode.Text.Trim(); + newReport.SystemName = this.txtSystemName.Text.Trim(); + newReport.CheckItem1 = this.txtCheckItem1.Text.Trim(); + newReport.CheckItem2 = this.txtCheckItem2.Text.Trim(); + newReport.CheckItem3 = this.txtCheckItem3.Text.Trim(); + newReport.CheckItem4 = this.txtCheckItem4.Text.Trim(); + newReport.CheckItem5 = this.txtCheckItem5.Text.Trim(); + newReport.CheckItem6 = this.txtCheckItem6.Text.Trim(); + newReport.CheckItem7 = this.txtCheckItem7.Text.Trim(); + newReport.CheckItem8 = this.txtCheckItem8.Text.Trim(); + newReport.CheckItem9 = this.txtCheckItem9.Text.Trim(); + newReport.CheckItem10 = this.txtCheckItem10.Text.Trim(); + newReport.CheckItem11 = this.txtCheckItem11.Text.Trim(); + newReport.CheckItem12 = this.txtCheckItem12.Text.Trim(); + newReport.Remark = this.txtRemark.Text; + if (!string.IsNullOrEmpty(this.RecordId)) + { + newReport.RecordId = this.RecordId; + BLL.PressureTestOfPipelineSystemConfirmationRecordService.UpdatePressureTestOfPipelineSystemConfirmationRecord(newReport); + } + else + { + newReport.ProjectId = this.ProjectId; + newReport.CompileMan = this.CurrUser.UserId; + newReport.CompileDate = DateTime.Now; + newReport.RecordId = SQLHelper.GetNewID(typeof(Model.JGZL_PressureTestOfPipelineSystemConfirmationRecord)); + this.RecordId = newReport.RecordId; + BLL.PressureTestOfPipelineSystemConfirmationRecordService.AddPressureTestOfPipelineSystemConfirmationRecord(newReport); + } + ShowNotify("保存成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + + #endregion + + } +} \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecordEdit.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecordEdit.aspx.designer.cs new file mode 100644 index 0000000..1d7749d --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecordEdit.aspx.designer.cs @@ -0,0 +1,224 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.JGZL +{ + + + public partial class PressureTestOfPipelineSystemConfirmationRecordEdit + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Form2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form2; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// ToolbarFill2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill2; + + /// + /// Button1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button Button1; + + /// + /// txtSystemCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSystemCode; + + /// + /// txtSystemName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSystemName; + + /// + /// txtRemark 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtRemark; + + /// + /// GroupPanel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel; + + /// + /// Form3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form3; + + /// + /// txtCheckItem1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCheckItem1; + + /// + /// txtCheckItem2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCheckItem2; + + /// + /// txtCheckItem3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCheckItem3; + + /// + /// txtCheckItem4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCheckItem4; + + /// + /// txtCheckItem5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCheckItem5; + + /// + /// txtCheckItem6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCheckItem6; + + /// + /// txtCheckItem7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCheckItem7; + + /// + /// txtCheckItem8 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCheckItem8; + + /// + /// txtCheckItem9 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCheckItem9; + + /// + /// txtCheckItem10 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCheckItem10; + + /// + /// txtCheckItem11 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCheckItem11; + + /// + /// txtCheckItem12 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCheckItem12; + } +} diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemRecord.aspx b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemRecord.aspx new file mode 100644 index 0000000..d6368ab --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemRecord.aspx @@ -0,0 +1,115 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PressureTestOfPipelineSystemRecord.aspx.cs" Inherits="FineUIPro.Web.JGZL.PressureTestOfPipelineSystemRecord" %> + + + + + + + 管道系统压力试验记录 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemRecord.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemRecord.aspx.cs new file mode 100644 index 0000000..a015da3 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemRecord.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 PressureTestOfPipelineSystemRecord : 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_PressureTestOfPipelineSystemRecord 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.PressureTestOfPipelineSystemRecordService.GetPressureTestOfPipelineSystemRecordById(this.Grid1.SelectedRowID); + if (report != null) + { + Dictionary keyValuePairs = new Dictionary(); + keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); + keyValuePairs.Add("SystemName", report.SystemName); + keyValuePairs.Add("SystemCode", report.SystemCode); + keyValuePairs.Add("TestConclusion", report.TestConclusion); + 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("PressureTestOfPipelineSystemRecordEdit.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_PressureTestOfPipelineSystemRecordMenuId, BLL.Const.BtnModify)) + { + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PressureTestOfPipelineSystemRecordEdit.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_PressureTestOfPipelineSystemRecordMenuId, BLL.Const.BtnModify)) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; + } + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PressureTestOfPipelineSystemRecordEdit.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_PressureTestOfPipelineSystemRecordMenuId, 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.PressureTestOfPipelineSystemRecordItemService.DeleteItemByRecordId(rowID); + BLL.PressureTestOfPipelineSystemRecordService.DeletePressureTestOfPipelineSystemRecordById(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/PressureTestOfPipelineSystemRecord.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemRecord.aspx.designer.cs new file mode 100644 index 0000000..8ab222a --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemRecord.aspx.designer.cs @@ -0,0 +1,206 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.JGZL +{ + + + public partial class PressureTestOfPipelineSystemRecord + { + + /// + /// 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/PressureTestOfPipelineSystemRecordEdit.aspx b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemRecordEdit.aspx new file mode 100644 index 0000000..94960b6 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemRecordEdit.aspx @@ -0,0 +1,150 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PressureTestOfPipelineSystemRecordEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.PressureTestOfPipelineSystemRecordEdit" %> + + + + + + + 编辑管道系统压力试验记录 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + <%-- ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除"> --%> + <%-- --%> + + + + + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemRecordEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemRecordEdit.aspx.cs new file mode 100644 index 0000000..c3d9a15 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemRecordEdit.aspx.cs @@ -0,0 +1,229 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Linq; +using Newtonsoft.Json.Linq; + +namespace FineUIPro.Web.JGZL +{ + public partial class PressureTestOfPipelineSystemRecordEdit : 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.PressureTestOfPipelineSystemRecordService.GetPressureTestOfPipelineSystemRecordById(this.RecordId); + if (report != null) + { + this.txtSystemCode.Text = report.SystemCode; + this.txtSystemName.Text = report.SystemName; + this.txtTestConclusion.Text = report.TestConclusion; + this.txtRemark.Text = report.Remark; + + var items = BLL.PressureTestOfPipelineSystemRecordItemService.GetItemByRecordId(this.RecordId); + 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_PressureTestOfPipelineSystemRecordMenuId, Const.BtnSave)) + { + Model.JGZL_PressureTestOfPipelineSystemRecord newReport = new Model.JGZL_PressureTestOfPipelineSystemRecord(); + newReport.SystemCode = this.txtSystemCode.Text.Trim(); + newReport.SystemName = this.txtSystemName.Text.Trim(); + newReport.TestConclusion = this.txtTestConclusion.Text; + newReport.Remark = this.txtRemark.Text; + if (!string.IsNullOrEmpty(this.RecordId)) + { + newReport.RecordId = this.RecordId; + BLL.PressureTestOfPipelineSystemRecordService.UpdatePressureTestOfPipelineSystemRecord(newReport); + } + else + { + newReport.ProjectId = this.ProjectId; + newReport.CompileMan = this.CurrUser.UserId; + newReport.CompileDate = DateTime.Now; + newReport.RecordId = SQLHelper.GetNewID(typeof(Model.JGZL_PressureTestOfPipelineSystemRecord)); + this.RecordId = newReport.RecordId; + BLL.PressureTestOfPipelineSystemRecordService.AddPressureTestOfPipelineSystemRecord(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 + { + { "Id", Guid.NewGuid() }, + { "RecordId", RecordId }, + { "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_PressureTestOfPipelineSystemRecordItem newDetail = new Model.JGZL_PressureTestOfPipelineSystemRecordItem + { + Id = values.Value("Id"), + RecordId = RecordId, + PipelineNo = values.Value("PipelineNo"), + DesignPressure = values.Value("DesignPressure"), + DesignTemperature = values.Value("DesignTemperature"), + TestTemperature = values.Value("TestTemperature"), + TestMedium = values.Value("TestMedium"), + TestMediumTemperature = values.Value("TestMediumTemperature"), + TestPressure = values.Value("TestPressure"), + VoltageStabilizationTime = values.Value("VoltageStabilizationTime"), + }; + detailLists.Add(newDetail); + } + + try + { + var result = Funs.DB.JGZL_PressureTestOfPipelineSystemRecordItem.Where(a => a.RecordId == RecordId); + Funs.DB.JGZL_PressureTestOfPipelineSystemRecordItem.DeleteAllOnSubmit(result); + if (detailLists.Count > 0) + { + Funs.DB.JGZL_PressureTestOfPipelineSystemRecordItem.InsertAllOnSubmit(detailLists); + } + + Funs.DB.SubmitChanges(); + } + catch (Exception) + { + return; + } + } + + #endregion + + } +} \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemRecordEdit.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemRecordEdit.aspx.designer.cs new file mode 100644 index 0000000..4330652 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemRecordEdit.aspx.designer.cs @@ -0,0 +1,233 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.JGZL +{ + + + public partial class PressureTestOfPipelineSystemRecordEdit + { + + /// + /// 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; + + /// + /// txtSystemCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSystemCode; + + /// + /// txtSystemName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSystemName; + + /// + /// txtTestConclusion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtTestConclusion; + + /// + /// txtRemark 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtRemark; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// Button3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button Button3; + + /// + /// txtPipelineNo 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPipelineNo; + + /// + /// txtDesignPressure 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDesignPressure; + + /// + /// txtDesignTemperature 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDesignTemperature; + + /// + /// txtTestTemperature 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTestTemperature; + + /// + /// txtTestMedium 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTestMedium; + + /// + /// txtTestMediumTemperature 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTestMediumTemperature; + + /// + /// txtTestPressure 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTestPressure; + + /// + /// txtVoltageStabilizationTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtVoltageStabilizationTime; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + } +} diff --git a/HJGL_DS/FineUIPro.Web/Web.config b/HJGL_DS/FineUIPro.Web/Web.config index 30834b7..e834a2a 100644 --- a/HJGL_DS/FineUIPro.Web/Web.config +++ b/HJGL_DS/FineUIPro.Web/Web.config @@ -11,7 +11,7 @@ - + @@ -67,7 +67,7 @@ - + diff --git a/HJGL_DS/Model/Model.cs b/HJGL_DS/Model/Model.cs index 1f59d8f..e8a2187 100644 --- a/HJGL_DS/Model/Model.cs +++ b/HJGL_DS/Model/Model.cs @@ -410,6 +410,12 @@ 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_LeakTestOfPipelineSystemRecord(JGZL_LeakTestOfPipelineSystemRecord instance); + partial void UpdateJGZL_LeakTestOfPipelineSystemRecord(JGZL_LeakTestOfPipelineSystemRecord instance); + partial void DeleteJGZL_LeakTestOfPipelineSystemRecord(JGZL_LeakTestOfPipelineSystemRecord instance); + partial void InsertJGZL_LeakTestOfPipelineSystemRecordItem(JGZL_LeakTestOfPipelineSystemRecordItem instance); + partial void UpdateJGZL_LeakTestOfPipelineSystemRecordItem(JGZL_LeakTestOfPipelineSystemRecordItem instance); + partial void DeleteJGZL_LeakTestOfPipelineSystemRecordItem(JGZL_LeakTestOfPipelineSystemRecordItem instance); partial void InsertJGZL_MaterialIdentificationInspectionRecord(JGZL_MaterialIdentificationInspectionRecord instance); partial void UpdateJGZL_MaterialIdentificationInspectionRecord(JGZL_MaterialIdentificationInspectionRecord instance); partial void DeleteJGZL_MaterialIdentificationInspectionRecord(JGZL_MaterialIdentificationInspectionRecord instance); @@ -431,6 +437,15 @@ namespace Model partial void InsertJGZL_PipelinePrefabricationConstructionInspectionRecord(JGZL_PipelinePrefabricationConstructionInspectionRecord instance); partial void UpdateJGZL_PipelinePrefabricationConstructionInspectionRecord(JGZL_PipelinePrefabricationConstructionInspectionRecord instance); partial void DeleteJGZL_PipelinePrefabricationConstructionInspectionRecord(JGZL_PipelinePrefabricationConstructionInspectionRecord instance); + partial void InsertJGZL_PressureTestOfPipelineSystemConfirmationRecord(JGZL_PressureTestOfPipelineSystemConfirmationRecord instance); + partial void UpdateJGZL_PressureTestOfPipelineSystemConfirmationRecord(JGZL_PressureTestOfPipelineSystemConfirmationRecord instance); + partial void DeleteJGZL_PressureTestOfPipelineSystemConfirmationRecord(JGZL_PressureTestOfPipelineSystemConfirmationRecord instance); + partial void InsertJGZL_PressureTestOfPipelineSystemRecord(JGZL_PressureTestOfPipelineSystemRecord instance); + partial void UpdateJGZL_PressureTestOfPipelineSystemRecord(JGZL_PressureTestOfPipelineSystemRecord instance); + partial void DeleteJGZL_PressureTestOfPipelineSystemRecord(JGZL_PressureTestOfPipelineSystemRecord instance); + partial void InsertJGZL_PressureTestOfPipelineSystemRecordItem(JGZL_PressureTestOfPipelineSystemRecordItem instance); + partial void UpdateJGZL_PressureTestOfPipelineSystemRecordItem(JGZL_PressureTestOfPipelineSystemRecordItem instance); + partial void DeleteJGZL_PressureTestOfPipelineSystemRecordItem(JGZL_PressureTestOfPipelineSystemRecordItem instance); partial void InsertJGZL_ProcessHandoverRecord(JGZL_ProcessHandoverRecord instance); partial void UpdateJGZL_ProcessHandoverRecord(JGZL_ProcessHandoverRecord instance); partial void DeleteJGZL_ProcessHandoverRecord(JGZL_ProcessHandoverRecord instance); @@ -1921,6 +1936,22 @@ namespace Model } } + public System.Data.Linq.Table JGZL_LeakTestOfPipelineSystemRecord + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table JGZL_LeakTestOfPipelineSystemRecordItem + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table JGZL_MaterialIdentificationInspectionRecord { get @@ -1977,6 +2008,30 @@ namespace Model } } + public System.Data.Linq.Table JGZL_PressureTestOfPipelineSystemConfirmationRecord + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table JGZL_PressureTestOfPipelineSystemRecord + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table JGZL_PressureTestOfPipelineSystemRecordItem + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table JGZL_ProcessHandoverRecord { get @@ -4668,6 +4723,8 @@ namespace Model private EntitySet _JGZL_IndustrialPipelineInstallationSummary; + private EntitySet _JGZL_LeakTestOfPipelineSystemRecord; + private EntitySet _JGZL_MaterialIdentificationInspectionRecord; private EntitySet _JGZL_MaterialQualityCertificateDoc; @@ -4682,6 +4739,10 @@ namespace Model private EntitySet _JGZL_PipelinePrefabricationConstructionInspectionRecord; + private EntitySet _JGZL_PressureTestOfPipelineSystemConfirmationRecord; + + private EntitySet _JGZL_PressureTestOfPipelineSystemRecord; + private EntitySet _JGZL_ProcessHandoverRecord; private EntitySet _JGZL_QualityControlPointInspection; @@ -4831,6 +4892,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_LeakTestOfPipelineSystemRecord = new EntitySet(new Action(this.attach_JGZL_LeakTestOfPipelineSystemRecord), new Action(this.detach_JGZL_LeakTestOfPipelineSystemRecord)); this._JGZL_MaterialIdentificationInspectionRecord = new EntitySet(new Action(this.attach_JGZL_MaterialIdentificationInspectionRecord), new Action(this.detach_JGZL_MaterialIdentificationInspectionRecord)); this._JGZL_MaterialQualityCertificateDoc = new EntitySet(new Action(this.attach_JGZL_MaterialQualityCertificateDoc), new Action(this.detach_JGZL_MaterialQualityCertificateDoc)); this._JGZL_MeasuringInstruments = new EntitySet(new Action(this.attach_JGZL_MeasuringInstruments), new Action(this.detach_JGZL_MeasuringInstruments)); @@ -4838,6 +4900,8 @@ namespace Model this._JGZL_PipeFittingInspectionRecord = new EntitySet(new Action(this.attach_JGZL_PipeFittingInspectionRecord), new Action(this.detach_JGZL_PipeFittingInspectionRecord)); this._JGZL_PipelineInstallationInspectionRecord = new EntitySet(new Action(this.attach_JGZL_PipelineInstallationInspectionRecord), new Action(this.detach_JGZL_PipelineInstallationInspectionRecord)); this._JGZL_PipelinePrefabricationConstructionInspectionRecord = new EntitySet(new Action(this.attach_JGZL_PipelinePrefabricationConstructionInspectionRecord), new Action(this.detach_JGZL_PipelinePrefabricationConstructionInspectionRecord)); + this._JGZL_PressureTestOfPipelineSystemConfirmationRecord = new EntitySet(new Action(this.attach_JGZL_PressureTestOfPipelineSystemConfirmationRecord), new Action(this.detach_JGZL_PressureTestOfPipelineSystemConfirmationRecord)); + this._JGZL_PressureTestOfPipelineSystemRecord = new EntitySet(new Action(this.attach_JGZL_PressureTestOfPipelineSystemRecord), new Action(this.detach_JGZL_PressureTestOfPipelineSystemRecord)); 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)); @@ -6055,6 +6119,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_LeakTestOfPipelineSystemRecord_Base_Project", Storage="_JGZL_LeakTestOfPipelineSystemRecord", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet JGZL_LeakTestOfPipelineSystemRecord + { + get + { + return this._JGZL_LeakTestOfPipelineSystemRecord; + } + set + { + this._JGZL_LeakTestOfPipelineSystemRecord.Assign(value); + } + } + [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 { @@ -6146,6 +6223,32 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_PressureTestOfPipelineSystemConfirmationRecord_Base_Project", Storage="_JGZL_PressureTestOfPipelineSystemConfirmationRecord", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet JGZL_PressureTestOfPipelineSystemConfirmationRecord + { + get + { + return this._JGZL_PressureTestOfPipelineSystemConfirmationRecord; + } + set + { + this._JGZL_PressureTestOfPipelineSystemConfirmationRecord.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_PressureTestOfPipelineSystemRecord_Base_Project", Storage="_JGZL_PressureTestOfPipelineSystemRecord", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet JGZL_PressureTestOfPipelineSystemRecord + { + get + { + return this._JGZL_PressureTestOfPipelineSystemRecord; + } + set + { + this._JGZL_PressureTestOfPipelineSystemRecord.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_ProcessHandoverRecord_Base_Project", Storage="_JGZL_ProcessHandoverRecord", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] public EntitySet JGZL_ProcessHandoverRecord { @@ -7027,6 +7130,18 @@ namespace Model entity.Base_Project = null; } + private void attach_JGZL_LeakTestOfPipelineSystemRecord(JGZL_LeakTestOfPipelineSystemRecord entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_JGZL_LeakTestOfPipelineSystemRecord(JGZL_LeakTestOfPipelineSystemRecord entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + private void attach_JGZL_MaterialIdentificationInspectionRecord(JGZL_MaterialIdentificationInspectionRecord entity) { this.SendPropertyChanging(); @@ -7111,6 +7226,30 @@ namespace Model entity.Base_Project = null; } + private void attach_JGZL_PressureTestOfPipelineSystemConfirmationRecord(JGZL_PressureTestOfPipelineSystemConfirmationRecord entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_JGZL_PressureTestOfPipelineSystemConfirmationRecord(JGZL_PressureTestOfPipelineSystemConfirmationRecord entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + + private void attach_JGZL_PressureTestOfPipelineSystemRecord(JGZL_PressureTestOfPipelineSystemRecord entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_JGZL_PressureTestOfPipelineSystemRecord(JGZL_PressureTestOfPipelineSystemRecord entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + private void attach_JGZL_ProcessHandoverRecord(JGZL_ProcessHandoverRecord entity) { this.SendPropertyChanging(); @@ -86105,6 +86244,620 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_LeakTestOfPipelineSystemRecord")] + public partial class JGZL_LeakTestOfPipelineSystemRecord : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _RecordId; + + private string _ProjectId; + + private string _SystemName; + + private string _SystemCode; + + private string _TestConclusion; + + private string _Remark; + + private string _CompileMan; + + private System.Nullable _CompileDate; + + private string _Reviewer; + + private System.Nullable _RevieweDate; + + private EntityRef _Base_Project; + + private EntityRef _Sys_User; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnRecordIdChanging(string value); + partial void OnRecordIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnSystemNameChanging(string value); + partial void OnSystemNameChanged(); + partial void OnSystemCodeChanging(string value); + partial void OnSystemCodeChanged(); + partial void OnTestConclusionChanging(string value); + partial void OnTestConclusionChanged(); + partial void OnRemarkChanging(string value); + partial void OnRemarkChanged(); + partial void OnCompileManChanging(string value); + partial void OnCompileManChanged(); + partial void OnCompileDateChanging(System.Nullable value); + partial void OnCompileDateChanged(); + partial void OnReviewerChanging(string value); + partial void OnReviewerChanged(); + partial void OnRevieweDateChanging(System.Nullable value); + partial void OnRevieweDateChanged(); + #endregion + + public JGZL_LeakTestOfPipelineSystemRecord() + { + 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="_SystemName", DbType="NVarChar(50)")] + public string SystemName + { + get + { + return this._SystemName; + } + set + { + if ((this._SystemName != value)) + { + this.OnSystemNameChanging(value); + this.SendPropertyChanging(); + this._SystemName = value; + this.SendPropertyChanged("SystemName"); + this.OnSystemNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemCode", DbType="NVarChar(50)")] + public string SystemCode + { + get + { + return this._SystemCode; + } + set + { + if ((this._SystemCode != value)) + { + this.OnSystemCodeChanging(value); + this.SendPropertyChanging(); + this._SystemCode = value; + this.SendPropertyChanged("SystemCode"); + this.OnSystemCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestConclusion", DbType="NVarChar(2000)")] + public string TestConclusion + { + get + { + return this._TestConclusion; + } + set + { + if ((this._TestConclusion != value)) + { + this.OnTestConclusionChanging(value); + this.SendPropertyChanging(); + this._TestConclusion = value; + this.SendPropertyChanged("TestConclusion"); + this.OnTestConclusionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(500)")] + public string Remark + { + get + { + return this._Remark; + } + set + { + if ((this._Remark != value)) + { + this.OnRemarkChanging(value); + this.SendPropertyChanging(); + this._Remark = value; + this.SendPropertyChanged("Remark"); + this.OnRemarkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")] + public string CompileMan + { + get + { + return this._CompileMan; + } + set + { + if ((this._CompileMan != value)) + { + if (this._Sys_User.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnCompileManChanging(value); + this.SendPropertyChanging(); + this._CompileMan = value; + this.SendPropertyChanged("CompileMan"); + this.OnCompileManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")] + public System.Nullable CompileDate + { + get + { + return this._CompileDate; + } + set + { + if ((this._CompileDate != value)) + { + this.OnCompileDateChanging(value); + this.SendPropertyChanging(); + this._CompileDate = value; + this.SendPropertyChanged("CompileDate"); + this.OnCompileDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Reviewer", DbType="NVarChar(50)")] + public string Reviewer + { + get + { + return this._Reviewer; + } + set + { + if ((this._Reviewer != value)) + { + this.OnReviewerChanging(value); + this.SendPropertyChanging(); + this._Reviewer = value; + this.SendPropertyChanged("Reviewer"); + this.OnReviewerChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RevieweDate", DbType="DateTime")] + public System.Nullable RevieweDate + { + get + { + return this._RevieweDate; + } + set + { + if ((this._RevieweDate != value)) + { + this.OnRevieweDateChanging(value); + this.SendPropertyChanging(); + this._RevieweDate = value; + this.SendPropertyChanged("RevieweDate"); + this.OnRevieweDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_LeakTestOfPipelineSystemRecord_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_LeakTestOfPipelineSystemRecord.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.JGZL_LeakTestOfPipelineSystemRecord.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_LeakTestOfPipelineSystemRecord_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_LeakTestOfPipelineSystemRecord.Remove(this); + } + this._Sys_User.Entity = value; + if ((value != null)) + { + value.JGZL_LeakTestOfPipelineSystemRecord.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_LeakTestOfPipelineSystemRecordItem")] + public partial class JGZL_LeakTestOfPipelineSystemRecordItem : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _RecordId; + + private string _PipelineNo; + + private string _DesignPressure; + + private string _DesignTemperature; + + private string _TestTemperature; + + private string _TestMediumTemperature; + + private string _TestPressure; + + private string _VoltageStabilizationTime; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnRecordIdChanging(string value); + partial void OnRecordIdChanged(); + partial void OnPipelineNoChanging(string value); + partial void OnPipelineNoChanged(); + partial void OnDesignPressureChanging(string value); + partial void OnDesignPressureChanged(); + partial void OnDesignTemperatureChanging(string value); + partial void OnDesignTemperatureChanged(); + partial void OnTestTemperatureChanging(string value); + partial void OnTestTemperatureChanged(); + partial void OnTestMediumTemperatureChanging(string value); + partial void OnTestMediumTemperatureChanged(); + partial void OnTestPressureChanging(string value); + partial void OnTestPressureChanged(); + partial void OnVoltageStabilizationTimeChanging(string value); + partial void OnVoltageStabilizationTimeChanged(); + #endregion + + public JGZL_LeakTestOfPipelineSystemRecordItem() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + 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="_PipelineNo", DbType="NVarChar(50)")] + public string PipelineNo + { + get + { + return this._PipelineNo; + } + set + { + if ((this._PipelineNo != value)) + { + this.OnPipelineNoChanging(value); + this.SendPropertyChanging(); + this._PipelineNo = value; + this.SendPropertyChanged("PipelineNo"); + this.OnPipelineNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignPressure", DbType="NVarChar(50)")] + public string DesignPressure + { + get + { + return this._DesignPressure; + } + set + { + if ((this._DesignPressure != value)) + { + this.OnDesignPressureChanging(value); + this.SendPropertyChanging(); + this._DesignPressure = value; + this.SendPropertyChanged("DesignPressure"); + this.OnDesignPressureChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignTemperature", DbType="NVarChar(50)")] + public string DesignTemperature + { + get + { + return this._DesignTemperature; + } + set + { + if ((this._DesignTemperature != value)) + { + this.OnDesignTemperatureChanging(value); + this.SendPropertyChanging(); + this._DesignTemperature = value; + this.SendPropertyChanged("DesignTemperature"); + this.OnDesignTemperatureChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestTemperature", DbType="NVarChar(50)")] + public string TestTemperature + { + get + { + return this._TestTemperature; + } + set + { + if ((this._TestTemperature != value)) + { + this.OnTestTemperatureChanging(value); + this.SendPropertyChanging(); + this._TestTemperature = value; + this.SendPropertyChanged("TestTemperature"); + this.OnTestTemperatureChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestMediumTemperature", DbType="NVarChar(50)")] + public string TestMediumTemperature + { + get + { + return this._TestMediumTemperature; + } + set + { + if ((this._TestMediumTemperature != value)) + { + this.OnTestMediumTemperatureChanging(value); + this.SendPropertyChanging(); + this._TestMediumTemperature = value; + this.SendPropertyChanged("TestMediumTemperature"); + this.OnTestMediumTemperatureChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestPressure", DbType="NVarChar(50)")] + public string TestPressure + { + get + { + return this._TestPressure; + } + set + { + if ((this._TestPressure != value)) + { + this.OnTestPressureChanging(value); + this.SendPropertyChanging(); + this._TestPressure = value; + this.SendPropertyChanged("TestPressure"); + this.OnTestPressureChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_VoltageStabilizationTime", DbType="NVarChar(50)")] + public string VoltageStabilizationTime + { + get + { + return this._VoltageStabilizationTime; + } + set + { + if ((this._VoltageStabilizationTime != value)) + { + this.OnVoltageStabilizationTimeChanging(value); + this.SendPropertyChanging(); + this._VoltageStabilizationTime = value; + this.SendPropertyChanged("VoltageStabilizationTime"); + this.OnVoltageStabilizationTimeChanged(); + } + } + } + + 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_MaterialIdentificationInspectionRecord")] public partial class JGZL_MaterialIdentificationInspectionRecord : INotifyPropertyChanging, INotifyPropertyChanged { @@ -89225,6 +89978,1268 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_PressureTestOfPipelineSystemConfirmationRecord")] + public partial class JGZL_PressureTestOfPipelineSystemConfirmationRecord : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _RecordId; + + private string _ProjectId; + + private string _SystemName; + + private string _SystemCode; + + private string _CheckItem1; + + private string _CheckItem2; + + private string _CheckItem3; + + private string _CheckItem4; + + private string _CheckItem5; + + private string _CheckItem6; + + private string _CheckItem7; + + private string _CheckItem8; + + private string _CheckItem9; + + private string _CheckItem10; + + private string _CheckItem11; + + private string _CheckItem12; + + private string _Remark; + + private string _CompileMan; + + private System.Nullable _CompileDate; + + private string _Reviewer; + + private System.Nullable _RevieweDate; + + private EntityRef _Base_Project; + + private EntityRef _Sys_User; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnRecordIdChanging(string value); + partial void OnRecordIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnSystemNameChanging(string value); + partial void OnSystemNameChanged(); + partial void OnSystemCodeChanging(string value); + partial void OnSystemCodeChanged(); + partial void OnCheckItem1Changing(string value); + partial void OnCheckItem1Changed(); + partial void OnCheckItem2Changing(string value); + partial void OnCheckItem2Changed(); + partial void OnCheckItem3Changing(string value); + partial void OnCheckItem3Changed(); + partial void OnCheckItem4Changing(string value); + partial void OnCheckItem4Changed(); + partial void OnCheckItem5Changing(string value); + partial void OnCheckItem5Changed(); + partial void OnCheckItem6Changing(string value); + partial void OnCheckItem6Changed(); + partial void OnCheckItem7Changing(string value); + partial void OnCheckItem7Changed(); + partial void OnCheckItem8Changing(string value); + partial void OnCheckItem8Changed(); + partial void OnCheckItem9Changing(string value); + partial void OnCheckItem9Changed(); + partial void OnCheckItem10Changing(string value); + partial void OnCheckItem10Changed(); + partial void OnCheckItem11Changing(string value); + partial void OnCheckItem11Changed(); + partial void OnCheckItem12Changing(string value); + partial void OnCheckItem12Changed(); + partial void OnRemarkChanging(string value); + partial void OnRemarkChanged(); + partial void OnCompileManChanging(string value); + partial void OnCompileManChanged(); + partial void OnCompileDateChanging(System.Nullable value); + partial void OnCompileDateChanged(); + partial void OnReviewerChanging(string value); + partial void OnReviewerChanged(); + partial void OnRevieweDateChanging(System.Nullable value); + partial void OnRevieweDateChanged(); + #endregion + + public JGZL_PressureTestOfPipelineSystemConfirmationRecord() + { + 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="_SystemName", DbType="NVarChar(50)")] + public string SystemName + { + get + { + return this._SystemName; + } + set + { + if ((this._SystemName != value)) + { + this.OnSystemNameChanging(value); + this.SendPropertyChanging(); + this._SystemName = value; + this.SendPropertyChanged("SystemName"); + this.OnSystemNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemCode", DbType="NVarChar(50)")] + public string SystemCode + { + get + { + return this._SystemCode; + } + set + { + if ((this._SystemCode != value)) + { + this.OnSystemCodeChanging(value); + this.SendPropertyChanging(); + this._SystemCode = value; + this.SendPropertyChanged("SystemCode"); + this.OnSystemCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckItem1", DbType="NVarChar(50)")] + public string CheckItem1 + { + get + { + return this._CheckItem1; + } + set + { + if ((this._CheckItem1 != value)) + { + this.OnCheckItem1Changing(value); + this.SendPropertyChanging(); + this._CheckItem1 = value; + this.SendPropertyChanged("CheckItem1"); + this.OnCheckItem1Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckItem2", DbType="NVarChar(50)")] + public string CheckItem2 + { + get + { + return this._CheckItem2; + } + set + { + if ((this._CheckItem2 != value)) + { + this.OnCheckItem2Changing(value); + this.SendPropertyChanging(); + this._CheckItem2 = value; + this.SendPropertyChanged("CheckItem2"); + this.OnCheckItem2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckItem3", DbType="NVarChar(50)")] + public string CheckItem3 + { + get + { + return this._CheckItem3; + } + set + { + if ((this._CheckItem3 != value)) + { + this.OnCheckItem3Changing(value); + this.SendPropertyChanging(); + this._CheckItem3 = value; + this.SendPropertyChanged("CheckItem3"); + this.OnCheckItem3Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckItem4", DbType="NVarChar(50)")] + public string CheckItem4 + { + get + { + return this._CheckItem4; + } + set + { + if ((this._CheckItem4 != value)) + { + this.OnCheckItem4Changing(value); + this.SendPropertyChanging(); + this._CheckItem4 = value; + this.SendPropertyChanged("CheckItem4"); + this.OnCheckItem4Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckItem5", DbType="NVarChar(50)")] + public string CheckItem5 + { + get + { + return this._CheckItem5; + } + set + { + if ((this._CheckItem5 != value)) + { + this.OnCheckItem5Changing(value); + this.SendPropertyChanging(); + this._CheckItem5 = value; + this.SendPropertyChanged("CheckItem5"); + this.OnCheckItem5Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckItem6", DbType="NVarChar(50)")] + public string CheckItem6 + { + get + { + return this._CheckItem6; + } + set + { + if ((this._CheckItem6 != value)) + { + this.OnCheckItem6Changing(value); + this.SendPropertyChanging(); + this._CheckItem6 = value; + this.SendPropertyChanged("CheckItem6"); + this.OnCheckItem6Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckItem7", DbType="NVarChar(50)")] + public string CheckItem7 + { + get + { + return this._CheckItem7; + } + set + { + if ((this._CheckItem7 != value)) + { + this.OnCheckItem7Changing(value); + this.SendPropertyChanging(); + this._CheckItem7 = value; + this.SendPropertyChanged("CheckItem7"); + this.OnCheckItem7Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckItem8", DbType="NVarChar(50)")] + public string CheckItem8 + { + get + { + return this._CheckItem8; + } + set + { + if ((this._CheckItem8 != value)) + { + this.OnCheckItem8Changing(value); + this.SendPropertyChanging(); + this._CheckItem8 = value; + this.SendPropertyChanged("CheckItem8"); + this.OnCheckItem8Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckItem9", DbType="NVarChar(50)")] + public string CheckItem9 + { + get + { + return this._CheckItem9; + } + set + { + if ((this._CheckItem9 != value)) + { + this.OnCheckItem9Changing(value); + this.SendPropertyChanging(); + this._CheckItem9 = value; + this.SendPropertyChanged("CheckItem9"); + this.OnCheckItem9Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckItem10", DbType="NVarChar(50)")] + public string CheckItem10 + { + get + { + return this._CheckItem10; + } + set + { + if ((this._CheckItem10 != value)) + { + this.OnCheckItem10Changing(value); + this.SendPropertyChanging(); + this._CheckItem10 = value; + this.SendPropertyChanged("CheckItem10"); + this.OnCheckItem10Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckItem11", DbType="NVarChar(50)")] + public string CheckItem11 + { + get + { + return this._CheckItem11; + } + set + { + if ((this._CheckItem11 != value)) + { + this.OnCheckItem11Changing(value); + this.SendPropertyChanging(); + this._CheckItem11 = value; + this.SendPropertyChanged("CheckItem11"); + this.OnCheckItem11Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckItem12", DbType="NVarChar(50)")] + public string CheckItem12 + { + get + { + return this._CheckItem12; + } + set + { + if ((this._CheckItem12 != value)) + { + this.OnCheckItem12Changing(value); + this.SendPropertyChanging(); + this._CheckItem12 = value; + this.SendPropertyChanged("CheckItem12"); + this.OnCheckItem12Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(500)")] + public string Remark + { + get + { + return this._Remark; + } + set + { + if ((this._Remark != value)) + { + this.OnRemarkChanging(value); + this.SendPropertyChanging(); + this._Remark = value; + this.SendPropertyChanged("Remark"); + this.OnRemarkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")] + public string CompileMan + { + get + { + return this._CompileMan; + } + set + { + if ((this._CompileMan != value)) + { + if (this._Sys_User.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnCompileManChanging(value); + this.SendPropertyChanging(); + this._CompileMan = value; + this.SendPropertyChanged("CompileMan"); + this.OnCompileManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")] + public System.Nullable CompileDate + { + get + { + return this._CompileDate; + } + set + { + if ((this._CompileDate != value)) + { + this.OnCompileDateChanging(value); + this.SendPropertyChanging(); + this._CompileDate = value; + this.SendPropertyChanged("CompileDate"); + this.OnCompileDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Reviewer", DbType="NVarChar(50)")] + public string Reviewer + { + get + { + return this._Reviewer; + } + set + { + if ((this._Reviewer != value)) + { + this.OnReviewerChanging(value); + this.SendPropertyChanging(); + this._Reviewer = value; + this.SendPropertyChanged("Reviewer"); + this.OnReviewerChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RevieweDate", DbType="DateTime")] + public System.Nullable RevieweDate + { + get + { + return this._RevieweDate; + } + set + { + if ((this._RevieweDate != value)) + { + this.OnRevieweDateChanging(value); + this.SendPropertyChanging(); + this._RevieweDate = value; + this.SendPropertyChanged("RevieweDate"); + this.OnRevieweDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_PressureTestOfPipelineSystemConfirmationRecord_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_PressureTestOfPipelineSystemConfirmationRecord.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.JGZL_PressureTestOfPipelineSystemConfirmationRecord.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_PressureTestOfPipelineSystemConfirmationRecord_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_PressureTestOfPipelineSystemConfirmationRecord.Remove(this); + } + this._Sys_User.Entity = value; + if ((value != null)) + { + value.JGZL_PressureTestOfPipelineSystemConfirmationRecord.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_PressureTestOfPipelineSystemRecord")] + public partial class JGZL_PressureTestOfPipelineSystemRecord : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _RecordId; + + private string _ProjectId; + + private string _SystemName; + + private string _SystemCode; + + private string _TestConclusion; + + private string _Remark; + + private string _CompileMan; + + private System.Nullable _CompileDate; + + private string _Reviewer; + + private System.Nullable _RevieweDate; + + private EntityRef _Base_Project; + + private EntityRef _Sys_User; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnRecordIdChanging(string value); + partial void OnRecordIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnSystemNameChanging(string value); + partial void OnSystemNameChanged(); + partial void OnSystemCodeChanging(string value); + partial void OnSystemCodeChanged(); + partial void OnTestConclusionChanging(string value); + partial void OnTestConclusionChanged(); + partial void OnRemarkChanging(string value); + partial void OnRemarkChanged(); + partial void OnCompileManChanging(string value); + partial void OnCompileManChanged(); + partial void OnCompileDateChanging(System.Nullable value); + partial void OnCompileDateChanged(); + partial void OnReviewerChanging(string value); + partial void OnReviewerChanged(); + partial void OnRevieweDateChanging(System.Nullable value); + partial void OnRevieweDateChanged(); + #endregion + + public JGZL_PressureTestOfPipelineSystemRecord() + { + 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="_SystemName", DbType="NVarChar(50)")] + public string SystemName + { + get + { + return this._SystemName; + } + set + { + if ((this._SystemName != value)) + { + this.OnSystemNameChanging(value); + this.SendPropertyChanging(); + this._SystemName = value; + this.SendPropertyChanged("SystemName"); + this.OnSystemNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemCode", DbType="NVarChar(50)")] + public string SystemCode + { + get + { + return this._SystemCode; + } + set + { + if ((this._SystemCode != value)) + { + this.OnSystemCodeChanging(value); + this.SendPropertyChanging(); + this._SystemCode = value; + this.SendPropertyChanged("SystemCode"); + this.OnSystemCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestConclusion", DbType="NVarChar(2000)")] + public string TestConclusion + { + get + { + return this._TestConclusion; + } + set + { + if ((this._TestConclusion != value)) + { + this.OnTestConclusionChanging(value); + this.SendPropertyChanging(); + this._TestConclusion = value; + this.SendPropertyChanged("TestConclusion"); + this.OnTestConclusionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(500)")] + public string Remark + { + get + { + return this._Remark; + } + set + { + if ((this._Remark != value)) + { + this.OnRemarkChanging(value); + this.SendPropertyChanging(); + this._Remark = value; + this.SendPropertyChanged("Remark"); + this.OnRemarkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")] + public string CompileMan + { + get + { + return this._CompileMan; + } + set + { + if ((this._CompileMan != value)) + { + if (this._Sys_User.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnCompileManChanging(value); + this.SendPropertyChanging(); + this._CompileMan = value; + this.SendPropertyChanged("CompileMan"); + this.OnCompileManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")] + public System.Nullable CompileDate + { + get + { + return this._CompileDate; + } + set + { + if ((this._CompileDate != value)) + { + this.OnCompileDateChanging(value); + this.SendPropertyChanging(); + this._CompileDate = value; + this.SendPropertyChanged("CompileDate"); + this.OnCompileDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Reviewer", DbType="NVarChar(50)")] + public string Reviewer + { + get + { + return this._Reviewer; + } + set + { + if ((this._Reviewer != value)) + { + this.OnReviewerChanging(value); + this.SendPropertyChanging(); + this._Reviewer = value; + this.SendPropertyChanged("Reviewer"); + this.OnReviewerChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RevieweDate", DbType="DateTime")] + public System.Nullable RevieweDate + { + get + { + return this._RevieweDate; + } + set + { + if ((this._RevieweDate != value)) + { + this.OnRevieweDateChanging(value); + this.SendPropertyChanging(); + this._RevieweDate = value; + this.SendPropertyChanged("RevieweDate"); + this.OnRevieweDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_PressureTestOfPipelineSystemRecord_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_PressureTestOfPipelineSystemRecord.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.JGZL_PressureTestOfPipelineSystemRecord.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_PressureTestOfPipelineSystemRecord_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_PressureTestOfPipelineSystemRecord.Remove(this); + } + this._Sys_User.Entity = value; + if ((value != null)) + { + value.JGZL_PressureTestOfPipelineSystemRecord.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_PressureTestOfPipelineSystemRecordItem")] + public partial class JGZL_PressureTestOfPipelineSystemRecordItem : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _RecordId; + + private string _PipelineNo; + + private string _DesignPressure; + + private string _DesignTemperature; + + private string _TestTemperature; + + private string _TestMedium; + + private string _TestMediumTemperature; + + private string _TestPressure; + + private string _VoltageStabilizationTime; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnRecordIdChanging(string value); + partial void OnRecordIdChanged(); + partial void OnPipelineNoChanging(string value); + partial void OnPipelineNoChanged(); + partial void OnDesignPressureChanging(string value); + partial void OnDesignPressureChanged(); + partial void OnDesignTemperatureChanging(string value); + partial void OnDesignTemperatureChanged(); + partial void OnTestTemperatureChanging(string value); + partial void OnTestTemperatureChanged(); + partial void OnTestMediumChanging(string value); + partial void OnTestMediumChanged(); + partial void OnTestMediumTemperatureChanging(string value); + partial void OnTestMediumTemperatureChanged(); + partial void OnTestPressureChanging(string value); + partial void OnTestPressureChanged(); + partial void OnVoltageStabilizationTimeChanging(string value); + partial void OnVoltageStabilizationTimeChanged(); + #endregion + + public JGZL_PressureTestOfPipelineSystemRecordItem() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + 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="_PipelineNo", DbType="NVarChar(50)")] + public string PipelineNo + { + get + { + return this._PipelineNo; + } + set + { + if ((this._PipelineNo != value)) + { + this.OnPipelineNoChanging(value); + this.SendPropertyChanging(); + this._PipelineNo = value; + this.SendPropertyChanged("PipelineNo"); + this.OnPipelineNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignPressure", DbType="NVarChar(50)")] + public string DesignPressure + { + get + { + return this._DesignPressure; + } + set + { + if ((this._DesignPressure != value)) + { + this.OnDesignPressureChanging(value); + this.SendPropertyChanging(); + this._DesignPressure = value; + this.SendPropertyChanged("DesignPressure"); + this.OnDesignPressureChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignTemperature", DbType="NVarChar(50)")] + public string DesignTemperature + { + get + { + return this._DesignTemperature; + } + set + { + if ((this._DesignTemperature != value)) + { + this.OnDesignTemperatureChanging(value); + this.SendPropertyChanging(); + this._DesignTemperature = value; + this.SendPropertyChanged("DesignTemperature"); + this.OnDesignTemperatureChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestTemperature", DbType="NVarChar(50)")] + public string TestTemperature + { + get + { + return this._TestTemperature; + } + set + { + if ((this._TestTemperature != value)) + { + this.OnTestTemperatureChanging(value); + this.SendPropertyChanging(); + this._TestTemperature = value; + this.SendPropertyChanged("TestTemperature"); + this.OnTestTemperatureChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestMedium", DbType="NVarChar(50)")] + public string TestMedium + { + get + { + return this._TestMedium; + } + set + { + if ((this._TestMedium != value)) + { + this.OnTestMediumChanging(value); + this.SendPropertyChanging(); + this._TestMedium = value; + this.SendPropertyChanged("TestMedium"); + this.OnTestMediumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestMediumTemperature", DbType="NVarChar(50)")] + public string TestMediumTemperature + { + get + { + return this._TestMediumTemperature; + } + set + { + if ((this._TestMediumTemperature != value)) + { + this.OnTestMediumTemperatureChanging(value); + this.SendPropertyChanging(); + this._TestMediumTemperature = value; + this.SendPropertyChanged("TestMediumTemperature"); + this.OnTestMediumTemperatureChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestPressure", DbType="NVarChar(50)")] + public string TestPressure + { + get + { + return this._TestPressure; + } + set + { + if ((this._TestPressure != value)) + { + this.OnTestPressureChanging(value); + this.SendPropertyChanging(); + this._TestPressure = value; + this.SendPropertyChanged("TestPressure"); + this.OnTestPressureChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_VoltageStabilizationTime", DbType="NVarChar(50)")] + public string VoltageStabilizationTime + { + get + { + return this._VoltageStabilizationTime; + } + set + { + if ((this._VoltageStabilizationTime != value)) + { + this.OnVoltageStabilizationTimeChanging(value); + this.SendPropertyChanging(); + this._VoltageStabilizationTime = value; + this.SendPropertyChanged("VoltageStabilizationTime"); + this.OnVoltageStabilizationTimeChanged(); + } + } + } + + 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_ProcessHandoverRecord")] public partial class JGZL_ProcessHandoverRecord : INotifyPropertyChanging, INotifyPropertyChanged { @@ -115313,6 +117328,8 @@ namespace Model private EntitySet _JGZL_IndustrialPipelineInstallationSummary; + private EntitySet _JGZL_LeakTestOfPipelineSystemRecord; + private EntitySet _JGZL_MaterialIdentificationInspectionRecord; private EntitySet _JGZL_MaterialQualityCertificateDoc; @@ -115327,6 +117344,10 @@ namespace Model private EntitySet _JGZL_PipelinePrefabricationConstructionInspectionRecord; + private EntitySet _JGZL_PressureTestOfPipelineSystemConfirmationRecord; + + private EntitySet _JGZL_PressureTestOfPipelineSystemRecord; + private EntitySet _JGZL_ProcessHandoverRecord; private EntitySet _JGZL_QualityControlPointInspection; @@ -115433,6 +117454,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_LeakTestOfPipelineSystemRecord = new EntitySet(new Action(this.attach_JGZL_LeakTestOfPipelineSystemRecord), new Action(this.detach_JGZL_LeakTestOfPipelineSystemRecord)); this._JGZL_MaterialIdentificationInspectionRecord = new EntitySet(new Action(this.attach_JGZL_MaterialIdentificationInspectionRecord), new Action(this.detach_JGZL_MaterialIdentificationInspectionRecord)); this._JGZL_MaterialQualityCertificateDoc = new EntitySet(new Action(this.attach_JGZL_MaterialQualityCertificateDoc), new Action(this.detach_JGZL_MaterialQualityCertificateDoc)); this._JGZL_MeasuringInstruments = new EntitySet(new Action(this.attach_JGZL_MeasuringInstruments), new Action(this.detach_JGZL_MeasuringInstruments)); @@ -115440,6 +117462,8 @@ namespace Model this._JGZL_PipeFittingInspectionRecord = new EntitySet(new Action(this.attach_JGZL_PipeFittingInspectionRecord), new Action(this.detach_JGZL_PipeFittingInspectionRecord)); this._JGZL_PipelineInstallationInspectionRecord = new EntitySet(new Action(this.attach_JGZL_PipelineInstallationInspectionRecord), new Action(this.detach_JGZL_PipelineInstallationInspectionRecord)); this._JGZL_PipelinePrefabricationConstructionInspectionRecord = new EntitySet(new Action(this.attach_JGZL_PipelinePrefabricationConstructionInspectionRecord), new Action(this.detach_JGZL_PipelinePrefabricationConstructionInspectionRecord)); + this._JGZL_PressureTestOfPipelineSystemConfirmationRecord = new EntitySet(new Action(this.attach_JGZL_PressureTestOfPipelineSystemConfirmationRecord), new Action(this.detach_JGZL_PressureTestOfPipelineSystemConfirmationRecord)); + this._JGZL_PressureTestOfPipelineSystemRecord = new EntitySet(new Action(this.attach_JGZL_PressureTestOfPipelineSystemRecord), new Action(this.detach_JGZL_PressureTestOfPipelineSystemRecord)); 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)); @@ -116228,6 +118252,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_LeakTestOfPipelineSystemRecord_Sys_User", Storage="_JGZL_LeakTestOfPipelineSystemRecord", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")] + public EntitySet JGZL_LeakTestOfPipelineSystemRecord + { + get + { + return this._JGZL_LeakTestOfPipelineSystemRecord; + } + set + { + this._JGZL_LeakTestOfPipelineSystemRecord.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_MaterialIdentificationInspectionRecord_Sys_User", Storage="_JGZL_MaterialIdentificationInspectionRecord", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")] public EntitySet JGZL_MaterialIdentificationInspectionRecord { @@ -116319,6 +118356,32 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_PressureTestOfPipelineSystemConfirmationRecord_Sys_User", Storage="_JGZL_PressureTestOfPipelineSystemConfirmationRecord", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")] + public EntitySet JGZL_PressureTestOfPipelineSystemConfirmationRecord + { + get + { + return this._JGZL_PressureTestOfPipelineSystemConfirmationRecord; + } + set + { + this._JGZL_PressureTestOfPipelineSystemConfirmationRecord.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_PressureTestOfPipelineSystemRecord_Sys_User", Storage="_JGZL_PressureTestOfPipelineSystemRecord", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")] + public EntitySet JGZL_PressureTestOfPipelineSystemRecord + { + get + { + return this._JGZL_PressureTestOfPipelineSystemRecord; + } + set + { + this._JGZL_PressureTestOfPipelineSystemRecord.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_ProcessHandoverRecord_Sys_User", Storage="_JGZL_ProcessHandoverRecord", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")] public EntitySet JGZL_ProcessHandoverRecord { @@ -116909,6 +118972,18 @@ namespace Model entity.Sys_User = null; } + private void attach_JGZL_LeakTestOfPipelineSystemRecord(JGZL_LeakTestOfPipelineSystemRecord entity) + { + this.SendPropertyChanging(); + entity.Sys_User = this; + } + + private void detach_JGZL_LeakTestOfPipelineSystemRecord(JGZL_LeakTestOfPipelineSystemRecord entity) + { + this.SendPropertyChanging(); + entity.Sys_User = null; + } + private void attach_JGZL_MaterialIdentificationInspectionRecord(JGZL_MaterialIdentificationInspectionRecord entity) { this.SendPropertyChanging(); @@ -116993,6 +119068,30 @@ namespace Model entity.Sys_User = null; } + private void attach_JGZL_PressureTestOfPipelineSystemConfirmationRecord(JGZL_PressureTestOfPipelineSystemConfirmationRecord entity) + { + this.SendPropertyChanging(); + entity.Sys_User = this; + } + + private void detach_JGZL_PressureTestOfPipelineSystemConfirmationRecord(JGZL_PressureTestOfPipelineSystemConfirmationRecord entity) + { + this.SendPropertyChanging(); + entity.Sys_User = null; + } + + private void attach_JGZL_PressureTestOfPipelineSystemRecord(JGZL_PressureTestOfPipelineSystemRecord entity) + { + this.SendPropertyChanging(); + entity.Sys_User = this; + } + + private void detach_JGZL_PressureTestOfPipelineSystemRecord(JGZL_PressureTestOfPipelineSystemRecord entity) + { + this.SendPropertyChanging(); + entity.Sys_User = null; + } + private void attach_JGZL_ProcessHandoverRecord(JGZL_ProcessHandoverRecord entity) { this.SendPropertyChanging();