diff --git a/DataBase/版本日志/HJGLDB_DS_2026-01-26_xiaj.sql b/DataBase/版本日志/HJGLDB_DS_2026-01-26_xiaj.sql new file mode 100644 index 0000000..a29a22c --- /dev/null +++ b/DataBase/版本日志/HJGLDB_DS_2026-01-26_xiaj.sql @@ -0,0 +1,231 @@ + + +-- + +/**********˵************************************************************/ + +--39ܼۼռ¼ +IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = '4A4FD28C-6B6B-4BDE-9CE0-73955FCACF5A') +BEGIN + INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule) + VALUES ('4A4FD28C-6B6B-4BDE-9CE0-73955FCACF5A','ܼۼռ¼','JGZL/PipeFittingInspectionRecord.aspx',390,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3') +END +GO +IF NOT EXISTS (SELECT * FROM ButtonToMenu WHERE MenuId = '4A4FD28C-6B6B-4BDE-9CE0-73955FCACF5A') +BEGIN + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('AEC7CEF7-58EE-427D-B5C6-0956CA782452','4A4FD28C-6B6B-4BDE-9CE0-73955FCACF5A','',1) + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('5E6C100C-601D-4B22-9488-7858CA41F6BB','4A4FD28C-6B6B-4BDE-9CE0-73955FCACF5A','޸',2) + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('70735927-7B4E-489B-B750-3A89BC0C88F0','4A4FD28C-6B6B-4BDE-9CE0-73955FCACF5A','ɾ',3) + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('F0E81BE1-778F-430D-B175-900625EABECC','4A4FD28C-6B6B-4BDE-9CE0-73955FCACF5A','',4) +END +GO + + + + +--40򽻽Ӽ¼ +IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = '13258273-4445-4C0A-8213-59DEA1C315C6') +BEGIN + INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule) + VALUES ('13258273-4445-4C0A-8213-59DEA1C315C6','򽻽Ӽ¼','JGZL/ProcessHandoverRecord.aspx',400,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3') +END +GO +IF NOT EXISTS (SELECT * FROM ButtonToMenu WHERE MenuId = '13258273-4445-4C0A-8213-59DEA1C315C6') +BEGIN + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('6DF8CB67-672A-435B-AB2A-63BA1167E3DF','13258273-4445-4C0A-8213-59DEA1C315C6','',1) + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('E7E6BD98-1E13-4391-BD3C-6F4C6E14D034','13258273-4445-4C0A-8213-59DEA1C315C6','޸',2) + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('861F749B-7713-4842-BCBB-E510F987C9DB','13258273-4445-4C0A-8213-59DEA1C315C6','ɾ',3) + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('DAB14E57-8C00-4215-9B16-93BEF79F905E','13258273-4445-4C0A-8213-59DEA1C315C6','',4) +END +GO + + +--41ܵԤʩ¼ +IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = 'CFE63BEA-A1D4-4477-B8E7-86B5E3F7FF84') +BEGIN + INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule) + VALUES ('CFE63BEA-A1D4-4477-B8E7-86B5E3F7FF84','ܵԤʩ¼','JGZL/PipelinePrefabricationConstructionInspectionRecord.aspx',410,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3') +END +GO +IF NOT EXISTS (SELECT * FROM ButtonToMenu WHERE MenuId = 'CFE63BEA-A1D4-4477-B8E7-86B5E3F7FF84') +BEGIN + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('6692F885-9EC7-41A6-B862-B4EC45A871A1','CFE63BEA-A1D4-4477-B8E7-86B5E3F7FF84','',1) + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('094516C5-9DBC-44C0-A756-6BF650545321','CFE63BEA-A1D4-4477-B8E7-86B5E3F7FF84','޸',2) + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('3678946F-1FE4-419E-A70D-46674D5977E4','CFE63BEA-A1D4-4477-B8E7-86B5E3F7FF84','ɾ',3) + INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES ('A6A7B06F-0652-421A-91AE-F111FF1D5DAF','CFE63BEA-A1D4-4477-B8E7-86B5E3F7FF84','',4) +END +GO + + + + +/**********ݱ************************************************************/ + +--39ܼۼռ¼ +IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_PipeFittingInspectionRecord') AND type = N'U') +BEGIN + +CREATE TABLE [dbo].[JGZL_PipeFittingInspectionRecord]( + [RecordId] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [ContractNo] [nvarchar](50) NULL, + [Name] [nvarchar](50) NULL, + [ArrivalNum] [int] NULL, + [ArrivalUnit] [nvarchar](50) NULL, + [MaterialCertificateNumber] [nvarchar](50) NULL, + [Material] [nvarchar](50) NULL, + [Specifications] [nvarchar](50) NULL, + [InspectionNum] [int] NULL, + [ODVariation] [nvarchar](50) NULL, + [IDVariation] [nvarchar](50) NULL, + [WallVariation] [nvarchar](50) NULL, + [OtherVariation] [nvarchar](50) NULL, + [AppearanceQuality] [nvarchar](50) NULL, + [Result] [nvarchar](2000) NULL, + [Remark] [nvarchar](500) NULL, + [CompileMan] [nvarchar](50) NULL, + [CompileDate] [datetime] NULL, + [Reviewer] [nvarchar](50) NULL, + [RevieweDate] [datetime] NULL, + CONSTRAINT [PK_JGZL_PipeFittingInspectionRecord] 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_PipeFittingInspectionRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_PipeFittingInspectionRecord_Base_Project] FOREIGN KEY([ProjectId]) +REFERENCES [dbo].[Base_Project] ([ProjectId]) +ALTER TABLE [dbo].[JGZL_PipeFittingInspectionRecord] CHECK CONSTRAINT [FK_JGZL_PipeFittingInspectionRecord_Base_Project] +ALTER TABLE [dbo].[JGZL_PipeFittingInspectionRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_PipeFittingInspectionRecord_Sys_User] FOREIGN KEY([CompileMan]) +REFERENCES [dbo].[Sys_User] ([UserId]) +ALTER TABLE [dbo].[JGZL_PipeFittingInspectionRecord] CHECK CONSTRAINT [FK_JGZL_PipeFittingInspectionRecord_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_PipeFittingInspectionRecord', @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_PipeFittingInspectionRecord', @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_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'ContractNo' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'Name' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'ArrivalNum' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'ArrivalUnit' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'֤' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'MaterialCertificateNumber' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'Material' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'Specifications' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'InspectionNum' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'⾶ƫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'ODVariation' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ھƫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'IDVariation' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ںƫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'WallVariation' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ƫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'OtherVariation' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'AppearanceQuality' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'Result' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @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_PipeFittingInspectionRecord', @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_PipeFittingInspectionRecord', @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_PipeFittingInspectionRecord', @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_PipeFittingInspectionRecord', @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_PipeFittingInspectionRecord' + +END + +GO + + +--40򽻽Ӽ¼ +IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_ProcessHandoverRecord') AND type = N'U') +BEGIN + +CREATE TABLE [dbo].[JGZL_ProcessHandoverRecord]( + [RecordId] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [ExecutionStandard] [nvarchar](50) NULL, + [OrganizationalUnit] [nvarchar](50) NULL, + [HandoverUnit] [nvarchar](50) NULL, + [ReceivingUnit] [nvarchar](50) NULL, + [InspectionResults] [nvarchar](2000) NULL, + [ReceivingUnitOpinions] [nvarchar](2000) NULL, + [Remark] [nvarchar](500) NULL, + [CompileMan] [nvarchar](50) NULL, + [CompileDate] [datetime] NULL, + [Reviewer] [nvarchar](50) NULL, + [RevieweDate] [datetime] NULL, + CONSTRAINT [PK_JGZL_ProcessHandoverRecord] 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_ProcessHandoverRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_ProcessHandoverRecord_Base_Project] FOREIGN KEY([ProjectId]) +REFERENCES [dbo].[Base_Project] ([ProjectId]) +ALTER TABLE [dbo].[JGZL_ProcessHandoverRecord] CHECK CONSTRAINT [FK_JGZL_ProcessHandoverRecord_Base_Project] +ALTER TABLE [dbo].[JGZL_ProcessHandoverRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_ProcessHandoverRecord_Sys_User] FOREIGN KEY([CompileMan]) +REFERENCES [dbo].[Sys_User] ([UserId]) +ALTER TABLE [dbo].[JGZL_ProcessHandoverRecord] CHECK CONSTRAINT [FK_JGZL_ProcessHandoverRecord_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_ProcessHandoverRecord', @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_ProcessHandoverRecord', @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_ProcessHandoverRecord', @level2type=N'COLUMN',@level2name=N'ExecutionStandard' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'֯λ/' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ProcessHandoverRecord', @level2type=N'COLUMN',@level2name=N'OrganizationalUnit' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ProcessHandoverRecord', @level2type=N'COLUMN',@level2name=N'HandoverUnit' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'յλ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ProcessHandoverRecord', @level2type=N'COLUMN',@level2name=N'ReceivingUnit' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ݼԼ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ProcessHandoverRecord', @level2type=N'COLUMN',@level2name=N'InspectionResults' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'յλ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ProcessHandoverRecord', @level2type=N'COLUMN',@level2name=N'ReceivingUnitOpinions' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ProcessHandoverRecord', @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_ProcessHandoverRecord', @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_ProcessHandoverRecord', @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_ProcessHandoverRecord', @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_ProcessHandoverRecord', @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_ProcessHandoverRecord' + +END + +GO + + +--41ܵԤʩ¼ +IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_PipelinePrefabricationConstructionInspectionRecord') AND type = N'U') +BEGIN + +CREATE TABLE [dbo].[JGZL_PipelinePrefabricationConstructionInspectionRecord]( + [RecordId] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [ProfessionalEngineering] [nvarchar](50) NULL, + [DrawingNumber] [nvarchar](50) NULL, + [InspectionResults] [nvarchar](2000) NULL, + [Remark] [nvarchar](500) NULL, + [CompileMan] [nvarchar](50) NULL, + [CompileDate] [datetime] NULL, + [Reviewer] [nvarchar](50) NULL, + [RevieweDate] [datetime] NULL, + CONSTRAINT [PK_JGZL_PipelinePrefabricationConstructionInspectionRecord] 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_PipelinePrefabricationConstructionInspectionRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_PipelinePrefabricationConstructionInspectionRecord_Base_Project] FOREIGN KEY([ProjectId]) +REFERENCES [dbo].[Base_Project] ([ProjectId]) +ALTER TABLE [dbo].[JGZL_PipelinePrefabricationConstructionInspectionRecord] CHECK CONSTRAINT [FK_JGZL_PipelinePrefabricationConstructionInspectionRecord_Base_Project] +ALTER TABLE [dbo].[JGZL_PipelinePrefabricationConstructionInspectionRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_PipelinePrefabricationConstructionInspectionRecord_Sys_User] FOREIGN KEY([CompileMan]) +REFERENCES [dbo].[Sys_User] ([UserId]) +ALTER TABLE [dbo].[JGZL_PipelinePrefabricationConstructionInspectionRecord] CHECK CONSTRAINT [FK_JGZL_PipelinePrefabricationConstructionInspectionRecord_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_PipelinePrefabricationConstructionInspectionRecord', @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_PipelinePrefabricationConstructionInspectionRecord', @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_PipelinePrefabricationConstructionInspectionRecord', @level2type=N'COLUMN',@level2name=N'ProfessionalEngineering' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʩͼ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipelinePrefabricationConstructionInspectionRecord', @level2type=N'COLUMN',@level2name=N'DrawingNumber' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipelinePrefabricationConstructionInspectionRecord', @level2type=N'COLUMN',@level2name=N'InspectionResults' +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipelinePrefabricationConstructionInspectionRecord', @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_PipelinePrefabricationConstructionInspectionRecord', @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_PipelinePrefabricationConstructionInspectionRecord', @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_PipelinePrefabricationConstructionInspectionRecord', @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_PipelinePrefabricationConstructionInspectionRecord', @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_PipelinePrefabricationConstructionInspectionRecord' + +END + +GO + diff --git a/HJGL_DS/BLL/BLL.csproj b/HJGL_DS/BLL/BLL.csproj index 8d5523c..b2548fe 100644 --- a/HJGL_DS/BLL/BLL.csproj +++ b/HJGL_DS/BLL/BLL.csproj @@ -250,6 +250,9 @@ + + + diff --git a/HJGL_DS/BLL/Common/Const.cs b/HJGL_DS/BLL/Common/Const.cs index 9fe4067..04c4a03 100644 --- a/HJGL_DS/BLL/Common/Const.cs +++ b/HJGL_DS/BLL/Common/Const.cs @@ -1822,6 +1822,21 @@ namespace BLL /// public const string JGZL_PipelineInstallationInspectionRecordMenuId = "32B46F24-DA2A-40BC-9DB8-29D0A1A382B1"; + /// + /// 管道预制施工检查记录 + /// + public const string JGZL_PipelinePrefabricationConstructionInspectionRecordMenuId = "CFE63BEA-A1D4-4477-B8E7-86B5E3F7FF84"; + + /// + /// 管件宏观检查验收记录表 + /// + public const string JGZL_PipeFittingInspectionRecordMenuId = "4A4FD28C-6B6B-4BDE-9CE0-73955FCACF5A"; + + /// + /// 工序交接记录 + /// + public const string JGZL_ProcessHandoverRecordMenuId = "13258273-4445-4C0A-8213-59DEA1C315C6"; + /// /// 隐蔽工程验收记录 /// diff --git a/HJGL_DS/BLL/JGZL/PipeFittingInspectionRecordService.cs b/HJGL_DS/BLL/JGZL/PipeFittingInspectionRecordService.cs new file mode 100644 index 0000000..7c89fbc --- /dev/null +++ b/HJGL_DS/BLL/JGZL/PipeFittingInspectionRecordService.cs @@ -0,0 +1,98 @@ +using Model; +using System.Linq; + +namespace BLL +{ + /// + /// 管件宏观检查验收记录表 + /// + public class PipeFittingInspectionRecordService + { + /// + /// 根据主键获取管件宏观检查验收记录表 + /// + /// + /// + public static Model.JGZL_PipeFittingInspectionRecord GetPipeFittingInspectionRecordById(string Id) + { + return Funs.DB.JGZL_PipeFittingInspectionRecord.FirstOrDefault(e => e.RecordId == Id); + } + + /// + /// 添加管件宏观检查验收记录表 + /// + /// + public static void AddPipeFittingInspectionRecord(Model.JGZL_PipeFittingInspectionRecord model) + { + SGGLDB db = Funs.DB; + Model.JGZL_PipeFittingInspectionRecord newModel = new JGZL_PipeFittingInspectionRecord(); + newModel.RecordId = model.RecordId; + newModel.ProjectId = model.ProjectId; + newModel.ContractNo = model.ContractNo; + newModel.Name = model.Name; + newModel.ArrivalNum = model.ArrivalNum; + newModel.ArrivalUnit = model.ArrivalUnit; + newModel.MaterialCertificateNumber = model.MaterialCertificateNumber; + newModel.Material = model.Material; + newModel.Specifications = model.Specifications; + newModel.InspectionNum = model.InspectionNum; + newModel.ODVariation = model.ODVariation; + newModel.IDVariation = model.IDVariation; + newModel.WallVariation = model.WallVariation; + newModel.OtherVariation = model.OtherVariation; + newModel.AppearanceQuality = model.AppearanceQuality; + newModel.Result = model.Result; + newModel.Remark = model.Remark; + newModel.CompileMan = model.CompileMan; + newModel.CompileDate = model.CompileDate; + newModel.Reviewer = model.Reviewer; + newModel.RevieweDate = model.RevieweDate; + db.JGZL_PipeFittingInspectionRecord.InsertOnSubmit(newModel); + db.SubmitChanges(); + } + + /// + /// 修改管件宏观检查验收记录表 + /// + /// + public static void UpdatePipeFittingInspectionRecord(Model.JGZL_PipeFittingInspectionRecord model) + { + SGGLDB db = Funs.DB; + Model.JGZL_PipeFittingInspectionRecord newModel = db.JGZL_PipeFittingInspectionRecord.FirstOrDefault(e => e.RecordId == model.RecordId); + if (newModel != null) + { + newModel.ContractNo = model.ContractNo; + newModel.Name = model.Name; + newModel.ArrivalNum = model.ArrivalNum; + newModel.ArrivalUnit = model.ArrivalUnit; + newModel.MaterialCertificateNumber = model.MaterialCertificateNumber; + newModel.Material = model.Material; + newModel.Specifications = model.Specifications; + newModel.InspectionNum = model.InspectionNum; + newModel.ODVariation = model.ODVariation; + newModel.IDVariation = model.IDVariation; + newModel.WallVariation = model.WallVariation; + newModel.OtherVariation = model.OtherVariation; + newModel.AppearanceQuality = model.AppearanceQuality; + newModel.Result = model.Result; + newModel.Remark = model.Remark; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除管件宏观检查验收记录表 + /// + /// + public static void DeletePipeFittingInspectionRecordById(string Id) + { + SGGLDB db = Funs.DB; + Model.JGZL_PipeFittingInspectionRecord model = db.JGZL_PipeFittingInspectionRecord.FirstOrDefault(e => e.RecordId == Id); + if (model != null) + { + db.JGZL_PipeFittingInspectionRecord.DeleteOnSubmit(model); + db.SubmitChanges(); + } + } + } +} diff --git a/HJGL_DS/BLL/JGZL/PipelinePrefabricationConstructionInspectionRecordService.cs b/HJGL_DS/BLL/JGZL/PipelinePrefabricationConstructionInspectionRecordService.cs new file mode 100644 index 0000000..5ee73b2 --- /dev/null +++ b/HJGL_DS/BLL/JGZL/PipelinePrefabricationConstructionInspectionRecordService.cs @@ -0,0 +1,76 @@ +using Model; +using System.Linq; + +namespace BLL +{ + /// + /// 管道预制施工检查记录 + /// + public class PipelinePrefabricationConstructionInspectionRecordService + { + /// + /// 根据主键获取管道预制施工检查记录 + /// + /// + /// + public static Model.JGZL_PipelinePrefabricationConstructionInspectionRecord GetPipelinePrefabricationConstructionInspectionRecordById(string Id) + { + return Funs.DB.JGZL_PipelinePrefabricationConstructionInspectionRecord.FirstOrDefault(e => e.RecordId == Id); + } + + /// + /// 添加管道预制施工检查记录 + /// + /// + public static void AddPipelinePrefabricationConstructionInspectionRecord(Model.JGZL_PipelinePrefabricationConstructionInspectionRecord model) + { + SGGLDB db = Funs.DB; + Model.JGZL_PipelinePrefabricationConstructionInspectionRecord newModel = new JGZL_PipelinePrefabricationConstructionInspectionRecord(); + newModel.RecordId = model.RecordId; + newModel.ProjectId = model.ProjectId; + newModel.ProfessionalEngineering = model.ProfessionalEngineering; + newModel.DrawingNumber = model.DrawingNumber; + newModel.InspectionResults = model.InspectionResults; + newModel.Remark = model.Remark; + newModel.CompileMan = model.CompileMan; + newModel.CompileDate = model.CompileDate; + newModel.Reviewer = model.Reviewer; + newModel.RevieweDate = model.RevieweDate; + db.JGZL_PipelinePrefabricationConstructionInspectionRecord.InsertOnSubmit(newModel); + db.SubmitChanges(); + } + + /// + /// 修改管道预制施工检查记录 + /// + /// + public static void UpdatePipelinePrefabricationConstructionInspectionRecord(Model.JGZL_PipelinePrefabricationConstructionInspectionRecord model) + { + SGGLDB db = Funs.DB; + Model.JGZL_PipelinePrefabricationConstructionInspectionRecord newModel = db.JGZL_PipelinePrefabricationConstructionInspectionRecord.FirstOrDefault(e => e.RecordId == model.RecordId); + if (newModel != null) + { + newModel.ProfessionalEngineering = model.ProfessionalEngineering; + newModel.DrawingNumber = model.DrawingNumber; + newModel.InspectionResults = model.InspectionResults; + newModel.Remark = model.Remark; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除管道预制施工检查记录 + /// + /// + public static void DeletePipelinePrefabricationConstructionInspectionRecordById(string Id) + { + SGGLDB db = Funs.DB; + Model.JGZL_PipelinePrefabricationConstructionInspectionRecord model = db.JGZL_PipelinePrefabricationConstructionInspectionRecord.FirstOrDefault(e => e.RecordId == Id); + if (model != null) + { + db.JGZL_PipelinePrefabricationConstructionInspectionRecord.DeleteOnSubmit(model); + db.SubmitChanges(); + } + } + } +} diff --git a/HJGL_DS/BLL/JGZL/ProcessHandoverRecordService.cs b/HJGL_DS/BLL/JGZL/ProcessHandoverRecordService.cs new file mode 100644 index 0000000..8fb48d5 --- /dev/null +++ b/HJGL_DS/BLL/JGZL/ProcessHandoverRecordService.cs @@ -0,0 +1,82 @@ +using Model; +using System.Linq; + +namespace BLL +{ + /// + /// 工序交接记录 + /// + public class ProcessHandoverRecordService + { + /// + /// 根据主键获取工序交接记录 + /// + /// + /// + public static Model.JGZL_ProcessHandoverRecord GetProcessHandoverRecordById(string Id) + { + return Funs.DB.JGZL_ProcessHandoverRecord.FirstOrDefault(e => e.RecordId == Id); + } + + /// + /// 添加工序交接记录 + /// + /// + public static void AddProcessHandoverRecord(Model.JGZL_ProcessHandoverRecord model) + { + SGGLDB db = Funs.DB; + Model.JGZL_ProcessHandoverRecord newModel = new JGZL_ProcessHandoverRecord(); + newModel.RecordId = model.RecordId; + newModel.ProjectId = model.ProjectId; + newModel.ExecutionStandard = model.ExecutionStandard; + newModel.OrganizationalUnit = model.OrganizationalUnit; + newModel.HandoverUnit = model.HandoverUnit; + newModel.ReceivingUnit = model.ReceivingUnit; + newModel.InspectionResults = model.InspectionResults; + newModel.ReceivingUnitOpinions = model.ReceivingUnitOpinions; + newModel.Remark = model.Remark; + newModel.CompileMan = model.CompileMan; + newModel.CompileDate = model.CompileDate; + newModel.Reviewer = model.Reviewer; + newModel.RevieweDate = model.RevieweDate; + db.JGZL_ProcessHandoverRecord.InsertOnSubmit(newModel); + db.SubmitChanges(); + } + + /// + /// 修改工序交接记录 + /// + /// + public static void UpdateProcessHandoverRecord(Model.JGZL_ProcessHandoverRecord model) + { + SGGLDB db = Funs.DB; + Model.JGZL_ProcessHandoverRecord newModel = db.JGZL_ProcessHandoverRecord.FirstOrDefault(e => e.RecordId == model.RecordId); + if (newModel != null) + { + newModel.ExecutionStandard = model.ExecutionStandard; + newModel.OrganizationalUnit = model.OrganizationalUnit; + newModel.HandoverUnit = model.HandoverUnit; + newModel.ReceivingUnit = model.ReceivingUnit; + newModel.InspectionResults = model.InspectionResults; + newModel.ReceivingUnitOpinions = model.ReceivingUnitOpinions; + newModel.Remark = model.Remark; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除工序交接记录 + /// + /// + public static void DeleteProcessHandoverRecordById(string Id) + { + SGGLDB db = Funs.DB; + Model.JGZL_ProcessHandoverRecord model = db.JGZL_ProcessHandoverRecord.FirstOrDefault(e => e.RecordId == Id); + if (model != null) + { + db.JGZL_ProcessHandoverRecord.DeleteOnSubmit(model); + db.SubmitChanges(); + } + } + } +} diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj index 29f7fa3..6803a03 100644 --- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj +++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj @@ -1248,6 +1248,12 @@ + + + + + + @@ -6618,6 +6624,48 @@ CommencementReportEdit.aspx + + PipeFittingInspectionRecord.aspx + ASPXCodeBehind + + + PipeFittingInspectionRecord.aspx + + + PipeFittingInspectionRecordEdit.aspx + ASPXCodeBehind + + + PipeFittingInspectionRecordEdit.aspx + + + ProcessHandoverRecord.aspx + ASPXCodeBehind + + + ProcessHandoverRecord.aspx + + + ProcessHandoverRecordEdit.aspx + ASPXCodeBehind + + + ProcessHandoverRecordEdit.aspx + + + PipelinePrefabricationConstructionInspectionRecord.aspx + ASPXCodeBehind + + + PipelinePrefabricationConstructionInspectionRecord.aspx + + + PipelinePrefabricationConstructionInspectionRecordEdit.aspx + ASPXCodeBehind + + + PipelinePrefabricationConstructionInspectionRecordEdit.aspx + ValveInspectionTestRecord.aspx ASPXCodeBehind diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecord.aspx b/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecord.aspx new file mode 100644 index 0000000..e69ce08 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecord.aspx @@ -0,0 +1,159 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PipeFittingInspectionRecord.aspx.cs" Inherits="FineUIPro.Web.JGZL.PipeFittingInspectionRecord" %> + + + + + + + 管件宏观检查验收记录表 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecord.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecord.aspx.cs new file mode 100644 index 0000000..656d178 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecord.aspx.cs @@ -0,0 +1,401 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.IO; + +namespace FineUIPro.Web.JGZL +{ + public partial class PipeFittingInspectionRecord : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); + + this.drpProjectId.DataTextField = "ProjectCode"; + this.drpProjectId.DataValueField = "ProjectId"; + this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1"); + this.drpProjectId.DataBind(); + Funs.FineUIPleaseSelect(this.drpProjectId); + + this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId; + this.InitTreeMenu();//加载树 + this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue; + this.BindGrid(); + } + } + #endregion + + #region 加载树项目 + /// + /// 加载树 + /// + private void InitTreeMenu() + { + this.tvControlItem.Nodes.Clear(); + TreeNode rootNode = new TreeNode(); + rootNode.Text = "项目"; + rootNode.ToolTip = "项目"; + rootNode.NodeID = "0"; + rootNode.Expanded = true; + this.tvControlItem.Nodes.Add(rootNode); + + List projects = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1"); + if (this.drpProjectId.SelectedValue != BLL.Const._Null) + { + projects = projects.Where(e => e.ProjectId == this.drpProjectId.SelectedValue).ToList(); + } + foreach (var item in projects) + { + TreeNode rootProjectNode = new TreeNode();//定义根节点 + rootProjectNode.Text = item.ProjectCode; + rootProjectNode.NodeID = item.ProjectId; + rootProjectNode.EnableClickEvent = true; + rootProjectNode.Expanded = true; + rootProjectNode.ToolTip = item.ProjectName; + rootProjectNode.CommandName = "项目名称"; + rootNode.Nodes.Add(rootProjectNode); + } + } + #endregion + + #region 点击TreeView + /// + /// 点击TreeView + /// + /// + /// + protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e) + { + if (this.tvControlItem.SelectedNodeID != "0") + { + this.BindGrid(); + } + } + #endregion + + #region 数据绑定 + /// + /// 数据绑定 + /// + private void BindGrid() + { + //string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1"); + string strSql = @"SELECT * from JGZL_PipeFittingInspectionRecord where 1=1"; + List listStr = new List(); + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + strSql += " AND ProjectId = @ProjectId"; + listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID)); + } + //else + //{ + // strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 "; + // listStr.Add(new SqlParameter("@ProjectId", projectIds)); + //} + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + // 2.获取当前分页数据 + Grid1.RecordCount = tb.Rows.Count; + //tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 分页排序 + #region 页索引改变事件 + /// + /// 页索引改变事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + #endregion + + #region 排序 + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + BindGrid(); + } + #endregion + + #region 分页选择下拉改变事件 + /// + /// 分页选择下拉改变事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + #endregion + #endregion + + #region 查询 + /// + ///查询 + /// + /// + /// + protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) + { + this.InitTreeMenu(); + this.BindGrid(); + } + + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 打印 + /// + /// 打印 + /// + /// + /// + protected void btnPrint_Click(object sender, EventArgs e) + { + string projectId = this.tvControlItem.SelectedNodeID; + + if (projectId != null) + { + string initTemplatePath = ""; + string rootPath = Server.MapPath("~/"); + BLL.Common.FastReportService.ResetData(); + + string strSql = @"SELECT * from JGZL_PipeFittingInspectionRecord where ProjectId = @ProjectId order by DrawingNumber desc"; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", projectId)); + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + DataTable dt = new DataTable(); + dt.TableName = "Data"; + dt.Columns.Add("Num"); + dt.Columns.Add("ConcealedWorks"); + dt.Columns.Add("DrawingNumber"); + dt.Columns.Add("ConcealedContentAndDiagram"); + dt.Columns.Add("InspectionResults"); + dt.Columns.Add("Remark"); + + DataRow[] rows = tb.DefaultView.ToTable().Select(); + int i = 0; + foreach (var row in rows) + { + var newRow = dt.NewRow(); + newRow["Num"] = (i + 1).ToString(); + newRow["ConcealedWorks"] = row["ConcealedWorks"].ToString(); + newRow["DrawingNumber"] = row["DrawingNumber"].ToString(); + newRow["ConcealedContentAndDiagram"] = row["ConcealedContentAndDiagram"].ToString(); + newRow["Remark"] = row["Remark"].ToString(); + dt.Rows.Add(newRow); + i++; + } + BLL.Common.FastReportService.AddFastreportTable(dt); + + Dictionary keyValuePairs = new Dictionary(); + keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); + BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); + + initTemplatePath = "File\\Fastreport\\JGZL\\管件宏观检查验收记录表.frx"; + if (File.Exists(rootPath + initTemplatePath)) + { + PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath))); + } + } + else + { + Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); + return; + } + } + #endregion + + #region 维护 + /// + /// 增加 + /// + /// + /// + protected void btnAdd_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PipeFittingInspectionRecordEdit.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_PipeFittingInspectionRecordMenuId, BLL.Const.BtnModify)) + { + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PipeFittingInspectionRecordEdit.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_PipeFittingInspectionRecordMenuId, BLL.Const.BtnModify)) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; + } + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PipeFittingInspectionRecordEdit.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_PipeFittingInspectionRecordMenuId, 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.PipeFittingInspectionRecordService.DeletePipeFittingInspectionRecordById(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/PipeFittingInspectionRecord.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecord.aspx.designer.cs new file mode 100644 index 0000000..0abd896 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecord.aspx.designer.cs @@ -0,0 +1,206 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.JGZL +{ + + + public partial class PipeFittingInspectionRecord + { + + /// + /// 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/PipeFittingInspectionRecordEdit.aspx b/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecordEdit.aspx new file mode 100644 index 0000000..8ccf91f --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecordEdit.aspx @@ -0,0 +1,98 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PipeFittingInspectionRecordEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.PipeFittingInspectionRecordEdit" %> + + + + + + + 编辑管件宏观检查验收记录表 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecordEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecordEdit.aspx.cs new file mode 100644 index 0000000..3668b72 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecordEdit.aspx.cs @@ -0,0 +1,132 @@ +using BLL; +using System; + +namespace FineUIPro.Web.JGZL +{ + public partial class PipeFittingInspectionRecordEdit : 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.PipeFittingInspectionRecordService.GetPipeFittingInspectionRecordById(this.RecordId); + if (report != null) + { + this.txtContractNo.Text = report.ContractNo; + this.txtName.Text = report.Name; + this.txtArrivalNum.Text = report.ArrivalNum.ToString(); + this.txtArrivalUnit.Text = report.ArrivalUnit; + this.txtMaterialCertificateNumber.Text = report.MaterialCertificateNumber; + this.txtMaterial.Text = report.Material; + this.txtSpecifications.Text = report.Specifications; + this.txtInspectionNum.Text = report.InspectionNum.ToString(); + this.txtODVariation.Text = report.ODVariation; + this.txtIDVariation.Text = report.IDVariation; + this.txtWallVariation.Text = report.WallVariation; + this.txtOtherVariation.Text = report.OtherVariation; + this.txtAppearanceQuality.Text = report.AppearanceQuality; + this.txtResult.Text = report.Result; + 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_PipeFittingInspectionRecordMenuId, Const.BtnSave)) + { + Model.JGZL_PipeFittingInspectionRecord newReport = new Model.JGZL_PipeFittingInspectionRecord(); + newReport.ContractNo = this.txtContractNo.Text.Trim(); + newReport.Name = this.txtName.Text.Trim(); + newReport.ArrivalNum = Funs.GetNewIntOrZero(this.txtArrivalNum.Text.Trim()); + newReport.ArrivalUnit = this.txtArrivalUnit.Text.Trim(); + newReport.MaterialCertificateNumber = this.txtMaterialCertificateNumber.Text.Trim(); + newReport.Material = this.txtMaterial.Text.Trim(); + newReport.Specifications = this.txtSpecifications.Text.Trim(); + newReport.InspectionNum = Funs.GetNewIntOrZero(this.txtInspectionNum.Text.Trim()); + newReport.ODVariation = this.txtODVariation.Text.Trim(); + newReport.IDVariation = this.txtIDVariation.Text.Trim(); + newReport.WallVariation = this.txtWallVariation.Text.Trim(); + newReport.OtherVariation = this.txtOtherVariation.Text.Trim(); + newReport.AppearanceQuality = this.txtAppearanceQuality.Text.Trim(); + newReport.Result = this.txtResult.Text.Trim(); + newReport.Remark = this.txtRemark.Text.Trim(); + + if (!string.IsNullOrEmpty(this.RecordId)) + { + newReport.RecordId = this.RecordId; + BLL.PipeFittingInspectionRecordService.UpdatePipeFittingInspectionRecord(newReport); + } + else + { + newReport.ProjectId = this.ProjectId; + newReport.CompileMan = this.CurrUser.UserId; + newReport.CompileDate = DateTime.Now; + newReport.Reviewer = this.CurrUser.UserId; + newReport.RevieweDate = DateTime.Now; + newReport.RecordId = SQLHelper.GetNewID(typeof(Model.JGZL_PipeFittingInspectionRecord)); + this.RecordId = newReport.RecordId; + BLL.PipeFittingInspectionRecordService.AddPipeFittingInspectionRecord(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/PipeFittingInspectionRecordEdit.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecordEdit.aspx.designer.cs new file mode 100644 index 0000000..4fa7d10 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecordEdit.aspx.designer.cs @@ -0,0 +1,224 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.JGZL +{ + + + public partial class PipeFittingInspectionRecordEdit + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// txtContractNo 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtContractNo; + + /// + /// txtName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtName; + + /// + /// txtArrivalNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtArrivalNum; + + /// + /// txtArrivalUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtArrivalUnit; + + /// + /// txtMaterialCertificateNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtMaterialCertificateNumber; + + /// + /// txtMaterial 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtMaterial; + + /// + /// txtSpecifications 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSpecifications; + + /// + /// txtInspectionNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtInspectionNum; + + /// + /// GroupPanel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel; + + /// + /// Form2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form2; + + /// + /// txtODVariation 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtODVariation; + + /// + /// txtIDVariation 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtIDVariation; + + /// + /// txtWallVariation 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWallVariation; + + /// + /// txtOtherVariation 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtOtherVariation; + + /// + /// txtAppearanceQuality 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtAppearanceQuality; + + /// + /// txtResult 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtResult; + + /// + /// txtRemark 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtRemark; + } +} diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx b/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx index 8fec039..4837b5d 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx +++ b/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx @@ -64,7 +64,7 @@ - + + + + + + + 管道预制施工检查记录 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecord.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecord.aspx.cs new file mode 100644 index 0000000..35b1899 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecord.aspx.cs @@ -0,0 +1,401 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.IO; + +namespace FineUIPro.Web.JGZL +{ + public partial class PipelinePrefabricationConstructionInspectionRecord : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); + + this.drpProjectId.DataTextField = "ProjectCode"; + this.drpProjectId.DataValueField = "ProjectId"; + this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1"); + this.drpProjectId.DataBind(); + Funs.FineUIPleaseSelect(this.drpProjectId); + this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId; + this.InitTreeMenu();//加载树 + this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue; + this.BindGrid(); + + } + } + #endregion + + #region 加载树项目 + /// + /// 加载树 + /// + private void InitTreeMenu() + { + this.tvControlItem.Nodes.Clear(); + TreeNode rootNode = new TreeNode(); + rootNode.Text = "项目"; + rootNode.ToolTip = "项目"; + rootNode.NodeID = "0"; + rootNode.Expanded = true; + this.tvControlItem.Nodes.Add(rootNode); + + List projects = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1"); + if (this.drpProjectId.SelectedValue != BLL.Const._Null) + { + projects = projects.Where(e => e.ProjectId == this.drpProjectId.SelectedValue).ToList(); + } + foreach (var item in projects) + { + TreeNode rootProjectNode = new TreeNode();//定义根节点 + rootProjectNode.Text = item.ProjectCode; + rootProjectNode.NodeID = item.ProjectId; + rootProjectNode.EnableClickEvent = true; + rootProjectNode.Expanded = true; + rootProjectNode.ToolTip = item.ProjectName; + rootProjectNode.CommandName = "项目名称"; + rootNode.Nodes.Add(rootProjectNode); + } + } + #endregion + + #region 点击TreeView + /// + /// 点击TreeView + /// + /// + /// + protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e) + { + if (this.tvControlItem.SelectedNodeID != "0") + { + this.BindGrid(); + } + } + #endregion + + #region 数据绑定 + /// + /// 数据绑定 + /// + private void BindGrid() + { + //string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1"); + string strSql = @"SELECT * from JGZL_PipelinePrefabricationConstructionInspectionRecord where 1=1"; + List listStr = new List(); + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + strSql += " AND ProjectId = @ProjectId"; + listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID)); + } + //else + //{ + // strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 "; + // listStr.Add(new SqlParameter("@ProjectId", projectIds)); + //} + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + // 2.获取当前分页数据 + Grid1.RecordCount = tb.Rows.Count; + //tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 分页排序 + #region 页索引改变事件 + /// + /// 页索引改变事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + #endregion + + #region 排序 + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + BindGrid(); + } + #endregion + + #region 分页选择下拉改变事件 + /// + /// 分页选择下拉改变事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + #endregion + #endregion + + #region 查询 + /// + ///查询 + /// + /// + /// + protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) + { + this.InitTreeMenu(); + this.BindGrid(); + } + + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 打印 + /// + /// 打印 + /// + /// + /// + protected void btnPrint_Click(object sender, EventArgs e) + { + string projectId = this.tvControlItem.SelectedNodeID; + + if (projectId != null) + { + string initTemplatePath = ""; + string rootPath = Server.MapPath("~/"); + BLL.Common.FastReportService.ResetData(); + + string strSql = @"SELECT * from JGZL_PipelinePrefabricationConstructionInspectionRecord where ProjectId = @ProjectId order by DrawingNumber desc"; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", projectId)); + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + DataTable dt = new DataTable(); + dt.TableName = "Data"; + dt.Columns.Add("Num"); + dt.Columns.Add("ConcealedWorks"); + dt.Columns.Add("DrawingNumber"); + dt.Columns.Add("ConcealedContentAndDiagram"); + dt.Columns.Add("InspectionResults"); + dt.Columns.Add("Remark"); + + DataRow[] rows = tb.DefaultView.ToTable().Select(); + int i = 0; + foreach (var row in rows) + { + var newRow = dt.NewRow(); + newRow["Num"] = (i + 1).ToString(); + newRow["ConcealedWorks"] = row["ConcealedWorks"].ToString(); + newRow["DrawingNumber"] = row["DrawingNumber"].ToString(); + newRow["ConcealedContentAndDiagram"] = row["ConcealedContentAndDiagram"].ToString(); + newRow["Remark"] = row["Remark"].ToString(); + dt.Rows.Add(newRow); + i++; + } + BLL.Common.FastReportService.AddFastreportTable(dt); + + Dictionary keyValuePairs = new Dictionary(); + keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); + BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); + + initTemplatePath = "File\\Fastreport\\JGZL\\管道预制施工检查记录.frx"; + if (File.Exists(rootPath + initTemplatePath)) + { + PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath))); + } + } + else + { + Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); + return; + } + } + #endregion + + #region 维护 + /// + /// 增加 + /// + /// + /// + protected void btnAdd_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PipelinePrefabricationConstructionInspectionRecordEdit.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_PipelinePrefabricationConstructionInspectionRecordMenuId, BLL.Const.BtnModify)) + { + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PipelinePrefabricationConstructionInspectionRecordEdit.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_PipelinePrefabricationConstructionInspectionRecordMenuId, BLL.Const.BtnModify)) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; + } + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PipelinePrefabricationConstructionInspectionRecordEdit.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_PipelinePrefabricationConstructionInspectionRecordMenuId, 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.PipelinePrefabricationConstructionInspectionRecordService.DeletePipelinePrefabricationConstructionInspectionRecordById(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/PipelinePrefabricationConstructionInspectionRecord.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecord.aspx.designer.cs new file mode 100644 index 0000000..e29eba1 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecord.aspx.designer.cs @@ -0,0 +1,206 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.JGZL +{ + + + public partial class PipelinePrefabricationConstructionInspectionRecord + { + + /// + /// 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/PipelinePrefabricationConstructionInspectionRecordEdit.aspx b/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecordEdit.aspx new file mode 100644 index 0000000..1e6c8f8 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecordEdit.aspx @@ -0,0 +1,51 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PipelinePrefabricationConstructionInspectionRecordEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.PipelinePrefabricationConstructionInspectionRecordEdit" %> + + + + + + + 编辑管道预制施工检查记录 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecordEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecordEdit.aspx.cs new file mode 100644 index 0000000..bf67555 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecordEdit.aspx.cs @@ -0,0 +1,110 @@ +using BLL; +using System; + +namespace FineUIPro.Web.JGZL +{ + public partial class PipelinePrefabricationConstructionInspectionRecordEdit : 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.PipelinePrefabricationConstructionInspectionRecordService.GetPipelinePrefabricationConstructionInspectionRecordById(this.RecordId); + if (report != null) + { + this.txtDrawingNumber.Text = report.DrawingNumber; + this.txtProfessionalEngineering.Text = report.ProfessionalEngineering; + this.txtInspectionResults.Text = report.InspectionResults; + this.txtRemark.Text = report.Remark; + } + } + } + } + #endregion + + #region 提交按钮 + /// + /// 提交按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_PipelinePrefabricationConstructionInspectionRecordMenuId, Const.BtnSave)) + { + Model.JGZL_PipelinePrefabricationConstructionInspectionRecord newReport = new Model.JGZL_PipelinePrefabricationConstructionInspectionRecord(); + newReport.DrawingNumber = this.txtDrawingNumber.Text.Trim(); + newReport.ProfessionalEngineering = this.txtProfessionalEngineering.Text.Trim(); + newReport.InspectionResults = this.txtInspectionResults.Text.Trim(); + newReport.Remark = this.txtRemark.Text.Trim(); + + if (!string.IsNullOrEmpty(this.RecordId)) + { + newReport.RecordId = this.RecordId; + BLL.PipelinePrefabricationConstructionInspectionRecordService.UpdatePipelinePrefabricationConstructionInspectionRecord(newReport); + } + else + { + newReport.ProjectId = this.ProjectId; + newReport.CompileMan = this.CurrUser.UserId; + newReport.CompileDate = DateTime.Now; + newReport.Reviewer = this.CurrUser.UserId; + newReport.RevieweDate = DateTime.Now; + newReport.RecordId = SQLHelper.GetNewID(typeof(Model.JGZL_PipelinePrefabricationConstructionInspectionRecord)); + this.RecordId = newReport.RecordId; + BLL.PipelinePrefabricationConstructionInspectionRecordService.AddPipelinePrefabricationConstructionInspectionRecord(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/PipelinePrefabricationConstructionInspectionRecordEdit.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecordEdit.aspx.designer.cs new file mode 100644 index 0000000..346d7d9 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecordEdit.aspx.designer.cs @@ -0,0 +1,107 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.JGZL +{ + + + public partial class PipelinePrefabricationConstructionInspectionRecordEdit + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// txtDrawingNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDrawingNumber; + + /// + /// txtProfessionalEngineering 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtProfessionalEngineering; + + /// + /// txtInspectionResults 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtInspectionResults; + + /// + /// txtRemark 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtRemark; + } +} diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecord.aspx b/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecord.aspx new file mode 100644 index 0000000..46b0c7b --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecord.aspx @@ -0,0 +1,127 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProcessHandoverRecord.aspx.cs" Inherits="FineUIPro.Web.JGZL.ProcessHandoverRecord" %> + + + + + + + 工序交接记录 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecord.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecord.aspx.cs new file mode 100644 index 0000000..f71a649 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecord.aspx.cs @@ -0,0 +1,401 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.IO; + +namespace FineUIPro.Web.JGZL +{ + public partial class ProcessHandoverRecord : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); + + this.drpProjectId.DataTextField = "ProjectCode"; + this.drpProjectId.DataValueField = "ProjectId"; + this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1"); + this.drpProjectId.DataBind(); + Funs.FineUIPleaseSelect(this.drpProjectId); + + this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId; + this.InitTreeMenu();//加载树 + this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue; + this.BindGrid(); + } + } + #endregion + + #region 加载树项目 + /// + /// 加载树 + /// + private void InitTreeMenu() + { + this.tvControlItem.Nodes.Clear(); + TreeNode rootNode = new TreeNode(); + rootNode.Text = "项目"; + rootNode.ToolTip = "项目"; + rootNode.NodeID = "0"; + rootNode.Expanded = true; + this.tvControlItem.Nodes.Add(rootNode); + + List projects = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1"); + if (this.drpProjectId.SelectedValue != BLL.Const._Null) + { + projects = projects.Where(e => e.ProjectId == this.drpProjectId.SelectedValue).ToList(); + } + foreach (var item in projects) + { + TreeNode rootProjectNode = new TreeNode();//定义根节点 + rootProjectNode.Text = item.ProjectCode; + rootProjectNode.NodeID = item.ProjectId; + rootProjectNode.EnableClickEvent = true; + rootProjectNode.Expanded = true; + rootProjectNode.ToolTip = item.ProjectName; + rootProjectNode.CommandName = "项目名称"; + rootNode.Nodes.Add(rootProjectNode); + } + } + #endregion + + #region 点击TreeView + /// + /// 点击TreeView + /// + /// + /// + protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e) + { + if (this.tvControlItem.SelectedNodeID != "0") + { + this.BindGrid(); + } + } + #endregion + + #region 数据绑定 + /// + /// 数据绑定 + /// + private void BindGrid() + { + //string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1"); + string strSql = @"SELECT * from JGZL_ProcessHandoverRecord where 1=1"; + List listStr = new List(); + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + strSql += " AND ProjectId = @ProjectId"; + listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID)); + } + //else + //{ + // strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 "; + // listStr.Add(new SqlParameter("@ProjectId", projectIds)); + //} + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + // 2.获取当前分页数据 + Grid1.RecordCount = tb.Rows.Count; + //tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 分页排序 + #region 页索引改变事件 + /// + /// 页索引改变事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + #endregion + + #region 排序 + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + BindGrid(); + } + #endregion + + #region 分页选择下拉改变事件 + /// + /// 分页选择下拉改变事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + #endregion + #endregion + + #region 查询 + /// + ///查询 + /// + /// + /// + protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) + { + this.InitTreeMenu(); + this.BindGrid(); + } + + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 打印 + /// + /// 打印 + /// + /// + /// + protected void btnPrint_Click(object sender, EventArgs e) + { + string projectId = this.tvControlItem.SelectedNodeID; + + if (projectId != null) + { + string initTemplatePath = ""; + string rootPath = Server.MapPath("~/"); + BLL.Common.FastReportService.ResetData(); + + string strSql = @"SELECT * from JGZL_ProcessHandoverRecord where ProjectId = @ProjectId order by DrawingNumber desc"; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", projectId)); + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + DataTable dt = new DataTable(); + dt.TableName = "Data"; + dt.Columns.Add("Num"); + dt.Columns.Add("ConcealedWorks"); + dt.Columns.Add("DrawingNumber"); + dt.Columns.Add("ConcealedContentAndDiagram"); + dt.Columns.Add("InspectionResults"); + dt.Columns.Add("Remark"); + + DataRow[] rows = tb.DefaultView.ToTable().Select(); + int i = 0; + foreach (var row in rows) + { + var newRow = dt.NewRow(); + newRow["Num"] = (i + 1).ToString(); + newRow["ConcealedWorks"] = row["ConcealedWorks"].ToString(); + newRow["DrawingNumber"] = row["DrawingNumber"].ToString(); + newRow["ConcealedContentAndDiagram"] = row["ConcealedContentAndDiagram"].ToString(); + newRow["Remark"] = row["Remark"].ToString(); + dt.Rows.Add(newRow); + i++; + } + BLL.Common.FastReportService.AddFastreportTable(dt); + + Dictionary keyValuePairs = new Dictionary(); + keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); + BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); + + initTemplatePath = "File\\Fastreport\\JGZL\\工序交接记录.frx"; + if (File.Exists(rootPath + initTemplatePath)) + { + PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath))); + } + } + else + { + Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); + return; + } + } + #endregion + + #region 维护 + /// + /// 增加 + /// + /// + /// + protected void btnAdd_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ProcessHandoverRecordEdit.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_ProcessHandoverRecordMenuId, BLL.Const.BtnModify)) + { + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ProcessHandoverRecordEdit.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_ProcessHandoverRecordMenuId, BLL.Const.BtnModify)) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; + } + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ProcessHandoverRecordEdit.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_ProcessHandoverRecordMenuId, 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.ProcessHandoverRecordService.DeleteProcessHandoverRecordById(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/ProcessHandoverRecord.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecord.aspx.designer.cs new file mode 100644 index 0000000..1ce3d94 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecord.aspx.designer.cs @@ -0,0 +1,206 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.JGZL +{ + + + public partial class ProcessHandoverRecord + { + + /// + /// 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/ProcessHandoverRecordEdit.aspx b/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecordEdit.aspx new file mode 100644 index 0000000..7be64df --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecordEdit.aspx @@ -0,0 +1,66 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProcessHandoverRecordEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.ProcessHandoverRecordEdit" %> + + + + + + + 编辑工序交接记录 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecordEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecordEdit.aspx.cs new file mode 100644 index 0000000..bb642fd --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecordEdit.aspx.cs @@ -0,0 +1,116 @@ +using BLL; +using System; + +namespace FineUIPro.Web.JGZL +{ + public partial class ProcessHandoverRecordEdit : 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.ProcessHandoverRecordService.GetProcessHandoverRecordById(this.RecordId); + if (report != null) + { + this.txtExecutionStandard.Text = report.ExecutionStandard; + this.txtOrganizationalUnit.Text = report.OrganizationalUnit; + this.txtHandoverUnit.Text = report.HandoverUnit; + this.txtReceivingUnit.Text = report.ReceivingUnit; + this.txtInspectionResults.Text = report.InspectionResults; + this.txtReceivingUnitOpinions.Text = report.ReceivingUnitOpinions; + 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_ProcessHandoverRecordMenuId, Const.BtnSave)) + { + Model.JGZL_ProcessHandoverRecord newReport = new Model.JGZL_ProcessHandoverRecord(); + newReport.ExecutionStandard = this.txtExecutionStandard.Text.Trim(); + newReport.OrganizationalUnit = this.txtOrganizationalUnit.Text.Trim(); + newReport.HandoverUnit = this.txtHandoverUnit.Text.Trim(); + newReport.ReceivingUnit = this.txtReceivingUnit.Text.Trim(); + newReport.InspectionResults = this.txtInspectionResults.Text.Trim(); + newReport.ReceivingUnitOpinions = this.txtReceivingUnitOpinions.Text.Trim(); + newReport.Remark = this.txtRemark.Text.Trim(); + + if (!string.IsNullOrEmpty(this.RecordId)) + { + newReport.RecordId = this.RecordId; + BLL.ProcessHandoverRecordService.UpdateProcessHandoverRecord(newReport); + } + else + { + newReport.ProjectId = this.ProjectId; + newReport.CompileMan = this.CurrUser.UserId; + newReport.CompileDate = DateTime.Now; + newReport.Reviewer = this.CurrUser.UserId; + newReport.RevieweDate = DateTime.Now; + newReport.RecordId = SQLHelper.GetNewID(typeof(Model.JGZL_ProcessHandoverRecord)); + this.RecordId = newReport.RecordId; + BLL.ProcessHandoverRecordService.AddProcessHandoverRecord(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/ProcessHandoverRecordEdit.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecordEdit.aspx.designer.cs new file mode 100644 index 0000000..64383aa --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecordEdit.aspx.designer.cs @@ -0,0 +1,134 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.JGZL +{ + + + public partial class ProcessHandoverRecordEdit + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// txtExecutionStandard 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtExecutionStandard; + + /// + /// txtOrganizationalUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtOrganizationalUnit; + + /// + /// txtHandoverUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtHandoverUnit; + + /// + /// txtReceivingUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtReceivingUnit; + + /// + /// txtInspectionResults 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtInspectionResults; + + /// + /// txtReceivingUnitOpinions 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtReceivingUnitOpinions; + + /// + /// txtRemark 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtRemark; + } +} diff --git a/HJGL_DS/Model/Model.cs b/HJGL_DS/Model/Model.cs index 6b46bab..50a43fe 100644 --- a/HJGL_DS/Model/Model.cs +++ b/HJGL_DS/Model/Model.cs @@ -413,9 +413,18 @@ namespace Model partial void InsertJGZL_NDTPerson(JGZL_NDTPerson instance); partial void UpdateJGZL_NDTPerson(JGZL_NDTPerson instance); partial void DeleteJGZL_NDTPerson(JGZL_NDTPerson instance); + partial void InsertJGZL_PipeFittingInspectionRecord(JGZL_PipeFittingInspectionRecord instance); + partial void UpdateJGZL_PipeFittingInspectionRecord(JGZL_PipeFittingInspectionRecord instance); + partial void DeleteJGZL_PipeFittingInspectionRecord(JGZL_PipeFittingInspectionRecord instance); partial void InsertJGZL_PipelineInstallationInspectionRecord(JGZL_PipelineInstallationInspectionRecord instance); partial void UpdateJGZL_PipelineInstallationInspectionRecord(JGZL_PipelineInstallationInspectionRecord instance); partial void DeleteJGZL_PipelineInstallationInspectionRecord(JGZL_PipelineInstallationInspectionRecord instance); + partial void InsertJGZL_PipelinePrefabricationConstructionInspectionRecord(JGZL_PipelinePrefabricationConstructionInspectionRecord instance); + partial void UpdateJGZL_PipelinePrefabricationConstructionInspectionRecord(JGZL_PipelinePrefabricationConstructionInspectionRecord instance); + partial void DeleteJGZL_PipelinePrefabricationConstructionInspectionRecord(JGZL_PipelinePrefabricationConstructionInspectionRecord instance); + partial void InsertJGZL_ProcessHandoverRecord(JGZL_ProcessHandoverRecord instance); + partial void UpdateJGZL_ProcessHandoverRecord(JGZL_ProcessHandoverRecord instance); + partial void DeleteJGZL_ProcessHandoverRecord(JGZL_ProcessHandoverRecord instance); partial void InsertJGZL_QualityControlPointInspection(JGZL_QualityControlPointInspection instance); partial void UpdateJGZL_QualityControlPointInspection(JGZL_QualityControlPointInspection instance); partial void DeleteJGZL_QualityControlPointInspection(JGZL_QualityControlPointInspection instance); @@ -1902,6 +1911,14 @@ namespace Model } } + public System.Data.Linq.Table JGZL_PipeFittingInspectionRecord + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table JGZL_PipelineInstallationInspectionRecord { get @@ -1910,6 +1927,22 @@ namespace Model } } + public System.Data.Linq.Table JGZL_PipelinePrefabricationConstructionInspectionRecord + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table JGZL_ProcessHandoverRecord + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table JGZL_QualityControlPointInspection { get @@ -4573,8 +4606,14 @@ namespace Model private EntitySet _JGZL_NDTPerson; + private EntitySet _JGZL_PipeFittingInspectionRecord; + private EntitySet _JGZL_PipelineInstallationInspectionRecord; + private EntitySet _JGZL_PipelinePrefabricationConstructionInspectionRecord; + + private EntitySet _JGZL_ProcessHandoverRecord; + private EntitySet _JGZL_QualityControlPointInspection; private EntitySet _JGZL_SpecialEquipmentMaintenance; @@ -4722,7 +4761,10 @@ namespace Model this._JGZL_MaterialQualityCertificateDoc = new EntitySet(new Action(this.attach_JGZL_MaterialQualityCertificateDoc), new Action(this.detach_JGZL_MaterialQualityCertificateDoc)); this._JGZL_MeasuringInstruments = new EntitySet(new Action(this.attach_JGZL_MeasuringInstruments), new Action(this.detach_JGZL_MeasuringInstruments)); this._JGZL_NDTPerson = new EntitySet(new Action(this.attach_JGZL_NDTPerson), new Action(this.detach_JGZL_NDTPerson)); + this._JGZL_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_ProcessHandoverRecord = new EntitySet(new Action(this.attach_JGZL_ProcessHandoverRecord), new Action(this.detach_JGZL_ProcessHandoverRecord)); this._JGZL_QualityControlPointInspection = new EntitySet(new Action(this.attach_JGZL_QualityControlPointInspection), new Action(this.detach_JGZL_QualityControlPointInspection)); this._JGZL_SpecialEquipmentMaintenance = new EntitySet(new Action(this.attach_JGZL_SpecialEquipmentMaintenance), new Action(this.detach_JGZL_SpecialEquipmentMaintenance)); this._JGZL_TeamWeldingInspection = new EntitySet(new Action(this.attach_JGZL_TeamWeldingInspection), new Action(this.detach_JGZL_TeamWeldingInspection)); @@ -5964,6 +6006,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_PipeFittingInspectionRecord_Base_Project", Storage="_JGZL_PipeFittingInspectionRecord", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet JGZL_PipeFittingInspectionRecord + { + get + { + return this._JGZL_PipeFittingInspectionRecord; + } + set + { + this._JGZL_PipeFittingInspectionRecord.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_PipelineInstallationInspectionRecord_Base_Project", Storage="_JGZL_PipelineInstallationInspectionRecord", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] public EntitySet JGZL_PipelineInstallationInspectionRecord { @@ -5977,6 +6032,32 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_PipelinePrefabricationConstructionInspectionRecord_Base_Project", Storage="_JGZL_PipelinePrefabricationConstructionInspectionRecord", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet JGZL_PipelinePrefabricationConstructionInspectionRecord + { + get + { + return this._JGZL_PipelinePrefabricationConstructionInspectionRecord; + } + set + { + this._JGZL_PipelinePrefabricationConstructionInspectionRecord.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 + { + get + { + return this._JGZL_ProcessHandoverRecord; + } + set + { + this._JGZL_ProcessHandoverRecord.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_QualityControlPointInspection_Base_Project", Storage="_JGZL_QualityControlPointInspection", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] public EntitySet JGZL_QualityControlPointInspection { @@ -6856,6 +6937,18 @@ namespace Model entity.Base_Project = null; } + private void attach_JGZL_PipeFittingInspectionRecord(JGZL_PipeFittingInspectionRecord entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_JGZL_PipeFittingInspectionRecord(JGZL_PipeFittingInspectionRecord entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + private void attach_JGZL_PipelineInstallationInspectionRecord(JGZL_PipelineInstallationInspectionRecord entity) { this.SendPropertyChanging(); @@ -6868,6 +6961,30 @@ namespace Model entity.Base_Project = null; } + private void attach_JGZL_PipelinePrefabricationConstructionInspectionRecord(JGZL_PipelinePrefabricationConstructionInspectionRecord entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_JGZL_PipelinePrefabricationConstructionInspectionRecord(JGZL_PipelinePrefabricationConstructionInspectionRecord entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + + private void attach_JGZL_ProcessHandoverRecord(JGZL_ProcessHandoverRecord entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_JGZL_ProcessHandoverRecord(JGZL_ProcessHandoverRecord entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + private void attach_JGZL_QualityControlPointInspection(JGZL_QualityControlPointInspection entity) { this.SendPropertyChanging(); @@ -86401,6 +86518,630 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_PipeFittingInspectionRecord")] + public partial class JGZL_PipeFittingInspectionRecord : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _RecordId; + + private string _ProjectId; + + private string _ContractNo; + + private string _Name; + + private System.Nullable _ArrivalNum; + + private string _ArrivalUnit; + + private string _MaterialCertificateNumber; + + private string _Material; + + private string _Specifications; + + private System.Nullable _InspectionNum; + + private string _ODVariation; + + private string _IDVariation; + + private string _WallVariation; + + private string _OtherVariation; + + private string _AppearanceQuality; + + private string _Result; + + 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 OnContractNoChanging(string value); + partial void OnContractNoChanged(); + partial void OnNameChanging(string value); + partial void OnNameChanged(); + partial void OnArrivalNumChanging(System.Nullable value); + partial void OnArrivalNumChanged(); + partial void OnArrivalUnitChanging(string value); + partial void OnArrivalUnitChanged(); + partial void OnMaterialCertificateNumberChanging(string value); + partial void OnMaterialCertificateNumberChanged(); + partial void OnMaterialChanging(string value); + partial void OnMaterialChanged(); + partial void OnSpecificationsChanging(string value); + partial void OnSpecificationsChanged(); + partial void OnInspectionNumChanging(System.Nullable value); + partial void OnInspectionNumChanged(); + partial void OnODVariationChanging(string value); + partial void OnODVariationChanged(); + partial void OnIDVariationChanging(string value); + partial void OnIDVariationChanged(); + partial void OnWallVariationChanging(string value); + partial void OnWallVariationChanged(); + partial void OnOtherVariationChanging(string value); + partial void OnOtherVariationChanged(); + partial void OnAppearanceQualityChanging(string value); + partial void OnAppearanceQualityChanged(); + partial void OnResultChanging(string value); + partial void OnResultChanged(); + 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_PipeFittingInspectionRecord() + { + 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="_ContractNo", DbType="NVarChar(50)")] + public string ContractNo + { + get + { + return this._ContractNo; + } + set + { + if ((this._ContractNo != value)) + { + this.OnContractNoChanging(value); + this.SendPropertyChanging(); + this._ContractNo = value; + this.SendPropertyChanged("ContractNo"); + this.OnContractNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(50)")] + public string Name + { + get + { + return this._Name; + } + set + { + if ((this._Name != value)) + { + this.OnNameChanging(value); + this.SendPropertyChanging(); + this._Name = value; + this.SendPropertyChanged("Name"); + this.OnNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ArrivalNum", DbType="Int")] + public System.Nullable ArrivalNum + { + get + { + return this._ArrivalNum; + } + set + { + if ((this._ArrivalNum != value)) + { + this.OnArrivalNumChanging(value); + this.SendPropertyChanging(); + this._ArrivalNum = value; + this.SendPropertyChanged("ArrivalNum"); + this.OnArrivalNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ArrivalUnit", DbType="NVarChar(50)")] + public string ArrivalUnit + { + get + { + return this._ArrivalUnit; + } + set + { + if ((this._ArrivalUnit != value)) + { + this.OnArrivalUnitChanging(value); + this.SendPropertyChanging(); + this._ArrivalUnit = value; + this.SendPropertyChanged("ArrivalUnit"); + this.OnArrivalUnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCertificateNumber", DbType="NVarChar(50)")] + public string MaterialCertificateNumber + { + get + { + return this._MaterialCertificateNumber; + } + set + { + if ((this._MaterialCertificateNumber != value)) + { + this.OnMaterialCertificateNumberChanging(value); + this.SendPropertyChanging(); + this._MaterialCertificateNumber = value; + this.SendPropertyChanged("MaterialCertificateNumber"); + this.OnMaterialCertificateNumberChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Material", DbType="NVarChar(50)")] + public string Material + { + get + { + return this._Material; + } + set + { + if ((this._Material != value)) + { + this.OnMaterialChanging(value); + this.SendPropertyChanging(); + this._Material = value; + this.SendPropertyChanged("Material"); + this.OnMaterialChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specifications", DbType="NVarChar(50)")] + public string Specifications + { + get + { + return this._Specifications; + } + set + { + if ((this._Specifications != value)) + { + this.OnSpecificationsChanging(value); + this.SendPropertyChanging(); + this._Specifications = value; + this.SendPropertyChanged("Specifications"); + this.OnSpecificationsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionNum", DbType="Int")] + public System.Nullable InspectionNum + { + get + { + return this._InspectionNum; + } + set + { + if ((this._InspectionNum != value)) + { + this.OnInspectionNumChanging(value); + this.SendPropertyChanging(); + this._InspectionNum = value; + this.SendPropertyChanged("InspectionNum"); + this.OnInspectionNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ODVariation", DbType="NVarChar(50)")] + public string ODVariation + { + get + { + return this._ODVariation; + } + set + { + if ((this._ODVariation != value)) + { + this.OnODVariationChanging(value); + this.SendPropertyChanging(); + this._ODVariation = value; + this.SendPropertyChanged("ODVariation"); + this.OnODVariationChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IDVariation", DbType="NVarChar(50)")] + public string IDVariation + { + get + { + return this._IDVariation; + } + set + { + if ((this._IDVariation != value)) + { + this.OnIDVariationChanging(value); + this.SendPropertyChanging(); + this._IDVariation = value; + this.SendPropertyChanged("IDVariation"); + this.OnIDVariationChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WallVariation", DbType="NVarChar(50)")] + public string WallVariation + { + get + { + return this._WallVariation; + } + set + { + if ((this._WallVariation != value)) + { + this.OnWallVariationChanging(value); + this.SendPropertyChanging(); + this._WallVariation = value; + this.SendPropertyChanged("WallVariation"); + this.OnWallVariationChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OtherVariation", DbType="NVarChar(50)")] + public string OtherVariation + { + get + { + return this._OtherVariation; + } + set + { + if ((this._OtherVariation != value)) + { + this.OnOtherVariationChanging(value); + this.SendPropertyChanging(); + this._OtherVariation = value; + this.SendPropertyChanged("OtherVariation"); + this.OnOtherVariationChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AppearanceQuality", DbType="NVarChar(50)")] + public string AppearanceQuality + { + get + { + return this._AppearanceQuality; + } + set + { + if ((this._AppearanceQuality != value)) + { + this.OnAppearanceQualityChanging(value); + this.SendPropertyChanging(); + this._AppearanceQuality = value; + this.SendPropertyChanged("AppearanceQuality"); + this.OnAppearanceQualityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Result", DbType="NVarChar(2000)")] + public string Result + { + get + { + return this._Result; + } + set + { + if ((this._Result != value)) + { + this.OnResultChanging(value); + this.SendPropertyChanging(); + this._Result = value; + this.SendPropertyChanged("Result"); + this.OnResultChanged(); + } + } + } + + [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_PipeFittingInspectionRecord_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_PipeFittingInspectionRecord.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.JGZL_PipeFittingInspectionRecord.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_PipeFittingInspectionRecord_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_PipeFittingInspectionRecord.Remove(this); + } + this._Sys_User.Entity = value; + if ((value != null)) + { + value.JGZL_PipeFittingInspectionRecord.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_PipelineInstallationInspectionRecord")] public partial class JGZL_PipelineInstallationInspectionRecord : INotifyPropertyChanging, INotifyPropertyChanged { @@ -86785,6 +87526,798 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_PipelinePrefabricationConstructionInspectionRecord")] + public partial class JGZL_PipelinePrefabricationConstructionInspectionRecord : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _RecordId; + + private string _ProjectId; + + private string _ProfessionalEngineering; + + private string _DrawingNumber; + + private string _InspectionResults; + + private string _Remark; + + private string _CompileMan; + + private System.Nullable _CompileDate; + + private string _Reviewer; + + private System.Nullable _RevieweDate; + + private EntityRef _Base_Project; + + private EntityRef _Sys_User; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnRecordIdChanging(string value); + partial void OnRecordIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnProfessionalEngineeringChanging(string value); + partial void OnProfessionalEngineeringChanged(); + partial void OnDrawingNumberChanging(string value); + partial void OnDrawingNumberChanged(); + partial void OnInspectionResultsChanging(string value); + partial void OnInspectionResultsChanged(); + partial void OnRemarkChanging(string value); + partial void OnRemarkChanged(); + partial void OnCompileManChanging(string value); + partial void OnCompileManChanged(); + partial void OnCompileDateChanging(System.Nullable value); + partial void OnCompileDateChanged(); + partial void OnReviewerChanging(string value); + partial void OnReviewerChanged(); + partial void OnRevieweDateChanging(System.Nullable value); + partial void OnRevieweDateChanged(); + #endregion + + public JGZL_PipelinePrefabricationConstructionInspectionRecord() + { + this._Base_Project = default(EntityRef); + this._Sys_User = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string RecordId + { + get + { + return this._RecordId; + } + set + { + if ((this._RecordId != value)) + { + this.OnRecordIdChanging(value); + this.SendPropertyChanging(); + this._RecordId = value; + this.SendPropertyChanged("RecordId"); + this.OnRecordIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + if (this._Base_Project.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProfessionalEngineering", DbType="NVarChar(50)")] + public string ProfessionalEngineering + { + get + { + return this._ProfessionalEngineering; + } + set + { + if ((this._ProfessionalEngineering != value)) + { + this.OnProfessionalEngineeringChanging(value); + this.SendPropertyChanging(); + this._ProfessionalEngineering = value; + this.SendPropertyChanged("ProfessionalEngineering"); + this.OnProfessionalEngineeringChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DrawingNumber", DbType="NVarChar(50)")] + public string DrawingNumber + { + get + { + return this._DrawingNumber; + } + set + { + if ((this._DrawingNumber != value)) + { + this.OnDrawingNumberChanging(value); + this.SendPropertyChanging(); + this._DrawingNumber = value; + this.SendPropertyChanged("DrawingNumber"); + this.OnDrawingNumberChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionResults", DbType="NVarChar(2000)")] + public string InspectionResults + { + get + { + return this._InspectionResults; + } + set + { + if ((this._InspectionResults != value)) + { + this.OnInspectionResultsChanging(value); + this.SendPropertyChanging(); + this._InspectionResults = value; + this.SendPropertyChanged("InspectionResults"); + this.OnInspectionResultsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(500)")] + public string Remark + { + get + { + return this._Remark; + } + set + { + if ((this._Remark != value)) + { + this.OnRemarkChanging(value); + this.SendPropertyChanging(); + this._Remark = value; + this.SendPropertyChanged("Remark"); + this.OnRemarkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")] + public string CompileMan + { + get + { + return this._CompileMan; + } + set + { + if ((this._CompileMan != value)) + { + if (this._Sys_User.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnCompileManChanging(value); + this.SendPropertyChanging(); + this._CompileMan = value; + this.SendPropertyChanged("CompileMan"); + this.OnCompileManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")] + public System.Nullable CompileDate + { + get + { + return this._CompileDate; + } + set + { + if ((this._CompileDate != value)) + { + this.OnCompileDateChanging(value); + this.SendPropertyChanging(); + this._CompileDate = value; + this.SendPropertyChanged("CompileDate"); + this.OnCompileDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Reviewer", DbType="NVarChar(50)")] + public string Reviewer + { + get + { + return this._Reviewer; + } + set + { + if ((this._Reviewer != value)) + { + this.OnReviewerChanging(value); + this.SendPropertyChanging(); + this._Reviewer = value; + this.SendPropertyChanged("Reviewer"); + this.OnReviewerChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RevieweDate", DbType="DateTime")] + public System.Nullable RevieweDate + { + get + { + return this._RevieweDate; + } + set + { + if ((this._RevieweDate != value)) + { + this.OnRevieweDateChanging(value); + this.SendPropertyChanging(); + this._RevieweDate = value; + this.SendPropertyChanged("RevieweDate"); + this.OnRevieweDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_PipelinePrefabricationConstructionInspectionRecord_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_PipelinePrefabricationConstructionInspectionRecord.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.JGZL_PipelinePrefabricationConstructionInspectionRecord.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_PipelinePrefabricationConstructionInspectionRecord_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_PipelinePrefabricationConstructionInspectionRecord.Remove(this); + } + this._Sys_User.Entity = value; + if ((value != null)) + { + value.JGZL_PipelinePrefabricationConstructionInspectionRecord.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_ProcessHandoverRecord")] + public partial class JGZL_ProcessHandoverRecord : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _RecordId; + + private string _ProjectId; + + private string _ExecutionStandard; + + private string _OrganizationalUnit; + + private string _HandoverUnit; + + private string _ReceivingUnit; + + private string _InspectionResults; + + private string _ReceivingUnitOpinions; + + 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 OnExecutionStandardChanging(string value); + partial void OnExecutionStandardChanged(); + partial void OnOrganizationalUnitChanging(string value); + partial void OnOrganizationalUnitChanged(); + partial void OnHandoverUnitChanging(string value); + partial void OnHandoverUnitChanged(); + partial void OnReceivingUnitChanging(string value); + partial void OnReceivingUnitChanged(); + partial void OnInspectionResultsChanging(string value); + partial void OnInspectionResultsChanged(); + partial void OnReceivingUnitOpinionsChanging(string value); + partial void OnReceivingUnitOpinionsChanged(); + 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_ProcessHandoverRecord() + { + 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="_ExecutionStandard", DbType="NVarChar(50)")] + public string ExecutionStandard + { + get + { + return this._ExecutionStandard; + } + set + { + if ((this._ExecutionStandard != value)) + { + this.OnExecutionStandardChanging(value); + this.SendPropertyChanging(); + this._ExecutionStandard = value; + this.SendPropertyChanged("ExecutionStandard"); + this.OnExecutionStandardChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OrganizationalUnit", DbType="NVarChar(50)")] + public string OrganizationalUnit + { + get + { + return this._OrganizationalUnit; + } + set + { + if ((this._OrganizationalUnit != value)) + { + this.OnOrganizationalUnitChanging(value); + this.SendPropertyChanging(); + this._OrganizationalUnit = value; + this.SendPropertyChanged("OrganizationalUnit"); + this.OnOrganizationalUnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandoverUnit", DbType="NVarChar(50)")] + public string HandoverUnit + { + get + { + return this._HandoverUnit; + } + set + { + if ((this._HandoverUnit != value)) + { + this.OnHandoverUnitChanging(value); + this.SendPropertyChanging(); + this._HandoverUnit = value; + this.SendPropertyChanged("HandoverUnit"); + this.OnHandoverUnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReceivingUnit", DbType="NVarChar(50)")] + public string ReceivingUnit + { + get + { + return this._ReceivingUnit; + } + set + { + if ((this._ReceivingUnit != value)) + { + this.OnReceivingUnitChanging(value); + this.SendPropertyChanging(); + this._ReceivingUnit = value; + this.SendPropertyChanged("ReceivingUnit"); + this.OnReceivingUnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionResults", DbType="NVarChar(2000)")] + public string InspectionResults + { + get + { + return this._InspectionResults; + } + set + { + if ((this._InspectionResults != value)) + { + this.OnInspectionResultsChanging(value); + this.SendPropertyChanging(); + this._InspectionResults = value; + this.SendPropertyChanged("InspectionResults"); + this.OnInspectionResultsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReceivingUnitOpinions", DbType="NVarChar(2000)")] + public string ReceivingUnitOpinions + { + get + { + return this._ReceivingUnitOpinions; + } + set + { + if ((this._ReceivingUnitOpinions != value)) + { + this.OnReceivingUnitOpinionsChanging(value); + this.SendPropertyChanging(); + this._ReceivingUnitOpinions = value; + this.SendPropertyChanged("ReceivingUnitOpinions"); + this.OnReceivingUnitOpinionsChanged(); + } + } + } + + [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_ProcessHandoverRecord_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_ProcessHandoverRecord.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.JGZL_ProcessHandoverRecord.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_ProcessHandoverRecord_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_ProcessHandoverRecord.Remove(this); + } + this._Sys_User.Entity = value; + if ((value != null)) + { + value.JGZL_ProcessHandoverRecord.Add(this); + this._CompileMan = value.UserId; + } + else + { + this._CompileMan = default(string); + } + this.SendPropertyChanged("Sys_User"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_QualityControlPointInspection")] public partial class JGZL_QualityControlPointInspection : INotifyPropertyChanging, INotifyPropertyChanged { @@ -111367,8 +112900,14 @@ namespace Model private EntitySet _JGZL_NDTPerson; + private EntitySet _JGZL_PipeFittingInspectionRecord; + private EntitySet _JGZL_PipelineInstallationInspectionRecord; + private EntitySet _JGZL_PipelinePrefabricationConstructionInspectionRecord; + + private EntitySet _JGZL_ProcessHandoverRecord; + private EntitySet _JGZL_QualityControlPointInspection; private EntitySet _JGZL_SpecialEquipmentMaintenance; @@ -111473,7 +113012,10 @@ namespace Model this._JGZL_MaterialQualityCertificateDoc = new EntitySet(new Action(this.attach_JGZL_MaterialQualityCertificateDoc), new Action(this.detach_JGZL_MaterialQualityCertificateDoc)); this._JGZL_MeasuringInstruments = new EntitySet(new Action(this.attach_JGZL_MeasuringInstruments), new Action(this.detach_JGZL_MeasuringInstruments)); this._JGZL_NDTPerson = new EntitySet(new Action(this.attach_JGZL_NDTPerson), new Action(this.detach_JGZL_NDTPerson)); + this._JGZL_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_ProcessHandoverRecord = new EntitySet(new Action(this.attach_JGZL_ProcessHandoverRecord), new Action(this.detach_JGZL_ProcessHandoverRecord)); this._JGZL_QualityControlPointInspection = new EntitySet(new Action(this.attach_JGZL_QualityControlPointInspection), new Action(this.detach_JGZL_QualityControlPointInspection)); this._JGZL_SpecialEquipmentMaintenance = new EntitySet(new Action(this.attach_JGZL_SpecialEquipmentMaintenance), new Action(this.detach_JGZL_SpecialEquipmentMaintenance)); this._JGZL_TeamWeldingInspection = new EntitySet(new Action(this.attach_JGZL_TeamWeldingInspection), new Action(this.detach_JGZL_TeamWeldingInspection)); @@ -112286,6 +113828,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_PipeFittingInspectionRecord_Sys_User", Storage="_JGZL_PipeFittingInspectionRecord", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")] + public EntitySet JGZL_PipeFittingInspectionRecord + { + get + { + return this._JGZL_PipeFittingInspectionRecord; + } + set + { + this._JGZL_PipeFittingInspectionRecord.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_PipelineInstallationInspectionRecord_Sys_User", Storage="_JGZL_PipelineInstallationInspectionRecord", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")] public EntitySet JGZL_PipelineInstallationInspectionRecord { @@ -112299,6 +113854,32 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_PipelinePrefabricationConstructionInspectionRecord_Sys_User", Storage="_JGZL_PipelinePrefabricationConstructionInspectionRecord", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")] + public EntitySet JGZL_PipelinePrefabricationConstructionInspectionRecord + { + get + { + return this._JGZL_PipelinePrefabricationConstructionInspectionRecord; + } + set + { + this._JGZL_PipelinePrefabricationConstructionInspectionRecord.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 + { + get + { + return this._JGZL_ProcessHandoverRecord; + } + set + { + this._JGZL_ProcessHandoverRecord.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_QualityControlPointInspection_Sys_User", Storage="_JGZL_QualityControlPointInspection", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")] public EntitySet JGZL_QualityControlPointInspection { @@ -112887,6 +114468,18 @@ namespace Model entity.Sys_User = null; } + private void attach_JGZL_PipeFittingInspectionRecord(JGZL_PipeFittingInspectionRecord entity) + { + this.SendPropertyChanging(); + entity.Sys_User = this; + } + + private void detach_JGZL_PipeFittingInspectionRecord(JGZL_PipeFittingInspectionRecord entity) + { + this.SendPropertyChanging(); + entity.Sys_User = null; + } + private void attach_JGZL_PipelineInstallationInspectionRecord(JGZL_PipelineInstallationInspectionRecord entity) { this.SendPropertyChanging(); @@ -112899,6 +114492,30 @@ namespace Model entity.Sys_User = null; } + private void attach_JGZL_PipelinePrefabricationConstructionInspectionRecord(JGZL_PipelinePrefabricationConstructionInspectionRecord entity) + { + this.SendPropertyChanging(); + entity.Sys_User = this; + } + + private void detach_JGZL_PipelinePrefabricationConstructionInspectionRecord(JGZL_PipelinePrefabricationConstructionInspectionRecord entity) + { + this.SendPropertyChanging(); + entity.Sys_User = null; + } + + private void attach_JGZL_ProcessHandoverRecord(JGZL_ProcessHandoverRecord entity) + { + this.SendPropertyChanging(); + entity.Sys_User = this; + } + + private void detach_JGZL_ProcessHandoverRecord(JGZL_ProcessHandoverRecord entity) + { + this.SendPropertyChanging(); + entity.Sys_User = null; + } + private void attach_JGZL_QualityControlPointInspection(JGZL_QualityControlPointInspection entity) { this.SendPropertyChanging();