diff --git a/DataBase/版本日志/SGGLDB_WH_2023-03-30.sql b/DataBase/版本日志/SGGLDB_WH_2023-03-30.sql
new file mode 100644
index 00000000..6caaf599
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_WH_2023-03-30.sql
@@ -0,0 +1,2995 @@
+ INSERT sys_menu (MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) VALUES ( N'ECDD89AC-1E16-4D82-B3BE-5D62F31B7A14',N'ҵԴԼ̬ܱ',N'ZHGL/Environmental/ChemicalReport.aspx',120,N'ERDXV53M-09B1-6UIO-3EFM-5DVZDF329001',N'Menu_ZHGL',1,1,1)
+ go
+ INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'46920D17-DBED-49FC-AE0C-7FB67ECEB489',N'ECDD89AC-1E16-4D82-B3BE-5D62F31B7A14',N'',1)
+ INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'55E6ABFD-302A-4069-BFB3-0CA4A8A2378B',N'ECDD89AC-1E16-4D82-B3BE-5D62F31B7A14',N'',2)
+ INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'D00DEFA7-5B40-4DBF-8B9E-A9EAAE45A32B',N'ECDD89AC-1E16-4D82-B3BE-5D62F31B7A14',N'ɾ',3)
+ INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'848805D2-91A1-4D20-9D04-108D44B08860',N'ECDD89AC-1E16-4D82-B3BE-5D62F31B7A14',N'',4)
+ INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'D0B18467-8D51-4D4A-A446-3BB140FF29A7',N'ECDD89AC-1E16-4D82-B3BE-5D62F31B7A14',N'沢ϱ',5)
+ go
+
+CREATE TABLE [dbo].[Environmental_ChemicalReport](
+ [ChemicalReportId] [nvarchar](50) NOT NULL,
+ [UnitId] [nvarchar](50) NULL,
+ [Year] [int] NULL,
+ [Month] [int] NULL,
+ [FillingMan] [nvarchar](50) NULL,
+ [FillingDate] [datetime] NULL,
+ [DutyPerson] [nvarchar](50) NULL,
+ [UpState] [char](1) NULL,
+ CONSTRAINT [PK_Environmental_ChemicalReport] PRIMARY KEY CLUSTERED
+(
+ [ChemicalReportId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+SET ANSI_PADDING OFF
+GO
+
+ALTER TABLE [dbo].[Environmental_ChemicalReport] WITH CHECK ADD CONSTRAINT [FK_Environmental_ChemicalReport_Base_Unit] FOREIGN KEY([UnitId])
+REFERENCES [dbo].[Base_Unit] ([UnitId])
+GO
+
+ALTER TABLE [dbo].[Environmental_ChemicalReport] CHECK CONSTRAINT [FK_Environmental_ChemicalReport_Base_Unit]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ChemicalReport', @level2type=N'COLUMN',@level2name=N'ChemicalReportId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ChemicalReport', @level2type=N'COLUMN',@level2name=N'UnitId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ChemicalReport', @level2type=N'COLUMN',@level2name=N'Year'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'·' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ChemicalReport', @level2type=N'COLUMN',@level2name=N'Month'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ChemicalReport', @level2type=N'COLUMN',@level2name=N'FillingMan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ChemicalReport', @level2type=N'COLUMN',@level2name=N'FillingDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ChemicalReport', @level2type=N'COLUMN',@level2name=N'DutyPerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵԴԼ̬ܱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ChemicalReport'
+GO
+
+
+
+CREATE TABLE [dbo].[Environmental_ChemicalReportItem](
+ [ChemicalReportItemId] [nvarchar](50) NOT NULL,
+ [ChemicalReportId] [nvarchar](50) NULL,
+ [SortIndex] [nvarchar](50) NULL,
+ [LastYearValue] [nvarchar](50) NULL,
+ [ThisYearValue] [nvarchar](50) NULL,
+ [Rate] [nvarchar](50) NULL,
+ CONSTRAINT [PK_Environmental_ChemicalReportItem] PRIMARY KEY CLUSTERED
+(
+ [ChemicalReportItemId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+ALTER TABLE [dbo].[Environmental_ChemicalReportItem] WITH CHECK ADD CONSTRAINT [FK_Environmental_ChemicalReportItem_Environmental_ChemicalReport] FOREIGN KEY([ChemicalReportId])
+REFERENCES [dbo].[Environmental_ChemicalReport] ([ChemicalReportId])
+GO
+
+ALTER TABLE [dbo].[Environmental_ChemicalReportItem] CHECK CONSTRAINT [FK_Environmental_ChemicalReportItem_Environmental_ChemicalReport]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ChemicalReportItem', @level2type=N'COLUMN',@level2name=N'ChemicalReportItemId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ChemicalReportItem', @level2type=N'COLUMN',@level2name=N'ChemicalReportId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼֵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ChemicalReportItem', @level2type=N'COLUMN',@level2name=N'LastYearValue'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼֵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ChemicalReportItem', @level2type=N'COLUMN',@level2name=N'ThisYearValue'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͬڱȽ(%)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ChemicalReportItem', @level2type=N'COLUMN',@level2name=N'Rate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵԴԼ̬ϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ChemicalReportItem'
+GO
+
+
+
+/*************ҵԴԼ̬ܱ**************/
+CREATE VIEW [dbo].[View_Environmental_ChemicalReport]
+AS
+SELECT
+Report.ChemicalReportId,
+Report.UnitId,
+Report.FillingDate,
+(ISNULL(Group_0008.ConstText,'-') + ISNULL(Group_0009.ConstText,'-')) AS ReportDate,
+Group_0008.ConstText as YearStr,
+Group_0009.ConstText as MonthStr,
+U.UnitName,
+Report.Year,
+Report.Month,
+Report.UpState,
+Report.DutyPerson
+FROM dbo.Environmental_ChemicalReport AS Report
+LEFT JOIN Base_Unit AS U ON U.UnitId=Report.UnitId
+LEFT JOIN Sys_Const AS Group_0008 ON Group_0008.GroupId='0008' AND Group_0008.ConstValue =Report.[Year]
+LEFT JOIN Sys_Const AS Group_0009 ON Group_0009.GroupId='0009' AND Group_0009.ConstValue =Report.[Month]
+
+
+
+
+
+
+GO
+
+ INSERT sys_menu (MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) VALUES ( N'7C47F078-D4C9-40D9-BEEF-E657EAFEC650',N'ҵԴԼ̬ܱ',N'ZHGL/Environmental/ArchitectureReport.aspx',110,N'ERDXV53M-09B1-6UIO-3EFM-5DVZDF329001',N'Menu_ZHGL',1,1,1)
+ go
+ INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'18E91EB6-C21B-46ED-9F98-438C8EABD1BE',N'7C47F078-D4C9-40D9-BEEF-E657EAFEC650',N'',1)
+ INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'B42F1CA0-A07C-4B02-98B5-602820C550D5',N'7C47F078-D4C9-40D9-BEEF-E657EAFEC650',N'',2)
+ INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'8B675F10-97BC-4D6D-B675-2C1DCD91C691',N'7C47F078-D4C9-40D9-BEEF-E657EAFEC650',N'ɾ',3)
+ INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'1B762DE4-5B26-42B2-AAFD-4ED2F6505A26',N'7C47F078-D4C9-40D9-BEEF-E657EAFEC650',N'',4)
+ INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'EF3CB7FF-3B65-485C-8414-D2955B7C7BFB',N'7C47F078-D4C9-40D9-BEEF-E657EAFEC650',N'沢ϱ',5)
+ go
+
+CREATE TABLE [dbo].[Environmental_ArchitectureReport](
+ [ArchitectureReportId] [nvarchar](50) NOT NULL,
+ [UnitId] [nvarchar](50) NULL,
+ [Year] [int] NULL,
+ [Month] [int] NULL,
+ [FillingMan] [nvarchar](50) NULL,
+ [FillingDate] [datetime] NULL,
+ [DutyPerson] [nvarchar](50) NULL,
+ [UpState] [char](1) NULL,
+ CONSTRAINT [PK_Environmental_ArchitectureReport] PRIMARY KEY CLUSTERED
+(
+ [ArchitectureReportId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+SET ANSI_PADDING OFF
+GO
+
+ALTER TABLE [dbo].[Environmental_ArchitectureReport] WITH CHECK ADD CONSTRAINT [FK_Environmental_ArchitectureReport_Base_Unit] FOREIGN KEY([UnitId])
+REFERENCES [dbo].[Base_Unit] ([UnitId])
+GO
+
+ALTER TABLE [dbo].[Environmental_ArchitectureReport] CHECK CONSTRAINT [FK_Environmental_ArchitectureReport_Base_Unit]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ArchitectureReport', @level2type=N'COLUMN',@level2name=N'ArchitectureReportId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ArchitectureReport', @level2type=N'COLUMN',@level2name=N'UnitId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ArchitectureReport', @level2type=N'COLUMN',@level2name=N'Year'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'·' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ArchitectureReport', @level2type=N'COLUMN',@level2name=N'Month'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ArchitectureReport', @level2type=N'COLUMN',@level2name=N'FillingMan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ArchitectureReport', @level2type=N'COLUMN',@level2name=N'FillingDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ArchitectureReport', @level2type=N'COLUMN',@level2name=N'DutyPerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵԴԼ̬ܱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ArchitectureReport'
+GO
+
+
+
+CREATE TABLE [dbo].[Environmental_ArchitectureReportItem](
+ [ArchitectureReportItemId] [nvarchar](50) NOT NULL,
+ [ArchitectureReportId] [nvarchar](50) NULL,
+ [SortIndex] [nvarchar](50) NULL,
+ [LastYearValue] [nvarchar](50) NULL,
+ [ThisYearValue] [nvarchar](50) NULL,
+ [Rate] [nvarchar](50) NULL,
+ CONSTRAINT [PK_Environmental_ArchitectureReportItem] PRIMARY KEY CLUSTERED
+(
+ [ArchitectureReportItemId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+ALTER TABLE [dbo].[Environmental_ArchitectureReportItem] WITH CHECK ADD CONSTRAINT [FK_Environmental_ArchitectureReportItem_Environmental_ArchitectureReport] FOREIGN KEY([ArchitectureReportId])
+REFERENCES [dbo].[Environmental_ArchitectureReport] ([ArchitectureReportId])
+GO
+
+ALTER TABLE [dbo].[Environmental_ArchitectureReportItem] CHECK CONSTRAINT [FK_Environmental_ArchitectureReportItem_Environmental_ArchitectureReport]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ArchitectureReportItem', @level2type=N'COLUMN',@level2name=N'ArchitectureReportItemId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ArchitectureReportItem', @level2type=N'COLUMN',@level2name=N'ArchitectureReportId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼֵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ArchitectureReportItem', @level2type=N'COLUMN',@level2name=N'LastYearValue'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼֵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ArchitectureReportItem', @level2type=N'COLUMN',@level2name=N'ThisYearValue'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͬڱȽ(%)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ArchitectureReportItem', @level2type=N'COLUMN',@level2name=N'Rate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵԴԼ̬ϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ArchitectureReportItem'
+GO
+
+
+
+
+/*************ҵԴԼ̬ܱ**************/
+CREATE VIEW [dbo].[View_Environmental_ArchitectureReport]
+AS
+SELECT
+Report.ArchitectureReportId,
+Report.UnitId,
+Report.FillingDate,
+(ISNULL(Group_0008.ConstText,'-') + ISNULL(Group_0009.ConstText,'-')) AS ReportDate,
+Group_0008.ConstText as YearStr,
+Group_0009.ConstText as MonthStr,
+U.UnitName,
+Report.Year,
+Report.Month,
+Report.UpState,
+Report.DutyPerson
+FROM dbo.Environmental_ArchitectureReport AS Report
+LEFT JOIN Base_Unit AS U ON U.UnitId=Report.UnitId
+LEFT JOIN Sys_Const AS Group_0008 ON Group_0008.GroupId='0008' AND Group_0008.ConstValue =Report.[Year]
+LEFT JOIN Sys_Const AS Group_0009 ON Group_0009.GroupId='0009' AND Group_0009.ConstValue =Report.[Month]
+
+
+
+
+
+
+GO
+
+
+
+
+
+ insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+values('07FEEC9D-09C1-4C19-9269-62F69532086C','ȫܽᱨ','ZHGL/Information/WorkSummaryReport.aspx',90,'ERDXV53M-09B1-6UIO-3EFM-5DVZDF329001','Menu_ZHGL',1,1,1)
+go
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('FD088090-FD25-4548-9B7F-49247A8F601B','07FEEC9D-09C1-4C19-9269-62F69532086C','',1)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('8ADC4E94-8182-4AE7-8D69-CEF3004B6AAE','07FEEC9D-09C1-4C19-9269-62F69532086C','',2)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('7A3C8A43-9585-4E27-BDE2-F66FEE9435BD','07FEEC9D-09C1-4C19-9269-62F69532086C','ɾ',3)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('AD4FB77C-2B53-4970-87F3-3DF8B675C9A8','07FEEC9D-09C1-4C19-9269-62F69532086C','',4)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('2F222D01-838E-4BE6-9212-4C6AE0B0BC6A','07FEEC9D-09C1-4C19-9269-62F69532086C','沢ϱ',5)
+ go
+
+insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+values('12941594-2171-411A-8CC8-32E3BD9FCDDF','ܽᱨ','ZHGL/Information/QualityWorkSummaryReport.aspx',100,'ERDXV53M-09B1-6UIO-3EFM-5DVZDF329001','Menu_ZHGL',1,1,1)
+go
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('EC9D2B2F-E61B-4E87-8F38-26ED0D7F3F10','12941594-2171-411A-8CC8-32E3BD9FCDDF','',1)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('A1F10A53-693D-4AA8-A28D-A60151828325','12941594-2171-411A-8CC8-32E3BD9FCDDF','',2)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('0948549B-7CAC-4810-8113-66843F4C4969','12941594-2171-411A-8CC8-32E3BD9FCDDF','ɾ',3)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('254F6A15-4A4B-4BF3-929B-FBC9174B4FC5','12941594-2171-411A-8CC8-32E3BD9FCDDF','',4)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('817CF1AA-4F75-41A4-A8F6-E30448D62FFC','12941594-2171-411A-8CC8-32E3BD9FCDDF','沢ϱ',5)
+ go
+
+
+
+CREATE TABLE [dbo].[Information_WorkSummaryReport](
+ [WorkSummaryReportId] [nvarchar](50) NOT NULL,
+ [UnitId] [nvarchar](50) NULL,
+ [YearId] [int] NULL,
+ [ResponsiblePerson] [nvarchar](50) NULL,
+ [ResponsiblePersonTel] [nvarchar](50) NULL,
+ [ContactPerson] [nvarchar](50) NULL,
+ [ContactPersonTel] [nvarchar](50) NULL,
+ [ReportDate] [datetime] NULL,
+ [SafeLaborTime] [decimal](18, 2) NULL,
+ [SafetyObjectives] [nvarchar](max) NULL,
+ [AccidentSituation] [nvarchar](max) NULL,
+ [Awards] [nvarchar](max) NULL,
+ [WorkDevelopment] [nvarchar](max) NULL,
+ [PersonnelTraining] [nvarchar](max) NULL,
+ [GovernanceSituation] [nvarchar](max) NULL,
+ [ManagementActivity] [nvarchar](max) NULL,
+ [WorkExperience] [nvarchar](max) NULL,
+ [Countermeasures] [nvarchar](max) NULL,
+ [NextYearWorkPlan] [nvarchar](max) NULL,
+ [JobSuggestion] [nvarchar](max) NULL,
+ [UpState] [char](1) NULL,
+ CONSTRAINT [PK_Information_WorkSummaryReport] PRIMARY KEY CLUSTERED
+(
+ [WorkSummaryReportId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
+
+GO
+
+SET ANSI_PADDING OFF
+GO
+
+ALTER TABLE [dbo].[Information_WorkSummaryReport] WITH CHECK ADD CONSTRAINT [FK_Information_WorkSummaryReport_Base_Unit] FOREIGN KEY([UnitId])
+REFERENCES [dbo].[Base_Unit] ([UnitId])
+GO
+
+ALTER TABLE [dbo].[Information_WorkSummaryReport] CHECK CONSTRAINT [FK_Information_WorkSummaryReport_Base_Unit]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'UnitId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'YearId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ResponsiblePerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'˵绰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ResponsiblePersonTel'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ContactPerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϵ˵绰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ContactPersonTel'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ReportDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫ˹ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'SafeLaborTime'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫĿ꼰Ӧݽܽᣩ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'SafetyObjectives'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫ¹' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'AccidentSituation'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'Awards'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ص㹤չ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'WorkDevelopment'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Աѵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'PersonnelTraining'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'֯չȫල顢Ų' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'GovernanceSituation'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫ¡ְҵܵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ManagementActivity'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ҫ鼰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'WorkExperience'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ҫ⼰ӦԴʩ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'Countermeasures'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'һȹƻ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'NextYearWorkPlan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ԼŹ˾Ĺ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'JobSuggestion'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫܽᱨ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport'
+GO
+
+
+
+
+
+CREATE TABLE [dbo].[Information_QualityWorkSummaryReport](
+ [QualityWorkSummaryReportId] [nvarchar](50) NOT NULL,
+ [UnitId] [nvarchar](50) NULL,
+ [YearId] [int] NULL,
+ [ResponsiblePerson] [nvarchar](50) NULL,
+ [ResponsiblePersonTel] [nvarchar](50) NULL,
+ [ContactPerson] [nvarchar](50) NULL,
+ [ContactPersonTel] [nvarchar](50) NULL,
+ [ReportDate] [datetime] NULL,
+ [Performance] [nvarchar](max) NULL,
+ [AccidentSituation] [nvarchar](max) NULL,
+ [Awards] [nvarchar](max) NULL,
+ [WorkDevelopment] [nvarchar](max) NULL,
+ [PersonnelTraining] [nvarchar](max) NULL,
+ [CheckSituation] [nvarchar](max) NULL,
+ [ManagementActivity] [nvarchar](max) NULL,
+ [WorkExperience] [nvarchar](max) NULL,
+ [Countermeasures] [nvarchar](max) NULL,
+ [NextYearWorkPlan] [nvarchar](max) NULL,
+ [JobSuggestion] [nvarchar](max) NULL,
+ [UpState] [char](1) NULL,
+ CONSTRAINT [PK_Information_QualityWorkSummaryReport] PRIMARY KEY CLUSTERED
+(
+ [QualityWorkSummaryReportId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
+
+GO
+
+SET ANSI_PADDING OFF
+GO
+
+ALTER TABLE [dbo].[Information_QualityWorkSummaryReport] WITH CHECK ADD CONSTRAINT [FK_Information_QualityWorkSummaryReport_Base_Unit] FOREIGN KEY([UnitId])
+REFERENCES [dbo].[Base_Unit] ([UnitId])
+GO
+
+ALTER TABLE [dbo].[Information_QualityWorkSummaryReport] CHECK CONSTRAINT [FK_Information_QualityWorkSummaryReport_Base_Unit]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'UnitId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'YearId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ResponsiblePerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'˵绰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ResponsiblePersonTel'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ContactPerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϵ˵绰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ContactPersonTel'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ReportDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Чλ״ȣ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'Performance'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¹' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'AccidentSituation'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'Awards'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'жص㹤չ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'WorkDevelopment'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Աѵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'PersonnelTraining'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'֯չල' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'CheckSituation'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'µ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ManagementActivity'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ҫ鼰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'WorkExperience'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ҫ⼰ӦԴʩ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'Countermeasures'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'һȹƻ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'NextYearWorkPlan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ԼŹ˾Ĺ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'JobSuggestion'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܽᱨ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport'
+GO
+
+
+
+
+alter table [dbo].[Environmental_ChemicalReportItem] add BaseNumber nvarchar(50) null
+GO
+alter table [dbo].[Environmental_ArchitectureReportItem] add BaseNumber nvarchar(50) null
+GO
+
+
+CREATE TABLE [dbo].[Environmental_ProjectChemicalReport](
+ [ChemicalReportId] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [Year] [int] NULL,
+ [Month] [int] NULL,
+ [FillingMan] [nvarchar](50) NULL,
+ [FillingDate] [datetime] NULL,
+ [DutyPerson] [nvarchar](50) NULL,
+ [UpState] [char](1) NULL,
+ CONSTRAINT [PK_Environmental_ProjectChemicalReport] PRIMARY KEY CLUSTERED
+(
+ [ChemicalReportId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+SET ANSI_PADDING OFF
+GO
+
+ALTER TABLE [dbo].[Environmental_ProjectChemicalReport] WITH CHECK ADD CONSTRAINT [FK_Environmental_ProjectChemicalReport_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+GO
+
+ALTER TABLE [dbo].[Environmental_ProjectChemicalReport] CHECK CONSTRAINT [FK_Environmental_ProjectChemicalReport_Base_Project]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectChemicalReport', @level2type=N'COLUMN',@level2name=N'ChemicalReportId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectChemicalReport', @level2type=N'COLUMN',@level2name=N'ProjectId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectChemicalReport', @level2type=N'COLUMN',@level2name=N'Year'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'·' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectChemicalReport', @level2type=N'COLUMN',@level2name=N'Month'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectChemicalReport', @level2type=N'COLUMN',@level2name=N'FillingMan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectChemicalReport', @level2type=N'COLUMN',@level2name=N'FillingDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectChemicalReport', @level2type=N'COLUMN',@level2name=N'DutyPerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵԴԼ̬ܱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectChemicalReport'
+GO
+
+
+
+CREATE TABLE [dbo].[Environmental_ProjectChemicalReportItem](
+ [ChemicalReportItemId] [nvarchar](50) NOT NULL,
+ [ChemicalReportId] [nvarchar](50) NULL,
+ [SortIndex] [nvarchar](50) NULL,
+ [LastYearValue] [nvarchar](50) NULL,
+ [ThisYearValue] [nvarchar](50) NULL,
+ [Rate] [nvarchar](50) NULL,
+ [BaseNumber] [nvarchar](50) NULL,
+ CONSTRAINT [PK_Environmental_ProjectChemicalReportItem] PRIMARY KEY CLUSTERED
+(
+ [ChemicalReportItemId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+ALTER TABLE [dbo].[Environmental_ProjectChemicalReportItem] WITH CHECK ADD CONSTRAINT [FK_Environmental_ProjectChemicalReportItem_Environmental_ProjectChemicalReport] FOREIGN KEY([ChemicalReportId])
+REFERENCES [dbo].[Environmental_ProjectChemicalReport] ([ChemicalReportId])
+GO
+
+ALTER TABLE [dbo].[Environmental_ProjectChemicalReportItem] CHECK CONSTRAINT [FK_Environmental_ProjectChemicalReportItem_Environmental_ProjectChemicalReport]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectChemicalReportItem', @level2type=N'COLUMN',@level2name=N'ChemicalReportItemId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectChemicalReportItem', @level2type=N'COLUMN',@level2name=N'ChemicalReportId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼֵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectChemicalReportItem', @level2type=N'COLUMN',@level2name=N'LastYearValue'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼֵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectChemicalReportItem', @level2type=N'COLUMN',@level2name=N'ThisYearValue'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͬڱȽ(%)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectChemicalReportItem', @level2type=N'COLUMN',@level2name=N'Rate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵԴԼ̬ϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectChemicalReportItem'
+GO
+
+
+/*************ҵԴԼ̬ܱ**************/
+CREATE VIEW [dbo].[View_Environmental_ProjectChemicalReport]
+AS
+SELECT
+Report.ChemicalReportId,
+Report.ProjectId,
+Report.FillingDate,
+(ISNULL(Group_0008.ConstText,'-') + ISNULL(Group_0009.ConstText,'-')) AS ReportDate,
+Group_0008.ConstText as YearStr,
+Group_0009.ConstText as MonthStr,
+U.ProjectName,
+Report.Year,
+Report.Month,
+Report.UpState,
+Report.DutyPerson
+FROM dbo.Environmental_ProjectChemicalReport AS Report
+LEFT JOIN Base_Project AS U ON U.ProjectId=Report.ProjectId
+LEFT JOIN Sys_Const AS Group_0008 ON Group_0008.GroupId='0008' AND Group_0008.ConstValue =Report.[Year]
+LEFT JOIN Sys_Const AS Group_0009 ON Group_0009.GroupId='0009' AND Group_0009.ConstValue =Report.[Month]
+
+
+
+
+
+
+
+GO
+
+
+
+
+
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('A44E98F6-E9FE-43F8-8349-C166263BF608','ҵԴԼ̬ܱ','ZHGL/Environmental/ProjectChemicalReport.aspx',60,'C554E471-B740-4559-B543-E00F247289FD','Menu_HSSE',0,1,1)
+ GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('61C72BD2-4B76-4595-BFBF-0E9FEB6A7B80','A44E98F6-E9FE-43F8-8349-C166263BF608','',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('504F9B5D-88F7-4ED7-B5F4-48AC089AABBF','A44E98F6-E9FE-43F8-8349-C166263BF608','',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('5208AF92-6632-4226-BC28-2392D3BF43FD','A44E98F6-E9FE-43F8-8349-C166263BF608','ɾ',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('58B8415B-61C8-4D23-9AEE-1290E7FF8F2B','A44E98F6-E9FE-43F8-8349-C166263BF608','',4)
+ GO
+
+
+CREATE TABLE [dbo].[Environmental_ProjectArchitectureReport](
+ [ArchitectureReportId] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [Year] [int] NULL,
+ [Quarters] [int] NULL,
+ [FillingMan] [nvarchar](50) NULL,
+ [FillingDate] [datetime] NULL,
+ [DutyPerson] [nvarchar](50) NULL,
+ [UpState] [char](1) NULL,
+ CONSTRAINT [PK_Environmental_ProjectArchitectureReport] PRIMARY KEY CLUSTERED
+(
+ [ArchitectureReportId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+SET ANSI_PADDING OFF
+GO
+
+ALTER TABLE [dbo].[Environmental_ProjectArchitectureReport] WITH CHECK ADD CONSTRAINT [FK_Environmental_ProjectArchitectureReport_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+GO
+
+ALTER TABLE [dbo].[Environmental_ProjectArchitectureReport] CHECK CONSTRAINT [FK_Environmental_ProjectArchitectureReport_Base_Project]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectArchitectureReport', @level2type=N'COLUMN',@level2name=N'ArchitectureReportId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectArchitectureReport', @level2type=N'COLUMN',@level2name=N'ProjectId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectArchitectureReport', @level2type=N'COLUMN',@level2name=N'Year'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'·' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectArchitectureReport', @level2type=N'COLUMN',@level2name=N'Quarters'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectArchitectureReport', @level2type=N'COLUMN',@level2name=N'FillingMan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectArchitectureReport', @level2type=N'COLUMN',@level2name=N'FillingDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectArchitectureReport', @level2type=N'COLUMN',@level2name=N'DutyPerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵԴԼ̬ܱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectArchitectureReport'
+GO
+
+
+
+CREATE TABLE [dbo].[Environmental_ProjectArchitectureReportItem](
+ [ArchitectureReportItemId] [nvarchar](50) NOT NULL,
+ [ArchitectureReportId] [nvarchar](50) NULL,
+ [SortIndex] [nvarchar](50) NULL,
+ [LastYearValue] [nvarchar](50) NULL,
+ [ThisYearValue] [nvarchar](50) NULL,
+ [Rate] [nvarchar](50) NULL,
+ [BaseNumber] [nvarchar](50) NULL,
+ CONSTRAINT [PK_Environmental_ProjectArchitectureReportItem] PRIMARY KEY CLUSTERED
+(
+ [ArchitectureReportItemId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+ALTER TABLE [dbo].[Environmental_ProjectArchitectureReportItem] WITH CHECK ADD CONSTRAINT [FK_Environmental_ProjectArchitectureReportItem_Environmental_ProjectArchitectureReport] FOREIGN KEY([ArchitectureReportId])
+REFERENCES [dbo].[Environmental_ProjectArchitectureReport] ([ArchitectureReportId])
+GO
+
+ALTER TABLE [dbo].[Environmental_ProjectArchitectureReportItem] CHECK CONSTRAINT [FK_Environmental_ProjectArchitectureReportItem_Environmental_ProjectArchitectureReport]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectArchitectureReportItem', @level2type=N'COLUMN',@level2name=N'ArchitectureReportItemId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectArchitectureReportItem', @level2type=N'COLUMN',@level2name=N'ArchitectureReportId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼֵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectArchitectureReportItem', @level2type=N'COLUMN',@level2name=N'LastYearValue'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼֵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectArchitectureReportItem', @level2type=N'COLUMN',@level2name=N'ThisYearValue'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͬڱȽ(%)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectArchitectureReportItem', @level2type=N'COLUMN',@level2name=N'Rate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵԴԼ̬ϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectArchitectureReportItem'
+GO
+
+
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('25CE6894-2840-4DC4-AD2E-D72292849CEE','ҵԴԼ̬ܱ','ZHGL/Environmental/ProjectArchitectureReport.aspx',70,'C554E471-B740-4559-B543-E00F247289FD','Menu_HSSE',0,1,1)
+ GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('5CDC4DA8-D6CE-49F8-962B-5A24A7A2CE66','25CE6894-2840-4DC4-AD2E-D72292849CEE','',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('3066BA22-F86B-4B98-8FA1-914DDB95FB52','25CE6894-2840-4DC4-AD2E-D72292849CEE','',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('0B96AAC4-4E76-484F-932A-806BF910791D','25CE6894-2840-4DC4-AD2E-D72292849CEE','ɾ',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('11C043C8-B557-4DDD-9E0A-64BC44BD3D7B','25CE6894-2840-4DC4-AD2E-D72292849CEE','',4)
+ GO
+
+
+/*************ҵԴԼ̬ܱ**************/
+CREATE VIEW [dbo].[View_Environmental_ProjectArchitectureReport]
+AS
+SELECT
+Report.ArchitectureReportId,
+Report.ProjectId,
+Report.FillingDate,
+(ISNULL(Group_0008.ConstText,'-') + ISNULL(Group_0011.ConstText,'-')) AS ReportDate,
+Group_0008.ConstText as YearStr,
+Group_0011.ConstText as QuartersStr,
+U.ProjectName,
+Report.Year,
+Report.Quarters,
+Report.UpState,
+Report.DutyPerson
+FROM dbo.Environmental_ProjectArchitectureReport AS Report
+LEFT JOIN Base_Project AS U ON U.ProjectId=Report.ProjectId
+LEFT JOIN Sys_Const AS Group_0008 ON Group_0008.GroupId='0008' AND Group_0008.ConstValue =Report.[Year]
+LEFT JOIN Sys_Const AS Group_0011 ON Group_0011.GroupId='0011' AND Group_0011.ConstValue =Report.[Quarters]
+
+
+
+
+
+
+
+GO
+
+
+alter table [dbo].[Information_MillionsMonthlyReportItem] add DeathAccidentNum int null
+GO
+alter table [dbo].[Information_MillionsMonthlyReportItem] add DeathAccidentPersonNum int null
+GO
+alter table [dbo].[Information_MillionsMonthlyReportItem] add DeathAccidentLossHour int null
+GO
+alter table [dbo].[Information_MillionsMonthlyReportItem] add EnvironmenNum int null
+GO
+
+alter table [dbo].[InformationProject_MillionsMonthlyReport] add DeathAccidentNum int null
+GO
+alter table [dbo].[InformationProject_MillionsMonthlyReport] add DeathAccidentPersonNum int null
+GO
+alter table [dbo].[InformationProject_MillionsMonthlyReport] add DeathAccidentLossHour int null
+GO
+alter table [dbo].[InformationProject_MillionsMonthlyReport] add EnvironmenNum int null
+GO
+
+alter table Information_MillionsMonthlyReport add InputCosts decimal(18,4) null
+alter table Information_MillionsMonthlyReport add TrainNum int null
+alter table Information_MillionsMonthlyReport add GeneralHazardNum int null
+alter table Information_MillionsMonthlyReport add MajorHazardNum int null
+alter table Information_MillionsMonthlyReport add NotProofLargeProjectNum int null
+alter table Information_MillionsMonthlyReport add ProofLargeProjectNum int null
+alter table Information_MillionsMonthlyReport add FireLicenseNum int null
+alter table Information_MillionsMonthlyReport add LimitLicenseNum int null
+alter table Information_MillionsMonthlyReport add HighLicenseNum int null
+alter table Information_MillionsMonthlyReport add HoistingLicenseNum int null
+alter table Information_MillionsMonthlyReport add BreakGroundLicenseNum int null
+alter table Information_MillionsMonthlyReport add ElectricityLicenseNum int null
+alter table Information_MillionsMonthlyReport add RTLicenseNum int null
+alter table Information_MillionsMonthlyReport add NightLicenseNum int null
+alter table Information_MillionsMonthlyReport add CommissionerNum int null
+alter table Information_MillionsMonthlyReport add SoleDutyNum int null
+GO
+
+alter table InformationProject_MillionsMonthlyReport add InputCosts decimal(18,4) null
+alter table InformationProject_MillionsMonthlyReport add TrainNum int null
+alter table InformationProject_MillionsMonthlyReport add GeneralHazardNum int null
+alter table InformationProject_MillionsMonthlyReport add MajorHazardNum int null
+alter table InformationProject_MillionsMonthlyReport add NotProofLargeProjectNum int null
+alter table InformationProject_MillionsMonthlyReport add ProofLargeProjectNum int null
+alter table InformationProject_MillionsMonthlyReport add FireLicenseNum int null
+alter table InformationProject_MillionsMonthlyReport add LimitLicenseNum int null
+alter table InformationProject_MillionsMonthlyReport add HighLicenseNum int null
+alter table InformationProject_MillionsMonthlyReport add HoistingLicenseNum int null
+alter table InformationProject_MillionsMonthlyReport add BreakGroundLicenseNum int null
+alter table InformationProject_MillionsMonthlyReport add ElectricityLicenseNum int null
+alter table InformationProject_MillionsMonthlyReport add RTLicenseNum int null
+alter table InformationProject_MillionsMonthlyReport add NightLicenseNum int null
+alter table InformationProject_MillionsMonthlyReport add CommissionerNum int null
+alter table InformationProject_MillionsMonthlyReport add SoleDutyNum int null
+GO
+
+update [Sys_Menu] set [MenuName]='ҵȫͳ±' where MenuId='3156A9F0-276D-4AD4-BF84-45CF6DFC215C'
+update [Sys_Menu] set [MenuName]='ҵȫͳ±' where MenuId='6E7DC075-A7AF-4E42-8F8B-0174EFDD54A1'
+GO
+
+delete from Sys_ButtonToMenu where MenuId='8B17DC64-A4B9-4283-B7A1-D2E944205FA5'
+delete from [Sys_Menu] where MenuId='8B17DC64-A4B9-4283-B7A1-D2E944205FA5'
+delete from Sys_ButtonToMenu where MenuId='A3894BAD-3F4A-4BB4-98CF-A76C588AE53F'
+delete from [Sys_Menu] where MenuId='A3894BAD-3F4A-4BB4-98CF-A76C588AE53F'
+GO
+
+ INSERT sys_menu (MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) VALUES ( N'7652D239-1897-4886-8DF2-B71E3B060D21',N'ҵܻҵҵ;Ӫ',N'ZHGL/Environmental/OperationReport.aspx',200,N'ERDXV53M-09B1-6UIO-3EFM-5DVZDF329001',N'Menu_ZHGL',1,1,1)
+ go
+ INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'6FF2A6A9-797D-4581-B3A6-4B0F55E40DA0',N'7652D239-1897-4886-8DF2-B71E3B060D21',N'',1)
+ INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'20C8D28A-51FC-4AE4-9545-A8D2C9C61CBB',N'7652D239-1897-4886-8DF2-B71E3B060D21',N'',2)
+ INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'0E3A8AA4-0E0E-4A47-9B70-74503ACAB056',N'7652D239-1897-4886-8DF2-B71E3B060D21',N'ɾ',3)
+ INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'84A185EC-13CD-4C09-A415-F666138877AC',N'7652D239-1897-4886-8DF2-B71E3B060D21',N'',4)
+ INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'87F2FE97-0CCA-4F42-B297-43DC026334FF',N'7652D239-1897-4886-8DF2-B71E3B060D21',N'沢ϱ',5)
+ go
+
+
+
+
+CREATE TABLE [dbo].[Environmental_OperationReport](
+ [BusinessReportId] [nvarchar](50) NOT NULL,
+ [UnitId] [nvarchar](50) NULL,
+ [Year] [int] NULL,
+ [Quarters] [int] NULL,
+ [Code] [nvarchar](50) NULL,
+ [UnitLevel] [nvarchar](50) NULL,
+ [CreateDate] [datetime] NULL,
+ [Place] [nvarchar](200) NULL,
+ [PersonNum] [int] NULL,
+ [TotalAssets] [decimal](18, 4) NULL,
+ [TotalValue] [decimal](18, 4) NULL,
+ [NewInvestment] [decimal](18, 4) NULL,
+ [FillingMan] [nvarchar](50) NULL,
+ [FillingDate] [datetime] NULL,
+ [StatisticsDutyPerson] [nvarchar](50) NULL,
+ [UnitDutyPerson] [nvarchar](50) NULL,
+ [Remark] [nvarchar](500) NULL,
+ CONSTRAINT [PK_Environmental_OperationReport] PRIMARY KEY CLUSTERED
+(
+ [BusinessReportId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+ALTER TABLE [dbo].[Environmental_OperationReport] WITH CHECK ADD CONSTRAINT [FK_Environmental_OperationReport_Base_Unit] FOREIGN KEY([UnitId])
+REFERENCES [dbo].[Base_Unit] ([UnitId])
+GO
+
+ALTER TABLE [dbo].[Environmental_OperationReport] CHECK CONSTRAINT [FK_Environmental_OperationReport_Base_Unit]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_OperationReport', @level2type=N'COLUMN',@level2name=N'BusinessReportId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_OperationReport', @level2type=N'COLUMN',@level2name=N'UnitId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_OperationReport', @level2type=N'COLUMN',@level2name=N'Year'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_OperationReport', @level2type=N'COLUMN',@level2name=N'Quarters'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_OperationReport', @level2type=N'COLUMN',@level2name=N'Code'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵ㼶' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_OperationReport', @level2type=N'COLUMN',@level2name=N'UnitLevel'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_OperationReport', @level2type=N'COLUMN',@level2name=N'CreateDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ڵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_OperationReport', @level2type=N'COLUMN',@level2name=N'Place'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ְ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_OperationReport', @level2type=N'COLUMN',@level2name=N'PersonNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʲܶ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_OperationReport', @level2type=N'COLUMN',@level2name=N'TotalAssets'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֵܲ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_OperationReport', @level2type=N'COLUMN',@level2name=N'TotalValue'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ͷ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_OperationReport', @level2type=N'COLUMN',@level2name=N'NewInvestment'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_OperationReport', @level2type=N'COLUMN',@level2name=N'FillingMan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_OperationReport', @level2type=N'COLUMN',@level2name=N'FillingDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͳƸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_OperationReport', @level2type=N'COLUMN',@level2name=N'StatisticsDutyPerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_OperationReport', @level2type=N'COLUMN',@level2name=N'UnitDutyPerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_OperationReport', @level2type=N'COLUMN',@level2name=N'Remark'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵܻҵҵ;Ӫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_OperationReport'
+GO
+
+
+
+
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('EFA6E45F-1267-4804-BEE7-41E0C5461204','ҵܻҵҵ;Ӫ','ZHGL/Environmental/ProjectOperationReport.aspx',170,'C554E471-B740-4559-B543-E00F247289FD','Menu_HSSE',0,1,1)
+ GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('D8F40684-8EE9-4E79-B18E-FFA339E3B441','EFA6E45F-1267-4804-BEE7-41E0C5461204','',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('9BF9DDC9-66C5-4FB2-8AA6-B0B748F41F56','EFA6E45F-1267-4804-BEE7-41E0C5461204','',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('DD2E36DE-C736-4D96-9972-D686C8A1ED23','EFA6E45F-1267-4804-BEE7-41E0C5461204','ɾ',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('220E0F3B-1254-46DA-AF9A-9C21CA3EFEF8','EFA6E45F-1267-4804-BEE7-41E0C5461204','',4)
+ GO
+
+
+
+CREATE TABLE [dbo].[Environmental_ProjectOperationReport](
+ [BusinessReportId] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [Year] [int] NULL,
+ [Quarters] [int] NULL,
+ [Code] [nvarchar](50) NULL,
+ [PersonNum] [int] NULL,
+ [TotalAssets] [decimal](18, 4) NULL,
+ [TotalValue] [decimal](18, 4) NULL,
+ [NewInvestment] [decimal](18, 4) NULL,
+ [FillingMan] [nvarchar](50) NULL,
+ [FillingDate] [datetime] NULL,
+ [StatisticsDutyPerson] [nvarchar](50) NULL,
+ [Remark] [nvarchar](500) NULL,
+ CONSTRAINT [PK_Environmental_ProjectOperationReport] PRIMARY KEY CLUSTERED
+(
+ [BusinessReportId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+ALTER TABLE [dbo].[Environmental_ProjectOperationReport] WITH CHECK ADD CONSTRAINT [FK_Environmental_ProjectOperationReport_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+GO
+
+ALTER TABLE [dbo].[Environmental_ProjectOperationReport] CHECK CONSTRAINT [FK_Environmental_ProjectOperationReport_Base_Project]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectOperationReport', @level2type=N'COLUMN',@level2name=N'BusinessReportId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectOperationReport', @level2type=N'COLUMN',@level2name=N'ProjectId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectOperationReport', @level2type=N'COLUMN',@level2name=N'Year'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectOperationReport', @level2type=N'COLUMN',@level2name=N'Quarters'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectOperationReport', @level2type=N'COLUMN',@level2name=N'Code'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ְ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectOperationReport', @level2type=N'COLUMN',@level2name=N'PersonNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʲܶ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectOperationReport', @level2type=N'COLUMN',@level2name=N'TotalAssets'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֵܲ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectOperationReport', @level2type=N'COLUMN',@level2name=N'TotalValue'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ͷ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectOperationReport', @level2type=N'COLUMN',@level2name=N'NewInvestment'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectOperationReport', @level2type=N'COLUMN',@level2name=N'FillingMan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectOperationReport', @level2type=N'COLUMN',@level2name=N'FillingDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͳƸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectOperationReport', @level2type=N'COLUMN',@level2name=N'StatisticsDutyPerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectOperationReport', @level2type=N'COLUMN',@level2name=N'Remark'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ŀҵܻҵҵ;Ӫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectOperationReport'
+GO
+
+
+insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+values('FB174DD6-CBAE-43AF-9356-B098A17B719D','ȫܽᱨ','HSSE/InformationProject/WorkSummaryReport.aspx',60,'C554E471-B740-4559-B543-E00F247289FD','Menu_HSSE',0,1,1)
+go
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('22B517A8-7267-483D-8D25-DC46DA4781A2','FB174DD6-CBAE-43AF-9356-B098A17B719D','',1)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('0118B4F5-C954-4FD7-9D63-6BF46BD63555','FB174DD6-CBAE-43AF-9356-B098A17B719D','',2)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('2A952B21-96B8-4647-BBFD-5C9F8A71FF96','FB174DD6-CBAE-43AF-9356-B098A17B719D','ɾ',3)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('A3D4C846-E1AE-4EBC-A13E-6565EBCD8921','FB174DD6-CBAE-43AF-9356-B098A17B719D','',4)
+ go
+
+insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+values('1443C901-A9C3-4CCC-B858-55512DE8C5CA','ܽᱨ','CQMS/ManageReport/QualityWorkSummaryReport.aspx',20,'7ecf0229-8a0b-40ce-8b04-e556f7bd3394','Menu_CQMS',0,1,1)
+ go
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('7A6247ED-5953-4A97-8C9A-25D592B19D9E','1443C901-A9C3-4CCC-B858-55512DE8C5CA','',1)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('C87345B5-882C-4F02-86F1-65B53CBEAA79','1443C901-A9C3-4CCC-B858-55512DE8C5CA','',2)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('95349CD9-4EC8-47BA-8B6D-2A5AD8D48234','1443C901-A9C3-4CCC-B858-55512DE8C5CA','ɾ',3)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('DF651BA5-4F8E-469F-ADF2-0538C37445EC','1443C901-A9C3-4CCC-B858-55512DE8C5CA','',4)
+ go
+
+insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+values('267064F1-88F7-4468-998A-49A1A2F25BB8','ȹĿϢ','CQMS/ManageReport/QuarterlyProjectQuality.aspx',30,'7ecf0229-8a0b-40ce-8b04-e556f7bd3394','Menu_CQMS',0,1,1)
+ go
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('E826DFE2-76B9-4C39-82E4-5E8541F1A603','267064F1-88F7-4468-998A-49A1A2F25BB8','',1)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('47653071-D7D5-4BC7-8351-479FB7C49840','267064F1-88F7-4468-998A-49A1A2F25BB8','',2)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('F4CE6F86-AB36-4AED-B449-2E8DA69B5278','267064F1-88F7-4468-998A-49A1A2F25BB8','ɾ',3)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('8E5ABEC0-1D1B-4479-99F0-FB778BBE43E4','267064F1-88F7-4468-998A-49A1A2F25BB8','',4)
+ go
+
+insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+values('86F71934-7149-470E-BEAB-FFDC5BF3C0F2','ʵҵȫ','SHIYE/InformationProject/SafetyBriefing.aspx',10,'C554E471-B740-4559-B543-E00F247289FD','Menu_HSSE',1,1,1)
+go
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('90297D4C-047D-4E24-8FCB-3B216846B94E','86F71934-7149-470E-BEAB-FFDC5BF3C0F2','',1)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('A7F2EF10-6EE2-468F-93E4-BAE3051920C0','86F71934-7149-470E-BEAB-FFDC5BF3C0F2','',2)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('08156CE2-51A2-42A7-BDCF-5840D514445B','86F71934-7149-470E-BEAB-FFDC5BF3C0F2','ɾ',3)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('1AED7984-B050-4EAF-9CD5-D25CF500B61F','86F71934-7149-470E-BEAB-FFDC5BF3C0F2','',4)
+ go
+
+
+insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+values('AAC7C263-6E25-49DC-985B-DC3FA7AAF3A1','ʵҵȫ','ZHGL/Information/SafetyBriefing.aspx',110,'ERDXV53M-09B1-6UIO-3EFM-5DVZDF329001','Menu_ZHGL',1,1,1)
+go
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('135DC125-8594-4AEF-AF99-F98890ACCA28','AAC7C263-6E25-49DC-985B-DC3FA7AAF3A1','',1)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('6EC0B8E7-4612-4D41-8274-8CAA884A23C5','AAC7C263-6E25-49DC-985B-DC3FA7AAF3A1','',2)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('C610B07D-5AC7-4135-97C8-F926AD8AD6D1','AAC7C263-6E25-49DC-985B-DC3FA7AAF3A1','ɾ',3)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('FBA6A803-B81B-4415-BAF3-B998BE113AA6','AAC7C263-6E25-49DC-985B-DC3FA7AAF3A1','',4)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('C4ACDB39-C54D-48FF-8612-1E805E023B3D','AAC7C263-6E25-49DC-985B-DC3FA7AAF3A1','沢ϱ',5)
+ go
+
+insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+values('CF9C1F00-34B8-42E5-B2D1-704094169CA3','ȹĿϢ','ZHGL/Information/QuarterlyProjectQuality.aspx',120,'ERDXV53M-09B1-6UIO-3EFM-5DVZDF329001','Menu_ZHGL',1,1,1)
+go
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('FA8D2BB9-0C94-420A-BD04-96A6CE473552','CF9C1F00-34B8-42E5-B2D1-704094169CA3','',1)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('8D88009F-F4DB-4D91-82DD-936FC68690F1','CF9C1F00-34B8-42E5-B2D1-704094169CA3','',2)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('E9DE1C73-803B-45DC-8F76-517521183EEA','CF9C1F00-34B8-42E5-B2D1-704094169CA3','ɾ',3)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('DA437AA6-0728-444E-9A42-D48443606475','CF9C1F00-34B8-42E5-B2D1-704094169CA3','',4)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('A5156A57-B748-4F59-955B-1B37444694CF','CF9C1F00-34B8-42E5-B2D1-704094169CA3','沢ϱ',5)
+ go
+
+
+CREATE TABLE [dbo].[InformationProject_WorkSummaryReport](
+ [WorkSummaryReportId] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [UnitId] [nvarchar](50) NULL,
+ [YearId] [int] NULL,
+ [ResponsiblePerson] [nvarchar](50) NULL,
+ [ResponsiblePersonTel] [nvarchar](50) NULL,
+ [ContactPerson] [nvarchar](50) NULL,
+ [ContactPersonTel] [nvarchar](50) NULL,
+ [ReportDate] [datetime] NULL,
+ [SafeLaborTime] [decimal](18, 2) NULL,
+ [SafetyObjectives] [nvarchar](500) NULL,
+ [AccidentSituation] [nvarchar](500) NULL,
+ [Awards] [nvarchar](500) NULL,
+ [WorkDevelopment] [nvarchar](500) NULL,
+ [PersonnelTraining] [nvarchar](500) NULL,
+ [GovernanceSituation] [nvarchar](500) NULL,
+ [ManagementActivity] [nvarchar](500) NULL,
+ [WorkExperience] [nvarchar](500) NULL,
+ [Countermeasures] [nvarchar](500) NULL,
+ [NextYearWorkPlan] [nvarchar](500) NULL,
+ [JobSuggestion] [nvarchar](500) NULL,
+ [CompileMan] [nvarchar](50) NULL,
+ [CompileDate] [datetime] NULL,
+ CONSTRAINT [PK_InformationProject_WorkSummaryReport] PRIMARY KEY CLUSTERED
+(
+ [WorkSummaryReportId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+ALTER TABLE [dbo].[InformationProject_WorkSummaryReport] WITH CHECK ADD CONSTRAINT [FK_InformationProject_WorkSummaryReport_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+GO
+
+ALTER TABLE [dbo].[InformationProject_WorkSummaryReport] CHECK CONSTRAINT [FK_InformationProject_WorkSummaryReport_Base_Project]
+GO
+
+ALTER TABLE [dbo].[InformationProject_WorkSummaryReport] WITH CHECK ADD CONSTRAINT [FK_InformationProject_WorkSummaryReport_Base_Unit] FOREIGN KEY([UnitId])
+REFERENCES [dbo].[Base_Unit] ([UnitId])
+GO
+
+ALTER TABLE [dbo].[InformationProject_WorkSummaryReport] CHECK CONSTRAINT [FK_InformationProject_WorkSummaryReport_Base_Unit]
+GO
+
+ALTER TABLE [dbo].[InformationProject_WorkSummaryReport] WITH CHECK ADD CONSTRAINT [FK_InformationProject_WorkSummaryReport_Sys_User] FOREIGN KEY([CompileMan])
+REFERENCES [dbo].[Sys_User] ([UserId])
+GO
+
+ALTER TABLE [dbo].[InformationProject_WorkSummaryReport] CHECK CONSTRAINT [FK_InformationProject_WorkSummaryReport_Sys_User]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'UnitId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'YearId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ResponsiblePerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'˵绰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ResponsiblePersonTel'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ContactPerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϵ˵绰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ContactPersonTel'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ReportDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫ˹ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'SafeLaborTime'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫĿ꼰Ӧݽܽᣩ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'SafetyObjectives'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫ¹' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'AccidentSituation'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'Awards'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ص㹤չ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'WorkDevelopment'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Աѵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'PersonnelTraining'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'֯չȫල顢Ų' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'GovernanceSituation'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫ¡ְҵܵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ManagementActivity'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ҫ鼰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'WorkExperience'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ҫ⼰ӦԴʩ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'Countermeasures'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'һȹƻ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'NextYearWorkPlan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ԼŹ˾Ĺ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'JobSuggestion'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'CompileMan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'CompileDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫܽᱨ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_WorkSummaryReport'
+GO
+
+
+CREATE TABLE [dbo].[InformationProject_QualityWorkSummaryReport](
+ [QualityWorkSummaryReportId] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [UnitId] [nvarchar](50) NULL,
+ [YearId] [int] NULL,
+ [ResponsiblePerson] [nvarchar](50) NULL,
+ [ResponsiblePersonTel] [nvarchar](50) NULL,
+ [ContactPerson] [nvarchar](50) NULL,
+ [ContactPersonTel] [nvarchar](50) NULL,
+ [ReportDate] [datetime] NULL,
+ [Performance] [nvarchar](500) NULL,
+ [AccidentSituation] [nvarchar](500) NULL,
+ [Awards] [nvarchar](500) NULL,
+ [WorkDevelopment] [nvarchar](500) NULL,
+ [PersonnelTraining] [nvarchar](500) NULL,
+ [CheckSituation] [nvarchar](500) NULL,
+ [ManagementActivity] [nvarchar](500) NULL,
+ [WorkExperience] [nvarchar](500) NULL,
+ [Countermeasures] [nvarchar](500) NULL,
+ [NextYearWorkPlan] [nvarchar](500) NULL,
+ [JobSuggestion] [nvarchar](500) NULL,
+ [CompileMan] [nvarchar](50) NULL,
+ [CompileDate] [datetime] NULL,
+ CONSTRAINT [PK_InformationProject_QualityWorkSummaryReport] PRIMARY KEY CLUSTERED
+(
+ [QualityWorkSummaryReportId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+ALTER TABLE [dbo].[InformationProject_QualityWorkSummaryReport] WITH CHECK ADD CONSTRAINT [FK_InformationProject_QualityWorkSummaryReport_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+GO
+
+ALTER TABLE [dbo].[InformationProject_QualityWorkSummaryReport] CHECK CONSTRAINT [FK_InformationProject_QualityWorkSummaryReport_Base_Project]
+GO
+
+ALTER TABLE [dbo].[InformationProject_QualityWorkSummaryReport] WITH CHECK ADD CONSTRAINT [FK_InformationProject_QualityWorkSummaryReport_Base_Unit] FOREIGN KEY([UnitId])
+REFERENCES [dbo].[Base_Unit] ([UnitId])
+GO
+
+ALTER TABLE [dbo].[InformationProject_QualityWorkSummaryReport] CHECK CONSTRAINT [FK_InformationProject_QualityWorkSummaryReport_Base_Unit]
+GO
+
+ALTER TABLE [dbo].[InformationProject_QualityWorkSummaryReport] WITH CHECK ADD CONSTRAINT [FK_InformationProject_QualityWorkSummaryReport_Sys_User] FOREIGN KEY([CompileMan])
+REFERENCES [dbo].[Sys_User] ([UserId])
+GO
+
+ALTER TABLE [dbo].[InformationProject_QualityWorkSummaryReport] CHECK CONSTRAINT [FK_InformationProject_QualityWorkSummaryReport_Sys_User]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'UnitId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'YearId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ResponsiblePerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'˵绰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ResponsiblePersonTel'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ContactPerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϵ˵绰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ContactPersonTel'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ReportDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Чλ״ȣ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'Performance'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¹' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'AccidentSituation'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'Awards'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'жص㹤չ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'WorkDevelopment'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Աѵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'PersonnelTraining'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'֯չල' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'CheckSituation'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'µ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ManagementActivity'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ҫ鼰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'WorkExperience'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ҫ⼰ӦԴʩ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'Countermeasures'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'һȹƻ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'NextYearWorkPlan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ԼŹ˾Ĺ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'JobSuggestion'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'CompileMan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϱʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'CompileDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܽᱨ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QualityWorkSummaryReport'
+GO
+
+
+CREATE TABLE [dbo].[InformationProject_SafetyBriefing](
+ [SafetyBriefingId] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [UnitId] [nvarchar](50) NULL,
+ [YearId] [int] NULL,
+ [Month] [int] NULL,
+ [CompileMan] [nvarchar](50) NULL,
+ [CompileDate] [datetime] NULL,
+ [Auditor] [nvarchar](50) NULL,
+ [Approver] [nvarchar](50) NULL,
+ [MainWork] [nvarchar](500) NULL,
+ [HazardRecording] [nvarchar](500) NULL,
+ [SafetyAccident] [nvarchar](50) NULL,
+ [EPAccident] [nvarchar](50) NULL,
+ [OHAccident] [nvarchar](50) NULL,
+ [WorkPermitNum] [nvarchar](500) NULL,
+ [HiddenDangerDetection] [nvarchar](500) NULL,
+ [RectificationSituation] [nvarchar](500) NULL,
+ [CheckProblemsRectification] [nvarchar](500) NULL,
+ [PendingProject] [nvarchar](500) NULL,
+ [ContractorManagement] [nvarchar](500) NULL,
+ [EnvironmentalEmissions] [nvarchar](500) NULL,
+ [NextMonthWorkPlan] [nvarchar](500) NULL,
+ CONSTRAINT [PK_InfomationProject_SafetyBriefing] PRIMARY KEY CLUSTERED
+(
+ [SafetyBriefingId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+ALTER TABLE [dbo].[InformationProject_SafetyBriefing] WITH CHECK ADD CONSTRAINT [FK_InfomationProject_SafetyBriefing_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+GO
+
+ALTER TABLE [dbo].[InformationProject_SafetyBriefing] CHECK CONSTRAINT [FK_InfomationProject_SafetyBriefing_Base_Project]
+GO
+
+ALTER TABLE [dbo].[InformationProject_SafetyBriefing] WITH CHECK ADD CONSTRAINT [FK_InfomationProject_SafetyBriefing_Base_Unit] FOREIGN KEY([UnitId])
+REFERENCES [dbo].[Base_Unit] ([UnitId])
+GO
+
+ALTER TABLE [dbo].[InformationProject_SafetyBriefing] CHECK CONSTRAINT [FK_InfomationProject_SafetyBriefing_Base_Unit]
+GO
+
+ALTER TABLE [dbo].[InformationProject_SafetyBriefing] WITH CHECK ADD CONSTRAINT [FK_InfomationProject_SafetyBriefing_Sys_User] FOREIGN KEY([CompileMan])
+REFERENCES [dbo].[Sys_User] ([UserId])
+GO
+
+ALTER TABLE [dbo].[InformationProject_SafetyBriefing] CHECK CONSTRAINT [FK_InfomationProject_SafetyBriefing_Sys_User]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'SafetyBriefingId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'ProjectId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'UnitId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'YearId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'Month'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'CompileMan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϱʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'CompileDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'Auditor'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'Approver'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ҫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'MainWork'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'شΣԴ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'HazardRecording'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫ¹' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'SafetyAccident'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¹' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'EPAccident'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ְҵ¹' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'OHAccident'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵ֤ͳ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'WorkPermitNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ŲĿ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'HiddenDangerDetection'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'RectificationSituation'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ż' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'CheckProblemsRectification'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ɵĿ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'PendingProject'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'а̹' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'ContractorManagement'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ŷ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'EnvironmentalEmissions'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'°ȫƻ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'NextMonthWorkPlan'
+GO
+
+
+CREATE TABLE [dbo].[Information_SafetyBriefing](
+ [SafetyBriefingId] [nvarchar](50) NOT NULL,
+ [UnitId] [nvarchar](50) NULL,
+ [YearId] [int] NULL,
+ [Month] [int] NULL,
+ [CompileMan] [nvarchar](50) NULL,
+ [CompileDate] [datetime] NULL,
+ [Auditor] [nvarchar](50) NULL,
+ [Approver] [nvarchar](50) NULL,
+ [MainWork] [nvarchar](max) NULL,
+ [HazardRecording] [nvarchar](max) NULL,
+ [SafetyAccident] [nvarchar](max) NULL,
+ [EPAccident] [nvarchar](max) NULL,
+ [OHAccident] [nvarchar](max) NULL,
+ [WorkPermitNum] [nvarchar](max) NULL,
+ [HiddenDangerDetection] [nvarchar](max) NULL,
+ [RectificationSituation] [nvarchar](max) NULL,
+ [CheckProblemsRectification] [nvarchar](max) NULL,
+ [PendingProject] [nvarchar](max) NULL,
+ [ContractorManagement] [nvarchar](max) NULL,
+ [EnvironmentalEmissions] [nvarchar](max) NULL,
+ [NextMonthWorkPlan] [nvarchar](max) NULL,
+ [UpState] [char](1) NULL,
+ CONSTRAINT [PK_Infomation_SafetyBriefing] PRIMARY KEY CLUSTERED
+(
+ [SafetyBriefingId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
+
+GO
+
+SET ANSI_PADDING OFF
+GO
+
+ALTER TABLE [dbo].[Information_SafetyBriefing] WITH CHECK ADD CONSTRAINT [FK_Information_SafetyBriefing_Base_Unit] FOREIGN KEY([UnitId])
+REFERENCES [dbo].[Base_Unit] ([UnitId])
+GO
+
+ALTER TABLE [dbo].[Information_SafetyBriefing] CHECK CONSTRAINT [FK_Information_SafetyBriefing_Base_Unit]
+GO
+
+ALTER TABLE [dbo].[Information_SafetyBriefing] WITH CHECK ADD CONSTRAINT [FK_Information_SafetyBriefing_Sys_User] FOREIGN KEY([CompileMan])
+REFERENCES [dbo].[Sys_User] ([UserId])
+GO
+
+ALTER TABLE [dbo].[Information_SafetyBriefing] CHECK CONSTRAINT [FK_Information_SafetyBriefing_Sys_User]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'SafetyBriefingId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'UnitId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'YearId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'Month'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'CompileMan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϱʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'CompileDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'Auditor'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'Approver'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ҫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'MainWork'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'شΣԴ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'HazardRecording'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫ¹' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'SafetyAccident'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¹' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'EPAccident'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ְҵ¹' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'OHAccident'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵ֤ͳ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'WorkPermitNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ŲĿ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'HiddenDangerDetection'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'RectificationSituation'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ż' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'CheckProblemsRectification'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ɵĿ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'PendingProject'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'а̹' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'ContractorManagement'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ŷ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'EnvironmentalEmissions'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'°ȫƻ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyBriefing', @level2type=N'COLUMN',@level2name=N'NextMonthWorkPlan'
+GO
+
+
+
+CREATE TABLE [dbo].[InformationProject_QuarterlyProjectQuality](
+ [QuarterlyProjectQualityId] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [UnitId] [nvarchar](50) NULL,
+ [Year] [int] NULL,
+ [Quarter] [int] NULL,
+ [QualityManagePersonNum] [int] NULL,
+ [AdvancedTitlePersonNum] [int] NULL,
+ [IntermediateTitlePersonNum] [int] NULL,
+ [BeImplementedProjectNum] [int] NULL,
+ [StartImplementedProjectNum] [int] NULL,
+ [AccumulativeStartImplemented] [int] NULL,
+ [CompleteProjectNum] [int] NULL,
+ [YearCompleteProjectNum] [int] NULL,
+ [QuarterTotal] [int] NULL,
+ [QuarterFirstPassNum] [int] NULL,
+ [QuarterFirstPassRate] [decimal](18, 2) NULL,
+ [YearTotal] [int] NULL,
+ [YearFirstPassNum] [int] NULL,
+ [YearFirstPassRate] [decimal](18, 2) NULL,
+ [QuaterCheckSuperviseNum] [int] NULL,
+ [QuaterCorrectiveNoticeNum] [int] NULL,
+ [QuaterQualityProblemNum] [int] NULL,
+ [QuaterClosedQualityProblemNum] [int] NULL,
+ [YearCheckSuperviseNum] [int] NULL,
+ [YearCorrectiveNoticeNum] [int] NULL,
+ [YearQualityProblemNum] [int] NULL,
+ [YearClosedQualityProblemNum] [int] NULL,
+ [QuaterQualityAccidentNum] [int] NULL,
+ [QuaterDirectEconomicLoss] [decimal](18, 2) NULL,
+ [YearQualityAccidentNum] [int] NULL,
+ [YearDirectEconomicLoss] [decimal](18, 2) NULL,
+ [ResponsiblePerson] [nvarchar](50) NULL,
+ [CompileMan] [nvarchar](50) NULL,
+ [CompileDate] [datetime] NULL,
+ [Tel] [nvarchar](50) NULL,
+ CONSTRAINT [PK_InformationProject_QuarterlyProjectQuality] PRIMARY KEY CLUSTERED
+(
+ [QuarterlyProjectQualityId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+ALTER TABLE [dbo].[InformationProject_QuarterlyProjectQuality] WITH CHECK ADD CONSTRAINT [FK_InformationProject_QuarterlyProjectQuality_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+GO
+
+ALTER TABLE [dbo].[InformationProject_QuarterlyProjectQuality] CHECK CONSTRAINT [FK_InformationProject_QuarterlyProjectQuality_Base_Project]
+GO
+
+ALTER TABLE [dbo].[InformationProject_QuarterlyProjectQuality] WITH CHECK ADD CONSTRAINT [FK_InformationProject_QuarterlyProjectQuality_Base_Unit] FOREIGN KEY([UnitId])
+REFERENCES [dbo].[Base_Unit] ([UnitId])
+GO
+
+ALTER TABLE [dbo].[InformationProject_QuarterlyProjectQuality] CHECK CONSTRAINT [FK_InformationProject_QuarterlyProjectQuality_Base_Unit]
+GO
+
+ALTER TABLE [dbo].[InformationProject_QuarterlyProjectQuality] WITH CHECK ADD CONSTRAINT [FK_InformationProject_QuarterlyProjectQuality_Sys_User] FOREIGN KEY([CompileMan])
+REFERENCES [dbo].[Sys_User] ([UserId])
+GO
+
+ALTER TABLE [dbo].[InformationProject_QuarterlyProjectQuality] CHECK CONSTRAINT [FK_InformationProject_QuarterlyProjectQuality_Sys_User]
+GO
+
+ALTER TABLE [dbo].[InformationProject_QuarterlyProjectQuality] WITH CHECK ADD CONSTRAINT [FK_InformationProject_QuarterlyProjectQuality_Sys_User1] FOREIGN KEY([ResponsiblePerson])
+REFERENCES [dbo].[Sys_User] ([UserId])
+GO
+
+ALTER TABLE [dbo].[InformationProject_QuarterlyProjectQuality] CHECK CONSTRAINT [FK_InformationProject_QuarterlyProjectQuality_Sys_User1]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'QuarterlyProjectQualityId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'ProjectId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'UnitId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'Year'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'Quarter'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'רְԱˣ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'QualityManagePersonNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'оиְˣ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'AdvancedTitlePersonNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'омְˣ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'IntermediateTitlePersonNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʵʩĿ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'BeImplementedProjectNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȿʼʵʩĿ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'StartImplementedProjectNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼƿʼʵʩĿ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'AccumulativeStartImplemented'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ɣĿ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'CompleteProjectNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼɣĿ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'YearCompleteProjectNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'QuarterTotal'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'һκϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'QuarterFirstPassNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'һκϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'QuarterFirstPassRate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'YearTotal'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼһκϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'YearFirstPassNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼһκϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'YearFirstPassRate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȿչලΣ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'QuaterCheckSuperviseNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȷ֪ͨݣ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'QuaterCorrectiveNoticeNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'漰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'QuaterQualityProblemNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ѹر' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'QuaterClosedQualityProblemNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼɿչලΣ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'YearCheckSuperviseNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼɷ֪ͨݣ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'YearCorrectiveNoticeNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼ漰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'YearQualityProblemNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼѹر' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'YearClosedQualityProblemNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϴ¹--' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'QuaterQualityAccidentNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϴ¹--ֱӾʧԪ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'QuaterDirectEconomicLoss'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϴ¹--' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'YearQualityAccidentNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϴ¹--ֱӾʧԪ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'YearDirectEconomicLoss'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'ResponsiblePerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N' ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'CompileMan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'CompileDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϵ绰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'Tel'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȹĿϢ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'InformationProject_QuarterlyProjectQuality'
+GO
+
+--drop table Information_QuarterlyProjectQuality
+
+CREATE TABLE [dbo].[Information_QuarterlyProjectQuality](
+ [QuarterlyProjectQualityId] [nvarchar](50) NOT NULL,
+ [UnitId] [nvarchar](50) NULL,
+ [Year] [int] NULL,
+ [Quarter] [int] NULL,
+ [QualityManagePersonNum] [int] NULL,
+ [AdvancedTitlePersonNum] [int] NULL,
+ [IntermediateTitlePersonNum] [int] NULL,
+ [BeImplementedProjectNum] [int] NULL,
+ [StartImplementedProjectNum] [int] NULL,
+ [AccumulativeStartImplemented] [int] NULL,
+ [CompleteProjectNum] [int] NULL,
+ [YearCompleteProjectNum] [int] NULL,
+ [QuarterTotal] [int] NULL,
+ [QuarterFirstPassNum] [int] NULL,
+ [QuarterFirstPassRate] [decimal](18, 2) NULL,
+ [YearTotal] [int] NULL,
+ [YearFirstPassNum] [int] NULL,
+ [YearFirstPassRate] [decimal](18, 2) NULL,
+ [QuaterCheckSuperviseNum] [int] NULL,
+ [QuaterCorrectiveNoticeNum] [int] NULL,
+ [QuaterQualityProblemNum] [int] NULL,
+ [QuaterClosedQualityProblemNum] [int] NULL,
+ [YearCheckSuperviseNum] [int] NULL,
+ [YearCorrectiveNoticeNum] [int] NULL,
+ [YearQualityProblemNum] [int] NULL,
+ [YearClosedQualityProblemNum] [int] NULL,
+ [QuaterQualityAccidentNum] [int] NULL,
+ [QuaterDirectEconomicLoss] [decimal](18, 2) NULL,
+ [YearQualityAccidentNum] [int] NULL,
+ [YearDirectEconomicLoss] [decimal](18, 2) NULL,
+ [ResponsiblePerson] [nvarchar](50) NULL,
+ [CompileMan] [nvarchar](50) NULL,
+ [CompileDate] [datetime] NULL,
+ [Tel] [nvarchar](50) NULL,
+ [UpState] [nvarchar](50) NULL,
+ CONSTRAINT [PK_Information_QuarterlyProjectQuality] PRIMARY KEY CLUSTERED
+(
+ [QuarterlyProjectQualityId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+ALTER TABLE [dbo].[Information_QuarterlyProjectQuality] WITH CHECK ADD CONSTRAINT [FK_Information_QuarterlyProjectQuality_Base_Unit] FOREIGN KEY([UnitId])
+REFERENCES [dbo].[Base_Unit] ([UnitId])
+GO
+
+ALTER TABLE [dbo].[Information_QuarterlyProjectQuality] CHECK CONSTRAINT [FK_Information_QuarterlyProjectQuality_Base_Unit]
+GO
+
+ALTER TABLE [dbo].[Information_QuarterlyProjectQuality] WITH CHECK ADD CONSTRAINT [FK_Information_QuarterlyProjectQuality_Sys_User] FOREIGN KEY([CompileMan])
+REFERENCES [dbo].[Sys_User] ([UserId])
+GO
+
+ALTER TABLE [dbo].[Information_QuarterlyProjectQuality] CHECK CONSTRAINT [FK_Information_QuarterlyProjectQuality_Sys_User]
+GO
+
+ALTER TABLE [dbo].[Information_QuarterlyProjectQuality] WITH CHECK ADD CONSTRAINT [FK_Information_QuarterlyProjectQuality_Sys_User1] FOREIGN KEY([ResponsiblePerson])
+REFERENCES [dbo].[Sys_User] ([UserId])
+GO
+
+ALTER TABLE [dbo].[Information_QuarterlyProjectQuality] CHECK CONSTRAINT [FK_Information_QuarterlyProjectQuality_Sys_User1]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'QuarterlyProjectQualityId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'UnitId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'Year'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'Quarter'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'רְԱˣ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'QualityManagePersonNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'оиְˣ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'AdvancedTitlePersonNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'омְˣ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'IntermediateTitlePersonNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʵʩĿ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'BeImplementedProjectNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȿʼʵʩĿ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'StartImplementedProjectNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼƿʼʵʩĿ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'AccumulativeStartImplemented'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ɣĿ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'CompleteProjectNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼɣĿ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'YearCompleteProjectNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'QuarterTotal'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'һκϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'QuarterFirstPassNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'һκϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'QuarterFirstPassRate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'YearTotal'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼһκϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'YearFirstPassNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼһκϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'YearFirstPassRate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȿչලΣ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'QuaterCheckSuperviseNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȷ֪ͨݣ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'QuaterCorrectiveNoticeNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'漰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'QuaterQualityProblemNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ѹر' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'QuaterClosedQualityProblemNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼɿչලΣ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'YearCheckSuperviseNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼɷ֪ͨݣ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'YearCorrectiveNoticeNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼ漰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'YearQualityProblemNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼѹر' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'YearClosedQualityProblemNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϴ¹--' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'QuaterQualityAccidentNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϴ¹--ֱӾʧԪ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'QuaterDirectEconomicLoss'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϴ¹--' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'YearQualityAccidentNum'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϴ¹--ֱӾʧԪ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'YearDirectEconomicLoss'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'ResponsiblePerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N' ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'CompileMan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'CompileDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϵ绰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality', @level2type=N'COLUMN',@level2name=N'Tel'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȹĿϢ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QuarterlyProjectQuality'
+GO
+
+
+
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'JobSuggestion'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'NextYearWorkPlan'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'Countermeasures'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'WorkExperience'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ManagementActivity'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'GovernanceSituation'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'PersonnelTraining'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'WorkDevelopment'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'Awards'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'AccidentSituation'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'SafetyObjectives'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'SafeLaborTime'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ReportDate'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ContactPersonTel'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ContactPerson'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ResponsiblePersonTel'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ResponsiblePerson'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'YearId'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'UnitId'
+
+GO
+
+ALTER TABLE [dbo].[Information_WorkSummaryReport] DROP CONSTRAINT [FK_Information_WorkSummaryReport_Base_Unit]
+GO
+
+/****** Object: Table [dbo].[Information_WorkSummaryReport] Script Date: 2023/3/25 22:34:19 ******/
+DROP TABLE [dbo].[Information_WorkSummaryReport]
+GO
+
+/****** Object: Table [dbo].[Information_WorkSummaryReport] Script Date: 2023/3/25 22:34:19 ******/
+SET ANSI_NULLS ON
+GO
+
+SET QUOTED_IDENTIFIER ON
+GO
+
+SET ANSI_PADDING ON
+GO
+
+CREATE TABLE [dbo].[Information_WorkSummaryReport](
+ [WorkSummaryReportId] [nvarchar](50) NOT NULL,
+ [UnitId] [nvarchar](50) NULL,
+ [YearId] [int] NULL,
+ [ResponsiblePerson] [nvarchar](50) NULL,
+ [ResponsiblePersonTel] [nvarchar](50) NULL,
+ [ContactPerson] [nvarchar](50) NULL,
+ [ContactPersonTel] [nvarchar](50) NULL,
+ [ReportDate] [datetime] NULL,
+ [SafeLaborTime] [decimal](18, 2) NULL,
+ [SafetyObjectives] [nvarchar](max) NULL,
+ [AccidentSituation] [nvarchar](max) NULL,
+ [Awards] [nvarchar](max) NULL,
+ [WorkDevelopment] [nvarchar](max) NULL,
+ [PersonnelTraining] [nvarchar](max) NULL,
+ [GovernanceSituation] [nvarchar](max) NULL,
+ [ManagementActivity] [nvarchar](max) NULL,
+ [WorkExperience] [nvarchar](max) NULL,
+ [Countermeasures] [nvarchar](max) NULL,
+ [NextYearWorkPlan] [nvarchar](max) NULL,
+ [JobSuggestion] [nvarchar](max) NULL,
+ [UpState] [char](1) NULL,
+ CONSTRAINT [PK_Information_WorkSummaryReport] PRIMARY KEY CLUSTERED
+(
+ [WorkSummaryReportId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
+
+GO
+
+SET ANSI_PADDING OFF
+GO
+
+ALTER TABLE [dbo].[Information_WorkSummaryReport] WITH CHECK ADD CONSTRAINT [FK_Information_WorkSummaryReport_Base_Unit] FOREIGN KEY([UnitId])
+REFERENCES [dbo].[Base_Unit] ([UnitId])
+GO
+
+ALTER TABLE [dbo].[Information_WorkSummaryReport] CHECK CONSTRAINT [FK_Information_WorkSummaryReport_Base_Unit]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'UnitId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'YearId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ResponsiblePerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'˵绰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ResponsiblePersonTel'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ContactPerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϵ˵绰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ContactPersonTel'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ReportDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫ˹ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'SafeLaborTime'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫĿ꼰Ӧݽܽᣩ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'SafetyObjectives'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫ¹' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'AccidentSituation'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'Awards'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ص㹤չ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'WorkDevelopment'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Աѵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'PersonnelTraining'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'֯չȫල顢Ų' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'GovernanceSituation'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫ¡ְҵܵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ManagementActivity'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ҫ鼰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'WorkExperience'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ҫ⼰ӦԴʩ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'Countermeasures'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'һȹƻ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'NextYearWorkPlan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ԼŹ˾Ĺ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport', @level2type=N'COLUMN',@level2name=N'JobSuggestion'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫܽᱨ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_WorkSummaryReport'
+GO
+
+
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'JobSuggestion'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'NextYearWorkPlan'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'Countermeasures'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'WorkExperience'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ManagementActivity'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'CheckSituation'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'PersonnelTraining'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'WorkDevelopment'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'Awards'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'AccidentSituation'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'Performance'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ReportDate'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ContactPersonTel'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ContactPerson'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ResponsiblePersonTel'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ResponsiblePerson'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'YearId'
+
+GO
+
+EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'UnitId'
+
+GO
+
+ALTER TABLE [dbo].[Information_QualityWorkSummaryReport] DROP CONSTRAINT [FK_Information_QualityWorkSummaryReport_Base_Unit]
+GO
+
+/****** Object: Table [dbo].[Information_QualityWorkSummaryReport] Script Date: 2023/3/25 22:34:49 ******/
+DROP TABLE [dbo].[Information_QualityWorkSummaryReport]
+GO
+
+/****** Object: Table [dbo].[Information_QualityWorkSummaryReport] Script Date: 2023/3/25 22:34:49 ******/
+SET ANSI_NULLS ON
+GO
+
+SET QUOTED_IDENTIFIER ON
+GO
+
+SET ANSI_PADDING ON
+GO
+
+CREATE TABLE [dbo].[Information_QualityWorkSummaryReport](
+ [QualityWorkSummaryReportId] [nvarchar](50) NOT NULL,
+ [UnitId] [nvarchar](50) NULL,
+ [YearId] [int] NULL,
+ [ResponsiblePerson] [nvarchar](50) NULL,
+ [ResponsiblePersonTel] [nvarchar](50) NULL,
+ [ContactPerson] [nvarchar](50) NULL,
+ [ContactPersonTel] [nvarchar](50) NULL,
+ [ReportDate] [datetime] NULL,
+ [Performance] [nvarchar](max) NULL,
+ [AccidentSituation] [nvarchar](max) NULL,
+ [Awards] [nvarchar](max) NULL,
+ [WorkDevelopment] [nvarchar](max) NULL,
+ [PersonnelTraining] [nvarchar](max) NULL,
+ [CheckSituation] [nvarchar](max) NULL,
+ [ManagementActivity] [nvarchar](max) NULL,
+ [WorkExperience] [nvarchar](max) NULL,
+ [Countermeasures] [nvarchar](max) NULL,
+ [NextYearWorkPlan] [nvarchar](max) NULL,
+ [JobSuggestion] [nvarchar](max) NULL,
+ [UpState] [char](1) NULL,
+ CONSTRAINT [PK_Information_QualityWorkSummaryReport] PRIMARY KEY CLUSTERED
+(
+ [QualityWorkSummaryReportId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
+
+GO
+
+SET ANSI_PADDING OFF
+GO
+
+ALTER TABLE [dbo].[Information_QualityWorkSummaryReport] WITH CHECK ADD CONSTRAINT [FK_Information_QualityWorkSummaryReport_Base_Unit] FOREIGN KEY([UnitId])
+REFERENCES [dbo].[Base_Unit] ([UnitId])
+GO
+
+ALTER TABLE [dbo].[Information_QualityWorkSummaryReport] CHECK CONSTRAINT [FK_Information_QualityWorkSummaryReport_Base_Unit]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'UnitId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'YearId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ResponsiblePerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'˵绰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ResponsiblePersonTel'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ContactPerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϵ˵绰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ContactPersonTel'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ReportDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Чλ״ȣ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'Performance'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¹' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'AccidentSituation'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'Awards'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'жص㹤չ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'WorkDevelopment'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Աѵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'PersonnelTraining'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'֯չල' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'CheckSituation'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'µ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'ManagementActivity'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ҫ鼰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'WorkExperience'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ҫ⼰ӦԴʩ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'Countermeasures'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'һȹƻ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'NextYearWorkPlan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ԼŹ˾Ĺ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport', @level2type=N'COLUMN',@level2name=N'JobSuggestion'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܽᱨ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_QualityWorkSummaryReport'
+GO
+
+
+
+insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+values('FD572EFA-8E87-43D1-B514-25A39768106F','̬ܽᱨ','HSSE/InformationProject/EPSummaryReport.aspx',90,'C554E471-B740-4559-B543-E00F247289FD','Menu_HSSE',0,1,1)
+go
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('CB232557-CC35-459B-AFFE-F5F8F7C1D920','FD572EFA-8E87-43D1-B514-25A39768106F','',1)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('E45E505D-B790-45DC-AFC3-81D1AE987B89','FD572EFA-8E87-43D1-B514-25A39768106F','',2)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('9E6C0E2C-E432-41FF-B07C-D959440AEDC6','FD572EFA-8E87-43D1-B514-25A39768106F','ɾ',3)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('23F57663-B49D-4FA8-BBBD-BB7155F661CE','FD572EFA-8E87-43D1-B514-25A39768106F','',4)
+ go
+
+insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+values('5B344750-79DD-40AA-8AA7-34B04E41FA72','̬ܽᱨ','ZHGL/Information/EPSummaryReport.aspx',130,'ERDXV53M-09B1-6UIO-3EFM-5DVZDF329001','Menu_ZHGL',1,1,1)
+go
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('DEA42323-22EE-47EB-9C32-204674F359E8','5B344750-79DD-40AA-8AA7-34B04E41FA72','',1)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('E5E41ADA-782B-441D-A340-DE61A6812C10','5B344750-79DD-40AA-8AA7-34B04E41FA72','',2)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('D7CB0313-02BD-4457-99F2-F39DA70EC0B2','5B344750-79DD-40AA-8AA7-34B04E41FA72','ɾ',3)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('E04D28D4-04BB-457B-A05E-3A886B2E132C','5B344750-79DD-40AA-8AA7-34B04E41FA72','',4)
+ insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ values('F8DCA6D5-7B75-4903-96A1-39899DC32689','5B344750-79DD-40AA-8AA7-34B04E41FA72','沢ϱ',5)
+ go
+
+
+CREATE TABLE [dbo].[InformationProject_EPSummaryReport](
+ [EPSummaryReportId] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [UnitId] [nvarchar](50) NULL,
+ [YearId] [int] NULL,
+ [ResponsiblePerson] [nvarchar](50) NULL,
+ [ResponsiblePersonTel] [nvarchar](50) NULL,
+ [ContactPerson] [nvarchar](50) NULL,
+ [ContactPersonTel] [nvarchar](50) NULL,
+ [ReportDate] [datetime] NULL,
+ [Description1] [nvarchar](500) NULL,
+ [Description2] [nvarchar](500) NULL,
+ [Description3] [nvarchar](500) NULL,
+ [Description4] [nvarchar](500) NULL,
+ [Description5] [nvarchar](500) NULL,
+ [Description6] [nvarchar](500) NULL,
+ [Description7] [nvarchar](500) NULL,
+ [Description8] [nvarchar](500) NULL,
+ [Description9] [nvarchar](500) NULL,
+ CONSTRAINT [PK_InformationProject_EPSummaryReport] PRIMARY KEY CLUSTERED
+(
+ [EPSummaryReportId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+ALTER TABLE [dbo].[InformationProject_EPSummaryReport] WITH CHECK ADD CONSTRAINT [FK_InformationProject_EPSummaryReport_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+GO
+
+ALTER TABLE [dbo].[InformationProject_EPSummaryReport] CHECK CONSTRAINT [FK_InformationProject_EPSummaryReport_Base_Project]
+GO
+
+ALTER TABLE [dbo].[InformationProject_EPSummaryReport] WITH CHECK ADD CONSTRAINT [FK_InformationProject_EPSummaryReport_Base_Unit] FOREIGN KEY([UnitId])
+REFERENCES [dbo].[Base_Unit] ([UnitId])
+GO
+
+ALTER TABLE [dbo].[InformationProject_EPSummaryReport] CHECK CONSTRAINT [FK_InformationProject_EPSummaryReport_Base_Unit]
+GO
+
+
+CREATE TABLE [dbo].[Information_EPSummaryReport](
+ [EPSummaryReportId] [nvarchar](50) NOT NULL,
+ [UnitId] [nvarchar](50) NULL,
+ [YearId] [int] NULL,
+ [ResponsiblePerson] [nvarchar](50) NULL,
+ [ResponsiblePersonTel] [nvarchar](50) NULL,
+ [ContactPerson] [nvarchar](50) NULL,
+ [ContactPersonTel] [nvarchar](50) NULL,
+ [ReportDate] [datetime] NULL,
+ [Description1] [nvarchar](max) NULL,
+ [Description2] [nvarchar](max) NULL,
+ [Description3] [nvarchar](max) NULL,
+ [Description4] [nvarchar](max) NULL,
+ [Description5] [nvarchar](max) NULL,
+ [Description6] [nvarchar](max) NULL,
+ [Description7] [nvarchar](max) NULL,
+ [Description8] [nvarchar](max) NULL,
+ [Description9] [nvarchar](max) NULL,
+ [UpState] [char](1) NULL,
+ CONSTRAINT [PK_Information_EPSummaryReport] PRIMARY KEY CLUSTERED
+(
+ [EPSummaryReportId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
+
+GO
+
+SET ANSI_PADDING OFF
+GO
+
+ALTER TABLE [dbo].[Information_EPSummaryReport] WITH CHECK ADD CONSTRAINT [FK_Information_EPSummaryReport_Base_Unit] FOREIGN KEY([UnitId])
+REFERENCES [dbo].[Base_Unit] ([UnitId])
+GO
+
+ALTER TABLE [dbo].[Information_EPSummaryReport] CHECK CONSTRAINT [FK_Information_EPSummaryReport_Base_Unit]
+GO
+
+
+
+
+
+ALTER TABLE dbo.Environmental_OperationReport ADD
+ UpState char(1) NULL
+GO
+DECLARE @v sql_variant
+SET @v = N'ϱ״̬'
+EXECUTE sp_addextendedproperty N'MS_Description', @v, N'SCHEMA', N'dbo', N'TABLE', N'Environmental_OperationReport', N'COLUMN', N'UpState'
+GO
+
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('30579BFE-AB4B-49A7-A73D-B7CE902A8B69','ҵܻҵҵͷҵ','ZHGL/Environmental/EnergyReport.aspx',90,'ERDXV53M-09B1-6UIO-3EFM-5DVZDF329001','Menu_ZHGL',1,1,1)
+ GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('B13C617B-C152-4B09-92C6-C14E3B7F9150','30579BFE-AB4B-49A7-A73D-B7CE902A8B69','',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('35C3D2C5-F980-4160-A0B5-95733DE0D41E','30579BFE-AB4B-49A7-A73D-B7CE902A8B69','',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('56F9E8D7-E218-48CC-A06A-93FD8B8C57AC','30579BFE-AB4B-49A7-A73D-B7CE902A8B69','ɾ',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('2702BC5C-0D02-4C3F-8C75-57955AD0D170','30579BFE-AB4B-49A7-A73D-B7CE902A8B69','',4)
+ GO
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('9DE996D9-A2CF-40C8-86D3-6A472AB30E5D','ҵܻҵҵͷҵ','ZHGL/Environmental/ProjectEnergyReport.aspx',70,'C554E471-B740-4559-B543-E00F247289FD','Menu_HSSE',0,1,1)
+ GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('B7E38639-4E7A-47D3-A7F0-218921B80AD1','9DE996D9-A2CF-40C8-86D3-6A472AB30E5D','',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('E443CE17-ACED-4C3A-9D42-A068E5EC3BFF','9DE996D9-A2CF-40C8-86D3-6A472AB30E5D','',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('2B161A21-9CE8-4470-B772-715865E17AB3','9DE996D9-A2CF-40C8-86D3-6A472AB30E5D','ɾ',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('8CA53BDE-A127-40C0-8D1E-28FAB9E8A0C6','9DE996D9-A2CF-40C8-86D3-6A472AB30E5D','',4)
+ GO
+
+/****** Object: Table [dbo].[Environmental_EnergyReport] Script Date: 2023/3/26 18:01:46 ******/
+SET ANSI_NULLS ON
+GO
+
+SET QUOTED_IDENTIFIER ON
+GO
+
+SET ANSI_PADDING ON
+GO
+
+CREATE TABLE [dbo].[Environmental_EnergyReport](
+ [EnergyReportId] [nvarchar](50) NOT NULL,
+ [UnitId] [nvarchar](50) NULL,
+ [Year] [int] NULL,
+ [Quarters] [int] NULL,
+ [FillingMan] [nvarchar](50) NULL,
+ [FillingDate] [datetime] NULL,
+ [DutyPerson] [nvarchar](50) NULL,
+ [UpState] [char](1) NULL,
+ CONSTRAINT [PK_Environmental_EnergyReport] PRIMARY KEY CLUSTERED
+(
+ [EnergyReportId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+SET ANSI_PADDING OFF
+GO
+
+ALTER TABLE [dbo].[Environmental_EnergyReport] WITH CHECK ADD CONSTRAINT [FK_Environmental_EnergyReport_Base_Unit] FOREIGN KEY([UnitId])
+REFERENCES [dbo].[Base_Unit] ([UnitId])
+GO
+
+ALTER TABLE [dbo].[Environmental_EnergyReport] CHECK CONSTRAINT [FK_Environmental_EnergyReport_Base_Unit]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReport', @level2type=N'COLUMN',@level2name=N'EnergyReportId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReport', @level2type=N'COLUMN',@level2name=N'UnitId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReport', @level2type=N'COLUMN',@level2name=N'Year'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReport', @level2type=N'COLUMN',@level2name=N'Quarters'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReport', @level2type=N'COLUMN',@level2name=N'FillingMan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReport', @level2type=N'COLUMN',@level2name=N'FillingDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReport', @level2type=N'COLUMN',@level2name=N'DutyPerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵܻҵҵͷҵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReport'
+GO
+
+
+/****** Object: Table [dbo].[Environmental_EnergyReportItem] Script Date: 2023/3/26 18:28:21 ******/
+GO
+CREATE TABLE [dbo].[Environmental_EnergyReportItem](
+ [EnergyReportItemId] [nvarchar](50) NOT NULL,
+ [EnergyReportId] [nvarchar](50) NULL,
+ [SortIndex] [nvarchar](50) NULL,
+ [BusinessCategory] [nvarchar](50) NULL,
+ [Throughput_BasePeriod] [nvarchar](50) NULL,
+ [Throughput_LastPeriod] [nvarchar](50) NULL,
+ [Throughput_ThisPeriod] [nvarchar](50) NULL,
+ [Throughput_UnitOfMeasurement] [nvarchar](50) NULL,
+ [Yield_BasePeriod] [nvarchar](50) NULL,
+ [Yield_LastPeriod] [nvarchar](50) NULL,
+ [Yield_ThisPeriod] [nvarchar](50) NULL,
+ [Yield_UnitOfMeasurement] [nvarchar](50) NULL,
+ [OutputValue_BasePeriod] [nvarchar](50) NULL,
+ [OutputValue_LastYear] [nvarchar](50) NULL,
+ [OutputValue_ThisYear] [nvarchar](50) NULL,
+ [OperationScale_BasePeriod] [nvarchar](50) NULL,
+ [OperationScale_LastYear] [nvarchar](50) NULL,
+ [OperationScale_ThisYear] [nvarchar](50) NULL,
+ [OperationScale_UnitOfMeasurement] [nvarchar](50) NULL,
+ [ServiceOperatingIncome_BasePeriod] [nvarchar](50) NULL,
+ [ServiceOperatingIncome_LastYear] [nvarchar](50) NULL,
+ [ServiceOperatingIncome_ThisYear] [nvarchar](50) NULL,
+ CONSTRAINT [PK_Environmental_EnergyReportItem] PRIMARY KEY CLUSTERED
+(
+ [EnergyReportItemId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReportItem', @level2type=N'COLUMN',@level2name=N'BusinessCategory'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReportItem', @level2type=N'COLUMN',@level2name=N'Throughput_BasePeriod'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReportItem', @level2type=N'COLUMN',@level2name=N'Throughput_LastPeriod'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReportItem', @level2type=N'COLUMN',@level2name=N'Throughput_ThisPeriod'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'-λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReportItem', @level2type=N'COLUMN',@level2name=N'Throughput_UnitOfMeasurement'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReportItem', @level2type=N'COLUMN',@level2name=N'Yield_BasePeriod'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReportItem', @level2type=N'COLUMN',@level2name=N'Yield_LastPeriod'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReportItem', @level2type=N'COLUMN',@level2name=N'Yield_ThisPeriod'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'-λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReportItem', @level2type=N'COLUMN',@level2name=N'Yield_UnitOfMeasurement'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֵ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReportItem', @level2type=N'COLUMN',@level2name=N'OutputValue_BasePeriod'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֵ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReportItem', @level2type=N'COLUMN',@level2name=N'OutputValue_LastYear'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֵ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReportItem', @level2type=N'COLUMN',@level2name=N'OutputValue_ThisYear'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ӫģ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReportItem', @level2type=N'COLUMN',@level2name=N'OperationScale_BasePeriod'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ӫģ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReportItem', @level2type=N'COLUMN',@level2name=N'OperationScale_LastYear'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ӫģ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReportItem', @level2type=N'COLUMN',@level2name=N'OperationScale_ThisYear'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ӫģ-λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReportItem', @level2type=N'COLUMN',@level2name=N'OperationScale_UnitOfMeasurement'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ӫҵ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReportItem', @level2type=N'COLUMN',@level2name=N'ServiceOperatingIncome_BasePeriod'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ӫҵ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReportItem', @level2type=N'COLUMN',@level2name=N'ServiceOperatingIncome_LastYear'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ӫҵ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReportItem', @level2type=N'COLUMN',@level2name=N'ServiceOperatingIncome_ThisYear'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵܻҵҵͷҵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_EnergyReportItem'
+
+/****** Object: View [dbo].[View_Environmental_ChemicalReport] Script Date: 2023/3/26 18:33:36 ******/
+GO
+
+
+/*************ҵܻҵҵͷҵ**************/
+CREATE VIEW [dbo].[View_Environmental_EnergyReport]
+AS
+SELECT
+Report.EnergyReportId,
+Report.UnitId,
+Report.FillingDate,
+(ISNULL(Group_0008.ConstText,'-') + ISNULL(Group_0011.ConstText,'-')) AS ReportDate,
+Group_0008.ConstText as YearStr,
+Group_0011.ConstText as QuartersStr,
+U.UnitName,
+Report.Year,
+Report.Quarters,
+Report.UpState,
+Report.DutyPerson
+FROM dbo.Environmental_EnergyReport AS Report
+LEFT JOIN Base_Unit AS U ON U.UnitId=Report.UnitId
+LEFT JOIN Sys_Const AS Group_0008 ON Group_0008.GroupId='0008' AND Group_0008.ConstValue =Report.[Year]
+LEFT JOIN Sys_Const AS Group_0011 ON Group_0011.GroupId='0011' AND Group_0011.ConstValue =Report.[Quarters]
+
+GO
+
+
+
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template','ϼ','01')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 1.ܲҵ','02')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 1ܼװƷ','03')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ܹ¯/Ҥ¯','04')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' Чϵͳ','05')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' Ч','06')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 豸Ϳյ','07')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ҵװúDZ','08')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ͼҵ','09')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ɫ','10')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 豸','11')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' װ/Ʒ','12')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 2ܷ','13')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ͬԴ','14')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ','15')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 2.ҵ','16')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 1Ⱦ','17')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ','18')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' CVOCs','19')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ','20')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 2ˮȾ','21')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ˮ','22')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ũˮ','23')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ˮ','24')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ҵˮ','25')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ˮۺ','26')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ','27')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 3̷ϴ','28')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ','29')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ͳﴦ','30')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' Σշﴦ','31')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ദ','32')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ','33')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 4̬','34')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ','35')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ɽ','36')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ˮ','37')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ','38')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 5','39')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ͼ','40')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ѯ','41')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ʩ','42')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ','43')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 3.Դѭòҵ','44')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 1ڹҵ̷','45')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 2β','46')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 3ƷͷϾɽ','47')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 4ֵ','48')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 5ũַ','49')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 6Ʒַ','50')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 7ˮԴۺ','51')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 8','52')
+ insert into Environmental_EnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 9 ','53')
+
+ CREATE TABLE [dbo].[Environmental_ProjectEnergyReport](
+ [EnergyReportId] [nvarchar](50) NOT NULL,
+ [UnitId] [nvarchar](50) NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [Year] [int] NULL,
+ [Quarters] [int] NULL,
+ [FillingMan] [nvarchar](50) NULL,
+ [FillingDate] [datetime] NULL,
+ [DutyPerson] [nvarchar](50) NULL,
+ [UpState] [char](1) NULL,
+ CONSTRAINT [PK_Environmental_ProjectEnergyReport] PRIMARY KEY CLUSTERED
+(
+ [EnergyReportId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+SET ANSI_PADDING OFF
+GO
+
+ALTER TABLE [dbo].[Environmental_ProjectEnergyReport] WITH CHECK ADD CONSTRAINT [FK_Environmental_ProjectEnergyReport_Base_Unit] FOREIGN KEY([UnitId])
+REFERENCES [dbo].[Base_Unit] ([UnitId])
+GO
+
+ALTER TABLE [dbo].[Environmental_ProjectEnergyReport] CHECK CONSTRAINT [FK_Environmental_ProjectEnergyReport_Base_Unit]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReport', @level2type=N'COLUMN',@level2name=N'EnergyReportId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReport', @level2type=N'COLUMN',@level2name=N'UnitId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReport', @level2type=N'COLUMN',@level2name=N'Year'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReport', @level2type=N'COLUMN',@level2name=N'Quarters'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReport', @level2type=N'COLUMN',@level2name=N'FillingMan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReport', @level2type=N'COLUMN',@level2name=N'FillingDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReport', @level2type=N'COLUMN',@level2name=N'DutyPerson'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵܻҵҵͷҵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReport'
+GO
+
+
+/****** Object: Table [dbo].[Environmental_ProjectEnergyReportItem] Script Date: 2023/3/26 18:28:21 ******/
+GO
+CREATE TABLE [dbo].[Environmental_ProjectEnergyReportItem](
+ [EnergyReportItemId] [nvarchar](50) NOT NULL,
+ [EnergyReportId] [nvarchar](50) NULL,
+ [SortIndex] [nvarchar](50) NULL,
+ [BusinessCategory] [nvarchar](50) NULL,
+ [Throughput_BasePeriod] [nvarchar](50) NULL,
+ [Throughput_LastPeriod] [nvarchar](50) NULL,
+ [Throughput_ThisPeriod] [nvarchar](50) NULL,
+ [Throughput_UnitOfMeasurement] [nvarchar](50) NULL,
+ [Yield_BasePeriod] [nvarchar](50) NULL,
+ [Yield_LastPeriod] [nvarchar](50) NULL,
+ [Yield_ThisPeriod] [nvarchar](50) NULL,
+ [Yield_UnitOfMeasurement] [nvarchar](50) NULL,
+ [OutputValue_BasePeriod] [nvarchar](50) NULL,
+ [OutputValue_LastYear] [nvarchar](50) NULL,
+ [OutputValue_ThisYear] [nvarchar](50) NULL,
+ [OperationScale_BasePeriod] [nvarchar](50) NULL,
+ [OperationScale_LastYear] [nvarchar](50) NULL,
+ [OperationScale_ThisYear] [nvarchar](50) NULL,
+ [OperationScale_UnitOfMeasurement] [nvarchar](50) NULL,
+ [ServiceOperatingIncome_BasePeriod] [nvarchar](50) NULL,
+ [ServiceOperatingIncome_LastYear] [nvarchar](50) NULL,
+ [ServiceOperatingIncome_ThisYear] [nvarchar](50) NULL,
+ CONSTRAINT [PK_Environmental_ProjectEnergyReportItem] PRIMARY KEY CLUSTERED
+(
+ [EnergyReportItemId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReportItem', @level2type=N'COLUMN',@level2name=N'BusinessCategory'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReportItem', @level2type=N'COLUMN',@level2name=N'Throughput_BasePeriod'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReportItem', @level2type=N'COLUMN',@level2name=N'Throughput_LastPeriod'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReportItem', @level2type=N'COLUMN',@level2name=N'Throughput_ThisPeriod'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'-λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReportItem', @level2type=N'COLUMN',@level2name=N'Throughput_UnitOfMeasurement'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReportItem', @level2type=N'COLUMN',@level2name=N'Yield_BasePeriod'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReportItem', @level2type=N'COLUMN',@level2name=N'Yield_LastPeriod'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReportItem', @level2type=N'COLUMN',@level2name=N'Yield_ThisPeriod'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'-λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReportItem', @level2type=N'COLUMN',@level2name=N'Yield_UnitOfMeasurement'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֵ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReportItem', @level2type=N'COLUMN',@level2name=N'OutputValue_BasePeriod'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֵ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReportItem', @level2type=N'COLUMN',@level2name=N'OutputValue_LastYear'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֵ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReportItem', @level2type=N'COLUMN',@level2name=N'OutputValue_ThisYear'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ӫģ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReportItem', @level2type=N'COLUMN',@level2name=N'OperationScale_BasePeriod'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ӫģ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReportItem', @level2type=N'COLUMN',@level2name=N'OperationScale_LastYear'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ӫģ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReportItem', @level2type=N'COLUMN',@level2name=N'OperationScale_ThisYear'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ӫģ-λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReportItem', @level2type=N'COLUMN',@level2name=N'OperationScale_UnitOfMeasurement'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ӫҵ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReportItem', @level2type=N'COLUMN',@level2name=N'ServiceOperatingIncome_BasePeriod'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ӫҵ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReportItem', @level2type=N'COLUMN',@level2name=N'ServiceOperatingIncome_LastYear'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ӫҵ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReportItem', @level2type=N'COLUMN',@level2name=N'ServiceOperatingIncome_ThisYear'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵܻҵҵͷҵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_ProjectEnergyReportItem'
+
+/****** Object: View [dbo].[View_Environmental_ChemicalReport] Script Date: 2023/3/26 18:33:36 ******/
+GO
+
+
+/*************ҵܻҵҵͷҵ**************/
+CREATE VIEW [dbo].[View_Environmental_ProjectEnergyReport]
+AS
+SELECT
+Report.EnergyReportId,
+Report.ProjectId,
+Report.FillingDate,
+(ISNULL(Group_0008.ConstText,'-') + ISNULL(Group_0011.ConstText,'-')) AS ReportDate,
+Group_0008.ConstText as YearStr,
+Group_0011.ConstText as QuartersStr,
+U.ProjectName,
+Report.Year,
+Report.Quarters,
+Report.UpState,
+Report.DutyPerson
+FROM dbo.Environmental_ProjectEnergyReport AS Report
+LEFT JOIN Base_Project AS U ON U.ProjectId=Report.ProjectId
+LEFT JOIN Sys_Const AS Group_0008 ON Group_0008.GroupId='0008' AND Group_0008.ConstValue =Report.[Year]
+LEFT JOIN Sys_Const AS Group_0011 ON Group_0011.GroupId='0011' AND Group_0011.ConstValue =Report.[Quarters]
+
+
+GO
+
+
+
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template','ϼ','01')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 1.ܲҵ','02')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 1ܼװƷ','03')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ܹ¯/Ҥ¯','04')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' Чϵͳ','05')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' Ч','06')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 豸Ϳյ','07')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ҵװúDZ','08')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ͼҵ','09')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ɫ','10')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 豸','11')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' װ/Ʒ','12')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 2ܷ','13')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ͬԴ','14')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ','15')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 2.ҵ','16')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 1Ⱦ','17')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ','18')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' CVOCs','19')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ','20')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 2ˮȾ','21')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ˮ','22')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ũˮ','23')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ˮ','24')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ҵˮ','25')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ˮۺ','26')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ','27')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 3̷ϴ','28')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ','29')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ͳﴦ','30')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' Σշﴦ','31')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ദ','32')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ','33')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 4̬','34')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ','35')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ɽ','36')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ˮ','37')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ','38')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 5','39')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ͼ','40')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ѯ','41')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ʩ','42')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' ','43')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 3.Դѭòҵ','44')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 1ڹҵ̷','45')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 2β','46')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 3ƷͷϾɽ','47')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 4ֵ','48')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 5ũַ','49')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 6Ʒַ','50')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 7ˮԴۺ','51')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 8','52')
+ insert into Environmental_ProjectEnergyReportItem (EnergyReportItemId,EnergyReportId,BusinessCategory,SortIndex) values(NEWID(),'Template',' 9 ','53')
+ GO
+
+
+ update [Sys_Menu] set SortIndex=60 where [MenuId]='AAC7C263-6E25-49DC-985B-DC3FA7AAF3A1'
+update [Sys_Menu] set SortIndex=70 where [MenuId]='07FEEC9D-09C1-4C19-9269-62F69532086C'
+update [Sys_Menu] set SortIndex=80 where [MenuId]='CF9C1F00-34B8-42E5-B2D1-704094169CA3'
+update [Sys_Menu] set SortIndex=90 where [MenuId]='12941594-2171-411A-8CC8-32E3BD9FCDDF'
+update [Sys_Menu] set SortIndex=100 where [MenuId]='5B344750-79DD-40AA-8AA7-34B04E41FA72'
+update [Sys_Menu] set SortIndex=110 where [MenuId]='7C47F078-D4C9-40D9-BEEF-E657EAFEC650'
+update [Sys_Menu] set SortIndex=120 where [MenuId]='ECDD89AC-1E16-4D82-B3BE-5D62F31B7A14'
+update [Sys_Menu] set SortIndex=130 where [MenuId]='7652D239-1897-4886-8DF2-B71E3B060D21'
+update [Sys_Menu] set SortIndex=140 where [MenuId]='30579BFE-AB4B-49A7-A73D-B7CE902A8B69'
+GO
+
+update [Sys_Menu] set SortIndex=100 where [MenuId]='25CE6894-2840-4DC4-AD2E-D72292849CEE'
+update [Sys_Menu] set SortIndex=110 where [MenuId]='A44E98F6-E9FE-43F8-8349-C166263BF608'
+update [Sys_Menu] set SortIndex=180 where [MenuId]='9DE996D9-A2CF-40C8-86D3-6A472AB30E5D'
+update [Sys_Menu] set SortIndex=55 where [MenuId]='86F71934-7149-470E-BEAB-FFDC5BF3C0F2'
+GO
+
+EXEC sp_rename '[Environmental_ArchitectureReport].[Month]','Quarters'
+GO
+
+
+/*************ҵԴԼ̬ܱ**************/
+ALTER VIEW [dbo].[View_Environmental_ArchitectureReport]
+AS
+SELECT
+Report.ArchitectureReportId,
+Report.UnitId,
+Report.FillingDate,
+(ISNULL(Group_0008.ConstText,'-') + ISNULL(Group_0011.ConstText,'-')) AS ReportDate,
+Group_0008.ConstText as YearStr,
+Group_0011.ConstText as QuartersStr,
+U.UnitName,
+Report.Year,
+Report.Quarters,
+Report.UpState,
+Report.DutyPerson
+FROM dbo.Environmental_ArchitectureReport AS Report
+LEFT JOIN Base_Unit AS U ON U.UnitId=Report.UnitId
+LEFT JOIN Sys_Const AS Group_0008 ON Group_0008.GroupId='0008' AND Group_0008.ConstValue =Report.[Year]
+LEFT JOIN Sys_Const AS Group_0011 ON Group_0011.GroupId='0011' AND Group_0011.ConstValue =Report.[Quarters]
+
+
+
+
+
+
+GO
diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj
index c5ff2276..f3898136 100644
--- a/SGGL/BLL/BLL.csproj
+++ b/SGGL/BLL/BLL.csproj
@@ -254,6 +254,8 @@
+
+
@@ -433,10 +435,12 @@
+
+
@@ -665,6 +669,7 @@
True
Reference.svcmap
+
@@ -752,11 +757,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -766,6 +787,7 @@
+
diff --git a/SGGL/BLL/CQMS/ManageReport/ProjectQualityWorkSummaryReportService.cs b/SGGL/BLL/CQMS/ManageReport/ProjectQualityWorkSummaryReportService.cs
new file mode 100644
index 00000000..22b6c60c
--- /dev/null
+++ b/SGGL/BLL/CQMS/ManageReport/ProjectQualityWorkSummaryReportService.cs
@@ -0,0 +1,118 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BLL
+{
+ ///
+ /// 质量管理工作总结报告
+ ///
+ public static class ProjectQualityWorkSummaryReportService
+ {
+ ///
+ /// 根据主键获取质量管理工作总结报告
+ ///
+ ///
+ ///
+ public static Model.InformationProject_QualityWorkSummaryReport GetQualityWorkSummaryReportById(string qualityWorkSummaryReportId)
+ {
+ return Funs.DB.InformationProject_QualityWorkSummaryReport.FirstOrDefault(e => e.QualityWorkSummaryReportId == qualityWorkSummaryReportId);
+ }
+
+ ///
+ /// 质量管理工作总结报告
+ ///
+ /// 单位Id
+ /// 年度
+ /// 质量管理工作总结报告
+ public static Model.InformationProject_QualityWorkSummaryReport GetQualityWorkSummaryReportByUnitIdAndYear(string unitId, int year)
+ {
+ return Funs.DB.InformationProject_QualityWorkSummaryReport.FirstOrDefault(e => e.UnitId == unitId && e.YearId == year);
+ }
+
+ ///
+ /// 添加质量管理工作总结报告
+ ///
+ ///
+ public static void AddQualityWorkSummaryReport(Model.InformationProject_QualityWorkSummaryReport qualityWorkSummaryReport)
+ {
+ Model.InformationProject_QualityWorkSummaryReport newQualityWorkSummaryReport = new Model.InformationProject_QualityWorkSummaryReport
+ {
+ QualityWorkSummaryReportId = qualityWorkSummaryReport.QualityWorkSummaryReportId,
+ ProjectId = qualityWorkSummaryReport.ProjectId,
+ YearId = qualityWorkSummaryReport.YearId,
+ UnitId = qualityWorkSummaryReport.UnitId,
+ ResponsiblePerson = qualityWorkSummaryReport.ResponsiblePerson,
+ ResponsiblePersonTel = qualityWorkSummaryReport.ResponsiblePersonTel,
+ ContactPerson = qualityWorkSummaryReport.ContactPerson,
+ ContactPersonTel = qualityWorkSummaryReport.ContactPersonTel,
+ ReportDate = qualityWorkSummaryReport.ReportDate,
+ Performance = qualityWorkSummaryReport.Performance,
+ AccidentSituation = qualityWorkSummaryReport.AccidentSituation,
+ Awards = qualityWorkSummaryReport.Awards,
+ WorkDevelopment = qualityWorkSummaryReport.WorkDevelopment,
+ PersonnelTraining = qualityWorkSummaryReport.PersonnelTraining,
+ CheckSituation = qualityWorkSummaryReport.CheckSituation,
+ ManagementActivity = qualityWorkSummaryReport.ManagementActivity,
+ WorkExperience = qualityWorkSummaryReport.WorkExperience,
+ Countermeasures = qualityWorkSummaryReport.Countermeasures,
+ NextYearWorkPlan = qualityWorkSummaryReport.NextYearWorkPlan,
+ JobSuggestion = qualityWorkSummaryReport.JobSuggestion,
+ CompileMan = qualityWorkSummaryReport.CompileMan,
+ CompileDate = qualityWorkSummaryReport.CompileDate
+ };
+ Funs.DB.InformationProject_QualityWorkSummaryReport.InsertOnSubmit(newQualityWorkSummaryReport);
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 修改质量管理工作总结报告
+ ///
+ ///
+ public static void UpdateQualityWorkSummaryReport(Model.InformationProject_QualityWorkSummaryReport qualityWorkSummaryReport)
+ {
+ Model.InformationProject_QualityWorkSummaryReport newQualityWorkSummaryReport = Funs.DB.InformationProject_QualityWorkSummaryReport.FirstOrDefault(e => e.QualityWorkSummaryReportId == qualityWorkSummaryReport.QualityWorkSummaryReportId);
+ if (newQualityWorkSummaryReport != null)
+ {
+ newQualityWorkSummaryReport.UnitId = qualityWorkSummaryReport.UnitId;
+ newQualityWorkSummaryReport.YearId = qualityWorkSummaryReport.YearId;
+ newQualityWorkSummaryReport.ResponsiblePerson = qualityWorkSummaryReport.ResponsiblePerson;
+ newQualityWorkSummaryReport.ResponsiblePersonTel = qualityWorkSummaryReport.ResponsiblePersonTel;
+ newQualityWorkSummaryReport.ContactPerson = qualityWorkSummaryReport.ContactPerson;
+ newQualityWorkSummaryReport.ContactPersonTel = qualityWorkSummaryReport.ContactPersonTel;
+ newQualityWorkSummaryReport.ReportDate = qualityWorkSummaryReport.ReportDate;
+ newQualityWorkSummaryReport.Performance = qualityWorkSummaryReport.Performance;
+ newQualityWorkSummaryReport.AccidentSituation = qualityWorkSummaryReport.AccidentSituation;
+ newQualityWorkSummaryReport.Awards = qualityWorkSummaryReport.Awards;
+ newQualityWorkSummaryReport.WorkDevelopment = qualityWorkSummaryReport.WorkDevelopment;
+ newQualityWorkSummaryReport.PersonnelTraining = qualityWorkSummaryReport.PersonnelTraining;
+ newQualityWorkSummaryReport.CheckSituation = qualityWorkSummaryReport.CheckSituation;
+ newQualityWorkSummaryReport.ManagementActivity = qualityWorkSummaryReport.ManagementActivity;
+ newQualityWorkSummaryReport.WorkExperience = qualityWorkSummaryReport.WorkExperience;
+ newQualityWorkSummaryReport.Countermeasures = qualityWorkSummaryReport.Countermeasures;
+ newQualityWorkSummaryReport.NextYearWorkPlan = qualityWorkSummaryReport.NextYearWorkPlan;
+ newQualityWorkSummaryReport.JobSuggestion = qualityWorkSummaryReport.JobSuggestion;
+ newQualityWorkSummaryReport.CompileMan = qualityWorkSummaryReport.CompileMan;
+ newQualityWorkSummaryReport.CompileDate = qualityWorkSummaryReport.CompileDate;
+
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除质量管理工作总结报告
+ ///
+ ///
+ public static void DeleteQualityWorkSummaryReportById(string QualityWorkSummaryReportId)
+ {
+ Model.InformationProject_QualityWorkSummaryReport qualityWorkSummaryReport = Funs.DB.InformationProject_QualityWorkSummaryReport.FirstOrDefault(e => e.QualityWorkSummaryReportId == QualityWorkSummaryReportId);
+ if (qualityWorkSummaryReport != null)
+ {
+ Funs.DB.InformationProject_QualityWorkSummaryReport.DeleteOnSubmit(qualityWorkSummaryReport);
+ Funs.DB.SubmitChanges();
+ }
+ }
+ }
+}
diff --git a/SGGL/BLL/CQMS/ManageReport/ProjectQuarterlyProjectQualityService.cs b/SGGL/BLL/CQMS/ManageReport/ProjectQuarterlyProjectQualityService.cs
new file mode 100644
index 00000000..7983d795
--- /dev/null
+++ b/SGGL/BLL/CQMS/ManageReport/ProjectQuarterlyProjectQualityService.cs
@@ -0,0 +1,144 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BLL
+{
+ ///
+ /// 季度工程项目质量信息表
+ ///
+ public static class ProjectQuarterlyProjectQualityService
+ {
+ ///
+ /// 根据主键获取季度工程项目质量信息表
+ ///
+ ///
+ ///
+ public static Model.InformationProject_QuarterlyProjectQuality GetQuarterlyProjectQualityById(string quarterlyProjectQualityId)
+ {
+ return Funs.DB.InformationProject_QuarterlyProjectQuality.FirstOrDefault(e => e.QuarterlyProjectQualityId == quarterlyProjectQualityId);
+ }
+
+ ///
+ /// 季度工程项目质量信息表
+ ///
+ /// 单位Id
+ /// 年度
+ /// 季度工程项目质量信息表
+ public static Model.InformationProject_QuarterlyProjectQuality GetQuarterlyProjectQualityByUnitIdAndYearAndQuarter(string unitId, int year,int quarter)
+ {
+ return Funs.DB.InformationProject_QuarterlyProjectQuality.FirstOrDefault(e => e.UnitId == unitId && e.Year == year && e.Quarter == quarter);
+ }
+
+ ///
+ /// 添加季度工程项目质量信息表
+ ///
+ ///
+ public static void AddQuarterlyProjectQuality(Model.InformationProject_QuarterlyProjectQuality quarterlyProjectQuality)
+ {
+ Model.InformationProject_QuarterlyProjectQuality newQuarterlyProjectQuality = new Model.InformationProject_QuarterlyProjectQuality
+ {
+ QuarterlyProjectQualityId = quarterlyProjectQuality.QuarterlyProjectQualityId,
+ ProjectId = quarterlyProjectQuality.ProjectId,
+ UnitId = quarterlyProjectQuality.UnitId,
+ Year=quarterlyProjectQuality.Year,
+ Quarter = quarterlyProjectQuality.Quarter,
+ QualityManagePersonNum=quarterlyProjectQuality.QualityManagePersonNum,
+ AdvancedTitlePersonNum=quarterlyProjectQuality.AdvancedTitlePersonNum,
+ IntermediateTitlePersonNum=quarterlyProjectQuality.IntermediateTitlePersonNum,
+ BeImplementedProjectNum=quarterlyProjectQuality.BeImplementedProjectNum,
+ StartImplementedProjectNum=quarterlyProjectQuality.StartImplementedProjectNum,
+ AccumulativeStartImplemented=quarterlyProjectQuality.AccumulativeStartImplemented,
+ CompleteProjectNum=quarterlyProjectQuality.CompleteProjectNum,
+ YearCompleteProjectNum = quarterlyProjectQuality.YearCompleteProjectNum,
+ QuarterTotal= quarterlyProjectQuality.QuarterTotal,
+ QuarterFirstPassNum=quarterlyProjectQuality.QuarterFirstPassNum,
+ QuarterFirstPassRate=quarterlyProjectQuality.QuarterFirstPassRate,
+ YearTotal=quarterlyProjectQuality.YearTotal,
+ YearFirstPassNum=quarterlyProjectQuality.YearFirstPassNum,
+ YearFirstPassRate=quarterlyProjectQuality.YearFirstPassRate,
+ QuaterCheckSuperviseNum=quarterlyProjectQuality.QuaterCheckSuperviseNum,
+ QuaterCorrectiveNoticeNum=quarterlyProjectQuality.QuaterCorrectiveNoticeNum,
+ QuaterQualityProblemNum=quarterlyProjectQuality.QuaterQualityProblemNum,
+ QuaterClosedQualityProblemNum=quarterlyProjectQuality.QuaterClosedQualityProblemNum,
+ YearCheckSuperviseNum = quarterlyProjectQuality.YearCheckSuperviseNum,
+ YearCorrectiveNoticeNum=quarterlyProjectQuality.YearCorrectiveNoticeNum,
+ YearQualityProblemNum = quarterlyProjectQuality.YearQualityProblemNum,
+ YearClosedQualityProblemNum=quarterlyProjectQuality.YearClosedQualityProblemNum,
+ QuaterQualityAccidentNum = quarterlyProjectQuality.QuaterQualityAccidentNum,
+ QuaterDirectEconomicLoss = quarterlyProjectQuality.QuaterDirectEconomicLoss,
+ YearQualityAccidentNum = quarterlyProjectQuality.YearQualityAccidentNum,
+ YearDirectEconomicLoss=quarterlyProjectQuality.YearDirectEconomicLoss,
+ ResponsiblePerson=quarterlyProjectQuality.ResponsiblePerson,
+ CompileMan = quarterlyProjectQuality.CompileMan,
+ CompileDate = quarterlyProjectQuality.CompileDate,
+ Tel=quarterlyProjectQuality.Tel
+ };
+ Funs.DB.InformationProject_QuarterlyProjectQuality.InsertOnSubmit(newQuarterlyProjectQuality);
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 修改季度工程项目质量信息表
+ ///
+ ///
+ public static void UpdateQuarterlyProjectQuality(Model.InformationProject_QuarterlyProjectQuality quarterlyProjectQuality)
+ {
+ Model.InformationProject_QuarterlyProjectQuality newQuarterlyProjectQuality = Funs.DB.InformationProject_QuarterlyProjectQuality.FirstOrDefault(e => e.QuarterlyProjectQualityId == quarterlyProjectQuality.QuarterlyProjectQualityId);
+ if (newQuarterlyProjectQuality != null)
+ {
+ newQuarterlyProjectQuality.UnitId = quarterlyProjectQuality.UnitId;
+ newQuarterlyProjectQuality.Year = quarterlyProjectQuality.Year;
+ newQuarterlyProjectQuality.Quarter = quarterlyProjectQuality.Quarter;
+ newQuarterlyProjectQuality.QualityManagePersonNum = quarterlyProjectQuality.QualityManagePersonNum;
+ newQuarterlyProjectQuality.AdvancedTitlePersonNum = quarterlyProjectQuality.AdvancedTitlePersonNum;
+ newQuarterlyProjectQuality.IntermediateTitlePersonNum = quarterlyProjectQuality.IntermediateTitlePersonNum;
+ newQuarterlyProjectQuality.BeImplementedProjectNum = quarterlyProjectQuality.BeImplementedProjectNum;
+ newQuarterlyProjectQuality.StartImplementedProjectNum = quarterlyProjectQuality.StartImplementedProjectNum;
+ newQuarterlyProjectQuality.AccumulativeStartImplemented = quarterlyProjectQuality.AccumulativeStartImplemented;
+ newQuarterlyProjectQuality.CompleteProjectNum = quarterlyProjectQuality.CompleteProjectNum;
+ newQuarterlyProjectQuality.YearCompleteProjectNum = quarterlyProjectQuality.YearCompleteProjectNum;
+ newQuarterlyProjectQuality.QuarterTotal = quarterlyProjectQuality.QuarterTotal;
+ newQuarterlyProjectQuality.QuarterFirstPassNum = quarterlyProjectQuality.QuarterFirstPassNum;
+ newQuarterlyProjectQuality.QuarterFirstPassRate = quarterlyProjectQuality.QuarterFirstPassRate;
+ newQuarterlyProjectQuality.YearTotal = quarterlyProjectQuality.YearTotal;
+ newQuarterlyProjectQuality.YearFirstPassNum = quarterlyProjectQuality.YearFirstPassNum;
+ newQuarterlyProjectQuality.YearFirstPassRate = quarterlyProjectQuality.YearFirstPassRate;
+ newQuarterlyProjectQuality.QuaterCheckSuperviseNum = quarterlyProjectQuality.QuaterCheckSuperviseNum;
+ newQuarterlyProjectQuality.QuaterCorrectiveNoticeNum = quarterlyProjectQuality.QuaterCorrectiveNoticeNum;
+ newQuarterlyProjectQuality.QuaterQualityProblemNum = quarterlyProjectQuality.QuaterQualityProblemNum;
+ newQuarterlyProjectQuality.QuaterClosedQualityProblemNum = quarterlyProjectQuality.QuaterClosedQualityProblemNum;
+ newQuarterlyProjectQuality.YearCheckSuperviseNum = quarterlyProjectQuality.YearCheckSuperviseNum;
+ newQuarterlyProjectQuality.YearCorrectiveNoticeNum = quarterlyProjectQuality.YearCorrectiveNoticeNum;
+ newQuarterlyProjectQuality.YearQualityProblemNum = quarterlyProjectQuality.YearQualityProblemNum;
+ newQuarterlyProjectQuality.YearClosedQualityProblemNum = quarterlyProjectQuality.YearClosedQualityProblemNum;
+ newQuarterlyProjectQuality.QuaterQualityAccidentNum = quarterlyProjectQuality.QuaterQualityAccidentNum;
+ newQuarterlyProjectQuality.QuaterDirectEconomicLoss = quarterlyProjectQuality.QuaterDirectEconomicLoss;
+ newQuarterlyProjectQuality.YearQualityAccidentNum = quarterlyProjectQuality.YearQualityAccidentNum;
+ newQuarterlyProjectQuality.YearDirectEconomicLoss = quarterlyProjectQuality.YearDirectEconomicLoss;
+ newQuarterlyProjectQuality.ResponsiblePerson = quarterlyProjectQuality.ResponsiblePerson;
+ newQuarterlyProjectQuality.CompileMan = quarterlyProjectQuality.CompileMan;
+ newQuarterlyProjectQuality.CompileDate = quarterlyProjectQuality.CompileDate;
+ newQuarterlyProjectQuality.Tel = quarterlyProjectQuality.Tel;
+
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除季度工程项目质量信息表
+ ///
+ ///
+ public static void DeleteQuarterlyProjectQualityById(string QuarterlyProjectQualityId)
+ {
+ Model.InformationProject_QuarterlyProjectQuality quarterlyProjectQuality = Funs.DB.InformationProject_QuarterlyProjectQuality.FirstOrDefault(e => e.QuarterlyProjectQualityId == QuarterlyProjectQualityId);
+ if (quarterlyProjectQuality != null)
+ {
+ Funs.DB.InformationProject_QuarterlyProjectQuality.DeleteOnSubmit(quarterlyProjectQuality);
+ Funs.DB.SubmitChanges();
+ }
+ }
+ }
+}
diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs
index 0a82d94f..0bcfdab6 100644
--- a/SGGL/BLL/Common/Const.cs
+++ b/SGGL/BLL/Common/Const.cs
@@ -1266,6 +1266,49 @@ namespace BLL
/// 应急演练工作计划半年报
///
public const string DrillPlanHalfYearReportMenuId = "70DEB27A-D6FF-4D57-879B-0270F2967FA0";
+
+ ///
+ /// 化工行业能源节约与生态环境保护汇总表
+ ///
+ public const string ChemicalReportMenuId = "ECDD89AC-1E16-4D82-B3BE-5D62F31B7A14";
+
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总表
+ ///
+ public const string ArchitectureReportMenuId = "7C47F078-D4C9-40D9-BEEF-E657EAFEC650";
+
+ public const string ProjectOperationReportMenuId = "EFA6E45F-1267-4804-BEE7-41E0C5461204";
+ public const string OperationReportMenuId = "7652D239-1897-4886-8DF2-B71E3B060D21";
+
+ ///
+ /// 节能环保产业企业生产和服务业务情况报表
+ ///
+ public const string EnergyReportMenuId = "30579BFE-AB4B-49A7-A73D-B7CE902A8B69";
+
+ ///
+ /// 安全管理工作总结报告
+ ///
+ public const string WorkSummaryReportMenuId = "07FEEC9D-09C1-4C19-9269-62F69532086C";
+
+ ///
+ /// 质量管理工作总结报告
+ ///
+ public const string QualityWorkSummaryReportMenuId = "12941594-2171-411A-8CC8-32E3BD9FCDDF";
+
+ ///
+ /// 实业安全简报
+ ///
+ public const string SafetyBriefingMenuId = "AAC7C263-6E25-49DC-985B-DC3FA7AAF3A1";
+
+ ///
+ /// 季度工程项目质量信息表
+ ///
+ public const string QuarterlyProjectQualityMenuId = "CF9C1F00-34B8-42E5-B2D1-704094169CA3";
+
+ ///
+ /// 生态环保工作总结报告
+ ///
+ public const string EPSummaryReportMenuId = "5B344750-79DD-40AA-8AA7-34B04E41FA72";
#endregion
#region 安全信息分析
@@ -2445,6 +2488,45 @@ namespace BLL
/// 应急演练工作计划半年报
///
public const string ProjectDrillPlanHalfYearReportMenuId = "0973EE1C-CD2A-4116-BD67-1ABAD71D6C7C";
+
+ ///
+ /// 安全管理工作总结报告
+ ///
+ public const string ProjectWorkSummaryReportMenuId = "FB174DD6-CBAE-43AF-9356-B098A17B719D";
+
+ ///
+ /// 质量管理工作总结报告
+ ///
+ public const string ProjectQualitySummaryReportMenuId = "1443C901-A9C3-4CCC-B858-55512DE8C5CA";
+
+ ///
+ /// 季度工程项目质量信息表
+ ///
+ public const string ProjectQuarterlyProjectQualityMenuId = "267064F1-88F7-4468-998A-49A1A2F25BB8";
+
+ ///
+ /// 实业安全简报
+ ///
+ public const string ProjectSafetyBriefingMenuId = "86F71934-7149-470E-BEAB-FFDC5BF3C0F2";
+
+ /// 化工行业能源节约与生态环境保护汇总表
+ ///
+ public const string ProjectChemicalReportMenuId = "A44E98F6-E9FE-43F8-8349-C166263BF608";
+
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总表
+ ///
+ public const string ProjectArchitectureReportMenuId = "25CE6894-2840-4DC4-AD2E-D72292849CEE";
+
+ ///
+ /// 生态环保工作总结报告
+ ///
+ public const string ProjectEPSummaryReportMenuId = "FD572EFA-8E87-43D1-B514-25A39768106F";
+
+ ///
+ /// 节能环保产业企业生产和服务业务情况报表(项目级)
+ ///
+ public const string ProjectEnergyReportMenuId = "9DE996D9-A2CF-40C8-86D3-6A472AB30E5D";
#endregion
#region 安全分析
@@ -3187,6 +3269,31 @@ namespace BLL
/// 项目现场应急演练工作计划半年报表
///
public const string ProjectInformation_DrillPlanHalfYearReportId = "10";
+
+ ///
+ /// 安全管理工作总结报告
+ ///
+ public const string ReportType_6 = "11";
+
+ ///
+ /// 质量管理工作总结报告
+ ///
+ public const string ReportType_7 = "12";
+
+ ///
+ /// 实业安全简报
+ ///
+ public const string ReportType_8 = "13";
+
+ ///
+ /// 季度工程项目质量信息表
+ ///
+ public const string ReportType_9 = "14";
+
+ ///
+ /// 生态环保工作总结报告
+ ///
+ public const string ReportType_10 = "15";
#endregion
#region 质量
diff --git a/SGGL/BLL/HSSE/InformationProject/ProjectEPSummaryReportService.cs b/SGGL/BLL/HSSE/InformationProject/ProjectEPSummaryReportService.cs
new file mode 100644
index 00000000..54b63751
--- /dev/null
+++ b/SGGL/BLL/HSSE/InformationProject/ProjectEPSummaryReportService.cs
@@ -0,0 +1,98 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BLL
+{
+ ///
+ /// 生态环保工作总结报告
+ ///
+ public static class ProjectEPSummaryReportService
+ {
+ ///
+ /// 根据主键获取生态环保工作总结报告
+ ///
+ ///
+ ///
+ public static Model.InformationProject_EPSummaryReport GetEPSummaryReportById(string ePSummaryReportId)
+ {
+ return Funs.DB.InformationProject_EPSummaryReport.FirstOrDefault(e => e.EPSummaryReportId == ePSummaryReportId);
+ }
+
+ ///
+ /// 添加生态环保工作总结报告
+ ///
+ ///
+ public static void AddEPSummaryReport(Model.InformationProject_EPSummaryReport ePSummaryReport)
+ {
+ Model.InformationProject_EPSummaryReport newReport = new Model.InformationProject_EPSummaryReport
+ {
+ EPSummaryReportId = ePSummaryReport.EPSummaryReportId,
+ ProjectId = ePSummaryReport.ProjectId,
+ UnitId = ePSummaryReport.UnitId,
+ YearId = ePSummaryReport.YearId,
+ ResponsiblePerson = ePSummaryReport.ResponsiblePerson,
+ ResponsiblePersonTel = ePSummaryReport.ResponsiblePersonTel,
+ ContactPerson = ePSummaryReport.ContactPerson,
+ ContactPersonTel = ePSummaryReport.ContactPersonTel,
+ ReportDate = ePSummaryReport.ReportDate,
+ Description1 = ePSummaryReport.Description1,
+ Description2 = ePSummaryReport.Description2,
+ Description3 = ePSummaryReport.Description3,
+ Description4 = ePSummaryReport.Description4,
+ Description5 = ePSummaryReport.Description5,
+ Description6 = ePSummaryReport.Description6,
+ Description7 = ePSummaryReport.Description7,
+ Description8 = ePSummaryReport.Description8,
+ Description9 = ePSummaryReport.Description9
+ };
+ Funs.DB.InformationProject_EPSummaryReport.InsertOnSubmit(newReport);
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 修改生态环保工作总结报告
+ ///
+ ///
+ public static void UpdateEPSummaryReport(Model.InformationProject_EPSummaryReport ePSummaryReport)
+ {
+ Model.InformationProject_EPSummaryReport newReport = Funs.DB.InformationProject_EPSummaryReport.FirstOrDefault(e => e.EPSummaryReportId == ePSummaryReport.EPSummaryReportId);
+ if (newReport != null)
+ {
+ newReport.UnitId = ePSummaryReport.UnitId;
+ newReport.YearId = ePSummaryReport.YearId;
+ newReport.ResponsiblePerson = ePSummaryReport.ResponsiblePerson;
+ newReport.ResponsiblePersonTel = ePSummaryReport.ResponsiblePersonTel;
+ newReport.ContactPerson = ePSummaryReport.ContactPerson;
+ newReport.ContactPersonTel = ePSummaryReport.ContactPersonTel;
+ newReport.ReportDate = ePSummaryReport.ReportDate;
+ newReport.Description1 = ePSummaryReport.Description1;
+ newReport.Description2 = ePSummaryReport.Description2;
+ newReport.Description3 = ePSummaryReport.Description3;
+ newReport.Description4 = ePSummaryReport.Description4;
+ newReport.Description5 = ePSummaryReport.Description5;
+ newReport.Description6 = ePSummaryReport.Description6;
+ newReport.Description7 = ePSummaryReport.Description7;
+ newReport.Description8 = ePSummaryReport.Description8;
+ newReport.Description9 = ePSummaryReport.Description9;
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除生态环保工作总结报告
+ ///
+ ///
+ public static void DeleteEPSummaryReportById(string ePSummaryReportId)
+ {
+ Model.InformationProject_EPSummaryReport ePSummaryReport = Funs.DB.InformationProject_EPSummaryReport.FirstOrDefault(e => e.EPSummaryReportId == ePSummaryReportId);
+ if (ePSummaryReport != null)
+ {
+ Funs.DB.InformationProject_EPSummaryReport.DeleteOnSubmit(ePSummaryReport);
+ Funs.DB.SubmitChanges();
+ }
+ }
+ }
+}
diff --git a/SGGL/BLL/HSSE/InformationProject/ProjectMillionsMonthlyReportService.cs b/SGGL/BLL/HSSE/InformationProject/ProjectMillionsMonthlyReportService.cs
index f6aac3c5..71110758 100644
--- a/SGGL/BLL/HSSE/InformationProject/ProjectMillionsMonthlyReportService.cs
+++ b/SGGL/BLL/HSSE/InformationProject/ProjectMillionsMonthlyReportService.cs
@@ -6,14 +6,14 @@ using System.Text;
namespace BLL
{
///
- /// 百万工时安全统计月报
+ /// 企业安全数据统计月报
///
public static class ProjectMillionsMonthlyReportService
{
public static Model.SGGLDB db = Funs.DB;
///
- /// 根据主键获取百万工时安全统计月报
+ /// 根据主键获取企业安全数据统计月报
///
///
///
@@ -23,7 +23,7 @@ namespace BLL
}
///
- /// 添加百万工时安全统计月报
+ /// 添加企业安全数据统计月报
///
///
public static void AddMillionsMonthlyReport(Model.InformationProject_MillionsMonthlyReport millionsMonthlyReport)
@@ -45,6 +45,9 @@ namespace BLL
ContractorNum = millionsMonthlyReport.ContractorNum,
SumPersonNum = millionsMonthlyReport.SumPersonNum,
TotalWorkNum = millionsMonthlyReport.TotalWorkNum,
+ DeathAccidentNum = millionsMonthlyReport.DeathAccidentNum,
+ DeathAccidentPersonNum = millionsMonthlyReport.DeathAccidentPersonNum,
+ DeathAccidentLossHour = millionsMonthlyReport.DeathAccidentLossHour,
SeriousInjuriesNum = millionsMonthlyReport.SeriousInjuriesNum,
SeriousInjuriesPersonNum = millionsMonthlyReport.SeriousInjuriesPersonNum,
SeriousInjuriesLossHour = millionsMonthlyReport.SeriousInjuriesLossHour,
@@ -60,20 +63,37 @@ namespace BLL
MedicalTreatmentLossHour = millionsMonthlyReport.MedicalTreatmentLossHour,
FireNum = millionsMonthlyReport.FireNum,
ExplosionNum = millionsMonthlyReport.ExplosionNum,
+ EnvironmenNum = millionsMonthlyReport.EnvironmenNum,
TrafficNum = millionsMonthlyReport.TrafficNum,
EquipmentNum = millionsMonthlyReport.EquipmentNum,
QualityNum = millionsMonthlyReport.QualityNum,
OtherNum = millionsMonthlyReport.OtherNum,
FirstAidDressingsNum = millionsMonthlyReport.FirstAidDressingsNum,
AttemptedEventNum = millionsMonthlyReport.AttemptedEventNum,
- LossDayNum = millionsMonthlyReport.LossDayNum
+ LossDayNum = millionsMonthlyReport.LossDayNum,
+ InputCosts = millionsMonthlyReport.InputCosts,
+ TrainNum = millionsMonthlyReport.TrainNum,
+ GeneralHazardNum = millionsMonthlyReport.GeneralHazardNum,
+ MajorHazardNum = millionsMonthlyReport.MajorHazardNum,
+ NotProofLargeProjectNum = millionsMonthlyReport.NotProofLargeProjectNum,
+ ProofLargeProjectNum = millionsMonthlyReport.ProofLargeProjectNum,
+ FireLicenseNum = millionsMonthlyReport.FireLicenseNum,
+ LimitLicenseNum = millionsMonthlyReport.LimitLicenseNum,
+ HighLicenseNum = millionsMonthlyReport.HighLicenseNum,
+ HoistingLicenseNum = millionsMonthlyReport.HoistingLicenseNum,
+ BreakGroundLicenseNum = millionsMonthlyReport.BreakGroundLicenseNum,
+ ElectricityLicenseNum = millionsMonthlyReport.ElectricityLicenseNum,
+ RTLicenseNum = millionsMonthlyReport.RTLicenseNum,
+ NightLicenseNum = millionsMonthlyReport.NightLicenseNum,
+ CommissionerNum = millionsMonthlyReport.CommissionerNum,
+ SoleDutyNum = millionsMonthlyReport.SoleDutyNum,
};
db.InformationProject_MillionsMonthlyReport.InsertOnSubmit(newMillionsMonthlyReport);
db.SubmitChanges();
}
///
- /// 修改百万工时安全统计月报
+ /// 修改企业安全数据统计月报
///
///
public static void UpdateMillionsMonthlyReport(Model.InformationProject_MillionsMonthlyReport millionsMonthlyReport)
@@ -95,6 +115,9 @@ namespace BLL
newMillionsMonthlyReport.ContractorNum = millionsMonthlyReport.ContractorNum;
newMillionsMonthlyReport.SumPersonNum = millionsMonthlyReport.SumPersonNum;
newMillionsMonthlyReport.TotalWorkNum = millionsMonthlyReport.TotalWorkNum;
+ newMillionsMonthlyReport.DeathAccidentNum = millionsMonthlyReport.DeathAccidentNum;
+ newMillionsMonthlyReport.DeathAccidentPersonNum = millionsMonthlyReport.DeathAccidentPersonNum;
+ newMillionsMonthlyReport.DeathAccidentLossHour = millionsMonthlyReport.DeathAccidentLossHour;
newMillionsMonthlyReport.SeriousInjuriesNum = millionsMonthlyReport.SeriousInjuriesNum;
newMillionsMonthlyReport.SeriousInjuriesPersonNum = millionsMonthlyReport.SeriousInjuriesPersonNum;
newMillionsMonthlyReport.SeriousInjuriesLossHour = millionsMonthlyReport.SeriousInjuriesLossHour;
@@ -110,6 +133,7 @@ namespace BLL
newMillionsMonthlyReport.MedicalTreatmentLossHour = millionsMonthlyReport.MedicalTreatmentLossHour;
newMillionsMonthlyReport.FireNum = millionsMonthlyReport.FireNum;
newMillionsMonthlyReport.ExplosionNum = millionsMonthlyReport.ExplosionNum;
+ newMillionsMonthlyReport.EnvironmenNum = millionsMonthlyReport.EnvironmenNum;
newMillionsMonthlyReport.TrafficNum = millionsMonthlyReport.TrafficNum;
newMillionsMonthlyReport.EquipmentNum = millionsMonthlyReport.EquipmentNum;
newMillionsMonthlyReport.QualityNum = millionsMonthlyReport.QualityNum;
@@ -117,12 +141,29 @@ namespace BLL
newMillionsMonthlyReport.FirstAidDressingsNum = millionsMonthlyReport.FirstAidDressingsNum;
newMillionsMonthlyReport.AttemptedEventNum = millionsMonthlyReport.AttemptedEventNum;
newMillionsMonthlyReport.LossDayNum = millionsMonthlyReport.LossDayNum;
+ newMillionsMonthlyReport.InputCosts = millionsMonthlyReport.InputCosts;
+ newMillionsMonthlyReport.TrainNum = millionsMonthlyReport.TrainNum;
+ newMillionsMonthlyReport.GeneralHazardNum = millionsMonthlyReport.GeneralHazardNum;
+ newMillionsMonthlyReport.MajorHazardNum = millionsMonthlyReport.MajorHazardNum;
+ newMillionsMonthlyReport.NotProofLargeProjectNum = millionsMonthlyReport.NotProofLargeProjectNum;
+ newMillionsMonthlyReport.ProofLargeProjectNum = millionsMonthlyReport.ProofLargeProjectNum;
+ newMillionsMonthlyReport.FireLicenseNum = millionsMonthlyReport.FireLicenseNum;
+ newMillionsMonthlyReport.LimitLicenseNum = millionsMonthlyReport.LimitLicenseNum;
+ newMillionsMonthlyReport.HighLicenseNum = millionsMonthlyReport.HighLicenseNum;
+ newMillionsMonthlyReport.HoistingLicenseNum = millionsMonthlyReport.HoistingLicenseNum;
+ newMillionsMonthlyReport.BreakGroundLicenseNum = millionsMonthlyReport.BreakGroundLicenseNum;
+ newMillionsMonthlyReport.ElectricityLicenseNum = millionsMonthlyReport.ElectricityLicenseNum;
+ newMillionsMonthlyReport.RTLicenseNum = millionsMonthlyReport.RTLicenseNum;
+ newMillionsMonthlyReport.NightLicenseNum = millionsMonthlyReport.NightLicenseNum;
+ newMillionsMonthlyReport.CommissionerNum = millionsMonthlyReport.CommissionerNum;
+ newMillionsMonthlyReport.SoleDutyNum = millionsMonthlyReport.SoleDutyNum;
+
db.SubmitChanges();
}
}
///
- /// 根据主键删除百万工时安全统计月报
+ /// 根据主键删除企业安全数据统计月报
///
///
public static void DeleteMillionsMonthlyReportById(string millionsMonthlyReportId)
diff --git a/SGGL/BLL/HSSE/InformationProject/ProjectWorkSummaryReportService.cs b/SGGL/BLL/HSSE/InformationProject/ProjectWorkSummaryReportService.cs
new file mode 100644
index 00000000..694e8156
--- /dev/null
+++ b/SGGL/BLL/HSSE/InformationProject/ProjectWorkSummaryReportService.cs
@@ -0,0 +1,109 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BLL
+{
+ ///
+ /// 安全管理工作总结报告
+ ///
+ public static class ProjectWorkSummaryReportService
+ {
+ ///
+ /// 根据主键获取安全管理工作总结报告
+ ///
+ ///
+ ///
+ public static Model.InformationProject_WorkSummaryReport GetWorkSummaryReportById(string workSummaryReportId)
+ {
+ return Funs.DB.InformationProject_WorkSummaryReport.FirstOrDefault(e => e.WorkSummaryReportId == workSummaryReportId);
+ }
+
+ ///
+ /// 添加安全管理工作总结报告
+ ///
+ ///
+ public static void AddWorkSummaryReport(Model.InformationProject_WorkSummaryReport workSummaryReport)
+ {
+ Model.InformationProject_WorkSummaryReport newWorkSummaryReport = new Model.InformationProject_WorkSummaryReport
+ {
+ WorkSummaryReportId = workSummaryReport.WorkSummaryReportId,
+ ProjectId=workSummaryReport.ProjectId,
+ YearId = workSummaryReport.YearId,
+ UnitId = workSummaryReport.UnitId,
+ ResponsiblePerson = workSummaryReport.ResponsiblePerson,
+ ResponsiblePersonTel = workSummaryReport.ResponsiblePersonTel,
+ ContactPerson = workSummaryReport.ContactPerson,
+ ContactPersonTel = workSummaryReport.ContactPersonTel,
+ ReportDate = workSummaryReport.ReportDate,
+ SafeLaborTime = workSummaryReport.SafeLaborTime,
+ SafetyObjectives = workSummaryReport.SafetyObjectives,
+ AccidentSituation = workSummaryReport.AccidentSituation,
+ Awards = workSummaryReport.Awards,
+ WorkDevelopment = workSummaryReport.WorkDevelopment,
+ PersonnelTraining = workSummaryReport.PersonnelTraining,
+ GovernanceSituation = workSummaryReport.GovernanceSituation,
+ ManagementActivity = workSummaryReport.ManagementActivity,
+ WorkExperience = workSummaryReport.WorkExperience,
+ Countermeasures = workSummaryReport.Countermeasures,
+ NextYearWorkPlan = workSummaryReport.NextYearWorkPlan,
+ JobSuggestion = workSummaryReport.JobSuggestion,
+ CompileMan=workSummaryReport.CompileMan,
+ CompileDate=workSummaryReport.CompileDate
+ };
+ Funs.DB.InformationProject_WorkSummaryReport.InsertOnSubmit(newWorkSummaryReport);
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 修改安全管理工作总结报告
+ ///
+ ///
+ public static void UpdateWorkSummaryReport(Model.InformationProject_WorkSummaryReport workSummaryReport)
+ {
+ Model.InformationProject_WorkSummaryReport newWorkSummaryReport = Funs.DB.InformationProject_WorkSummaryReport.FirstOrDefault(e => e.WorkSummaryReportId == workSummaryReport.WorkSummaryReportId);
+ if (newWorkSummaryReport != null)
+ {
+ newWorkSummaryReport.UnitId = workSummaryReport.UnitId;
+ newWorkSummaryReport.YearId = workSummaryReport.YearId;
+ newWorkSummaryReport.ResponsiblePerson = workSummaryReport.ResponsiblePerson;
+ newWorkSummaryReport.ResponsiblePersonTel = workSummaryReport.ResponsiblePersonTel;
+ newWorkSummaryReport.ContactPerson = workSummaryReport.ContactPerson;
+ newWorkSummaryReport.ContactPersonTel = workSummaryReport.ContactPersonTel;
+ newWorkSummaryReport.ReportDate = workSummaryReport.ReportDate;
+ newWorkSummaryReport.SafeLaborTime = workSummaryReport.SafeLaborTime;
+ newWorkSummaryReport.SafetyObjectives = workSummaryReport.SafetyObjectives;
+ newWorkSummaryReport.AccidentSituation = workSummaryReport.AccidentSituation;
+ newWorkSummaryReport.Awards = workSummaryReport.Awards;
+ newWorkSummaryReport.WorkDevelopment = workSummaryReport.WorkDevelopment;
+ newWorkSummaryReport.PersonnelTraining = workSummaryReport.PersonnelTraining;
+ newWorkSummaryReport.GovernanceSituation = workSummaryReport.GovernanceSituation;
+ newWorkSummaryReport.ManagementActivity = workSummaryReport.ManagementActivity;
+ newWorkSummaryReport.WorkExperience = workSummaryReport.WorkExperience;
+ newWorkSummaryReport.Countermeasures = workSummaryReport.Countermeasures;
+ newWorkSummaryReport.NextYearWorkPlan = workSummaryReport.NextYearWorkPlan;
+ newWorkSummaryReport.JobSuggestion = workSummaryReport.JobSuggestion;
+ newWorkSummaryReport.CompileMan = workSummaryReport.CompileMan;
+ newWorkSummaryReport.CompileDate = workSummaryReport.CompileDate;
+
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除安全管理工作总结报告
+ ///
+ ///
+ public static void DeleteWorkSummaryReportById(string workSummaryReportId)
+ {
+ Model.InformationProject_WorkSummaryReport workSummaryReport = Funs.DB.InformationProject_WorkSummaryReport.FirstOrDefault(e => e.WorkSummaryReportId == workSummaryReportId);
+ if (workSummaryReport != null)
+ {
+ Funs.DB.InformationProject_WorkSummaryReport.DeleteOnSubmit(workSummaryReport);
+ Funs.DB.SubmitChanges();
+ }
+ }
+ }
+}
diff --git a/SGGL/BLL/SHIYE/InformationProject_SafetyBriefingService.cs b/SGGL/BLL/SHIYE/InformationProject_SafetyBriefingService.cs
new file mode 100644
index 00000000..931e9d00
--- /dev/null
+++ b/SGGL/BLL/SHIYE/InformationProject_SafetyBriefingService.cs
@@ -0,0 +1,107 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BLL
+{
+ ///
+ /// 实业安全简报
+ ///
+ public static class InformationProject_SafetyBriefingService
+ {
+
+ ///
+ /// 根据主键获取实业安全简报
+ ///
+ ///
+ ///
+ public static Model.InformationProject_SafetyBriefing GetSafetyBriefingById(string safetyBriefingId)
+ {
+ return Funs.DB.InformationProject_SafetyBriefing.FirstOrDefault(e => e.SafetyBriefingId == safetyBriefingId);
+ }
+
+ ///
+ /// 添加实业安全简报
+ ///
+ ///
+ public static void AddSafetyBriefing(Model.InformationProject_SafetyBriefing safetyBriefing)
+ {
+ Model.InformationProject_SafetyBriefing newSafetyBriefing = new Model.InformationProject_SafetyBriefing
+ {
+ SafetyBriefingId = safetyBriefing.SafetyBriefingId,
+ ProjectId = safetyBriefing.ProjectId,
+ UnitId = safetyBriefing.UnitId,
+ YearId = safetyBriefing.YearId,
+ Month = safetyBriefing.Month,
+ CompileMan = safetyBriefing.CompileMan,
+ CompileDate = safetyBriefing.CompileDate,
+ Auditor = safetyBriefing.Auditor,
+ Approver = safetyBriefing.Approver,
+ MainWork = safetyBriefing.MainWork,
+ HazardRecording = safetyBriefing.HazardRecording,
+ SafetyAccident = safetyBriefing.SafetyAccident,
+ EPAccident = safetyBriefing.EPAccident,
+ OHAccident = safetyBriefing.OHAccident,
+ WorkPermitNum = safetyBriefing.WorkPermitNum,
+ HiddenDangerDetection = safetyBriefing.HiddenDangerDetection,
+ RectificationSituation = safetyBriefing.RectificationSituation,
+ CheckProblemsRectification = safetyBriefing.CheckProblemsRectification,
+ PendingProject = safetyBriefing.PendingProject,
+ ContractorManagement = safetyBriefing.ContractorManagement,
+ EnvironmentalEmissions = safetyBriefing.EnvironmentalEmissions,
+ NextMonthWorkPlan = safetyBriefing.NextMonthWorkPlan
+ };
+ Funs.DB.InformationProject_SafetyBriefing.InsertOnSubmit(newSafetyBriefing);
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 修改实业安全简报
+ ///
+ ///
+ public static void UpdateSafetyBriefing(Model.InformationProject_SafetyBriefing safetyBriefing)
+ {
+ Model.InformationProject_SafetyBriefing newSafetyBriefing = Funs.DB.InformationProject_SafetyBriefing.FirstOrDefault(e => e.SafetyBriefingId == safetyBriefing.SafetyBriefingId);
+ if (newSafetyBriefing != null)
+ {
+ newSafetyBriefing.UnitId = safetyBriefing.UnitId;
+ newSafetyBriefing.YearId = safetyBriefing.YearId;
+ newSafetyBriefing.Month = safetyBriefing.Month;
+ newSafetyBriefing.CompileMan = safetyBriefing.CompileMan;
+ newSafetyBriefing.CompileDate = safetyBriefing.CompileDate;
+ newSafetyBriefing.Auditor = safetyBriefing.Auditor;
+ newSafetyBriefing.Approver = safetyBriefing.Approver;
+ newSafetyBriefing.MainWork = safetyBriefing.MainWork;
+ newSafetyBriefing.HazardRecording = safetyBriefing.HazardRecording;
+ newSafetyBriefing.SafetyAccident = safetyBriefing.SafetyAccident;
+ newSafetyBriefing.EPAccident = safetyBriefing.EPAccident;
+ newSafetyBriefing.OHAccident = safetyBriefing.OHAccident;
+ newSafetyBriefing.WorkPermitNum = safetyBriefing.WorkPermitNum;
+ newSafetyBriefing.HiddenDangerDetection = safetyBriefing.HiddenDangerDetection;
+ newSafetyBriefing.RectificationSituation = safetyBriefing.RectificationSituation;
+ newSafetyBriefing.CheckProblemsRectification = safetyBriefing.CheckProblemsRectification;
+ newSafetyBriefing.PendingProject = safetyBriefing.PendingProject;
+ newSafetyBriefing.ContractorManagement = safetyBriefing.ContractorManagement;
+ newSafetyBriefing.EnvironmentalEmissions = safetyBriefing.EnvironmentalEmissions;
+ newSafetyBriefing.NextMonthWorkPlan = safetyBriefing.NextMonthWorkPlan;
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除实业安全简报
+ ///
+ ///
+ public static void DeleteSafetyBriefingById(string safetyBriefingId)
+ {
+ Model.InformationProject_SafetyBriefing safetyBriefing = Funs.DB.InformationProject_SafetyBriefing.FirstOrDefault(e => e.SafetyBriefingId == safetyBriefingId);
+ if (safetyBriefing != null)
+ {
+ Funs.DB.InformationProject_SafetyBriefing.DeleteOnSubmit(safetyBriefing);
+ Funs.DB.SubmitChanges();
+ }
+ }
+ }
+}
diff --git a/SGGL/BLL/Service References/CNCECHSSEService/Reference.cs b/SGGL/BLL/Service References/CNCECHSSEService/Reference.cs
index 5ba5f9f7..98ad0626 100644
--- a/SGGL/BLL/Service References/CNCECHSSEService/Reference.cs
+++ b/SGGL/BLL/Service References/CNCECHSSEService/Reference.cs
@@ -10998,223 +10998,600 @@ namespace BLL.CNCECHSSEService {
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
[System.Runtime.Serialization.DataContractAttribute(Name="Information_MillionsMonthlyReport", Namespace="http://schemas.datacontract.org/2004/07/BLL.OpenService")]
[System.SerializableAttribute()]
- public partial class Information_MillionsMonthlyReport : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
-
+ public partial class Information_MillionsMonthlyReport : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged
+ {
+
[System.NonSerializedAttribute()]
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
-
+
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable AccidentMortalityField;
-
+
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable DeathAccidentFrequencyField;
-
+
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string DutyPersonField;
-
+
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable FillingDateField;
-
+
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string FillingManField;
-
+
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable LostTimeInjuryRateField;
-
+
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable LostTimeRateField;
-
+
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string MillionsMonthlyReportIdField;
-
+
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MonthField;
-
+
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable RecordableIncidentRateField;
-
+
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string UnitIdField;
-
+
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable YearField;
-
+
+ [System.Runtime.Serialization.OptionalFieldAttribute()]
+ private System.Nullable InputCostsField;
+
+ [System.Runtime.Serialization.OptionalFieldAttribute()]
+ private System.Nullable TrainNumField;
+
+ [System.Runtime.Serialization.OptionalFieldAttribute()]
+ private System.Nullable GeneralHazardNumField;
+
+ [System.Runtime.Serialization.OptionalFieldAttribute()]
+ private System.Nullable MajorHazardNumField;
+
+ [System.Runtime.Serialization.OptionalFieldAttribute()]
+ private System.Nullable NotProofLargeProjectNumField;
+
+ [System.Runtime.Serialization.OptionalFieldAttribute()]
+ private System.Nullable ProofLargeProjectNumField;
+
+ [System.Runtime.Serialization.OptionalFieldAttribute()]
+ private System.Nullable FireLicenseNumField;
+
+ [System.Runtime.Serialization.OptionalFieldAttribute()]
+ private System.Nullable LimitLicenseNumField;
+
+ [System.Runtime.Serialization.OptionalFieldAttribute()]
+ private System.Nullable HighLicenseNumField;
+
+ [System.Runtime.Serialization.OptionalFieldAttribute()]
+ private System.Nullable HoistingLicenseNumField;
+
+ [System.Runtime.Serialization.OptionalFieldAttribute()]
+ private System.Nullable BreakGroundLicenseNumField;
+
+ [System.Runtime.Serialization.OptionalFieldAttribute()]
+ private System.Nullable ElectricityLicenseNumField;
+
+ [System.Runtime.Serialization.OptionalFieldAttribute()]
+ private System.Nullable RTLicenseNumField;
+
+ [System.Runtime.Serialization.OptionalFieldAttribute()]
+ private System.Nullable NightLicenseNumField;
+
+ [System.Runtime.Serialization.OptionalFieldAttribute()]
+ private System.Nullable CommissionerNumField;
+
+ [System.Runtime.Serialization.OptionalFieldAttribute()]
+ private System.Nullable SoleDutyNumField;
+
[global::System.ComponentModel.BrowsableAttribute(false)]
- public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
- get {
+
+ [System.Runtime.Serialization.DataMemberAttribute()]
+ public System.Nullable SoleDutyNum
+ {
+ get
+ {
+ return this.SoleDutyNumField;
+ }
+ set
+ {
+ if ((this.SoleDutyNumField.Equals(value) != true))
+ {
+ this.SoleDutyNumField = value;
+ this.RaisePropertyChanged("SoleDutyNum");
+ }
+ }
+ }
+
+ [System.Runtime.Serialization.DataMemberAttribute()]
+ public System.Nullable CommissionerNum
+ {
+ get
+ {
+ return this.CommissionerNumField;
+ }
+ set
+ {
+ if ((this.CommissionerNumField.Equals(value) != true))
+ {
+ this.CommissionerNumField = value;
+ this.RaisePropertyChanged("CommissionerNum");
+ }
+ }
+ }
+
+ [System.Runtime.Serialization.DataMemberAttribute()]
+ public System.Nullable NightLicenseNum
+ {
+ get
+ {
+ return this.NightLicenseNumField;
+ }
+ set
+ {
+ if ((this.NightLicenseNumField.Equals(value) != true))
+ {
+ this.NightLicenseNumField = value;
+ this.RaisePropertyChanged("NightLicenseNum");
+ }
+ }
+ }
+
+ [System.Runtime.Serialization.DataMemberAttribute()]
+ public System.Nullable RTLicenseNum
+ {
+ get
+ {
+ return this.RTLicenseNumField;
+ }
+ set
+ {
+ if ((this.RTLicenseNumField.Equals(value) != true))
+ {
+ this.RTLicenseNumField = value;
+ this.RaisePropertyChanged("RTLicenseNum");
+ }
+ }
+ }
+
+ [System.Runtime.Serialization.DataMemberAttribute()]
+ public System.Nullable ElectricityLicenseNum
+ {
+ get
+ {
+ return this.ElectricityLicenseNumField;
+ }
+ set
+ {
+ if ((this.ElectricityLicenseNumField.Equals(value) != true))
+ {
+ this.ElectricityLicenseNumField = value;
+ this.RaisePropertyChanged("ElectricityLicenseNum");
+ }
+ }
+ }
+
+ [System.Runtime.Serialization.DataMemberAttribute()]
+ public System.Nullable BreakGroundLicenseNum
+ {
+ get
+ {
+ return this.BreakGroundLicenseNumField;
+ }
+ set
+ {
+ if ((this.BreakGroundLicenseNumField.Equals(value) != true))
+ {
+ this.BreakGroundLicenseNumField = value;
+ this.RaisePropertyChanged("BreakGroundLicenseNum");
+ }
+ }
+ }
+
+ [System.Runtime.Serialization.DataMemberAttribute()]
+ public System.Nullable HoistingLicenseNum
+ {
+ get
+ {
+ return this.HoistingLicenseNumField;
+ }
+ set
+ {
+ if ((this.HoistingLicenseNumField.Equals(value) != true))
+ {
+ this.HoistingLicenseNumField = value;
+ this.RaisePropertyChanged("HoistingLicenseNum");
+ }
+ }
+ }
+
+ [System.Runtime.Serialization.DataMemberAttribute()]
+ public System.Nullable HighLicenseNum
+ {
+ get
+ {
+ return this.HighLicenseNumField;
+ }
+ set
+ {
+ if ((this.HighLicenseNumField.Equals(value) != true))
+ {
+ this.HighLicenseNumField = value;
+ this.RaisePropertyChanged("HighLicenseNum");
+ }
+ }
+ }
+
+ [System.Runtime.Serialization.DataMemberAttribute()]
+ public System.Nullable LimitLicenseNum
+ {
+ get
+ {
+ return this.LimitLicenseNumField;
+ }
+ set
+ {
+ if ((this.LimitLicenseNumField.Equals(value) != true))
+ {
+ this.LimitLicenseNumField = value;
+ this.RaisePropertyChanged("LimitLicenseNum");
+ }
+ }
+ }
+
+ [System.Runtime.Serialization.DataMemberAttribute()]
+ public System.Nullable FireLicenseNum
+ {
+ get
+ {
+ return this.FireLicenseNumField;
+ }
+ set
+ {
+ if ((this.FireLicenseNumField.Equals(value) != true))
+ {
+ this.FireLicenseNumField = value;
+ this.RaisePropertyChanged("FireLicenseNum");
+ }
+ }
+ }
+
+ [System.Runtime.Serialization.DataMemberAttribute()]
+ public System.Nullable ProofLargeProjectNum
+ {
+ get
+ {
+ return this.ProofLargeProjectNumField;
+ }
+ set
+ {
+ if ((this.ProofLargeProjectNumField.Equals(value) != true))
+ {
+ this.ProofLargeProjectNumField = value;
+ this.RaisePropertyChanged("ProofLargeProjectNum");
+ }
+ }
+ }
+
+ [System.Runtime.Serialization.DataMemberAttribute()]
+ public System.Nullable NotProofLargeProjectNum
+ {
+ get
+ {
+ return this.NotProofLargeProjectNumField;
+ }
+ set
+ {
+ if ((this.NotProofLargeProjectNumField.Equals(value) != true))
+ {
+ this.NotProofLargeProjectNumField = value;
+ this.RaisePropertyChanged("NotProofLargeProjectNum");
+ }
+ }
+ }
+
+ [System.Runtime.Serialization.DataMemberAttribute()]
+ public System.Nullable MajorHazardNum
+ {
+ get
+ {
+ return this.MajorHazardNumField;
+ }
+ set
+ {
+ if ((this.MajorHazardNumField.Equals(value) != true))
+ {
+ this.MajorHazardNumField = value;
+ this.RaisePropertyChanged("MajorHazardNum");
+ }
+ }
+ }
+
+ [System.Runtime.Serialization.DataMemberAttribute()]
+ public System.Nullable GeneralHazardNum
+ {
+ get
+ {
+ return this.GeneralHazardNumField;
+ }
+ set
+ {
+ if ((this.GeneralHazardNumField.Equals(value) != true))
+ {
+ this.GeneralHazardNumField = value;
+ this.RaisePropertyChanged("GeneralHazardNum");
+ }
+ }
+ }
+
+ [System.Runtime.Serialization.DataMemberAttribute()]
+ public System.Nullable TrainNum
+ {
+ get
+ {
+ return this.TrainNumField;
+ }
+ set
+ {
+ if ((this.TrainNumField.Equals(value) != true))
+ {
+ this.TrainNumField = value;
+ this.RaisePropertyChanged("TrainNum");
+ }
+ }
+ }
+
+ [System.Runtime.Serialization.DataMemberAttribute()]
+ public System.Nullable InputCosts
+ {
+ get
+ {
+ return this.InputCostsField;
+ }
+ set
+ {
+ if ((this.InputCostsField.Equals(value) != true))
+ {
+ this.InputCostsField = value;
+ this.RaisePropertyChanged("InputCosts");
+ }
+ }
+ }
+
+ [System.Runtime.Serialization.DataMemberAttribute()]
+
+ public System.Runtime.Serialization.ExtensionDataObject ExtensionData
+ {
+ get
+ {
return this.extensionDataField;
}
- set {
+ set
+ {
this.extensionDataField = value;
}
}
-
+
[System.Runtime.Serialization.DataMemberAttribute()]
- public System.Nullable AccidentMortality {
- get {
+ public System.Nullable AccidentMortality
+ {
+ get
+ {
return this.AccidentMortalityField;
}
- set {
- if ((this.AccidentMortalityField.Equals(value) != true)) {
+ set
+ {
+ if ((this.AccidentMortalityField.Equals(value) != true))
+ {
this.AccidentMortalityField = value;
this.RaisePropertyChanged("AccidentMortality");
}
}
}
-
+
[System.Runtime.Serialization.DataMemberAttribute()]
- public System.Nullable DeathAccidentFrequency {
- get {
+ public System.Nullable DeathAccidentFrequency
+ {
+ get
+ {
return this.DeathAccidentFrequencyField;
}
- set {
- if ((this.DeathAccidentFrequencyField.Equals(value) != true)) {
+ set
+ {
+ if ((this.DeathAccidentFrequencyField.Equals(value) != true))
+ {
this.DeathAccidentFrequencyField = value;
this.RaisePropertyChanged("DeathAccidentFrequency");
}
}
}
-
+
[System.Runtime.Serialization.DataMemberAttribute()]
- public string DutyPerson {
- get {
+ public string DutyPerson
+ {
+ get
+ {
return this.DutyPersonField;
}
- set {
- if ((object.ReferenceEquals(this.DutyPersonField, value) != true)) {
+ set
+ {
+ if ((object.ReferenceEquals(this.DutyPersonField, value) != true))
+ {
this.DutyPersonField = value;
this.RaisePropertyChanged("DutyPerson");
}
}
}
-
+
[System.Runtime.Serialization.DataMemberAttribute()]
- public System.Nullable FillingDate {
- get {
+ public System.Nullable FillingDate
+ {
+ get
+ {
return this.FillingDateField;
}
- set {
- if ((this.FillingDateField.Equals(value) != true)) {
+ set
+ {
+ if ((this.FillingDateField.Equals(value) != true))
+ {
this.FillingDateField = value;
this.RaisePropertyChanged("FillingDate");
}
}
}
-
+
[System.Runtime.Serialization.DataMemberAttribute()]
- public string FillingMan {
- get {
+ public string FillingMan
+ {
+ get
+ {
return this.FillingManField;
}
- set {
- if ((object.ReferenceEquals(this.FillingManField, value) != true)) {
+ set
+ {
+ if ((object.ReferenceEquals(this.FillingManField, value) != true))
+ {
this.FillingManField = value;
this.RaisePropertyChanged("FillingMan");
}
}
}
-
+
[System.Runtime.Serialization.DataMemberAttribute()]
- public System.Nullable LostTimeInjuryRate {
- get {
+ public System.Nullable LostTimeInjuryRate
+ {
+ get
+ {
return this.LostTimeInjuryRateField;
}
- set {
- if ((this.LostTimeInjuryRateField.Equals(value) != true)) {
+ set
+ {
+ if ((this.LostTimeInjuryRateField.Equals(value) != true))
+ {
this.LostTimeInjuryRateField = value;
this.RaisePropertyChanged("LostTimeInjuryRate");
}
}
}
-
+
[System.Runtime.Serialization.DataMemberAttribute()]
- public System.Nullable LostTimeRate {
- get {
+ public System.Nullable LostTimeRate
+ {
+ get
+ {
return this.LostTimeRateField;
}
- set {
- if ((this.LostTimeRateField.Equals(value) != true)) {
+ set
+ {
+ if ((this.LostTimeRateField.Equals(value) != true))
+ {
this.LostTimeRateField = value;
this.RaisePropertyChanged("LostTimeRate");
}
}
}
-
+
[System.Runtime.Serialization.DataMemberAttribute()]
- public string MillionsMonthlyReportId {
- get {
+ public string MillionsMonthlyReportId
+ {
+ get
+ {
return this.MillionsMonthlyReportIdField;
}
- set {
- if ((object.ReferenceEquals(this.MillionsMonthlyReportIdField, value) != true)) {
+ set
+ {
+ if ((object.ReferenceEquals(this.MillionsMonthlyReportIdField, value) != true))
+ {
this.MillionsMonthlyReportIdField = value;
this.RaisePropertyChanged("MillionsMonthlyReportId");
}
}
}
-
+
[System.Runtime.Serialization.DataMemberAttribute()]
- public System.Nullable Month {
- get {
+ public System.Nullable Month
+ {
+ get
+ {
return this.MonthField;
}
- set {
- if ((this.MonthField.Equals(value) != true)) {
+ set
+ {
+ if ((this.MonthField.Equals(value) != true))
+ {
this.MonthField = value;
this.RaisePropertyChanged("Month");
}
}
}
-
+
[System.Runtime.Serialization.DataMemberAttribute()]
- public System.Nullable RecordableIncidentRate {
- get {
+ public System.Nullable RecordableIncidentRate
+ {
+ get
+ {
return this.RecordableIncidentRateField;
}
- set {
- if ((this.RecordableIncidentRateField.Equals(value) != true)) {
+ set
+ {
+ if ((this.RecordableIncidentRateField.Equals(value) != true))
+ {
this.RecordableIncidentRateField = value;
this.RaisePropertyChanged("RecordableIncidentRate");
}
}
}
-
+
[System.Runtime.Serialization.DataMemberAttribute()]
- public string UnitId {
- get {
+ public string UnitId
+ {
+ get
+ {
return this.UnitIdField;
}
- set {
- if ((object.ReferenceEquals(this.UnitIdField, value) != true)) {
+ set
+ {
+ if ((object.ReferenceEquals(this.UnitIdField, value) != true))
+ {
this.UnitIdField = value;
this.RaisePropertyChanged("UnitId");
}
}
}
-
+
[System.Runtime.Serialization.DataMemberAttribute()]
- public System.Nullable Year {
- get {
+ public System.Nullable Year
+ {
+ get
+ {
return this.YearField;
}
- set {
- if ((this.YearField.Equals(value) != true)) {
+ set
+ {
+ if ((this.YearField.Equals(value) != true))
+ {
this.YearField = value;
this.RaisePropertyChanged("Year");
}
}
}
-
+
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
-
- protected void RaisePropertyChanged(string propertyName) {
+
+ protected void RaisePropertyChanged(string propertyName)
+ {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
- if ((propertyChanged != null)) {
+ if ((propertyChanged != null))
+ {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
-
+
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
[System.Runtime.Serialization.DataContractAttribute(Name="Information_MillionsMonthlyReportItem", Namespace="http://schemas.datacontract.org/2004/07/BLL.OpenService")]
diff --git a/SGGL/BLL/WebService/CNCECHSSEWebService.cs b/SGGL/BLL/WebService/CNCECHSSEWebService.cs
index 5e9fe4f6..4b730a04 100644
--- a/SGGL/BLL/WebService/CNCECHSSEWebService.cs
+++ b/SGGL/BLL/WebService/CNCECHSSEWebService.cs
@@ -1,16 +1,42 @@
namespace BLL
{
+ using Apache.NMS.ActiveMQ.Commands;
+ using BLL.CNCECHSSEService;
+ using Newtonsoft.Json;
+ using NPOI.POIFS.Crypt.Dsig;
using System;
using System.Collections.Generic;
- using BLL.CNCECHSSEService;
using System.Data;
- using Newtonsoft.Json;
- using RestSharp;
using System.IO;
using System.Linq;
+ //using System.Net.Http.Headers;
+ //using System.Net.Http;
+ using System.Web;
+ using RestSharp;
+ using System.Net;
public static class CNCECHSSEWebService
{
+ public static void upFile()
+ {
+ //int l = HttpContext.Current.Request.Files["testdoc"].ContentLength;
+ //byte[] buffer = new byte[l];
+ //Stream s = HttpContext.Current.Request.Files["testdoc"].InputStream;
+ //HttpClient client = new HttpClient();
+ //MultipartFormDataContent form = new MultipartFormDataContent();
+ //StreamContent fileContent = new StreamContent(s);
+ //fileContent.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");
+ //fileContent.Headers.ContentDisposition = new ContentDispositionHeaderValue("form-data");
+ //fileContent.Headers.ContentDisposition.FileName = s.filename;
+ //form.Add(fileContent);
+ //HttpResponseMessage res = client.PostAsync("http://192.168.8.9/llb/api/FileUpload/PostFile", form).Result;
+ //var msg = res.Content.ReadAsStringAsync().Result;
+ //if (msg.ToString() != "true")
+ //{
+ // return Content(msg);
+ //}
+
+ }
public static string UploadFile(string file)
{
string result = string.Empty;
@@ -80,6 +106,22 @@
LostTimeInjuryRate = x.LostTimeInjuryRate,
DeathAccidentFrequency = x.DeathAccidentFrequency,
AccidentMortality = x.AccidentMortality,
+ InputCosts = x.InputCosts,
+ TrainNum = x.TrainNum,
+ GeneralHazardNum = x.GeneralHazardNum,
+ MajorHazardNum = x.MajorHazardNum,
+ NotProofLargeProjectNum = x.NotProofLargeProjectNum,
+ ProofLargeProjectNum = x.ProofLargeProjectNum,
+ FireLicenseNum = x.FireLicenseNum,
+ LimitLicenseNum = x.LimitLicenseNum,
+ HighLicenseNum = x.HighLicenseNum,
+ HoistingLicenseNum = x.HoistingLicenseNum,
+ BreakGroundLicenseNum = x.BreakGroundLicenseNum,
+ ElectricityLicenseNum = x.ElectricityLicenseNum,
+ RTLicenseNum = x.RTLicenseNum,
+ NightLicenseNum = x.NightLicenseNum,
+ CommissionerNum = x.CommissionerNum,
+ SoleDutyNum = x.SoleDutyNum,
};
var upReportItem = from x in db.Information_MillionsMonthlyReportItem
@@ -102,15 +144,15 @@
MinorAccidentNum = x.MinorAccidentNum,
MinorAccidentPersonNum = x.MinorAccidentPersonNum,
MinorAccidentLossHour = x.MinorAccidentLossHour,
- OtherAccidentNum = x.OtherAccidentNum,
- OtherAccidentPersonNum = x.OtherAccidentPersonNum,
- OtherAccidentLossHour = x.OtherAccidentLossHour,
+ OtherAccidentNum = x.DeathAccidentNum,
+ OtherAccidentPersonNum = x.DeathAccidentPersonNum,
+ OtherAccidentLossHour = x.DeathAccidentLossHour,
RestrictedWorkPersonNum = x.RestrictedWorkPersonNum,
RestrictedWorkLossHour = x.RestrictedWorkLossHour,
MedicalTreatmentPersonNum = x.MedicalTreatmentPersonNum,
MedicalTreatmentLossHour = x.MedicalTreatmentLossHour,
FireNum = x.FireNum,
- ExplosionNum = x.ExplosionNum,
+ ExplosionNum = x.EnvironmenNum,
TrafficNum = x.TrafficNum,
EquipmentNum = x.EquipmentNum,
QualityNum = x.QualityNum,
@@ -139,17 +181,17 @@
UrgeReportService.SetComplete(report.UnitId, Const.ReportType_1, report.Year.ToString(), report.Month.ToString());
}
}
- LogService.AddSys_Log(CurrUser, "【百万工时安全统计月报表】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
+ LogService.AddSys_Log(CurrUser, "【企业安全数据统计月报】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
}
else
{
- LogService.AddSys_Log(CurrUser, "【百万工时安全统计月报表】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
+ LogService.AddSys_Log(CurrUser, "【企业安全数据统计月报】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
}
}
catch (Exception ex)
{
- ErrLogInfo.WriteLog("【百万工时安全统计月报表】上传到服务器", ex);
- LogService.AddSys_Log(CurrUser, "【百万工时安全统计月报表】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
+ ErrLogInfo.WriteLog("【企业安全数据统计月报】上传到服务器", ex);
+ LogService.AddSys_Log(CurrUser, "【企业安全数据统计月报】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
}
return code;
}
@@ -160,7 +202,7 @@
/// 主表
/// 明细表
///
- private static int UpApiMillionsMonthlyReport(IQueryable upReport, IQueryable upReportItem)
+ private static int UpApiMillionsMonthlyReport(IQueryable upReport, IQueryable upReportItem)
{
string baseurl = "/api/InformationData/SaveMillionsMonthlyReport";
//合并
@@ -755,6 +797,367 @@
}
#endregion
+ #region 化工行业能源节约与生态环境保护汇总表上报
+ ///
+ /// 化工行业能源节约与生态环境保护汇总表上报
+ ///
+ public static string UpChemicalReport(string chemicalReportId, Model.Sys_User CurrUser)
+ {
+ string code = "0";
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ try
+ {
+ CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient();
+ var upReport = from x in db.Environmental_ChemicalReport
+ where x.ChemicalReportId == chemicalReportId
+ select new Model.ChemicalReport
+ {
+ ChemicalReportId = x.ChemicalReportId,
+ UnitId = x.UnitId,
+ Year = x.Year,
+ Month = x.Month,
+ FillingMan = x.FillingMan,
+ FillingDate = x.FillingDate,
+ DutyPerson = x.DutyPerson,
+
+ };
+
+ var upReportItem = from x in db.Environmental_ChemicalReportItem
+ where x.ChemicalReportId == chemicalReportId
+ select new Model.ChemicalReportItem
+ {
+ ChemicalReportItemId = x.ChemicalReportItemId,
+ ChemicalReportId = x.ChemicalReportId,
+ SortIndex = x.SortIndex,
+ BaseNumber = x.BaseNumber,
+ LastYearValue = x.LastYearValue,
+ ThisYearValue = x.ThisYearValue,
+ Rate = x.Rate,
+ };
+
+ //老接口Serveice
+ //var getR = hsseC.DataInsertInformation_ChemicalReportTable(upReport.ToList(), upReportItem.ToList());
+ //新接口Api
+ code = UpApiChemicalReport(upReport, upReportItem).ToString();
+ if (code == "1")
+ {
+ foreach (var item in upReport.Select(p => p.ChemicalReportId))
+ {
+ var report = db.Environmental_ChemicalReport.FirstOrDefault(e => e.ChemicalReportId == item);
+ if (report != null)
+ {
+ report.UpState = BLL.Const.UpState_3;
+ db.SubmitChanges();
+ ////更新 当前人要处理的意见
+ ProjectDataFlowSetService.CloseFlowOperate(Const.ChemicalReportMenuId, item, string.Empty);
+ // //更新催报信息
+ UrgeReportService.SetComplete(report.UnitId, Const.ReportType_1, report.Year.ToString(), report.Month.ToString());
+ }
+ }
+ LogService.AddSys_Log(CurrUser, "【化工行业能源节约与生态环境保护汇总表】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.ChemicalReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ else
+ {
+ LogService.AddSys_Log(CurrUser, "【化工行业能源节约与生态环境保护汇总表】上传到服务器失败;", null, BLL.Const.ChemicalReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ }
+ catch (Exception ex)
+ {
+ ErrLogInfo.WriteLog("【化工行业能源节约与生态环境保护汇总表】上传到服务器", ex);
+ LogService.AddSys_Log(CurrUser, "【化工行业能源节约与生态环境保护汇总表】上传到服务器失败;", null, BLL.Const.ChemicalReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ return code;
+ }
+ }
+ ///
+ /// UpApiChemicalReportApi调用
+ ///
+ /// 主表
+ /// 明细表
+ ///
+ private static int UpApiChemicalReport(IQueryable upReport, IQueryable upReportItem)
+ {
+ string baseurl = "/api/InformationData/SaveChemicalReport";
+ //合并
+ //var resultJson = JsonConvert.SerializeObject(new { upReport, ReportItem = upReportItem });
+ var resultJsonReport = JsonConvert.SerializeObject(upReport.FirstOrDefault());
+ var resultJsonReportItem = JsonConvert.SerializeObject(new { ChemicalReportItem = upReportItem });
+ resultJsonReport = "{\"InformationDataItems\":[" + (resultJsonReport + resultJsonReportItem).Replace("}{", ",") + "]}";
+ var responeData = BLL.ServerService.PushCNCEC(resultJsonReport, baseurl);
+ return responeData.code;
+ }
+ #endregion
+
+ #region 中央企业环保产业企业基本情况和经营情况汇总表
+
+ public static string UpOperationReport(string businessReportId, Model.Sys_User CurrUser)
+ {
+ string code = "0";
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ try
+ {
+ var upReport = from x in db.Environmental_OperationReport
+ where x.BusinessReportId == businessReportId
+ select new Model.OperationReportDto
+ {
+ BusinessReportId = x.BusinessReportId,
+ UnitId = x.UnitId,
+ Year = x.Year,
+ Quarters = x.Quarters,
+ Code = x.Code,
+ UnitLevel = x.UnitLevel,
+ CreateDate = x.CreateDate,
+ Place = x.Place,
+ PersonNum = x.PersonNum,
+ TotalAssets = x.TotalAssets,
+ TotalValue = x.TotalValue,
+ NewInvestment = x.NewInvestment,
+ FillingMan = x.FillingMan,
+ FillingDate = x.FillingDate,
+ StatisticsDutyPerson = x.StatisticsDutyPerson,
+ UnitDutyPerson = x.UnitDutyPerson,
+ Remark = x.Remark
+ };
+
+ //新接口Api
+ code = UpApiOperationReport(upReport).ToString();
+ if (code == "1")
+ {
+ var report = db.Environmental_OperationReport.FirstOrDefault(e => e.BusinessReportId == businessReportId);
+ if (report != null)
+ {
+ report.UpState = BLL.Const.UpState_3;
+ db.SubmitChanges();
+ }
+ LogService.AddSys_Log(CurrUser, "【中央企业环保产业企业基本情况和经营情况汇总表】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.OperationReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ else
+ {
+ LogService.AddSys_Log(CurrUser, "【中央企业环保产业企业基本情况和经营情况汇总表】上传到服务器失败;", null, BLL.Const.OperationReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ }
+ catch (Exception ex)
+ {
+ ErrLogInfo.WriteLog("【中央企业环保产业企业基本情况和经营情况汇总表】上传到服务器", ex);
+ LogService.AddSys_Log(CurrUser, "【中央企业环保产业企业基本情况和经营情况汇总表】上传到服务器失败;", null, BLL.Const.OperationReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ return code;
+ }
+
+ }
+
+ private static int UpApiOperationReport(IQueryable upReport)
+ {
+ string baseurl = "/api/InformationData/SaveOperationReport";
+ var resultJsonReport = JsonConvert.SerializeObject(upReport.FirstOrDefault());
+ var responeData = BLL.ServerService.PushCNCEC(resultJsonReport, baseurl);
+ return responeData.code;
+ }
+
+
+ #endregion
+
+ #region 中央企业节能环保产业企业生产和服务业务情况报表上报
+ ///
+ /// 中央企业节能环保产业企业生产和服务业务情况报表上报
+ ///
+ public static string UpEnergyReport(string energyReportId, Model.Sys_User CurrUser)
+ {
+ string code = "0";
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ try
+ {
+ CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient();
+ var upReport = from x in db.Environmental_EnergyReport
+ where x.EnergyReportId == energyReportId
+ select new Model.EnergyReport
+ {
+ EnergyReportId = x.EnergyReportId,
+ UnitId = x.UnitId,
+ Year = x.Year,
+ Quarters = x.Quarters,
+ FillingMan = x.FillingMan,
+ FillingDate = x.FillingDate,
+ DutyPerson = x.DutyPerson,
+
+ };
+
+ var upReportItem = from x in db.Environmental_EnergyReportItem
+ where x.EnergyReportId == energyReportId
+ select new Model.EnergyReportItem
+ {
+ EnergyReportItemId = x.EnergyReportItemId,
+ EnergyReportId = x.EnergyReportId,
+ SortIndex = x.SortIndex,
+ BusinessCategory = x.BusinessCategory,
+ Throughput_BasePeriod = x.Throughput_BasePeriod,
+ Throughput_LastPeriod = x.Throughput_LastPeriod,
+ Throughput_ThisPeriod = x.Throughput_ThisPeriod,
+ Throughput_UnitOfMeasurement = x.Throughput_UnitOfMeasurement,
+ Yield_BasePeriod = x.Yield_BasePeriod,
+ Yield_LastPeriod = x.Yield_LastPeriod,
+ Yield_ThisPeriod = x.Yield_ThisPeriod,
+ Yield_UnitOfMeasurement = x.Yield_UnitOfMeasurement,
+ OutputValue_BasePeriod = x.OutputValue_BasePeriod,
+ OutputValue_LastYear = x.OutputValue_LastYear,
+ OutputValue_ThisYear = x.OutputValue_ThisYear,
+ OperationScale_BasePeriod = x.OperationScale_BasePeriod,
+ OperationScale_LastYear = x.OperationScale_LastYear,
+ OperationScale_ThisYear = x.OperationScale_ThisYear,
+ OperationScale_UnitOfMeasurement = x.OperationScale_UnitOfMeasurement,
+ ServiceOperatingIncome_BasePeriod = x.ServiceOperatingIncome_BasePeriod,
+ ServiceOperatingIncome_LastYear = x.ServiceOperatingIncome_LastYear,
+ ServiceOperatingIncome_ThisYear = x.ServiceOperatingIncome_ThisYear,
+ };
+
+ //老接口Serveice
+ //var getR = hsseC.DataInsertInformation_ChemicalReportTable(upReport.ToList(), upReportItem.ToList());
+ //新接口Api
+ code = UpApiEnergyReport(upReport, upReportItem).ToString();
+ if (code == "1")
+ {
+ foreach (var item in upReport.Select(p => p.EnergyReportId))
+ {
+ var report = db.Environmental_EnergyReport.FirstOrDefault(e => e.EnergyReportId == item);
+ if (report != null)
+ {
+ report.UpState = BLL.Const.UpState_3;
+ db.SubmitChanges();
+ ////更新 当前人要处理的意见
+ //ProjectDataFlowSetService.CloseFlowOperate(Const.ChemicalReportMenuId, item, string.Empty);
+ // //更新催报信息
+ //UrgeReportService.SetComplete(report.UnitId, Const.ReportType_1, report.Year.ToString(), report.Quarters.ToString());
+ }
+ }
+ LogService.AddSys_Log(CurrUser, "【中央企业节能环保产业企业生产和服务业务情况报表上报】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.EnergyReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ else
+ {
+ LogService.AddSys_Log(CurrUser, "【中央企业节能环保产业企业生产和服务业务情况报表上报】上传到服务器失败;", null, BLL.Const.EnergyReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ }
+ catch (Exception ex)
+ {
+ ErrLogInfo.WriteLog("【中央企业节能环保产业企业生产和服务业务情况报表上报】上传到服务器", ex);
+ LogService.AddSys_Log(CurrUser, "【中央企业节能环保产业企业生产和服务业务情况报表上报】上传到服务器失败;", null, BLL.Const.EnergyReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ return code;
+ }
+ }
+ ///
+ /// UpApiChemicalReportApi调用
+ ///
+ /// 主表
+ /// 明细表
+ ///
+ private static int UpApiEnergyReport(IQueryable upReport, IQueryable upReportItem)
+ {
+ string baseurl = "/api/InformationData/SaveEnergyReport";
+ //合并
+ //var resultJson = JsonConvert.SerializeObject(new { upReport, ReportItem = upReportItem });
+ var resultJsonReport = JsonConvert.SerializeObject(upReport.FirstOrDefault());
+ var resultJsonReportItem = JsonConvert.SerializeObject(new { EnergyReportItem = upReportItem });
+ resultJsonReport = "{\"InformationDataItems\":[" + (resultJsonReport + resultJsonReportItem).Replace("}{", ",") + "]}";
+ var responeData = BLL.ServerService.PushCNCEC(resultJsonReport, baseurl);
+ return responeData.code;
+ }
+ #endregion
+
+ #region 建筑行业能源节约与生态环境保护汇总表上报
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总表上报
+ ///
+ public static string UpArchitectureReport(string chemicalReportId, Model.Sys_User CurrUser)
+ {
+ string code = "0";
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ try
+ {
+ CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient();
+ var upReport = from x in db.Environmental_ArchitectureReport
+ where x.ArchitectureReportId == chemicalReportId
+ select new Model.ArchitectureReport
+ {
+ ArchitectureReportId = x.ArchitectureReportId,
+ UnitId = x.UnitId,
+ Year = x.Year,
+ Quarters = x.Quarters,
+ FillingMan = x.FillingMan,
+ FillingDate = x.FillingDate,
+ DutyPerson = x.DutyPerson,
+
+ };
+
+ var upReportItem = from x in db.Environmental_ArchitectureReportItem
+ where x.ArchitectureReportId == chemicalReportId
+ select new Model.ArchitectureReportItem
+ {
+ ArchitectureReportItemId = x.ArchitectureReportItemId,
+ ArchitectureReportId = x.ArchitectureReportId,
+ BaseNumber = x.BaseNumber,
+ SortIndex = x.SortIndex,
+ LastYearValue = x.LastYearValue,
+ ThisYearValue = x.ThisYearValue,
+ Rate = x.Rate,
+ };
+
+ //老接口Serveice
+ //var getR = hsseC.DataInsertInformation_ArchitectureReportTable(upReport.ToList(), upReportItem.ToList());
+ //新接口Api
+ code = UpApiArchitectureReport(upReport, upReportItem).ToString();
+ if (code == "1")
+ {
+ foreach (var item in upReport.Select(p => p.ArchitectureReportId))
+ {
+ var report = db.Environmental_ArchitectureReport.FirstOrDefault(e => e.ArchitectureReportId == item);
+ if (report != null)
+ {
+ report.UpState = BLL.Const.UpState_3;
+ db.SubmitChanges();
+ ////更新 当前人要处理的意见
+ ProjectDataFlowSetService.CloseFlowOperate(Const.ArchitectureReportMenuId, item, string.Empty);
+ // //更新催报信息
+ UrgeReportService.SetComplete(report.UnitId, Const.ReportType_1, report.Year.ToString(), report.Quarters.ToString());
+ }
+ }
+ LogService.AddSys_Log(CurrUser, "【建筑行业能源节约与生态环境保护汇总表】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.ArchitectureReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ else
+ {
+ LogService.AddSys_Log(CurrUser, "【建筑行业能源节约与生态环境保护汇总表】上传到服务器失败;", null, BLL.Const.ArchitectureReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ }
+ catch (Exception ex)
+ {
+ ErrLogInfo.WriteLog("【建筑行业能源节约与生态环境保护汇总表】上传到服务器", ex);
+ LogService.AddSys_Log(CurrUser, "【建筑行业能源节约与生态环境保护汇总表】上传到服务器失败;", null, BLL.Const.ArchitectureReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ return code;
+ }
+ }
+ ///
+ /// UpApiArchitectureReportApi调用
+ ///
+ /// 主表
+ /// 明细表
+ ///
+ private static int UpApiArchitectureReport(IQueryable upReport, IQueryable upReportItem)
+ {
+ string baseurl = "/api/InformationData/SaveArchitectureReport";
+ //合并
+ //var resultJson = JsonConvert.SerializeObject(new { upReport, ReportItem = upReportItem });
+ var resultJsonReport = JsonConvert.SerializeObject(upReport.FirstOrDefault());
+ var resultJsonReportItem = JsonConvert.SerializeObject(new { ArchitectureReportItem = upReportItem });
+ resultJsonReport = "{\"InformationDataItems\":[" + (resultJsonReport + resultJsonReportItem).Replace("}{", ",") + "]}";
+ var responeData = BLL.ServerService.PushCNCEC(resultJsonReport, baseurl);
+ return responeData.code;
+ }
+ #endregion
+
#region 企业监督检查报告上报
///
/// 企业监督检查报告上报
@@ -768,23 +1171,23 @@
{
CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient();
var upCheckReport = from x in db.Supervise_UpCheckReport
- where x.UpCheckReportId == upCheckReportId
- select new CNCECHSSEService.Supervise_UpCheckReport
- {
- UpCheckReportId = x.UpCheckReportId,
- UnitId = x.UnitId,
- CheckStartTime = x.CheckStartTime,
- CheckEndTime = x.CheckEndTime,
- Values1 = x.Values1,
- Values2 = x.Values2,
- Values3 = x.Values3,
- Values4 = x.Values4,
- Values5 = x.Values5,
- Values6 = x.Values6,
- Values7 = x.Values7,
- CompileDate = x.CompileDate,
- AuditDate = x.AuditDate,
- };
+ where x.UpCheckReportId == upCheckReportId
+ select new CNCECHSSEService.Supervise_UpCheckReport
+ {
+ UpCheckReportId = x.UpCheckReportId,
+ UnitId = x.UnitId,
+ CheckStartTime = x.CheckStartTime,
+ CheckEndTime = x.CheckEndTime,
+ Values1 = x.Values1,
+ Values2 = x.Values2,
+ Values3 = x.Values3,
+ Values4 = x.Values4,
+ Values5 = x.Values5,
+ Values6 = x.Values6,
+ Values7 = x.Values7,
+ CompileDate = x.CompileDate,
+ AuditDate = x.AuditDate,
+ };
var upCheckReportItem = from x in db.Supervise_UpCheckReportItem
where x.UpCheckReportId == upCheckReportId
@@ -831,7 +1234,7 @@
report.UpDateTime = System.DateTime.Now;
db.SubmitChanges();
////更新 当前人要处理的意见
- ProjectDataFlowSetService.CloseFlowOperate(Const.DrillPlanHalfYearReportMenuId, item, string.Empty);
+ ProjectDataFlowSetService.CloseFlowOperate(Const.DrillPlanHalfYearReportMenuId, item, string.Empty);
}
}
code = "1";
@@ -967,6 +1370,477 @@
}
#endregion
+ #region 安全管理工作总结报告
+ ///
+ /// 安全管理工作总结报告
+ ///
+ ///
+ ///
+ ///
+ public static string UpWorkSummaryReport(string workSummaryReportId, Model.Sys_User CurrUser)
+ {
+ string code = "0";
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ try
+ {
+ CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient();
+ var upReport = from x in db.Information_WorkSummaryReport
+ where x.WorkSummaryReportId == workSummaryReportId
+ select new Model.WorkSummaryReport
+ {
+ WorkSummaryReportId = x.WorkSummaryReportId,
+ UnitId = x.UnitId,
+ YearId = x.YearId,
+ ResponsiblePerson = x.ResponsiblePerson,
+ ResponsiblePersonTel = x.ResponsiblePersonTel,
+ ContactPerson = x.ContactPerson,
+ ContactPersonTel = x.ContactPersonTel,
+ ReportDate = x.ReportDate,
+ SafeLaborTime = x.SafeLaborTime,
+ SafetyObjectives = x.SafetyObjectives,
+ AccidentSituation = x.AccidentSituation,
+ Awards = x.Awards,
+ WorkDevelopment = x.WorkDevelopment,
+ PersonnelTraining = x.PersonnelTraining,
+ GovernanceSituation = x.GovernanceSituation,
+ ManagementActivity = x.ManagementActivity,
+ WorkExperience = x.WorkExperience,
+ Countermeasures = x.Countermeasures,
+ NextYearWorkPlan = x.NextYearWorkPlan,
+ JobSuggestion = x.JobSuggestion
+ };
+
+ //老接口Serveice
+ //var getR = hsseC.DataInsertInformation_ChemicalReportTable(upReport.ToList(), upReportItem.ToList());
+ //新接口Api
+ code = UpApiWorkSummaryReport(upReport).ToString();
+ if (code == "1")
+ {
+ foreach (var item in upReport.Select(p => p.WorkSummaryReportId))
+ {
+ var report = db.Information_WorkSummaryReport.FirstOrDefault(e => e.WorkSummaryReportId == item);
+ if (report != null)
+ {
+ report.UpState = BLL.Const.UpState_3;
+ db.SubmitChanges();
+ ////更新 当前人要处理的意见
+ ProjectDataFlowSetService.CloseFlowOperate(Const.WorkSummaryReportMenuId, item, string.Empty);
+ // //更新催报信息
+ UrgeReportService.SetComplete(report.UnitId, Const.ReportType_6, report.YearId.ToString(), string.Empty);
+ }
+ }
+ LogService.AddSys_Log(CurrUser, "【安全管理工作总结报告】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.WorkSummaryReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ else
+ {
+ LogService.AddSys_Log(CurrUser, "【安全管理工作总结报告】上传到服务器失败;", null, BLL.Const.WorkSummaryReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ }
+ catch (Exception ex)
+ {
+ ErrLogInfo.WriteLog("【安全管理工作总结报告】上传到服务器", ex);
+ LogService.AddSys_Log(CurrUser, "【安全管理工作总结报告】上传到服务器失败;", null, BLL.Const.WorkSummaryReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ return code;
+ }
+ }
+ ///
+ /// UpApiWorkSummaryReportApi调用
+ ///
+ /// 主表
+ ///
+ private static int UpApiWorkSummaryReport(IQueryable upReport)
+ {
+ string baseurl = "/api/InformationData/SaveWorkSummaryReport";
+
+ var resultJsonReport = JsonConvert.SerializeObject(upReport.FirstOrDefault());
+ //var resultJsonReportItem = JsonConvert.SerializeObject(new { ChemicalReportItem = upReportItem });
+ resultJsonReport = "{\"InformationDataItems\":[" + resultJsonReport.Replace("}{", ",") + "]}";
+ var responeData = BLL.ServerService.PushCNCEC(resultJsonReport, baseurl);
+ return responeData.code;
+ }
+ #endregion
+
+ #region 质量管理工作总结报告
+ ///
+ /// 质量管理工作总结报告
+ ///
+ ///
+ ///
+ ///
+ public static string UpQualityWorkSummaryReport(string qualityWorkSummaryReportId, Model.Sys_User CurrUser)
+ {
+ string code = "0";
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ try
+ {
+ CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient();
+ var upReport = from x in db.Information_QualityWorkSummaryReport
+ where x.QualityWorkSummaryReportId == qualityWorkSummaryReportId
+ select new Model.QualityWorkSummaryReport
+ {
+ QualityWorkSummaryReportId = x.QualityWorkSummaryReportId,
+ UnitId = x.UnitId,
+ YearId = x.YearId,
+ ResponsiblePerson = x.ResponsiblePerson,
+ ResponsiblePersonTel = x.ResponsiblePersonTel,
+ ContactPerson = x.ContactPerson,
+ ContactPersonTel = x.ContactPersonTel,
+ ReportDate = x.ReportDate,
+ Performance = x.Performance,
+ AccidentSituation = x.AccidentSituation,
+ Awards = x.Awards,
+ WorkDevelopment = x.WorkDevelopment,
+ PersonnelTraining = x.PersonnelTraining,
+ CheckSituation = x.CheckSituation,
+ ManagementActivity = x.ManagementActivity,
+ WorkExperience = x.WorkExperience,
+ Countermeasures = x.Countermeasures,
+ NextYearWorkPlan = x.NextYearWorkPlan,
+ JobSuggestion = x.JobSuggestion
+ };
+
+ //老接口Serveice
+ //var getR = hsseC.DataInsertInformation_ChemicalReportTable(upReport.ToList(), upReportItem.ToList());
+ //新接口Api
+ code = UpApiQualityWorkSummaryReport(upReport).ToString();
+ if (code == "1")
+ {
+ foreach (var item in upReport.Select(p => p.QualityWorkSummaryReportId))
+ {
+ var report = db.Information_QualityWorkSummaryReport.FirstOrDefault(e => e.QualityWorkSummaryReportId == item);
+ if (report != null)
+ {
+ report.UpState = BLL.Const.UpState_3;
+ db.SubmitChanges();
+ ////更新 当前人要处理的意见
+ ProjectDataFlowSetService.CloseFlowOperate(Const.QualityWorkSummaryReportMenuId, item, string.Empty);
+ // //更新催报信息
+ UrgeReportService.SetComplete(report.UnitId, Const.ReportType_7, report.YearId.ToString(), string.Empty);
+ }
+ }
+ LogService.AddSys_Log(CurrUser, "【质量管理工作总结报告】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.QualityWorkSummaryReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ else
+ {
+ LogService.AddSys_Log(CurrUser, "【质量管理工作总结报告】上传到服务器失败;", null, BLL.Const.QualityWorkSummaryReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ }
+ catch (Exception ex)
+ {
+ ErrLogInfo.WriteLog("【质量管理工作总结报告】上传到服务器", ex);
+ LogService.AddSys_Log(CurrUser, "【质量管理工作总结报告】上传到服务器失败;", null, BLL.Const.QualityWorkSummaryReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ return code;
+ }
+ }
+ ///
+ /// UpApiQualityWorkSummaryReport
+ ///
+ /// 主表
+ ///
+ private static int UpApiQualityWorkSummaryReport(IQueryable upReport)
+ {
+ string baseurl = "/api/InformationData/SaveQualityWorkSummaryReport";
+
+ var resultJsonReport = JsonConvert.SerializeObject(upReport.FirstOrDefault());
+ //var resultJsonReportItem = JsonConvert.SerializeObject(new { ChemicalReportItem = upReportItem });
+ resultJsonReport = "{\"InformationDataItems\":[" + resultJsonReport.Replace("}{", ",") + "]}";
+ var responeData = BLL.ServerService.PushCNCEC(resultJsonReport, baseurl);
+ return responeData.code;
+ }
+ #endregion
+
+ #region 实业安全简报
+ ///
+ /// 实业安全简报
+ ///
+ ///
+ ///
+ ///
+ public static string UpSafetyBriefing(string safetyBriefingId, Model.Sys_User CurrUser)
+ {
+ string code = "0";
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ try
+ {
+ CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient();
+ var upReport = from x in db.Information_SafetyBriefing
+ where x.SafetyBriefingId == safetyBriefingId
+ select new Model.SafetyBriefing
+ {
+ SafetyBriefingId = x.SafetyBriefingId,
+ UnitId = x.UnitId,
+ YearId = x.YearId,
+ Month = x.Month,
+ CompileMan = BLL.UserService.GetUserNameByUserId(x.CompileMan),
+ CompileDate = x.CompileDate,
+ Auditor = x.Auditor,
+ Approver = x.Approver,
+ MainWork = x.MainWork,
+ HazardRecording = x.HazardRecording,
+ SafetyAccident = x.SafetyAccident,
+ EPAccident = x.EPAccident,
+ OHAccident = x.OHAccident,
+ WorkPermitNum = x.WorkPermitNum,
+ HiddenDangerDetection = x.HiddenDangerDetection,
+ RectificationSituation = x.RectificationSituation,
+ CheckProblemsRectification = x.CheckProblemsRectification,
+ PendingProject = x.PendingProject,
+ ContractorManagement = x.ContractorManagement,
+ EnvironmentalEmissions = x.EnvironmentalEmissions,
+ NextMonthWorkPlan = x.NextMonthWorkPlan
+ };
+
+ //老接口Serveice
+ //var getR = hsseC.DataInsertInformation_ChemicalReportTable(upReport.ToList(), upReportItem.ToList());
+ //新接口Api
+ code = UpApiSafetyBriefing(upReport).ToString();
+ if (code == "1")
+ {
+ foreach (var item in upReport.Select(p => p.SafetyBriefingId))
+ {
+ var report = db.Information_SafetyBriefing.FirstOrDefault(e => e.SafetyBriefingId == item);
+ if (report != null)
+ {
+ report.UpState = BLL.Const.UpState_3;
+ db.SubmitChanges();
+ ////更新 当前人要处理的意见
+ ProjectDataFlowSetService.CloseFlowOperate(Const.SafetyBriefingMenuId, item, string.Empty);
+ // //更新催报信息
+ UrgeReportService.SetComplete(report.UnitId, Const.ReportType_7, report.YearId.ToString(), report.Month.ToString());
+ }
+ }
+ LogService.AddSys_Log(CurrUser, "【实业安全简报】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.SafetyBriefingMenuId, BLL.Const.BtnUploadResources);
+ }
+ else
+ {
+ LogService.AddSys_Log(CurrUser, "【实业安全简报】上传到服务器失败;", null, BLL.Const.SafetyBriefingMenuId, BLL.Const.BtnUploadResources);
+ }
+ }
+ catch (Exception ex)
+ {
+ ErrLogInfo.WriteLog("【实业安全简报】上传到服务器", ex);
+ LogService.AddSys_Log(CurrUser, "【实业安全简报】上传到服务器失败;", null, BLL.Const.SafetyBriefingMenuId, BLL.Const.BtnUploadResources);
+ }
+ return code;
+ }
+ }
+ ///
+ /// UpApiSafetyBriefing
+ ///
+ /// 主表
+ ///
+ private static int UpApiSafetyBriefing(IQueryable upReport)
+ {
+ string baseurl = "/api/InformationData/SaveSafetyBriefing";
+
+ var resultJsonReport = JsonConvert.SerializeObject(upReport.FirstOrDefault());
+ //var resultJsonReportItem = JsonConvert.SerializeObject(new { ChemicalReportItem = upReportItem });
+ resultJsonReport = "{\"InformationDataItems\":[" + resultJsonReport.Replace("}{", ",") + "]}";
+ var responeData = BLL.ServerService.PushCNCEC(resultJsonReport, baseurl);
+ return responeData.code;
+ }
+ #endregion
+
+ #region 季度工程项目质量信息表
+ ///
+ /// 季度工程项目质量信息表
+ ///
+ ///
+ ///
+ ///
+ public static string UpQuarterlyProjectQuality(string quarterlyProjectQualityId, Model.Sys_User CurrUser)
+ {
+ string code = "0";
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ try
+ {
+ CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient();
+ var upReport = from x in db.Information_QuarterlyProjectQuality
+ where x.QuarterlyProjectQualityId == quarterlyProjectQualityId
+ select new Model.QuarterlyProjectQuality
+ {
+ QuarterlyProjectQualityId = x.QuarterlyProjectQualityId,
+ UnitId = x.UnitId,
+ Year = x.Year,
+ Quarter = x.Quarter,
+ QualityManagePersonNum = x.QualityManagePersonNum,
+ AdvancedTitlePersonNum = x.AdvancedTitlePersonNum,
+ IntermediateTitlePersonNum = x.IntermediateTitlePersonNum,
+ BeImplementedProjectNum = x.BeImplementedProjectNum,
+ StartImplementedProjectNum = x.StartImplementedProjectNum,
+ AccumulativeStartImplemented = x.AccumulativeStartImplemented,
+ CompleteProjectNum = x.CompleteProjectNum,
+ YearCompleteProjectNum = x.YearCompleteProjectNum,
+ QuarterTotal = x.QuarterTotal,
+ QuarterFirstPassNum = x.QuarterFirstPassNum,
+ QuarterFirstPassRate = x.QuarterFirstPassRate,
+ YearTotal = x.YearTotal,
+ YearFirstPassNum = x.YearFirstPassNum,
+ YearFirstPassRate = x.YearFirstPassRate,
+ QuaterCheckSuperviseNum = x.QuaterCheckSuperviseNum,
+ QuaterCorrectiveNoticeNum = x.QuaterCorrectiveNoticeNum,
+ QuaterQualityProblemNum = x.QuaterQualityProblemNum,
+ QuaterClosedQualityProblemNum = x.QuaterClosedQualityProblemNum,
+ YearCheckSuperviseNum = x.YearCheckSuperviseNum,
+ YearCorrectiveNoticeNum = x.YearCorrectiveNoticeNum,
+ YearQualityProblemNum = x.YearQualityProblemNum,
+ YearClosedQualityProblemNum = x.YearClosedQualityProblemNum,
+ QuaterQualityAccidentNum = x.QuaterQualityAccidentNum,
+ QuaterDirectEconomicLoss = x.QuaterDirectEconomicLoss,
+ YearQualityAccidentNum = x.YearQualityAccidentNum,
+ YearDirectEconomicLoss = x.YearDirectEconomicLoss,
+ ResponsiblePerson = BLL.UserService.GetUserNameByUserId(x.ResponsiblePerson),
+ CompileMan = BLL.UserService.GetUserNameByUserId(x.CompileMan),
+ CompileDate = x.CompileDate,
+ Tel = x.Tel
+ };
+
+ //老接口Serveice
+ //var getR = hsseC.DataInsertInformation_ChemicalReportTable(upReport.ToList(), upReportItem.ToList());
+ //新接口Api
+ code = UpApiQuarterlyProjectQuality(upReport).ToString();
+ if (code == "1")
+ {
+ foreach (var item in upReport.Select(p => p.QuarterlyProjectQualityId))
+ {
+ var report = db.Information_QuarterlyProjectQuality.FirstOrDefault(e => e.QuarterlyProjectQualityId == item);
+ if (report != null)
+ {
+ report.UpState = BLL.Const.UpState_3;
+ db.SubmitChanges();
+ ////更新 当前人要处理的意见
+ ProjectDataFlowSetService.CloseFlowOperate(Const.QuarterlyProjectQualityMenuId, item, string.Empty);
+ // //更新催报信息
+ UrgeReportService.SetComplete(report.UnitId, Const.ReportType_9, report.Year.ToString(), report.Quarter.ToString());
+ }
+ }
+ LogService.AddSys_Log(CurrUser, "【季度工程项目质量信息表】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.QuarterlyProjectQualityMenuId, BLL.Const.BtnUploadResources);
+ }
+ else
+ {
+ LogService.AddSys_Log(CurrUser, "【季度工程项目质量信息表】上传到服务器失败;", null, BLL.Const.QuarterlyProjectQualityMenuId, BLL.Const.BtnUploadResources);
+ }
+ }
+ catch (Exception ex)
+ {
+ ErrLogInfo.WriteLog("【季度工程项目质量信息表】上传到服务器", ex);
+ LogService.AddSys_Log(CurrUser, "【季度工程项目质量信息表】上传到服务器失败;", null, BLL.Const.QuarterlyProjectQualityMenuId, BLL.Const.BtnUploadResources);
+ }
+ return code;
+ }
+ }
+ ///
+ /// UpApiSafetyBriefing
+ ///
+ /// 主表
+ ///
+ private static int UpApiQuarterlyProjectQuality(IQueryable upReport)
+ {
+ string baseurl = "/api/InformationData/SaveQuarterlyProjectQuality";
+
+ var resultJsonReport = JsonConvert.SerializeObject(upReport.FirstOrDefault());
+ //var resultJsonReportItem = JsonConvert.SerializeObject(new { ChemicalReportItem = upReportItem });
+ resultJsonReport = "{\"InformationDataItems\":[" + resultJsonReport.Replace("}{", ",") + "]}";
+ var responeData = BLL.ServerService.PushCNCEC(resultJsonReport, baseurl);
+ return responeData.code;
+ }
+ #endregion
+
+ #region 生态环保工作总结报告
+ ///
+ /// 生态环保工作总结报告
+ ///
+ ///
+ ///
+ ///
+ public static string UpEPSummaryReport(string ePSummaryReportId, Model.Sys_User CurrUser)
+ {
+ string code = "0";
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ try
+ {
+ CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient();
+ var upReport = from x in db.Information_EPSummaryReport
+ where x.EPSummaryReportId == ePSummaryReportId
+ select new Model.EPSummaryReport
+ {
+ EPSummaryReportId = x.EPSummaryReportId,
+ UnitId = x.UnitId,
+ YearId = x.YearId,
+ ResponsiblePerson = x.ResponsiblePerson,
+ ResponsiblePersonTel = x.ResponsiblePersonTel,
+ ContactPerson = x.ContactPerson,
+ ContactPersonTel = x.ContactPersonTel,
+ ReportDate = x.ReportDate,
+ Description1 = x.Description1,
+ Description2 = x.Description2,
+ Description3 = x.Description3,
+ Description4 = x.Description4,
+ Description5 = x.Description5,
+ Description6 = x.Description6,
+ Description7 = x.Description7,
+ Description8 = x.Description8,
+ Description9 = x.Description9
+ };
+
+ //老接口Serveice
+ //var getR = hsseC.DataInsertInformation_ChemicalReportTable(upReport.ToList(), upReportItem.ToList());
+ //新接口Api
+ code = UpApiEPSummaryReport(upReport).ToString();
+ if (code == "1")
+ {
+ foreach (var item in upReport.Select(p => p.EPSummaryReportId))
+ {
+ var report = db.Information_EPSummaryReport.FirstOrDefault(e => e.EPSummaryReportId == item);
+ if (report != null)
+ {
+ report.UpState = BLL.Const.UpState_3;
+ db.SubmitChanges();
+ ////更新 当前人要处理的意见
+ ProjectDataFlowSetService.CloseFlowOperate(Const.EPSummaryReportMenuId, item, string.Empty);
+ // //更新催报信息
+ UrgeReportService.SetComplete(report.UnitId, Const.ReportType_10, report.YearId.ToString(), string.Empty);
+ }
+ }
+ LogService.AddSys_Log(CurrUser, "【生态环保工作总结报告】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.EPSummaryReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ else
+ {
+ LogService.AddSys_Log(CurrUser, "【生态环保工作总结报告】上传到服务器失败;", null, BLL.Const.EPSummaryReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ }
+ catch (Exception ex)
+ {
+ ErrLogInfo.WriteLog("【生态环保工作总结报告】上传到服务器", ex);
+ LogService.AddSys_Log(CurrUser, "【生态环保工作总结报告】上传到服务器失败;", null, BLL.Const.EPSummaryReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ return code;
+ }
+ }
+ ///
+ /// UpApiEPSummaryReport
+ ///
+ /// 主表
+ ///
+ private static int UpApiEPSummaryReport(IQueryable upReport)
+ {
+ string baseurl = "/api/InformationData/SaveEPSummaryReport";
+
+ var resultJsonReport = JsonConvert.SerializeObject(upReport.FirstOrDefault());
+ //var resultJsonReportItem = JsonConvert.SerializeObject(new { ChemicalReportItem = upReportItem });
+ resultJsonReport = "{\"InformationDataItems\":[" + resultJsonReport.Replace("}{", ",") + "]}";
+ var responeData = BLL.ServerService.PushCNCEC(resultJsonReport, baseurl);
+ return responeData.code;
+ }
+ #endregion
+
#endregion
#region 从集团获取数据
@@ -981,9 +1855,10 @@
{
var responeData = new Model.ResponeData();
try
- {
+ {
CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient();
- var getData = hsseC.GetInformation_UrgeReportToSUB(Const.UnitId_CWCEC);
+ string thisUnitId = BLL.Const.UnitId_CWCEC;
+ var getData = hsseC.GetInformation_UrgeReportToSUB(thisUnitId);
if (getData.Count() > 0)
{
foreach (var item in getData)
@@ -1023,7 +1898,7 @@
ErrLogInfo.WriteLog("催报信息从集团公司提取到企业!", ex);
}
return responeData;
- }
+ }
}
#endregion
@@ -1039,8 +1914,9 @@
var responeData = new Model.ResponeData();
try
{
+ string thisUnitId = BLL.Const.UnitId_CWCEC;
CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient();
- var getData = hsseC.GetCheck_CheckRectifyListToSUB(Const.UnitId_CWCEC);
+ var getData = hsseC.GetCheck_CheckRectifyListToSUB(thisUnitId);
if (getData.Count() > 0)
{
List ids = new List();
@@ -1142,8 +2018,9 @@
var responeData = new Model.ResponeData();
try
{
+ string thisUnitId = BLL.Const.UnitId_CWCEC;
CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient();
- var getData = hsseC.GetCheck_CheckInfo_Table8ItemListToSUB(Const.UnitId_CWCEC);
+ var getData = hsseC.GetCheck_CheckInfo_Table8ItemListToSUB(thisUnitId);
if (getData.Count() > 0)
{
List ids = new List();
@@ -1306,10 +2183,10 @@
newSubUnitReport.IsEndLever = item.IsEndLever;
db.SubmitChanges();
}
- }
+ }
}
-
- var getDataItem = hsseC.GetSupervise_SubUnitReportItemListToSUB(Const.UnitId_CWCEC);
+ string thisUnitId = BLL.Const.UnitId_CWCEC;
+ var getDataItem = hsseC.GetSupervise_SubUnitReportItemListToSUB(thisUnitId);
foreach (var item in getDataItem)
{
var newItem = db.Supervise_SubUnitReportItem.FirstOrDefault(e => e.SubUnitReportItemId == item.SubUnitReportItemId);
@@ -1376,7 +2253,7 @@
var getLawRegulationList = db.Law_LawRegulationList.FirstOrDefault(x => x.LawRegulationId == item.LawRegulationId);
if (getLawRegulationList == null)
{
- var type =db.Base_LawsRegulationsType.FirstOrDefault(e => e.Id == item.LawsRegulationsTypeId);
+ var type = db.Base_LawsRegulationsType.FirstOrDefault(e => e.Id == item.LawsRegulationsTypeId);
if (!string.IsNullOrEmpty(item.LawsRegulationsTypeId) && type == null)
{
Model.Base_LawsRegulationsType new_LawsRegulationsType = new Model.Base_LawsRegulationsType
@@ -1408,7 +2285,7 @@
LawRegulationLists.Add(newLawRegulationList);
////上传附件
BLL.FileInsertService.InsertAttachFile(item.AttachFileId, item.LawRegulationId, item.AttachSource, item.AttachUrl, item.FileContext);
- }
+ }
}
if (LawRegulationLists.Count() > 0)
@@ -1417,7 +2294,7 @@
db.SubmitChanges();
}
responeData.message = "获取成功:记录" + LawRegulationLists.Count().ToString() + "条";
- }
+ }
}
catch (Exception ex)
{
@@ -2202,7 +3079,7 @@
UnitId = item.UnitId,
IsPass = true
};
- newItemLists.Add(newItemList);
+ newItemLists.Add(newItemList);
}
}
if (newItemLists.Count() > 0)
@@ -2406,4 +3283,6 @@
#endregion
#endregion
}
+
+
}
diff --git a/SGGL/BLL/ZHGL/Environmental/ArchitectureReportItemService.cs b/SGGL/BLL/ZHGL/Environmental/ArchitectureReportItemService.cs
new file mode 100644
index 00000000..39c5b065
--- /dev/null
+++ b/SGGL/BLL/ZHGL/Environmental/ArchitectureReportItemService.cs
@@ -0,0 +1,307 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Web.UI.WebControls;
+
+namespace BLL
+{
+ public static class ArchitectureReportItemService
+ {
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总明细表
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总明细表Id
+ /// 建筑行业能源节约与生态环境保护汇总明细表
+ public static Model.Environmental_ArchitectureReportItem GetArchitectureReportItemByArchitectureReportItemId(string ArchitectureReportItemId)
+ {
+ return Funs.DB.Environmental_ArchitectureReportItem.FirstOrDefault(e => e.ArchitectureReportItemId == ArchitectureReportItemId);
+ }
+
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总明细表
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总明细表Id
+ /// 建筑行业能源节约与生态环境保护汇总明细表
+ public static Model.Environmental_ArchitectureReportItem GetArchitectureReportItemByArchitectureReportIdAndTypeId(string ArchitectureReportId)
+ {
+ return Funs.DB.Environmental_ArchitectureReportItem.FirstOrDefault(e => e.ArchitectureReportId == ArchitectureReportId);
+ }
+
+ ///
+ /// 根据主表Id判断是否存在明细记录
+ ///
+ /// 企业安全数据统计月报表Id
+ /// 是否存在明细记录
+ public static bool IsExitItems(string ArchitectureReportId)
+ {
+ return (from x in Funs.DB.Environmental_ArchitectureReportItem where x.ArchitectureReportId == ArchitectureReportId select x).Count() > 0;
+ }
+
+ ///
+ /// 根据主表Id获取明细记录集合
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总明细表Id
+ /// 明细记录集合
+ public static List GetItems(string ArchitectureReportId)
+ {
+ return (from x in Funs.DB.Environmental_ArchitectureReportItem
+ where x.ArchitectureReportId == ArchitectureReportId
+ orderby x.SortIndex
+ select x).ToList();
+ }
+
+ ///
+ /// 根据主表Id获取明细记录集合
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总明细表Id
+ /// 明细记录集合
+ public static List GetYearSumItems(string unitId, int? year, int? Quarters)
+ {
+ return (from x in Funs.DB.Environmental_ArchitectureReportItem
+ join y in Funs.DB.Environmental_ArchitectureReport
+ on x.ArchitectureReportId equals y.ArchitectureReportId
+ where y.UnitId == unitId && y.Year == year && y.Quarters == Quarters
+ orderby x.SortIndex
+ select x).Distinct().ToList();
+ }
+
+ ///
+ /// 根据主表Id获取年度明细记录集合
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总明细表Id
+ /// 年度明细记录集合
+ public static List GetLastYearItems(int year)
+ {
+ return (from x in Funs.DB.Environmental_ArchitectureReportItem
+ join y in Funs.DB.Environmental_ArchitectureReport
+ on x.ArchitectureReportId equals y.ArchitectureReportId
+ where y.Year == year
+ select x).Distinct().ToList();
+ }
+
+ ///
+ /// 根据主表Id获取明细记录集合(不包含本月合计行)
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总明细表Id
+ /// 明细记录集合
+ public static List GetShowItems(string ArchitectureReportId)
+ {
+ var q = (from x in Funs.DB.Environmental_ArchitectureReportItem
+ where x.ArchitectureReportId == ArchitectureReportId
+ orderby x.SortIndex
+ select x).ToList();
+ List newItems = new List();
+ var indexNames = GetIndexNames();
+ var units = GetUnits();
+ foreach (var item in q)
+ {
+ Model.ArchitectureReportItem newItem = new Model.ArchitectureReportItem();
+ newItem.ArchitectureReportItemId = item.ArchitectureReportItemId;
+ newItem.IndexName = indexNames.First(x => x.Value == item.SortIndex).Text;
+ newItem.Unit = units.First(x => x.Value == item.SortIndex).Text;
+ newItem.SortIndex = item.SortIndex;
+ newItem.BaseNumber = item.BaseNumber;
+ newItem.LastYearValue = item.LastYearValue;
+ newItem.ThisYearValue = item.ThisYearValue;
+ newItem.Rate = item.Rate;
+ newItems.Add(newItem);
+ }
+ return newItems;
+ }
+
+ ///
+ /// 增加建筑行业能源节约与生态环境保护汇总明细表
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总明细表实体
+ public static void AddArchitectureReportItem(Model.Environmental_ArchitectureReportItem ArchitectureReportItem)
+ {
+ Model.Environmental_ArchitectureReportItem newArchitectureReportItem = new Model.Environmental_ArchitectureReportItem
+ {
+ ArchitectureReportItemId = ArchitectureReportItem.ArchitectureReportItemId,
+ ArchitectureReportId = ArchitectureReportItem.ArchitectureReportId,
+ BaseNumber = ArchitectureReportItem.BaseNumber,
+ SortIndex = ArchitectureReportItem.SortIndex,
+ LastYearValue = ArchitectureReportItem.LastYearValue,
+ ThisYearValue = ArchitectureReportItem.ThisYearValue,
+ Rate = ArchitectureReportItem.Rate,
+ };
+
+ Funs.DB.Environmental_ArchitectureReportItem.InsertOnSubmit(newArchitectureReportItem);
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 修改建筑行业能源节约与生态环境保护汇总明细表
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总明细表实体
+ public static void UpdateArchitectureReportItem(Model.Environmental_ArchitectureReportItem ArchitectureReportItem)
+ {
+ Model.Environmental_ArchitectureReportItem newArchitectureReportItem = Funs.DB.Environmental_ArchitectureReportItem.FirstOrDefault(e => e.ArchitectureReportItemId == ArchitectureReportItem.ArchitectureReportItemId);
+ newArchitectureReportItem.SortIndex = ArchitectureReportItem.SortIndex;
+ newArchitectureReportItem.BaseNumber = ArchitectureReportItem.BaseNumber;
+ newArchitectureReportItem.LastYearValue = ArchitectureReportItem.LastYearValue;
+ newArchitectureReportItem.ThisYearValue = ArchitectureReportItem.ThisYearValue;
+ newArchitectureReportItem.Rate = ArchitectureReportItem.Rate;
+
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 根据Id删除所有数据
+ ///
+ ///
+ public static void DeleteArchitectureReportItemByArchitectureReportId(string ArchitectureReportId)
+ {
+ var q = from x in Funs.DB.Environmental_ArchitectureReportItem where x.ArchitectureReportId == ArchitectureReportId select x;
+ if (q != null)
+ {
+ Funs.DB.Environmental_ArchitectureReportItem.DeleteAllOnSubmit(q);
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 获取指标名称集合
+ ///
+ ///
+ public static ListItem[] GetIndexNames()
+ {
+ ListItem[] list = new ListItem[61];
+ list[0] = new ListItem("1.能源消费量", "01");
+ list[1] = new ListItem("A其中:原煤(标准量)", "02");
+ list[2] = new ListItem("B原煤(实物量)", "03");
+ list[3] = new ListItem("C其中:发电用煤", "04");
+ list[4] = new ListItem("B焦炭", "05");
+ list[5] = new ListItem("B电力", "06");
+ list[6] = new ListItem("B原油", "07");
+ list[7] = new ListItem("B汽油", "08");
+ list[8] = new ListItem("B煤油", "09");
+ list[9] = new ListItem("B柴油", "10");
+ list[10] = new ListItem("B燃料油", "11");
+ list[11] = new ListItem("B天然气", "12");
+ list[12] = new ListItem("B热力", "13");
+ list[13] = new ListItem("B其他能源", "14");
+ list[14] = new ListItem("2.万元营业收入综合能耗(现价)", "15");
+ list[15] = new ListItem("A其中:营业收入(现价)", "16");
+ list[16] = new ListItem("E万元营业收入综合能耗(可比价)", "17");
+ list[17] = new ListItem("A其中:营业收入(可比价)", "18");
+ list[18] = new ListItem("3.万元增加值综合能耗(现价)", "19");
+ list[19] = new ListItem("A其中:增加值(现价)", "20");
+ list[20] = new ListItem("E万元增加值综合能耗(可比价)", "21");
+ list[21] = new ListItem("A其中:增加值(可比价)", "22");
+ list[22] = new ListItem("4.万元营业收入用新水量(可比价)", "23");
+ list[23] = new ListItem("A其中:用新水量", "24");
+ list[24] = new ListItem("5.节能量", "25");
+ list[25] = new ListItem("6.二氧化硫排放量", "26");
+ list[26] = new ListItem("7.氮氧化物排放量", "27");
+ list[27] = new ListItem("8.化学需氧量排放量", "28");
+ list[28] = new ListItem("A其中:排入外环境", "29");
+ list[29] = new ListItem("B排入市政管网或生活污水处理厂", "30");
+ list[30] = new ListItem("9.氨氮排放量", "31");
+ list[31] = new ListItem("A其中:排入外环境", "32");
+ list[32] = new ListItem("B排入市政管网或生活污水处理厂", "33");
+ list[33] = new ListItem("10.烟(粉)尘排放量", "34");
+ list[34] = new ListItem("11.挥发性有机物排放量", "35");
+ list[35] = new ListItem("12.废水排放量", "36");
+ list[36] = new ListItem("13.万元收入二氧化碳排放(可比价)", "37");
+ list[37] = new ListItem("A其中:二氧化碳排放量", "38");
+ list[38] = new ListItem("14.一般固体废物综合利用率", "39");
+ list[39] = new ListItem("A其中:一般固体废物综合利用量", "40");
+ list[40] = new ListItem("B其中:综合利用往年贮存量", "41");
+ list[41] = new ListItem("F一般固体废物产生量", "42");
+ list[42] = new ListItem("15.危险废物处置率", "43");
+ list[43] = new ListItem("A其中:危险废物处置量", "44");
+ list[44] = new ListItem("B其中:处置往年贮存量", "45");
+ list[45] = new ListItem("F危险废物产生量", "46");
+ list[46] = new ListItem("16.土壤污染治理率", "47");
+ list[47] = new ListItem("A其中:土壤污染治理面积", "48");
+ list[48] = new ListItem("B土壤污染需要治理面积", "49");
+ list[49] = new ListItem("17.矿山(或生态)修复治理率", "50");
+ list[50] = new ListItem("A其中:矿山(或生态)修复治理面积", "51");
+ list[51] = new ListItem("B矿山(或生态)需要修复治理面积", "52");
+ list[52] = new ListItem("18.废气治理设施数", "53");
+ list[53] = new ListItem("19.废气治理设施处理能力", "54");
+ list[54] = new ListItem("20.废水治理设施数", "55");
+ list[55] = new ListItem("21.废水治理设施处理能力", "56");
+ list[56] = new ListItem("22.生态环境污染源", "57");
+ list[57] = new ListItem("23.生态环境风险点", "58");
+ list[58] = new ListItem("24.节能环保投入占收入比重", "59");
+ list[59] = new ListItem("A其中:节能投入", "60");
+ list[60] = new ListItem("B环保投入", "61");
+ return list;
+ }
+
+ ///
+ /// 获取计量单位集合
+ ///
+ ///
+ public static ListItem[] GetUnits()
+ {
+ ListItem[] list = new ListItem[61];
+ list[0] = new ListItem("万吨标准煤", "01");
+ list[1] = new ListItem("万吨标准煤", "02");
+ list[2] = new ListItem("万吨", "03");
+ list[3] = new ListItem("万吨", "04");
+ list[4] = new ListItem("吨", "05");
+ list[5] = new ListItem("万千瓦时", "06");
+ list[6] = new ListItem("吨", "07");
+ list[7] = new ListItem("吨", "08");
+ list[8] = new ListItem("吨", "09");
+ list[9] = new ListItem("吨", "10");
+ list[10] = new ListItem("吨", "11");
+ list[11] = new ListItem("万立方米", "12");
+ list[12] = new ListItem("百万千焦", "13");
+ list[13] = new ListItem("吨标准煤", "14");
+ list[14] = new ListItem("吨标准煤/万元", "15");
+ list[15] = new ListItem("万元", "16");
+ list[16] = new ListItem("吨标准煤/万元", "17");
+ list[17] = new ListItem("万元", "18");
+ list[18] = new ListItem("吨标准煤/万元", "19");
+ list[19] = new ListItem("万元", "20");
+ list[20] = new ListItem("吨标准煤/万元", "21");
+ list[21] = new ListItem("万元", "22");
+ list[22] = new ListItem("吨/万元", "23");
+ list[23] = new ListItem("万吨", "24");
+ list[24] = new ListItem("吨标准煤", "25");
+ list[25] = new ListItem("吨", "26");
+ list[26] = new ListItem("吨", "27");
+ list[27] = new ListItem("吨", "28");
+ list[28] = new ListItem("吨", "29");
+ list[29] = new ListItem("吨", "30");
+ list[30] = new ListItem("吨", "31");
+ list[31] = new ListItem("吨", "32");
+ list[32] = new ListItem("吨", "33");
+ list[33] = new ListItem("吨", "34");
+ list[34] = new ListItem("吨", "35");
+ list[35] = new ListItem("万吨", "36");
+ list[36] = new ListItem("吨二氧化碳当量/万元", "37");
+ list[37] = new ListItem("万吨二氧化碳当量", "38");
+ list[38] = new ListItem("%", "39");
+ list[39] = new ListItem("万吨", "40");
+ list[40] = new ListItem("万吨", "41");
+ list[41] = new ListItem("万吨", "42");
+ list[42] = new ListItem("%", "43");
+ list[43] = new ListItem("万吨", "44");
+ list[44] = new ListItem("万吨", "45");
+ list[45] = new ListItem("万吨", "46");
+ list[46] = new ListItem("%", "47");
+ list[47] = new ListItem("公顷", "48");
+ list[48] = new ListItem("公顷", "49");
+ list[49] = new ListItem("%", "50");
+ list[50] = new ListItem("公顷", "51");
+ list[51] = new ListItem("公顷", "52");
+ list[52] = new ListItem("套", "53");
+ list[53] = new ListItem("万立方米/年", "54");
+ list[54] = new ListItem("套", "55");
+ list[55] = new ListItem("万吨/年", "56");
+ list[56] = new ListItem("个", "57");
+ list[57] = new ListItem("个", "58");
+ list[58] = new ListItem("%", "59");
+ list[59] = new ListItem("万元", "60");
+ list[60] = new ListItem("万元", "61");
+ return list;
+ }
+ }
+}
diff --git a/SGGL/BLL/ZHGL/Environmental/ArchitectureReportService.cs b/SGGL/BLL/ZHGL/Environmental/ArchitectureReportService.cs
new file mode 100644
index 00000000..1291c72b
--- /dev/null
+++ b/SGGL/BLL/ZHGL/Environmental/ArchitectureReportService.cs
@@ -0,0 +1,119 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BLL
+{
+ public static class ArchitectureReportService
+ {
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总表
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总表Id
+ /// 建筑行业能源节约与生态环境保护汇总表
+ public static Model.Environmental_ArchitectureReport GetArchitectureReportByArchitectureReportId(string ArchitectureReportId)
+ {
+ return Funs.DB.Environmental_ArchitectureReport.FirstOrDefault(e => e.ArchitectureReportId == ArchitectureReportId);
+ }
+
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总表
+ ///
+ /// 单位Id
+ /// 年度 param >
+ /// 月份
+ /// 建筑行业能源节约与生态环境保护汇总表
+ public static Model.Environmental_ArchitectureReport GetArchitectureReportByUnitIdAndYearAndQuarters(string unitId, int year, int Quarters)
+ {
+ return Funs.DB.Environmental_ArchitectureReport.FirstOrDefault(e => e.UnitId == unitId && e.Quarters == Quarters && e.Year == year);
+ }
+
+ ///
+ /// 根据单位Id获取建筑行业能源节约与生态环境保护汇总表集合
+ ///
+ /// 单位Id
+ /// 建筑行业能源节约与生态环境保护汇总表集合
+ public static List GetArchitectureReportsByUnitId(string UnitId)
+ {
+ return (from x in Funs.DB.View_Environmental_ArchitectureReport where x.UnitId == UnitId orderby x.FillingDate descending select x).ToList();
+ }
+
+ ///
+ /// 增加建筑行业能源节约与生态环境保护汇总表
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总表实体
+ public static void AddArchitectureReport(Model.Environmental_ArchitectureReport ArchitectureReport)
+ {
+ Model.Environmental_ArchitectureReport newArchitectureReport = new Model.Environmental_ArchitectureReport
+ {
+ ArchitectureReportId = ArchitectureReport.ArchitectureReportId,
+ Year = ArchitectureReport.Year,
+ Quarters = ArchitectureReport.Quarters,
+ UnitId = ArchitectureReport.UnitId,
+ FillingDate = ArchitectureReport.FillingDate,
+ DutyPerson = ArchitectureReport.DutyPerson,
+ FillingMan = ArchitectureReport.FillingMan,
+ UpState = ArchitectureReport.UpState,
+ };
+
+ Funs.DB.Environmental_ArchitectureReport.InsertOnSubmit(newArchitectureReport);
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 修改建筑行业能源节约与生态环境保护汇总表
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总表实体
+ public static void UpdateArchitectureReport(Model.Environmental_ArchitectureReport ArchitectureReport)
+ {
+ Model.Environmental_ArchitectureReport newArchitectureReport = Funs.DB.Environmental_ArchitectureReport.FirstOrDefault(e => e.ArchitectureReportId == ArchitectureReport.ArchitectureReportId);
+ if (newArchitectureReport != null)
+ {
+ newArchitectureReport.Year = ArchitectureReport.Year;
+ newArchitectureReport.Quarters = ArchitectureReport.Quarters;
+ newArchitectureReport.UnitId = ArchitectureReport.UnitId;
+ newArchitectureReport.FillingDate = ArchitectureReport.FillingDate;
+ newArchitectureReport.DutyPerson = ArchitectureReport.DutyPerson;
+ newArchitectureReport.UpState = ArchitectureReport.UpState;
+
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据Id获取数据
+ ///
+ ///
+ public static void DeleteArchitectureReportByArchitectureReportId(string ArchitectureReportId)
+ {
+ Model.Environmental_ArchitectureReport newArchitectureReport = Funs.DB.Environmental_ArchitectureReport.FirstOrDefault(e => e.ArchitectureReportId == ArchitectureReportId);
+ if (newArchitectureReport != null)
+ {
+ Funs.DB.Environmental_ArchitectureReport.DeleteOnSubmit(newArchitectureReport);
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据报表单位,报表时间判断是否存在
+ ///
+ /// Id
+ ///
+ public static Model.Environmental_ArchitectureReport GetArchitectureReportByUnitIdDate(string unitId, int year, int Quarters)
+ {
+ return Funs.DB.Environmental_ArchitectureReport.FirstOrDefault(e => e.UnitId == unitId && e.Year == year && e.Quarters == Quarters);
+ }
+
+ ///
+ /// 根据报表单位,报表年份获取对应集合
+ ///
+ /// Id
+ ///
+ public static List GetArchitectureReportByUnitIdYear(string unitId, int year)
+ {
+ return (from x in Funs.DB.Environmental_ArchitectureReport where x.UnitId == unitId && x.Year == year select x).ToList();
+ }
+ }
+}
diff --git a/SGGL/BLL/ZHGL/Environmental/ChemicalReportItemService.cs b/SGGL/BLL/ZHGL/Environmental/ChemicalReportItemService.cs
new file mode 100644
index 00000000..3bca7f98
--- /dev/null
+++ b/SGGL/BLL/ZHGL/Environmental/ChemicalReportItemService.cs
@@ -0,0 +1,383 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Web.UI.WebControls;
+
+namespace BLL
+{
+ public static class ChemicalReportItemService
+ {
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表Id
+ /// 化工行业能源节约与生态环境保护汇总明细表
+ public static Model.Environmental_ChemicalReportItem GetChemicalReportItemByChemicalReportItemId(string ChemicalReportItemId)
+ {
+ return Funs.DB.Environmental_ChemicalReportItem.FirstOrDefault(e => e.ChemicalReportItemId == ChemicalReportItemId);
+ }
+
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表Id
+ /// 化工行业能源节约与生态环境保护汇总明细表
+ public static Model.Environmental_ChemicalReportItem GetChemicalReportItemByChemicalReportIdAndTypeId(string ChemicalReportId)
+ {
+ return Funs.DB.Environmental_ChemicalReportItem.FirstOrDefault(e => e.ChemicalReportId == ChemicalReportId);
+ }
+
+ ///
+ /// 根据主表Id判断是否存在明细记录
+ ///
+ /// 企业安全数据统计月报表Id
+ /// 是否存在明细记录
+ public static bool IsExitItems(string ChemicalReportId)
+ {
+ return (from x in Funs.DB.Environmental_ChemicalReportItem where x.ChemicalReportId == ChemicalReportId select x).Count() > 0;
+ }
+
+ ///
+ /// 根据主表Id获取明细记录集合
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表Id
+ /// 明细记录集合
+ public static List GetItems(string ChemicalReportId)
+ {
+ return (from x in Funs.DB.Environmental_ChemicalReportItem
+ where x.ChemicalReportId == ChemicalReportId
+ orderby x.SortIndex
+ select x).ToList();
+ }
+
+ ///
+ /// 根据主表Id获取明细记录集合
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表Id
+ /// 明细记录集合
+ public static List GetYearSumItems(string unitId, int? year, int? month)
+ {
+ return (from x in Funs.DB.Environmental_ChemicalReportItem
+ join y in Funs.DB.Environmental_ChemicalReport
+ on x.ChemicalReportId equals y.ChemicalReportId
+ where y.UnitId == unitId && y.Year == year && y.Month == month
+ orderby x.SortIndex
+ select x).Distinct().ToList();
+ }
+
+ ///
+ /// 根据主表Id获取年度明细记录集合
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表Id
+ /// 年度明细记录集合
+ public static List GetLastYearItems(int year)
+ {
+ return (from x in Funs.DB.Environmental_ChemicalReportItem
+ join y in Funs.DB.Environmental_ChemicalReport
+ on x.ChemicalReportId equals y.ChemicalReportId
+ where y.Year == year
+ select x).Distinct().ToList();
+ }
+
+ ///
+ /// 根据主表Id获取明细记录集合(不包含本月合计行)
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表Id
+ /// 明细记录集合
+ public static List GetShowItems(string ChemicalReportId)
+ {
+ var q = (from x in Funs.DB.Environmental_ChemicalReportItem
+ where x.ChemicalReportId == ChemicalReportId
+ orderby x.SortIndex
+ select x).ToList();
+ List newItems = new List();
+ var indexNames = GetIndexNames();
+ var units = GetUnits();
+ foreach (var item in q)
+ {
+ Model.ChemicalReportItem newItem = new Model.ChemicalReportItem();
+ newItem.ChemicalReportItemId = item.ChemicalReportItemId;
+ newItem.IndexName = indexNames.First(x => x.Value == item.SortIndex).Text;
+ newItem.Unit = units.First(x => x.Value == item.SortIndex).Text;
+ newItem.SortIndex = item.SortIndex;
+ newItem.BaseNumber = item.BaseNumber;
+ newItem.LastYearValue = item.LastYearValue;
+ newItem.ThisYearValue = item.ThisYearValue;
+ newItem.Rate = item.Rate;
+ newItems.Add(newItem);
+ }
+ return newItems;
+ }
+
+ ///
+ /// 增加化工行业能源节约与生态环境保护汇总明细表
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表实体
+ public static void AddChemicalReportItem(Model.Environmental_ChemicalReportItem ChemicalReportItem)
+ {
+ Model.Environmental_ChemicalReportItem newChemicalReportItem = new Model.Environmental_ChemicalReportItem
+ {
+ ChemicalReportItemId = ChemicalReportItem.ChemicalReportItemId,
+ ChemicalReportId = ChemicalReportItem.ChemicalReportId,
+ SortIndex = ChemicalReportItem.SortIndex,
+ BaseNumber = ChemicalReportItem.BaseNumber,
+ LastYearValue = ChemicalReportItem.LastYearValue,
+ ThisYearValue = ChemicalReportItem.ThisYearValue,
+ Rate = ChemicalReportItem.Rate,
+ };
+
+ Funs.DB.Environmental_ChemicalReportItem.InsertOnSubmit(newChemicalReportItem);
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 修改化工行业能源节约与生态环境保护汇总明细表
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表实体
+ public static void UpdateChemicalReportItem(Model.Environmental_ChemicalReportItem ChemicalReportItem)
+ {
+ Model.Environmental_ChemicalReportItem newChemicalReportItem = Funs.DB.Environmental_ChemicalReportItem.FirstOrDefault(e => e.ChemicalReportItemId == ChemicalReportItem.ChemicalReportItemId);
+ newChemicalReportItem.SortIndex = ChemicalReportItem.SortIndex;
+ newChemicalReportItem.BaseNumber = ChemicalReportItem.BaseNumber;
+ newChemicalReportItem.LastYearValue = ChemicalReportItem.LastYearValue;
+ newChemicalReportItem.ThisYearValue = ChemicalReportItem.ThisYearValue;
+ newChemicalReportItem.Rate = ChemicalReportItem.Rate;
+
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 根据Id删除所有数据
+ ///
+ ///
+ public static void DeleteChemicalReportItemByChemicalReportId(string ChemicalReportId)
+ {
+ var q = from x in Funs.DB.Environmental_ChemicalReportItem where x.ChemicalReportId == ChemicalReportId select x;
+ if (q != null)
+ {
+ Funs.DB.Environmental_ChemicalReportItem.DeleteAllOnSubmit(q);
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 获取指标名称集合
+ ///
+ ///
+ public static ListItem[] GetIndexNames()
+ {
+ ListItem[] list = new ListItem[99];
+ list[0] = new ListItem("1.能源消费量", "01");
+ list[1] = new ListItem("A含:综合能源消费量", "02");
+ list[2] = new ListItem("A其中:原煤(标准量)", "03");
+ list[3] = new ListItem("B原煤(实物量)", "04");
+ list[4] = new ListItem("C其中:发电用煤", "05");
+ list[5] = new ListItem("B焦炭", "06");
+ list[6] = new ListItem("B电力", "07");
+ list[7] = new ListItem("B原油", "08");
+ list[8] = new ListItem("B汽油", "09");
+ list[9] = new ListItem("B煤油", "10");
+ list[10] = new ListItem("B柴油", "11");
+ list[11] = new ListItem("B燃料油", "12");
+ list[12] = new ListItem("B天然气", "13");
+ list[13] = new ListItem("B热力", "14");
+ list[14] = new ListItem("B其他能源", "15");
+ list[15] = new ListItem("2.万元产值综合能耗(现价)", "16");
+ list[16] = new ListItem("A其中:工业总产值(现价)", "17");
+ list[17] = new ListItem("E万元产值综合能耗(可比价)", "18");
+ list[18] = new ListItem("A其中:工业总产值(可比价)", "19");
+ list[19] = new ListItem("3.万元增加值综合能耗(现价)", "20");
+ list[20] = new ListItem("A其中:增加值(现价)", "21");
+ list[21] = new ListItem("E万元增加值综合能耗(可比价)", "22");
+ list[22] = new ListItem("A其中:增加值(可比价)", "23");
+ list[23] = new ListItem("4.万元产值用新水量(可比价)", "24");
+ list[24] = new ListItem("A其中:用新水量", "25");
+ list[25] = new ListItem("E重复用水率", "26");
+ list[26] = new ListItem("A其中:重复用水量", "27");
+ list[27] = new ListItem("5.单位乙烯能耗", "28");
+ list[28] = new ListItem("A其中:乙烯装置能耗", "29");
+ list[29] = new ListItem("B乙烯装置合格乙烯产品产量", "30");
+ list[30] = new ListItem("6.合成氨单位产品综合能耗", "31");
+ list[31] = new ListItem("A其中:合成氨综合能耗", "32");
+ list[32] = new ListItem("B合成氨产量", "33");
+ list[33] = new ListItem("7.节能量", "34");
+ list[34] = new ListItem("8.电煤占煤炭消费比重", "35");
+ list[35] = new ListItem("9.余热余能回收利用率", "36");
+ list[36] = new ListItem("A其中:回收利用的余热余能", "37");
+ list[37] = new ListItem("10.自备电厂发电装机容量", "38");
+ list[38] = new ListItem("A其中:燃煤发电", "39");
+ list[39] = new ListItem("C其中:燃煤热电", "40");
+ list[40] = new ListItem("B清洁能源发电", "41");
+ list[41] = new ListItem("C其中:天然气发电", "42");
+ list[42] = new ListItem("D核能发电", "43");
+ list[43] = new ListItem("D水力发电", "44");
+ list[44] = new ListItem("D风力发电", "45");
+ list[45] = new ListItem("D太阳能发电", "46");
+ list[46] = new ListItem("D其他清洁能源发电", "47");
+ list[47] = new ListItem("B生物质发电", "48");
+ list[48] = new ListItem("B其他发电", "49");
+ list[49] = new ListItem("11.燃煤热电机组装机容量占燃煤发电装机容量比重", "50");
+ list[50] = new ListItem("12.自备电厂发电量", "51");
+ list[51] = new ListItem("13.排污许可证许可的二氧化硫排放量", "52");
+ list[52] = new ListItem("14.排污许可证许可的氮氧化物排放量", "53");
+ list[53] = new ListItem("15.排污许可证许可的化学需氧量排放量", "54");
+ list[54] = new ListItem("16.排污许可证许可的氨氮排放量", "55");
+ list[55] = new ListItem("17.排污许可证许可的烟(粉)尘排放量", "56");
+ list[56] = new ListItem("18.排污许可证许可的挥发性有机物排放量", "57");
+ list[57] = new ListItem("19.二氧化硫排放量", "58");
+ list[58] = new ListItem("20.氮氧化物排放量", "59");
+ list[59] = new ListItem("21.化学需氧量排放量", "60");
+ list[60] = new ListItem("A其中:排入外环境", "61");
+ list[61] = new ListItem("B排入市政管网或生活污水处理厂", "62");
+ list[62] = new ListItem("22.氨氮排放量", "63");
+ list[63] = new ListItem("A其中:排入外环境", "64");
+ list[64] = new ListItem("B排入市政管网或生活污水处理厂", "65");
+ list[65] = new ListItem("23.烟(粉)尘排放量", "66");
+ list[66] = new ListItem("24.挥发性有机物排放量", "67");
+ list[67] = new ListItem("25.废水排放量", "68");
+ list[68] = new ListItem("26.万元产值二氧化碳排放(可比价)", "69");
+ list[69] = new ListItem("A其中:二氧化碳排放量", "70");
+ list[70] = new ListItem("27.一般固体废物综合利用率", "71");
+ list[71] = new ListItem("A其中:一般固体废物综合利用量", "72");
+ list[72] = new ListItem("C其中:综合利用往年贮存量", "73");
+ list[73] = new ListItem("F一般固体废物产生量", "74");
+ list[74] = new ListItem("28.危险废物处置率", "75");
+ list[75] = new ListItem("A其中:危险废物处置量", "76");
+ list[76] = new ListItem("C其中:处置往年贮存量", "77");
+ list[77] = new ListItem("F危险废物产生量", "78");
+ list[78] = new ListItem("29.土壤污染治理率", "79");
+ list[79] = new ListItem("A其中:土壤污染治理面积", "80");
+ list[80] = new ListItem("B土壤污染需要治理面积", "81");
+ list[81] = new ListItem("30.矿山(或生态)修复治理率", "82");
+ list[82] = new ListItem("A其中:矿山(或生态)修复治理面积", "83");
+ list[83] = new ListItem("B矿山(或生态)需要修复治理面积", "84");
+ list[84] = new ListItem("31.烟气脱硫机组装机容量占燃煤发电机组的比例", "85");
+ list[85] = new ListItem("A其中:配备烟气脱硫装置的机组装机容量", "86");
+ list[86] = new ListItem("32.烟气脱硝机组装机容量占燃煤发电机组的比例", "87");
+ list[87] = new ListItem("A其中:配备烟气脱硝装置的机组装机容量", "88");
+ list[88] = new ListItem("33.超低排放限值的机组装机容量占燃煤发电机组的比例", "89");
+ list[89] = new ListItem("A其中:执行超低排放限值的机组装机容量", "90");
+ list[90] = new ListItem("34.废气治理设施数", "91");
+ list[91] = new ListItem("35.废气治理设施处理能力", "92");
+ list[92] = new ListItem("36.废水治理设施数", "93");
+ list[93] = new ListItem("37.废水治理设施处理能力", "94");
+ list[94] = new ListItem("38.生态环境污染源", "95");
+ list[95] = new ListItem("39.生态环境风险点", "96");
+ list[96] = new ListItem("40.节能环保投入占产值比重", "97");
+ list[97] = new ListItem("A其中:节能投入", "98");
+ list[98] = new ListItem("B环保投入", "99");
+ return list;
+ }
+
+ ///
+ /// 获取计量单位集合
+ ///
+ ///
+ public static ListItem[] GetUnits()
+ {
+ ListItem[] list = new ListItem[99];
+ list[0] = new ListItem("万吨标准煤", "01");
+ list[1] = new ListItem("万吨标准煤", "02");
+ list[2] = new ListItem("万吨标准煤", "03");
+ list[3] = new ListItem("万吨", "04");
+ list[4] = new ListItem("万吨", "05");
+ list[5] = new ListItem("吨", "06");
+ list[6] = new ListItem("万千瓦时", "07");
+ list[7] = new ListItem("吨", "08");
+ list[8] = new ListItem("吨", "09");
+ list[9] = new ListItem("吨", "10");
+ list[10] = new ListItem("吨", "11");
+ list[11] = new ListItem("吨", "12");
+ list[12] = new ListItem("万立方米", "13");
+ list[13] = new ListItem("百万千焦", "14");
+ list[14] = new ListItem("吨标准煤", "15");
+ list[15] = new ListItem("吨标准煤/万元", "16");
+ list[16] = new ListItem("万元", "17");
+ list[17] = new ListItem("吨标准煤/万元", "18");
+ list[18] = new ListItem("万元", "19");
+ list[19] = new ListItem("吨标准煤/万元", "20");
+ list[20] = new ListItem("万元", "21");
+ list[21] = new ListItem("吨标准煤/万元", "22");
+ list[22] = new ListItem("万元", "23");
+ list[23] = new ListItem("吨/万元", "24");
+ list[24] = new ListItem("万吨", "25");
+ list[25] = new ListItem("%", "26");
+ list[26] = new ListItem("万吨", "27");
+ list[27] = new ListItem("千克标准油/吨", "28");
+ list[28] = new ListItem("千克标准油", "29");
+ list[29] = new ListItem("吨", "30");
+ list[30] = new ListItem("千克标准煤/吨", "31");
+ list[31] = new ListItem("吨标准煤", "32");
+ list[32] = new ListItem("吨", "33");
+ list[33] = new ListItem("吨标准煤", "34");
+ list[34] = new ListItem("%", "35");
+ list[35] = new ListItem("%", "36");
+ list[36] = new ListItem("百万千焦", "37");
+ list[37] = new ListItem("万千瓦", "38");
+ list[38] = new ListItem("万千瓦", "39");
+ list[39] = new ListItem("万千瓦", "40");
+ list[40] = new ListItem("万千瓦", "41");
+ list[41] = new ListItem("万千瓦", "42");
+ list[42] = new ListItem("万千瓦", "43");
+ list[43] = new ListItem("万千瓦", "44");
+ list[44] = new ListItem("万千瓦", "45");
+ list[45] = new ListItem("万千瓦", "46");
+ list[46] = new ListItem("万千瓦", "47");
+ list[47] = new ListItem("万千瓦", "48");
+ list[48] = new ListItem("万千瓦", "49");
+ list[49] = new ListItem("%", "50");
+ list[50] = new ListItem("万千瓦时", "51");
+ list[51] = new ListItem("吨", "52");
+ list[52] = new ListItem("吨", "53");
+ list[53] = new ListItem("吨", "54");
+ list[54] = new ListItem("吨", "55");
+ list[55] = new ListItem("吨", "56");
+ list[56] = new ListItem("吨", "57");
+ list[57] = new ListItem("吨", "58");
+ list[58] = new ListItem("吨", "59");
+ list[59] = new ListItem("吨", "60");
+ list[60] = new ListItem("吨", "61");
+ list[61] = new ListItem("吨", "62");
+ list[62] = new ListItem("吨", "63");
+ list[63] = new ListItem("吨", "64");
+ list[64] = new ListItem("吨", "65");
+ list[65] = new ListItem("吨", "66");
+ list[66] = new ListItem("吨", "67");
+ list[67] = new ListItem("万吨", "68");
+ list[68] = new ListItem("吨二氧化碳当量/万元", "69");
+ list[69] = new ListItem("万吨二氧化碳当量", "70");
+ list[70] = new ListItem("%", "71");
+ list[71] = new ListItem("万吨", "72");
+ list[72] = new ListItem("万吨", "73");
+ list[73] = new ListItem("万吨", "74");
+ list[74] = new ListItem("%", "75");
+ list[75] = new ListItem("万吨", "76");
+ list[76] = new ListItem("万吨", "77");
+ list[77] = new ListItem("万吨", "78");
+ list[78] = new ListItem("%", "79");
+ list[79] = new ListItem("公顷", "80");
+ list[80] = new ListItem("公顷", "81");
+ list[81] = new ListItem("%", "82");
+ list[82] = new ListItem("公顷", "83");
+ list[83] = new ListItem("公顷", "84");
+ list[84] = new ListItem("%", "85");
+ list[85] = new ListItem("万千瓦", "86");
+ list[86] = new ListItem("%", "87");
+ list[87] = new ListItem("万千瓦", "88");
+ list[88] = new ListItem("%", "89");
+ list[89] = new ListItem("万千瓦", "90");
+ list[90] = new ListItem("套", "91");
+ list[91] = new ListItem("万立方米/年", "92");
+ list[92] = new ListItem("套", "93");
+ list[93] = new ListItem("万吨/年", "94");
+ list[94] = new ListItem("个", "95");
+ list[95] = new ListItem("个", "96");
+ list[96] = new ListItem("%", "97");
+ list[97] = new ListItem("万元", "98");
+ list[98] = new ListItem("万元", "99");
+ return list;
+ }
+ }
+}
diff --git a/SGGL/BLL/ZHGL/Environmental/ChemicalReportService.cs b/SGGL/BLL/ZHGL/Environmental/ChemicalReportService.cs
new file mode 100644
index 00000000..595bbba2
--- /dev/null
+++ b/SGGL/BLL/ZHGL/Environmental/ChemicalReportService.cs
@@ -0,0 +1,119 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BLL
+{
+ public static class ChemicalReportService
+ {
+ ///
+ /// 化工行业能源节约与生态环境保护汇总表
+ ///
+ /// 化工行业能源节约与生态环境保护汇总表Id
+ /// 化工行业能源节约与生态环境保护汇总表
+ public static Model.Environmental_ChemicalReport GetChemicalReportByChemicalReportId(string ChemicalReportId)
+ {
+ return Funs.DB.Environmental_ChemicalReport.FirstOrDefault(e => e.ChemicalReportId == ChemicalReportId);
+ }
+
+ ///
+ /// 化工行业能源节约与生态环境保护汇总表
+ ///
+ /// 单位Id
+ /// 年度 param >
+ /// 月份
+ /// 化工行业能源节约与生态环境保护汇总表
+ public static Model.Environmental_ChemicalReport GetChemicalReportByUnitIdAndYearAndMonth(string unitId, int year, int month)
+ {
+ return Funs.DB.Environmental_ChemicalReport.FirstOrDefault(e => e.UnitId == unitId && e.Month == month && e.Year == year);
+ }
+
+ ///
+ /// 根据单位Id获取化工行业能源节约与生态环境保护汇总表集合
+ ///
+ /// 单位Id
+ /// 化工行业能源节约与生态环境保护汇总表集合
+ public static List GetChemicalReportsByUnitId(string UnitId)
+ {
+ return (from x in Funs.DB.View_Environmental_ChemicalReport where x.UnitId == UnitId orderby x.FillingDate descending select x).ToList();
+ }
+
+ ///
+ /// 增加化工行业能源节约与生态环境保护汇总表
+ ///
+ /// 化工行业能源节约与生态环境保护汇总表实体
+ public static void AddChemicalReport(Model.Environmental_ChemicalReport ChemicalReport)
+ {
+ Model.Environmental_ChemicalReport newChemicalReport = new Model.Environmental_ChemicalReport
+ {
+ ChemicalReportId = ChemicalReport.ChemicalReportId,
+ Year = ChemicalReport.Year,
+ Month = ChemicalReport.Month,
+ UnitId = ChemicalReport.UnitId,
+ FillingDate = ChemicalReport.FillingDate,
+ DutyPerson = ChemicalReport.DutyPerson,
+ FillingMan = ChemicalReport.FillingMan,
+ UpState = ChemicalReport.UpState,
+ };
+
+ Funs.DB.Environmental_ChemicalReport.InsertOnSubmit(newChemicalReport);
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 修改化工行业能源节约与生态环境保护汇总表
+ ///
+ /// 化工行业能源节约与生态环境保护汇总表实体
+ public static void UpdateChemicalReport(Model.Environmental_ChemicalReport ChemicalReport)
+ {
+ Model.Environmental_ChemicalReport newChemicalReport = Funs.DB.Environmental_ChemicalReport.FirstOrDefault(e => e.ChemicalReportId == ChemicalReport.ChemicalReportId);
+ if (newChemicalReport != null)
+ {
+ newChemicalReport.Year = ChemicalReport.Year;
+ newChemicalReport.Month = ChemicalReport.Month;
+ newChemicalReport.UnitId = ChemicalReport.UnitId;
+ newChemicalReport.FillingDate = ChemicalReport.FillingDate;
+ newChemicalReport.DutyPerson = ChemicalReport.DutyPerson;
+ newChemicalReport.UpState = ChemicalReport.UpState;
+
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据Id获取数据
+ ///
+ ///
+ public static void DeleteChemicalReportByChemicalReportId(string ChemicalReportId)
+ {
+ Model.Environmental_ChemicalReport newChemicalReport = Funs.DB.Environmental_ChemicalReport.FirstOrDefault(e => e.ChemicalReportId == ChemicalReportId);
+ if (newChemicalReport != null)
+ {
+ Funs.DB.Environmental_ChemicalReport.DeleteOnSubmit(newChemicalReport);
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据报表单位,报表时间判断是否存在
+ ///
+ /// Id
+ ///
+ public static Model.Environmental_ChemicalReport GetChemicalReportByUnitIdDate(string unitId, int year, int Month)
+ {
+ return Funs.DB.Environmental_ChemicalReport.FirstOrDefault(e => e.UnitId == unitId && e.Year == year && e.Month == Month);
+ }
+
+ ///
+ /// 根据报表单位,报表年份获取对应集合
+ ///
+ /// Id
+ ///
+ public static List GetChemicalReportByUnitIdYear(string unitId, int year)
+ {
+ return (from x in Funs.DB.Environmental_ChemicalReport where x.UnitId == unitId && x.Year == year select x).ToList();
+ }
+ }
+}
diff --git a/SGGL/BLL/ZHGL/Environmental/EnergyReportService.cs b/SGGL/BLL/ZHGL/Environmental/EnergyReportService.cs
new file mode 100644
index 00000000..0f709d3a
--- /dev/null
+++ b/SGGL/BLL/ZHGL/Environmental/EnergyReportService.cs
@@ -0,0 +1,165 @@
+using FineUIPro;
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+
+namespace BLL
+{
+
+ public static class EnergyReportService
+ {
+ public static Model.SGGLDB db = Funs.DB;
+
+
+ #region 获取列表
+ ///
+ /// 记录数
+ ///
+ public static int count
+ {
+ get;
+ set;
+ }
+ public static List GetEnvironmental_EnergyReportByModle(Model.Environmental_EnergyReport table)
+ {
+ var q = from x in db.Environmental_EnergyReport
+ where
+ (string.IsNullOrEmpty(table.EnergyReportId) || x.EnergyReportId.Contains(table.EnergyReportId)) &&
+ (string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
+ (string.IsNullOrEmpty(table.FillingMan) || x.FillingMan.Contains(table.FillingMan)) &&
+ (string.IsNullOrEmpty(table.DutyPerson) || x.DutyPerson.Contains(table.DutyPerson)) &&
+ (string.IsNullOrEmpty(table.UpState) || x.UpState.Contains(table.UpState))
+ select x
+ ;
+
+ return q.ToList();
+ }
+
+ /// 获取分页列表
+ ///
+ /// 页码
+ /// 每页数量
+ ///
+ public static IEnumerable getListData(Model.Environmental_EnergyReport table, Grid Grid1)
+ {
+ var q = GetEnvironmental_EnergyReportByModle(table);
+ count = q.Count();
+ if (count == 0)
+ {
+ return null;
+ }
+ // q= q.Take(Grid1.PageSize * Grid1.PageIndex).Skip(Grid1.PageSize * (Grid1.PageIndex)).ToList();
+ // q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
+ return from x in q
+ select new
+ {
+ x.EnergyReportId,
+ x.UnitId,
+ x.Year,
+ x.Quarters,
+ x.FillingMan,
+ x.FillingDate,
+ x.DutyPerson,
+ x.UpState,
+
+ };
+ }
+ #endregion
+
+ public static Model.Environmental_EnergyReport GetEnvironmental_EnergyReportById(string EnergyReportId)
+ {
+ return db.Environmental_EnergyReport.FirstOrDefault(x => x.EnergyReportId == EnergyReportId);
+ }
+
+ public static Model.Environmental_EnergyReport GetEnvironmental_EnergyReportByUnitIdAndYearAndQuarters(string unitId, int year, int Quarters)
+ {
+ return Funs.DB.Environmental_EnergyReport.FirstOrDefault(e => e.UnitId == unitId && e.Quarters == Quarters && e.Year == year);
+ }
+ public static void AddEnvironmental_EnergyReport(Model.Environmental_EnergyReport newtable)
+ {
+
+ Model.Environmental_EnergyReport table = new Model.Environmental_EnergyReport
+ {
+ EnergyReportId = newtable.EnergyReportId,
+ UnitId = newtable.UnitId,
+ Year = newtable.Year,
+ Quarters = newtable.Quarters,
+ FillingMan = newtable.FillingMan,
+ FillingDate = newtable.FillingDate,
+ DutyPerson = newtable.DutyPerson,
+ UpState = newtable.UpState,
+ };
+ db.Environmental_EnergyReport.InsertOnSubmit(table);
+ db.SubmitChanges();
+ }
+
+ public static void AddBulkEnvironmental_EnergyReport(List newtables)
+ {
+
+ db.Environmental_EnergyReport.InsertAllOnSubmit(newtables);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 根据报表单位,报表时间判断是否存在
+ ///
+ /// Id
+ ///
+ public static Model.Environmental_EnergyReport GetEnergyReportByUnitIdDate(string unitId, int year, int Quarters)
+ {
+ return Funs.DB.Environmental_EnergyReport.FirstOrDefault(e => e.UnitId == unitId && e.Year == year && e.Quarters == Quarters);
+ }
+
+ ///
+ /// 根据报表单位,报表年份获取对应集合
+ ///
+ /// Id
+ ///
+ public static List GetEnergyReportByUnitIdYear(string unitId, int year)
+ {
+ return (from x in Funs.DB.Environmental_EnergyReport where x.UnitId == unitId && x.Year == year select x).ToList();
+ }
+ public static void UpdateEnvironmental_EnergyReport(Model.Environmental_EnergyReport newtable)
+ {
+
+ Model.Environmental_EnergyReport table = db.Environmental_EnergyReport.FirstOrDefault(x => x.EnergyReportId == newtable.EnergyReportId);
+ if (table != null)
+ {
+ table.EnergyReportId = newtable.EnergyReportId;
+ table.UnitId = newtable.UnitId;
+ table.Year = newtable.Year;
+ table.Quarters = newtable.Quarters;
+ table.FillingMan = newtable.FillingMan;
+ table.FillingDate = newtable.FillingDate;
+ table.DutyPerson = newtable.DutyPerson;
+ table.UpState = newtable.UpState;
+ db.SubmitChanges();
+ }
+
+ }
+ public static void DeleteEnvironmental_EnergyReportById(string EnergyReportId)
+ {
+
+ Model.Environmental_EnergyReport table = db.Environmental_EnergyReport.FirstOrDefault(x => x.EnergyReportId == EnergyReportId);
+ if (table != null)
+ {
+ db.Environmental_EnergyReport.DeleteOnSubmit(table);
+ db.SubmitChanges();
+ }
+
+ }
+
+ public static void DeleteALLEnvironmental_EnergyReport()
+ {
+ if (db.Environmental_EnergyReport != null)
+ {
+ db.Environmental_EnergyReport.DeleteAllOnSubmit(db.Environmental_EnergyReport);
+ db.SubmitChanges();
+ }
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/SGGL/BLL/ZHGL/Environmental/EnergyreportItemService .cs b/SGGL/BLL/ZHGL/Environmental/EnergyreportItemService .cs
new file mode 100644
index 00000000..c08460be
--- /dev/null
+++ b/SGGL/BLL/ZHGL/Environmental/EnergyreportItemService .cs
@@ -0,0 +1,281 @@
+using FineUIPro;
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+
+namespace BLL
+{
+
+ public static class EnergyreportItemService
+ {
+ public static Model.SGGLDB db = Funs.DB;
+
+
+ #region 获取列表
+ ///
+ /// 记录数
+ ///
+ public static int count
+ {
+ get;
+ set;
+ }
+ public static List GetEnvironmental_EnergyReportItemByModle(Model.Environmental_EnergyReportItem table)
+ {
+ var q = from x in db.Environmental_EnergyReportItem
+ where
+ (string.IsNullOrEmpty(table.EnergyReportItemId) || x.EnergyReportItemId.Contains(table.EnergyReportItemId)) &&
+ (string.IsNullOrEmpty(table.EnergyReportId) || x.EnergyReportId.Contains(table.EnergyReportId)) &&
+ (string.IsNullOrEmpty(table.SortIndex) || x.SortIndex.Contains(table.SortIndex)) &&
+ (string.IsNullOrEmpty(table.BusinessCategory) || x.BusinessCategory.Contains(table.BusinessCategory)) &&
+ (string.IsNullOrEmpty(table.Throughput_UnitOfMeasurement) || x.Throughput_UnitOfMeasurement.Contains(table.Throughput_UnitOfMeasurement)) &&
+ (string.IsNullOrEmpty(table.Yield_UnitOfMeasurement) || x.Yield_UnitOfMeasurement.Contains(table.Yield_UnitOfMeasurement)) &&
+ (string.IsNullOrEmpty(table.OperationScale_UnitOfMeasurement) || x.OperationScale_UnitOfMeasurement.Contains(table.OperationScale_UnitOfMeasurement))
+ select x
+ ;
+
+ return q.ToList();
+ }
+
+ /// 获取分页列表
+ ///
+ /// 页码
+ /// 每页数量
+ ///
+ public static IEnumerable getListData(Model.Environmental_EnergyReportItem table, Grid Grid1)
+ {
+ var q = GetEnvironmental_EnergyReportItemByModle(table);
+ count = q.Count();
+ if (count == 0)
+ {
+ return null;
+ }
+ // q= q.Take(Grid1.PageSize * Grid1.PageIndex).Skip(Grid1.PageSize * (Grid1.PageIndex)).ToList();
+ // q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
+ return from x in q
+ select new
+ {
+ x.EnergyReportItemId,
+ x.EnergyReportId,
+ x.SortIndex,
+ x.BusinessCategory,
+ x.Throughput_BasePeriod,
+ x.Throughput_LastPeriod,
+ x.Throughput_ThisPeriod,
+ x.Throughput_UnitOfMeasurement,
+ x.Yield_BasePeriod,
+ x.Yield_LastPeriod,
+ x.Yield_ThisPeriod,
+ x.Yield_UnitOfMeasurement,
+ x.OutputValue_BasePeriod,
+ x.OutputValue_LastYear,
+ x.OutputValue_ThisYear,
+ x.OperationScale_BasePeriod,
+ x.OperationScale_LastYear,
+ x.OperationScale_ThisYear,
+ x.OperationScale_UnitOfMeasurement,
+ x.ServiceOperatingIncome_BasePeriod,
+ x.ServiceOperatingIncome_LastYear,
+ x.ServiceOperatingIncome_ThisYear,
+
+ };
+ }
+ #endregion
+
+ public static Model.Environmental_EnergyReportItem GetEnvironmental_EnergyReportItemById(string EnergyReportItemId)
+ {
+ return db.Environmental_EnergyReportItem.FirstOrDefault(x => x.EnergyReportItemId == EnergyReportItemId);
+ }
+
+ ///
+ /// 根据主表Id获取明细记录集合
+ ///
+ ///
+ /// 明细记录集合
+ public static List GetItems(string EnergyReportId)
+ {
+ return (from x in Funs.DB.Environmental_EnergyReportItem
+ where x.EnergyReportId == EnergyReportId
+ orderby x.SortIndex
+ select x).ToList();
+ }
+
+ ///
+ /// 根据主表Id获取明细记录集合
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表Id
+ /// 明细记录集合
+ public static List GetYearSumItems(string unitId, int? year, int? Quarters)
+ {
+ return (from x in Funs.DB.Environmental_EnergyReportItem
+ join y in Funs.DB.Environmental_EnergyReport
+ on x.EnergyReportId equals y.EnergyReportId
+ where y.UnitId == unitId && y.Year == year && y.Quarters == Quarters
+ orderby x.SortIndex
+ select x).Distinct().ToList();
+ }
+
+ ///
+ /// 根据主表Id获取年度明细记录集合
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表Id
+ /// 年度明细记录集合
+ public static List GetLastYearItems(int year)
+ {
+ return (from x in Funs.DB.Environmental_EnergyReportItem
+ join y in Funs.DB.Environmental_EnergyReport
+ on x.EnergyReportId equals y.EnergyReportId
+ where y.Year == year
+ select x).Distinct().ToList();
+ }
+
+ ///
+ /// 根据主表Id获取明细记录集合(不包含本月合计行)
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表Id
+ /// 明细记录集合
+ public static List GetShowItems(string EnergyReportId)
+ {
+ var q = (from x in Funs.DB.Environmental_EnergyReportItem
+ where x.EnergyReportId == EnergyReportId
+ orderby x.SortIndex
+ select x).ToList();
+ List newItems = new List();
+ foreach (var item in q)
+ {
+ Model.Environmental_EnergyReportItem newItem = new Model.Environmental_EnergyReportItem();
+
+ newItem.EnergyReportItemId = item.EnergyReportItemId;
+ newItem.EnergyReportId = item.EnergyReportId;
+ newItem.SortIndex = item.SortIndex;
+ newItem.BusinessCategory = item.BusinessCategory;
+ newItem.Throughput_BasePeriod = item.Throughput_BasePeriod;
+ newItem.Throughput_LastPeriod = item.Throughput_LastPeriod;
+ newItem.Throughput_ThisPeriod = item.Throughput_ThisPeriod;
+ newItem.Throughput_UnitOfMeasurement = item.Throughput_UnitOfMeasurement;
+ newItem.Yield_BasePeriod = item.Yield_BasePeriod;
+ newItem.Yield_LastPeriod = item.Yield_LastPeriod;
+ newItem.Yield_ThisPeriod = item.Yield_ThisPeriod;
+ newItem.Yield_UnitOfMeasurement = item.Yield_UnitOfMeasurement;
+ newItem.OutputValue_BasePeriod = item.OutputValue_BasePeriod;
+ newItem.OutputValue_LastYear = item.OutputValue_LastYear;
+ newItem.OutputValue_ThisYear = item.OutputValue_ThisYear;
+ newItem.OperationScale_BasePeriod = item.OperationScale_BasePeriod;
+ newItem.OperationScale_LastYear = item.OperationScale_LastYear;
+ newItem.OperationScale_ThisYear = item.OperationScale_ThisYear;
+ newItem.OperationScale_UnitOfMeasurement = item.OperationScale_UnitOfMeasurement;
+ newItem.ServiceOperatingIncome_BasePeriod = item.ServiceOperatingIncome_BasePeriod;
+ newItem.ServiceOperatingIncome_LastYear = item.ServiceOperatingIncome_LastYear;
+ newItem.ServiceOperatingIncome_ThisYear = item.ServiceOperatingIncome_ThisYear;
+ newItems.Add(newItem);
+ }
+ return newItems;
+ }
+ public static void AddEnvironmental_EnergyReportItem(Model.Environmental_EnergyReportItem newtable)
+ {
+
+ Model.Environmental_EnergyReportItem table = new Model.Environmental_EnergyReportItem
+ {
+ EnergyReportItemId = newtable.EnergyReportItemId,
+ EnergyReportId = newtable.EnergyReportId,
+ SortIndex = newtable.SortIndex,
+ BusinessCategory = newtable.BusinessCategory,
+ Throughput_BasePeriod = newtable.Throughput_BasePeriod,
+ Throughput_LastPeriod = newtable.Throughput_LastPeriod,
+ Throughput_ThisPeriod = newtable.Throughput_ThisPeriod,
+ Throughput_UnitOfMeasurement = newtable.Throughput_UnitOfMeasurement,
+ Yield_BasePeriod = newtable.Yield_BasePeriod,
+ Yield_LastPeriod = newtable.Yield_LastPeriod,
+ Yield_ThisPeriod = newtable.Yield_ThisPeriod,
+ Yield_UnitOfMeasurement = newtable.Yield_UnitOfMeasurement,
+ OutputValue_BasePeriod = newtable.OutputValue_BasePeriod,
+ OutputValue_LastYear = newtable.OutputValue_LastYear,
+ OutputValue_ThisYear = newtable.OutputValue_ThisYear,
+ OperationScale_BasePeriod = newtable.OperationScale_BasePeriod,
+ OperationScale_LastYear = newtable.OperationScale_LastYear,
+ OperationScale_ThisYear = newtable.OperationScale_ThisYear,
+ OperationScale_UnitOfMeasurement = newtable.OperationScale_UnitOfMeasurement,
+ ServiceOperatingIncome_BasePeriod = newtable.ServiceOperatingIncome_BasePeriod,
+ ServiceOperatingIncome_LastYear = newtable.ServiceOperatingIncome_LastYear,
+ ServiceOperatingIncome_ThisYear = newtable.ServiceOperatingIncome_ThisYear,
+ };
+ db.Environmental_EnergyReportItem.InsertOnSubmit(table);
+ db.SubmitChanges();
+ }
+
+ public static void AddBulkEnvironmental_EnergyReportItem(List newtables)
+ {
+
+ db.Environmental_EnergyReportItem.InsertAllOnSubmit(newtables);
+ db.SubmitChanges();
+ }
+
+
+ public static void UpdateEnvironmental_EnergyReportItem(Model.Environmental_EnergyReportItem newtable)
+ {
+
+ Model.Environmental_EnergyReportItem table = db.Environmental_EnergyReportItem.FirstOrDefault(x => x.EnergyReportItemId == newtable.EnergyReportItemId);
+ if (table != null)
+ {
+ table.EnergyReportItemId = newtable.EnergyReportItemId;
+ table.EnergyReportId = newtable.EnergyReportId;
+ table.SortIndex = newtable.SortIndex;
+ table.BusinessCategory = newtable.BusinessCategory;
+ table.Throughput_BasePeriod = newtable.Throughput_BasePeriod;
+ table.Throughput_LastPeriod = newtable.Throughput_LastPeriod;
+ table.Throughput_ThisPeriod = newtable.Throughput_ThisPeriod;
+ table.Throughput_UnitOfMeasurement = newtable.Throughput_UnitOfMeasurement;
+ table.Yield_BasePeriod = newtable.Yield_BasePeriod;
+ table.Yield_LastPeriod = newtable.Yield_LastPeriod;
+ table.Yield_ThisPeriod = newtable.Yield_ThisPeriod;
+ table.Yield_UnitOfMeasurement = newtable.Yield_UnitOfMeasurement;
+ table.OutputValue_BasePeriod = newtable.OutputValue_BasePeriod;
+ table.OutputValue_LastYear = newtable.OutputValue_LastYear;
+ table.OutputValue_ThisYear = newtable.OutputValue_ThisYear;
+ table.OperationScale_BasePeriod = newtable.OperationScale_BasePeriod;
+ table.OperationScale_LastYear = newtable.OperationScale_LastYear;
+ table.OperationScale_ThisYear = newtable.OperationScale_ThisYear;
+ table.OperationScale_UnitOfMeasurement = newtable.OperationScale_UnitOfMeasurement;
+ table.ServiceOperatingIncome_BasePeriod = newtable.ServiceOperatingIncome_BasePeriod;
+ table.ServiceOperatingIncome_LastYear = newtable.ServiceOperatingIncome_LastYear;
+ table.ServiceOperatingIncome_ThisYear = newtable.ServiceOperatingIncome_ThisYear;
+ db.SubmitChanges();
+ }
+
+ }
+ public static void DeleteEnvironmental_EnergyReportItemById(string EnergyReportItemId)
+ {
+
+ Model.Environmental_EnergyReportItem table = db.Environmental_EnergyReportItem.FirstOrDefault(x => x.EnergyReportItemId == EnergyReportItemId);
+ if (table != null)
+ {
+ db.Environmental_EnergyReportItem.DeleteOnSubmit(table);
+ db.SubmitChanges();
+ }
+
+ }
+
+ public static void DeleteALLEnvironmental_EnergyReportItem()
+ {
+ if (db.Environmental_EnergyReportItem != null)
+ {
+ db.Environmental_EnergyReportItem.DeleteAllOnSubmit(db.Environmental_EnergyReportItem);
+ db.SubmitChanges();
+ }
+ }
+ public static void DeleteEnergyReportItemByChemicalReportId(string EnergyReportId)
+ {
+ var q = from x in Funs.DB.Environmental_EnergyReportItem where x.EnergyReportId == EnergyReportId select x;
+ if (q != null)
+ {
+ Funs.DB.Environmental_EnergyReportItem.DeleteAllOnSubmit(q);
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+
+ }
+}
\ No newline at end of file
diff --git a/SGGL/BLL/ZHGL/Environmental/ProjectArchitectureReportItemService.cs b/SGGL/BLL/ZHGL/Environmental/ProjectArchitectureReportItemService.cs
new file mode 100644
index 00000000..c77217ed
--- /dev/null
+++ b/SGGL/BLL/ZHGL/Environmental/ProjectArchitectureReportItemService.cs
@@ -0,0 +1,307 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Web.UI.WebControls;
+
+namespace BLL
+{
+ public static class ProjectArchitectureReportItemService
+ {
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总明细表
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总明细表Id
+ /// 建筑行业能源节约与生态环境保护汇总明细表
+ public static Model.Environmental_ProjectArchitectureReportItem GetArchitectureReportItemByArchitectureReportItemId(string ArchitectureReportItemId)
+ {
+ return Funs.DB.Environmental_ProjectArchitectureReportItem.FirstOrDefault(e => e.ArchitectureReportItemId == ArchitectureReportItemId);
+ }
+
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总明细表
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总明细表Id
+ /// 建筑行业能源节约与生态环境保护汇总明细表
+ public static Model.Environmental_ProjectArchitectureReportItem GetArchitectureReportItemByArchitectureReportIdAndTypeId(string ArchitectureReportId)
+ {
+ return Funs.DB.Environmental_ProjectArchitectureReportItem.FirstOrDefault(e => e.ArchitectureReportId == ArchitectureReportId);
+ }
+
+ ///
+ /// 根据主表Id判断是否存在明细记录
+ ///
+ /// 企业安全数据统计月报表Id
+ /// 是否存在明细记录
+ public static bool IsExitItems(string ArchitectureReportId)
+ {
+ return (from x in Funs.DB.Environmental_ProjectArchitectureReportItem where x.ArchitectureReportId == ArchitectureReportId select x).Count() > 0;
+ }
+
+ ///
+ /// 根据主表Id获取明细记录集合
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总明细表Id
+ /// 明细记录集合
+ public static List GetItems(string ArchitectureReportId)
+ {
+ return (from x in Funs.DB.Environmental_ProjectArchitectureReportItem
+ where x.ArchitectureReportId == ArchitectureReportId
+ orderby x.SortIndex
+ select x).ToList();
+ }
+
+ ///
+ /// 根据主表Id获取明细记录集合
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总明细表Id
+ /// 明细记录集合
+ public static List GetYearSumItems(string projectId, int? year, int? Quarters)
+ {
+ return (from x in Funs.DB.Environmental_ProjectArchitectureReportItem
+ join y in Funs.DB.Environmental_ProjectArchitectureReport
+ on x.ArchitectureReportId equals y.ArchitectureReportId
+ where y.ProjectId == projectId && y.Year == year && y.Quarters == Quarters
+ orderby x.SortIndex
+ select x).Distinct().ToList();
+ }
+
+ ///
+ /// 根据主表Id获取年度明细记录集合
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总明细表Id
+ /// 年度明细记录集合
+ public static List GetLastYearItems(int year)
+ {
+ return (from x in Funs.DB.Environmental_ProjectArchitectureReportItem
+ join y in Funs.DB.Environmental_ProjectArchitectureReport
+ on x.ArchitectureReportId equals y.ArchitectureReportId
+ where y.Year == year
+ select x).Distinct().ToList();
+ }
+
+ ///
+ /// 根据主表Id获取明细记录集合(不包含本月合计行)
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总明细表Id
+ /// 明细记录集合
+ public static List GetShowItems(string ArchitectureReportId)
+ {
+ var q = (from x in Funs.DB.Environmental_ProjectArchitectureReportItem
+ where x.ArchitectureReportId == ArchitectureReportId
+ orderby x.SortIndex
+ select x).ToList();
+ List newItems = new List();
+ var indexNames = GetIndexNames();
+ var units = GetUnits();
+ foreach (var item in q)
+ {
+ Model.ArchitectureReportItem newItem = new Model.ArchitectureReportItem();
+ newItem.ArchitectureReportItemId = item.ArchitectureReportItemId;
+ newItem.IndexName = indexNames.First(x => x.Value == item.SortIndex).Text;
+ newItem.Unit = units.First(x => x.Value == item.SortIndex).Text;
+ newItem.SortIndex = item.SortIndex;
+ newItem.BaseNumber = item.BaseNumber;
+ newItem.LastYearValue = item.LastYearValue;
+ newItem.ThisYearValue = item.ThisYearValue;
+ newItem.Rate = item.Rate;
+ newItems.Add(newItem);
+ }
+ return newItems;
+ }
+
+ ///
+ /// 增加建筑行业能源节约与生态环境保护汇总明细表
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总明细表实体
+ public static void AddArchitectureReportItem(Model.Environmental_ProjectArchitectureReportItem ArchitectureReportItem)
+ {
+ Model.Environmental_ProjectArchitectureReportItem newArchitectureReportItem = new Model.Environmental_ProjectArchitectureReportItem
+ {
+ ArchitectureReportItemId = ArchitectureReportItem.ArchitectureReportItemId,
+ ArchitectureReportId = ArchitectureReportItem.ArchitectureReportId,
+ BaseNumber = ArchitectureReportItem.BaseNumber,
+ SortIndex = ArchitectureReportItem.SortIndex,
+ LastYearValue = ArchitectureReportItem.LastYearValue,
+ ThisYearValue = ArchitectureReportItem.ThisYearValue,
+ Rate = ArchitectureReportItem.Rate,
+ };
+
+ Funs.DB.Environmental_ProjectArchitectureReportItem.InsertOnSubmit(newArchitectureReportItem);
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 修改建筑行业能源节约与生态环境保护汇总明细表
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总明细表实体
+ public static void UpdateArchitectureReportItem(Model.Environmental_ProjectArchitectureReportItem ArchitectureReportItem)
+ {
+ Model.Environmental_ProjectArchitectureReportItem newArchitectureReportItem = Funs.DB.Environmental_ProjectArchitectureReportItem.FirstOrDefault(e => e.ArchitectureReportItemId == ArchitectureReportItem.ArchitectureReportItemId);
+ newArchitectureReportItem.SortIndex = ArchitectureReportItem.SortIndex;
+ newArchitectureReportItem.BaseNumber = ArchitectureReportItem.BaseNumber;
+ newArchitectureReportItem.LastYearValue = ArchitectureReportItem.LastYearValue;
+ newArchitectureReportItem.ThisYearValue = ArchitectureReportItem.ThisYearValue;
+ newArchitectureReportItem.Rate = ArchitectureReportItem.Rate;
+
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 根据Id删除所有数据
+ ///
+ ///
+ public static void DeleteArchitectureReportItemByArchitectureReportId(string ArchitectureReportId)
+ {
+ var q = from x in Funs.DB.Environmental_ProjectArchitectureReportItem where x.ArchitectureReportId == ArchitectureReportId select x;
+ if (q != null)
+ {
+ Funs.DB.Environmental_ProjectArchitectureReportItem.DeleteAllOnSubmit(q);
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 获取指标名称集合
+ ///
+ ///
+ public static ListItem[] GetIndexNames()
+ {
+ ListItem[] list = new ListItem[61];
+ list[0] = new ListItem("1.能源消费量", "01");
+ list[1] = new ListItem("A其中:原煤(标准量)", "02");
+ list[2] = new ListItem("B原煤(实物量)", "03");
+ list[3] = new ListItem("C其中:发电用煤", "04");
+ list[4] = new ListItem("B焦炭", "05");
+ list[5] = new ListItem("B电力", "06");
+ list[6] = new ListItem("B原油", "07");
+ list[7] = new ListItem("B汽油", "08");
+ list[8] = new ListItem("B煤油", "09");
+ list[9] = new ListItem("B柴油", "10");
+ list[10] = new ListItem("B燃料油", "11");
+ list[11] = new ListItem("B天然气", "12");
+ list[12] = new ListItem("B热力", "13");
+ list[13] = new ListItem("B其他能源", "14");
+ list[14] = new ListItem("2.万元营业收入综合能耗(现价)", "15");
+ list[15] = new ListItem("A其中:营业收入(现价)", "16");
+ list[16] = new ListItem("E万元营业收入综合能耗(可比价)", "17");
+ list[17] = new ListItem("A其中:营业收入(可比价)", "18");
+ list[18] = new ListItem("3.万元增加值综合能耗(现价)", "19");
+ list[19] = new ListItem("A其中:增加值(现价)", "20");
+ list[20] = new ListItem("E万元增加值综合能耗(可比价)", "21");
+ list[21] = new ListItem("A其中:增加值(可比价)", "22");
+ list[22] = new ListItem("4.万元营业收入用新水量(可比价)", "23");
+ list[23] = new ListItem("A其中:用新水量", "24");
+ list[24] = new ListItem("5.节能量", "25");
+ list[25] = new ListItem("6.二氧化硫排放量", "26");
+ list[26] = new ListItem("7.氮氧化物排放量", "27");
+ list[27] = new ListItem("8.化学需氧量排放量", "28");
+ list[28] = new ListItem("A其中:排入外环境", "29");
+ list[29] = new ListItem("B排入市政管网或生活污水处理厂", "30");
+ list[30] = new ListItem("9.氨氮排放量", "31");
+ list[31] = new ListItem("A其中:排入外环境", "32");
+ list[32] = new ListItem("B排入市政管网或生活污水处理厂", "33");
+ list[33] = new ListItem("10.烟(粉)尘排放量", "34");
+ list[34] = new ListItem("11.挥发性有机物排放量", "35");
+ list[35] = new ListItem("12.废水排放量", "36");
+ list[36] = new ListItem("13.万元收入二氧化碳排放(可比价)", "37");
+ list[37] = new ListItem("A其中:二氧化碳排放量", "38");
+ list[38] = new ListItem("14.一般固体废物综合利用率", "39");
+ list[39] = new ListItem("A其中:一般固体废物综合利用量", "40");
+ list[40] = new ListItem("B其中:综合利用往年贮存量", "41");
+ list[41] = new ListItem("F一般固体废物产生量", "42");
+ list[42] = new ListItem("15.危险废物处置率", "43");
+ list[43] = new ListItem("A其中:危险废物处置量", "44");
+ list[44] = new ListItem("B其中:处置往年贮存量", "45");
+ list[45] = new ListItem("F危险废物产生量", "46");
+ list[46] = new ListItem("16.土壤污染治理率", "47");
+ list[47] = new ListItem("A其中:土壤污染治理面积", "48");
+ list[48] = new ListItem("B土壤污染需要治理面积", "49");
+ list[49] = new ListItem("17.矿山(或生态)修复治理率", "50");
+ list[50] = new ListItem("A其中:矿山(或生态)修复治理面积", "51");
+ list[51] = new ListItem("B矿山(或生态)需要修复治理面积", "52");
+ list[52] = new ListItem("18.废气治理设施数", "53");
+ list[53] = new ListItem("19.废气治理设施处理能力", "54");
+ list[54] = new ListItem("20.废水治理设施数", "55");
+ list[55] = new ListItem("21.废水治理设施处理能力", "56");
+ list[56] = new ListItem("22.生态环境污染源", "57");
+ list[57] = new ListItem("23.生态环境风险点", "58");
+ list[58] = new ListItem("24.节能环保投入占收入比重", "59");
+ list[59] = new ListItem("A其中:节能投入", "60");
+ list[60] = new ListItem("B环保投入", "61");
+ return list;
+ }
+
+ ///
+ /// 获取计量单位集合
+ ///
+ ///
+ public static ListItem[] GetUnits()
+ {
+ ListItem[] list = new ListItem[61];
+ list[0] = new ListItem("万吨标准煤", "01");
+ list[1] = new ListItem("万吨标准煤", "02");
+ list[2] = new ListItem("万吨", "03");
+ list[3] = new ListItem("万吨", "04");
+ list[4] = new ListItem("吨", "05");
+ list[5] = new ListItem("万千瓦时", "06");
+ list[6] = new ListItem("吨", "07");
+ list[7] = new ListItem("吨", "08");
+ list[8] = new ListItem("吨", "09");
+ list[9] = new ListItem("吨", "10");
+ list[10] = new ListItem("吨", "11");
+ list[11] = new ListItem("万立方米", "12");
+ list[12] = new ListItem("百万千焦", "13");
+ list[13] = new ListItem("吨标准煤", "14");
+ list[14] = new ListItem("吨标准煤/万元", "15");
+ list[15] = new ListItem("万元", "16");
+ list[16] = new ListItem("吨标准煤/万元", "17");
+ list[17] = new ListItem("万元", "18");
+ list[18] = new ListItem("吨标准煤/万元", "19");
+ list[19] = new ListItem("万元", "20");
+ list[20] = new ListItem("吨标准煤/万元", "21");
+ list[21] = new ListItem("万元", "22");
+ list[22] = new ListItem("吨/万元", "23");
+ list[23] = new ListItem("万吨", "24");
+ list[24] = new ListItem("吨标准煤", "25");
+ list[25] = new ListItem("吨", "26");
+ list[26] = new ListItem("吨", "27");
+ list[27] = new ListItem("吨", "28");
+ list[28] = new ListItem("吨", "29");
+ list[29] = new ListItem("吨", "30");
+ list[30] = new ListItem("吨", "31");
+ list[31] = new ListItem("吨", "32");
+ list[32] = new ListItem("吨", "33");
+ list[33] = new ListItem("吨", "34");
+ list[34] = new ListItem("吨", "35");
+ list[35] = new ListItem("万吨", "36");
+ list[36] = new ListItem("吨二氧化碳当量/万元", "37");
+ list[37] = new ListItem("万吨二氧化碳当量", "38");
+ list[38] = new ListItem("%", "39");
+ list[39] = new ListItem("万吨", "40");
+ list[40] = new ListItem("万吨", "41");
+ list[41] = new ListItem("万吨", "42");
+ list[42] = new ListItem("%", "43");
+ list[43] = new ListItem("万吨", "44");
+ list[44] = new ListItem("万吨", "45");
+ list[45] = new ListItem("万吨", "46");
+ list[46] = new ListItem("%", "47");
+ list[47] = new ListItem("公顷", "48");
+ list[48] = new ListItem("公顷", "49");
+ list[49] = new ListItem("%", "50");
+ list[50] = new ListItem("公顷", "51");
+ list[51] = new ListItem("公顷", "52");
+ list[52] = new ListItem("套", "53");
+ list[53] = new ListItem("万立方米/年", "54");
+ list[54] = new ListItem("套", "55");
+ list[55] = new ListItem("万吨/年", "56");
+ list[56] = new ListItem("个", "57");
+ list[57] = new ListItem("个", "58");
+ list[58] = new ListItem("%", "59");
+ list[59] = new ListItem("万元", "60");
+ list[60] = new ListItem("万元", "61");
+ return list;
+ }
+ }
+}
diff --git a/SGGL/BLL/ZHGL/Environmental/ProjectArchitectureReportService.cs b/SGGL/BLL/ZHGL/Environmental/ProjectArchitectureReportService.cs
new file mode 100644
index 00000000..d58f1236
--- /dev/null
+++ b/SGGL/BLL/ZHGL/Environmental/ProjectArchitectureReportService.cs
@@ -0,0 +1,119 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BLL
+{
+ public static class ProjectArchitectureReportService
+ {
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总表
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总表Id
+ /// 建筑行业能源节约与生态环境保护汇总表
+ public static Model.Environmental_ProjectArchitectureReport GetArchitectureReportByArchitectureReportId(string ArchitectureReportId)
+ {
+ return Funs.DB.Environmental_ProjectArchitectureReport.FirstOrDefault(e => e.ArchitectureReportId == ArchitectureReportId);
+ }
+
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总表
+ ///
+ /// 单位Id
+ /// 年度 param >
+ /// 月份
+ /// 建筑行业能源节约与生态环境保护汇总表
+ public static Model.Environmental_ProjectArchitectureReport GetArchitectureReportByProjectIdAndYearAndQuarters(string projectId, int year, int Quarters)
+ {
+ return Funs.DB.Environmental_ProjectArchitectureReport.FirstOrDefault(e => e.ProjectId == projectId && e.Quarters == Quarters && e.Year == year);
+ }
+
+ ///
+ /// 根据单位Id获取建筑行业能源节约与生态环境保护汇总表集合
+ ///
+ /// 单位Id
+ /// 建筑行业能源节约与生态环境保护汇总表集合
+ public static List GetArchitectureReportsByProjectId(string ProjectId)
+ {
+ return (from x in Funs.DB.View_Environmental_ProjectArchitectureReport where x.ProjectId == ProjectId orderby x.FillingDate descending select x).ToList();
+ }
+
+ ///
+ /// 增加建筑行业能源节约与生态环境保护汇总表
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总表实体
+ public static void AddArchitectureReport(Model.Environmental_ProjectArchitectureReport ArchitectureReport)
+ {
+ Model.Environmental_ProjectArchitectureReport newArchitectureReport = new Model.Environmental_ProjectArchitectureReport
+ {
+ ArchitectureReportId = ArchitectureReport.ArchitectureReportId,
+ Year = ArchitectureReport.Year,
+ Quarters = ArchitectureReport.Quarters,
+ ProjectId = ArchitectureReport.ProjectId,
+ FillingDate = ArchitectureReport.FillingDate,
+ DutyPerson = ArchitectureReport.DutyPerson,
+ FillingMan = ArchitectureReport.FillingMan,
+ UpState = ArchitectureReport.UpState,
+ };
+
+ Funs.DB.Environmental_ProjectArchitectureReport.InsertOnSubmit(newArchitectureReport);
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 修改建筑行业能源节约与生态环境保护汇总表
+ ///
+ /// 建筑行业能源节约与生态环境保护汇总表实体
+ public static void UpdateArchitectureReport(Model.Environmental_ProjectArchitectureReport ArchitectureReport)
+ {
+ Model.Environmental_ProjectArchitectureReport newArchitectureReport = Funs.DB.Environmental_ProjectArchitectureReport.FirstOrDefault(e => e.ArchitectureReportId == ArchitectureReport.ArchitectureReportId);
+ if (newArchitectureReport != null)
+ {
+ newArchitectureReport.Year = ArchitectureReport.Year;
+ newArchitectureReport.Quarters = ArchitectureReport.Quarters;
+ newArchitectureReport.ProjectId = ArchitectureReport.ProjectId;
+ newArchitectureReport.FillingDate = ArchitectureReport.FillingDate;
+ newArchitectureReport.DutyPerson = ArchitectureReport.DutyPerson;
+ newArchitectureReport.UpState = ArchitectureReport.UpState;
+
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据Id获取数据
+ ///
+ ///
+ public static void DeleteArchitectureReportByArchitectureReportId(string ArchitectureReportId)
+ {
+ Model.Environmental_ProjectArchitectureReport newArchitectureReport = Funs.DB.Environmental_ProjectArchitectureReport.FirstOrDefault(e => e.ArchitectureReportId == ArchitectureReportId);
+ if (newArchitectureReport != null)
+ {
+ Funs.DB.Environmental_ProjectArchitectureReport.DeleteOnSubmit(newArchitectureReport);
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据报表单位,报表时间判断是否存在
+ ///
+ /// Id
+ ///
+ public static Model.Environmental_ProjectArchitectureReport GetArchitectureReportByProjectIdDate(string ProjectId, int year, int Quarters)
+ {
+ return Funs.DB.Environmental_ProjectArchitectureReport.FirstOrDefault(e => e.ProjectId == ProjectId && e.Year == year && e.Quarters == Quarters);
+ }
+
+ ///
+ /// 根据报表单位,报表年份获取对应集合
+ ///
+ /// Id
+ ///
+ public static List GetArchitectureReportByProjectIdYear(string ProjectId, int year)
+ {
+ return (from x in Funs.DB.Environmental_ProjectArchitectureReport where x.ProjectId == ProjectId && x.Year == year select x).ToList();
+ }
+ }
+}
diff --git a/SGGL/BLL/ZHGL/Environmental/ProjectChemicalReportItemService.cs b/SGGL/BLL/ZHGL/Environmental/ProjectChemicalReportItemService.cs
new file mode 100644
index 00000000..de3598ec
--- /dev/null
+++ b/SGGL/BLL/ZHGL/Environmental/ProjectChemicalReportItemService.cs
@@ -0,0 +1,383 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Web.UI.WebControls;
+
+namespace BLL
+{
+ public static class ProjectChemicalReportItemService
+ {
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表Id
+ /// 化工行业能源节约与生态环境保护汇总明细表
+ public static Model.Environmental_ProjectChemicalReportItem GetChemicalReportItemByChemicalReportItemId(string ChemicalReportItemId)
+ {
+ return Funs.DB.Environmental_ProjectChemicalReportItem.FirstOrDefault(e => e.ChemicalReportItemId == ChemicalReportItemId);
+ }
+
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表Id
+ /// 化工行业能源节约与生态环境保护汇总明细表
+ public static Model.Environmental_ProjectChemicalReportItem GetChemicalReportItemByChemicalReportIdAndTypeId(string ChemicalReportId)
+ {
+ return Funs.DB.Environmental_ProjectChemicalReportItem.FirstOrDefault(e => e.ChemicalReportId == ChemicalReportId);
+ }
+
+ ///
+ /// 根据主表Id判断是否存在明细记录
+ ///
+ /// 企业安全数据统计月报表Id
+ /// 是否存在明细记录
+ public static bool IsExitItems(string ChemicalReportId)
+ {
+ return (from x in Funs.DB.Environmental_ProjectChemicalReportItem where x.ChemicalReportId == ChemicalReportId select x).Count() > 0;
+ }
+
+ ///
+ /// 根据主表Id获取明细记录集合
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表Id
+ /// 明细记录集合
+ public static List GetItems(string ChemicalReportId)
+ {
+ return (from x in Funs.DB.Environmental_ProjectChemicalReportItem
+ where x.ChemicalReportId == ChemicalReportId
+ orderby x.SortIndex
+ select x).ToList();
+ }
+
+ ///
+ /// 根据主表Id获取明细记录集合
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表Id
+ /// 明细记录集合
+ public static List GetYearSumItems(string projectId, int? year, int? month)
+ {
+ return (from x in Funs.DB.Environmental_ProjectChemicalReportItem
+ join y in Funs.DB.Environmental_ProjectChemicalReport
+ on x.ChemicalReportId equals y.ChemicalReportId
+ where y.ProjectId == projectId && y.Year == year && y.Month == month
+ orderby x.SortIndex
+ select x).Distinct().ToList();
+ }
+
+ ///
+ /// 根据主表Id获取年度明细记录集合
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表Id
+ /// 年度明细记录集合
+ public static List GetLastYearItems(int year)
+ {
+ return (from x in Funs.DB.Environmental_ProjectChemicalReportItem
+ join y in Funs.DB.Environmental_ProjectChemicalReport
+ on x.ChemicalReportId equals y.ChemicalReportId
+ where y.Year == year
+ select x).Distinct().ToList();
+ }
+
+ ///
+ /// 根据主表Id获取明细记录集合(不包含本月合计行)
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表Id
+ /// 明细记录集合
+ public static List GetShowItems(string ChemicalReportId)
+ {
+ var q = (from x in Funs.DB.Environmental_ProjectChemicalReportItem
+ where x.ChemicalReportId == ChemicalReportId
+ orderby x.SortIndex
+ select x).ToList();
+ List newItems = new List();
+ var indexNames = GetIndexNames();
+ var units = GetUnits();
+ foreach (var item in q)
+ {
+ Model.ChemicalReportItem newItem = new Model.ChemicalReportItem();
+ newItem.ChemicalReportItemId = item.ChemicalReportItemId;
+ newItem.IndexName = indexNames.First(x => x.Value == item.SortIndex).Text;
+ newItem.Unit = units.First(x => x.Value == item.SortIndex).Text;
+ newItem.SortIndex = item.SortIndex;
+ newItem.BaseNumber = item.BaseNumber;
+ newItem.LastYearValue = item.LastYearValue;
+ newItem.ThisYearValue = item.ThisYearValue;
+ newItem.Rate = item.Rate;
+ newItems.Add(newItem);
+ }
+ return newItems;
+ }
+
+ ///
+ /// 增加化工行业能源节约与生态环境保护汇总明细表
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表实体
+ public static void AddChemicalReportItem(Model.Environmental_ProjectChemicalReportItem ChemicalReportItem)
+ {
+ Model.Environmental_ProjectChemicalReportItem newChemicalReportItem = new Model.Environmental_ProjectChemicalReportItem
+ {
+ ChemicalReportItemId = ChemicalReportItem.ChemicalReportItemId,
+ ChemicalReportId = ChemicalReportItem.ChemicalReportId,
+ SortIndex = ChemicalReportItem.SortIndex,
+ BaseNumber = ChemicalReportItem.BaseNumber,
+ LastYearValue = ChemicalReportItem.LastYearValue,
+ ThisYearValue = ChemicalReportItem.ThisYearValue,
+ Rate = ChemicalReportItem.Rate,
+ };
+
+ Funs.DB.Environmental_ProjectChemicalReportItem.InsertOnSubmit(newChemicalReportItem);
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 修改化工行业能源节约与生态环境保护汇总明细表
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表实体
+ public static void UpdateChemicalReportItem(Model.Environmental_ProjectChemicalReportItem ChemicalReportItem)
+ {
+ Model.Environmental_ProjectChemicalReportItem newChemicalReportItem = Funs.DB.Environmental_ProjectChemicalReportItem.FirstOrDefault(e => e.ChemicalReportItemId == ChemicalReportItem.ChemicalReportItemId);
+ newChemicalReportItem.SortIndex = ChemicalReportItem.SortIndex;
+ newChemicalReportItem.BaseNumber = ChemicalReportItem.BaseNumber;
+ newChemicalReportItem.LastYearValue = ChemicalReportItem.LastYearValue;
+ newChemicalReportItem.ThisYearValue = ChemicalReportItem.ThisYearValue;
+ newChemicalReportItem.Rate = ChemicalReportItem.Rate;
+
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 根据Id删除所有数据
+ ///
+ ///
+ public static void DeleteChemicalReportItemByChemicalReportId(string ChemicalReportId)
+ {
+ var q = from x in Funs.DB.Environmental_ProjectChemicalReportItem where x.ChemicalReportId == ChemicalReportId select x;
+ if (q != null)
+ {
+ Funs.DB.Environmental_ProjectChemicalReportItem.DeleteAllOnSubmit(q);
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 获取指标名称集合
+ ///
+ ///
+ public static ListItem[] GetIndexNames()
+ {
+ ListItem[] list = new ListItem[99];
+ list[0] = new ListItem("1.能源消费量", "01");
+ list[1] = new ListItem("A含:综合能源消费量", "02");
+ list[2] = new ListItem("A其中:原煤(标准量)", "03");
+ list[3] = new ListItem("B原煤(实物量)", "04");
+ list[4] = new ListItem("C其中:发电用煤", "05");
+ list[5] = new ListItem("B焦炭", "06");
+ list[6] = new ListItem("B电力", "07");
+ list[7] = new ListItem("B原油", "08");
+ list[8] = new ListItem("B汽油", "09");
+ list[9] = new ListItem("B煤油", "10");
+ list[10] = new ListItem("B柴油", "11");
+ list[11] = new ListItem("B燃料油", "12");
+ list[12] = new ListItem("B天然气", "13");
+ list[13] = new ListItem("B热力", "14");
+ list[14] = new ListItem("B其他能源", "15");
+ list[15] = new ListItem("2.万元产值综合能耗(现价)", "16");
+ list[16] = new ListItem("A其中:工业总产值(现价)", "17");
+ list[17] = new ListItem("E万元产值综合能耗(可比价)", "18");
+ list[18] = new ListItem("A其中:工业总产值(可比价)", "19");
+ list[19] = new ListItem("3.万元增加值综合能耗(现价)", "20");
+ list[20] = new ListItem("A其中:增加值(现价)", "21");
+ list[21] = new ListItem("E万元增加值综合能耗(可比价)", "22");
+ list[22] = new ListItem("A其中:增加值(可比价)", "23");
+ list[23] = new ListItem("4.万元产值用新水量(可比价)", "24");
+ list[24] = new ListItem("A其中:用新水量", "25");
+ list[25] = new ListItem("E重复用水率", "26");
+ list[26] = new ListItem("A其中:重复用水量", "27");
+ list[27] = new ListItem("5.单位乙烯能耗", "28");
+ list[28] = new ListItem("A其中:乙烯装置能耗", "29");
+ list[29] = new ListItem("B乙烯装置合格乙烯产品产量", "30");
+ list[30] = new ListItem("6.合成氨单位产品综合能耗", "31");
+ list[31] = new ListItem("A其中:合成氨综合能耗", "32");
+ list[32] = new ListItem("B合成氨产量", "33");
+ list[33] = new ListItem("7.节能量", "34");
+ list[34] = new ListItem("8.电煤占煤炭消费比重", "35");
+ list[35] = new ListItem("9.余热余能回收利用率", "36");
+ list[36] = new ListItem("A其中:回收利用的余热余能", "37");
+ list[37] = new ListItem("10.自备电厂发电装机容量", "38");
+ list[38] = new ListItem("A其中:燃煤发电", "39");
+ list[39] = new ListItem("C其中:燃煤热电", "40");
+ list[40] = new ListItem("B清洁能源发电", "41");
+ list[41] = new ListItem("C其中:天然气发电", "42");
+ list[42] = new ListItem("D核能发电", "43");
+ list[43] = new ListItem("D水力发电", "44");
+ list[44] = new ListItem("D风力发电", "45");
+ list[45] = new ListItem("D太阳能发电", "46");
+ list[46] = new ListItem("D其他清洁能源发电", "47");
+ list[47] = new ListItem("B生物质发电", "48");
+ list[48] = new ListItem("B其他发电", "49");
+ list[49] = new ListItem("11.燃煤热电机组装机容量占燃煤发电装机容量比重", "50");
+ list[50] = new ListItem("12.自备电厂发电量", "51");
+ list[51] = new ListItem("13.排污许可证许可的二氧化硫排放量", "52");
+ list[52] = new ListItem("14.排污许可证许可的氮氧化物排放量", "53");
+ list[53] = new ListItem("15.排污许可证许可的化学需氧量排放量", "54");
+ list[54] = new ListItem("16.排污许可证许可的氨氮排放量", "55");
+ list[55] = new ListItem("17.排污许可证许可的烟(粉)尘排放量", "56");
+ list[56] = new ListItem("18.排污许可证许可的挥发性有机物排放量", "57");
+ list[57] = new ListItem("19.二氧化硫排放量", "58");
+ list[58] = new ListItem("20.氮氧化物排放量", "59");
+ list[59] = new ListItem("21.化学需氧量排放量", "60");
+ list[60] = new ListItem("A其中:排入外环境", "61");
+ list[61] = new ListItem("B排入市政管网或生活污水处理厂", "62");
+ list[62] = new ListItem("22.氨氮排放量", "63");
+ list[63] = new ListItem("A其中:排入外环境", "64");
+ list[64] = new ListItem("B排入市政管网或生活污水处理厂", "65");
+ list[65] = new ListItem("23.烟(粉)尘排放量", "66");
+ list[66] = new ListItem("24.挥发性有机物排放量", "67");
+ list[67] = new ListItem("25.废水排放量", "68");
+ list[68] = new ListItem("26.万元产值二氧化碳排放(可比价)", "69");
+ list[69] = new ListItem("A其中:二氧化碳排放量", "70");
+ list[70] = new ListItem("27.一般固体废物综合利用率", "71");
+ list[71] = new ListItem("A其中:一般固体废物综合利用量", "72");
+ list[72] = new ListItem("C其中:综合利用往年贮存量", "73");
+ list[73] = new ListItem("F一般固体废物产生量", "74");
+ list[74] = new ListItem("28.危险废物处置率", "75");
+ list[75] = new ListItem("A其中:危险废物处置量", "76");
+ list[76] = new ListItem("C其中:处置往年贮存量", "77");
+ list[77] = new ListItem("F危险废物产生量", "78");
+ list[78] = new ListItem("29.土壤污染治理率", "79");
+ list[79] = new ListItem("A其中:土壤污染治理面积", "80");
+ list[80] = new ListItem("B土壤污染需要治理面积", "81");
+ list[81] = new ListItem("30.矿山(或生态)修复治理率", "82");
+ list[82] = new ListItem("A其中:矿山(或生态)修复治理面积", "83");
+ list[83] = new ListItem("B矿山(或生态)需要修复治理面积", "84");
+ list[84] = new ListItem("31.烟气脱硫机组装机容量占燃煤发电机组的比例", "85");
+ list[85] = new ListItem("A其中:配备烟气脱硫装置的机组装机容量", "86");
+ list[86] = new ListItem("32.烟气脱硝机组装机容量占燃煤发电机组的比例", "87");
+ list[87] = new ListItem("A其中:配备烟气脱硝装置的机组装机容量", "88");
+ list[88] = new ListItem("33.超低排放限值的机组装机容量占燃煤发电机组的比例", "89");
+ list[89] = new ListItem("A其中:执行超低排放限值的机组装机容量", "90");
+ list[90] = new ListItem("34.废气治理设施数", "91");
+ list[91] = new ListItem("35.废气治理设施处理能力", "92");
+ list[92] = new ListItem("36.废水治理设施数", "93");
+ list[93] = new ListItem("37.废水治理设施处理能力", "94");
+ list[94] = new ListItem("38.生态环境污染源", "95");
+ list[95] = new ListItem("39.生态环境风险点", "96");
+ list[96] = new ListItem("40.节能环保投入占产值比重", "97");
+ list[97] = new ListItem("A其中:节能投入", "98");
+ list[98] = new ListItem("B环保投入", "99");
+ return list;
+ }
+
+ ///
+ /// 获取计量单位集合
+ ///
+ ///
+ public static ListItem[] GetUnits()
+ {
+ ListItem[] list = new ListItem[99];
+ list[0] = new ListItem("万吨标准煤", "01");
+ list[1] = new ListItem("万吨标准煤", "02");
+ list[2] = new ListItem("万吨标准煤", "03");
+ list[3] = new ListItem("万吨", "04");
+ list[4] = new ListItem("万吨", "05");
+ list[5] = new ListItem("吨", "06");
+ list[6] = new ListItem("万千瓦时", "07");
+ list[7] = new ListItem("吨", "08");
+ list[8] = new ListItem("吨", "09");
+ list[9] = new ListItem("吨", "10");
+ list[10] = new ListItem("吨", "11");
+ list[11] = new ListItem("吨", "12");
+ list[12] = new ListItem("万立方米", "13");
+ list[13] = new ListItem("百万千焦", "14");
+ list[14] = new ListItem("吨标准煤", "15");
+ list[15] = new ListItem("吨标准煤/万元", "16");
+ list[16] = new ListItem("万元", "17");
+ list[17] = new ListItem("吨标准煤/万元", "18");
+ list[18] = new ListItem("万元", "19");
+ list[19] = new ListItem("吨标准煤/万元", "20");
+ list[20] = new ListItem("万元", "21");
+ list[21] = new ListItem("吨标准煤/万元", "22");
+ list[22] = new ListItem("万元", "23");
+ list[23] = new ListItem("吨/万元", "24");
+ list[24] = new ListItem("万吨", "25");
+ list[25] = new ListItem("%", "26");
+ list[26] = new ListItem("万吨", "27");
+ list[27] = new ListItem("千克标准油/吨", "28");
+ list[28] = new ListItem("千克标准油", "29");
+ list[29] = new ListItem("吨", "30");
+ list[30] = new ListItem("千克标准煤/吨", "31");
+ list[31] = new ListItem("吨标准煤", "32");
+ list[32] = new ListItem("吨", "33");
+ list[33] = new ListItem("吨标准煤", "34");
+ list[34] = new ListItem("%", "35");
+ list[35] = new ListItem("%", "36");
+ list[36] = new ListItem("百万千焦", "37");
+ list[37] = new ListItem("万千瓦", "38");
+ list[38] = new ListItem("万千瓦", "39");
+ list[39] = new ListItem("万千瓦", "40");
+ list[40] = new ListItem("万千瓦", "41");
+ list[41] = new ListItem("万千瓦", "42");
+ list[42] = new ListItem("万千瓦", "43");
+ list[43] = new ListItem("万千瓦", "44");
+ list[44] = new ListItem("万千瓦", "45");
+ list[45] = new ListItem("万千瓦", "46");
+ list[46] = new ListItem("万千瓦", "47");
+ list[47] = new ListItem("万千瓦", "48");
+ list[48] = new ListItem("万千瓦", "49");
+ list[49] = new ListItem("%", "50");
+ list[50] = new ListItem("万千瓦时", "51");
+ list[51] = new ListItem("吨", "52");
+ list[52] = new ListItem("吨", "53");
+ list[53] = new ListItem("吨", "54");
+ list[54] = new ListItem("吨", "55");
+ list[55] = new ListItem("吨", "56");
+ list[56] = new ListItem("吨", "57");
+ list[57] = new ListItem("吨", "58");
+ list[58] = new ListItem("吨", "59");
+ list[59] = new ListItem("吨", "60");
+ list[60] = new ListItem("吨", "61");
+ list[61] = new ListItem("吨", "62");
+ list[62] = new ListItem("吨", "63");
+ list[63] = new ListItem("吨", "64");
+ list[64] = new ListItem("吨", "65");
+ list[65] = new ListItem("吨", "66");
+ list[66] = new ListItem("吨", "67");
+ list[67] = new ListItem("万吨", "68");
+ list[68] = new ListItem("吨二氧化碳当量/万元", "69");
+ list[69] = new ListItem("万吨二氧化碳当量", "70");
+ list[70] = new ListItem("%", "71");
+ list[71] = new ListItem("万吨", "72");
+ list[72] = new ListItem("万吨", "73");
+ list[73] = new ListItem("万吨", "74");
+ list[74] = new ListItem("%", "75");
+ list[75] = new ListItem("万吨", "76");
+ list[76] = new ListItem("万吨", "77");
+ list[77] = new ListItem("万吨", "78");
+ list[78] = new ListItem("%", "79");
+ list[79] = new ListItem("公顷", "80");
+ list[80] = new ListItem("公顷", "81");
+ list[81] = new ListItem("%", "82");
+ list[82] = new ListItem("公顷", "83");
+ list[83] = new ListItem("公顷", "84");
+ list[84] = new ListItem("%", "85");
+ list[85] = new ListItem("万千瓦", "86");
+ list[86] = new ListItem("%", "87");
+ list[87] = new ListItem("万千瓦", "88");
+ list[88] = new ListItem("%", "89");
+ list[89] = new ListItem("万千瓦", "90");
+ list[90] = new ListItem("套", "91");
+ list[91] = new ListItem("万立方米/年", "92");
+ list[92] = new ListItem("套", "93");
+ list[93] = new ListItem("万吨/年", "94");
+ list[94] = new ListItem("个", "95");
+ list[95] = new ListItem("个", "96");
+ list[96] = new ListItem("%", "97");
+ list[97] = new ListItem("万元", "98");
+ list[98] = new ListItem("万元", "99");
+ return list;
+ }
+ }
+}
diff --git a/SGGL/BLL/ZHGL/Environmental/ProjectChemicalReportService.cs b/SGGL/BLL/ZHGL/Environmental/ProjectChemicalReportService.cs
new file mode 100644
index 00000000..b70d6a7a
--- /dev/null
+++ b/SGGL/BLL/ZHGL/Environmental/ProjectChemicalReportService.cs
@@ -0,0 +1,109 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BLL
+{
+ public static class ProjectChemicalReportService
+ {
+ ///
+ /// 化工行业能源节约与生态环境保护汇总表
+ ///
+ /// 化工行业能源节约与生态环境保护汇总表Id
+ /// 化工行业能源节约与生态环境保护汇总表
+ public static Model.Environmental_ProjectChemicalReport GetChemicalReportByChemicalReportId(string ChemicalReportId)
+ {
+ return Funs.DB.Environmental_ProjectChemicalReport.FirstOrDefault(e => e.ChemicalReportId == ChemicalReportId);
+ }
+
+ ///
+ /// 化工行业能源节约与生态环境保护汇总表
+ ///
+ /// 单位Id
+ /// 年度 param >
+ /// 月份
+ /// 化工行业能源节约与生态环境保护汇总表
+ public static Model.Environmental_ProjectChemicalReport GetChemicalReportByProjectIdAndYearAndMonth(string projectId, int year, int month)
+ {
+ return Funs.DB.Environmental_ProjectChemicalReport.FirstOrDefault(e => e.ProjectId == projectId && e.Month == month && e.Year == year);
+ }
+
+ ///
+ /// 增加化工行业能源节约与生态环境保护汇总表
+ ///
+ /// 化工行业能源节约与生态环境保护汇总表实体
+ public static void AddChemicalReport(Model.Environmental_ProjectChemicalReport ChemicalReport)
+ {
+ Model.Environmental_ProjectChemicalReport newChemicalReport = new Model.Environmental_ProjectChemicalReport
+ {
+ ChemicalReportId = ChemicalReport.ChemicalReportId,
+ Year = ChemicalReport.Year,
+ Month = ChemicalReport.Month,
+ ProjectId = ChemicalReport.ProjectId,
+ FillingDate = ChemicalReport.FillingDate,
+ DutyPerson = ChemicalReport.DutyPerson,
+ FillingMan = ChemicalReport.FillingMan,
+ UpState = ChemicalReport.UpState,
+ };
+
+ Funs.DB.Environmental_ProjectChemicalReport.InsertOnSubmit(newChemicalReport);
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 修改化工行业能源节约与生态环境保护汇总表
+ ///
+ /// 化工行业能源节约与生态环境保护汇总表实体
+ public static void UpdateChemicalReport(Model.Environmental_ProjectChemicalReport ChemicalReport)
+ {
+ Model.Environmental_ProjectChemicalReport newChemicalReport = Funs.DB.Environmental_ProjectChemicalReport.FirstOrDefault(e => e.ChemicalReportId == ChemicalReport.ChemicalReportId);
+ if (newChemicalReport != null)
+ {
+ newChemicalReport.Year = ChemicalReport.Year;
+ newChemicalReport.Month = ChemicalReport.Month;
+ newChemicalReport.ProjectId = ChemicalReport.ProjectId;
+ newChemicalReport.FillingDate = ChemicalReport.FillingDate;
+ newChemicalReport.DutyPerson = ChemicalReport.DutyPerson;
+ newChemicalReport.UpState = ChemicalReport.UpState;
+
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据Id获取数据
+ ///
+ ///
+ public static void DeleteChemicalReportByChemicalReportId(string ChemicalReportId)
+ {
+ Model.Environmental_ProjectChemicalReport newChemicalReport = Funs.DB.Environmental_ProjectChemicalReport.FirstOrDefault(e => e.ChemicalReportId == ChemicalReportId);
+ if (newChemicalReport != null)
+ {
+ Funs.DB.Environmental_ProjectChemicalReport.DeleteOnSubmit(newChemicalReport);
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据报表单位,报表时间判断是否存在
+ ///
+ /// Id
+ ///
+ public static Model.Environmental_ProjectChemicalReport GetChemicalReportByProjectIdDate(string projectId, int year, int Month)
+ {
+ return Funs.DB.Environmental_ProjectChemicalReport.FirstOrDefault(e => e.ProjectId == projectId && e.Year == year && e.Month == Month);
+ }
+
+ ///
+ /// 根据报表单位,报表年份获取对应集合
+ ///
+ /// Id
+ ///
+ public static List GetChemicalReportByProjectIdYear(string projectId, int year)
+ {
+ return (from x in Funs.DB.Environmental_ProjectChemicalReport where x.ProjectId == projectId && x.Year == year select x).ToList();
+ }
+ }
+}
diff --git a/SGGL/BLL/ZHGL/Environmental/ProjectEnergyReportService.cs b/SGGL/BLL/ZHGL/Environmental/ProjectEnergyReportService.cs
new file mode 100644
index 00000000..8611cd55
--- /dev/null
+++ b/SGGL/BLL/ZHGL/Environmental/ProjectEnergyReportService.cs
@@ -0,0 +1,174 @@
+using FineUIPro;
+using Microsoft.SqlServer.Dts.Runtime;
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Linq;
+using System.Security.Cryptography;
+using System.Text;
+
+
+namespace BLL
+{
+
+ public static class ProjectEnergyReportService
+ {
+ public static Model.SGGLDB db = Funs.DB;
+
+
+ #region 获取列表
+ ///
+ /// 记录数
+ ///
+ public static int count
+ {
+ get;
+ set;
+ }
+ public static List GetEnvironmental_ProjectEnergyReportByModle(Model.Environmental_ProjectEnergyReport table)
+ {
+ var q = from x in db.Environmental_ProjectEnergyReport
+ where
+ (string.IsNullOrEmpty(table.EnergyReportId) || x.EnergyReportId.Contains(table.EnergyReportId)) &&
+ (string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
+ (string.IsNullOrEmpty(table.FillingMan) || x.FillingMan.Contains(table.FillingMan)) &&
+ (string.IsNullOrEmpty(table.DutyPerson) || x.DutyPerson.Contains(table.DutyPerson)) &&
+ (string.IsNullOrEmpty(table.UpState) || x.UpState.Contains(table.UpState))
+ select x
+ ;
+
+ return q.ToList();
+ }
+
+ /// 获取分页列表
+ ///
+ /// 页码
+ /// 每页数量
+ ///
+ public static IEnumerable getListData(Model.Environmental_ProjectEnergyReport table, Grid Grid1)
+ {
+ var q = GetEnvironmental_ProjectEnergyReportByModle(table);
+ count = q.Count();
+ if (count == 0)
+ {
+ return null;
+ }
+ // q= q.Take(Grid1.PageSize * Grid1.PageIndex).Skip(Grid1.PageSize * (Grid1.PageIndex)).ToList();
+ // q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
+ return from x in q
+ select new
+ {
+ x.EnergyReportId,
+ x.UnitId,
+ x.Year,
+ x.Quarters,
+ x.FillingMan,
+ x.FillingDate,
+ x.DutyPerson,
+ x.UpState,
+ x.ProjectId
+
+ };
+ }
+ #endregion
+
+ public static Model.Environmental_ProjectEnergyReport GetEnvironmental_ProjectEnergyReportById(string EnergyReportId)
+ {
+ return db.Environmental_ProjectEnergyReport.FirstOrDefault(x => x.EnergyReportId == EnergyReportId);
+ }
+
+ public static Model.Environmental_ProjectEnergyReport GetEnvironmental_ProjectEnergyReportByProjectIdAndYearAndQuarters(string ProjectId, int year, int Quarters)
+ {
+ return Funs.DB.Environmental_ProjectEnergyReport.FirstOrDefault(e => e.ProjectId == ProjectId && e.Quarters == Quarters && e.Year == year);
+ }
+ public static void AddEnvironmental_ProjectEnergyReport(Model.Environmental_ProjectEnergyReport newtable)
+ {
+
+ Model.Environmental_ProjectEnergyReport table = new Model.Environmental_ProjectEnergyReport
+ {
+ EnergyReportId = newtable.EnergyReportId,
+ UnitId = newtable.UnitId,
+ Year = newtable.Year,
+ Quarters = newtable.Quarters,
+ FillingMan = newtable.FillingMan,
+ FillingDate = newtable.FillingDate,
+ DutyPerson = newtable.DutyPerson,
+ UpState = newtable.UpState,
+ ProjectId=newtable.ProjectId,
+ };
+ db.Environmental_ProjectEnergyReport.InsertOnSubmit(table);
+ db.SubmitChanges();
+ }
+
+ public static void AddBulkEnvironmental_ProjectEnergyReport(List newtables)
+ {
+
+ db.Environmental_ProjectEnergyReport.InsertAllOnSubmit(newtables);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 根据报表单位,报表时间判断是否存在
+ ///
+ /// Id
+ ///
+ public static Model.Environmental_ProjectEnergyReport GetEnergyReportByProjectIdDate(string ProjectId, int year, int Quarters)
+ {
+ return Funs.DB.Environmental_ProjectEnergyReport.FirstOrDefault(e => e.ProjectId == ProjectId && e.Year == year && e.Quarters == Quarters);
+ }
+ public static List GetEnergyReportByDate(int year, int Quarters)
+ {
+ var q = (from x in Funs.DB.Environmental_ProjectEnergyReport where x.Year == year && x.Quarters == Quarters select x).ToList();
+ return q;
+ }
+ ///
+ /// 根据报表单位,报表年份获取对应集合
+ ///
+ /// Id
+ ///
+ public static List GetEnergyReportByProjectIdYear(string ProjectId, int year)
+ {
+ return (from x in Funs.DB.Environmental_ProjectEnergyReport where x.ProjectId == ProjectId && x.Year == year select x).ToList();
+ }
+ public static void UpdateEnvironmental_ProjectEnergyReport(Model.Environmental_ProjectEnergyReport newtable)
+ {
+
+ Model.Environmental_ProjectEnergyReport table = db.Environmental_ProjectEnergyReport.FirstOrDefault(x => x.EnergyReportId == newtable.EnergyReportId);
+ if (table != null)
+ {
+ table.EnergyReportId = newtable.EnergyReportId;
+ table.UnitId = newtable.UnitId;
+ table.Year = newtable.Year;
+ table.Quarters = newtable.Quarters;
+ table.FillingMan = newtable.FillingMan;
+ table.FillingDate = newtable.FillingDate;
+ table.DutyPerson = newtable.DutyPerson;
+ table.UpState = newtable.UpState;
+ table.ProjectId=newtable.ProjectId;
+ db.SubmitChanges();
+ }
+
+ }
+ public static void DeleteEnvironmental_ProjectEnergyReportById(string EnergyReportId)
+ {
+
+ Model.Environmental_ProjectEnergyReport table = db.Environmental_ProjectEnergyReport.FirstOrDefault(x => x.EnergyReportId == EnergyReportId);
+ if (table != null)
+ {
+ db.Environmental_ProjectEnergyReport.DeleteOnSubmit(table);
+ db.SubmitChanges();
+ }
+
+ }
+
+ public static void DeleteALLEnvironmental_ProjectEnergyReport()
+ {
+ if (db.Environmental_ProjectEnergyReport != null)
+ {
+ db.Environmental_ProjectEnergyReport.DeleteAllOnSubmit(db.Environmental_ProjectEnergyReport);
+ db.SubmitChanges();
+ }
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/SGGL/BLL/ZHGL/Environmental/ProjectEnergyreportItemService .cs b/SGGL/BLL/ZHGL/Environmental/ProjectEnergyreportItemService .cs
new file mode 100644
index 00000000..6b61ef1b
--- /dev/null
+++ b/SGGL/BLL/ZHGL/Environmental/ProjectEnergyreportItemService .cs
@@ -0,0 +1,289 @@
+using FineUIPro;
+using Microsoft.SqlServer.Dts.Runtime;
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+
+namespace BLL
+{
+
+ public static class ProjectEnergyreportItemService
+ {
+ public static Model.SGGLDB db = Funs.DB;
+
+
+ #region 获取列表
+ ///
+ /// 记录数
+ ///
+ public static int count
+ {
+ get;
+ set;
+ }
+ public static List GetEnvironmental_ProjectEnergyReportItemByModle(Model.Environmental_ProjectEnergyReportItem table)
+ {
+ var q = from x in db.Environmental_ProjectEnergyReportItem
+ where
+ (string.IsNullOrEmpty(table.EnergyReportItemId) || x.EnergyReportItemId.Contains(table.EnergyReportItemId)) &&
+ (string.IsNullOrEmpty(table.EnergyReportId) || x.EnergyReportId.Contains(table.EnergyReportId)) &&
+ (string.IsNullOrEmpty(table.SortIndex) || x.SortIndex.Contains(table.SortIndex)) &&
+ (string.IsNullOrEmpty(table.BusinessCategory) || x.BusinessCategory.Contains(table.BusinessCategory)) &&
+ (string.IsNullOrEmpty(table.Throughput_UnitOfMeasurement) || x.Throughput_UnitOfMeasurement.Contains(table.Throughput_UnitOfMeasurement)) &&
+ (string.IsNullOrEmpty(table.Yield_UnitOfMeasurement) || x.Yield_UnitOfMeasurement.Contains(table.Yield_UnitOfMeasurement)) &&
+ (string.IsNullOrEmpty(table.OperationScale_UnitOfMeasurement) || x.OperationScale_UnitOfMeasurement.Contains(table.OperationScale_UnitOfMeasurement))
+ select x
+ ;
+
+ return q.ToList();
+ }
+
+ /// 获取分页列表
+ ///
+ /// 页码
+ /// 每页数量
+ ///
+ public static IEnumerable getListData(Model.Environmental_ProjectEnergyReportItem table, Grid Grid1)
+ {
+ var q = GetEnvironmental_ProjectEnergyReportItemByModle(table);
+ count = q.Count();
+ if (count == 0)
+ {
+ return null;
+ }
+ // q= q.Take(Grid1.PageSize * Grid1.PageIndex).Skip(Grid1.PageSize * (Grid1.PageIndex)).ToList();
+ // q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
+ return from x in q
+ select new
+ {
+ x.EnergyReportItemId,
+ x.EnergyReportId,
+ x.SortIndex,
+ x.BusinessCategory,
+ x.Throughput_BasePeriod,
+ x.Throughput_LastPeriod,
+ x.Throughput_ThisPeriod,
+ x.Throughput_UnitOfMeasurement,
+ x.Yield_BasePeriod,
+ x.Yield_LastPeriod,
+ x.Yield_ThisPeriod,
+ x.Yield_UnitOfMeasurement,
+ x.OutputValue_BasePeriod,
+ x.OutputValue_LastYear,
+ x.OutputValue_ThisYear,
+ x.OperationScale_BasePeriod,
+ x.OperationScale_LastYear,
+ x.OperationScale_ThisYear,
+ x.OperationScale_UnitOfMeasurement,
+ x.ServiceOperatingIncome_BasePeriod,
+ x.ServiceOperatingIncome_LastYear,
+ x.ServiceOperatingIncome_ThisYear,
+
+ };
+ }
+ #endregion
+
+ public static Model.Environmental_ProjectEnergyReportItem GetEnvironmental_ProjectEnergyReportItemById(string EnergyReportItemId)
+ {
+ return db.Environmental_ProjectEnergyReportItem.FirstOrDefault(x => x.EnergyReportItemId == EnergyReportItemId);
+ }
+
+ ///
+ /// 根据主表Id获取明细记录集合
+ ///
+ ///
+ /// 明细记录集合
+ public static List GetItems(string EnergyReportId)
+ {
+ return (from x in Funs.DB.Environmental_ProjectEnergyReportItem
+ where x.EnergyReportId == EnergyReportId
+ orderby x.SortIndex
+ select x).ToList();
+ }
+
+ ///
+ /// 根据主表Id获取明细记录集合
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表Id
+ /// 明细记录集合
+ public static List GetYearSumItems(string ProjectId, int? year, int? Quarters)
+ {
+ return (from x in Funs.DB.Environmental_ProjectEnergyReportItem
+ join y in Funs.DB.Environmental_ProjectEnergyReport
+ on x.EnergyReportId equals y.EnergyReportId
+ where y.ProjectId == ProjectId && y.Year == year && y.Quarters == Quarters
+ orderby x.SortIndex
+ select x).Distinct().ToList();
+ }
+
+ ///
+ /// 根据主表Id获取年度明细记录集合
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表Id
+ /// 年度明细记录集合
+ public static List GetItemsByDate(int year, int Quarters)
+ {
+ return (from x in Funs.DB.Environmental_ProjectEnergyReportItem
+ join y in Funs.DB.Environmental_ProjectEnergyReport
+ on x.EnergyReportId equals y.EnergyReportId
+ where y.Year == year && y.Quarters== Quarters
+ select x).Distinct().ToList();
+ }
+ public static List GetLastYearItems(int year)
+ {
+ return (from x in Funs.DB.Environmental_ProjectEnergyReportItem
+ join y in Funs.DB.Environmental_ProjectEnergyReport
+ on x.EnergyReportId equals y.EnergyReportId
+ where y.Year == year
+ select x).Distinct().ToList();
+ }
+ ///
+ /// 根据主表Id获取明细记录集合(不包含本月合计行)
+ ///
+ /// 化工行业能源节约与生态环境保护汇总明细表Id
+ /// 明细记录集合
+ public static List GetShowItems(string EnergyReportId)
+ {
+ var q = (from x in Funs.DB.Environmental_ProjectEnergyReportItem
+ where x.EnergyReportId == EnergyReportId
+ orderby x.SortIndex
+ select x).ToList();
+ List newItems = new List();
+ foreach (var item in q)
+ {
+ Model.Environmental_ProjectEnergyReportItem newItem = new Model.Environmental_ProjectEnergyReportItem();
+
+ newItem.EnergyReportItemId = item.EnergyReportItemId;
+ newItem.EnergyReportId = item.EnergyReportId;
+ newItem.SortIndex = item.SortIndex;
+ newItem.BusinessCategory = item.BusinessCategory;
+ newItem.Throughput_BasePeriod = item.Throughput_BasePeriod;
+ newItem.Throughput_LastPeriod = item.Throughput_LastPeriod;
+ newItem.Throughput_ThisPeriod = item.Throughput_ThisPeriod;
+ newItem.Throughput_UnitOfMeasurement = item.Throughput_UnitOfMeasurement;
+ newItem.Yield_BasePeriod = item.Yield_BasePeriod;
+ newItem.Yield_LastPeriod = item.Yield_LastPeriod;
+ newItem.Yield_ThisPeriod = item.Yield_ThisPeriod;
+ newItem.Yield_UnitOfMeasurement = item.Yield_UnitOfMeasurement;
+ newItem.OutputValue_BasePeriod = item.OutputValue_BasePeriod;
+ newItem.OutputValue_LastYear = item.OutputValue_LastYear;
+ newItem.OutputValue_ThisYear = item.OutputValue_ThisYear;
+ newItem.OperationScale_BasePeriod = item.OperationScale_BasePeriod;
+ newItem.OperationScale_LastYear = item.OperationScale_LastYear;
+ newItem.OperationScale_ThisYear = item.OperationScale_ThisYear;
+ newItem.OperationScale_UnitOfMeasurement = item.OperationScale_UnitOfMeasurement;
+ newItem.ServiceOperatingIncome_BasePeriod = item.ServiceOperatingIncome_BasePeriod;
+ newItem.ServiceOperatingIncome_LastYear = item.ServiceOperatingIncome_LastYear;
+ newItem.ServiceOperatingIncome_ThisYear = item.ServiceOperatingIncome_ThisYear;
+ newItems.Add(newItem);
+ }
+ return newItems;
+ }
+ public static void AddEnvironmental_ProjectEnergyReportItem(Model.Environmental_ProjectEnergyReportItem newtable)
+ {
+
+ Model.Environmental_ProjectEnergyReportItem table = new Model.Environmental_ProjectEnergyReportItem
+ {
+ EnergyReportItemId = newtable.EnergyReportItemId,
+ EnergyReportId = newtable.EnergyReportId,
+ SortIndex = newtable.SortIndex,
+ BusinessCategory = newtable.BusinessCategory,
+ Throughput_BasePeriod = newtable.Throughput_BasePeriod,
+ Throughput_LastPeriod = newtable.Throughput_LastPeriod,
+ Throughput_ThisPeriod = newtable.Throughput_ThisPeriod,
+ Throughput_UnitOfMeasurement = newtable.Throughput_UnitOfMeasurement,
+ Yield_BasePeriod = newtable.Yield_BasePeriod,
+ Yield_LastPeriod = newtable.Yield_LastPeriod,
+ Yield_ThisPeriod = newtable.Yield_ThisPeriod,
+ Yield_UnitOfMeasurement = newtable.Yield_UnitOfMeasurement,
+ OutputValue_BasePeriod = newtable.OutputValue_BasePeriod,
+ OutputValue_LastYear = newtable.OutputValue_LastYear,
+ OutputValue_ThisYear = newtable.OutputValue_ThisYear,
+ OperationScale_BasePeriod = newtable.OperationScale_BasePeriod,
+ OperationScale_LastYear = newtable.OperationScale_LastYear,
+ OperationScale_ThisYear = newtable.OperationScale_ThisYear,
+ OperationScale_UnitOfMeasurement = newtable.OperationScale_UnitOfMeasurement,
+ ServiceOperatingIncome_BasePeriod = newtable.ServiceOperatingIncome_BasePeriod,
+ ServiceOperatingIncome_LastYear = newtable.ServiceOperatingIncome_LastYear,
+ ServiceOperatingIncome_ThisYear = newtable.ServiceOperatingIncome_ThisYear,
+ };
+ db.Environmental_ProjectEnergyReportItem.InsertOnSubmit(table);
+ db.SubmitChanges();
+ }
+
+ public static void AddBulkEnvironmental_ProjectEnergyReportItem(List newtables)
+ {
+
+ db.Environmental_ProjectEnergyReportItem.InsertAllOnSubmit(newtables);
+ db.SubmitChanges();
+ }
+
+
+ public static void UpdateEnvironmental_ProjectEnergyReportItem(Model.Environmental_ProjectEnergyReportItem newtable)
+ {
+
+ Model.Environmental_ProjectEnergyReportItem table = db.Environmental_ProjectEnergyReportItem.FirstOrDefault(x => x.EnergyReportItemId == newtable.EnergyReportItemId);
+ if (table != null)
+ {
+ table.EnergyReportItemId = newtable.EnergyReportItemId;
+ table.EnergyReportId = newtable.EnergyReportId;
+ table.SortIndex = newtable.SortIndex;
+ table.BusinessCategory = newtable.BusinessCategory;
+ table.Throughput_BasePeriod = newtable.Throughput_BasePeriod;
+ table.Throughput_LastPeriod = newtable.Throughput_LastPeriod;
+ table.Throughput_ThisPeriod = newtable.Throughput_ThisPeriod;
+ table.Throughput_UnitOfMeasurement = newtable.Throughput_UnitOfMeasurement;
+ table.Yield_BasePeriod = newtable.Yield_BasePeriod;
+ table.Yield_LastPeriod = newtable.Yield_LastPeriod;
+ table.Yield_ThisPeriod = newtable.Yield_ThisPeriod;
+ table.Yield_UnitOfMeasurement = newtable.Yield_UnitOfMeasurement;
+ table.OutputValue_BasePeriod = newtable.OutputValue_BasePeriod;
+ table.OutputValue_LastYear = newtable.OutputValue_LastYear;
+ table.OutputValue_ThisYear = newtable.OutputValue_ThisYear;
+ table.OperationScale_BasePeriod = newtable.OperationScale_BasePeriod;
+ table.OperationScale_LastYear = newtable.OperationScale_LastYear;
+ table.OperationScale_ThisYear = newtable.OperationScale_ThisYear;
+ table.OperationScale_UnitOfMeasurement = newtable.OperationScale_UnitOfMeasurement;
+ table.ServiceOperatingIncome_BasePeriod = newtable.ServiceOperatingIncome_BasePeriod;
+ table.ServiceOperatingIncome_LastYear = newtable.ServiceOperatingIncome_LastYear;
+ table.ServiceOperatingIncome_ThisYear = newtable.ServiceOperatingIncome_ThisYear;
+ db.SubmitChanges();
+ }
+
+ }
+ public static void DeleteEnvironmental_ProjectEnergyReportItemById(string EnergyReportItemId)
+ {
+
+ Model.Environmental_ProjectEnergyReportItem table = db.Environmental_ProjectEnergyReportItem.FirstOrDefault(x => x.EnergyReportItemId == EnergyReportItemId);
+ if (table != null)
+ {
+ db.Environmental_ProjectEnergyReportItem.DeleteOnSubmit(table);
+ db.SubmitChanges();
+ }
+
+ }
+
+ public static void DeleteALLEnvironmental_ProjectEnergyReportItem()
+ {
+ if (db.Environmental_ProjectEnergyReportItem != null)
+ {
+ db.Environmental_ProjectEnergyReportItem.DeleteAllOnSubmit(db.Environmental_ProjectEnergyReportItem);
+ db.SubmitChanges();
+ }
+ }
+ public static void DeleteEnergyReportItemByChemicalReportId(string EnergyReportId)
+ {
+ var q = from x in Funs.DB.Environmental_ProjectEnergyReportItem where x.EnergyReportId == EnergyReportId select x;
+ if (q != null)
+ {
+ Funs.DB.Environmental_ProjectEnergyReportItem.DeleteAllOnSubmit(q);
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+
+ }
+}
\ No newline at end of file
diff --git a/SGGL/BLL/ZHGL/Information/EPSummaryReportService.cs b/SGGL/BLL/ZHGL/Information/EPSummaryReportService.cs
new file mode 100644
index 00000000..0d0ac6e3
--- /dev/null
+++ b/SGGL/BLL/ZHGL/Information/EPSummaryReportService.cs
@@ -0,0 +1,108 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BLL
+{
+ ///
+ /// 生态环保工作总结报告
+ ///
+ public static class EPSummaryReportService
+ {
+ ///
+ /// 根据主键获取生态环保工作总结报告
+ ///
+ ///
+ ///
+ public static Model.Information_EPSummaryReport GetEPSummaryReportById(string ePSummaryReportId)
+ {
+ return Funs.DB.Information_EPSummaryReport.FirstOrDefault(e => e.EPSummaryReportId == ePSummaryReportId);
+ }
+
+ ///
+ /// 根据单位和年份获取生态环保工作总结报告
+ ///
+ ///
+ ///
+ ///
+ public static Model.Information_EPSummaryReport GetEPSummaryReportByUnitIdAndYearId(string unitId, int yearId)
+ {
+ return Funs.DB.Information_EPSummaryReport.FirstOrDefault(e => e.UnitId == unitId && e.YearId == yearId);
+ }
+
+ ///
+ /// 添加生态环保工作总结报告
+ ///
+ ///
+ public static void AddEPSummaryReport(Model.Information_EPSummaryReport ePSummaryReport)
+ {
+ Model.Information_EPSummaryReport newReport = new Model.Information_EPSummaryReport
+ {
+ EPSummaryReportId = ePSummaryReport.EPSummaryReportId,
+ UnitId = ePSummaryReport.UnitId,
+ YearId = ePSummaryReport.YearId,
+ ResponsiblePerson = ePSummaryReport.ResponsiblePerson,
+ ResponsiblePersonTel = ePSummaryReport.ResponsiblePersonTel,
+ ContactPerson = ePSummaryReport.ContactPerson,
+ ContactPersonTel = ePSummaryReport.ContactPersonTel,
+ ReportDate = ePSummaryReport.ReportDate,
+ Description1 = ePSummaryReport.Description1,
+ Description2 = ePSummaryReport.Description2,
+ Description3 = ePSummaryReport.Description3,
+ Description4 = ePSummaryReport.Description4,
+ Description5 = ePSummaryReport.Description5,
+ Description6 = ePSummaryReport.Description6,
+ Description7 = ePSummaryReport.Description7,
+ Description8 = ePSummaryReport.Description8,
+ Description9 = ePSummaryReport.Description9
+ };
+ Funs.DB.Information_EPSummaryReport.InsertOnSubmit(newReport);
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 修改生态环保工作总结报告
+ ///
+ ///
+ public static void UpdateEPSummaryReport(Model.Information_EPSummaryReport ePSummaryReport)
+ {
+ Model.Information_EPSummaryReport newReport = Funs.DB.Information_EPSummaryReport.FirstOrDefault(e => e.EPSummaryReportId == ePSummaryReport.EPSummaryReportId);
+ if (newReport != null)
+ {
+ newReport.UnitId = ePSummaryReport.UnitId;
+ newReport.YearId = ePSummaryReport.YearId;
+ newReport.ResponsiblePerson = ePSummaryReport.ResponsiblePerson;
+ newReport.ResponsiblePersonTel = ePSummaryReport.ResponsiblePersonTel;
+ newReport.ContactPerson = ePSummaryReport.ContactPerson;
+ newReport.ContactPersonTel = ePSummaryReport.ContactPersonTel;
+ newReport.ReportDate = ePSummaryReport.ReportDate;
+ newReport.Description1 = ePSummaryReport.Description1;
+ newReport.Description2 = ePSummaryReport.Description2;
+ newReport.Description3 = ePSummaryReport.Description3;
+ newReport.Description4 = ePSummaryReport.Description4;
+ newReport.Description5 = ePSummaryReport.Description5;
+ newReport.Description6 = ePSummaryReport.Description6;
+ newReport.Description7 = ePSummaryReport.Description7;
+ newReport.Description8 = ePSummaryReport.Description8;
+ newReport.Description9 = ePSummaryReport.Description9;
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除生态环保工作总结报告
+ ///
+ ///
+ public static void DeleteEPSummaryReportById(string ePSummaryReportId)
+ {
+ Model.Information_EPSummaryReport ePSummaryReport = Funs.DB.Information_EPSummaryReport.FirstOrDefault(e => e.EPSummaryReportId == ePSummaryReportId);
+ if (ePSummaryReport != null)
+ {
+ Funs.DB.Information_EPSummaryReport.DeleteOnSubmit(ePSummaryReport);
+ Funs.DB.SubmitChanges();
+ }
+ }
+ }
+}
diff --git a/SGGL/BLL/ZHGL/Information/MillionsMonthlyReportItemService.cs b/SGGL/BLL/ZHGL/Information/MillionsMonthlyReportItemService.cs
index fc0bd1e6..2da2d794 100644
--- a/SGGL/BLL/ZHGL/Information/MillionsMonthlyReportItemService.cs
+++ b/SGGL/BLL/ZHGL/Information/MillionsMonthlyReportItemService.cs
@@ -6,20 +6,20 @@ namespace BLL
public static class MillionsMonthlyReportItemService
{
///
- /// 百万工时安全统计月报表明细表
+ /// 企业安全数据统计月报明细表
///
- /// 百万工时安全统计月报表明细表Id
- /// 百万工时安全统计月报表明细表
+ /// 企业安全数据统计月报明细表Id
+ /// 企业安全数据统计月报明细表
public static Model.Information_MillionsMonthlyReportItem GetMillionsMonthlyReportItemByMillionsMonthlyReportItemId(string MillionsMonthlyReportItemId)
{
return Funs.DB.Information_MillionsMonthlyReportItem.FirstOrDefault(e => e.MillionsMonthlyReportItemId == MillionsMonthlyReportItemId);
}
///
- /// 百万工时安全统计月报表明细表
+ /// 企业安全数据统计月报明细表
///
- /// 百万工时安全统计月报表明细表Id
- /// 百万工时安全统计月报表明细表
+ /// 企业安全数据统计月报明细表Id
+ /// 企业安全数据统计月报明细表
public static Model.Information_MillionsMonthlyReportItem GetMillionsMonthlyReportItemByMillionsMonthlyReportIdAndTypeId(string MillionsMonthlyReportId)
{
return Funs.DB.Information_MillionsMonthlyReportItem.FirstOrDefault(e => e.MillionsMonthlyReportId == MillionsMonthlyReportId);
@@ -28,7 +28,7 @@ namespace BLL
///
/// 根据主表Id判断是否存在明细记录
///
- /// 百万工时安全统计月报表表Id
+ /// 企业安全数据统计月报表Id
/// 是否存在明细记录
public static bool IsExitItems(string MillionsMonthlyReportId)
{
@@ -38,7 +38,7 @@ namespace BLL
///
/// 根据主表Id获取明细记录集合
///
- /// 百万工时安全统计月报表明细表Id
+ /// 企业安全数据统计月报明细表Id
/// 明细记录集合
public static List GetItems(string MillionsMonthlyReportId)
{
@@ -51,7 +51,7 @@ namespace BLL
///
/// 根据主表Id获取明细记录集合
///
- /// 百万工时安全统计月报表明细表Id
+ /// 企业安全数据统计月报明细表Id
/// 明细记录集合
public static List GetYearSumItems(string unitId, int? year, int? month)
{
@@ -66,7 +66,7 @@ namespace BLL
///
/// 根据主表Id获取明细记录集合
///
- /// 百万工时安全统计月报表明细表Id
+ /// 企业安全数据统计月报明细表Id
/// 明细记录集合
public static List GetAllUnitYearSumItems(int year, int month)
{
@@ -80,7 +80,7 @@ namespace BLL
///
/// 根据主表Id获取明细记录集合(不包含本月合计行)
///
- /// 百万工时安全统计月报表明细表Id
+ /// 企业安全数据统计月报明细表Id
/// 明细记录集合
public static List GetItemsNoSum(string MillionsMonthlyReportId)
{
@@ -92,9 +92,9 @@ namespace BLL
}
///
- /// 增加百万工时安全统计月报表明细表
+ /// 增加企业安全数据统计月报明细表
///
- /// 百万工时安全统计月报表明细表实体
+ /// 企业安全数据统计月报明细表实体
public static void AddMillionsMonthlyReportItem(Model.Information_MillionsMonthlyReportItem MillionsMonthlyReportItem)
{
Model.Information_MillionsMonthlyReportItem newMillionsMonthlyReportItem = new Model.Information_MillionsMonthlyReportItem
@@ -109,6 +109,9 @@ namespace BLL
ContractorNum = MillionsMonthlyReportItem.ContractorNum,
SumPersonNum = MillionsMonthlyReportItem.SumPersonNum,
TotalWorkNum = MillionsMonthlyReportItem.TotalWorkNum,
+ DeathAccidentNum = MillionsMonthlyReportItem.DeathAccidentNum,
+ DeathAccidentPersonNum = MillionsMonthlyReportItem.DeathAccidentPersonNum,
+ DeathAccidentLossHour = MillionsMonthlyReportItem.DeathAccidentLossHour,
SeriousInjuriesNum = MillionsMonthlyReportItem.SeriousInjuriesNum,
SeriousInjuriesPersonNum = MillionsMonthlyReportItem.SeriousInjuriesPersonNum,
SeriousInjuriesLossHour = MillionsMonthlyReportItem.SeriousInjuriesLossHour,
@@ -123,6 +126,7 @@ namespace BLL
MedicalTreatmentPersonNum = MillionsMonthlyReportItem.MedicalTreatmentPersonNum,
MedicalTreatmentLossHour = MillionsMonthlyReportItem.MedicalTreatmentLossHour,
FireNum = MillionsMonthlyReportItem.FireNum,
+ EnvironmenNum = MillionsMonthlyReportItem.EnvironmenNum,
ExplosionNum = MillionsMonthlyReportItem.ExplosionNum,
TrafficNum = MillionsMonthlyReportItem.TrafficNum,
EquipmentNum = MillionsMonthlyReportItem.EquipmentNum,
@@ -138,9 +142,9 @@ namespace BLL
}
///
- /// 修改百万工时安全统计月报表明细表
+ /// 修改企业安全数据统计月报明细表
///
- /// 百万工时安全统计月报表明细表实体
+ /// 企业安全数据统计月报明细表实体
public static void UpdateMillionsMonthlyReportItem(Model.Information_MillionsMonthlyReportItem MillionsMonthlyReportItem)
{
Model.Information_MillionsMonthlyReportItem newMillionsMonthlyReportItem = Funs.DB.Information_MillionsMonthlyReportItem.FirstOrDefault(e => e.MillionsMonthlyReportItemId == MillionsMonthlyReportItem.MillionsMonthlyReportItemId);
@@ -152,6 +156,9 @@ namespace BLL
newMillionsMonthlyReportItem.ContractorNum = MillionsMonthlyReportItem.ContractorNum;
newMillionsMonthlyReportItem.SumPersonNum = MillionsMonthlyReportItem.SumPersonNum;
newMillionsMonthlyReportItem.TotalWorkNum = MillionsMonthlyReportItem.TotalWorkNum;
+ newMillionsMonthlyReportItem.DeathAccidentNum = MillionsMonthlyReportItem.DeathAccidentNum;
+ newMillionsMonthlyReportItem.DeathAccidentPersonNum = MillionsMonthlyReportItem.DeathAccidentPersonNum;
+ newMillionsMonthlyReportItem.DeathAccidentLossHour = MillionsMonthlyReportItem.DeathAccidentLossHour;
newMillionsMonthlyReportItem.SeriousInjuriesNum = MillionsMonthlyReportItem.SeriousInjuriesNum;
newMillionsMonthlyReportItem.SeriousInjuriesPersonNum = MillionsMonthlyReportItem.SeriousInjuriesPersonNum;
newMillionsMonthlyReportItem.SeriousInjuriesLossHour = MillionsMonthlyReportItem.SeriousInjuriesLossHour;
@@ -167,6 +174,7 @@ namespace BLL
newMillionsMonthlyReportItem.MedicalTreatmentLossHour = MillionsMonthlyReportItem.MedicalTreatmentLossHour;
newMillionsMonthlyReportItem.FireNum = MillionsMonthlyReportItem.FireNum;
newMillionsMonthlyReportItem.ExplosionNum = MillionsMonthlyReportItem.ExplosionNum;
+ newMillionsMonthlyReportItem.EnvironmenNum = MillionsMonthlyReportItem.EnvironmenNum;
newMillionsMonthlyReportItem.TrafficNum = MillionsMonthlyReportItem.TrafficNum;
newMillionsMonthlyReportItem.EquipmentNum = MillionsMonthlyReportItem.EquipmentNum;
newMillionsMonthlyReportItem.QualityNum = MillionsMonthlyReportItem.QualityNum;
diff --git a/SGGL/BLL/ZHGL/Information/MillionsMonthlyReportService.cs b/SGGL/BLL/ZHGL/Information/MillionsMonthlyReportService.cs
index 4c951c09..a807d8fa 100644
--- a/SGGL/BLL/ZHGL/Information/MillionsMonthlyReportService.cs
+++ b/SGGL/BLL/ZHGL/Information/MillionsMonthlyReportService.cs
@@ -6,41 +6,41 @@ namespace BLL
public static class MillionsMonthlyReportService
{
///
- /// 百万工时安全统计月报表
+ /// 企业安全数据统计月报
///
- /// 百万工时安全统计月报表Id
- /// 百万工时安全统计月报表
+ /// 企业安全数据统计月报Id
+ /// 企业安全数据统计月报
public static Model.Information_MillionsMonthlyReport GetMillionsMonthlyReportByMillionsMonthlyReportId(string MillionsMonthlyReportId)
{
return Funs.DB.Information_MillionsMonthlyReport.FirstOrDefault(e => e.MillionsMonthlyReportId == MillionsMonthlyReportId);
}
///
- /// 百万工时安全统计月报表
+ /// 企业安全数据统计月报
///
/// 单位Id
/// 年度 param >
/// 月份
- /// 百万工时安全统计月报表
+ /// 企业安全数据统计月报
public static Model.Information_MillionsMonthlyReport GetMillionsMonthlyReportByUnitIdAndYearAndMonth(string unitId, int year, int month)
{
return Funs.DB.Information_MillionsMonthlyReport.FirstOrDefault(e => e.UnitId == unitId && e.Month == month && e.Year == year);
}
///
- /// 根据单位Id获取百万工时安全统计月报表集合
+ /// 根据单位Id获取企业安全数据统计月报集合
///
/// 单位Id
- /// 百万工时安全统计月报表集合
+ /// 企业安全数据统计月报集合
public static List GetMillionsMonthlyReportsByUnitId(string UnitId)
{
return (from x in Funs.DB.View_Information_MillionsMonthlyReport where x.UnitId == UnitId orderby x.FillingDate descending select x).ToList();
}
///
- /// 增加百万工时安全统计月报表
+ /// 增加企业安全数据统计月报
///
- /// 百万工时安全统计月报表实体
+ /// 企业安全数据统计月报实体
public static void AddMillionsMonthlyReport(Model.Information_MillionsMonthlyReport MillionsMonthlyReport)
{
Model.Information_MillionsMonthlyReport newMillionsMonthlyReport = new Model.Information_MillionsMonthlyReport
@@ -59,7 +59,23 @@ namespace BLL
FillingMan = MillionsMonthlyReport.FillingMan,
UpState = MillionsMonthlyReport.UpState,
HandleState = MillionsMonthlyReport.HandleState,
- HandleMan = MillionsMonthlyReport.HandleMan
+ HandleMan = MillionsMonthlyReport.HandleMan,
+ InputCosts = MillionsMonthlyReport.InputCosts,
+ TrainNum = MillionsMonthlyReport.TrainNum,
+ GeneralHazardNum = MillionsMonthlyReport.GeneralHazardNum,
+ MajorHazardNum = MillionsMonthlyReport.MajorHazardNum,
+ NotProofLargeProjectNum = MillionsMonthlyReport.NotProofLargeProjectNum,
+ ProofLargeProjectNum = MillionsMonthlyReport.ProofLargeProjectNum,
+ FireLicenseNum = MillionsMonthlyReport.FireLicenseNum,
+ LimitLicenseNum = MillionsMonthlyReport.LimitLicenseNum,
+ HighLicenseNum = MillionsMonthlyReport.HighLicenseNum,
+ HoistingLicenseNum = MillionsMonthlyReport.HoistingLicenseNum,
+ BreakGroundLicenseNum = MillionsMonthlyReport.BreakGroundLicenseNum,
+ ElectricityLicenseNum = MillionsMonthlyReport.ElectricityLicenseNum,
+ RTLicenseNum = MillionsMonthlyReport.RTLicenseNum,
+ NightLicenseNum = MillionsMonthlyReport.NightLicenseNum,
+ CommissionerNum = MillionsMonthlyReport.CommissionerNum,
+ SoleDutyNum = MillionsMonthlyReport.SoleDutyNum,
};
Funs.DB.Information_MillionsMonthlyReport.InsertOnSubmit(newMillionsMonthlyReport);
@@ -67,9 +83,9 @@ namespace BLL
}
///
- /// 修改百万工时安全统计月报表
+ /// 修改企业安全数据统计月报
///
- /// 百万工时安全统计月报表实体
+ /// 企业安全数据统计月报实体
public static void UpdateMillionsMonthlyReport(Model.Information_MillionsMonthlyReport MillionsMonthlyReport)
{
Model.Information_MillionsMonthlyReport newMillionsMonthlyReport = Funs.DB.Information_MillionsMonthlyReport.FirstOrDefault(e => e.MillionsMonthlyReportId == MillionsMonthlyReport.MillionsMonthlyReportId);
@@ -88,6 +104,22 @@ namespace BLL
newMillionsMonthlyReport.UpState = MillionsMonthlyReport.UpState;
newMillionsMonthlyReport.HandleState = MillionsMonthlyReport.HandleState;
newMillionsMonthlyReport.HandleMan = MillionsMonthlyReport.HandleMan;
+ newMillionsMonthlyReport.InputCosts = MillionsMonthlyReport.InputCosts;
+ newMillionsMonthlyReport.TrainNum = MillionsMonthlyReport.TrainNum;
+ newMillionsMonthlyReport.GeneralHazardNum = MillionsMonthlyReport.GeneralHazardNum;
+ newMillionsMonthlyReport.MajorHazardNum = MillionsMonthlyReport.MajorHazardNum;
+ newMillionsMonthlyReport.NotProofLargeProjectNum = MillionsMonthlyReport.NotProofLargeProjectNum;
+ newMillionsMonthlyReport.ProofLargeProjectNum = MillionsMonthlyReport.ProofLargeProjectNum;
+ newMillionsMonthlyReport.FireLicenseNum = MillionsMonthlyReport.FireLicenseNum;
+ newMillionsMonthlyReport.LimitLicenseNum = MillionsMonthlyReport.LimitLicenseNum;
+ newMillionsMonthlyReport.HighLicenseNum = MillionsMonthlyReport.HighLicenseNum;
+ newMillionsMonthlyReport.HoistingLicenseNum = MillionsMonthlyReport.HoistingLicenseNum;
+ newMillionsMonthlyReport.BreakGroundLicenseNum = MillionsMonthlyReport.BreakGroundLicenseNum;
+ newMillionsMonthlyReport.ElectricityLicenseNum = MillionsMonthlyReport.ElectricityLicenseNum;
+ newMillionsMonthlyReport.RTLicenseNum = MillionsMonthlyReport.RTLicenseNum;
+ newMillionsMonthlyReport.NightLicenseNum = MillionsMonthlyReport.NightLicenseNum;
+ newMillionsMonthlyReport.CommissionerNum = MillionsMonthlyReport.CommissionerNum;
+ newMillionsMonthlyReport.SoleDutyNum = MillionsMonthlyReport.SoleDutyNum;
Funs.DB.SubmitChanges();
}
diff --git a/SGGL/BLL/ZHGL/Information/QualityWorkSummaryReportService.cs b/SGGL/BLL/ZHGL/Information/QualityWorkSummaryReportService.cs
new file mode 100644
index 00000000..25e1059c
--- /dev/null
+++ b/SGGL/BLL/ZHGL/Information/QualityWorkSummaryReportService.cs
@@ -0,0 +1,115 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BLL
+{
+ ///
+ /// 质量管理工作总结报告
+ ///
+ public static class QualityWorkSummaryReportService
+ {
+ ///
+ /// 根据主键获取质量管理工作总结报告
+ ///
+ ///
+ ///
+ public static Model.Information_QualityWorkSummaryReport GetQualityWorkSummaryReportById(string qualityWorkSummaryReportId)
+ {
+ return Funs.DB.Information_QualityWorkSummaryReport.FirstOrDefault(e => e.QualityWorkSummaryReportId == qualityWorkSummaryReportId);
+ }
+
+ ///
+ /// 质量管理工作总结报告
+ ///
+ /// 单位Id
+ /// 年度
+ /// 质量管理工作总结报告
+ public static Model.Information_QualityWorkSummaryReport GetQualityWorkSummaryReportByUnitIdAndYear(string unitId, int year)
+ {
+ return Funs.DB.Information_QualityWorkSummaryReport.FirstOrDefault(e => e.UnitId == unitId && e.YearId == year);
+ }
+
+ ///
+ /// 添加质量管理工作总结报告
+ ///
+ ///
+ public static void AddQualityWorkSummaryReport(Model.Information_QualityWorkSummaryReport qualityWorkSummaryReport)
+ {
+ Model.Information_QualityWorkSummaryReport newQualityWorkSummaryReport = new Model.Information_QualityWorkSummaryReport
+ {
+ QualityWorkSummaryReportId = qualityWorkSummaryReport.QualityWorkSummaryReportId,
+ YearId = qualityWorkSummaryReport.YearId,
+ UnitId = qualityWorkSummaryReport.UnitId,
+ ResponsiblePerson = qualityWorkSummaryReport.ResponsiblePerson,
+ ResponsiblePersonTel = qualityWorkSummaryReport.ResponsiblePersonTel,
+ ContactPerson = qualityWorkSummaryReport.ContactPerson,
+ ContactPersonTel = qualityWorkSummaryReport.ContactPersonTel,
+ ReportDate = qualityWorkSummaryReport.ReportDate,
+ Performance = qualityWorkSummaryReport.Performance,
+ AccidentSituation = qualityWorkSummaryReport.AccidentSituation,
+ Awards = qualityWorkSummaryReport.Awards,
+ WorkDevelopment = qualityWorkSummaryReport.WorkDevelopment,
+ PersonnelTraining = qualityWorkSummaryReport.PersonnelTraining,
+ CheckSituation = qualityWorkSummaryReport.CheckSituation,
+ ManagementActivity = qualityWorkSummaryReport.ManagementActivity,
+ WorkExperience = qualityWorkSummaryReport.WorkExperience,
+ Countermeasures = qualityWorkSummaryReport.Countermeasures,
+ NextYearWorkPlan = qualityWorkSummaryReport.NextYearWorkPlan,
+ JobSuggestion = qualityWorkSummaryReport.JobSuggestion,
+ UpState = qualityWorkSummaryReport.UpState
+ };
+ Funs.DB.Information_QualityWorkSummaryReport.InsertOnSubmit(newQualityWorkSummaryReport);
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 修改质量管理工作总结报告
+ ///
+ ///
+ public static void UpdateQualityWorkSummaryReport(Model.Information_QualityWorkSummaryReport qualityWorkSummaryReport)
+ {
+ Model.Information_QualityWorkSummaryReport newQualityWorkSummaryReport = Funs.DB.Information_QualityWorkSummaryReport.FirstOrDefault(e => e.QualityWorkSummaryReportId == qualityWorkSummaryReport.QualityWorkSummaryReportId);
+ if (newQualityWorkSummaryReport != null)
+ {
+ newQualityWorkSummaryReport.UnitId = qualityWorkSummaryReport.UnitId;
+ newQualityWorkSummaryReport.YearId = qualityWorkSummaryReport.YearId;
+ newQualityWorkSummaryReport.ResponsiblePerson = qualityWorkSummaryReport.ResponsiblePerson;
+ newQualityWorkSummaryReport.ResponsiblePersonTel = qualityWorkSummaryReport.ResponsiblePersonTel;
+ newQualityWorkSummaryReport.ContactPerson = qualityWorkSummaryReport.ContactPerson;
+ newQualityWorkSummaryReport.ContactPersonTel = qualityWorkSummaryReport.ContactPersonTel;
+ newQualityWorkSummaryReport.ReportDate = qualityWorkSummaryReport.ReportDate;
+ newQualityWorkSummaryReport.Performance = qualityWorkSummaryReport.Performance;
+ newQualityWorkSummaryReport.AccidentSituation = qualityWorkSummaryReport.AccidentSituation;
+ newQualityWorkSummaryReport.Awards = qualityWorkSummaryReport.Awards;
+ newQualityWorkSummaryReport.WorkDevelopment = qualityWorkSummaryReport.WorkDevelopment;
+ newQualityWorkSummaryReport.PersonnelTraining = qualityWorkSummaryReport.PersonnelTraining;
+ newQualityWorkSummaryReport.CheckSituation = qualityWorkSummaryReport.CheckSituation;
+ newQualityWorkSummaryReport.ManagementActivity = qualityWorkSummaryReport.ManagementActivity;
+ newQualityWorkSummaryReport.WorkExperience = qualityWorkSummaryReport.WorkExperience;
+ newQualityWorkSummaryReport.Countermeasures = qualityWorkSummaryReport.Countermeasures;
+ newQualityWorkSummaryReport.NextYearWorkPlan = qualityWorkSummaryReport.NextYearWorkPlan;
+ newQualityWorkSummaryReport.JobSuggestion = qualityWorkSummaryReport.JobSuggestion;
+ newQualityWorkSummaryReport.UpState = qualityWorkSummaryReport.UpState;
+
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除质量管理工作总结报告
+ ///
+ ///
+ public static void DeleteQualityWorkSummaryReportById(string QualityWorkSummaryReportId)
+ {
+ Model.Information_QualityWorkSummaryReport qualityWorkSummaryReport = Funs.DB.Information_QualityWorkSummaryReport.FirstOrDefault(e => e.QualityWorkSummaryReportId == QualityWorkSummaryReportId);
+ if (qualityWorkSummaryReport != null)
+ {
+ Funs.DB.Information_QualityWorkSummaryReport.DeleteOnSubmit(qualityWorkSummaryReport);
+ Funs.DB.SubmitChanges();
+ }
+ }
+ }
+}
diff --git a/SGGL/BLL/ZHGL/Information/QuarterlyProjectQualityService.cs b/SGGL/BLL/ZHGL/Information/QuarterlyProjectQualityService.cs
new file mode 100644
index 00000000..b0b6a6af
--- /dev/null
+++ b/SGGL/BLL/ZHGL/Information/QuarterlyProjectQualityService.cs
@@ -0,0 +1,146 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BLL
+{
+ ///
+ /// 季度工程项目质量信息表
+ ///
+ public static class QuarterlyProjectQualityService
+ {
+ ///
+ /// 根据主键获取季度工程项目质量信息表
+ ///
+ ///
+ ///
+ public static Model.Information_QuarterlyProjectQuality GetQuarterlyProjectQualityById(string quarterlyProjectQualityId)
+ {
+ return Funs.DB.Information_QuarterlyProjectQuality.FirstOrDefault(e => e.QuarterlyProjectQualityId == quarterlyProjectQualityId);
+ }
+
+ ///
+ /// 季度工程项目质量信息表
+ ///
+ /// 单位Id
+ /// 年度
+ /// 季度
+ /// 季度工程项目质量信息表
+ public static Model.Information_QuarterlyProjectQuality GetQuarterlyProjectQualityByUnitIdAndYearAndQuarter(string unitId, int year,int quarter)
+ {
+ return Funs.DB.Information_QuarterlyProjectQuality.FirstOrDefault(e => e.UnitId == unitId && e.Year == year && e.Quarter == quarter);
+ }
+
+ ///
+ /// 添加季度工程项目质量信息表
+ ///
+ ///
+ public static void AddQuarterlyProjectQuality(Model.Information_QuarterlyProjectQuality quarterlyProjectQuality)
+ {
+ Model.Information_QuarterlyProjectQuality newQuarterlyProjectQuality = new Model.Information_QuarterlyProjectQuality
+ {
+ QuarterlyProjectQualityId = quarterlyProjectQuality.QuarterlyProjectQualityId,
+ UnitId = quarterlyProjectQuality.UnitId,
+ Year = quarterlyProjectQuality.Year,
+ Quarter = quarterlyProjectQuality.Quarter,
+ QualityManagePersonNum = quarterlyProjectQuality.QualityManagePersonNum,
+ AdvancedTitlePersonNum = quarterlyProjectQuality.AdvancedTitlePersonNum,
+ IntermediateTitlePersonNum = quarterlyProjectQuality.IntermediateTitlePersonNum,
+ BeImplementedProjectNum = quarterlyProjectQuality.BeImplementedProjectNum,
+ StartImplementedProjectNum = quarterlyProjectQuality.StartImplementedProjectNum,
+ AccumulativeStartImplemented = quarterlyProjectQuality.AccumulativeStartImplemented,
+ CompleteProjectNum = quarterlyProjectQuality.CompleteProjectNum,
+ YearCompleteProjectNum = quarterlyProjectQuality.YearCompleteProjectNum,
+ QuarterTotal = quarterlyProjectQuality.QuarterTotal,
+ QuarterFirstPassNum = quarterlyProjectQuality.QuarterFirstPassNum,
+ QuarterFirstPassRate = quarterlyProjectQuality.QuarterFirstPassRate,
+ YearTotal = quarterlyProjectQuality.YearTotal,
+ YearFirstPassNum = quarterlyProjectQuality.YearFirstPassNum,
+ YearFirstPassRate = quarterlyProjectQuality.YearFirstPassRate,
+ QuaterCheckSuperviseNum = quarterlyProjectQuality.QuaterCheckSuperviseNum,
+ QuaterCorrectiveNoticeNum = quarterlyProjectQuality.QuaterCorrectiveNoticeNum,
+ QuaterQualityProblemNum = quarterlyProjectQuality.QuaterQualityProblemNum,
+ QuaterClosedQualityProblemNum = quarterlyProjectQuality.QuaterClosedQualityProblemNum,
+ YearCheckSuperviseNum = quarterlyProjectQuality.YearCheckSuperviseNum,
+ YearCorrectiveNoticeNum = quarterlyProjectQuality.YearCorrectiveNoticeNum,
+ YearQualityProblemNum = quarterlyProjectQuality.YearQualityProblemNum,
+ YearClosedQualityProblemNum = quarterlyProjectQuality.YearClosedQualityProblemNum,
+ QuaterQualityAccidentNum = quarterlyProjectQuality.QuaterQualityAccidentNum,
+ QuaterDirectEconomicLoss = quarterlyProjectQuality.QuaterDirectEconomicLoss,
+ YearQualityAccidentNum = quarterlyProjectQuality.YearQualityAccidentNum,
+ YearDirectEconomicLoss = quarterlyProjectQuality.YearDirectEconomicLoss,
+ ResponsiblePerson = quarterlyProjectQuality.ResponsiblePerson,
+ CompileMan = quarterlyProjectQuality.CompileMan,
+ CompileDate = quarterlyProjectQuality.CompileDate,
+ Tel = quarterlyProjectQuality.Tel,
+ UpState = quarterlyProjectQuality.UpState
+ };
+ Funs.DB.Information_QuarterlyProjectQuality.InsertOnSubmit(newQuarterlyProjectQuality);
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 修改季度工程项目质量信息表
+ ///
+ ///
+ public static void UpdateQuarterlyProjectQuality(Model.Information_QuarterlyProjectQuality quarterlyProjectQuality)
+ {
+ Model.Information_QuarterlyProjectQuality newQuarterlyProjectQuality = Funs.DB.Information_QuarterlyProjectQuality.FirstOrDefault(e => e.QuarterlyProjectQualityId == quarterlyProjectQuality.QuarterlyProjectQualityId);
+ if (newQuarterlyProjectQuality != null)
+ {
+ newQuarterlyProjectQuality.UnitId = quarterlyProjectQuality.UnitId;
+ newQuarterlyProjectQuality.Year = quarterlyProjectQuality.Year;
+ newQuarterlyProjectQuality.Quarter = quarterlyProjectQuality.Quarter;
+ newQuarterlyProjectQuality.QualityManagePersonNum = quarterlyProjectQuality.QualityManagePersonNum;
+ newQuarterlyProjectQuality.AdvancedTitlePersonNum = quarterlyProjectQuality.AdvancedTitlePersonNum;
+ newQuarterlyProjectQuality.IntermediateTitlePersonNum = quarterlyProjectQuality.IntermediateTitlePersonNum;
+ newQuarterlyProjectQuality.BeImplementedProjectNum = quarterlyProjectQuality.BeImplementedProjectNum;
+ newQuarterlyProjectQuality.StartImplementedProjectNum = quarterlyProjectQuality.StartImplementedProjectNum;
+ newQuarterlyProjectQuality.AccumulativeStartImplemented = quarterlyProjectQuality.AccumulativeStartImplemented;
+ newQuarterlyProjectQuality.CompleteProjectNum = quarterlyProjectQuality.CompleteProjectNum;
+ newQuarterlyProjectQuality.YearCompleteProjectNum = quarterlyProjectQuality.YearCompleteProjectNum;
+ newQuarterlyProjectQuality.QuarterTotal = quarterlyProjectQuality.QuarterTotal;
+ newQuarterlyProjectQuality.QuarterFirstPassNum = quarterlyProjectQuality.QuarterFirstPassNum;
+ newQuarterlyProjectQuality.QuarterFirstPassRate = quarterlyProjectQuality.QuarterFirstPassRate;
+ newQuarterlyProjectQuality.YearTotal = quarterlyProjectQuality.YearTotal;
+ newQuarterlyProjectQuality.YearFirstPassNum = quarterlyProjectQuality.YearFirstPassNum;
+ newQuarterlyProjectQuality.YearFirstPassRate = quarterlyProjectQuality.YearFirstPassRate;
+ newQuarterlyProjectQuality.QuaterCheckSuperviseNum = quarterlyProjectQuality.QuaterCheckSuperviseNum;
+ newQuarterlyProjectQuality.QuaterCorrectiveNoticeNum = quarterlyProjectQuality.QuaterCorrectiveNoticeNum;
+ newQuarterlyProjectQuality.QuaterQualityProblemNum = quarterlyProjectQuality.QuaterQualityProblemNum;
+ newQuarterlyProjectQuality.QuaterClosedQualityProblemNum = quarterlyProjectQuality.QuaterClosedQualityProblemNum;
+ newQuarterlyProjectQuality.YearCheckSuperviseNum = quarterlyProjectQuality.YearCheckSuperviseNum;
+ newQuarterlyProjectQuality.YearCorrectiveNoticeNum = quarterlyProjectQuality.YearCorrectiveNoticeNum;
+ newQuarterlyProjectQuality.YearQualityProblemNum = quarterlyProjectQuality.YearQualityProblemNum;
+ newQuarterlyProjectQuality.YearClosedQualityProblemNum = quarterlyProjectQuality.YearClosedQualityProblemNum;
+ newQuarterlyProjectQuality.QuaterQualityAccidentNum = quarterlyProjectQuality.QuaterQualityAccidentNum;
+ newQuarterlyProjectQuality.QuaterDirectEconomicLoss = quarterlyProjectQuality.QuaterDirectEconomicLoss;
+ newQuarterlyProjectQuality.YearQualityAccidentNum = quarterlyProjectQuality.YearQualityAccidentNum;
+ newQuarterlyProjectQuality.YearDirectEconomicLoss = quarterlyProjectQuality.YearDirectEconomicLoss;
+ newQuarterlyProjectQuality.ResponsiblePerson = quarterlyProjectQuality.ResponsiblePerson;
+ newQuarterlyProjectQuality.CompileMan = quarterlyProjectQuality.CompileMan;
+ newQuarterlyProjectQuality.CompileDate = quarterlyProjectQuality.CompileDate;
+ newQuarterlyProjectQuality.Tel = quarterlyProjectQuality.Tel;
+ newQuarterlyProjectQuality.UpState = quarterlyProjectQuality.UpState;
+
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除季度工程项目质量信息表
+ ///
+ ///
+ public static void DeleteQuarterlyProjectQualityById(string quarterlyProjectQualityId)
+ {
+ Model.Information_QuarterlyProjectQuality quarterlyProjectQuality = Funs.DB.Information_QuarterlyProjectQuality.FirstOrDefault(e => e.QuarterlyProjectQualityId == quarterlyProjectQualityId);
+ if (quarterlyProjectQuality != null)
+ {
+ Funs.DB.Information_QuarterlyProjectQuality.DeleteOnSubmit(quarterlyProjectQuality);
+ Funs.DB.SubmitChanges();
+ }
+ }
+ }
+}
diff --git a/SGGL/BLL/ZHGL/Information/SafetyBriefingService.cs b/SGGL/BLL/ZHGL/Information/SafetyBriefingService.cs
new file mode 100644
index 00000000..78e56ee2
--- /dev/null
+++ b/SGGL/BLL/ZHGL/Information/SafetyBriefingService.cs
@@ -0,0 +1,120 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BLL
+{
+ ///
+ /// 实业安全简报
+ ///
+ public static class SafetyBriefingService
+ {
+ ///
+ /// 根据主键获取实业安全简报
+ ///
+ ///
+ ///
+ public static Model.Information_SafetyBriefing GetSafetyBriefingById(string safetyBriefingId)
+ {
+ return Funs.DB.Information_SafetyBriefing.FirstOrDefault(e => e.SafetyBriefingId == safetyBriefingId);
+ }
+
+ ///
+ /// 实业安全简报
+ ///
+ /// 单位Id
+ /// 年度
+ /// 月份
+ /// 实业安全简报
+ public static Model.Information_SafetyBriefing GetSafetyBriefingByUnitIdAndYearAndMonth(string unitId, int year,int month)
+ {
+ return Funs.DB.Information_SafetyBriefing.FirstOrDefault(e => e.UnitId == unitId && e.YearId == year && e.Month == month);
+ }
+
+ ///
+ /// 添加实业安全简报
+ ///
+ ///
+ public static void AddSafetyBriefing(Model.Information_SafetyBriefing safetyBriefing)
+ {
+ Model.Information_SafetyBriefing newSafetyBriefing = new Model.Information_SafetyBriefing
+ {
+ SafetyBriefingId = safetyBriefing.SafetyBriefingId,
+ UnitId = safetyBriefing.UnitId,
+ YearId = safetyBriefing.YearId,
+ Month = safetyBriefing.Month,
+ CompileMan = safetyBriefing.CompileMan,
+ CompileDate = safetyBriefing.CompileDate,
+ Auditor = safetyBriefing.Auditor,
+ Approver = safetyBriefing.Approver,
+ MainWork=safetyBriefing.MainWork,
+ HazardRecording=safetyBriefing.HazardRecording,
+ SafetyAccident=safetyBriefing.SafetyAccident,
+ EPAccident=safetyBriefing.EPAccident,
+ OHAccident=safetyBriefing.OHAccident,
+ WorkPermitNum=safetyBriefing.WorkPermitNum,
+ HiddenDangerDetection=safetyBriefing.HiddenDangerDetection,
+ RectificationSituation=safetyBriefing.RectificationSituation,
+ CheckProblemsRectification=safetyBriefing.CheckProblemsRectification,
+ PendingProject=safetyBriefing.PendingProject,
+ ContractorManagement=safetyBriefing.ContractorManagement,
+ EnvironmentalEmissions=safetyBriefing.EnvironmentalEmissions,
+ NextMonthWorkPlan=safetyBriefing.NextMonthWorkPlan,
+ UpState = safetyBriefing.UpState
+ };
+ Funs.DB.Information_SafetyBriefing.InsertOnSubmit(newSafetyBriefing);
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 修改实业安全简报
+ ///
+ ///
+ public static void UpdateSafetyBriefing(Model.Information_SafetyBriefing safetyBriefing)
+ {
+ Model.Information_SafetyBriefing newSafetyBriefing = Funs.DB.Information_SafetyBriefing.FirstOrDefault(e => e.SafetyBriefingId == safetyBriefing.SafetyBriefingId);
+ if (newSafetyBriefing != null)
+ {
+ newSafetyBriefing.UnitId = safetyBriefing.UnitId;
+ newSafetyBriefing.YearId = safetyBriefing.YearId;
+ newSafetyBriefing.Month = safetyBriefing.Month;
+ newSafetyBriefing.CompileMan = safetyBriefing.CompileMan;
+ newSafetyBriefing.CompileDate = safetyBriefing.CompileDate;
+ newSafetyBriefing.Auditor = safetyBriefing.Auditor;
+ newSafetyBriefing.Approver = safetyBriefing.Approver;
+ newSafetyBriefing.MainWork = safetyBriefing.MainWork;
+ newSafetyBriefing.HazardRecording = safetyBriefing.HazardRecording;
+ newSafetyBriefing.SafetyAccident = safetyBriefing.SafetyAccident;
+ newSafetyBriefing.EPAccident = safetyBriefing.EPAccident;
+ newSafetyBriefing.OHAccident = safetyBriefing.OHAccident;
+ newSafetyBriefing.WorkPermitNum = safetyBriefing.WorkPermitNum;
+ newSafetyBriefing.HiddenDangerDetection = safetyBriefing.HiddenDangerDetection;
+ newSafetyBriefing.RectificationSituation = safetyBriefing.RectificationSituation;
+ newSafetyBriefing.CheckProblemsRectification = safetyBriefing.CheckProblemsRectification;
+ newSafetyBriefing.PendingProject = safetyBriefing.PendingProject;
+ newSafetyBriefing.ContractorManagement = safetyBriefing.ContractorManagement;
+ newSafetyBriefing.EnvironmentalEmissions = safetyBriefing.EnvironmentalEmissions;
+ newSafetyBriefing.NextMonthWorkPlan = safetyBriefing.NextMonthWorkPlan;
+ newSafetyBriefing.UpState = safetyBriefing.UpState;
+
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除实业安全简报
+ ///
+ ///
+ public static void DeleteSafetyBriefingById(string safetyBriefingId)
+ {
+ Model.Information_SafetyBriefing safetyBriefing = Funs.DB.Information_SafetyBriefing.FirstOrDefault(e => e.SafetyBriefingId == safetyBriefingId);
+ if (safetyBriefing != null)
+ {
+ Funs.DB.Information_SafetyBriefing.DeleteOnSubmit(safetyBriefing);
+ Funs.DB.SubmitChanges();
+ }
+ }
+ }
+}
diff --git a/SGGL/BLL/ZHGL/Information/UrgeReportService.cs b/SGGL/BLL/ZHGL/Information/UrgeReportService.cs
index 274ceecb..b33408f2 100644
--- a/SGGL/BLL/ZHGL/Information/UrgeReportService.cs
+++ b/SGGL/BLL/ZHGL/Information/UrgeReportService.cs
@@ -21,11 +21,11 @@ namespace BLL
public static void SetComplete(string unitId, string reportType, string year, string value)
{
Model.Information_UrgeReport urgeReport = new Model.Information_UrgeReport();
- if (reportType == Const.ReportType_1 || reportType == Const.ReportType_2)
+ if (reportType == Const.ReportType_1 || reportType == Const.ReportType_2 || reportType == Const.ReportType_8)
{
urgeReport = Funs.DB.Information_UrgeReport.FirstOrDefault(x => x.UnitId == unitId && x.ReprotType == reportType && x.YearId == year && x.MonthId == value);
}
- else if (reportType == Const.ReportType_3 || reportType == Const.ReportType_4)
+ else if (reportType == Const.ReportType_3 || reportType == Const.ReportType_4 || reportType == Const.ReportType_9)
{
urgeReport = Funs.DB.Information_UrgeReport.FirstOrDefault(x => x.UnitId == unitId && x.ReprotType == reportType && x.YearId == year && x.QuarterId == value);
}
@@ -33,6 +33,10 @@ namespace BLL
{
urgeReport = Funs.DB.Information_UrgeReport.FirstOrDefault(x => x.UnitId == unitId && x.ReprotType == reportType && x.YearId == year && x.HalfYearId == value);
}
+ else if (reportType == Const.ReportType_6 || reportType == Const.ReportType_7 || reportType == Const.ReportType_10)
+ {
+ urgeReport = Funs.DB.Information_UrgeReport.FirstOrDefault(x => x.UnitId == unitId && x.ReprotType == reportType && x.YearId == year);
+ }
if (urgeReport != null)
{
urgeReport.IsComplete = true;
diff --git a/SGGL/BLL/ZHGL/Information/WorkSummaryReportService.cs b/SGGL/BLL/ZHGL/Information/WorkSummaryReportService.cs
new file mode 100644
index 00000000..a88464b4
--- /dev/null
+++ b/SGGL/BLL/ZHGL/Information/WorkSummaryReportService.cs
@@ -0,0 +1,113 @@
+using System.Linq;
+
+namespace BLL
+{
+ ///
+ /// 安全管理工作总结报告
+ ///
+ public static class WorkSummaryReportService
+ {
+ ///
+ /// 根据主键获取安全管理工作总结报告
+ ///
+ ///
+ ///
+ public static Model.Information_WorkSummaryReport GetWorkSummaryReportById(string workSummaryReportId)
+ {
+ return Funs.DB.Information_WorkSummaryReport.FirstOrDefault(e => e.WorkSummaryReportId == workSummaryReportId);
+ }
+
+ ///
+ /// 安全管理工作总结报告
+ ///
+ /// 单位Id
+ /// 年度
+ /// 安全管理工作总结报告
+ public static Model.Information_WorkSummaryReport GetWorkSummaryReportByUnitIdAndYear(string unitId, int year)
+ {
+ return Funs.DB.Information_WorkSummaryReport.FirstOrDefault(e => e.UnitId == unitId && e.YearId == year);
+ }
+
+ ///
+ /// 添加安全管理工作总结报告
+ ///
+ ///
+ public static void AddWorkSummaryReport(Model.Information_WorkSummaryReport workSummaryReport)
+ {
+ Model.Information_WorkSummaryReport newWorkSummaryReport = new Model.Information_WorkSummaryReport
+ {
+ WorkSummaryReportId = workSummaryReport.WorkSummaryReportId,
+ YearId = workSummaryReport.YearId,
+ UnitId = workSummaryReport.UnitId,
+ ResponsiblePerson = workSummaryReport.ResponsiblePerson,
+ ResponsiblePersonTel = workSummaryReport.ResponsiblePersonTel,
+ ContactPerson = workSummaryReport.ContactPerson,
+ ContactPersonTel = workSummaryReport.ContactPersonTel,
+ ReportDate = workSummaryReport.ReportDate,
+ SafeLaborTime = workSummaryReport.SafeLaborTime,
+ SafetyObjectives = workSummaryReport.SafetyObjectives,
+ AccidentSituation = workSummaryReport.AccidentSituation,
+ Awards = workSummaryReport.Awards,
+ WorkDevelopment = workSummaryReport.WorkDevelopment,
+ PersonnelTraining = workSummaryReport.PersonnelTraining,
+ GovernanceSituation = workSummaryReport.GovernanceSituation,
+ ManagementActivity = workSummaryReport.ManagementActivity,
+ WorkExperience = workSummaryReport.WorkExperience,
+ Countermeasures = workSummaryReport.Countermeasures,
+ NextYearWorkPlan = workSummaryReport.NextYearWorkPlan,
+ JobSuggestion = workSummaryReport.JobSuggestion,
+ UpState = workSummaryReport.UpState
+ };
+ Funs.DB.Information_WorkSummaryReport.InsertOnSubmit(newWorkSummaryReport);
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 修改安全管理工作总结报告
+ ///
+ ///
+ public static void UpdateWorkSummaryReport(Model.Information_WorkSummaryReport workSummaryReport)
+ {
+ Model.Information_WorkSummaryReport newWorkSummaryReport = Funs.DB.Information_WorkSummaryReport.FirstOrDefault(e => e.WorkSummaryReportId == workSummaryReport.WorkSummaryReportId);
+ if (newWorkSummaryReport != null)
+ {
+ newWorkSummaryReport.UnitId = workSummaryReport.UnitId;
+ newWorkSummaryReport.YearId = workSummaryReport.YearId;
+ newWorkSummaryReport.ResponsiblePerson = workSummaryReport.ResponsiblePerson;
+ newWorkSummaryReport.ResponsiblePersonTel = workSummaryReport.ResponsiblePersonTel;
+ newWorkSummaryReport.ContactPerson = workSummaryReport.ContactPerson;
+ newWorkSummaryReport.ContactPersonTel = workSummaryReport.ContactPersonTel;
+ newWorkSummaryReport.ReportDate = workSummaryReport.ReportDate;
+ newWorkSummaryReport.SafeLaborTime = workSummaryReport.SafeLaborTime;
+ newWorkSummaryReport.SafetyObjectives = workSummaryReport.SafetyObjectives;
+ newWorkSummaryReport.AccidentSituation = workSummaryReport.AccidentSituation;
+ newWorkSummaryReport.Awards = workSummaryReport.Awards;
+ newWorkSummaryReport.WorkDevelopment = workSummaryReport.WorkDevelopment;
+ newWorkSummaryReport.PersonnelTraining = workSummaryReport.PersonnelTraining;
+ newWorkSummaryReport.GovernanceSituation = workSummaryReport.GovernanceSituation;
+ newWorkSummaryReport.ManagementActivity = workSummaryReport.ManagementActivity;
+ newWorkSummaryReport.WorkExperience = workSummaryReport.WorkExperience;
+ newWorkSummaryReport.Countermeasures = workSummaryReport.Countermeasures;
+ newWorkSummaryReport.NextYearWorkPlan = workSummaryReport.NextYearWorkPlan;
+ newWorkSummaryReport.JobSuggestion = workSummaryReport.JobSuggestion;
+ newWorkSummaryReport.UpState = workSummaryReport.UpState;
+
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除安全管理工作总结报告
+ ///
+ ///
+ public static void DeleteWorkSummaryReportById(string workSummaryReportId)
+ {
+ Model.Information_WorkSummaryReport workSummaryReport = Funs.DB.Information_WorkSummaryReport.FirstOrDefault(e => e.WorkSummaryReportId == workSummaryReportId);
+ if (workSummaryReport != null)
+ {
+ Funs.DB.Information_WorkSummaryReport.DeleteOnSubmit(workSummaryReport);
+ Funs.DB.SubmitChanges();
+ }
+ }
+ }
+}
diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReport/QualityWorkSummaryReport.aspx b/SGGL/FineUIPro.Web/CQMS/ManageReport/QualityWorkSummaryReport.aspx
new file mode 100644
index 00000000..28b5493b
--- /dev/null
+++ b/SGGL/FineUIPro.Web/CQMS/ManageReport/QualityWorkSummaryReport.aspx
@@ -0,0 +1,129 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QualityWorkSummaryReport.aspx.cs" Inherits="FineUIPro.Web.CQMS.ManageReport.QualityWorkSummaryReport" %>
+
+
+
+
+
+
+ 质量管理工作总结报告
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReport/QualityWorkSummaryReport.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ManageReport/QualityWorkSummaryReport.aspx.cs
new file mode 100644
index 00000000..fa8ee4cc
--- /dev/null
+++ b/SGGL/FineUIPro.Web/CQMS/ManageReport/QualityWorkSummaryReport.aspx.cs
@@ -0,0 +1,277 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace FineUIPro.Web.CQMS.ManageReport
+{
+ public partial class QualityWorkSummaryReport : PageBase
+ {
+ #region 项目主键
+ ///
+ /// 项目主键
+ ///
+ public string ProjectId
+ {
+ get
+ {
+ return (string)ViewState["ProjectId"];
+ }
+ set
+ {
+ ViewState["ProjectId"] = value;
+ }
+ }
+ #endregion
+
+ #region 加载
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ this.ProjectId = this.CurrUser.LoginProjectId;
+ if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
+ {
+ this.ProjectId = Request.Params["projectId"];
+ }
+
+ ////权限按钮方法
+ this.GetButtonPower();
+
+ BLL.ConstValue.InitConstValueDropDownList(this.drpYear, BLL.ConstValue.Group_0008, true);
+
+ this.btnNew.OnClientClick = Window1.GetShowReference("QualityWorkSummaryReportEdit.aspx") + "return false;";
+ if (this.CurrUser != null && this.CurrUser.PageSize.HasValue)
+ {
+ Grid1.PageSize = this.CurrUser.PageSize.Value;
+ }
+ this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ // 绑定表格
+ this.BindGrid();
+ }
+ }
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"SELECT report.QualityWorkSummaryReportId,"
+ + @"report.ProjectId,"
+ + @"report.UnitId,"
+ + @"report.YearId,"
+ + @"report.ResponsiblePerson,"
+ + @"report.ResponsiblePersonTel,"
+ + @"report.ContactPerson,"
+ + @"report.ContactPersonTel,"
+ + @"report.ReportDate,"
+ + @"report.Performance,"
+ + @"report.AccidentSituation,"
+ + @"report.Awards,"
+ + @"report.WorkDevelopment,"
+ + @"report.PersonnelTraining,"
+ + @"report.CheckSituation,"
+ + @"report.ManagementActivity,"
+ + @"report.WorkExperience,"
+ + @"report.Countermeasures,"
+ + @"report.NextYearWorkPlan,"
+ + @"report.JobSuggestion,"
+ + @"report.CompileMan,"
+ + @"report.CompileDate, "
+ + @"U.UserName as CompileManName, "
+ + @"Unit.UnitName "
+ + @" FROM InformationProject_QualityWorkSummaryReport AS report "
+ + @" LEFT JOIN Sys_User AS U ON U.UserId = report.CompileMan "
+ + @" LEFT JOIN Base_Unit AS Unit ON Unit.UnitId = report.UnitId WHERE 1=1 ";
+
+ List listStr = new List();
+ strSql += " AND report.ProjectId = '" + this.ProjectId + "'";
+ if (this.drpYear.SelectedValue != BLL.Const._Null)
+ {
+ strSql += " AND report.YearId = @Year";
+ listStr.Add(new SqlParameter("@Year", Funs.GetNewInt(this.drpYear.SelectedValue)));
+ }
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+
+ Grid1.RecordCount = tb.Rows.Count;
+ var table = this.GetPagedDataTable(Grid1, tb);
+ Grid1.DataSource = table;
+ Grid1.DataBind();
+ }
+ #region 查询
+ ///
+ /// 查询
+ ///
+ ///
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ this.BindGrid();
+ }
+ #endregion
+
+ #region 分页 排序
+ ///
+ /// 改变索引事件
+ ///
+ ///
+ ///
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ BindGrid();
+ }
+
+ ///
+ /// 分页下拉选择事件
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
+ BindGrid();
+ }
+
+ ///
+ /// 排序
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
+ {
+ this.BindGrid();
+ }
+ #endregion
+ #endregion
+
+ #region 编辑
+ ///
+ /// 双击事件
+ ///
+ ///
+ ///
+ protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ this.EditData();
+ }
+
+ ///
+ /// 右键编辑事件
+ ///
+ ///
+ ///
+ protected void btnMenuEdit_Click(object sender, EventArgs e)
+ {
+ this.EditData();
+ }
+
+ ///
+ /// 编辑数据方法
+ ///
+ private void EditData()
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ string id = Grid1.SelectedRowID;
+ var projectQualityWorkSummaryReport = BLL.ProjectQualityWorkSummaryReportService.GetQualityWorkSummaryReportById(id);
+ if (projectQualityWorkSummaryReport != null)
+ {
+ //if (this.btnMenuEdit.Hidden) ////双击事件 编辑权限有:编辑页面,无:查看页面
+ //{
+ // PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("WorkSummaryReportView.aspx?workSummaryReportId={0}", id, "查看 - ")));
+ //}
+ //else
+ //{
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("QualityWorkSummaryReportEdit.aspx?qualityWorkSummaryReportId={0}", id, "编辑 - ")));
+ //}
+ }
+ }
+ #endregion
+
+ #region 删除
+ ///
+ /// 右键删除事件
+ ///
+ ///
+ ///
+ protected void btnMenuDelete_Click(object sender, EventArgs e)
+ {
+ if (Grid1.SelectedRowIndexArray.Length > 0)
+ {
+ foreach (int rowIndex in Grid1.SelectedRowIndexArray)
+ {
+ string rowID = Grid1.DataKeys[rowIndex][0].ToString();
+ var report = BLL.ProjectQualityWorkSummaryReportService.GetQualityWorkSummaryReportById(rowID);
+ if (report != null)
+ {
+ BLL.LogService.AddSys_Log(this.CurrUser, report.YearId.ToString(), rowID, BLL.Const.ProjectQualitySummaryReportMenuId, BLL.Const.BtnDelete);
+ BLL.ProjectQualityWorkSummaryReportService.DeleteQualityWorkSummaryReportById(rowID);
+ }
+ }
+ this.BindGrid();
+ ShowNotify("删除数据成功!", MessageBoxIcon.Success);
+ }
+ }
+ #endregion
+
+ #region 打印
+ ///
+ /// 打印
+ ///
+ ///
+ ///
+ //protected void btnPrint_Click(object sender, EventArgs e)
+ //{
+ // if (!string.IsNullOrEmpty(Grid1.SelectedRowID))
+ // {
+ // PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("~/ReportPrint/ExReportPrint.aspx?reportId={0}&&replaceParameter={1}&&varValue={2}", Const.ProjectInformation_MillionsMonthlyReportId, Grid1.SelectedRowID, "", "打印 - ")));
+ // }
+ //}
+ #endregion
+
+ #region 获取按钮权限
+ ///
+ /// 获取按钮权限
+ ///
+ ///
+ ///
+ private void GetButtonPower()
+ {
+ if (Request.Params["value"] == "0")
+ {
+ return;
+ }
+ var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ProjectQualitySummaryReportMenuId);
+ if (buttonList.Count() > 0)
+ {
+ if (buttonList.Contains(BLL.Const.BtnAdd))
+ {
+ this.btnNew.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnModify))
+ {
+ this.btnMenuEdit.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnDelete))
+ {
+ this.btnMenuDelete.Hidden = false;
+ }
+ }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReport/QualityWorkSummaryReport.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/ManageReport/QualityWorkSummaryReport.aspx.designer.cs
new file mode 100644
index 00000000..8b79e091
--- /dev/null
+++ b/SGGL/FineUIPro.Web/CQMS/ManageReport/QualityWorkSummaryReport.aspx.designer.cs
@@ -0,0 +1,150 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.CQMS.ManageReport {
+
+
+ public partial class QualityWorkSummaryReport {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// drpYear 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpYear;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnNew 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnNew;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnMenuEdit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuEdit;
+
+ ///
+ /// btnMenuDelete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuDelete;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReport/QualityWorkSummaryReportEdit.aspx b/SGGL/FineUIPro.Web/CQMS/ManageReport/QualityWorkSummaryReportEdit.aspx
new file mode 100644
index 00000000..17475fa4
--- /dev/null
+++ b/SGGL/FineUIPro.Web/CQMS/ManageReport/QualityWorkSummaryReportEdit.aspx
@@ -0,0 +1,287 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QualityWorkSummaryReportEdit.aspx.cs" Inherits="FineUIPro.Web.CQMS.ManageReport.QualityWorkSummaryReportEdit" %>
+
+
+
+
+
+
+ 编辑质量管理工作总结报告
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReport/QualityWorkSummaryReportEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ManageReport/QualityWorkSummaryReportEdit.aspx.cs
new file mode 100644
index 00000000..b94488e8
--- /dev/null
+++ b/SGGL/FineUIPro.Web/CQMS/ManageReport/QualityWorkSummaryReportEdit.aspx.cs
@@ -0,0 +1,203 @@
+using BLL;
+using System;
+using System.Linq;
+
+namespace FineUIPro.Web.CQMS.ManageReport
+{
+ public partial class QualityWorkSummaryReportEdit : PageBase
+ {
+ #region 定义项
+ ///
+ /// 主键
+ ///
+ private string QualityWorkSummaryReportId
+ {
+ get
+ {
+ return (string)ViewState["QualityWorkSummaryReportId"];
+ }
+ set
+ {
+ ViewState["QualityWorkSummaryReportId"] = value;
+ }
+ }
+
+ ///
+ /// 项目主键
+ ///
+ public string ProjectId
+ {
+ get
+ {
+ return (string)ViewState["ProjectId"];
+ }
+ set
+ {
+ ViewState["ProjectId"] = value;
+ }
+ }
+ #endregion
+
+ #region 加载
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ this.ProjectId = this.CurrUser.LoginProjectId;
+ if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
+ {
+ this.ProjectId = Request.Params["projectId"];
+ }
+ BLL.ConstValue.InitConstValueDropDownList(this.ddlYearId, BLL.ConstValue.Group_0008, true);
+
+ this.QualityWorkSummaryReportId = Request.Params["qualityWorkSummaryReportId"];
+ if (!string.IsNullOrEmpty(this.QualityWorkSummaryReportId))
+ {
+ var report = BLL.ProjectQualityWorkSummaryReportService.GetQualityWorkSummaryReportById(this.QualityWorkSummaryReportId);
+ if (report != null)
+ {
+ this.ProjectId = report.ProjectId;
+ #region 赋值
+ if (report.YearId != null)
+ {
+ this.ddlYearId.SelectedValue = report.YearId.ToString();
+ this.txtReportDate.Text = report.ReportDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.ReportDate) : "";
+ this.txtResponsiblePerson.Text = report.ResponsiblePerson;
+ this.txtResponsiblePersonTel.Text = report.ResponsiblePersonTel;
+ this.txtContactPerson.Text = report.ContactPerson;
+ this.txtContactPersonTel.Text = report.ContactPersonTel;
+ this.txtPerformance.Text = report.Performance;
+ this.txtAccidentSituation.Text = report.AccidentSituation;
+ this.txtAwards.Text = report.Awards;
+ this.txtWorkDevelopment.Text = report.WorkDevelopment;
+ this.txtPersonnelTraining.Text = report.PersonnelTraining;
+ this.txtCheckSituation.Text = report.CheckSituation;
+ this.txtManagementActivity.Text = report.ManagementActivity;
+ this.txtWorkExperience.Text = report.WorkExperience;
+ this.txtCountermeasures.Text = report.Countermeasures;
+ this.txtNextYearWorkPlan.Text = report.NextYearWorkPlan;
+ this.txtJobSuggestion.Text = report.JobSuggestion;
+ }
+ #endregion
+ }
+ }
+ else
+ {
+ this.ddlYearId.SelectedValue = DateTime.Now.Year.ToString();
+ this.txtReportDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
+ }
+ }
+ }
+ #endregion
+
+ #region 保存、提交
+ ///
+ /// 保存按钮
+ ///
+ ///
+ ///
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ if (this.ddlYearId.SelectedValue == BLL.Const._Null)
+ {
+ Alert.ShowInTop("请选择年度", MessageBoxIcon.Warning);
+ return;
+ }
+ this.SaveData(BLL.Const.BtnSave);
+ PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
+ }
+
+ /////
+ ///// 提交按钮
+ /////
+ /////
+ /////
+ //protected void btnSubmit_Click(object sender, EventArgs e)
+ //{
+ // if (this.ddlYearId.SelectedValue == BLL.Const._Null)
+ // {
+ // Alert.ShowInTop("请选择年度", MessageBoxIcon.Warning);
+ // return;
+ // }
+ // if (this.ddlQuarter.SelectedValue == BLL.Const._Null)
+ // {
+ // Alert.ShowInTop("请选择季度", MessageBoxIcon.Warning);
+ // return;
+ // }
+ // this.SaveData(BLL.Const.BtnSubmit);
+ // PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
+ //}
+
+ ///
+ /// 提交数据
+ ///
+ ///
+ private void SaveData(string type)
+ {
+ Model.InformationProject_QualityWorkSummaryReport report = new Model.InformationProject_QualityWorkSummaryReport
+ {
+ ProjectId = this.ProjectId,
+ UnitId = string.IsNullOrEmpty(this.CurrUser.UnitId) ? BLL.Const.UnitId_CWCEC : this.CurrUser.UnitId,
+ };
+ if (this.ddlYearId.SelectedValue != BLL.Const._Null)
+ {
+ report.YearId = Funs.GetNewIntOrZero(this.ddlYearId.SelectedValue);
+ }
+ report.ResponsiblePerson = this.txtResponsiblePerson.Text.Trim();
+ report.ResponsiblePersonTel = this.txtResponsiblePersonTel.Text.Trim();
+ report.ContactPerson = this.txtContactPerson.Text.Trim();
+ report.ContactPersonTel = this.txtContactPersonTel.Text.Trim();
+ report.ReportDate = Funs.GetNewDateTime(this.txtReportDate.Text.Trim());
+ report.Performance = this.txtPerformance.Text.Trim();
+ report.AccidentSituation = this.txtAccidentSituation.Text.Trim();
+ report.Awards = this.txtAwards.Text.Trim();
+ report.WorkDevelopment = this.txtWorkDevelopment.Text.Trim();
+ report.PersonnelTraining = this.txtPersonnelTraining.Text.Trim();
+ report.CheckSituation = this.txtCheckSituation.Text.Trim();
+ report.ManagementActivity = this.txtManagementActivity.Text.Trim();
+ report.WorkExperience = this.txtWorkExperience.Text.Trim();
+ report.Countermeasures = this.txtCountermeasures.Text.Trim();
+ report.NextYearWorkPlan = this.txtNextYearWorkPlan.Text.Trim();
+ report.JobSuggestion = this.txtJobSuggestion.Text.Trim();
+
+ report.CompileMan = this.CurrUser.UserId;
+ report.CompileDate = DateTime.Now;
+ //if (type == BLL.Const.BtnSubmit)
+ //{
+ // safetyQuarterlyReport.States = this.ctlAuditFlow.NextStep;
+ //}
+ if (!string.IsNullOrEmpty(this.QualityWorkSummaryReportId))
+ {
+ report.QualityWorkSummaryReportId = this.QualityWorkSummaryReportId;
+ BLL.ProjectQualityWorkSummaryReportService.UpdateQualityWorkSummaryReport(report);
+ BLL.LogService.AddSys_Log(this.CurrUser, report.YearId.ToString(), report.QualityWorkSummaryReportId, BLL.Const.ProjectQualitySummaryReportMenuId, BLL.Const.BtnModify);
+ }
+ else
+ {
+ Model.InformationProject_QualityWorkSummaryReport oldReport = (from x in Funs.DB.InformationProject_QualityWorkSummaryReport
+ where x.ProjectId == report.ProjectId && x.YearId == report.YearId
+ select x).FirstOrDefault();
+ if (oldReport == null)
+ {
+ this.QualityWorkSummaryReportId = SQLHelper.GetNewID(typeof(Model.InformationProject_QualityWorkSummaryReport));
+ report.QualityWorkSummaryReportId = this.QualityWorkSummaryReportId;
+ BLL.ProjectQualityWorkSummaryReportService.AddQualityWorkSummaryReport(report);
+ BLL.LogService.AddSys_Log(this.CurrUser, report.YearId.ToString(), report.QualityWorkSummaryReportId, BLL.Const.ProjectQualitySummaryReportMenuId, BLL.Const.BtnAdd);
+
+ }
+ else
+ {
+ Alert.ShowInTop("该年度记录已存在", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReport/QualityWorkSummaryReportEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/ManageReport/QualityWorkSummaryReportEdit.aspx.designer.cs
new file mode 100644
index 00000000..d711f10f
--- /dev/null
+++ b/SGGL/FineUIPro.Web/CQMS/ManageReport/QualityWorkSummaryReportEdit.aspx.designer.cs
@@ -0,0 +1,465 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.CQMS.ManageReport {
+
+
+ public partial class QualityWorkSummaryReportEdit {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// ddlYearId 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlYearId;
+
+ ///
+ /// txtReportDate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtReportDate;
+
+ ///
+ /// txtResponsiblePerson 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtResponsiblePerson;
+
+ ///
+ /// txtResponsiblePersonTel 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtResponsiblePersonTel;
+
+ ///
+ /// txtContactPerson 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtContactPerson;
+
+ ///
+ /// txtContactPersonTel 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtContactPersonTel;
+
+ ///
+ /// GroupPanel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel1;
+
+ ///
+ /// Form2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form2;
+
+ ///
+ /// GroupPanel6 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel6;
+
+ ///
+ /// Form7 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form7;
+
+ ///
+ /// txtPerformance 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtPerformance;
+
+ ///
+ /// GroupPanel7 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel7;
+
+ ///
+ /// Form8 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form8;
+
+ ///
+ /// txtAccidentSituation 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtAccidentSituation;
+
+ ///
+ /// GroupPanel8 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel8;
+
+ ///
+ /// Form9 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form9;
+
+ ///
+ /// txtAwards 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtAwards;
+
+ ///
+ /// GroupPanel2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel2;
+
+ ///
+ /// Form3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form3;
+
+ ///
+ /// GroupPanel9 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel9;
+
+ ///
+ /// Form10 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form10;
+
+ ///
+ /// txtWorkDevelopment 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtWorkDevelopment;
+
+ ///
+ /// GroupPanel10 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel10;
+
+ ///
+ /// Form11 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form11;
+
+ ///
+ /// txtPersonnelTraining 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtPersonnelTraining;
+
+ ///
+ /// GroupPanel11 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel11;
+
+ ///
+ /// Form12 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form12;
+
+ ///
+ /// txtCheckSituation 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtCheckSituation;
+
+ ///
+ /// GroupPanel12 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel12;
+
+ ///
+ /// Form13 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form13;
+
+ ///
+ /// txtManagementActivity 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtManagementActivity;
+
+ ///
+ /// GroupPanel13 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel13;
+
+ ///
+ /// Form14 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form14;
+
+ ///
+ /// txtWorkExperience 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtWorkExperience;
+
+ ///
+ /// GroupPanel3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel3;
+
+ ///
+ /// Form4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form4;
+
+ ///
+ /// txtCountermeasures 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtCountermeasures;
+
+ ///
+ /// GroupPanel4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel4;
+
+ ///
+ /// Form5 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form5;
+
+ ///
+ /// txtNextYearWorkPlan 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtNextYearWorkPlan;
+
+ ///
+ /// GroupPanel5 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel5;
+
+ ///
+ /// Form6 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form6;
+
+ ///
+ /// txtJobSuggestion 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtJobSuggestion;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// ToolbarFill2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill2;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReport/QuarterlyProjectQuality.aspx b/SGGL/FineUIPro.Web/CQMS/ManageReport/QuarterlyProjectQuality.aspx
new file mode 100644
index 00000000..1116ecdc
--- /dev/null
+++ b/SGGL/FineUIPro.Web/CQMS/ManageReport/QuarterlyProjectQuality.aspx
@@ -0,0 +1,104 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QuarterlyProjectQuality.aspx.cs" Inherits="FineUIPro.Web.CQMS.ManageReport.QuarterlyProjectQuality" %>
+
+
+
+
+
+
+ 季度工程项目质量信息表
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReport/QuarterlyProjectQuality.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ManageReport/QuarterlyProjectQuality.aspx.cs
new file mode 100644
index 00000000..912c55f8
--- /dev/null
+++ b/SGGL/FineUIPro.Web/CQMS/ManageReport/QuarterlyProjectQuality.aspx.cs
@@ -0,0 +1,245 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+
+namespace FineUIPro.Web.CQMS.ManageReport
+{
+ public partial class QuarterlyProjectQuality : PageBase
+ {
+ #region 项目主键
+ ///
+ /// 项目主键
+ ///
+ public string ProjectId
+ {
+ get
+ {
+ return (string)ViewState["ProjectId"];
+ }
+ set
+ {
+ ViewState["ProjectId"] = value;
+ }
+ }
+ #endregion
+
+ #region 加载
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ this.ProjectId = this.CurrUser.LoginProjectId;
+ if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
+ {
+ this.ProjectId = Request.Params["projectId"];
+ }
+ ////权限按钮方法
+ this.GetButtonPower();
+
+ BLL.ConstValue.InitConstValueDropDownList(this.drpYear, BLL.ConstValue.Group_0008, true);
+ BLL.ConstValue.InitConstValueDropDownList(this.drpQuarters, BLL.ConstValue.Group_0011, true);
+ this.btnNew.OnClientClick = Window1.GetShowReference("QuarterlyProjectQualityEdit.aspx") + "return false;";
+ if (this.CurrUser != null && this.CurrUser.PageSize.HasValue)
+ {
+ Grid1.PageSize = this.CurrUser.PageSize.Value;
+ }
+ this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ // 绑定表格
+ this.BindGrid();
+ }
+ }
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"SELECT QuarterlyProjectQuality.QuarterlyProjectQualityId, "
+ + @"QuarterlyProjectQuality.ProjectId,"
+ + @"QuarterlyProjectQuality.UnitId,"
+ + @"QuarterlyProjectQuality.Year,"
+ + @"QuarterlyProjectQuality.Quarter,"
+ + @"(CAST(QuarterlyProjectQuality.Year AS NVARCHAR(4))+'年 第'+CAST(QuarterlyProjectQuality.Quarter AS NVARCHAR(4))+'季度') AS YearAndQuarters,"
+ + @"QuarterlyProjectQuality.CompileMan,"
+ + @"QuarterlyProjectQuality.CompileDate,"
+ + @"Unit.UnitName,"
+ + @"Users.UserName AS CompileManName,"
+ + @"u.UserName AS ResponsiblePersonName "
+ + @" FROM InformationProject_QuarterlyProjectQuality AS QuarterlyProjectQuality "
+ + @" LEFT JOIN Base_Unit AS Unit ON Unit.UnitId = QuarterlyProjectQuality.UnitId"
+ + @" LEFT JOIN Sys_User AS u ON QuarterlyProjectQuality.ResponsiblePerson = u.UserId"
+ + @" LEFT JOIN Sys_User AS Users ON QuarterlyProjectQuality.CompileMan = Users.UserId WHERE 1=1 ";
+ List listStr = new List();
+ strSql += " AND QuarterlyProjectQuality.ProjectId = '" + this.ProjectId + "'";
+ if (this.drpYear.SelectedValue != BLL.Const._Null)
+ {
+ strSql += " AND QuarterlyProjectQuality.YearId = @Year";
+ listStr.Add(new SqlParameter("@Year", Funs.GetNewInt(this.drpYear.SelectedValue)));
+ }
+ if (this.drpQuarters.SelectedValue != BLL.Const._Null)
+ {
+ strSql += " AND QuarterlyProjectQuality.Quarter = @Quarter ";
+ listStr.Add(new SqlParameter("@Quarter", Funs.GetNewInt(this.drpQuarters.SelectedValue)));
+ }
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+
+ Grid1.RecordCount = tb.Rows.Count;
+
+ var table = this.GetPagedDataTable(Grid1, tb);
+ Grid1.DataSource = table;
+ Grid1.DataBind();
+ }
+
+ #region 分页 排序
+ ///
+ /// 改变索引事件
+ ///
+ ///
+ ///
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ BindGrid();
+ }
+
+ ///
+ /// 分页下拉选择事件
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
+ BindGrid();
+ }
+
+ ///
+ /// 排序
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
+ {
+ this.BindGrid();
+ }
+ #endregion
+ #endregion
+
+ #region 查询
+ ///
+ /// 查询
+ ///
+ ///
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ this.BindGrid();
+ }
+ #endregion
+
+ #region 编辑
+ ///
+ /// 双击事件
+ ///
+ ///
+ ///
+ protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ this.EditData();
+ }
+
+ ///
+ /// 右键编辑事件
+ ///
+ ///
+ ///
+ protected void btnMenuEdit_Click(object sender, EventArgs e)
+ {
+ this.EditData();
+ }
+
+ ///
+ /// 编辑数据方法
+ ///
+ private void EditData()
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ string id = Grid1.SelectedRowID;
+ var quality = BLL.ProjectQuarterlyProjectQualityService.GetQuarterlyProjectQualityById(id);
+ if (quality != null)
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("QuarterlyProjectQualityEdit.aspx?QuarterlyProjectQualityId={0}", id, "编辑 - ")));
+ }
+ }
+ #endregion
+
+ #region 删除
+ ///
+ /// 右键删除事件
+ ///
+ ///
+ ///
+ protected void btnMenuDelete_Click(object sender, EventArgs e)
+ {
+ if (Grid1.SelectedRowIndexArray.Length > 0)
+ {
+ foreach (int rowIndex in Grid1.SelectedRowIndexArray)
+ {
+ string rowID = Grid1.DataKeys[rowIndex][0].ToString();
+ var getV = BLL.ProjectQuarterlyProjectQualityService.GetQuarterlyProjectQualityById(rowID);
+ if (getV != null)
+ {
+ BLL.LogService.AddSys_Log(this.CurrUser, getV.Year.ToString() + "-" + getV.Quarter.ToString(), getV.QuarterlyProjectQualityId, BLL.Const.ProjectQuarterlyProjectQualityMenuId, BLL.Const.BtnDelete);
+ BLL.ProjectQuarterlyProjectQualityService.DeleteQuarterlyProjectQualityById(rowID);
+ }
+ }
+ this.BindGrid();
+ ShowNotify("删除数据成功!", MessageBoxIcon.Success);
+ }
+ }
+ #endregion
+
+ #region 获取按钮权限
+ ///
+ /// 获取按钮权限
+ ///
+ ///
+ ///
+ private void GetButtonPower()
+ {
+ if (Request.Params["value"] == "0")
+ {
+ return;
+ }
+ var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ProjectQuarterlyProjectQualityMenuId);
+ if (buttonList.Count() > 0)
+ {
+ if (buttonList.Contains(BLL.Const.BtnAdd))
+ {
+ this.btnNew.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnModify))
+ {
+ this.btnMenuEdit.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnDelete))
+ {
+ this.btnMenuDelete.Hidden = false;
+ }
+ }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReport/QuarterlyProjectQuality.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/ManageReport/QuarterlyProjectQuality.aspx.designer.cs
new file mode 100644
index 00000000..22252fc5
--- /dev/null
+++ b/SGGL/FineUIPro.Web/CQMS/ManageReport/QuarterlyProjectQuality.aspx.designer.cs
@@ -0,0 +1,159 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.CQMS.ManageReport {
+
+
+ public partial class QuarterlyProjectQuality {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// drpYear 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpYear;
+
+ ///
+ /// drpQuarters 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpQuarters;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnNew 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnNew;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnMenuEdit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuEdit;
+
+ ///
+ /// btnMenuDelete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuDelete;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReport/QuarterlyProjectQualityEdit.aspx b/SGGL/FineUIPro.Web/CQMS/ManageReport/QuarterlyProjectQualityEdit.aspx
new file mode 100644
index 00000000..eba815d3
--- /dev/null
+++ b/SGGL/FineUIPro.Web/CQMS/ManageReport/QuarterlyProjectQualityEdit.aspx
@@ -0,0 +1,234 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QuarterlyProjectQualityEdit.aspx.cs" Inherits="FineUIPro.Web.CQMS.ManageReport.QuarterlyProjectQualityEdit" %>
+
+
+
+
+
+
+ 季度工程项目质量信息表
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReport/QuarterlyProjectQualityEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ManageReport/QuarterlyProjectQualityEdit.aspx.cs
new file mode 100644
index 00000000..d1d550fb
--- /dev/null
+++ b/SGGL/FineUIPro.Web/CQMS/ManageReport/QuarterlyProjectQualityEdit.aspx.cs
@@ -0,0 +1,315 @@
+using BLL;
+using Newtonsoft.Json.Linq;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace FineUIPro.Web.CQMS.ManageReport
+{
+ public partial class QuarterlyProjectQualityEdit : PageBase
+ {
+ #region 定义变量
+ ///
+ /// 主键
+ ///
+ public string QuarterlyProjectQualityId
+ {
+ get
+ {
+ return (string)ViewState["QuarterlyProjectQualityId"];
+ }
+ set
+ {
+ ViewState["QuarterlyProjectQualityId"] = value;
+ }
+ }
+ #region 项目主键
+ ///
+ /// 项目主键
+ ///
+ public string ProjectId
+ {
+ get
+ {
+ return (string)ViewState["ProjectId"];
+ }
+ set
+ {
+ ViewState["ProjectId"] = value;
+ }
+ }
+ #endregion
+ #endregion
+
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ this.ProjectId = this.CurrUser.LoginProjectId;
+ if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
+ {
+ this.ProjectId = Request.Params["projectId"];
+ }
+ BLL.ConstValue.InitConstValueDropDownList(this.ddlYearId, BLL.ConstValue.Group_0008, true);
+ BLL.ConstValue.InitConstValueDropDownList(this.ddlQuarter, BLL.ConstValue.Group_0011, true);
+ BLL.UserService.InitUserProjectIdUnitIdDropDownList(this.drpCompileMan, this.ProjectId, this.CurrUser.UnitId, true);
+ BLL.UserService.InitUserProjectIdUnitIdDropDownList(this.drpResponsiblePerson, this.ProjectId, this.CurrUser.UnitId, true);
+
+ this.QuarterlyProjectQualityId = Request.Params["QuarterlyProjectQualityId"];
+ if (!string.IsNullOrEmpty(this.QuarterlyProjectQualityId))
+ {
+ var quarterlyProjectQuality = BLL.ProjectQuarterlyProjectQualityService.GetQuarterlyProjectQualityById(this.QuarterlyProjectQualityId);
+ if (quarterlyProjectQuality != null)
+ {
+ this.ProjectId = quarterlyProjectQuality.ProjectId;
+ if (quarterlyProjectQuality.Year.HasValue)
+ {
+ this.ddlYearId.SelectedValue = quarterlyProjectQuality.Year.ToString();
+ }
+ if (quarterlyProjectQuality.Quarter.HasValue)
+ {
+ this.ddlQuarter.SelectedValue = quarterlyProjectQuality.Quarter.ToString();
+ }
+ if (quarterlyProjectQuality.CompileDate != null)
+ {
+ this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", quarterlyProjectQuality.CompileDate);
+ }
+ if (!string.IsNullOrEmpty(quarterlyProjectQuality.ResponsiblePerson))
+ {
+ this.drpResponsiblePerson.SelectedValue = quarterlyProjectQuality.ResponsiblePerson;
+ }
+ if (!string.IsNullOrEmpty(quarterlyProjectQuality.CompileMan))
+ {
+ this.drpCompileMan.SelectedValue = quarterlyProjectQuality.CompileMan;
+ }
+ this.txtTel.Text = quarterlyProjectQuality.Tel;
+ this.txtQualityManagePersonNum.Text = quarterlyProjectQuality.QualityManagePersonNum.HasValue ? quarterlyProjectQuality.QualityManagePersonNum.ToString() : "";
+ this.txtAdvancedTitlePersonNum.Text = quarterlyProjectQuality.AdvancedTitlePersonNum.HasValue ? quarterlyProjectQuality.AdvancedTitlePersonNum.ToString() : "";
+ this.txtIntermediateTitlePersonNum.Text = quarterlyProjectQuality.IntermediateTitlePersonNum.HasValue ? quarterlyProjectQuality.IntermediateTitlePersonNum.ToString() : "";
+ this.txtBeImplementedProjectNum.Text = quarterlyProjectQuality.BeImplementedProjectNum.HasValue ? quarterlyProjectQuality.BeImplementedProjectNum.ToString() : "";
+ this.txtStartImplementedProjectNum.Text = quarterlyProjectQuality.StartImplementedProjectNum.HasValue ? quarterlyProjectQuality.StartImplementedProjectNum.ToString() : "";
+ this.txtAccumulativeStartImplemented.Text = quarterlyProjectQuality.AccumulativeStartImplemented.HasValue ? quarterlyProjectQuality.AccumulativeStartImplemented.ToString() : "";
+ this.txtCompleteProjectNum.Text = quarterlyProjectQuality.CompleteProjectNum.HasValue ? quarterlyProjectQuality.CompleteProjectNum.ToString() : "";
+ this.txtYearCompleteProjectNum.Text = quarterlyProjectQuality.YearCompleteProjectNum.HasValue ? quarterlyProjectQuality.YearCompleteProjectNum.ToString() : "";
+ this.txtQuarterTotal.Text = quarterlyProjectQuality.QuarterTotal.HasValue ? quarterlyProjectQuality.QuarterTotal.ToString() : "";
+ this.txtQuarterFirstPassNum.Text = quarterlyProjectQuality.QuarterFirstPassNum.HasValue ? quarterlyProjectQuality.QuarterFirstPassNum.ToString() : "";
+ this.txtQuarterFirstPassRate.Text = quarterlyProjectQuality.QuarterFirstPassRate.HasValue ? quarterlyProjectQuality.QuarterFirstPassRate.ToString() : "";
+ this.txtYearTotal.Text = quarterlyProjectQuality.YearTotal.HasValue ? quarterlyProjectQuality.YearTotal.ToString() : "";
+ this.txtYearFirstPassNum.Text = quarterlyProjectQuality.YearFirstPassNum.HasValue ? quarterlyProjectQuality.YearFirstPassNum.ToString() : "";
+ this.txtYearFirstPassRate.Text = quarterlyProjectQuality.YearFirstPassRate.HasValue ? quarterlyProjectQuality.YearFirstPassRate.ToString() : "";
+ this.txtQuaterCheckSuperviseNum.Text = quarterlyProjectQuality.QuaterCheckSuperviseNum.HasValue ? quarterlyProjectQuality.QuaterCheckSuperviseNum.ToString() : "";
+ this.txtQuaterCorrectiveNoticeNum.Text = quarterlyProjectQuality.QuaterCorrectiveNoticeNum.HasValue ? quarterlyProjectQuality.QuaterCorrectiveNoticeNum.ToString() : "";
+ this.txtQuaterQualityProblemNum.Text = quarterlyProjectQuality.QuaterQualityProblemNum.HasValue ? quarterlyProjectQuality.QuaterQualityProblemNum.ToString() : "";
+ this.txtQuaterClosedQualityProblemNum.Text = quarterlyProjectQuality.QuaterClosedQualityProblemNum.HasValue ? quarterlyProjectQuality.QuaterClosedQualityProblemNum.ToString() : "";
+ this.txtYearCheckSuperviseNum.Text = quarterlyProjectQuality.YearCheckSuperviseNum.HasValue ? quarterlyProjectQuality.YearCheckSuperviseNum.ToString() : "";
+ this.txtYearCorrectiveNoticeNum.Text = quarterlyProjectQuality.YearCorrectiveNoticeNum.HasValue ? quarterlyProjectQuality.YearCorrectiveNoticeNum.ToString() : "";
+ this.txtYearQualityProblemNum.Text = quarterlyProjectQuality.YearQualityProblemNum.HasValue ? quarterlyProjectQuality.YearQualityProblemNum.ToString() : "";
+ this.txtYearClosedQualityProblemNum.Text = quarterlyProjectQuality.YearClosedQualityProblemNum.HasValue ? quarterlyProjectQuality.YearClosedQualityProblemNum.ToString() : "";
+ this.txtQuaterQualityAccidentNum.Text = quarterlyProjectQuality.QuaterQualityAccidentNum.HasValue ? quarterlyProjectQuality.QuaterQualityAccidentNum.ToString() : "";
+ this.txtQuaterDirectEconomicLoss.Text = quarterlyProjectQuality.QuaterDirectEconomicLoss.HasValue ? quarterlyProjectQuality.QuaterDirectEconomicLoss.ToString() : "";
+ this.txtYearQualityAccidentNum.Text = quarterlyProjectQuality.YearQualityAccidentNum.HasValue ? quarterlyProjectQuality.YearQualityAccidentNum.ToString() : "";
+ this.txtYearDirectEconomicLoss.Text = quarterlyProjectQuality.YearDirectEconomicLoss.HasValue ? quarterlyProjectQuality.YearDirectEconomicLoss.ToString() : "";
+ }
+ }
+ else
+ {
+ DateTime showDate = DateTime.Now.AddMonths(-3);
+ this.ddlQuarter.SelectedValue = Funs.GetNowQuarterlyByTime(showDate).ToString();
+ this.ddlYearId.SelectedValue = showDate.Year.ToString();
+ this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
+ DateTime startTime = Funs.GetQuarterlyMonths(this.ddlYearId.SelectedValue, this.ddlQuarter.SelectedValue);
+ DateTime endTime = startTime.AddMonths(3);
+ }
+ }
+ }
+ #endregion
+
+ #region 年季度变化事件
+ ///
+ /// 年季度变化事件
+ ///
+ ///
+ ///
+ protected void drpYear_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ if (this.ddlYearId.SelectedValue != BLL.Const._Null && this.ddlQuarter.SelectedValue != BLL.Const._Null)
+ {
+ DateTime startTime = Funs.GetQuarterlyMonths(this.ddlYearId.SelectedValue, this.ddlQuarter.SelectedValue);
+ DateTime endTime = startTime.AddMonths(3);
+ }
+ }
+ #endregion
+
+ #region 保存
+ ///
+ /// 保存按钮
+ ///
+ ///
+ ///
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ if (this.ddlYearId.SelectedValue == BLL.Const._Null)
+ {
+ Alert.ShowInTop("请选择年度", MessageBoxIcon.Warning);
+ return;
+ }
+ if (this.ddlQuarter.SelectedValue == BLL.Const._Null)
+ {
+ Alert.ShowInTop("请选择季度", MessageBoxIcon.Warning);
+ return;
+ }
+ this.SaveData(BLL.Const.BtnSave);
+ PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
+ }
+
+ ///
+ /// 保存数据
+ ///
+ ///
+ private void SaveData(string type)
+ {
+ Model.InformationProject_QuarterlyProjectQuality quarterlyProjectQuality = new Model.InformationProject_QuarterlyProjectQuality
+ {
+ ProjectId = this.ProjectId,
+ UnitId = string.IsNullOrEmpty(this.CurrUser.UnitId) ? BLL.Const.UnitId_CWCEC : this.CurrUser.UnitId,
+ QualityManagePersonNum = Funs.GetNewInt(this.txtQualityManagePersonNum.Text.Trim()),
+ AdvancedTitlePersonNum = Funs.GetNewInt(this.txtAdvancedTitlePersonNum.Text.Trim()),
+ IntermediateTitlePersonNum = Funs.GetNewInt(this.txtIntermediateTitlePersonNum.Text.Trim()),
+ BeImplementedProjectNum = Funs.GetNewInt(this.txtBeImplementedProjectNum.Text.Trim()),
+ StartImplementedProjectNum = Funs.GetNewInt(this.txtStartImplementedProjectNum.Text.Trim()),
+ AccumulativeStartImplemented = Funs.GetNewInt(this.txtAccumulativeStartImplemented.Text.Trim()),
+ CompleteProjectNum = Funs.GetNewInt(this.txtCompleteProjectNum.Text.Trim()),
+ YearCompleteProjectNum = Funs.GetNewInt(this.txtYearCompleteProjectNum.Text.Trim()),
+ QuarterTotal = Funs.GetNewInt(this.txtQuarterTotal.Text.Trim()),
+ QuarterFirstPassNum = Funs.GetNewInt(this.txtQuarterFirstPassNum.Text.Trim()),
+ QuarterFirstPassRate = Funs.GetNewDecimal(this.txtQuarterFirstPassRate.Text.Trim()),
+ YearTotal = Funs.GetNewInt(this.txtYearTotal.Text.Trim()),
+ YearFirstPassNum = Funs.GetNewInt(this.txtYearFirstPassNum.Text.Trim()),
+ YearFirstPassRate = Funs.GetNewDecimal(this.txtYearFirstPassRate.Text.Trim()),
+ QuaterCheckSuperviseNum = Funs.GetNewInt(this.txtQuaterCheckSuperviseNum.Text.Trim()),
+ QuaterCorrectiveNoticeNum = Funs.GetNewInt(this.txtQuaterCorrectiveNoticeNum.Text.Trim()),
+ QuaterQualityProblemNum = Funs.GetNewInt(this.txtQuaterQualityProblemNum.Text.Trim()),
+ QuaterClosedQualityProblemNum = Funs.GetNewInt(this.txtQuaterClosedQualityProblemNum.Text.Trim()),
+ YearCheckSuperviseNum = Funs.GetNewInt(this.txtYearCheckSuperviseNum.Text.Trim()),
+ YearCorrectiveNoticeNum = Funs.GetNewInt(this.txtYearCorrectiveNoticeNum.Text.Trim()),
+ YearQualityProblemNum = Funs.GetNewInt(this.txtYearQualityProblemNum.Text.Trim()),
+ YearClosedQualityProblemNum = Funs.GetNewInt(this.txtYearClosedQualityProblemNum.Text.Trim()),
+ QuaterQualityAccidentNum = Funs.GetNewInt(this.txtQuaterQualityAccidentNum.Text.Trim()),
+ QuaterDirectEconomicLoss = Funs.GetNewDecimal(this.txtQuaterDirectEconomicLoss.Text.Trim()),
+ YearQualityAccidentNum = Funs.GetNewInt(this.txtYearQualityAccidentNum.Text.Trim()),
+ YearDirectEconomicLoss = Funs.GetNewInt(this.txtYearDirectEconomicLoss.Text.Trim()),
+ Tel = this.txtTel.Text.Trim()
+ };
+
+ if (this.ddlYearId.SelectedValue != BLL.Const._Null)
+ {
+ quarterlyProjectQuality.Year = Funs.GetNewIntOrZero(this.ddlYearId.SelectedValue);
+ }
+ if (this.ddlQuarter.SelectedValue != BLL.Const._Null)
+ {
+ quarterlyProjectQuality.Quarter = Funs.GetNewIntOrZero(this.ddlQuarter.SelectedValue);
+ }
+ if (this.drpResponsiblePerson.SelectedValue != BLL.Const._Null)
+ {
+ quarterlyProjectQuality.ResponsiblePerson = this.drpResponsiblePerson.SelectedValue;
+ }
+ if (this.drpCompileMan.SelectedValue != BLL.Const._Null)
+ {
+ quarterlyProjectQuality.CompileMan = this.drpCompileMan.SelectedValue;
+ }
+ quarterlyProjectQuality.CompileDate = Funs.GetNewDateTime(this.txtCompileDate.Text.Trim());
+
+ if (!string.IsNullOrEmpty(this.QuarterlyProjectQualityId))
+ {
+ quarterlyProjectQuality.QuarterlyProjectQualityId = this.QuarterlyProjectQualityId;
+ BLL.ProjectQuarterlyProjectQualityService.UpdateQuarterlyProjectQuality(quarterlyProjectQuality);
+ BLL.LogService.AddSys_Log(this.CurrUser, quarterlyProjectQuality.Year.ToString() + "-" + quarterlyProjectQuality.Quarter.ToString(), quarterlyProjectQuality.QuarterlyProjectQualityId, BLL.Const.ProjectQuarterlyProjectQualityMenuId, BLL.Const.BtnModify);
+ }
+ else
+ {
+ Model.InformationProject_QuarterlyProjectQuality oldDrillConductedQuarterlyReport = (from x in Funs.DB.InformationProject_QuarterlyProjectQuality
+ where x.ProjectId == quarterlyProjectQuality.ProjectId && x.Year == quarterlyProjectQuality.Year && x.Quarter == quarterlyProjectQuality.Quarter
+ select x).FirstOrDefault();
+ if (oldDrillConductedQuarterlyReport == null)
+ {
+ this.QuarterlyProjectQualityId = SQLHelper.GetNewID(typeof(Model.InformationProject_QuarterlyProjectQuality));
+ quarterlyProjectQuality.QuarterlyProjectQualityId = this.QuarterlyProjectQualityId;
+ BLL.ProjectQuarterlyProjectQualityService.AddQuarterlyProjectQuality(quarterlyProjectQuality);
+ BLL.LogService.AddSys_Log(this.CurrUser, quarterlyProjectQuality.Year.ToString() + "-" + quarterlyProjectQuality.Quarter.ToString(), quarterlyProjectQuality.QuarterlyProjectQualityId, BLL.Const.ProjectQuarterlyProjectQualityMenuId, BLL.Const.BtnAdd);
+
+ }
+ else
+ {
+ Alert.ShowInTop("该季度记录已存在", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ }
+ #endregion
+
+ ///
+ /// 本季度完成一次合格率
+ ///
+ ///
+ ///
+ protected void txtQuarterTotal_TextChanged(object sender, EventArgs e)
+ {
+ if (!string.IsNullOrEmpty(this.txtQuarterTotal.Text.Trim()) && !string.IsNullOrEmpty(txtQuarterFirstPassNum.Text.Trim()))
+ {
+ txtQuarterFirstPassRate.Text = (Funs.GetNewDecimalOrZero(txtQuarterFirstPassNum.Text.Trim()) / Funs.GetNewDecimalOrZero(this.txtQuarterTotal.Text.Trim())*100).ToString();
+ }
+ else
+ {
+ this.txtQuarterFirstPassRate.Text = string.Empty;
+ }
+ }
+
+ ///
+ /// 本年度完成一次合格率
+ ///
+ ///
+ ///
+ protected void txtYearTotal_TextChanged(object sender, EventArgs e)
+ {
+ if (!string.IsNullOrEmpty(this.txtYearTotal.Text.Trim()) && !string.IsNullOrEmpty(this.txtYearFirstPassNum.Text.Trim()))
+ {
+ this.txtYearFirstPassRate.Text = (Funs.GetNewDecimalOrZero(this.txtYearFirstPassNum.Text.Trim()) / Funs.GetNewDecimalOrZero(this.txtYearTotal.Text.Trim())*100).ToString();
+ }
+ }
+
+ ///
+ /// 获取本年累计开始实施项目数量(个)
+ ///
+ ///
+ ///
+ //protected void txtStartImplementedProjectNum_TextChanged(object sender, EventArgs e)
+ //{
+ // var q = (from x in Funs.DB.InformationProject_QuarterlyProjectQuality where x.Year == Convert.ToInt32(this.ddlYearId.SelectedValue) select x.StartImplementedProjectNum).Sum();
+ // if (q > 0)
+ // {
+ // this.txtAccumulativeStartImplemented.Text = (q + Funs.GetNewIntOrZero(txtStartImplementedProjectNum.Text.Trim())).ToString();
+ // }
+ //}
+
+ ///
+ /// 获取本年累计完成(竣工)项目数量(个)
+ ///
+ ///
+ ///
+ //protected void txtCompleteProjectNum_TextChanged(object sender, EventArgs e)
+ //{
+ // var q = (from x in Funs.DB.InformationProject_QuarterlyProjectQuality where x.Year == Convert.ToInt32(this.ddlYearId.SelectedValue) select x.CompleteProjectNum).Sum();
+ // if (q > 0)
+ // {
+ // this.txtYearCompleteProjectNum.Text = (q + Funs.GetNewIntOrZero(this.txtCompleteProjectNum.Text.Trim())).ToString();
+ // }
+ //}
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReport/QuarterlyProjectQualityEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/ManageReport/QuarterlyProjectQualityEdit.aspx.designer.cs
new file mode 100644
index 00000000..73ae3576
--- /dev/null
+++ b/SGGL/FineUIPro.Web/CQMS/ManageReport/QuarterlyProjectQualityEdit.aspx.designer.cs
@@ -0,0 +1,546 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.CQMS.ManageReport {
+
+
+ public partial class QuarterlyProjectQualityEdit {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// ddlYearId 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlYearId;
+
+ ///
+ /// ddlQuarter 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlQuarter;
+
+ ///
+ /// txtCompileDate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtCompileDate;
+
+ ///
+ /// drpResponsiblePerson 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpResponsiblePerson;
+
+ ///
+ /// drpCompileMan 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpCompileMan;
+
+ ///
+ /// txtTel 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtTel;
+
+ ///
+ /// GroupPanel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel1;
+
+ ///
+ /// Form2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form2;
+
+ ///
+ /// txtQualityManagePersonNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtQualityManagePersonNum;
+
+ ///
+ /// txtAdvancedTitlePersonNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtAdvancedTitlePersonNum;
+
+ ///
+ /// txtIntermediateTitlePersonNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtIntermediateTitlePersonNum;
+
+ ///
+ /// GroupPanel2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel2;
+
+ ///
+ /// Form3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form3;
+
+ ///
+ /// txtBeImplementedProjectNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtBeImplementedProjectNum;
+
+ ///
+ /// txtStartImplementedProjectNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtStartImplementedProjectNum;
+
+ ///
+ /// txtAccumulativeStartImplemented 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtAccumulativeStartImplemented;
+
+ ///
+ /// txtCompleteProjectNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtCompleteProjectNum;
+
+ ///
+ /// txtYearCompleteProjectNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtYearCompleteProjectNum;
+
+ ///
+ /// Label1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label Label1;
+
+ ///
+ /// GroupPanel3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel3;
+
+ ///
+ /// GroupPanel4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel4;
+
+ ///
+ /// Form4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form4;
+
+ ///
+ /// txtQuarterTotal 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtQuarterTotal;
+
+ ///
+ /// txtQuarterFirstPassNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtQuarterFirstPassNum;
+
+ ///
+ /// txtQuarterFirstPassRate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtQuarterFirstPassRate;
+
+ ///
+ /// GroupPanel5 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel5;
+
+ ///
+ /// Form5 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form5;
+
+ ///
+ /// txtYearTotal 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtYearTotal;
+
+ ///
+ /// txtYearFirstPassNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtYearFirstPassNum;
+
+ ///
+ /// txtYearFirstPassRate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtYearFirstPassRate;
+
+ ///
+ /// GroupPanel6 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel6;
+
+ ///
+ /// GroupPanel7 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel7;
+
+ ///
+ /// Form6 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form6;
+
+ ///
+ /// txtQuaterCheckSuperviseNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtQuaterCheckSuperviseNum;
+
+ ///
+ /// txtQuaterCorrectiveNoticeNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtQuaterCorrectiveNoticeNum;
+
+ ///
+ /// txtQuaterQualityProblemNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtQuaterQualityProblemNum;
+
+ ///
+ /// txtQuaterClosedQualityProblemNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtQuaterClosedQualityProblemNum;
+
+ ///
+ /// GroupPanel8 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel8;
+
+ ///
+ /// Form7 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form7;
+
+ ///
+ /// txtYearCheckSuperviseNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtYearCheckSuperviseNum;
+
+ ///
+ /// txtYearCorrectiveNoticeNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtYearCorrectiveNoticeNum;
+
+ ///
+ /// txtYearQualityProblemNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtYearQualityProblemNum;
+
+ ///
+ /// txtYearClosedQualityProblemNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtYearClosedQualityProblemNum;
+
+ ///
+ /// GroupPanel9 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel9;
+
+ ///
+ /// GroupPanel10 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel10;
+
+ ///
+ /// Form8 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form8;
+
+ ///
+ /// txtQuaterQualityAccidentNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtQuaterQualityAccidentNum;
+
+ ///
+ /// txtQuaterDirectEconomicLoss 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtQuaterDirectEconomicLoss;
+
+ ///
+ /// GroupPanel11 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel11;
+
+ ///
+ /// Form9 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form9;
+
+ ///
+ /// txtYearQualityAccidentNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtYearQualityAccidentNum;
+
+ ///
+ /// txtYearDirectEconomicLoss 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtYearDirectEconomicLoss;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// ToolbarFill2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill2;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt
index e69de29b..9fbdc4d2 100644
--- a/SGGL/FineUIPro.Web/ErrLog.txt
+++ b/SGGL/FineUIPro.Web/ErrLog.txt
@@ -0,0 +1,21 @@
+
+错误信息开始=====>
+错误类型:HttpException
+错误信息:文件“/ZHGL/Information/WorkSummaryReport.aspx”不存在。
+错误堆栈:
+ 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
+ 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
+ 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
+ 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
+ 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
+ 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
+ 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)
+ 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+ 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
+ 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
+出错时间:03/30/2023 09:48:15
+出错文件:http://localhost:3345/ZHGL/Information/WorkSummaryReport.aspx
+IP地址:::1
+
+出错时间:03/30/2023 09:48:15
+
diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
index 2191594d..2e875392 100644
--- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -430,6 +430,10 @@
+
+
+
+
@@ -928,6 +932,8 @@
+
+
@@ -952,6 +958,8 @@
+
+
@@ -1531,6 +1539,8 @@
+
+
@@ -1655,15 +1665,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1691,12 +1717,22 @@
+
+
+
+
+
+
+
+
+
+
@@ -7311,6 +7347,34 @@
NCRStatisc.aspx
+
+ QualityWorkSummaryReport.aspx
+ ASPXCodeBehind
+
+
+ QualityWorkSummaryReport.aspx
+
+
+ QualityWorkSummaryReportEdit.aspx
+ ASPXCodeBehind
+
+
+ QualityWorkSummaryReportEdit.aspx
+
+
+ QuarterlyProjectQuality.aspx
+ ASPXCodeBehind
+
+
+ QuarterlyProjectQuality.aspx
+
+
+ QuarterlyProjectQualityEdit.aspx
+ ASPXCodeBehind
+
+
+ QuarterlyProjectQualityEdit.aspx
+
WeekReport.aspx
ASPXCodeBehind
@@ -10800,6 +10864,20 @@
DrillPlanHalfYearReportView.aspx
+
+ EPSummaryReport.aspx
+ ASPXCodeBehind
+
+
+ EPSummaryReport.aspx
+
+
+ EPSummaryReportEdit.aspx
+ ASPXCodeBehind
+
+
+ EPSummaryReportEdit.aspx
+
FileCabinetA.aspx
ASPXCodeBehind
@@ -10968,6 +11046,20 @@
SafetyQuarterlyReportView.aspx
+
+ WorkSummaryReport.aspx
+ ASPXCodeBehind
+
+
+ WorkSummaryReport.aspx
+
+
+ WorkSummaryReportEdit.aspx
+ ASPXCodeBehind
+
+
+ WorkSummaryReportEdit.aspx
+
HSSEStandardList.aspx
ASPXCodeBehind
@@ -14083,6 +14175,20 @@
+
+ SafetyBriefing.aspx
+ ASPXCodeBehind
+
+
+ SafetyBriefing.aspx
+
+
+ SafetyBriefingEdit.aspx
+ ASPXCodeBehind
+
+
+ SafetyBriefingEdit.aspx
+
CustomQuery.aspx
ASPXCodeBehind
@@ -15161,6 +15267,34 @@
SYHSEData_SYHSEEdit.aspx
+
+ ArchitectureReport.aspx
+ ASPXCodeBehind
+
+
+ ArchitectureReport.aspx
+
+
+ ArchitectureReportSave.aspx
+ ASPXCodeBehind
+
+
+ ArchitectureReportSave.aspx
+
+
+ ChemicalReport.aspx
+ ASPXCodeBehind
+
+
+ ChemicalReport.aspx
+
+
+ ChemicalReportSave.aspx
+ ASPXCodeBehind
+
+
+ ChemicalReportSave.aspx
+
EIAReport.aspx
ASPXCodeBehind
@@ -15182,6 +15316,20 @@
EIAReportView.aspx
+
+ EnergyReport.aspx
+ ASPXCodeBehind
+
+
+ EnergyReport.aspx
+
+
+ EnergyReportSave.aspx
+ ASPXCodeBehind
+
+
+ EnergyReportSave.aspx
+
EnvironmentalEmergencyPlan.aspx
ASPXCodeBehind
@@ -15224,6 +15372,76 @@
EnvironmentalMonitoringView.aspx
+
+ OperationReport.aspx
+ ASPXCodeBehind
+
+
+ OperationReport.aspx
+
+
+ OperationReportEdit.aspx
+ ASPXCodeBehind
+
+
+ OperationReportEdit.aspx
+
+
+ ProjectArchitectureReport.aspx
+ ASPXCodeBehind
+
+
+ ProjectArchitectureReport.aspx
+
+
+ ProjectArchitectureReportSave.aspx
+ ASPXCodeBehind
+
+
+ ProjectArchitectureReportSave.aspx
+
+
+ ProjectChemicalReport.aspx
+ ASPXCodeBehind
+
+
+ ProjectChemicalReport.aspx
+
+
+ ProjectChemicalReportSave.aspx
+ ASPXCodeBehind
+
+
+ ProjectChemicalReportSave.aspx
+
+
+ ProjectEnergyReport.aspx
+ ASPXCodeBehind
+
+
+ ProjectEnergyReport.aspx
+
+
+ ProjectEnergyReportSave.aspx
+ ASPXCodeBehind
+
+
+ ProjectEnergyReportSave.aspx
+
+
+ ProjectOperationReport.aspx
+ ASPXCodeBehind
+
+
+ ProjectOperationReport.aspx
+
+
+ ProjectOperationReportEdit.aspx
+ ASPXCodeBehind
+
+
+ ProjectOperationReportEdit.aspx
+
UnexpectedEnvironmental.aspx
ASPXCodeBehind
@@ -15413,6 +15631,20 @@
DrillPlanHalfYearReportAdd.aspx
+
+ EPSummaryReport.aspx
+ ASPXCodeBehind
+
+
+ EPSummaryReport.aspx
+
+
+ EPSummaryReportEdit.aspx
+ ASPXCodeBehind
+
+
+ EPSummaryReportEdit.aspx
+
MillionsMonthlyReport.aspx
ASPXCodeBehind
@@ -15427,6 +15659,34 @@
MillionsMonthlyReportSave.aspx
+
+ QualityWorkSummaryReport.aspx
+ ASPXCodeBehind
+
+
+ QualityWorkSummaryReport.aspx
+
+
+ QualityWorkSummaryReportEdit.aspx
+ ASPXCodeBehind
+
+
+ QualityWorkSummaryReportEdit.aspx
+
+
+ QuarterlyProjectQuality.aspx
+ ASPXCodeBehind
+
+
+ QuarterlyProjectQuality.aspx
+
+
+ QuarterlyProjectQualityEdit.aspx
+ ASPXCodeBehind
+
+
+ QuarterlyProjectQualityEdit.aspx
+
ReportAuditSee.aspx
ASPXCodeBehind
@@ -15441,6 +15701,20 @@
ReportSubmit.aspx
+
+ SafetyBriefing.aspx
+ ASPXCodeBehind
+
+
+ SafetyBriefing.aspx
+
+
+ SafetyBriefingEdit.aspx
+ ASPXCodeBehind
+
+
+ SafetyBriefingEdit.aspx
+
SafetyQuarterlyReport.aspx
ASPXCodeBehind
@@ -15455,6 +15729,20 @@
SafetyQuarterlyReportEdit.aspx
+
+ WorkSummaryReport.aspx
+ ASPXCodeBehind
+
+
+ WorkSummaryReport.aspx
+
+
+ WorkSummaryReportEdit.aspx
+ ASPXCodeBehind
+
+
+ WorkSummaryReportEdit.aspx
+
ReportRemind.aspx
ASPXCodeBehind
diff --git a/SGGL/FineUIPro.Web/HSSE/InformationProject/EPSummaryReport.aspx b/SGGL/FineUIPro.Web/HSSE/InformationProject/EPSummaryReport.aspx
new file mode 100644
index 00000000..b8e12ec3
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HSSE/InformationProject/EPSummaryReport.aspx
@@ -0,0 +1,107 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EPSummaryReport.aspx.cs" Inherits="FineUIPro.Web.HSSE.InformationProject.EPSummaryReport" %>
+
+
+
+
+
+
+ 生态环保工作总结报告
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/HSSE/InformationProject/EPSummaryReport.aspx.cs b/SGGL/FineUIPro.Web/HSSE/InformationProject/EPSummaryReport.aspx.cs
new file mode 100644
index 00000000..f163bd5a
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HSSE/InformationProject/EPSummaryReport.aspx.cs
@@ -0,0 +1,247 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+
+
+namespace FineUIPro.Web.HSSE.InformationProject
+{
+ public partial class EPSummaryReport : PageBase
+ {
+ #region 项目主键
+ ///
+ /// 项目主键
+ ///
+ public string ProjectId
+ {
+ get
+ {
+ return (string)ViewState["ProjectId"];
+ }
+ set
+ {
+ ViewState["ProjectId"] = value;
+ }
+ }
+ #endregion
+
+ #region 加载
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ this.ProjectId = this.CurrUser.LoginProjectId;
+ if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
+ {
+ this.ProjectId = Request.Params["projectId"];
+ }
+
+ ////权限按钮方法
+ this.GetButtonPower();
+
+ BLL.ConstValue.InitConstValueDropDownList(this.drpYear, BLL.ConstValue.Group_0008, true);
+
+ this.btnNew.OnClientClick = Window1.GetShowReference("EPSummaryReportEdit.aspx") + "return false;";
+ if (this.CurrUser != null && this.CurrUser.PageSize.HasValue)
+ {
+ Grid1.PageSize = this.CurrUser.PageSize.Value;
+ }
+ this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ // 绑定表格
+ this.BindGrid();
+ }
+ }
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"SELECT report.EPSummaryReportId,"
+ + @"report.ProjectId,"
+ + @"report.UnitId,"
+ + @"report.YearId,"
+ + @"report.ResponsiblePerson,"
+ + @"report.ResponsiblePersonTel,"
+ + @"report.ContactPerson,"
+ + @"report.ContactPersonTel,"
+ + @"report.ReportDate,"
+ + @"report.Description1,"
+ + @"report.Description2,"
+ + @"report.Description3,"
+ + @"report.Description4,"
+ + @"report.Description5,"
+ + @"report.Description6,"
+ + @"report.Description7,"
+ + @"report.Description8,"
+ + @"report.Description9,"
+ + @"Unit.UnitName "
+ + @" FROM InformationProject_EPSummaryReport AS report "
+ + @" LEFT JOIN Base_Unit AS Unit ON Unit.UnitId = report.UnitId WHERE 1=1 ";
+
+ List listStr = new List();
+ strSql += " AND report.ProjectId = '" + this.ProjectId + "'";
+ if (this.drpYear.SelectedValue != BLL.Const._Null)
+ {
+ strSql += " AND report.YearId = @Year";
+ listStr.Add(new SqlParameter("@Year", Funs.GetNewInt(this.drpYear.SelectedValue)));
+ }
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+
+ Grid1.RecordCount = tb.Rows.Count;
+ var table = this.GetPagedDataTable(Grid1, tb);
+ Grid1.DataSource = table;
+ Grid1.DataBind();
+ }
+ #region 查询
+ ///
+ /// 查询
+ ///
+ ///
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ this.BindGrid();
+ }
+ #endregion
+
+ #region 分页 排序
+ ///
+ /// 改变索引事件
+ ///
+ ///
+ ///
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ BindGrid();
+ }
+
+ ///
+ /// 分页下拉选择事件
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
+ BindGrid();
+ }
+
+ ///
+ /// 排序
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
+ {
+ this.BindGrid();
+ }
+ #endregion
+ #endregion
+
+ #region 编辑
+ ///
+ /// 双击事件
+ ///
+ ///
+ ///
+ protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ this.EditData();
+ }
+
+ ///
+ /// 右键编辑事件
+ ///
+ ///
+ ///
+ protected void btnMenuEdit_Click(object sender, EventArgs e)
+ {
+ this.EditData();
+ }
+
+ ///
+ /// 编辑数据方法
+ ///
+ private void EditData()
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ string id = Grid1.SelectedRowID;
+ var report = BLL.ProjectEPSummaryReportService.GetEPSummaryReportById(id);
+ if (report != null)
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EPSummaryReportEdit.aspx?EPSummaryReportId={0}", id, "编辑 - ")));
+ }
+ }
+ #endregion
+
+ #region 删除
+ ///
+ /// 右键删除事件
+ ///
+ ///
+ ///
+ protected void btnMenuDelete_Click(object sender, EventArgs e)
+ {
+ if (Grid1.SelectedRowIndexArray.Length > 0)
+ {
+ foreach (int rowIndex in Grid1.SelectedRowIndexArray)
+ {
+ string rowID = Grid1.DataKeys[rowIndex][0].ToString();
+ var report = BLL.ProjectEPSummaryReportService.GetEPSummaryReportById(rowID);
+ if (report != null)
+ {
+ BLL.LogService.AddSys_Log(this.CurrUser, report.YearId.ToString(), rowID, BLL.Const.ProjectEPSummaryReportMenuId, BLL.Const.BtnDelete);
+ BLL.ProjectEPSummaryReportService.DeleteEPSummaryReportById(rowID);
+ }
+ }
+ this.BindGrid();
+ ShowNotify("删除数据成功!", MessageBoxIcon.Success);
+ }
+ }
+ #endregion
+
+ #region 获取按钮权限
+ ///
+ /// 获取按钮权限
+ ///
+ ///
+ ///
+ private void GetButtonPower()
+ {
+ if (Request.Params["value"] == "0")
+ {
+ return;
+ }
+ var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ProjectEPSummaryReportMenuId);
+ if (buttonList.Count() > 0)
+ {
+ if (buttonList.Contains(BLL.Const.BtnAdd))
+ {
+ this.btnNew.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnModify))
+ {
+ this.btnMenuEdit.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnDelete))
+ {
+ this.btnMenuDelete.Hidden = false;
+ }
+ }
+ }
+ #endregion
+ }
+ }
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/HSSE/InformationProject/EPSummaryReport.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/InformationProject/EPSummaryReport.aspx.designer.cs
new file mode 100644
index 00000000..802a192d
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HSSE/InformationProject/EPSummaryReport.aspx.designer.cs
@@ -0,0 +1,150 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.HSSE.InformationProject {
+
+
+ public partial class EPSummaryReport {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// drpYear 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpYear;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnNew 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnNew;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnMenuEdit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuEdit;
+
+ ///
+ /// btnMenuDelete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuDelete;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/HSSE/InformationProject/EPSummaryReportEdit.aspx b/SGGL/FineUIPro.Web/HSSE/InformationProject/EPSummaryReportEdit.aspx
new file mode 100644
index 00000000..6710b187
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HSSE/InformationProject/EPSummaryReportEdit.aspx
@@ -0,0 +1,139 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EPSummaryReportEdit.aspx.cs" Inherits="FineUIPro.Web.HSSE.InformationProject.EPSummaryReportEdit" %>
+
+
+
+
+
+
+ 编辑生态环保工作总结报告
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/HSSE/InformationProject/EPSummaryReportEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/InformationProject/EPSummaryReportEdit.aspx.cs
new file mode 100644
index 00000000..1721d65a
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HSSE/InformationProject/EPSummaryReportEdit.aspx.cs
@@ -0,0 +1,175 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace FineUIPro.Web.HSSE.InformationProject
+{
+ public partial class EPSummaryReportEdit : PageBase
+ {
+ #region 定义项
+ ///
+ /// 主键
+ ///
+ private string EPSummaryReportId
+ {
+ get
+ {
+ return (string)ViewState["EPSummaryReportId"];
+ }
+ set
+ {
+ ViewState["EPSummaryReportId"] = value;
+ }
+ }
+
+ ///
+ /// 项目主键
+ ///
+ public string ProjectId
+ {
+ get
+ {
+ return (string)ViewState["ProjectId"];
+ }
+ set
+ {
+ ViewState["ProjectId"] = value;
+ }
+ }
+ #endregion
+
+ #region 加载
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ this.ProjectId = this.CurrUser.LoginProjectId;
+ if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
+ {
+ this.ProjectId = Request.Params["projectId"];
+ }
+ BLL.ConstValue.InitConstValueDropDownList(this.ddlYearId, BLL.ConstValue.Group_0008, true);
+
+ this.EPSummaryReportId = Request.Params["EPSummaryReportId"];
+ if (!string.IsNullOrEmpty(this.EPSummaryReportId))
+ {
+ var report = BLL.ProjectEPSummaryReportService.GetEPSummaryReportById(this.EPSummaryReportId);
+ if (report != null)
+ {
+ this.ProjectId = report.ProjectId;
+ #region 赋值
+ if (report.YearId != null)
+ {
+ this.ddlYearId.SelectedValue = report.YearId.ToString();
+ this.txtReportDate.Text = report.ReportDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.ReportDate) : "";
+ this.txtResponsiblePerson.Text = report.ResponsiblePerson;
+ this.txtResponsiblePersonTel.Text = report.ResponsiblePersonTel;
+ this.txtContactPerson.Text = report.ContactPerson;
+ this.txtContactPersonTel.Text = report.ContactPersonTel;
+ this.txtDescription1.Text = report.Description1;
+ this.txtDescription2.Text = report.Description2;
+ this.txtDescription3.Text = report.Description3;
+ this.txtDescription4.Text = report.Description4;
+ this.txtDescription5.Text = report.Description5;
+ this.txtDescription6.Text = report.Description6;
+ this.txtDescription7.Text = report.Description7;
+ this.txtDescription8.Text = report.Description8;
+ this.txtDescription9.Text = report.Description9;
+ }
+ #endregion
+ }
+ }
+ else
+ {
+ this.ddlYearId.SelectedValue = DateTime.Now.Year.ToString();
+ this.txtReportDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
+ }
+ }
+ }
+ #endregion
+
+ #region 保存、提交
+ ///
+ /// 保存按钮
+ ///
+ ///
+ ///
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ if (this.ddlYearId.SelectedValue == BLL.Const._Null)
+ {
+ Alert.ShowInTop("请选择年度", MessageBoxIcon.Warning);
+ return;
+ }
+ this.SaveData(BLL.Const.BtnSave);
+ PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
+ }
+
+ ///
+ /// 提交数据
+ ///
+ ///
+ private void SaveData(string type)
+ {
+ Model.InformationProject_EPSummaryReport report = new Model.InformationProject_EPSummaryReport
+ {
+ ProjectId = this.ProjectId,
+ UnitId = string.IsNullOrEmpty(this.CurrUser.UnitId) ? BLL.Const.UnitId_CWCEC : this.CurrUser.UnitId,
+ };
+ if (this.ddlYearId.SelectedValue != BLL.Const._Null)
+ {
+ report.YearId = Funs.GetNewIntOrZero(this.ddlYearId.SelectedValue);
+ }
+ report.ResponsiblePerson = this.txtResponsiblePerson.Text.Trim();
+ report.ResponsiblePersonTel = this.txtResponsiblePersonTel.Text.Trim();
+ report.ContactPerson = this.txtContactPerson.Text.Trim();
+ report.ContactPersonTel = this.txtContactPersonTel.Text.Trim();
+ report.ReportDate = Funs.GetNewDateTime(this.txtReportDate.Text.Trim());
+ report.Description1 = txtDescription1.Text.Trim();
+ report.Description2 = this.txtDescription2.Text.Trim();
+ report.Description3 = this.txtDescription3.Text.Trim();
+ report.Description4 = this.txtDescription4.Text.Trim();
+ report.Description5 = this.txtDescription5.Text.Trim();
+ report.Description6 = this.txtDescription6.Text.Trim();
+ report.Description7 = this.txtDescription7.Text.Trim();
+ report.Description8 = this.txtDescription8.Text.Trim();
+ report.Description9 = this.txtDescription9.Text.Trim();
+ if (!string.IsNullOrEmpty(this.EPSummaryReportId))
+ {
+ report.EPSummaryReportId = this.EPSummaryReportId;
+ BLL.ProjectEPSummaryReportService.UpdateEPSummaryReport(report);
+ BLL.LogService.AddSys_Log(this.CurrUser, report.YearId.ToString(), report.EPSummaryReportId, BLL.Const.ProjectEPSummaryReportMenuId, BLL.Const.BtnModify);
+ }
+ else
+ {
+ Model.InformationProject_EPSummaryReport oldReport = (from x in Funs.DB.InformationProject_EPSummaryReport
+ where x.ProjectId == report.ProjectId && x.YearId == report.YearId
+ select x).FirstOrDefault();
+ if (oldReport == null)
+ {
+ this.EPSummaryReportId = SQLHelper.GetNewID(typeof(Model.InformationProject_EPSummaryReport));
+ report.EPSummaryReportId = this.EPSummaryReportId;
+ BLL.ProjectEPSummaryReportService.AddEPSummaryReport(report);
+ BLL.LogService.AddSys_Log(this.CurrUser, report.YearId.ToString(), report.EPSummaryReportId, BLL.Const.ProjectEPSummaryReportMenuId, BLL.Const.BtnAdd);
+
+ }
+ else
+ {
+ Alert.ShowInTop("该年度记录已存在", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/HSSE/InformationProject/EPSummaryReportEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/InformationProject/EPSummaryReportEdit.aspx.designer.cs
new file mode 100644
index 00000000..a0c877c2
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HSSE/InformationProject/EPSummaryReportEdit.aspx.designer.cs
@@ -0,0 +1,294 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.HSSE.InformationProject {
+
+
+ public partial class EPSummaryReportEdit {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// ddlYearId 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlYearId;
+
+ ///
+ /// txtReportDate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtReportDate;
+
+ ///
+ /// txtResponsiblePerson 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtResponsiblePerson;
+
+ ///
+ /// txtResponsiblePersonTel 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtResponsiblePersonTel;
+
+ ///
+ /// txtContactPerson 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtContactPerson;
+
+ ///
+ /// txtContactPersonTel 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtContactPersonTel;
+
+ ///
+ /// Label1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label Label1;
+
+ ///
+ /// txtDescription1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtDescription1;
+
+ ///
+ /// Label2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label Label2;
+
+ ///
+ /// txtDescription2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtDescription2;
+
+ ///
+ /// Label3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label Label3;
+
+ ///
+ /// txtDescription3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtDescription3;
+
+ ///
+ /// Label4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label Label4;
+
+ ///
+ /// txtDescription4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtDescription4;
+
+ ///
+ /// Label5 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label Label5;
+
+ ///
+ /// txtDescription5 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtDescription5;
+
+ ///
+ /// Label6 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label Label6;
+
+ ///
+ /// txtDescription6 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtDescription6;
+
+ ///
+ /// Label7 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label Label7;
+
+ ///
+ /// txtDescription7 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtDescription7;
+
+ ///
+ /// Label8 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label Label8;
+
+ ///
+ /// txtDescription8 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtDescription8;
+
+ ///
+ /// Label9 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label Label9;
+
+ ///
+ /// txtDescription9 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtDescription9;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// ToolbarFill2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill2;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/HSSE/InformationProject/MillionsMonthlyReport.aspx b/SGGL/FineUIPro.Web/HSSE/InformationProject/MillionsMonthlyReport.aspx
index b5c95bfd..7eefa8b2 100644
--- a/SGGL/FineUIPro.Web/HSSE/InformationProject/MillionsMonthlyReport.aspx
+++ b/SGGL/FineUIPro.Web/HSSE/InformationProject/MillionsMonthlyReport.aspx
@@ -4,238 +4,239 @@
- 百万工时安全统计月报
+ 企业安全数据统计月报
+
+
diff --git a/SGGL/FineUIPro.Web/HSSE/InformationProject/WorkSummaryReport.aspx.cs b/SGGL/FineUIPro.Web/HSSE/InformationProject/WorkSummaryReport.aspx.cs
new file mode 100644
index 00000000..453f80ab
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HSSE/InformationProject/WorkSummaryReport.aspx.cs
@@ -0,0 +1,275 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+
+namespace FineUIPro.Web.HSSE.InformationProject
+{
+ public partial class WorkSummaryReport : PageBase
+ {
+ #region 项目主键
+ ///
+ /// 项目主键
+ ///
+ public string ProjectId
+ {
+ get
+ {
+ return (string)ViewState["ProjectId"];
+ }
+ set
+ {
+ ViewState["ProjectId"] = value;
+ }
+ }
+ #endregion
+
+ #region 加载
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ this.ProjectId = this.CurrUser.LoginProjectId;
+ if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
+ {
+ this.ProjectId = Request.Params["projectId"];
+ }
+
+ ////权限按钮方法
+ this.GetButtonPower();
+
+ BLL.ConstValue.InitConstValueDropDownList(this.drpYear, BLL.ConstValue.Group_0008, true);
+
+ this.btnNew.OnClientClick = Window1.GetShowReference("WorkSummaryReportEdit.aspx") + "return false;";
+ if (this.CurrUser != null && this.CurrUser.PageSize.HasValue)
+ {
+ Grid1.PageSize = this.CurrUser.PageSize.Value;
+ }
+ this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ // 绑定表格
+ this.BindGrid();
+ }
+ }
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"SELECT workSummaryReport.WorkSummaryReportId,"
+ + @"workSummaryReport.ProjectId,"
+ + @"workSummaryReport.UnitId,"
+ + @"workSummaryReport.YearId,"
+ + @"workSummaryReport.ResponsiblePerson,"
+ + @"workSummaryReport.ResponsiblePersonTel,"
+ + @"workSummaryReport.ContactPerson,"
+ + @"workSummaryReport.ContactPersonTel,"
+ + @"workSummaryReport.ReportDate,"
+ + @"workSummaryReport.SafeLaborTime,"
+ + @"workSummaryReport.SafetyObjectives,"
+ + @"workSummaryReport.AccidentSituation,"
+ + @"workSummaryReport.Awards,"
+ + @"workSummaryReport.WorkDevelopment,"
+ + @"workSummaryReport.PersonnelTraining,"
+ + @"workSummaryReport.GovernanceSituation,"
+ + @"workSummaryReport.ManagementActivity,"
+ + @"workSummaryReport.WorkExperience,"
+ + @"workSummaryReport.Countermeasures,"
+ + @"workSummaryReport.NextYearWorkPlan,"
+ + @"workSummaryReport.JobSuggestion,"
+ + @"workSummaryReport.CompileMan,"
+ + @"workSummaryReport.CompileDate, "
+ + @"U.UserName as CompileManName, "
+ + @"Unit.UnitName "
+ + @" FROM InformationProject_WorkSummaryReport AS workSummaryReport "
+ + @" LEFT JOIN Sys_User AS U ON U.UserId = workSummaryReport.CompileMan "
+ + @" LEFT JOIN Base_Unit AS Unit ON Unit.UnitId = workSummaryReport.UnitId WHERE 1=1 ";
+
+ List listStr = new List();
+ strSql += " AND workSummaryReport.ProjectId = '" + this.ProjectId + "'";
+ if (this.drpYear.SelectedValue != BLL.Const._Null)
+ {
+ strSql += " AND workSummaryReport.YearId = @Year";
+ listStr.Add(new SqlParameter("@Year", Funs.GetNewInt(this.drpYear.SelectedValue)));
+ }
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+
+ Grid1.RecordCount = tb.Rows.Count;
+ var table = this.GetPagedDataTable(Grid1, tb);
+ Grid1.DataSource = table;
+ Grid1.DataBind();
+ }
+ #region 查询
+ ///
+ /// 查询
+ ///
+ ///
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ this.BindGrid();
+ }
+ #endregion
+
+ #region 分页 排序
+ ///
+ /// 改变索引事件
+ ///
+ ///
+ ///
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ BindGrid();
+ }
+
+ ///
+ /// 分页下拉选择事件
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
+ BindGrid();
+ }
+
+ ///
+ /// 排序
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
+ {
+ this.BindGrid();
+ }
+ #endregion
+ #endregion
+
+ #region 编辑
+ ///
+ /// 双击事件
+ ///
+ ///
+ ///
+ protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ this.EditData();
+ }
+
+ ///
+ /// 右键编辑事件
+ ///
+ ///
+ ///
+ protected void btnMenuEdit_Click(object sender, EventArgs e)
+ {
+ this.EditData();
+ }
+
+ ///
+ /// 编辑数据方法
+ ///
+ private void EditData()
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ string id = Grid1.SelectedRowID;
+ var projectWorkSummaryReport = BLL.ProjectWorkSummaryReportService.GetWorkSummaryReportById(id);
+ if (projectWorkSummaryReport != null)
+ {
+ //if (this.btnMenuEdit.Hidden) ////双击事件 编辑权限有:编辑页面,无:查看页面
+ //{
+ // PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("WorkSummaryReportView.aspx?workSummaryReportId={0}", id, "查看 - ")));
+ //}
+ //else
+ //{
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("WorkSummaryReportEdit.aspx?workSummaryReportId={0}", id, "编辑 - ")));
+ //}
+ }
+ }
+ #endregion
+
+ #region 删除
+ ///
+ /// 右键删除事件
+ ///
+ ///
+ ///
+ protected void btnMenuDelete_Click(object sender, EventArgs e)
+ {
+ if (Grid1.SelectedRowIndexArray.Length > 0)
+ {
+ foreach (int rowIndex in Grid1.SelectedRowIndexArray)
+ {
+ string rowID = Grid1.DataKeys[rowIndex][0].ToString();
+ var report = BLL.ProjectWorkSummaryReportService.GetWorkSummaryReportById(rowID);
+ if (report != null)
+ {
+ BLL.LogService.AddSys_Log(this.CurrUser, report.YearId.ToString(), rowID, BLL.Const.ProjectWorkSummaryReportMenuId, BLL.Const.BtnDelete);
+ BLL.ProjectWorkSummaryReportService.DeleteWorkSummaryReportById(rowID);
+ }
+ }
+ this.BindGrid();
+ ShowNotify("删除数据成功!", MessageBoxIcon.Success);
+ }
+ }
+ #endregion
+
+ #region 打印
+ ///
+ /// 打印
+ ///
+ ///
+ ///
+ //protected void btnPrint_Click(object sender, EventArgs e)
+ //{
+ // if (!string.IsNullOrEmpty(Grid1.SelectedRowID))
+ // {
+ // PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("~/ReportPrint/ExReportPrint.aspx?reportId={0}&&replaceParameter={1}&&varValue={2}", Const.ProjectInformation_MillionsMonthlyReportId, Grid1.SelectedRowID, "", "打印 - ")));
+ // }
+ //}
+ #endregion
+
+ #region 获取按钮权限
+ ///
+ /// 获取按钮权限
+ ///
+ ///
+ ///
+ private void GetButtonPower()
+ {
+ if (Request.Params["value"] == "0")
+ {
+ return;
+ }
+ var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ProjectWorkSummaryReportMenuId);
+ if (buttonList.Count() > 0)
+ {
+ if (buttonList.Contains(BLL.Const.BtnAdd))
+ {
+ this.btnNew.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnModify))
+ {
+ this.btnMenuEdit.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnDelete))
+ {
+ this.btnMenuDelete.Hidden = false;
+ }
+ }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/HSSE/InformationProject/WorkSummaryReport.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/InformationProject/WorkSummaryReport.aspx.designer.cs
new file mode 100644
index 00000000..54ad3a33
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HSSE/InformationProject/WorkSummaryReport.aspx.designer.cs
@@ -0,0 +1,150 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.HSSE.InformationProject {
+
+
+ public partial class WorkSummaryReport {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// drpYear 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpYear;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnNew 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnNew;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnMenuEdit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuEdit;
+
+ ///
+ /// btnMenuDelete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuDelete;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/HSSE/InformationProject/WorkSummaryReportEdit.aspx b/SGGL/FineUIPro.Web/HSSE/InformationProject/WorkSummaryReportEdit.aspx
new file mode 100644
index 00000000..6e2f2ff8
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HSSE/InformationProject/WorkSummaryReportEdit.aspx
@@ -0,0 +1,292 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkSummaryReportEdit.aspx.cs" Inherits="FineUIPro.Web.HSSE.InformationProject.WorkSummaryReportEdit" %>
+
+
+
+
+
+
+ 编辑安全管理工作总结报告
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/HSSE/InformationProject/WorkSummaryReportEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/InformationProject/WorkSummaryReportEdit.aspx.cs
new file mode 100644
index 00000000..5730e4f5
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HSSE/InformationProject/WorkSummaryReportEdit.aspx.cs
@@ -0,0 +1,205 @@
+using BLL;
+using System;
+using System.Linq;
+
+namespace FineUIPro.Web.HSSE.InformationProject
+{
+ public partial class WorkSummaryReportEdit : PageBase
+ {
+ #region 定义项
+ ///
+ /// 主键
+ ///
+ private string WorkSummaryReportId
+ {
+ get
+ {
+ return (string)ViewState["WorkSummaryReportId"];
+ }
+ set
+ {
+ ViewState["WorkSummaryReportId"] = value;
+ }
+ }
+
+ ///
+ /// 项目主键
+ ///
+ public string ProjectId
+ {
+ get
+ {
+ return (string)ViewState["ProjectId"];
+ }
+ set
+ {
+ ViewState["ProjectId"] = value;
+ }
+ }
+ #endregion
+
+ #region 加载
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ this.ProjectId = this.CurrUser.LoginProjectId;
+ if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
+ {
+ this.ProjectId = Request.Params["projectId"];
+ }
+ BLL.ConstValue.InitConstValueDropDownList(this.ddlYearId, BLL.ConstValue.Group_0008, true);
+
+ this.WorkSummaryReportId = Request.Params["workSummaryReportId"];
+ if (!string.IsNullOrEmpty(this.WorkSummaryReportId))
+ {
+ var report = BLL.ProjectWorkSummaryReportService.GetWorkSummaryReportById(this.WorkSummaryReportId);
+ if (report != null)
+ {
+ this.ProjectId = report.ProjectId;
+ #region 赋值
+ if (report.YearId != null)
+ {
+ this.ddlYearId.SelectedValue = report.YearId.ToString();
+ this.txtReportDate.Text = report.ReportDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.ReportDate) : "";
+ this.txtResponsiblePerson.Text = report.ResponsiblePerson;
+ this.txtResponsiblePersonTel.Text = report.ResponsiblePersonTel;
+ this.txtContactPerson.Text = report.ContactPerson;
+ this.txtContactPersonTel.Text = report.ContactPersonTel;
+ this.txtSafeLaborTime.Text = report.SafeLaborTime.HasValue ? report.SafeLaborTime.ToString() : "";
+ this.txtSafetyObjectives.Text = report.SafetyObjectives;
+ this.txtAccidentSituation.Text = report.AccidentSituation;
+ this.txtAwards.Text = report.Awards;
+ this.txtWorkDevelopment.Text = report.WorkDevelopment;
+ this.txtPersonnelTraining.Text = report.PersonnelTraining;
+ this.txtGovernanceSituation.Text = report.GovernanceSituation;
+ this.txtManagementActivity.Text = report.ManagementActivity;
+ this.txtWorkExperience.Text = report.WorkExperience;
+ this.txtCountermeasures.Text = report.Countermeasures;
+ this.txtNextYearWorkPlan.Text = report.NextYearWorkPlan;
+ this.txtJobSuggestion.Text = report.JobSuggestion;
+ }
+ #endregion
+ }
+ }
+ else
+ {
+ this.ddlYearId.SelectedValue = DateTime.Now.Year.ToString();
+ this.txtReportDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
+ }
+ }
+ }
+ #endregion
+
+ #region 保存、提交
+ ///
+ /// 保存按钮
+ ///
+ ///
+ ///
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ if (this.ddlYearId.SelectedValue == BLL.Const._Null)
+ {
+ Alert.ShowInTop("请选择年度", MessageBoxIcon.Warning);
+ return;
+ }
+ this.SaveData(BLL.Const.BtnSave);
+ PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
+ }
+
+ /////
+ ///// 提交按钮
+ /////
+ /////
+ /////
+ //protected void btnSubmit_Click(object sender, EventArgs e)
+ //{
+ // if (this.ddlYearId.SelectedValue == BLL.Const._Null)
+ // {
+ // Alert.ShowInTop("请选择年度", MessageBoxIcon.Warning);
+ // return;
+ // }
+ // if (this.ddlQuarter.SelectedValue == BLL.Const._Null)
+ // {
+ // Alert.ShowInTop("请选择季度", MessageBoxIcon.Warning);
+ // return;
+ // }
+ // this.SaveData(BLL.Const.BtnSubmit);
+ // PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
+ //}
+
+ ///
+ /// 提交数据
+ ///
+ ///
+ private void SaveData(string type)
+ {
+ Model.InformationProject_WorkSummaryReport report = new Model.InformationProject_WorkSummaryReport
+ {
+ ProjectId = this.ProjectId,
+ UnitId = string.IsNullOrEmpty(this.CurrUser.UnitId) ? BLL.Const.UnitId_CWCEC : this.CurrUser.UnitId,
+ };
+ if (this.ddlYearId.SelectedValue != BLL.Const._Null)
+ {
+ report.YearId = Funs.GetNewIntOrZero(this.ddlYearId.SelectedValue);
+ }
+ report.ResponsiblePerson = this.txtResponsiblePerson.Text.Trim();
+ report.ResponsiblePersonTel = this.txtResponsiblePersonTel.Text.Trim();
+ report.ContactPerson = this.txtContactPerson.Text.Trim();
+ report.ContactPersonTel = this.txtContactPersonTel.Text.Trim();
+ report.ReportDate = Funs.GetNewDateTime(this.txtReportDate.Text.Trim());
+ report.SafeLaborTime = Funs.GetNewDecimal(this.txtSafeLaborTime.Text);
+ report.SafetyObjectives = this.txtSafetyObjectives.Text.Trim();
+ report.AccidentSituation = this.txtAccidentSituation.Text.Trim();
+ report.Awards = this.txtAwards.Text.Trim();
+ report.WorkDevelopment = this.txtWorkDevelopment.Text.Trim();
+ report.PersonnelTraining = this.txtPersonnelTraining.Text.Trim();
+ report.GovernanceSituation = this.txtGovernanceSituation.Text.Trim();
+ report.ManagementActivity = this.txtManagementActivity.Text.Trim();
+ report.WorkExperience = this.txtWorkExperience.Text.Trim();
+ report.Countermeasures = this.txtCountermeasures.Text.Trim();
+ report.NextYearWorkPlan = this.txtNextYearWorkPlan.Text.Trim();
+ report.JobSuggestion = this.txtJobSuggestion.Text.Trim();
+
+ report.CompileMan = this.CurrUser.UserId;
+ report.CompileDate = DateTime.Now;
+ //if (type == BLL.Const.BtnSubmit)
+ //{
+ // safetyQuarterlyReport.States = this.ctlAuditFlow.NextStep;
+ //}
+ if (!string.IsNullOrEmpty(this.WorkSummaryReportId))
+ {
+ report.WorkSummaryReportId = this.WorkSummaryReportId;
+ BLL.ProjectWorkSummaryReportService.UpdateWorkSummaryReport(report);
+ BLL.LogService.AddSys_Log(this.CurrUser, report.YearId.ToString(), report.WorkSummaryReportId, BLL.Const.ProjectWorkSummaryReportMenuId, BLL.Const.BtnModify);
+ }
+ else
+ {
+ Model.InformationProject_WorkSummaryReport oldReport = (from x in Funs.DB.InformationProject_WorkSummaryReport
+ where x.ProjectId == report.ProjectId && x.YearId == report.YearId
+ select x).FirstOrDefault();
+ if (oldReport == null)
+ {
+ this.WorkSummaryReportId = SQLHelper.GetNewID(typeof(Model.InformationProject_WorkSummaryReport));
+ report.WorkSummaryReportId = this.WorkSummaryReportId;
+ BLL.ProjectWorkSummaryReportService.AddWorkSummaryReport(report);
+ BLL.LogService.AddSys_Log(this.CurrUser, report.YearId.ToString(), report.WorkSummaryReportId, BLL.Const.ProjectWorkSummaryReportMenuId, BLL.Const.BtnAdd);
+
+ }
+ else
+ {
+ Alert.ShowInTop("该年度记录已存在", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/HSSE/InformationProject/WorkSummaryReportEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/InformationProject/WorkSummaryReportEdit.aspx.designer.cs
new file mode 100644
index 00000000..b4ddf947
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HSSE/InformationProject/WorkSummaryReportEdit.aspx.designer.cs
@@ -0,0 +1,474 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.HSSE.InformationProject {
+
+
+ public partial class WorkSummaryReportEdit {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// ddlYearId 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlYearId;
+
+ ///
+ /// txtReportDate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtReportDate;
+
+ ///
+ /// txtResponsiblePerson 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtResponsiblePerson;
+
+ ///
+ /// txtResponsiblePersonTel 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtResponsiblePersonTel;
+
+ ///
+ /// txtContactPerson 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtContactPerson;
+
+ ///
+ /// txtContactPersonTel 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtContactPersonTel;
+
+ ///
+ /// GroupPanel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel1;
+
+ ///
+ /// Form2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form2;
+
+ ///
+ /// txtSafeLaborTime 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtSafeLaborTime;
+
+ ///
+ /// GroupPanel6 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel6;
+
+ ///
+ /// Form7 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form7;
+
+ ///
+ /// txtSafetyObjectives 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtSafetyObjectives;
+
+ ///
+ /// GroupPanel7 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel7;
+
+ ///
+ /// Form8 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form8;
+
+ ///
+ /// txtAccidentSituation 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtAccidentSituation;
+
+ ///
+ /// GroupPanel8 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel8;
+
+ ///
+ /// Form9 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form9;
+
+ ///
+ /// txtAwards 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtAwards;
+
+ ///
+ /// GroupPanel2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel2;
+
+ ///
+ /// Form3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form3;
+
+ ///
+ /// GroupPanel9 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel9;
+
+ ///
+ /// Form10 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form10;
+
+ ///
+ /// txtWorkDevelopment 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtWorkDevelopment;
+
+ ///
+ /// GroupPanel10 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel10;
+
+ ///
+ /// Form11 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form11;
+
+ ///
+ /// txtPersonnelTraining 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtPersonnelTraining;
+
+ ///
+ /// GroupPanel11 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel11;
+
+ ///
+ /// Form12 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form12;
+
+ ///
+ /// txtGovernanceSituation 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtGovernanceSituation;
+
+ ///
+ /// GroupPanel12 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel12;
+
+ ///
+ /// Form13 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form13;
+
+ ///
+ /// txtManagementActivity 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtManagementActivity;
+
+ ///
+ /// GroupPanel13 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel13;
+
+ ///
+ /// Form14 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form14;
+
+ ///
+ /// txtWorkExperience 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtWorkExperience;
+
+ ///
+ /// GroupPanel3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel3;
+
+ ///
+ /// Form4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form4;
+
+ ///
+ /// txtCountermeasures 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtCountermeasures;
+
+ ///
+ /// GroupPanel4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel4;
+
+ ///
+ /// Form5 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form5;
+
+ ///
+ /// txtNextYearWorkPlan 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtNextYearWorkPlan;
+
+ ///
+ /// GroupPanel5 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel5;
+
+ ///
+ /// Form6 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form6;
+
+ ///
+ /// txtJobSuggestion 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtJobSuggestion;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// ToolbarFill2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill2;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/SHIYE/InformationProject/SafetyBriefing.aspx b/SGGL/FineUIPro.Web/SHIYE/InformationProject/SafetyBriefing.aspx
new file mode 100644
index 00000000..2ca785b6
--- /dev/null
+++ b/SGGL/FineUIPro.Web/SHIYE/InformationProject/SafetyBriefing.aspx
@@ -0,0 +1,120 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SafetyBriefing.aspx.cs" Inherits="FineUIPro.Web.SHIYE.InformationProject.SafetyBriefing" %>
+
+
+
+
+
+
+ 实业安全简报
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/SHIYE/InformationProject/SafetyBriefing.aspx.cs b/SGGL/FineUIPro.Web/SHIYE/InformationProject/SafetyBriefing.aspx.cs
new file mode 100644
index 00000000..1a23dea6
--- /dev/null
+++ b/SGGL/FineUIPro.Web/SHIYE/InformationProject/SafetyBriefing.aspx.cs
@@ -0,0 +1,265 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+
+namespace FineUIPro.Web.SHIYE.InformationProject
+{
+ public partial class SafetyBriefing :PageBase
+ {
+ #region 项目主键
+ ///
+ /// 项目主键
+ ///
+ public string ProjectId
+ {
+ get
+ {
+ return (string)ViewState["ProjectId"];
+ }
+ set
+ {
+ ViewState["ProjectId"] = value;
+ }
+ }
+ #endregion
+
+ #region 加载
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ this.ProjectId = this.CurrUser.LoginProjectId;
+ if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
+ {
+ this.ProjectId = Request.Params["projectId"];
+ }
+
+ ////权限按钮方法
+ this.GetButtonPower();
+
+ BLL.ConstValue.InitConstValueDropDownList(this.drpYear, BLL.ConstValue.Group_0008, true);
+ BLL.ConstValue.InitConstValueDropDownList(this.drpMonth, BLL.ConstValue.Group_0009, true);
+
+ this.btnNew.OnClientClick = Window1.GetShowReference("SafetyBriefingEdit.aspx") + "return false;";
+ if (this.CurrUser != null && this.CurrUser.PageSize.HasValue)
+ {
+ Grid1.PageSize = this.CurrUser.PageSize.Value;
+ }
+ this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ // 绑定表格
+ this.BindGrid();
+ }
+ }
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"SELECT safetyBriefing.SafetyBriefingId,"
+ + @"safetyBriefing.ProjectId,"
+ + @"safetyBriefing.UnitId,"
+ + @"safetyBriefing.YearId,"
+ + @"safetyBriefing.Month,"
+ + @"(CAST(safetyBriefing.YearId AS NVARCHAR(4))+'年'+CAST(safetyBriefing.Month AS NVARCHAR(4))+'月') AS YearAndMonth,"
+ + @"safetyBriefing.CompileMan,"
+ + @"safetyBriefing.CompileDate,"
+ + @"safetyBriefing.Auditor,"
+ + @"safetyBriefing.Approver,"
+ + @"Unit.UnitName, "
+ + @"Users.UserName AS CompileManName "
+ + @" FROM InformationProject_SafetyBriefing AS safetyBriefing "
+ + @" LEFT JOIN Sys_User AS Users ON safetyBriefing.CompileMan = Users.UserId "
+ + @" LEFT JOIN Base_Unit AS Unit ON Unit.UnitId = safetyBriefing.UnitId WHERE 1=1 ";
+ List listStr = new List();
+ strSql += " AND safetyBriefing.ProjectId = '" + this.ProjectId + "'";
+ //if (!string.IsNullOrEmpty(Request.Params["projectId"])) ///是否文件柜查看页面传项目值
+ //{
+ // strSql += " AND MillionsMonthlyReport.States = @States"; ///状态为已完成
+ // listStr.Add(new SqlParameter("@States", BLL.Const.State_2));
+ //}
+ if (this.drpYear.SelectedValue != BLL.Const._Null)
+ {
+ strSql += " AND safetyBriefing.YearId = @Year";
+ listStr.Add(new SqlParameter("@Year", Funs.GetNewInt(this.drpYear.SelectedValue)));
+ }
+ if (this.drpMonth.SelectedValue != BLL.Const._Null)
+ {
+ strSql += " AND safetyBriefing.Month = @Month ";
+ listStr.Add(new SqlParameter("@Month", Funs.GetNewInt(this.drpMonth.SelectedValue)));
+ }
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+
+ Grid1.RecordCount = tb.Rows.Count;
+ var table = this.GetPagedDataTable(Grid1, tb);
+ Grid1.DataSource = table;
+ Grid1.DataBind();
+ }
+ #region 查询
+ ///
+ /// 查询
+ ///
+ ///
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ this.BindGrid();
+ }
+ #endregion
+
+ #region 分页 排序
+ ///
+ /// 改变索引事件
+ ///
+ ///
+ ///
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ BindGrid();
+ }
+
+ ///
+ /// 分页下拉选择事件
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
+ BindGrid();
+ }
+
+ ///
+ /// 排序
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
+ {
+ this.BindGrid();
+ }
+ #endregion
+ #endregion
+
+ #region 编辑
+ ///
+ /// 双击事件
+ ///
+ ///
+ ///
+ protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ this.EditData();
+ }
+
+ ///
+ /// 右键编辑事件
+ ///
+ ///
+ ///
+ protected void btnMenuEdit_Click(object sender, EventArgs e)
+ {
+ this.EditData();
+ }
+
+ ///
+ /// 编辑数据方法
+ ///
+ private void EditData()
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ string id = Grid1.SelectedRowID;
+ var safetyBriefing = BLL.InformationProject_SafetyBriefingService.GetSafetyBriefingById(id);
+ if (safetyBriefing != null)
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SafetyBriefingEdit.aspx?safetyBriefingId={0}", id, "编辑 - ")));
+ }
+ }
+ #endregion
+
+ #region 删除
+ ///
+ /// 右键删除事件
+ ///
+ ///
+ ///
+ protected void btnMenuDelete_Click(object sender, EventArgs e)
+ {
+ if (Grid1.SelectedRowIndexArray.Length > 0)
+ {
+ foreach (int rowIndex in Grid1.SelectedRowIndexArray)
+ {
+ string rowID = Grid1.DataKeys[rowIndex][0].ToString();
+ var safetyBriefing = BLL.InformationProject_SafetyBriefingService.GetSafetyBriefingById(rowID);
+ if (safetyBriefing != null)
+ {
+ BLL.LogService.AddSys_Log(this.CurrUser, safetyBriefing.YearId.ToString() + "-" + safetyBriefing.Month.ToString(), rowID, BLL.Const.ProjectSafetyBriefingMenuId, BLL.Const.BtnDelete);
+ BLL.InformationProject_SafetyBriefingService.DeleteSafetyBriefingById(rowID);
+ }
+ }
+ this.BindGrid();
+ ShowNotify("删除数据成功!", MessageBoxIcon.Success);
+ }
+ }
+ #endregion
+
+ #region 打印
+ ///
+ /// 打印
+ ///
+ ///
+ ///
+ //protected void btnPrint_Click(object sender, EventArgs e)
+ //{
+ // if (!string.IsNullOrEmpty(Grid1.SelectedRowID))
+ // {
+ // PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("~/ReportPrint/ExReportPrint.aspx?reportId={0}&&replaceParameter={1}&&varValue={2}", Const.ProjectInformation_MillionsMonthlyReportId, Grid1.SelectedRowID, "", "打印 - ")));
+ // }
+ //}
+ #endregion
+
+ #region 获取按钮权限
+ ///
+ /// 获取按钮权限
+ ///
+ ///
+ ///
+ private void GetButtonPower()
+ {
+ if (Request.Params["value"] == "0")
+ {
+ return;
+ }
+ var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ProjectSafetyBriefingMenuId);
+ if (buttonList.Count() > 0)
+ {
+ if (buttonList.Contains(BLL.Const.BtnAdd))
+ {
+ this.btnNew.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnModify))
+ {
+ this.btnMenuEdit.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnDelete))
+ {
+ this.btnMenuDelete.Hidden = false;
+ }
+ }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/SHIYE/InformationProject/SafetyBriefing.aspx.designer.cs b/SGGL/FineUIPro.Web/SHIYE/InformationProject/SafetyBriefing.aspx.designer.cs
new file mode 100644
index 00000000..b465ae11
--- /dev/null
+++ b/SGGL/FineUIPro.Web/SHIYE/InformationProject/SafetyBriefing.aspx.designer.cs
@@ -0,0 +1,159 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.SHIYE.InformationProject {
+
+
+ public partial class SafetyBriefing {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// drpYear 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpYear;
+
+ ///
+ /// drpMonth 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpMonth;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnNew 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnNew;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnMenuEdit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuEdit;
+
+ ///
+ /// btnMenuDelete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuDelete;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/SHIYE/InformationProject/SafetyBriefingEdit.aspx b/SGGL/FineUIPro.Web/SHIYE/InformationProject/SafetyBriefingEdit.aspx
new file mode 100644
index 00000000..90f43fc6
--- /dev/null
+++ b/SGGL/FineUIPro.Web/SHIYE/InformationProject/SafetyBriefingEdit.aspx
@@ -0,0 +1,290 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SafetyBriefingEdit.aspx.cs" Inherits="FineUIPro.Web.SHIYE.InformationProject.SafetyBriefingEdit" %>
+
+
+
+
+
+
+ 实业安全简报
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/SHIYE/InformationProject/SafetyBriefingEdit.aspx.cs b/SGGL/FineUIPro.Web/SHIYE/InformationProject/SafetyBriefingEdit.aspx.cs
new file mode 100644
index 00000000..48045510
--- /dev/null
+++ b/SGGL/FineUIPro.Web/SHIYE/InformationProject/SafetyBriefingEdit.aspx.cs
@@ -0,0 +1,250 @@
+using BLL;
+using System;
+using System.Linq;
+
+namespace FineUIPro.Web.SHIYE.InformationProject
+{
+ public partial class SafetyBriefingEdit : PageBase
+ {
+ #region 定义项
+ ///
+ /// 主键
+ ///
+ private string SafetyBriefingId
+ {
+ get
+ {
+ return (string)ViewState["SafetyBriefingId"];
+ }
+ set
+ {
+ ViewState["SafetyBriefingId"] = value;
+ }
+ }
+ #endregion
+
+ #region 项目主键
+ ///
+ /// 项目主键
+ ///
+ public string ProjectId
+ {
+ get
+ {
+ return (string)ViewState["ProjectId"];
+ }
+ set
+ {
+ ViewState["ProjectId"] = value;
+ }
+ }
+ #endregion
+
+ #region 加载
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ this.ProjectId = this.CurrUser.LoginProjectId;
+ if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
+ {
+ this.ProjectId = Request.Params["projectId"];
+ }
+ BLL.ConstValue.InitConstValueDropDownList(this.drpYear, BLL.ConstValue.Group_0008, true);
+ BLL.ConstValue.InitConstValueDropDownList(this.drpMonth, BLL.ConstValue.Group_0009, true);
+
+ BLL.UserService.InitUserDropDownList(this.drpCompileMan, this.ProjectId, true);
+
+ this.SafetyBriefingId = Request.Params["safetyBriefingId"];
+ if (!string.IsNullOrEmpty(this.SafetyBriefingId))
+ {
+ Model.InformationProject_SafetyBriefing safetyBriefing = BLL.InformationProject_SafetyBriefingService.GetSafetyBriefingById(this.SafetyBriefingId);
+ if (safetyBriefing != null)
+ {
+ this.ProjectId = safetyBriefing.ProjectId;
+ if (!string.IsNullOrEmpty(safetyBriefing.UnitId))
+ {
+ this.txtUnitName.Text = BLL.UnitService.GetUnitNameByUnitId(safetyBriefing.UnitId);
+ }
+ BLL.UserService.InitUserDropDownList(this.drpCompileMan, this.ProjectId, true);
+ if (safetyBriefing.YearId != null)
+ {
+ this.drpYear.SelectedValue = Convert.ToString(safetyBriefing.YearId);
+ }
+ if (safetyBriefing.Month != null)
+ {
+ this.drpMonth.SelectedValue = Convert.ToString(safetyBriefing.Month);
+ }
+ if (!string.IsNullOrEmpty(safetyBriefing.CompileMan))
+ {
+ this.drpCompileMan.SelectedValue = safetyBriefing.CompileMan;
+ }
+ this.txtAuditor.Text = safetyBriefing.Auditor;
+ this.txtApprover.Text = safetyBriefing.Approver;
+ this.txtMainWork.Text = safetyBriefing.MainWork;
+ this.txtHazardRecording.Text = safetyBriefing.HazardRecording;
+ this.txtSafetyAccident.Text = safetyBriefing.SafetyAccident;
+ this.txtEPAccident.Text = safetyBriefing.EPAccident;
+ this.txtOHAccident.Text = safetyBriefing.OHAccident;
+ this.txtWorkPermitNum.Text = safetyBriefing.WorkPermitNum;
+ this.txtHiddenDangerDetection.Text = safetyBriefing.HiddenDangerDetection;
+ this.txtRectificationSituation.Text = safetyBriefing.RectificationSituation;
+ this.txtCheckProblemsRectification.Text = safetyBriefing.CheckProblemsRectification;
+ this.txtPendingProject.Text = safetyBriefing.PendingProject;
+ this.txtContractorManagement.Text = safetyBriefing.ContractorManagement;
+ this.txtEnvironmentalEmissions.Text = safetyBriefing.EnvironmentalEmissions;
+ this.txtNextMonthWorkPlan.Text = safetyBriefing.NextMonthWorkPlan;
+ }
+ }
+ else
+ {
+ this.drpYear.SelectedValue = DateTime.Now.Year.ToString();
+ this.drpMonth.SelectedValue = DateTime.Now.Month.ToString();
+ //DateTime startTime = Convert.ToDateTime(this.drpYear.SelectedValue + "-" + this.drpMonth.SelectedValue + "-01");
+ //DateTime endTime = startTime.AddMonths(1);
+ //GetData(startTime, endTime);
+ this.drpCompileMan.SelectedValue = this.CurrUser.UserId;
+ this.txtUnitName.Text = BLL.UnitService.GetUnitNameByUnitId(string.IsNullOrEmpty(this.CurrUser.UnitId) ? BLL.Const.UnitId_CWCEC : this.CurrUser.UnitId);
+ }
+ }
+ }
+ #endregion
+
+ #region 保存、提交
+ ///
+ /// 保存按钮
+ ///
+ ///
+ ///
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ if (this.drpYear.SelectedValue == BLL.Const._Null)
+ {
+ Alert.ShowInTop("请选择年度", MessageBoxIcon.Warning);
+ return;
+ }
+ if (this.drpMonth.SelectedValue == BLL.Const._Null)
+ {
+ Alert.ShowInTop("请选择月份", MessageBoxIcon.Warning);
+ return;
+ }
+ this.SaveData(BLL.Const.BtnSave);
+ PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
+ }
+
+ ///
+ /// 提交按钮
+ ///
+ ///
+ ///
+ protected void btnSubmit_Click(object sender, EventArgs e)
+ {
+ if (this.drpYear.SelectedValue == BLL.Const._Null)
+ {
+ Alert.ShowInTop("请选择年度", MessageBoxIcon.Warning);
+ return;
+ }
+ if (this.drpMonth.SelectedValue == BLL.Const._Null)
+ {
+ Alert.ShowInTop("请选择月份", MessageBoxIcon.Warning);
+ return;
+ }
+ this.SaveData(BLL.Const.BtnSubmit);
+ PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
+ }
+
+ ///
+ /// 保存数据
+ ///
+ ///
+ private void SaveData(string type)
+ {
+ Model.InformationProject_SafetyBriefing safetyBriefing = new Model.InformationProject_SafetyBriefing
+ {
+ ProjectId = this.ProjectId,
+ UnitId = string.IsNullOrEmpty(this.CurrUser.UnitId) ? BLL.Const.UnitId_CWCEC : this.CurrUser.UnitId,
+ };
+ if (this.drpYear.SelectedValue != BLL.Const._Null)
+ {
+ safetyBriefing.YearId = Funs.GetNewInt(this.drpYear.SelectedValue);
+ }
+ if (this.drpMonth.SelectedValue != BLL.Const._Null)
+ {
+ safetyBriefing.Month = Funs.GetNewInt(this.drpMonth.SelectedValue);
+ }
+ if (this.drpCompileMan.SelectedValue != BLL.Const._Null)
+ {
+ safetyBriefing.CompileMan = this.drpCompileMan.SelectedValue;
+ }
+ safetyBriefing.CompileDate = DateTime.Now;
+ safetyBriefing.Auditor = this.txtAuditor.Text.Trim();
+ safetyBriefing.Approver = this.txtApprover.Text.Trim();
+ safetyBriefing.MainWork = this.txtMainWork.Text.Trim();
+ safetyBriefing.HazardRecording = this.txtHazardRecording.Text.Trim();
+ safetyBriefing.SafetyAccident = this.txtSafetyAccident.Text.Trim();
+ safetyBriefing.EPAccident = this.txtEPAccident.Text.Trim();
+ safetyBriefing.OHAccident = this.txtOHAccident.Text.Trim();
+ safetyBriefing.WorkPermitNum = this.txtWorkPermitNum.Text.Trim();
+ safetyBriefing.HiddenDangerDetection = this.txtHiddenDangerDetection.Text.Trim();
+ safetyBriefing.RectificationSituation = this.txtRectificationSituation.Text.Trim();
+ safetyBriefing.CheckProblemsRectification = this.txtCheckProblemsRectification.Text.Trim();
+ safetyBriefing.PendingProject = this.txtPendingProject.Text.Trim();
+ safetyBriefing.ContractorManagement = this.txtContractorManagement.Text.Trim();
+ safetyBriefing.EnvironmentalEmissions = this.txtEnvironmentalEmissions.Text.Trim();
+ safetyBriefing.NextMonthWorkPlan = this.txtNextMonthWorkPlan.Text.Trim();
+ if (!string.IsNullOrEmpty(this.SafetyBriefingId))
+ {
+ safetyBriefing.SafetyBriefingId = this.SafetyBriefingId;
+ BLL.InformationProject_SafetyBriefingService.UpdateSafetyBriefing(safetyBriefing);
+ BLL.LogService.AddSys_Log(this.CurrUser, safetyBriefing.YearId.ToString() + "-" + safetyBriefing.Month.ToString(), safetyBriefing.SafetyBriefingId, BLL.Const.ProjectSafetyBriefingMenuId, BLL.Const.BtnModify);
+
+ }
+ else
+ {
+ Model.InformationProject_SafetyBriefing oldSafetyBriefing = (from x in Funs.DB.InformationProject_SafetyBriefing
+ where x.ProjectId == safetyBriefing.ProjectId && x.YearId == safetyBriefing.YearId && x.Month == safetyBriefing.Month
+ select x).FirstOrDefault();
+ if (oldSafetyBriefing == null)
+ {
+ this.SafetyBriefingId = SQLHelper.GetNewID(typeof(Model.InformationProject_SafetyBriefing));
+ safetyBriefing.SafetyBriefingId = this.SafetyBriefingId;
+ BLL.InformationProject_SafetyBriefingService.AddSafetyBriefing(safetyBriefing);
+ BLL.LogService.AddSys_Log(this.CurrUser, safetyBriefing.YearId.ToString() + "-" + safetyBriefing.Month.ToString(), safetyBriefing.SafetyBriefingId, BLL.Const.ProjectSafetyBriefingMenuId, BLL.Const.BtnAdd);
+ }
+ else
+ {
+ Alert.ShowInTop("该月份记录已存在", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ }
+ #endregion
+
+ #region 年月变化事件
+ ///
+ /// 年月变化事件
+ ///
+ ///
+ ///
+ protected void drpYear_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ if (this.drpYear.SelectedValue != BLL.Const._Null && this.drpMonth.SelectedValue != BLL.Const._Null)
+ {
+ DateTime startTime = Convert.ToDateTime(this.drpYear.SelectedValue + "-" + this.drpMonth.SelectedValue + "-01");
+ DateTime endTime = startTime.AddMonths(1);
+ //GetData(startTime, endTime);
+ }
+ else
+ {
+
+ }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/SHIYE/InformationProject/SafetyBriefingEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/SHIYE/InformationProject/SafetyBriefingEdit.aspx.designer.cs
new file mode 100644
index 00000000..e5a1051a
--- /dev/null
+++ b/SGGL/FineUIPro.Web/SHIYE/InformationProject/SafetyBriefingEdit.aspx.designer.cs
@@ -0,0 +1,528 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.SHIYE.InformationProject {
+
+
+ public partial class SafetyBriefingEdit {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// Form2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form2;
+
+ ///
+ /// txtUnitName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtUnitName;
+
+ ///
+ /// drpYear 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpYear;
+
+ ///
+ /// drpMonth 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpMonth;
+
+ ///
+ /// drpCompileMan 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpCompileMan;
+
+ ///
+ /// txtAuditor 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtAuditor;
+
+ ///
+ /// txtApprover 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtApprover;
+
+ ///
+ /// GroupPanel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel1;
+
+ ///
+ /// Form4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form4;
+
+ ///
+ /// txtMainWork 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtMainWork;
+
+ ///
+ /// GroupPanel2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel2;
+
+ ///
+ /// Form3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form3;
+
+ ///
+ /// txtHazardRecording 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtHazardRecording;
+
+ ///
+ /// GroupPanel3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel3;
+
+ ///
+ /// Form5 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form5;
+
+ ///
+ /// GroupPanel9 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel9;
+
+ ///
+ /// Form11 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form11;
+
+ ///
+ /// txtSafetyAccident 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtSafetyAccident;
+
+ ///
+ /// GroupPanel10 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel10;
+
+ ///
+ /// Form12 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form12;
+
+ ///
+ /// txtEPAccident 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtEPAccident;
+
+ ///
+ /// GroupPanel11 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel11;
+
+ ///
+ /// Form13 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form13;
+
+ ///
+ /// txtOHAccident 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtOHAccident;
+
+ ///
+ /// GroupPanel4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel4;
+
+ ///
+ /// Form6 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form6;
+
+ ///
+ /// txtWorkPermitNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtWorkPermitNum;
+
+ ///
+ /// GroupPanel5 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel5;
+
+ ///
+ /// Form7 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form7;
+
+ ///
+ /// GroupPanel12 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel12;
+
+ ///
+ /// Form14 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form14;
+
+ ///
+ /// txtHiddenDangerDetection 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtHiddenDangerDetection;
+
+ ///
+ /// GroupPanel13 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel13;
+
+ ///
+ /// Form15 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form15;
+
+ ///
+ /// txtRectificationSituation 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtRectificationSituation;
+
+ ///
+ /// GroupPanel14 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel14;
+
+ ///
+ /// Form16 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form16;
+
+ ///
+ /// txtCheckProblemsRectification 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtCheckProblemsRectification;
+
+ ///
+ /// GroupPanel15 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel15;
+
+ ///
+ /// Form17 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form17;
+
+ ///
+ /// txtPendingProject 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtPendingProject;
+
+ ///
+ /// GroupPanel6 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel6;
+
+ ///
+ /// Form8 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form8;
+
+ ///
+ /// txtContractorManagement 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtContractorManagement;
+
+ ///
+ /// GroupPanel7 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel7;
+
+ ///
+ /// Form9 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form9;
+
+ ///
+ /// txtEnvironmentalEmissions 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtEnvironmentalEmissions;
+
+ ///
+ /// GroupPanel8 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel8;
+
+ ///
+ /// Form10 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form10;
+
+ ///
+ /// txtNextMonthWorkPlan 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtNextMonthWorkPlan;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// ToolbarFill2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill2;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/ZHGL/Environmental/ArchitectureReport.aspx b/SGGL/FineUIPro.Web/ZHGL/Environmental/ArchitectureReport.aspx
new file mode 100644
index 00000000..98f0cbc8
--- /dev/null
+++ b/SGGL/FineUIPro.Web/ZHGL/Environmental/ArchitectureReport.aspx
@@ -0,0 +1,138 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ArchitectureReport.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Environmental.ArchitectureReport" %>
+
+
+
+
+
+
+ 建筑行业能源节约与生态环境保护汇总表
+
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/ZHGL/Environmental/ArchitectureReport.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Environmental/ArchitectureReport.aspx.cs
new file mode 100644
index 00000000..bcc7d7de
--- /dev/null
+++ b/SGGL/FineUIPro.Web/ZHGL/Environmental/ArchitectureReport.aspx.cs
@@ -0,0 +1,636 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using BLL;
+using AspNet = System.Web.UI.WebControls;
+
+namespace FineUIPro.Web.ZHGL.Environmental
+{
+ public partial class ArchitectureReport : PageBase
+ {
+ #region 加载页面
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+
+ BLL.ConstValue.InitConstValueDropDownList(this.drpQuarters, ConstValue.Group_0011, false);
+ BLL.ConstValue.InitConstValueDropDownList(this.drpYear, ConstValue.Group_0008, false);
+
+ this.drpUnit.DataTextField = "UnitName";
+ drpUnit.DataValueField = "UnitId";
+ drpUnit.DataSource = BLL.UnitService.GetThisUnitDropDownList();
+ drpUnit.DataBind();
+ this.drpUnit.Readonly = true;
+ ////取上个报表时间
+ DateTime showDate = System.DateTime.Now.AddMonths(-3);
+ this.drpQuarters.SelectedValue = Funs.GetNowQuarterlyByTime(showDate).ToString();
+ drpYear.SelectedValue = showDate.Year.ToString();
+ GetValue();
+ }
+ }
+
+ private void SetEmpty()
+ {
+ this.SimpleForm1.Title = string.Empty;
+ lbUnitName.Text = "填报企业:";
+ lbFillingDate.Text = "填报日期:";
+ lbDutyPerson.Text = "负责人:";
+ lbHandleMan.Text = string.Empty;
+ this.Grid1.DataSource = null;
+ this.Grid1.DataBind();
+ }
+ #endregion
+
+ #region 获取记录值
+ private void GetValue()
+ {
+ int year = Funs.GetNewIntOrZero(drpYear.SelectedValue);
+ int Quarters = Funs.GetNewIntOrZero(drpQuarters.SelectedValue);
+ Model.View_Environmental_ArchitectureReport report = Funs.DB.View_Environmental_ArchitectureReport.FirstOrDefault(e => e.UnitId == drpUnit.SelectedValue && e.Quarters == Quarters && e.Year == year);
+ if (report != null)
+ {
+ string upState = string.Empty;
+ if (report.UpState == BLL.Const.UpState_3)
+ {
+ upState = "(已上报)";
+ }
+ else
+ {
+ upState = "(未上报)";
+ }
+ this.SimpleForm1.Title = "企业建筑行业能源节约与生态环境保护汇总表" + report.QuartersStr + report.YearStr + upState;
+ lbUnitName.Text = "填报企业:" + report.UnitName;
+ if (report.FillingDate != null)
+ {
+ lbFillingDate.Text = "填报日期:" + string.Format("{0:yyyy-MM-dd}", report.FillingDate);
+ }
+ else
+ {
+ lbFillingDate.Text = "填报日期:";
+ }
+ lbDutyPerson.Text = "负责人:" + report.DutyPerson;
+ //if (report.HandleState == BLL.Const.HandleState_1 || report.UpState == BLL.Const.UpState_3)
+ //{
+ // this.lbHandleMan.Hidden = true;
+ //}
+ //else
+ //{
+ // this.lbHandleMan.Hidden = false;
+ // lbHandleMan.Text = "下一步办理人:" + report.UserName;
+ //}
+ var indexNames = ArchitectureReportItemService.GetIndexNames();
+ var units = ArchitectureReportItemService.GetUnits();
+ //之前月度合计值集合
+ List reportItems = BLL.ArchitectureReportItemService.GetItems(report.ArchitectureReportId);
+ List items = new List();
+ foreach (var yearSumItem in reportItems)
+ {
+ Model.ArchitectureReportItem item = new Model.ArchitectureReportItem();
+ item.ArchitectureReportItemId = yearSumItem.ArchitectureReportItemId;
+ item.IndexName = indexNames.First(x => x.Value == yearSumItem.SortIndex).Text;
+ item.Unit = units.First(x => x.Value == yearSumItem.SortIndex).Text;
+ item.SortIndex = yearSumItem.SortIndex;
+ item.BaseNumber = yearSumItem.BaseNumber;
+ item.LastYearValue = yearSumItem.LastYearValue;
+ item.ThisYearValue = yearSumItem.ThisYearValue;
+ item.Rate = yearSumItem.Rate;
+ items.Add(item);
+ }
+ Grid1.DataSource = items;
+ Grid1.DataBind();
+ }
+ else
+ {
+ SetEmpty();
+ }
+ this.GetButtonPower();
+ }
+ #endregion
+
+ #region 关闭弹出窗口
+ ///
+ /// 关闭窗口
+ ///
+ ///
+ ///
+ protected void Window1_Close(object sender, WindowCloseEventArgs e)
+ {
+ GetValue();
+ }
+
+ ///
+ /// 关闭导入弹出窗口
+ ///
+ ///
+ ///
+ protected void Window2_Close(object sender, WindowCloseEventArgs e)
+ {
+ GetValue();
+ }
+
+ ///
+ /// 关闭查看审批信息弹出窗口
+ ///
+ ///
+ ///
+ protected void Window4_Close(object sender, WindowCloseEventArgs e)
+ {
+ GetValue();
+ }
+ #endregion
+
+ #region 排序
+ ///
+ /// 排序
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ {
+ Grid1.SortDirection = e.SortDirection;
+ Grid1.SortField = e.SortField;
+ }
+ #endregion
+
+ #region 获取按钮权限
+ ///
+ /// 获取按钮权限
+ ///
+ ///
+ ///
+ private void GetButtonPower()
+ {
+ var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ArchitectureReportMenuId);
+ if (buttonList.Count() > 0)
+ {
+ if (buttonList.Contains(BLL.Const.BtnAdd))
+ {
+ this.btnNew.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnModify))
+ {
+ this.btnEdit.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnDelete))
+ {
+ this.btnDelete.Hidden = false;
+ }
+ }
+
+ var getReport = BLL.ArchitectureReportService.GetArchitectureReportByUnitIdAndYearAndQuarters(drpUnit.SelectedValue, Funs.GetNewIntOrZero(drpYear.SelectedValue), Funs.GetNewIntOrZero(drpQuarters.SelectedValue));
+ this.btnAudit1.Hidden = true;
+ this.btnAudit2.Hidden = true;
+ if (getReport != null)
+ {
+ this.btnNew.Hidden = true;
+ //if (getReport.HandleMan == this.CurrUser.UserId) //当前人是下一步办理入
+ //{
+ // if (getReport.HandleState == BLL.Const.HandleState_2)
+ // {
+ // this.btnAudit1.Hidden = false;
+ // this.btnEdit.Hidden = true;
+ // }
+ // else if (getReport.HandleState == BLL.Const.HandleState_3)
+ // {
+ // this.btnAudit2.Hidden = false;
+ // this.btnEdit.Hidden = true;
+ // }
+ // else if (getReport.HandleState == BLL.Const.HandleState_4)
+ // {
+ this.btnUpdata.Hidden = false;
+ // }
+ //}
+ }
+ }
+ #endregion
+
+ #region 增加、修改、审核、审批、上报、删除
+ ///
+ /// 增加
+ ///
+ ///
+ ///
+ protected void btnNew_Click(object sender, EventArgs e)
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ArchitectureReportSave.aspx?UnitId={0}&&Year={1}&&Quarterss={2}", this.CurrUser.UnitId, this.drpYear.SelectedValue, this.drpQuarters.SelectedValue, "编辑 - ")));
+ }
+
+ ///
+ /// 修改
+ ///
+ ///
+ ///
+ protected void btnEdit_Click(object sender, EventArgs e)
+ {
+ Model.Environmental_ArchitectureReport report = BLL.ArchitectureReportService.GetArchitectureReportByUnitIdAndYearAndQuarters(drpUnit.SelectedValue, Funs.GetNewIntOrZero(drpYear.SelectedValue), Funs.GetNewIntOrZero(drpQuarters.SelectedValue));
+ if (report != null)
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ArchitectureReportSave.aspx?ArchitectureReportId={0}", report.ArchitectureReportId, "编辑 - ")));
+ }
+ else
+ {
+ ShowNotify("所选时间无报表记录!", MessageBoxIcon.Warning);
+ }
+ }
+
+ ///
+ /// 审核
+ ///
+ ///
+ ///
+ protected void btnAudit1_Click(object sender, EventArgs e)
+ {
+ Model.Environmental_ArchitectureReport report = BLL.ArchitectureReportService.GetArchitectureReportByUnitIdAndYearAndQuarters(drpUnit.SelectedValue, Funs.GetNewIntOrZero(drpYear.SelectedValue), Funs.GetNewIntOrZero(drpQuarters.SelectedValue));
+ if (report != null)
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ArchitectureReportSave.aspx?ArchitectureReportId={0}", report.ArchitectureReportId, "编辑 - ")));
+ }
+ else
+ {
+ ShowNotify("所选时间无报表记录!", MessageBoxIcon.Warning);
+ }
+ }
+
+ ///
+ /// 审批
+ ///
+ ///
+ ///
+ protected void btnAudit2_Click(object sender, EventArgs e)
+ {
+ Model.Environmental_ArchitectureReport report = BLL.ArchitectureReportService.GetArchitectureReportByUnitIdAndYearAndQuarters(drpUnit.SelectedValue, Funs.GetNewIntOrZero(drpYear.SelectedValue), Funs.GetNewIntOrZero(drpQuarters.SelectedValue));
+ if (report != null)
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ArchitectureReportSave.aspx?ArchitectureReportId={0}", report.ArchitectureReportId, "编辑 - ")));
+ }
+ else
+ {
+ ShowNotify("所选时间无报表记录!", MessageBoxIcon.Warning);
+ }
+ }
+
+ ///
+ /// 上报
+ ///
+ ///
+ ///
+ protected void btnUpdata_Click(object sender, EventArgs e)
+ {
+ Model.Environmental_ArchitectureReport report = BLL.ArchitectureReportService.GetArchitectureReportByUnitIdAndYearAndQuarters(drpUnit.SelectedValue, Funs.GetNewIntOrZero(drpYear.SelectedValue), Funs.GetNewIntOrZero(drpQuarters.SelectedValue));
+ if (report != null)
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ArchitectureReportSave.aspx?ArchitectureReportId={0}&type=Updata", report.ArchitectureReportId, "编辑 - ")));
+ }
+ else
+ {
+ ShowNotify("所选时间无报表记录!", MessageBoxIcon.Warning);
+ }
+ }
+
+ ///
+ /// 删除
+ ///
+ ///
+ ///
+ protected void btnDelete_Click(object sender, EventArgs e)
+ {
+ Model.Environmental_ArchitectureReport report = BLL.ArchitectureReportService.GetArchitectureReportByUnitIdAndYearAndQuarters(drpUnit.SelectedValue, Funs.GetNewIntOrZero(drpYear.SelectedValue), Funs.GetNewIntOrZero(drpQuarters.SelectedValue));
+ if (report != null)
+ {
+ BLL.LogService.AddSys_Log(this.CurrUser, report.Year.ToString() + "-" + report.Quarters.ToString(), report.ArchitectureReportId, BLL.Const.ArchitectureReportMenuId, BLL.Const.BtnDelete);
+ BLL.ProjectDataFlowSetService.DeleteFlowSetByDataId(report.ArchitectureReportId);
+ BLL.ArchitectureReportItemService.DeleteArchitectureReportItemByArchitectureReportId(report.ArchitectureReportId);
+ BLL.ArchitectureReportService.DeleteArchitectureReportByArchitectureReportId(report.ArchitectureReportId);
+
+ SetEmpty();
+ this.btnNew.Hidden = false;
+ ShowNotify("删除数据成功!", MessageBoxIcon.Success);
+ }
+ else
+ {
+ ShowNotify("所选时间无报表记录!");
+ }
+ }
+ #endregion
+
+ #region 格式化字符串
+ ///
+ /// 把时间转换为文字形式
+ ///
+ ///
+ ///
+ protected string ConvertCompileDate(object CompileDate)
+ {
+ if (CompileDate != null)
+ {
+ return string.Format("{0:yyyy-MM-dd}", CompileDate);
+ }
+ return "";
+ }
+
+ ///
+ /// 把时间转换为文字形式
+ ///
+ ///
+ ///
+ protected string ConvertDate(object ArchitectureReportId)
+ {
+ if (ArchitectureReportId != null)
+ {
+ Model.Environmental_ArchitectureReport report = BLL.ArchitectureReportService.GetArchitectureReportByArchitectureReportId(ArchitectureReportId.ToString());
+ if (report != null)
+ {
+ return report.Year + "年" + report.Quarters + "月";
+ }
+ }
+ return "";
+ }
+ #endregion
+
+ #region 单位下拉选择事件
+ ///
+ /// 单位下拉框联动事件
+ ///
+ ///
+ ///
+ protected void drpUnit_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ var units = BLL.UnitService.GetUnitDropDownList();
+ if (units != null && !string.IsNullOrEmpty(this.drpUnit.SelectedText))
+ {
+ var unit = units.FirstOrDefault(x => x.UnitName == this.drpUnit.SelectedText);
+ if (unit != null)
+ {
+ drpUnit.SelectedValue = unit.UnitId;
+ }
+ }
+
+ GetValue();
+ }
+ #endregion
+
+ #region 月份向前/向后
+ ///
+ /// 前一个月
+ ///
+ ///
+ ///
+ protected void BtnBulletLeft_Click(object sender, EventArgs e)
+ {
+ SetQuartersChange("-");
+ }
+
+ ///
+ /// 后一个月
+ ///
+ ///
+ ///
+ protected void BulletRight_Click(object sender, EventArgs e)
+ {
+ SetQuartersChange("+");
+ }
+
+ ///
+ /// 月份加减变化
+ ///
+ ///
+ private void SetQuartersChange(string type)
+ {
+ DateTime? nowDate = Funs.GetNewDateTime(this.drpYear.SelectedValue + "-" + (Funs.GetNewIntOrZero(this.drpQuarters.SelectedValue) * 3).ToString());
+ if (nowDate.HasValue)
+ {
+ DateTime showDate = new DateTime();
+ if (type == "+")
+ {
+ showDate = nowDate.Value.AddMonths(3);
+ }
+ else
+ {
+ showDate = nowDate.Value.AddMonths(-3);
+ }
+
+ this.drpYear.SelectedValue = showDate.Year.ToString();
+ this.drpQuarters.SelectedValue = Funs.GetNowQuarterlyByTime(showDate).ToString();
+ ///值变化
+ GetValue();
+ }
+ }
+ #endregion
+
+ #region 查看审批信息
+ ///
+ /// 查看审批信息
+ ///
+ ///
+ ///
+ protected void btnSee_Click(object sender, EventArgs e)
+ {
+ Model.Environmental_ArchitectureReport report = BLL.ArchitectureReportService.GetArchitectureReportByUnitIdAndYearAndQuarters(drpUnit.SelectedValue, Funs.GetNewIntOrZero(drpYear.SelectedValue), Funs.GetNewIntOrZero(drpQuarters.SelectedValue));
+ if (report != null)
+ {
+ PageContext.RegisterStartupScript(Window4.GetShowReference(String.Format("ReportAuditSee.aspx?Id={0}", report.ArchitectureReportId, "查看 - ")));
+ }
+ else
+ {
+ ShowNotify("所选月份无记录!", MessageBoxIcon.Warning);
+ }
+ }
+ #endregion
+
+ #region 导出按钮
+ /// 导出按钮
+ ///
+ ///
+ ///
+ protected void btnOut_Click(object sender, EventArgs e)
+ {
+ Response.ClearContent();
+ string filename = Funs.GetNewFileName();
+ Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("建筑行业能源节约与生态环境保护汇总表" + filename, System.Text.Encoding.UTF8) + ".xls");
+ Response.ContentType = "application/excel";
+ Response.ContentEncoding = System.Text.Encoding.UTF8;
+ Response.Write(GetGridTableHtml(Grid1));
+ Response.End();
+
+ }
+
+ ///
+ /// 导出方法
+ ///
+ ///
+ ///
+ private string GetGridTableHtml(Grid grid)
+ {
+ StringBuilder sb = new StringBuilder();
+ MultiHeaderTable mht = new MultiHeaderTable();
+ mht.ResolveMultiHeaderTable(Grid1.Columns);
+ sb.Append("");
+ sb.Append("");
+ foreach (List
");
+ return sb.ToString();
+ }
+
+ #region 多表头处理
+ ///
+ /// 多表头处理
+ ///
+ public class MultiHeaderTable
+ {
+ // 包含 rowspan,colspan 的多表头,方便生成 HTML 的 table 标签
+ public List> MultiTable = new List>();
+ // 最终渲染的列数组
+ public List Columns = new List();
+ public void ResolveMultiHeaderTable(GridColumnCollection columns)
+ {
+ List