diff --git a/DataBase/版本日志/SGGLDB_V2026-09-07-bwj.sql b/DataBase/版本日志/SGGLDB_V2026-09-07-bwj.sql new file mode 100644 index 00000000..aafe3f5a --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2026-09-07-bwj.sql @@ -0,0 +1,418 @@ + +update Sys_Menu set Url='ReportManage/SafeEnvBudget/SafetyManagementData.aspx' where MenuId='25C34386-38FB-4D5D-8AD2-9B72C7F7D4D0' +update Sys_Menu set Url='ReportManage/SafeEnvBudget/SafetyManagementDataTotal.aspx' where MenuId='B2E6FF41-8379-4603-9560-E2DD84080058' +go + +insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('67B8DD7D-6D89-40AB-8576-F4FC7BB6FDA0','25C34386-38FB-4D5D-8AD2-9B72C7F7D4D0','',1) +insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('E2309717-364A-46B5-BCBB-AED4DDAA1017','25C34386-38FB-4D5D-8AD2-9B72C7F7D4D0','޸',2) +insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('4781B06B-E18D-4EDD-96B4-FF2910B1D336','25C34386-38FB-4D5D-8AD2-9B72C7F7D4D0','ɾ',3) +insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('9CC2D1FD-6492-4AE1-B638-6A06427ABB4E','25C34386-38FB-4D5D-8AD2-9B72C7F7D4D0','',4) +go + + +CREATE TABLE [dbo].[SafetyManagementData]( + [DataId] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [UnitId] [nvarchar](50) NULL, + [ReportDate] [datetime] NULL, + [ConAndEPCCount] [int] NULL, + [SurveyAndDesignCount] [int] NULL, + [WorkingHours] [int] NULL, + [SafeDrivingMileage] [int] NULL, + [SubSupervise_InspectionItems] [int] NULL, + [SubSupervise_Inspections] [int] NULL, + [SubSupervise_HSE_Total] [int] NULL, + [SubSupervise_HSE_Larger] [int] NULL, + [SubSupervise_HSE_Generally] [int] NULL, + [SubSupervise_HSE_Slight] [int] NULL, + [SubSupervise_Quality_Total] [int] NULL, + [SubSupervise_Quality_Larger] [int] NULL, + [SubSupervise_Quality_Generally] [int] NULL, + [SubSupervise_Quality_Slight] [int] NULL, + [SubVideo_InspectionItems] [int] NULL, + [SubVideo_InspectionsMin] [int] NULL, + [SubVideo_HSE_Total] [int] NULL, + [SubVideo_HSE_Larger] [int] NULL, + [SubVideo_HSE_Generally] [int] NULL, + [SubVideo_HSE_Slight] [int] NULL, + [SubVideo_Quality_Total] [int] NULL, + [SubVideo_Quality_Larger] [int] NULL, + [SubVideo_Quality_Generally] [int] NULL, + [SubVideo_Quality_Slight] [int] NULL, + [HQ_InspectionItems] [int] NULL, + [HQ_Inspections] [int] NULL, + [HQ_HSE_Total] [int] NULL, + [HQ_HSE_Larger] [int] NULL, + [HQ_HSE_Generally] [int] NULL, + [HQ_HSE_Slight] [int] NULL, + [HQ_Quality_Total] [int] NULL, + [HQ_Quality_Larger] [int] NULL, + [HQ_Quality_Generally] [int] NULL, + [HQ_Quality_Slight] [int] NULL, + [Quality_Employee_Count] [int] NULL, + [Quality_Employee_Score] [int] NULL, + [Quality_Contractor_Count] [int] NULL, + [Quality_Contractor_Score] [int] NULL, + [Quality_Employee_Fine] [int] NULL, + [Quality_Employee_FineAmount] [int] NULL, + [Quality_Contractor_Fine] [int] NULL, + [Quality_Contractor_FineAmount] [int] NULL, + [Quality_Contractor_Deduction] [int] NULL, + [Quality_Contractor_DeductionAmount] [int] NULL, + [Quality_ProjectDepartment_Fine] [int] NULL, + [Quality_ProjectDepartment_FineAmount] [int] NULL, + [HSE_Employee_Count] [int] NULL, + [HSE_Employee_Score] [int] NULL, + [HSE_Contractor_Count] [int] NULL, + [HSE_Contractor_Score] [int] NULL, + [HSE_Employee_Fine] [int] NULL, + [HSE_Employee_FineAmount] [int] NULL, + [HSE_Contractor_Fine] [int] NULL, + [HSE_Contractor_FineAmount] [int] NULL, + [HSE_Contractor_Deduction] [int] NULL, + [HSE_Contractor_DeductionAmount] [int] NULL, + [HSE_ProjectDepartment_Fine] [int] NULL, + [HSE_ProjectDepartment_FineAmount] [int] NULL, + [LeaderSupervision_HSECheck_Leaders] [int] NULL, + [LeaderSupervision_HSECheck_Count] [int] NULL, + [LeaderSupervision_HSECheck_Hazards] [int] NULL, + [LeaderSupervision_SafetyLectures_Leaders] [int] NULL, + [LeaderSupervision_SafetyLectures_Count] [int] NULL, + [LeaderSupervision_SafetyLectures_Attendees] [int] NULL, + [LeaderSupervision_Activities_Leaders] [int] NULL, + [LeaderSupervision_Activities_Count] [int] NULL, + [HSEMeasures_OfficesCount] [int] NULL, + [HSEMeasures_TrainingBooths] [int] NULL, + [HSEMeasures_Toolboxs] [int] NULL, + [HSEMeasures_Consultant_Projects] [int] NULL, + [HSEMeasures_Consultant_Count] [int] NULL, + [HSEMeasures_FiveStar_Star2] [int] NULL, + [HSEMeasures_FiveStar_Star3] [int] NULL, + [HSEMeasures_FiveStar_Star4] [int] NULL, + [HSEMeasures_FiveStar_Star5] [int] NULL, + [HSEMeasures_Contractor_Interviewees] [int] NULL, + [HSEMeasures_PilotProject_Headquarters] [int] NULL, + [HSEMeasures_PilotProject_Branch] [int] NULL, + [Construction_Teams_Totals] [int] NULL, + [Construction_Teams_Compliant] [int] NULL, + [Construction_ModelTeams_Headquarters] [int] NULL, + [Construction_ModelTeams_CPECC] [int] NULL, + [Construction_ModelTeams_Group] [int] NULL, + [HSETraining_ThreeCategory] [int] NULL, + [HSETraining_TrainingPersons] [int] NULL, + [HSETraining_ContractorTraining] [int] NULL, + [CompileMan] [nvarchar](50) NULL, + [CompileDate] [datetime] NULL, + CONSTRAINT [PK_SafetyManagementData] PRIMARY KEY CLUSTERED +( + [DataId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY] +) ON [PRIMARY] +GO + +ALTER TABLE [dbo].[SafetyManagementData] WITH CHECK ADD CONSTRAINT [FK_SafetyManagementData_Base_Project] FOREIGN KEY([ProjectId]) +REFERENCES [dbo].[Base_Project] ([ProjectId]) +GO + +ALTER TABLE [dbo].[SafetyManagementData] CHECK CONSTRAINT [FK_SafetyManagementData_Base_Project] +GO + +ALTER TABLE [dbo].[SafetyManagementData] WITH CHECK ADD CONSTRAINT [FK_SafetyManagementData_Base_Unit] FOREIGN KEY([UnitId]) +REFERENCES [dbo].[Base_Unit] ([UnitId]) +GO + +ALTER TABLE [dbo].[SafetyManagementData] CHECK CONSTRAINT [FK_SafetyManagementData_Base_Unit] +GO + +ALTER TABLE [dbo].[SafetyManagementData] WITH CHECK ADD CONSTRAINT [FK_SafetyManagementData_Sys_User] FOREIGN KEY([CompileMan]) +REFERENCES [dbo].[Sys_User] ([UserId]) +GO + +ALTER TABLE [dbo].[SafetyManagementData] CHECK CONSTRAINT [FK_SafetyManagementData_Sys_User] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'DataId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ŀid' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @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'SafetyManagementData', @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'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'ReportDate' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʩEPCĿ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'ConAndEPCCount' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ŀ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'SurveyAndDesignCount' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'WorkingHours' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫг' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'SafeDrivingMileage' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹ˾ලļල-Ŀ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'SubSupervise_InspectionItems' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹ˾ලļල-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'SubSupervise_Inspections' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹ˾ලļල-HSE-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'SubSupervise_HSE_Total' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹ˾ලļල-HSE-ϴ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'SubSupervise_HSE_Larger' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹ˾ලļල-HSE-һ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'SubSupervise_HSE_Generally' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹ˾ලļල-HSE-΢' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'SubSupervise_HSE_Slight' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹ˾ලļල--' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'SubSupervise_Quality_Total' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹ˾ලļල--ϴ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'SubSupervise_Quality_Larger' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹ˾ලļල--һ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'SubSupervise_Quality_Generally' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹ˾ලļල--΢' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'SubSupervise_Quality_Slight' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹ˾Ƶල-Ŀ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'SubVideo_InspectionItems' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹ˾Ƶල-Ƶලʱ䣨ӣ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'SubVideo_InspectionsMin' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹ˾Ƶල-HSE-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'SubVideo_HSE_Total' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹ˾Ƶල-HSE-ϴ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'SubVideo_HSE_Larger' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹ˾Ƶල-HSE-һ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'SubVideo_HSE_Generally' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹ˾Ƶල-HSE-΢' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'SubVideo_HSE_Slight' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹ˾Ƶල--' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'SubVideo_Quality_Total' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹ˾Ƶල--ϴ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'SubVideo_Quality_Larger' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹ˾Ƶල--һ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'SubVideo_Quality_Generally' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֹ˾Ƶල--΢' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'SubVideo_Quality_Slight' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܲලļල-Ŀ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HQ_InspectionItems' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܲලļල-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HQ_Inspections' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܲලļල-HSE-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HQ_HSE_Total' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܲලļල-HSE-ϴ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HQ_HSE_Larger' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܲලļල-HSE-һ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HQ_HSE_Generally' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܲලļල-HSE-΢' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HQ_HSE_Slight' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܲලļල--' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HQ_Quality_Total' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܲලļල--ϴ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HQ_Quality_Larger' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܲලļල--һ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HQ_Quality_Generally' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܲලļල--΢' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HQ_Quality_Slight' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ƿּ𿼺˴-ԱǷ-˴' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'Quality_Employee_Count' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ƿּ𿼺˴-ԱǷ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'Quality_Employee_Score' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ƿּ𿼺˴-аԱǷ-˴' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'Quality_Contractor_Count' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ƿּ𿼺˴-аԱǷ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'Quality_Contractor_Score' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ƿּ𿼺˴-Ա-˴' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'Quality_Employee_Fine' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ƿּ𿼺˴-Ա-Ԫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'Quality_Employee_FineAmount' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ƿּ𿼺˴-аԱ-˴' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'Quality_Contractor_Fine' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ƿּ𿼺˴-аԱ-Ԫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'Quality_Contractor_FineAmount' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ƿּ𿼺˴-۳аΥԼԪ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'Quality_Contractor_Deduction' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ƿּ𿼺˴-۳аΥԼԪ-Ԫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'Quality_Contractor_DeductionAmount' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ƿּ𿼺˴-ĿԪ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'Quality_ProjectDepartment_Fine' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ƿּ𿼺˴-ĿԪ-Ԫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'Quality_ProjectDepartment_FineAmount' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫǷּ𿼺˴-ԱǷ-˴' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSE_Employee_Count' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫǷּ𿼺˴-ԱǷ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSE_Employee_Score' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫǷּ𿼺˴-аԱǷ-˴' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSE_Contractor_Count' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫǷּ𿼺˴-аԱǷ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSE_Contractor_Score' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫǷּ𿼺˴-Ա-˴' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSE_Employee_Fine' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫǷּ𿼺˴-Ա-Ԫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSE_Employee_FineAmount' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫǷּ𿼺˴-аԱ-˴' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSE_Contractor_Fine' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫǷּ𿼺˴-аԱ-Ԫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSE_Contractor_FineAmount' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫǷּ𿼺˴-۳аΥԼԪ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSE_Contractor_Deduction' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫǷּ𿼺˴-۳аΥԼԪ-Ԫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSE_Contractor_DeductionAmount' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫǷּ𿼺˴-ĿԪ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSE_ProjectDepartment_Fine' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫǷּ𿼺˴-ĿԪ-Ԫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSE_ProjectDepartment_FineAmount' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'쵼ɲHSEƬܻ쵼ӳԱ-HSEƬ-쵼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'LeaderSupervision_HSECheck_Leaders' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'쵼ɲHSEƬܻ쵼ӳԱ-HSEƬ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'LeaderSupervision_HSECheck_Count' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'쵼ɲHSEƬܻ쵼ӳԱ-HSEƬ-HSE' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'LeaderSupervision_HSECheck_Hazards' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'쵼ɲHSEƬܻ쵼ӳԱ-ȫڿ-쵼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'LeaderSupervision_SafetyLectures_Leaders' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'쵼ɲHSEƬܻ쵼ӳԱ-ȫڿ-չ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'LeaderSupervision_SafetyLectures_Count' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'쵼ɲHSEƬܻ쵼ӳԱ-ȫڿ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'LeaderSupervision_SafetyLectures_Attendees' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'쵼ɲHSEƬܻ쵼ӳԱ-ȫ۲빵ͨ-쵼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'LeaderSupervision_Activities_Leaders' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'쵼ɲHSEƬܻ쵼ӳԱ-ȫ۲빵ͨ-չ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'LeaderSupervision_Activities_Count' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʵȫ¾ٴ-ҵɰ칫' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSEMeasures_OfficesCount' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʵȫ¾ٴ-ðȫѵС' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSEMeasures_TrainingBooths' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʵȫ¾ٴ-ðȫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSEMeasures_Toolboxs' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʵȫ¾ٴ-HSE-Ŀ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSEMeasures_Consultant_Projects' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʵȫ¾ٴ-HSE-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSEMeasures_Consultant_Count' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʵȫ¾ٴ-ʩֳǼƻ-2' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSEMeasures_FiveStar_Star2' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʵȫ¾ٴ-ʩֳǼƻ-3' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSEMeasures_FiveStar_Star3' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʵȫ¾ٴ-ʩֳǼƻ-4' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSEMeasures_FiveStar_Star4' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʵȫ¾ٴ-ʩֳǼƻ-5' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSEMeasures_FiveStar_Star5' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʵȫ¾ٴ-аԱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSEMeasures_Contractor_Interviewees' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʵȫ¾ٴ-չȫԵĿ-ܲ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSEMeasures_PilotProject_Headquarters' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʵȫ¾ٴ-չȫԵĿ-ֹ˾' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSEMeasures_PilotProject_Branch' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'վHSE׼-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'Construction_Teams_Totals' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'վHSE׼-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'Construction_Teams_Compliant' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'վHSE׼-ʾ-˾' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'Construction_ModelTeams_Headquarters' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'վHSE׼-ʾ-CPECC' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'Construction_ModelTeams_CPECC' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'վHSE׼-ʾ-Ź˾' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'Construction_ModelTeams_Group' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'HSEѵ-ȫԱѵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSETraining_ThreeCategory' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'HSEѵ-½﹫˾HSEѵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSETraining_TrainingPersons' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'HSEѵ-аԱ볡ѵ˴Σ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @level2type=N'COLUMN',@level2name=N'HSETraining_ContractorTraining' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SafetyManagementData', @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'SafetyManagementData', @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'SafetyManagementData' +GO + + + diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj index 607af473..abc96f42 100644 --- a/SGGL/BLL/BLL.csproj +++ b/SGGL/BLL/BLL.csproj @@ -860,6 +860,7 @@ + diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs index a4344e24..c2876bf1 100644 --- a/SGGL/BLL/Common/Const.cs +++ b/SGGL/BLL/Common/Const.cs @@ -3529,6 +3529,16 @@ namespace BLL /// public const string ProjectSafeEnvBudgetMenuId = "43763381-A158-4FC9-8A20-0499D8F8BD8B"; + /// + /// 安全管理数据(项目级) + /// + public const string ProjectSafetyManagementDataMenuId = "25C34386-38FB-4D5D-8AD2-9B72C7F7D4D0"; + + /// + /// 安全管理数据(公司级) + /// + public const string SafetyManagementDataTotalMenuId = "B2E6FF41-8379-4603-9560-E2DD84080058"; + /// /// 安全危害因素清单 /// diff --git a/SGGL/BLL/ProjectData/ProjectUnitService.cs b/SGGL/BLL/ProjectData/ProjectUnitService.cs index 3f9858ed..a642b231 100644 --- a/SGGL/BLL/ProjectData/ProjectUnitService.cs +++ b/SGGL/BLL/ProjectData/ProjectUnitService.cs @@ -198,5 +198,26 @@ orderby x.UnitType, y.UnitCode select x).ToList(); } + + public static void InitUnitByProjectIdDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease) + { + using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) + { + var pUnit = (from x in db.Project_ProjectUnit + join y in db.Base_Unit on x.UnitId equals y.UnitId + where x.ProjectId == projectId + orderby y.UnitCode + select y).ToList(); + + dropName.DataValueField = "UnitId"; + dropName.DataTextField = "UnitName"; + dropName.DataSource = pUnit; + dropName.DataBind(); + if (isShowPlease) + { + Funs.FineUIPleaseSelect(dropName); + } + } + } } } diff --git a/SGGL/BLL/ReportManage/SafeEnvBudget/SafetyManagementDataService.cs b/SGGL/BLL/ReportManage/SafeEnvBudget/SafetyManagementDataService.cs new file mode 100644 index 00000000..ed3259f5 --- /dev/null +++ b/SGGL/BLL/ReportManage/SafeEnvBudget/SafetyManagementDataService.cs @@ -0,0 +1,258 @@ +using Model; +using NPOI.POIFS.Crypt.Dsig; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + /// + /// 安全管理数据 + /// + public class SafetyManagementDataService + { + /// + /// 根据主键获取安全管理数据 + /// + /// + /// + public static Model.SafetyManagementData GetSafetyManagementDataById(string dataId) + { + return Funs.DB.SafetyManagementData.FirstOrDefault(e => e.DataId == dataId); + } + + /// + /// 添加安全管理数据 + /// + /// + public static void AddSafetyManagementData(Model.SafetyManagementData data) + { + CNPCDB db = Funs.DB; + Model.SafetyManagementData newData = new Model.SafetyManagementData(); + newData.DataId = data.DataId; + newData.ProjectId = data.ProjectId; + newData.UnitId = data.UnitId; + newData.ReportDate = data.ReportDate; + newData.ConAndEPCCount = data.ConAndEPCCount; + newData.SurveyAndDesignCount = data.SurveyAndDesignCount; + newData.WorkingHours = data.WorkingHours; + newData.SafeDrivingMileage = data.SafeDrivingMileage; + newData.SubSupervise_InspectionItems = data.SubSupervise_InspectionItems; + newData.SubSupervise_Inspections = data.SubSupervise_Inspections; + newData.SubSupervise_HSE_Total = data.SubSupervise_HSE_Total; + newData.SubSupervise_HSE_Larger = data.SubSupervise_HSE_Larger; + newData.SubSupervise_HSE_Generally = data.SubSupervise_HSE_Generally; + newData.SubSupervise_HSE_Slight = data.SubSupervise_HSE_Slight; + newData.SubSupervise_Quality_Total = data.SubSupervise_Quality_Total; + newData.SubSupervise_Quality_Larger = data.SubSupervise_Quality_Larger; + newData.SubSupervise_Quality_Generally = data.SubSupervise_Quality_Generally; + newData.SubSupervise_Quality_Slight = data.SubSupervise_Quality_Slight; + newData.SubVideo_InspectionItems = data.SubVideo_InspectionItems; + newData.SubVideo_InspectionsMin = data.SubVideo_InspectionsMin; + newData.SubVideo_HSE_Total = data.SubVideo_HSE_Total; + newData.SubVideo_HSE_Larger = data.SubVideo_HSE_Larger; + newData.SubVideo_HSE_Generally = data.SubVideo_HSE_Generally; + newData.SubVideo_HSE_Slight = data.SubVideo_HSE_Slight; + newData.SubVideo_Quality_Total = data.SubVideo_Quality_Total; + newData.SubVideo_Quality_Larger = data.SubVideo_Quality_Larger; + newData.SubVideo_Quality_Generally = data.SubVideo_Quality_Generally; + newData.SubVideo_Quality_Slight = data.SubVideo_Quality_Slight; + newData.HQ_InspectionItems = data.HQ_InspectionItems; + newData.HQ_Inspections = data.HQ_Inspections; + newData.HQ_HSE_Total = data.HQ_HSE_Total; + newData.HQ_HSE_Larger = data.HQ_HSE_Larger; + newData.HQ_HSE_Generally = data.HQ_HSE_Generally; + newData.HQ_HSE_Slight = data.HQ_HSE_Slight; + newData.HQ_Quality_Total = data.HQ_Quality_Total; + newData.HQ_Quality_Larger = data.HQ_Quality_Larger; + newData.HQ_Quality_Generally = data.HQ_Quality_Generally; + newData.HQ_Quality_Slight = data.HQ_Quality_Slight; + newData.Quality_Employee_Count = data.Quality_Employee_Count; + newData.Quality_Employee_Score = data.Quality_Employee_Score; + newData.Quality_Contractor_Count = data.Quality_Contractor_Count; + newData.Quality_Contractor_Score = data.Quality_Contractor_Score; + newData.Quality_Employee_Fine = data.Quality_Employee_Fine; + newData.Quality_Employee_FineAmount = data.Quality_Employee_FineAmount; + newData.Quality_Contractor_Fine = data.Quality_Contractor_Fine; + newData.Quality_Contractor_FineAmount = data.Quality_Contractor_FineAmount; + newData.Quality_Contractor_Deduction = data.Quality_Contractor_Deduction; + newData.Quality_Contractor_DeductionAmount = data.Quality_Contractor_DeductionAmount; + newData.Quality_ProjectDepartment_Fine = data.Quality_ProjectDepartment_Fine; + newData.Quality_ProjectDepartment_FineAmount = data.Quality_ProjectDepartment_FineAmount; + newData.HSE_Employee_Count = data.HSE_Employee_Count; + newData.HSE_Employee_Score = data.HSE_Employee_Score; + newData.HSE_Contractor_Count = data.HSE_Contractor_Count; + newData.HSE_Contractor_Score = data.HSE_Contractor_Score; + newData.HSE_Employee_Fine = data.HSE_Employee_Fine; + newData.HSE_Employee_FineAmount = data.HSE_Employee_FineAmount; + newData.HSE_Contractor_Fine = data.HSE_Contractor_Fine; + newData.HSE_Contractor_FineAmount = data.HSE_Contractor_FineAmount; + newData.HSE_Contractor_Deduction = data.HSE_Contractor_Deduction; + newData.HSE_Contractor_DeductionAmount = data.HSE_Contractor_DeductionAmount; + newData.HSE_ProjectDepartment_Fine = data.HSE_ProjectDepartment_Fine; + newData.HSE_ProjectDepartment_FineAmount = data.HSE_ProjectDepartment_FineAmount; + newData.LeaderSupervision_HSECheck_Leaders = data.LeaderSupervision_HSECheck_Leaders; + newData.LeaderSupervision_HSECheck_Count = data.LeaderSupervision_HSECheck_Count; + newData.LeaderSupervision_HSECheck_Hazards = data.LeaderSupervision_HSECheck_Hazards; + newData.LeaderSupervision_SafetyLectures_Leaders = data.LeaderSupervision_SafetyLectures_Leaders; + newData.LeaderSupervision_SafetyLectures_Count = data.LeaderSupervision_SafetyLectures_Count; + newData.LeaderSupervision_SafetyLectures_Attendees = data.LeaderSupervision_SafetyLectures_Attendees; + newData.LeaderSupervision_Activities_Leaders = data.LeaderSupervision_Activities_Leaders; + newData.LeaderSupervision_Activities_Count = data.LeaderSupervision_Activities_Count; + newData.HSEMeasures_OfficesCount = data.HSEMeasures_OfficesCount; + newData.HSEMeasures_TrainingBooths = data.HSEMeasures_TrainingBooths; + newData.HSEMeasures_Toolboxs = data.HSEMeasures_Toolboxs; + newData.HSEMeasures_Consultant_Projects = data.HSEMeasures_Consultant_Projects; + newData.HSEMeasures_Consultant_Count = data.HSEMeasures_Consultant_Count; + newData.HSEMeasures_FiveStar_Star2 = data.HSEMeasures_FiveStar_Star2; + newData.HSEMeasures_FiveStar_Star3 = data.HSEMeasures_FiveStar_Star3; + newData.HSEMeasures_FiveStar_Star4 = data.HSEMeasures_FiveStar_Star4; + newData.HSEMeasures_FiveStar_Star5 = data.HSEMeasures_FiveStar_Star5; + newData.HSEMeasures_Contractor_Interviewees = data.HSEMeasures_Contractor_Interviewees; + newData.HSEMeasures_PilotProject_Headquarters = data.HSEMeasures_PilotProject_Headquarters; + newData.HSEMeasures_PilotProject_Branch = data.HSEMeasures_PilotProject_Branch; + newData.Construction_Teams_Totals = data.Construction_Teams_Totals; + newData.Construction_Teams_Compliant = data.Construction_Teams_Compliant; + newData.Construction_ModelTeams_Headquarters = data.Construction_ModelTeams_Headquarters; + newData.Construction_ModelTeams_CPECC = data.Construction_ModelTeams_CPECC; + newData.Construction_ModelTeams_Group = data.Construction_ModelTeams_Group; + newData.HSETraining_ThreeCategory = data.HSETraining_ThreeCategory; + newData.HSETraining_TrainingPersons = data.HSETraining_TrainingPersons; + newData.HSETraining_ContractorTraining = data.HSETraining_ContractorTraining; + newData.CompileMan = data.CompileMan; + newData.CompileDate = data.CompileDate; + db.SafetyManagementData.InsertOnSubmit(newData); + db.SubmitChanges(); + } + + /// + /// 修改安全管理数据 + /// + /// + public static void UpdateSafetyManagementData(Model.SafetyManagementData data) + { + CNPCDB db = Funs.DB; + Model.SafetyManagementData newData = db.SafetyManagementData.FirstOrDefault(e => e.DataId == data.DataId); + if (newData != null) + { + newData.UnitId = data.UnitId; + newData.ReportDate = data.ReportDate; + newData.ConAndEPCCount = data.ConAndEPCCount; + newData.SurveyAndDesignCount = data.SurveyAndDesignCount; + newData.WorkingHours = data.WorkingHours; + newData.SafeDrivingMileage = data.SafeDrivingMileage; + newData.SubSupervise_InspectionItems = data.SubSupervise_InspectionItems; + newData.SubSupervise_Inspections = data.SubSupervise_Inspections; + newData.SubSupervise_HSE_Total = data.SubSupervise_HSE_Total; + newData.SubSupervise_HSE_Larger = data.SubSupervise_HSE_Larger; + newData.SubSupervise_HSE_Generally = data.SubSupervise_HSE_Generally; + newData.SubSupervise_HSE_Slight = data.SubSupervise_HSE_Slight; + newData.SubSupervise_Quality_Total = data.SubSupervise_Quality_Total; + newData.SubSupervise_Quality_Larger = data.SubSupervise_Quality_Larger; + newData.SubSupervise_Quality_Generally = data.SubSupervise_Quality_Generally; + newData.SubSupervise_Quality_Slight = data.SubSupervise_Quality_Slight; + newData.SubVideo_InspectionItems = data.SubVideo_InspectionItems; + newData.SubVideo_InspectionsMin = data.SubVideo_InspectionsMin; + newData.SubVideo_HSE_Total = data.SubVideo_HSE_Total; + newData.SubVideo_HSE_Larger = data.SubVideo_HSE_Larger; + newData.SubVideo_HSE_Generally = data.SubVideo_HSE_Generally; + newData.SubVideo_HSE_Slight = data.SubVideo_HSE_Slight; + newData.SubVideo_Quality_Total = data.SubVideo_Quality_Total; + newData.SubVideo_Quality_Larger = data.SubVideo_Quality_Larger; + newData.SubVideo_Quality_Generally = data.SubVideo_Quality_Generally; + newData.SubVideo_Quality_Slight = data.SubVideo_Quality_Slight; + newData.HQ_InspectionItems = data.HQ_InspectionItems; + newData.HQ_Inspections = data.HQ_Inspections; + newData.HQ_HSE_Total = data.HQ_HSE_Total; + newData.HQ_HSE_Larger = data.HQ_HSE_Larger; + newData.HQ_HSE_Generally = data.HQ_HSE_Generally; + newData.HQ_HSE_Slight = data.HQ_HSE_Slight; + newData.HQ_Quality_Total = data.HQ_Quality_Total; + newData.HQ_Quality_Larger = data.HQ_Quality_Larger; + newData.HQ_Quality_Generally = data.HQ_Quality_Generally; + newData.HQ_Quality_Slight = data.HQ_Quality_Slight; + newData.Quality_Employee_Count = data.Quality_Employee_Count; + newData.Quality_Employee_Score = data.Quality_Employee_Score; + newData.Quality_Contractor_Count = data.Quality_Contractor_Count; + newData.Quality_Contractor_Score = data.Quality_Contractor_Score; + newData.Quality_Employee_Fine = data.Quality_Employee_Fine; + newData.Quality_Employee_FineAmount = data.Quality_Employee_FineAmount; + newData.Quality_Contractor_Fine = data.Quality_Contractor_Fine; + newData.Quality_Contractor_FineAmount = data.Quality_Contractor_FineAmount; + newData.Quality_Contractor_Deduction = data.Quality_Contractor_Deduction; + newData.Quality_Contractor_DeductionAmount = data.Quality_Contractor_DeductionAmount; + newData.Quality_ProjectDepartment_Fine = data.Quality_ProjectDepartment_Fine; + newData.Quality_ProjectDepartment_FineAmount = data.Quality_ProjectDepartment_FineAmount; + newData.HSE_Employee_Count = data.HSE_Employee_Count; + newData.HSE_Employee_Score = data.HSE_Employee_Score; + newData.HSE_Contractor_Count = data.HSE_Contractor_Count; + newData.HSE_Contractor_Score = data.HSE_Contractor_Score; + newData.HSE_Employee_Fine = data.HSE_Employee_Fine; + newData.HSE_Employee_FineAmount = data.HSE_Employee_FineAmount; + newData.HSE_Contractor_Fine = data.HSE_Contractor_Fine; + newData.HSE_Contractor_FineAmount = data.HSE_Contractor_FineAmount; + newData.HSE_Contractor_Deduction = data.HSE_Contractor_Deduction; + newData.HSE_Contractor_DeductionAmount = data.HSE_Contractor_DeductionAmount; + newData.HSE_ProjectDepartment_Fine = data.HSE_ProjectDepartment_Fine; + newData.HSE_ProjectDepartment_FineAmount = data.HSE_ProjectDepartment_FineAmount; + newData.LeaderSupervision_HSECheck_Leaders = data.LeaderSupervision_HSECheck_Leaders; + newData.LeaderSupervision_HSECheck_Count = data.LeaderSupervision_HSECheck_Count; + newData.LeaderSupervision_HSECheck_Hazards = data.LeaderSupervision_HSECheck_Hazards; + newData.LeaderSupervision_SafetyLectures_Leaders = data.LeaderSupervision_SafetyLectures_Leaders; + newData.LeaderSupervision_SafetyLectures_Count = data.LeaderSupervision_SafetyLectures_Count; + newData.LeaderSupervision_SafetyLectures_Attendees = data.LeaderSupervision_SafetyLectures_Attendees; + newData.LeaderSupervision_Activities_Leaders = data.LeaderSupervision_Activities_Leaders; + newData.LeaderSupervision_Activities_Count = data.LeaderSupervision_Activities_Count; + newData.HSEMeasures_OfficesCount = data.HSEMeasures_OfficesCount; + newData.HSEMeasures_TrainingBooths = data.HSEMeasures_TrainingBooths; + newData.HSEMeasures_Toolboxs = data.HSEMeasures_Toolboxs; + newData.HSEMeasures_Consultant_Projects = data.HSEMeasures_Consultant_Projects; + newData.HSEMeasures_Consultant_Count = data.HSEMeasures_Consultant_Count; + newData.HSEMeasures_FiveStar_Star2 = data.HSEMeasures_FiveStar_Star2; + newData.HSEMeasures_FiveStar_Star3 = data.HSEMeasures_FiveStar_Star3; + newData.HSEMeasures_FiveStar_Star4 = data.HSEMeasures_FiveStar_Star4; + newData.HSEMeasures_FiveStar_Star5 = data.HSEMeasures_FiveStar_Star5; + newData.HSEMeasures_Contractor_Interviewees = data.HSEMeasures_Contractor_Interviewees; + newData.HSEMeasures_PilotProject_Headquarters = data.HSEMeasures_PilotProject_Headquarters; + newData.HSEMeasures_PilotProject_Branch = data.HSEMeasures_PilotProject_Branch; + newData.Construction_Teams_Totals = data.Construction_Teams_Totals; + newData.Construction_Teams_Compliant = data.Construction_Teams_Compliant; + newData.Construction_ModelTeams_Headquarters = data.Construction_ModelTeams_Headquarters; + newData.Construction_ModelTeams_CPECC = data.Construction_ModelTeams_CPECC; + newData.Construction_ModelTeams_Group = data.Construction_ModelTeams_Group; + newData.HSETraining_ThreeCategory = data.HSETraining_ThreeCategory; + newData.HSETraining_TrainingPersons = data.HSETraining_TrainingPersons; + newData.HSETraining_ContractorTraining = data.HSETraining_ContractorTraining; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除安全管理数据 + /// + /// + public static void DeleteSafetyManagementDataByDataId(string dataId) + { + CNPCDB db = Funs.DB; + Model.SafetyManagementData data = db.SafetyManagementData.FirstOrDefault(e => e.DataId == dataId); + if (data != null) + { + db.SafetyManagementData.DeleteOnSubmit(data); + db.SubmitChanges(); + } + } + + /// + /// 根据报告日期获取安全管理数据 + /// + /// + /// + /// + public static Model.SafetyManagementData GetSafetyManagementDataByReportDate(string projectId, string unitId, DateTime? reportDate) + { + return Funs.DB.SafetyManagementData.FirstOrDefault(e => e.ProjectId == projectId && e.UnitId == unitId && e.ReportDate == reportDate); + } + } +} diff --git a/SGGL/BLL/SysManage/UnitService.cs b/SGGL/BLL/SysManage/UnitService.cs index f640187e..7b5d6e77 100644 --- a/SGGL/BLL/SysManage/UnitService.cs +++ b/SGGL/BLL/SysManage/UnitService.cs @@ -956,5 +956,17 @@ namespace BLL return q; } } + + public static void InitAllUnitDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease) + { + dropName.DataValueField = "UnitId"; + dropName.DataTextField = "UnitName"; + dropName.DataSource = (from x in Funs.DB.Base_Unit orderby x.UnitCode select x).ToList(); + dropName.DataBind(); + if (isShowPlease) + { + Funs.FineUIPleaseSelect(dropName); + } + } } } diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 9006e02b..1c4328fc 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -2602,6 +2602,9 @@ + + + @@ -17623,6 +17626,27 @@ SafeEnvBudgetEdit.aspx + + SafetyManagementData.aspx + ASPXCodeBehind + + + SafetyManagementData.aspx + + + SafetyManagementDataEdit.aspx + ASPXCodeBehind + + + SafetyManagementDataEdit.aspx + + + SafetyManagementDataTotal.aspx + ASPXCodeBehind + + + SafetyManagementDataTotal.aspx + PrintDesigner.aspx ASPXCodeBehind @@ -20359,7 +20383,7 @@ - + diff --git a/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementData.aspx b/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementData.aspx new file mode 100644 index 00000000..cf123dcb --- /dev/null +++ b/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementData.aspx @@ -0,0 +1,330 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SafetyManagementData.aspx.cs" Inherits="FineUIPro.Web.ReportManage.SafeEnvBudget.SafetyManagementData" %> + + + + + + + 安全管理数据(项目级) + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementData.aspx.cs b/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementData.aspx.cs new file mode 100644 index 00000000..b941fb27 --- /dev/null +++ b/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementData.aspx.cs @@ -0,0 +1,435 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Text; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.ReportManage.SafeEnvBudget +{ + public partial class SafetyManagementData : PageBase + { + #region 定义项 + /// + /// 项目id + /// + 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.ProjectId) + { + this.ProjectId = Request.Params["projectId"]; + } + ////权限按钮方法 + this.GetButtonPower(); + btnNew.OnClientClick = Window1.GetShowReference("SafetyManagementDataEdit.aspx") + "return false;"; + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + // 绑定表格 + BindGrid(); + } + } + + private DataTable GetSourceDataTable() + { + string strSql = @" select s.DataId, +s.ProjectId, +s.UnitId, +s.ReportDate, +s.ConAndEPCCount, +s.SurveyAndDesignCount, +s.WorkingHours, +s.SafeDrivingMileage, +s.SubSupervise_InspectionItems, +s.SubSupervise_Inspections, +s.SubSupervise_HSE_Total, +s.SubSupervise_HSE_Larger, +s.SubSupervise_HSE_Generally, +s.SubSupervise_HSE_Slight, +s.SubSupervise_Quality_Total, +s.SubSupervise_Quality_Larger, +s.SubSupervise_Quality_Generally, +s.SubSupervise_Quality_Slight, +s.SubVideo_InspectionItems, +s.SubVideo_InspectionsMin, +s.SubVideo_HSE_Total, +s.SubVideo_HSE_Larger, +s.SubVideo_HSE_Generally, +s.SubVideo_HSE_Slight, +s.SubVideo_Quality_Total, +s.SubVideo_Quality_Larger, +s.SubVideo_Quality_Generally, +s.SubVideo_Quality_Slight, +s.HQ_InspectionItems, +s.HQ_Inspections, +s.HQ_HSE_Total, +s.HQ_HSE_Larger, +s.HQ_HSE_Generally, +s.HQ_HSE_Slight, +s.HQ_Quality_Total, +s.HQ_Quality_Larger, +s.HQ_Quality_Generally, +s.HQ_Quality_Slight, +s.Quality_Employee_Count, +s.Quality_Employee_Score, +s.Quality_Contractor_Count, +s.Quality_Contractor_Score, +s.Quality_Employee_Fine, +s.Quality_Employee_FineAmount, +s.Quality_Contractor_Fine, +s.Quality_Contractor_FineAmount, +s.Quality_Contractor_Deduction, +s.Quality_Contractor_DeductionAmount, +s.Quality_ProjectDepartment_Fine, +s.Quality_ProjectDepartment_FineAmount, +s.HSE_Employee_Count, +s.HSE_Employee_Score, +s.HSE_Contractor_Count, +s.HSE_Contractor_Score, +s.HSE_Employee_Fine, +s.HSE_Employee_FineAmount, +s.HSE_Contractor_Fine, +s.HSE_Contractor_FineAmount, +s.HSE_Contractor_Deduction, +s.HSE_Contractor_DeductionAmount, +s.HSE_ProjectDepartment_Fine, +s.HSE_ProjectDepartment_FineAmount, +s.LeaderSupervision_HSECheck_Leaders, +s.LeaderSupervision_HSECheck_Count, +s.LeaderSupervision_HSECheck_Hazards, +s.LeaderSupervision_SafetyLectures_Leaders, +s.LeaderSupervision_SafetyLectures_Count, +s.LeaderSupervision_SafetyLectures_Attendees, +s.LeaderSupervision_Activities_Leaders, +s.LeaderSupervision_Activities_Count, +s.HSEMeasures_OfficesCount, +s.HSEMeasures_TrainingBooths, +s.HSEMeasures_Toolboxs, +s.HSEMeasures_Consultant_Projects, +s.HSEMeasures_Consultant_Count, +s.HSEMeasures_FiveStar_Star2, +s.HSEMeasures_FiveStar_Star3, +s.HSEMeasures_FiveStar_Star4, +s.HSEMeasures_FiveStar_Star5, +s.HSEMeasures_Contractor_Interviewees, +s.HSEMeasures_PilotProject_Headquarters, +s.HSEMeasures_PilotProject_Branch, +s.Construction_Teams_Totals, +s.Construction_Teams_Compliant, +s.Construction_ModelTeams_Headquarters, +s.Construction_ModelTeams_CPECC, +s.Construction_ModelTeams_Group, +s.HSETraining_ThreeCategory, +s.HSETraining_TrainingPersons, +s.HSETraining_ContractorTraining, +s.CompileMan, +s.CompileDate, +u.UnitName +from SafetyManagementData as s +left join Base_Unit as u on u.UnitId = s.UnitId where s.ProjectId=@projectId "; + List listStr = new List(); + listStr.Add(new SqlParameter("@projectId", this.CurrUser.LoginProjectId)); + if (!string.IsNullOrEmpty(this.txtStartTime.Text.Trim())) + { + strSql += " AND s.ReportDate >= @StartTime"; + listStr.Add(new SqlParameter("@StartTime", Funs.GetNewDateTime(this.txtStartTime.Text.Trim()))); + } + if (!string.IsNullOrEmpty(this.txtEndTime.Text.Trim())) + { + strSql += " AND s.ReportDate <= @EndTime"; + listStr.Add(new SqlParameter("@EndTime", Funs.GetNewDateTime(this.txtEndTime.Text.Trim()))); + } + + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + return tb; + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + DataTable tb = GetSourceDataTable(); + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 表排序、分页、关闭窗口 + /// + /// 分页 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid1.PageIndex = e.NewPageIndex; + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + BindGrid(); + } + + /// + /// 分页显示条数下拉框 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 关闭弹出窗 + /// + /// + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #endregion + + #region Grid双击事件 + /// + /// Grid行双击事件 + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + btnMenuModify_Click(null, null); + } + #endregion + + #region 编辑 + /// + /// 编辑按钮 + /// + /// + /// + protected void btnMenuModify_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + string rowId = Grid1.SelectedRowID; + if (!string.IsNullOrEmpty(rowId)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SafetyManagementDataEdit.aspx?dataId={0}", rowId, "编辑 - "))); + } + } + #endregion + + #region 删除 + /// + /// 批量删除 + /// + /// + /// + protected void btnMenuDel_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + var data = BLL.SafetyManagementDataService.GetSafetyManagementDataById(rowID); + if (data != null) + { + BLL.LogService.AddSys_Log(this.CurrUser, data.DataId, data.DataId, BLL.Const.ProjectSafetyManagementDataMenuId, BLL.Const.BtnDelete); + BLL.SafetyManagementDataService.DeleteSafetyManagementDataByDataId(rowID); + } + } + BindGrid(); + ShowNotify("删除数据成功!"); + } + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + try + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ProjectSafetyManagementDataMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnAdd)) + { + this.btnNew.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnModify)) + { + this.btnMenuModify.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnMenuDel.Hidden = false; + } + } + } + catch (Exception e) + { + + } + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + DateTime? startTime = Funs.GetNewDateTime(this.txtStartTime.Text.Trim()); + DateTime? endTime = Funs.GetNewDateTime(this.txtEndTime.Text.Trim()); + if (startTime > endTime) + { + Alert.ShowInTop("开始日期不能大于结束日期!", MessageBoxIcon.Warning); + return; + } + this.BindGrid(); + } + #endregion + + #region 导出按钮 + /// 导出按钮 + /// + /// + /// + protected void btnOut_Click(object sender, EventArgs e) + { + Response.ClearContent(); + string fileName = System.Web.HttpUtility.UrlEncode($"安全管理数据" + Funs.GetNewFileName(), System.Text.Encoding.UTF8); + Response.AddHeader("content-disposition", "attachment; filename=" + fileName + ".xls"); + Response.ContentType = "application/excel"; + Response.ContentEncoding = System.Text.Encoding.UTF8; + + DataTable dtAll = GetSourceDataTable(); + string html = GetGridMultiHeaderTableHtml(Grid1, dtAll); + Response.Write(html); + Response.End(); + } + + /// + /// 多表头导出 + /// + public string GetGridMultiHeaderTableHtml(Grid grid, DataTable dtSource) + { + StringBuilder sb = new StringBuilder(); + sb.Append(""); + sb.Append(""); + + MultiHeaderTable mht = new MultiHeaderTable(); + mht.ResolveMultiHeaderTable(grid.Columns); + + foreach (List rows in mht.MultiTable) + { + sb.Append(""); + foreach (object[] cell in rows) + { + int rowspan = Convert.ToInt32(cell[0]); + int colspan = Convert.ToInt32(cell[1]); + GridColumn column = cell[2] as GridColumn; + if (column.Hidden == false) + { + sb.AppendFormat("{3}", + rowspan != 1 ? " rowspan=\"" + rowspan + "\"" : "", + colspan != 1 ? " colspan=\"" + colspan + "\"" : "", + colspan != 1 ? " style=\"text-align:center;\"" : "", + column.HeaderText); + } + } + sb.Append(""); + } + + int rowIndex = 0; + foreach (DataRow dr in dtSource.Rows) + { + sb.Append(""); + foreach (GridColumn column in mht.Columns) + { + if (column.ColumnID == "ckbIsSelected" || column.ColumnID == "Punish" || column.ColumnID == "Del") + continue; + + string cellValue = ""; + if (column.ColumnID == "tfNumber") + { + //导出序号:全部数据的序号 + cellValue = (rowIndex + 1).ToString(); + } + else if (column.ColumnID == "ReportDate") + { + cellValue = string.Format("{0:yyyy-MM}", dr[column.ColumnID]); + } + else + { + if (!string.IsNullOrEmpty(column.ColumnID) && dtSource.Columns.Contains(column.ColumnID)) + { + cellValue = dr[column.ColumnID] == DBNull.Value ? "" : dr[column.ColumnID].ToString(); + } + } + sb.AppendFormat("", System.Web.HttpUtility.HtmlEncode(cellValue)); + //sb.AppendFormat("", System.Web.HttpUtility.HtmlEncode(cellValue)); + } + sb.Append(""); + rowIndex++; + } + sb.Append("
{0}{0}
"); + return sb.ToString(); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementData.aspx.designer.cs b/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementData.aspx.designer.cs new file mode 100644 index 00000000..a134d79f --- /dev/null +++ b/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementData.aspx.designer.cs @@ -0,0 +1,179 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.ReportManage.SafeEnvBudget +{ + + + public partial class SafetyManagementData + { + + /// + /// 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; + + /// + /// txtStartTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStartTime; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// labNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label labNumber; + + /// + /// 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; + + /// + /// btnMenuModify 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuModify; + + /// + /// btnMenuDel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDel; + } +} diff --git a/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementDataEdit.aspx b/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementDataEdit.aspx new file mode 100644 index 00000000..52a98b07 --- /dev/null +++ b/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementDataEdit.aspx @@ -0,0 +1,689 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SafetyManagementDataEdit.aspx.cs" Inherits="FineUIPro.Web.ReportManage.SafeEnvBudget.SafetyManagementDataEdit" %> + + + + + + + 编辑安全管理数据(项目级) + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementDataEdit.aspx.cs b/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementDataEdit.aspx.cs new file mode 100644 index 00000000..1b4efd54 --- /dev/null +++ b/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementDataEdit.aspx.cs @@ -0,0 +1,281 @@ +using BLL; +using Model; +using NPOI.POIFS.Crypt.Dsig; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.ReportManage.SafeEnvBudget +{ + public partial class SafetyManagementDataEdit : PageBase + { + #region 定义变量 + /// + /// 主键 + /// + public string DataId + { + get + { + return (string)ViewState["DataId"]; + } + set + { + ViewState["DataId"] = value; + } + } + #endregion + + #region 加载页面 + /// + /// 加载数据 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + ///单位 + BLL.ProjectUnitService.InitUnitByProjectIdDropDownList(this.drpUnitId, this.CurrUser.LoginProjectId, true); + this.DataId = Request.Params["dataId"]; + if (!string.IsNullOrEmpty(this.DataId)) + { + var data = BLL.SafetyManagementDataService.GetSafetyManagementDataById(this.DataId); + if (data != null) + { + if (!string.IsNullOrEmpty(data.UnitId)) + { + this.drpUnitId.SelectedValue = data.UnitId; + } + txtReportDate.Text = data.ReportDate.HasValue ? string.Format("{0:yyyy-MM-dd}", data.ReportDate) : ""; + txtConAndEPCCount.Text = data.ConAndEPCCount.HasValue ? data.ConAndEPCCount.ToString() : ""; + txtSurveyAndDesignCount.Text = data.SurveyAndDesignCount.HasValue ? data.SurveyAndDesignCount.ToString() : ""; + txtWorkingHours.Text = data.WorkingHours.HasValue ? data.WorkingHours.ToString() : ""; + txtSafeDrivingMileage.Text = data.SafeDrivingMileage.HasValue ? data.SafeDrivingMileage.ToString() : ""; + txtSubSupervise_InspectionItems.Text = data.SubSupervise_InspectionItems.HasValue ? data.SubSupervise_InspectionItems.ToString() : ""; + txtSubSupervise_Inspections.Text = data.SubSupervise_Inspections.HasValue ? data.SubSupervise_Inspections.ToString() : ""; + txtSubSupervise_HSE_Total.Text = data.SubSupervise_HSE_Total.HasValue ? data.SubSupervise_HSE_Total.ToString() : ""; + txtSubSupervise_HSE_Larger.Text = data.SubSupervise_HSE_Larger.HasValue ? data.SubSupervise_HSE_Larger.ToString() : ""; + txtSubSupervise_HSE_Generally.Text = data.SubSupervise_HSE_Generally.HasValue ? data.SubSupervise_HSE_Generally.ToString() : ""; + txtSubSupervise_HSE_Slight.Text = data.SubSupervise_HSE_Slight.HasValue ? data.SubSupervise_HSE_Slight.ToString() : ""; + txtSubSupervise_Quality_Total.Text = data.SubSupervise_Quality_Total.HasValue ? data.SubSupervise_Quality_Total.ToString() : ""; + txtSubSupervise_Quality_Larger.Text = data.SubSupervise_Quality_Larger.HasValue ? data.SubSupervise_Quality_Larger.ToString() : ""; + txtSubSupervise_Quality_Generally.Text = data.SubSupervise_Quality_Generally.HasValue ? data.SubSupervise_Quality_Generally.ToString() : ""; + txtSubSupervise_Quality_Slight.Text = data.SubSupervise_Quality_Slight.HasValue ? data.SubSupervise_Quality_Slight.ToString() : ""; + txtSubVideo_InspectionItems.Text = data.SubVideo_InspectionItems.HasValue ? data.SubVideo_InspectionItems.ToString() : ""; + txtSubVideo_InspectionsMin.Text = data.SubVideo_InspectionsMin.HasValue ? data.SubVideo_InspectionsMin.ToString() : ""; + txtSubVideo_HSE_Total.Text = data.SubVideo_HSE_Total.HasValue ? data.SubVideo_HSE_Total.ToString() : ""; + txtSubVideo_HSE_Larger.Text = data.SubVideo_HSE_Larger.HasValue ? data.SubVideo_HSE_Larger.ToString() : ""; + txtSubVideo_HSE_Generally.Text = data.SubVideo_HSE_Generally.HasValue ? data.SubVideo_HSE_Generally.ToString() : ""; + txtSubVideo_HSE_Slight.Text = data.SubVideo_HSE_Slight.HasValue ? data.SubVideo_HSE_Slight.ToString() : ""; + txtSubVideo_Quality_Total.Text = data.SubVideo_Quality_Total.HasValue ? data.SubVideo_Quality_Total.ToString() : ""; + txtSubVideo_Quality_Larger.Text = data.SubVideo_Quality_Larger.HasValue ? data.SubVideo_Quality_Larger.ToString() : ""; + txtSubVideo_Quality_Generally.Text = data.SubVideo_Quality_Generally.HasValue ? data.SubVideo_Quality_Generally.ToString() : ""; + txtSubVideo_Quality_Slight.Text = data.SubVideo_Quality_Slight.HasValue ? data.SubVideo_Quality_Slight.ToString() : ""; + txtHQ_InspectionItems.Text = data.HQ_InspectionItems.HasValue ? data.HQ_InspectionItems.ToString() : ""; + txtHQ_Inspections.Text = data.HQ_Inspections.HasValue ? data.HQ_Inspections.ToString() : ""; + txtHQ_HSE_Total.Text = data.HQ_HSE_Total.HasValue ? data.HQ_HSE_Total.ToString() : ""; + txtHQ_HSE_Larger.Text = data.HQ_HSE_Larger.HasValue ? data.HQ_HSE_Larger.ToString() : ""; + txtHQ_HSE_Generally.Text = data.HQ_HSE_Generally.HasValue ? data.HQ_HSE_Generally.ToString() : ""; + txtHQ_HSE_Slight.Text = data.HQ_HSE_Slight.HasValue ? data.HQ_HSE_Slight.ToString() : ""; + txtHQ_Quality_Total.Text = data.HQ_Quality_Total.HasValue ? data.HQ_Quality_Total.ToString() : ""; + txtHQ_Quality_Larger.Text = data.HQ_Quality_Larger.HasValue ? data.HQ_Quality_Larger.ToString() : ""; + txtHQ_Quality_Generally.Text = data.HQ_Quality_Generally.HasValue ? data.HQ_Quality_Generally.ToString() : ""; + txtHQ_Quality_Slight.Text = data.HQ_Quality_Slight.HasValue ? data.HQ_Quality_Slight.ToString() : ""; + txtQuality_Employee_Count.Text = data.Quality_Employee_Count.HasValue ? data.Quality_Employee_Count.ToString() : ""; + txtQuality_Employee_Score.Text = data.Quality_Employee_Score.HasValue ? data.Quality_Employee_Score.ToString() : ""; + txtQuality_Contractor_Count.Text = data.Quality_Contractor_Count.HasValue ? data.Quality_Contractor_Count.ToString() : ""; + txtQuality_Contractor_Score.Text = data.Quality_Contractor_Score.HasValue ? data.Quality_Contractor_Score.ToString() : ""; + txtQuality_Employee_Fine.Text = data.Quality_Employee_Fine.HasValue ? data.Quality_Employee_Fine.ToString() : ""; + txtQuality_Employee_FineAmount.Text = data.Quality_Employee_FineAmount.HasValue ? data.Quality_Employee_FineAmount.ToString() : ""; + txtQuality_Contractor_Fine.Text = data.Quality_Contractor_Fine.HasValue ? data.Quality_Contractor_Fine.ToString() : ""; + txtQuality_Contractor_FineAmount.Text = data.Quality_Contractor_FineAmount.HasValue ? data.Quality_Contractor_FineAmount.ToString() : ""; + txtQuality_Contractor_Deduction.Text = data.Quality_Contractor_Deduction.HasValue ? data.Quality_Contractor_Deduction.ToString() : ""; + txtQuality_Contractor_DeductionAmount.Text = data.Quality_Contractor_DeductionAmount.HasValue ? data.Quality_Contractor_DeductionAmount.ToString() : ""; + txtQuality_ProjectDepartment_Fine.Text = data.Quality_ProjectDepartment_Fine.HasValue ? data.Quality_ProjectDepartment_Fine.ToString() : ""; + txtQuality_ProjectDepartment_FineAmount.Text = data.Quality_ProjectDepartment_FineAmount.HasValue ? data.Quality_ProjectDepartment_FineAmount.ToString() : ""; + txtHSE_Employee_Count.Text = data.HSE_Employee_Count.HasValue ? data.HSE_Employee_Count.ToString() : ""; + txtHSE_Employee_Score.Text = data.HSE_Employee_Score.HasValue ? data.HSE_Employee_Score.ToString() : ""; + txtHSE_Contractor_Count.Text = data.HSE_Contractor_Count.HasValue ? data.HSE_Contractor_Count.ToString() : ""; + txtHSE_Contractor_Score.Text = data.HSE_Contractor_Score.HasValue ? data.HSE_Contractor_Score.ToString() : ""; + txtHSE_Employee_Fine.Text = data.HSE_Employee_Fine.HasValue ? data.HSE_Employee_Fine.ToString() : ""; + txtHSE_Employee_FineAmount.Text = data.HSE_Employee_FineAmount.HasValue ? data.HSE_Employee_FineAmount.ToString() : ""; + txtHSE_Contractor_Fine.Text = data.HSE_Contractor_Fine.HasValue ? data.HSE_Contractor_Fine.ToString() : ""; + txtHSE_Contractor_FineAmount.Text = data.HSE_Contractor_FineAmount.HasValue ? data.HSE_Contractor_FineAmount.ToString() : ""; + txtHSE_Contractor_Deduction.Text = data.HSE_Contractor_Deduction.HasValue ? data.HSE_Contractor_Deduction.ToString() : ""; + txtHSE_Contractor_DeductionAmount.Text = data.HSE_Contractor_DeductionAmount.HasValue ? data.HSE_Contractor_DeductionAmount.ToString() : ""; + txtHSE_ProjectDepartment_Fine.Text = data.HSE_ProjectDepartment_Fine.HasValue ? data.HSE_ProjectDepartment_Fine.ToString() : ""; + txtHSE_ProjectDepartment_FineAmount.Text = data.HSE_ProjectDepartment_FineAmount.HasValue ? data.HSE_ProjectDepartment_FineAmount.ToString() : ""; + txtLeaderSupervision_HSECheck_Leaders.Text = data.LeaderSupervision_HSECheck_Leaders.HasValue ? data.LeaderSupervision_HSECheck_Leaders.ToString() : ""; + txtLeaderSupervision_HSECheck_Count.Text = data.LeaderSupervision_HSECheck_Count.HasValue ? data.LeaderSupervision_HSECheck_Count.ToString() : ""; + txtLeaderSupervision_HSECheck_Hazards.Text = data.LeaderSupervision_HSECheck_Hazards.HasValue ? data.LeaderSupervision_HSECheck_Hazards.ToString() : ""; + txtLeaderSupervision_SafetyLectures_Leaders.Text = data.LeaderSupervision_SafetyLectures_Leaders.HasValue ? data.LeaderSupervision_SafetyLectures_Leaders.ToString() : ""; + txtLeaderSupervision_SafetyLectures_Count.Text = data.LeaderSupervision_SafetyLectures_Count.HasValue ? data.LeaderSupervision_SafetyLectures_Count.ToString() : ""; + txtLeaderSupervision_SafetyLectures_Attendees.Text = data.LeaderSupervision_SafetyLectures_Attendees.HasValue ? data.LeaderSupervision_SafetyLectures_Attendees.ToString() : ""; + txtLeaderSupervision_Activities_Leaders.Text = data.LeaderSupervision_Activities_Leaders.HasValue ? data.LeaderSupervision_Activities_Leaders.ToString() : ""; + txtLeaderSupervision_Activities_Count.Text = data.LeaderSupervision_Activities_Count.HasValue ? data.LeaderSupervision_Activities_Count.ToString() : ""; + txtHSEMeasures_OfficesCount.Text = data.HSEMeasures_OfficesCount.HasValue ? data.HSEMeasures_OfficesCount.ToString() : ""; + txtHSEMeasures_TrainingBooths.Text = data.HSEMeasures_TrainingBooths.HasValue ? data.HSEMeasures_TrainingBooths.ToString() : ""; + txtHSEMeasures_Toolboxs.Text = data.HSEMeasures_Toolboxs.HasValue ? data.HSEMeasures_Toolboxs.ToString() : ""; + txtHSEMeasures_Consultant_Projects.Text = data.HSEMeasures_Consultant_Projects.HasValue ? data.HSEMeasures_Consultant_Projects.ToString() : ""; + txtHSEMeasures_Consultant_Count.Text = data.HSEMeasures_Consultant_Count.HasValue ? data.HSEMeasures_Consultant_Count.ToString() : ""; + txtHSEMeasures_FiveStar_Star2.Text = data.HSEMeasures_FiveStar_Star2.HasValue ? data.HSEMeasures_FiveStar_Star2.ToString() : ""; + txtHSEMeasures_FiveStar_Star3.Text = data.HSEMeasures_FiveStar_Star3.HasValue ? data.HSEMeasures_FiveStar_Star3.ToString() : ""; + txtHSEMeasures_FiveStar_Star4.Text = data.HSEMeasures_FiveStar_Star4.HasValue ? data.HSEMeasures_FiveStar_Star4.ToString() : ""; + txtHSEMeasures_FiveStar_Star5.Text = data.HSEMeasures_FiveStar_Star5.HasValue ? data.HSEMeasures_FiveStar_Star5.ToString() : ""; + txtHSEMeasures_Contractor_Interviewees.Text = data.HSEMeasures_Contractor_Interviewees.HasValue ? data.HSEMeasures_Contractor_Interviewees.ToString() : ""; + txtHSEMeasures_PilotProject_Headquarters.Text = data.HSEMeasures_PilotProject_Headquarters.HasValue ? data.HSEMeasures_PilotProject_Headquarters.ToString() : ""; + txtHSEMeasures_PilotProject_Branch.Text = data.HSEMeasures_PilotProject_Branch.HasValue ? data.HSEMeasures_PilotProject_Branch.ToString() : ""; + txtConstruction_Teams_Totals.Text = data.Construction_Teams_Totals.HasValue ? data.Construction_Teams_Totals.ToString() : ""; + txtConstruction_Teams_Compliant.Text = data.Construction_Teams_Compliant.HasValue ? data.Construction_Teams_Compliant.ToString() : ""; + txtConstruction_ModelTeams_Headquarters.Text = data.Construction_ModelTeams_Headquarters.HasValue ? data.Construction_ModelTeams_Headquarters.ToString() : ""; + txtConstruction_ModelTeams_CPECC.Text = data.Construction_ModelTeams_CPECC.HasValue ? data.Construction_ModelTeams_CPECC.ToString() : ""; + txtConstruction_ModelTeams_Group.Text = data.Construction_ModelTeams_Group.HasValue ? data.Construction_ModelTeams_Group.ToString() : ""; + txtHSETraining_ThreeCategory.Text = data.HSETraining_ThreeCategory.HasValue ? data.HSETraining_ThreeCategory.ToString() : ""; + txtHSETraining_TrainingPersons.Text = data.HSETraining_TrainingPersons.HasValue ? data.HSETraining_TrainingPersons.ToString() : ""; + txtHSETraining_ContractorTraining.Text = data.HSETraining_ContractorTraining.HasValue ? data.HSETraining_ContractorTraining.ToString() : ""; + } + } + else + { + this.txtReportDate.Text = string.Format("{0:yyyy-MM}", DateTime.Now); + } + } + } + #endregion + + #region 保存 + /// + /// 保存数据 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + DateTime? reportDate = Funs.GetNewDateTime(this.txtReportDate.Text.Trim()); + var data = BLL.SafetyManagementDataService.GetSafetyManagementDataByReportDate(this.CurrUser.LoginProjectId, this.drpUnitId.SelectedValue, reportDate); + if (data != null) + { + Alert.ShowInTop("本月安全管理数据已上报!", MessageBoxIcon.Warning); + return; + } + if (this.drpUnitId.SelectedValue == BLL.Const._Null || string.IsNullOrEmpty(this.drpUnitId.SelectedValue)) + { + Alert.ShowInTop("请选择单位!", MessageBoxIcon.Warning); + return; + } + Model.SafetyManagementData newData = new Model.SafetyManagementData(); + newData.UnitId = this.drpUnitId.SelectedValue; + newData.ReportDate = reportDate; + newData.ConAndEPCCount = Funs.GetNewInt(txtConAndEPCCount.Text); + newData.SurveyAndDesignCount = Funs.GetNewInt(txtSurveyAndDesignCount.Text); + newData.WorkingHours = Funs.GetNewInt(txtWorkingHours.Text); + newData.SafeDrivingMileage = Funs.GetNewInt(txtSafeDrivingMileage.Text); + newData.SubSupervise_InspectionItems = Funs.GetNewInt(txtSubSupervise_InspectionItems.Text); + newData.SubSupervise_Inspections = Funs.GetNewInt(txtSubSupervise_Inspections.Text); + newData.SubSupervise_HSE_Total = Funs.GetNewInt(txtSubSupervise_HSE_Total.Text); + newData.SubSupervise_HSE_Larger = Funs.GetNewInt(txtSubSupervise_HSE_Larger.Text); + newData.SubSupervise_HSE_Generally = Funs.GetNewInt(txtSubSupervise_HSE_Generally.Text); + newData.SubSupervise_HSE_Slight = Funs.GetNewInt(txtSubSupervise_HSE_Slight.Text); + newData.SubSupervise_Quality_Total = Funs.GetNewInt(txtSubSupervise_Quality_Total.Text); + newData.SubSupervise_Quality_Larger = Funs.GetNewInt(txtSubSupervise_Quality_Larger.Text); + newData.SubSupervise_Quality_Generally = Funs.GetNewInt(txtSubSupervise_Quality_Generally.Text); + newData.SubSupervise_Quality_Slight = Funs.GetNewInt(txtSubSupervise_Quality_Slight.Text); + newData.SubVideo_InspectionItems = Funs.GetNewInt(txtSubVideo_InspectionItems.Text); + newData.SubVideo_InspectionsMin = Funs.GetNewInt(txtSubVideo_InspectionsMin.Text); + newData.SubVideo_HSE_Total = Funs.GetNewInt(txtSubVideo_HSE_Total.Text); + newData.SubVideo_HSE_Larger = Funs.GetNewInt(txtSubVideo_HSE_Larger.Text); + newData.SubVideo_HSE_Generally = Funs.GetNewInt(txtSubVideo_HSE_Generally.Text); + newData.SubVideo_HSE_Slight = Funs.GetNewInt(txtSubVideo_HSE_Slight.Text); + newData.SubVideo_Quality_Total = Funs.GetNewInt(txtSubVideo_Quality_Total.Text); + newData.SubVideo_Quality_Larger = Funs.GetNewInt(txtSubVideo_Quality_Larger.Text); + newData.SubVideo_Quality_Generally = Funs.GetNewInt(txtSubVideo_Quality_Generally.Text); + newData.SubVideo_Quality_Slight = Funs.GetNewInt(txtSubVideo_Quality_Slight.Text); + newData.HQ_InspectionItems = Funs.GetNewInt(txtHQ_InspectionItems.Text); + newData.HQ_Inspections = Funs.GetNewInt(txtHQ_Inspections.Text); + newData.HQ_HSE_Total = Funs.GetNewInt(txtHQ_HSE_Total.Text); + newData.HQ_HSE_Larger = Funs.GetNewInt(txtHQ_HSE_Larger.Text); + newData.HQ_HSE_Generally = Funs.GetNewInt(txtHQ_HSE_Generally.Text); + newData.HQ_HSE_Slight = Funs.GetNewInt(txtHQ_HSE_Slight.Text); + newData.HQ_Quality_Total = Funs.GetNewInt(txtHQ_Quality_Total.Text); + newData.HQ_Quality_Larger = Funs.GetNewInt(txtHQ_Quality_Larger.Text); + newData.HQ_Quality_Generally = Funs.GetNewInt(txtHQ_Quality_Generally.Text); + newData.HQ_Quality_Slight = Funs.GetNewInt(txtHQ_Quality_Slight.Text); + newData.Quality_Employee_Count = Funs.GetNewInt(txtQuality_Employee_Count.Text); + newData.Quality_Employee_Score = Funs.GetNewInt(txtQuality_Employee_Score.Text); + newData.Quality_Contractor_Count = Funs.GetNewInt(txtQuality_Contractor_Count.Text); + newData.Quality_Contractor_Score = Funs.GetNewInt(txtQuality_Contractor_Score.Text); + newData.Quality_Employee_Fine = Funs.GetNewInt(txtQuality_Employee_Fine.Text); + newData.Quality_Employee_FineAmount = Funs.GetNewInt(txtQuality_Employee_FineAmount.Text); + newData.Quality_Contractor_Fine = Funs.GetNewInt(txtQuality_Contractor_Fine.Text); + newData.Quality_Contractor_FineAmount = Funs.GetNewInt(txtQuality_Contractor_FineAmount.Text); + newData.Quality_Contractor_Deduction = Funs.GetNewInt(txtQuality_Contractor_Deduction.Text); + newData.Quality_Contractor_DeductionAmount = Funs.GetNewInt(txtQuality_Contractor_DeductionAmount.Text); + newData.Quality_ProjectDepartment_Fine = Funs.GetNewInt(txtQuality_ProjectDepartment_Fine.Text); + newData.Quality_ProjectDepartment_FineAmount = Funs.GetNewInt(txtQuality_ProjectDepartment_FineAmount.Text); + newData.HSE_Employee_Count = Funs.GetNewInt(txtHSE_Employee_Count.Text); + newData.HSE_Employee_Score = Funs.GetNewInt(txtHSE_Employee_Score.Text); + newData.HSE_Contractor_Count = Funs.GetNewInt(txtHSE_Contractor_Count.Text); + newData.HSE_Contractor_Score = Funs.GetNewInt(txtHSE_Contractor_Score.Text); + newData.HSE_Employee_Fine = Funs.GetNewInt(txtHSE_Employee_Fine.Text); + newData.HSE_Employee_FineAmount = Funs.GetNewInt(txtHSE_Employee_FineAmount.Text); + newData.HSE_Contractor_Fine = Funs.GetNewInt(txtHSE_Contractor_Fine.Text); + newData.HSE_Contractor_FineAmount = Funs.GetNewInt(txtHSE_Contractor_FineAmount.Text); + newData.HSE_Contractor_Deduction = Funs.GetNewInt(txtHSE_Contractor_Deduction.Text); + newData.HSE_Contractor_DeductionAmount = Funs.GetNewInt(txtHSE_Contractor_DeductionAmount.Text); + newData.HSE_ProjectDepartment_Fine = Funs.GetNewInt(txtHSE_ProjectDepartment_Fine.Text); + newData.HSE_ProjectDepartment_FineAmount = Funs.GetNewInt(txtHSE_ProjectDepartment_FineAmount.Text); + newData.LeaderSupervision_HSECheck_Leaders = Funs.GetNewInt(txtLeaderSupervision_HSECheck_Leaders.Text); + newData.LeaderSupervision_HSECheck_Count = Funs.GetNewInt(txtLeaderSupervision_HSECheck_Count.Text); + newData.LeaderSupervision_HSECheck_Hazards = Funs.GetNewInt(txtLeaderSupervision_HSECheck_Hazards.Text); + newData.LeaderSupervision_SafetyLectures_Leaders = Funs.GetNewInt(txtLeaderSupervision_SafetyLectures_Leaders.Text); + newData.LeaderSupervision_SafetyLectures_Count = Funs.GetNewInt(txtLeaderSupervision_SafetyLectures_Count.Text); + newData.LeaderSupervision_SafetyLectures_Attendees = Funs.GetNewInt(txtLeaderSupervision_SafetyLectures_Attendees.Text); + newData.LeaderSupervision_Activities_Leaders = Funs.GetNewInt(txtLeaderSupervision_Activities_Leaders.Text); + newData.LeaderSupervision_Activities_Count = Funs.GetNewInt(txtLeaderSupervision_Activities_Count.Text); + newData.HSEMeasures_OfficesCount = Funs.GetNewInt(txtHSEMeasures_OfficesCount.Text); + newData.HSEMeasures_TrainingBooths = Funs.GetNewInt(txtHSEMeasures_TrainingBooths.Text); + newData.HSEMeasures_Toolboxs = Funs.GetNewInt(txtHSEMeasures_Toolboxs.Text); + newData.HSEMeasures_Consultant_Projects = Funs.GetNewInt(txtHSEMeasures_Consultant_Projects.Text); + newData.HSEMeasures_Consultant_Count = Funs.GetNewInt(txtHSEMeasures_Consultant_Count.Text); + newData.HSEMeasures_FiveStar_Star2 = Funs.GetNewInt(txtHSEMeasures_FiveStar_Star2.Text); + newData.HSEMeasures_FiveStar_Star3 = Funs.GetNewInt(txtHSEMeasures_FiveStar_Star3.Text); + newData.HSEMeasures_FiveStar_Star4 = Funs.GetNewInt(txtHSEMeasures_FiveStar_Star4.Text); + newData.HSEMeasures_FiveStar_Star5 = Funs.GetNewInt(txtHSEMeasures_FiveStar_Star5.Text); + newData.HSEMeasures_Contractor_Interviewees = Funs.GetNewInt(txtHSEMeasures_Contractor_Interviewees.Text); + newData.HSEMeasures_PilotProject_Headquarters = Funs.GetNewInt(txtHSEMeasures_PilotProject_Headquarters.Text); + newData.HSEMeasures_PilotProject_Branch = Funs.GetNewInt(txtHSEMeasures_PilotProject_Branch.Text); + newData.Construction_Teams_Totals = Funs.GetNewInt(txtConstruction_Teams_Totals.Text); + newData.Construction_Teams_Compliant = Funs.GetNewInt(txtConstruction_Teams_Compliant.Text); + newData.Construction_ModelTeams_Headquarters = Funs.GetNewInt(txtConstruction_ModelTeams_Headquarters.Text); + newData.Construction_ModelTeams_CPECC = Funs.GetNewInt(txtConstruction_ModelTeams_CPECC.Text); + newData.Construction_ModelTeams_Group = Funs.GetNewInt(txtConstruction_ModelTeams_Group.Text); + newData.HSETraining_ThreeCategory = Funs.GetNewInt(txtHSETraining_ThreeCategory.Text); + newData.HSETraining_TrainingPersons = Funs.GetNewInt(txtHSETraining_TrainingPersons.Text); + newData.HSETraining_ContractorTraining = Funs.GetNewInt(txtHSETraining_ContractorTraining.Text); + if (!string.IsNullOrEmpty(this.DataId)) + { + newData.DataId = this.DataId; + BLL.SafetyManagementDataService.UpdateSafetyManagementData(newData); + BLL.LogService.AddSys_Log(this.CurrUser, newData.DataId, newData.DataId, BLL.Const.ProjectSafetyManagementDataMenuId, BLL.Const.BtnModify); + ShowNotify("修改成功!", MessageBoxIcon.Success); + } + else + { + newData.ProjectId = this.CurrUser.LoginProjectId; + newData.CompileMan = this.CurrUser.UserId; + newData.CompileDate = DateTime.Now; + newData.DataId = SQLHelper.GetNewID(); + BLL.SafetyManagementDataService.AddSafetyManagementData(newData); + BLL.LogService.AddSys_Log(this.CurrUser, newData.DataId, newData.DataId, BLL.Const.ProjectSafetyManagementDataMenuId, BLL.Const.BtnAdd); + ShowNotify("保存成功!", MessageBoxIcon.Success); + } + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementDataEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementDataEdit.aspx.designer.cs new file mode 100644 index 00000000..06f67228 --- /dev/null +++ b/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementDataEdit.aspx.designer.cs @@ -0,0 +1,1592 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.ReportManage.SafeEnvBudget +{ + + + public partial class SafetyManagementDataEdit + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtReportDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtReportDate; + + /// + /// drpUnitId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnitId; + + /// + /// Label4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label4; + + /// + /// GroupPanel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel1; + + /// + /// Form2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form2; + + /// + /// txtConAndEPCCount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConAndEPCCount; + + /// + /// txtSurveyAndDesignCount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSurveyAndDesignCount; + + /// + /// txtWorkingHours 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtWorkingHours; + + /// + /// txtSafeDrivingMileage 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSafeDrivingMileage; + + /// + /// GroupPanel2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel2; + + /// + /// Form3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form3; + + /// + /// txtSubSupervise_InspectionItems 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSubSupervise_InspectionItems; + + /// + /// txtSubSupervise_Inspections 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSubSupervise_Inspections; + + /// + /// Label5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label5; + + /// + /// Label6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label6; + + /// + /// GroupPanel3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel3; + + /// + /// Form4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form4; + + /// + /// txtSubSupervise_HSE_Total 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSubSupervise_HSE_Total; + + /// + /// txtSubSupervise_HSE_Larger 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSubSupervise_HSE_Larger; + + /// + /// txtSubSupervise_HSE_Generally 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSubSupervise_HSE_Generally; + + /// + /// txtSubSupervise_HSE_Slight 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSubSupervise_HSE_Slight; + + /// + /// GroupPanel4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel4; + + /// + /// Form5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form5; + + /// + /// txtSubSupervise_Quality_Total 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSubSupervise_Quality_Total; + + /// + /// txtSubSupervise_Quality_Larger 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSubSupervise_Quality_Larger; + + /// + /// txtSubSupervise_Quality_Generally 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSubSupervise_Quality_Generally; + + /// + /// txtSubSupervise_Quality_Slight 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSubSupervise_Quality_Slight; + + /// + /// GroupPanel5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel5; + + /// + /// Form6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form6; + + /// + /// txtSubVideo_InspectionItems 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSubVideo_InspectionItems; + + /// + /// txtSubVideo_InspectionsMin 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSubVideo_InspectionsMin; + + /// + /// Label7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label7; + + /// + /// Label8 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label8; + + /// + /// GroupPanel6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel6; + + /// + /// Form7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form7; + + /// + /// txtSubVideo_HSE_Total 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSubVideo_HSE_Total; + + /// + /// txtSubVideo_HSE_Larger 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSubVideo_HSE_Larger; + + /// + /// txtSubVideo_HSE_Generally 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSubVideo_HSE_Generally; + + /// + /// txtSubVideo_HSE_Slight 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSubVideo_HSE_Slight; + + /// + /// GroupPanel7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel7; + + /// + /// Form8 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form8; + + /// + /// txtSubVideo_Quality_Total 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSubVideo_Quality_Total; + + /// + /// txtSubVideo_Quality_Larger 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSubVideo_Quality_Larger; + + /// + /// txtSubVideo_Quality_Generally 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSubVideo_Quality_Generally; + + /// + /// txtSubVideo_Quality_Slight 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSubVideo_Quality_Slight; + + /// + /// GroupPanel8 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel8; + + /// + /// Form9 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form9; + + /// + /// txtHQ_InspectionItems 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHQ_InspectionItems; + + /// + /// txtHQ_Inspections 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHQ_Inspections; + + /// + /// Label9 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label9; + + /// + /// Label10 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label10; + + /// + /// GroupPanel9 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel9; + + /// + /// Form10 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form10; + + /// + /// txtHQ_HSE_Total 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHQ_HSE_Total; + + /// + /// txtHQ_HSE_Larger 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHQ_HSE_Larger; + + /// + /// txtHQ_HSE_Generally 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHQ_HSE_Generally; + + /// + /// txtHQ_HSE_Slight 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHQ_HSE_Slight; + + /// + /// GroupPanel10 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel10; + + /// + /// Form11 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form11; + + /// + /// txtHQ_Quality_Total 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHQ_Quality_Total; + + /// + /// txtHQ_Quality_Larger 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHQ_Quality_Larger; + + /// + /// txtHQ_Quality_Generally 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHQ_Quality_Generally; + + /// + /// txtHQ_Quality_Slight 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHQ_Quality_Slight; + + /// + /// GroupPanel11 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel11; + + /// + /// Form12 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form12; + + /// + /// GroupPanel12 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel12; + + /// + /// Form13 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form13; + + /// + /// txtQuality_Employee_Count 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtQuality_Employee_Count; + + /// + /// txtQuality_Employee_Score 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtQuality_Employee_Score; + + /// + /// GroupPanel13 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel13; + + /// + /// Form14 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form14; + + /// + /// txtQuality_Contractor_Count 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtQuality_Contractor_Count; + + /// + /// txtQuality_Contractor_Score 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtQuality_Contractor_Score; + + /// + /// GroupPanel14 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel14; + + /// + /// Form15 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form15; + + /// + /// txtQuality_Employee_Fine 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtQuality_Employee_Fine; + + /// + /// txtQuality_Employee_FineAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtQuality_Employee_FineAmount; + + /// + /// GroupPanel15 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel15; + + /// + /// Form16 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form16; + + /// + /// txtQuality_Contractor_Fine 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtQuality_Contractor_Fine; + + /// + /// txtQuality_Contractor_FineAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtQuality_Contractor_FineAmount; + + /// + /// GroupPanel16 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel16; + + /// + /// Form17 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form17; + + /// + /// txtQuality_Contractor_Deduction 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtQuality_Contractor_Deduction; + + /// + /// txtQuality_Contractor_DeductionAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtQuality_Contractor_DeductionAmount; + + /// + /// GroupPanel17 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel17; + + /// + /// Form18 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form18; + + /// + /// txtQuality_ProjectDepartment_Fine 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtQuality_ProjectDepartment_Fine; + + /// + /// txtQuality_ProjectDepartment_FineAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtQuality_ProjectDepartment_FineAmount; + + /// + /// GroupPanel18 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel18; + + /// + /// Form19 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form19; + + /// + /// GroupPanel19 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel19; + + /// + /// Form20 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form20; + + /// + /// txtHSE_Employee_Count 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSE_Employee_Count; + + /// + /// txtHSE_Employee_Score 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSE_Employee_Score; + + /// + /// GroupPanel20 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel20; + + /// + /// Form21 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form21; + + /// + /// txtHSE_Contractor_Count 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSE_Contractor_Count; + + /// + /// txtHSE_Contractor_Score 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSE_Contractor_Score; + + /// + /// GroupPanel21 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel21; + + /// + /// Form22 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form22; + + /// + /// txtHSE_Employee_Fine 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSE_Employee_Fine; + + /// + /// txtHSE_Employee_FineAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSE_Employee_FineAmount; + + /// + /// GroupPanel22 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel22; + + /// + /// Form23 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form23; + + /// + /// txtHSE_Contractor_Fine 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSE_Contractor_Fine; + + /// + /// txtHSE_Contractor_FineAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSE_Contractor_FineAmount; + + /// + /// GroupPanel23 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel23; + + /// + /// Form24 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form24; + + /// + /// txtHSE_Contractor_Deduction 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSE_Contractor_Deduction; + + /// + /// txtHSE_Contractor_DeductionAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSE_Contractor_DeductionAmount; + + /// + /// GroupPanel24 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel24; + + /// + /// Form25 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form25; + + /// + /// txtHSE_ProjectDepartment_Fine 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSE_ProjectDepartment_Fine; + + /// + /// txtHSE_ProjectDepartment_FineAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSE_ProjectDepartment_FineAmount; + + /// + /// GroupPanel25 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel25; + + /// + /// Form26 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form26; + + /// + /// GroupPanel26 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel26; + + /// + /// Form27 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form27; + + /// + /// txtLeaderSupervision_HSECheck_Leaders 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtLeaderSupervision_HSECheck_Leaders; + + /// + /// txtLeaderSupervision_HSECheck_Count 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtLeaderSupervision_HSECheck_Count; + + /// + /// txtLeaderSupervision_HSECheck_Hazards 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtLeaderSupervision_HSECheck_Hazards; + + /// + /// GroupPanel27 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel27; + + /// + /// Form28 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form28; + + /// + /// txtLeaderSupervision_SafetyLectures_Leaders 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtLeaderSupervision_SafetyLectures_Leaders; + + /// + /// txtLeaderSupervision_SafetyLectures_Count 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtLeaderSupervision_SafetyLectures_Count; + + /// + /// txtLeaderSupervision_SafetyLectures_Attendees 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtLeaderSupervision_SafetyLectures_Attendees; + + /// + /// GroupPanel28 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel28; + + /// + /// Form29 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form29; + + /// + /// txtLeaderSupervision_Activities_Leaders 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtLeaderSupervision_Activities_Leaders; + + /// + /// txtLeaderSupervision_Activities_Count 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtLeaderSupervision_Activities_Count; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label1; + + /// + /// GroupPanel29 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel29; + + /// + /// Form30 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form30; + + /// + /// txtHSEMeasures_OfficesCount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSEMeasures_OfficesCount; + + /// + /// txtHSEMeasures_TrainingBooths 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSEMeasures_TrainingBooths; + + /// + /// txtHSEMeasures_Toolboxs 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSEMeasures_Toolboxs; + + /// + /// GroupPanel30 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel30; + + /// + /// Form31 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form31; + + /// + /// txtHSEMeasures_Consultant_Projects 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSEMeasures_Consultant_Projects; + + /// + /// txtHSEMeasures_Consultant_Count 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSEMeasures_Consultant_Count; + + /// + /// GroupPanel31 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel31; + + /// + /// Form32 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form32; + + /// + /// txtHSEMeasures_FiveStar_Star2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSEMeasures_FiveStar_Star2; + + /// + /// txtHSEMeasures_FiveStar_Star3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSEMeasures_FiveStar_Star3; + + /// + /// txtHSEMeasures_FiveStar_Star4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSEMeasures_FiveStar_Star4; + + /// + /// txtHSEMeasures_FiveStar_Star5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSEMeasures_FiveStar_Star5; + + /// + /// GroupPanel36 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel36; + + /// + /// txtHSEMeasures_Contractor_Interviewees 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSEMeasures_Contractor_Interviewees; + + /// + /// GroupPanel32 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel32; + + /// + /// Form33 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form33; + + /// + /// txtHSEMeasures_PilotProject_Headquarters 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSEMeasures_PilotProject_Headquarters; + + /// + /// txtHSEMeasures_PilotProject_Branch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSEMeasures_PilotProject_Branch; + + /// + /// Label3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label3; + + /// + /// GroupPanel33 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel33; + + /// + /// Form34 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form34; + + /// + /// txtConstruction_Teams_Totals 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConstruction_Teams_Totals; + + /// + /// txtConstruction_Teams_Compliant 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConstruction_Teams_Compliant; + + /// + /// Label2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label2; + + /// + /// GroupPanel34 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel34; + + /// + /// Form35 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form35; + + /// + /// txtConstruction_ModelTeams_Headquarters 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConstruction_ModelTeams_Headquarters; + + /// + /// txtConstruction_ModelTeams_CPECC 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConstruction_ModelTeams_CPECC; + + /// + /// txtConstruction_ModelTeams_Group 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConstruction_ModelTeams_Group; + + /// + /// GroupPanel35 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel35; + + /// + /// Form36 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form36; + + /// + /// txtHSETraining_ThreeCategory 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSETraining_ThreeCategory; + + /// + /// txtHSETraining_TrainingPersons 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSETraining_TrainingPersons; + + /// + /// txtHSETraining_ContractorTraining 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtHSETraining_ContractorTraining; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + } +} diff --git a/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementDataTotal.aspx b/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementDataTotal.aspx new file mode 100644 index 00000000..1937a0dc --- /dev/null +++ b/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementDataTotal.aspx @@ -0,0 +1,303 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SafetyManagementDataTotal.aspx.cs" Inherits="FineUIPro.Web.ReportManage.SafeEnvBudget.SafetyManagementDataTotal" %> + + + + + + + 安全管理数据(公司级) + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementDataTotal.aspx.cs b/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementDataTotal.aspx.cs new file mode 100644 index 00000000..8fca4053 --- /dev/null +++ b/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementDataTotal.aspx.cs @@ -0,0 +1,326 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Text; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.ReportManage.SafeEnvBudget +{ + public partial class SafetyManagementDataTotal : PageBase + { + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { ///单位 + BLL.UnitService.InitAllUnitDropDownList(this.drpUnitId, true); + Funs.DropDownPageSize(this.ddlPageSize); + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + // 绑定表格 + BindGrid(); + } + } + + private DataTable GetSourceDataTable() + { + string strSql = @" select + s.UnitId, + s.ReportDate, + MAX(u.UnitName) AS UnitName, + + -- 项目运行 + SUM(s.ConAndEPCCount) AS ConAndEPCCount, + SUM(s.SurveyAndDesignCount) AS SurveyAndDesignCount, + SUM(s.WorkingHours) AS WorkingHours, + SUM(s.SafeDrivingMileage) AS SafeDrivingMileage, + + -- 分公司监督中心监督检查 + SUM(s.SubSupervise_InspectionItems) AS SubSupervise_InspectionItems, + SUM(s.SubSupervise_Inspections) AS SubSupervise_Inspections, + SUM(s.SubSupervise_HSE_Total) AS SubSupervise_HSE_Total, + SUM(s.SubSupervise_HSE_Larger) AS SubSupervise_HSE_Larger, + SUM(s.SubSupervise_HSE_Generally) AS SubSupervise_HSE_Generally, + SUM(s.SubSupervise_HSE_Slight) AS SubSupervise_HSE_Slight, + SUM(s.SubSupervise_Quality_Total) AS SubSupervise_Quality_Total, + SUM(s.SubSupervise_Quality_Larger) AS SubSupervise_Quality_Larger, + SUM(s.SubSupervise_Quality_Generally) AS SubSupervise_Quality_Generally, + SUM(s.SubSupervise_Quality_Slight) AS SubSupervise_Quality_Slight, + + -- 分公司视频监督检查 + SUM(s.SubVideo_InspectionItems) AS SubVideo_InspectionItems, + SUM(s.SubVideo_InspectionsMin) AS SubVideo_InspectionsMin, + SUM(s.SubVideo_HSE_Total) AS SubVideo_HSE_Total, + SUM(s.SubVideo_HSE_Larger) AS SubVideo_HSE_Larger, + SUM(s.SubVideo_HSE_Generally) AS SubVideo_HSE_Generally, + SUM(s.SubVideo_HSE_Slight) AS SubVideo_HSE_Slight, + SUM(s.SubVideo_Quality_Total) AS SubVideo_Quality_Total, + SUM(s.SubVideo_Quality_Larger) AS SubVideo_Quality_Larger, + SUM(s.SubVideo_Quality_Generally) AS SubVideo_Quality_Generally, + SUM(s.SubVideo_Quality_Slight) AS SubVideo_Quality_Slight, + + -- 总部监督中心监督检查 + SUM(s.HQ_InspectionItems) AS HQ_InspectionItems, + SUM(s.HQ_Inspections) AS HQ_Inspections, + SUM(s.HQ_HSE_Total) AS HQ_HSE_Total, + SUM(s.HQ_HSE_Larger) AS HQ_HSE_Larger, + SUM(s.HQ_HSE_Generally) AS HQ_HSE_Generally, + SUM(s.HQ_HSE_Slight) AS HQ_HSE_Slight, + SUM(s.HQ_Quality_Total) AS HQ_Quality_Total, + SUM(s.HQ_Quality_Larger) AS HQ_Quality_Larger, + SUM(s.HQ_Quality_Generally) AS HQ_Quality_Generally, + SUM(s.HQ_Quality_Slight) AS HQ_Quality_Slight, + + -- 质量记分及问责考核 + SUM(s.Quality_Employee_Count) AS Quality_Employee_Count, + SUM(s.Quality_Employee_Score) AS Quality_Employee_Score, + SUM(s.Quality_Contractor_Count) AS Quality_Contractor_Count, + SUM(s.Quality_Contractor_Score) AS Quality_Contractor_Score, + SUM(s.Quality_Employee_Fine) AS Quality_Employee_Fine, + SUM(s.Quality_Employee_FineAmount) AS Quality_Employee_FineAmount, + SUM(s.Quality_Contractor_Fine) AS Quality_Contractor_Fine, + SUM(s.Quality_Contractor_FineAmount) AS Quality_Contractor_FineAmount, + SUM(s.Quality_Contractor_Deduction) AS Quality_Contractor_Deduction, + SUM(s.Quality_Contractor_DeductionAmount) AS Quality_Contractor_DeductionAmount, + SUM(s.Quality_ProjectDepartment_Fine) AS Quality_ProjectDepartment_Fine, + SUM(s.Quality_ProjectDepartment_FineAmount) AS Quality_ProjectDepartment_FineAmount, + + -- 安全记分及问责考核 + SUM(s.HSE_Employee_Count) AS HSE_Employee_Count, + SUM(s.HSE_Employee_Score) AS HSE_Employee_Score, + SUM(s.HSE_Contractor_Count) AS HSE_Contractor_Count, + SUM(s.HSE_Contractor_Score) AS HSE_Contractor_Score, + SUM(s.HSE_Employee_Fine) AS HSE_Employee_Fine, + SUM(s.HSE_Employee_FineAmount) AS HSE_Employee_FineAmount, + SUM(s.HSE_Contractor_Fine) AS HSE_Contractor_Fine, + SUM(s.HSE_Contractor_FineAmount) AS HSE_Contractor_FineAmount, + SUM(s.HSE_Contractor_Deduction) AS HSE_Contractor_Deduction, + SUM(s.HSE_Contractor_DeductionAmount) AS HSE_Contractor_DeductionAmount, + SUM(s.HSE_ProjectDepartment_Fine) AS HSE_ProjectDepartment_Fine, + SUM(s.HSE_ProjectDepartment_FineAmount) AS HSE_ProjectDepartment_FineAmount, + + -- 领导干部HSE片区监管活动 + SUM(s.LeaderSupervision_HSECheck_Leaders) AS LeaderSupervision_HSECheck_Leaders, + SUM(s.LeaderSupervision_HSECheck_Count) AS LeaderSupervision_HSECheck_Count, + SUM(s.LeaderSupervision_HSECheck_Hazards) AS LeaderSupervision_HSECheck_Hazards, + SUM(s.LeaderSupervision_SafetyLectures_Leaders) AS LeaderSupervision_SafetyLectures_Leaders, + SUM(s.LeaderSupervision_SafetyLectures_Count) AS LeaderSupervision_SafetyLectures_Count, + SUM(s.LeaderSupervision_SafetyLectures_Attendees)AS LeaderSupervision_SafetyLectures_Attendees, + SUM(s.LeaderSupervision_Activities_Leaders) AS LeaderSupervision_Activities_Leaders, + SUM(s.LeaderSupervision_Activities_Count) AS LeaderSupervision_Activities_Count, + + -- 落实安全管理新举措 + SUM(s.HSEMeasures_OfficesCount) AS HSEMeasures_OfficesCount, + SUM(s.HSEMeasures_TrainingBooths) AS HSEMeasures_TrainingBooths, + SUM(s.HSEMeasures_Toolboxs) AS HSEMeasures_Toolboxs, + SUM(s.HSEMeasures_Consultant_Projects) AS HSEMeasures_Consultant_Projects, + SUM(s.HSEMeasures_Consultant_Count) AS HSEMeasures_Consultant_Count, + SUM(s.HSEMeasures_FiveStar_Star2) AS HSEMeasures_FiveStar_Star2, + SUM(s.HSEMeasures_FiveStar_Star3) AS HSEMeasures_FiveStar_Star3, + SUM(s.HSEMeasures_FiveStar_Star4) AS HSEMeasures_FiveStar_Star4, + SUM(s.HSEMeasures_FiveStar_Star5) AS HSEMeasures_FiveStar_Star5, + SUM(s.HSEMeasures_Contractor_Interviewees) AS HSEMeasures_Contractor_Interviewees, + SUM(s.HSEMeasures_PilotProject_Headquarters) AS HSEMeasures_PilotProject_Headquarters, + SUM(s.HSEMeasures_PilotProject_Branch) AS HSEMeasures_PilotProject_Branch, + + -- 基层站队HSE标准化建设 + SUM(s.Construction_Teams_Totals) AS Construction_Teams_Totals, + SUM(s.Construction_Teams_Compliant) AS Construction_Teams_Compliant, + SUM(s.Construction_ModelTeams_Headquarters) AS Construction_ModelTeams_Headquarters, + SUM(s.Construction_ModelTeams_CPECC) AS Construction_ModelTeams_CPECC, + SUM(s.Construction_ModelTeams_Group) AS Construction_ModelTeams_Group, + + -- HSE培训 + SUM(s.HSETraining_ThreeCategory) AS HSETraining_ThreeCategory, + SUM(s.HSETraining_TrainingPersons) AS HSETraining_TrainingPersons, + SUM(s.HSETraining_ContractorTraining) AS HSETraining_ContractorTraining +from SafetyManagementData as s +left join Base_Unit as u on u.UnitId = s.UnitId +where 1=1 "; + List listStr = new List(); + if (this.drpUnitId.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpUnitId.SelectedValue)) + { + strSql += " AND s.UnitId =@unitId "; + listStr.Add(new SqlParameter("@unitId", this.drpUnitId.SelectedValue)); + } + if (!string.IsNullOrEmpty(this.txtStartTime.Text.Trim())) + { + strSql += " AND s.ReportDate >= @StartTime"; + listStr.Add(new SqlParameter("@StartTime", Funs.GetNewDateTime(this.txtStartTime.Text.Trim()))); + } + if (!string.IsNullOrEmpty(this.txtEndTime.Text.Trim())) + { + strSql += " AND s.ReportDate <= @EndTime"; + listStr.Add(new SqlParameter("@EndTime", Funs.GetNewDateTime(this.txtEndTime.Text.Trim()))); + } + strSql += " group by s.UnitId,s.ReportDate order by s.UnitId,s.ReportDate desc"; + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + return tb; + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + DataTable tb = GetSourceDataTable(); + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 表排序、分页、关闭窗口 + /// + /// 分页 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid1.PageIndex = e.NewPageIndex; + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + BindGrid(); + } + + /// + /// 分页显示条数下拉框 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + DateTime? startTime = Funs.GetNewDateTime(this.txtStartTime.Text.Trim()); + DateTime? endTime = Funs.GetNewDateTime(this.txtEndTime.Text.Trim()); + if (startTime > endTime) + { + Alert.ShowInTop("开始日期不能大于结束日期!", MessageBoxIcon.Warning); + return; + } + this.BindGrid(); + } + #endregion + + #region 导出按钮 + /// 导出按钮 + /// + /// + /// + protected void btnOut_Click(object sender, EventArgs e) + { + Response.ClearContent(); + string fileName = System.Web.HttpUtility.UrlEncode($"安全管理数据" + Funs.GetNewFileName(), System.Text.Encoding.UTF8); + Response.AddHeader("content-disposition", "attachment; filename=" + fileName + ".xls"); + Response.ContentType = "application/excel"; + Response.ContentEncoding = System.Text.Encoding.UTF8; + + DataTable dtAll = GetSourceDataTable(); + string html = GetGridMultiHeaderTableHtml(Grid1, dtAll); + Response.Write(html); + Response.End(); + } + + /// + /// 多表头导出 + /// + public string GetGridMultiHeaderTableHtml(Grid grid, DataTable dtSource) + { + StringBuilder sb = new StringBuilder(); + sb.Append(""); + sb.Append(""); + + MultiHeaderTable mht = new MultiHeaderTable(); + mht.ResolveMultiHeaderTable(grid.Columns); + + foreach (List rows in mht.MultiTable) + { + sb.Append(""); + foreach (object[] cell in rows) + { + int rowspan = Convert.ToInt32(cell[0]); + int colspan = Convert.ToInt32(cell[1]); + GridColumn column = cell[2] as GridColumn; + if (column.Hidden == false) + { + sb.AppendFormat("{3}", + rowspan != 1 ? " rowspan=\"" + rowspan + "\"" : "", + colspan != 1 ? " colspan=\"" + colspan + "\"" : "", + colspan != 1 ? " style=\"text-align:center;\"" : "", + column.HeaderText); + } + } + sb.Append(""); + } + + int rowIndex = 0; + foreach (DataRow dr in dtSource.Rows) + { + sb.Append(""); + foreach (GridColumn column in mht.Columns) + { + if (column.ColumnID == "ckbIsSelected" || column.ColumnID == "Punish" || column.ColumnID == "Del") + continue; + + string cellValue = ""; + if (column.ColumnID == "tfNumber") + { + //导出序号:全部数据的序号 + cellValue = (rowIndex + 1).ToString(); + } + else if (column.ColumnID == "ReportDate") + { + cellValue = string.Format("{0:yyyy-MM}", dr[column.ColumnID]); + } + else + { + if (!string.IsNullOrEmpty(column.ColumnID) && dtSource.Columns.Contains(column.ColumnID)) + { + cellValue = dr[column.ColumnID] == DBNull.Value ? "" : dr[column.ColumnID].ToString(); + } + } + sb.AppendFormat("", System.Web.HttpUtility.HtmlEncode(cellValue)); + //sb.AppendFormat("", System.Web.HttpUtility.HtmlEncode(cellValue)); + } + sb.Append(""); + rowIndex++; + } + sb.Append("
{0}{0}
"); + return sb.ToString(); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementDataTotal.aspx.designer.cs b/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementDataTotal.aspx.designer.cs new file mode 100644 index 00000000..7e2e9a80 --- /dev/null +++ b/SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafetyManagementDataTotal.aspx.designer.cs @@ -0,0 +1,143 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.ReportManage.SafeEnvBudget +{ + + + public partial class SafetyManagementDataTotal + { + + /// + /// 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; + + /// + /// drpUnitId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnitId; + + /// + /// txtStartTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStartTime; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// labNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label labNumber; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + } +} diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index d722e696..5374871b 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -2138,6 +2138,9 @@ namespace Model partial void InsertSafetyData_SafetyDataPlan(SafetyData_SafetyDataPlan instance); partial void UpdateSafetyData_SafetyDataPlan(SafetyData_SafetyDataPlan instance); partial void DeleteSafetyData_SafetyDataPlan(SafetyData_SafetyDataPlan instance); + partial void InsertSafetyManagementData(SafetyManagementData instance); + partial void UpdateSafetyManagementData(SafetyManagementData instance); + partial void DeleteSafetyManagementData(SafetyManagementData instance); partial void InsertScoreFlowLog(ScoreFlowLog instance); partial void UpdateScoreFlowLog(ScoreFlowLog instance); partial void DeleteScoreFlowLog(ScoreFlowLog instance); @@ -8382,6 +8385,14 @@ namespace Model } } + public System.Data.Linq.Table SafetyManagementData + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table ScoreFlowLog { get @@ -29522,6 +29533,8 @@ namespace Model private EntitySet _SafetyData_SafetyDataPlan; + private EntitySet _SafetyManagementData; + private EntitySet _SecuritySystem_SafetyOrganization; private EntitySet _SitePerson_Checking; @@ -29951,6 +29964,7 @@ namespace Model this._Report_WeekAndMonthReport = new EntitySet(new Action(this.attach_Report_WeekAndMonthReport), new Action(this.detach_Report_WeekAndMonthReport)); this._SafetyData_SafetyDataItem = new EntitySet(new Action(this.attach_SafetyData_SafetyDataItem), new Action(this.detach_SafetyData_SafetyDataItem)); this._SafetyData_SafetyDataPlan = new EntitySet(new Action(this.attach_SafetyData_SafetyDataPlan), new Action(this.detach_SafetyData_SafetyDataPlan)); + this._SafetyManagementData = new EntitySet(new Action(this.attach_SafetyManagementData), new Action(this.detach_SafetyManagementData)); this._SecuritySystem_SafetyOrganization = new EntitySet(new Action(this.attach_SecuritySystem_SafetyOrganization), new Action(this.detach_SecuritySystem_SafetyOrganization)); this._SitePerson_Checking = new EntitySet(new Action(this.attach_SitePerson_Checking), new Action(this.detach_SitePerson_Checking)); this._SitePerson_DayReport_Bak = new EntitySet(new Action(this.attach_SitePerson_DayReport_Bak), new Action(this.detach_SitePerson_DayReport_Bak)); @@ -34136,6 +34150,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SafetyManagementData_Base_Project", Storage="_SafetyManagementData", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet SafetyManagementData + { + get + { + return this._SafetyManagementData; + } + set + { + this._SafetyManagementData.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SecuritySystem_SafetyOrganization_Base_Project", Storage="_SecuritySystem_SafetyOrganization", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] public EntitySet SecuritySystem_SafetyOrganization { @@ -37825,6 +37852,18 @@ namespace Model entity.Base_Project = null; } + private void attach_SafetyManagementData(SafetyManagementData entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_SafetyManagementData(SafetyManagementData entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + private void attach_SecuritySystem_SafetyOrganization(SecuritySystem_SafetyOrganization entity) { this.SendPropertyChanging(); @@ -45087,6 +45126,8 @@ namespace Model private EntitySet _Report_ConstructionProblems; + private EntitySet _SafetyManagementData; + private EntitySet _SecuritySystem_SafetyOrganization; private EntitySet _SitePerson_DayReportDetail_Bak; @@ -45376,6 +45417,7 @@ namespace Model this._QualityAudit_SubUnitQualityAuditDetail = new EntitySet(new Action(this.attach_QualityAudit_SubUnitQualityAuditDetail), new Action(this.detach_QualityAudit_SubUnitQualityAuditDetail)); this._RealName_SynchroSet = new EntitySet(new Action(this.attach_RealName_SynchroSet), new Action(this.detach_RealName_SynchroSet)); this._Report_ConstructionProblems = new EntitySet(new Action(this.attach_Report_ConstructionProblems), new Action(this.detach_Report_ConstructionProblems)); + this._SafetyManagementData = new EntitySet(new Action(this.attach_SafetyManagementData), new Action(this.detach_SafetyManagementData)); this._SecuritySystem_SafetyOrganization = new EntitySet(new Action(this.attach_SecuritySystem_SafetyOrganization), new Action(this.detach_SecuritySystem_SafetyOrganization)); this._SitePerson_DayReportDetail_Bak = new EntitySet(new Action(this.attach_SitePerson_DayReportDetail_Bak), new Action(this.detach_SitePerson_DayReportDetail_Bak)); this._SitePerson_DayReportDetail = new EntitySet(new Action(this.attach_SitePerson_DayReportDetail), new Action(this.detach_SitePerson_DayReportDetail)); @@ -48139,6 +48181,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SafetyManagementData_Base_Unit", Storage="_SafetyManagementData", ThisKey="UnitId", OtherKey="UnitId", DeleteRule="NO ACTION")] + public EntitySet SafetyManagementData + { + get + { + return this._SafetyManagementData; + } + set + { + this._SafetyManagementData.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SecuritySystem_SafetyOrganization_Base_Unit", Storage="_SecuritySystem_SafetyOrganization", ThisKey="UnitId", OtherKey="UnitId", DeleteRule="NO ACTION")] public EntitySet SecuritySystem_SafetyOrganization { @@ -50540,6 +50595,18 @@ namespace Model entity.Base_Unit = null; } + private void attach_SafetyManagementData(SafetyManagementData entity) + { + this.SendPropertyChanging(); + entity.Base_Unit = this; + } + + private void detach_SafetyManagementData(SafetyManagementData entity) + { + this.SendPropertyChanging(); + entity.Base_Unit = null; + } + private void attach_SecuritySystem_SafetyOrganization(SecuritySystem_SafetyOrganization entity) { this.SendPropertyChanging(); @@ -155980,9 +156047,9 @@ namespace Model private string _ProjectId; - private System.Nullable _EnergySavingIndex; + private System.Nullable _EnergySavingIndex; - private System.Nullable _WaterSavingIndex; + private System.Nullable _WaterSavingIndex; private string _EnergySavingSchemes; @@ -155994,13 +156061,13 @@ namespace Model private string _SupportingDocuments; - private System.Nullable _ActualEnergySaving; + private System.Nullable _ActualEnergySaving; - private System.Nullable _ActualWaterSaving; + private System.Nullable _ActualWaterSaving; - private System.Nullable _EnergySavingCompletionRate; + private System.Nullable _EnergySavingCompletionRate; - private System.Nullable _WaterSavingCompletionRate; + private System.Nullable _WaterSavingCompletionRate; private string _CompileMan; @@ -156020,9 +156087,9 @@ namespace Model partial void OnEnergyWaterConservationIdChanged(); partial void OnProjectIdChanging(string value); partial void OnProjectIdChanged(); - partial void OnEnergySavingIndexChanging(System.Nullable value); + partial void OnEnergySavingIndexChanging(System.Nullable value); partial void OnEnergySavingIndexChanged(); - partial void OnWaterSavingIndexChanging(System.Nullable value); + partial void OnWaterSavingIndexChanging(System.Nullable value); partial void OnWaterSavingIndexChanged(); partial void OnEnergySavingSchemesChanging(string value); partial void OnEnergySavingSchemesChanged(); @@ -156034,13 +156101,13 @@ namespace Model partial void OnSummaryChanged(); partial void OnSupportingDocumentsChanging(string value); partial void OnSupportingDocumentsChanged(); - partial void OnActualEnergySavingChanging(System.Nullable value); + partial void OnActualEnergySavingChanging(System.Nullable value); partial void OnActualEnergySavingChanged(); - partial void OnActualWaterSavingChanging(System.Nullable value); + partial void OnActualWaterSavingChanging(System.Nullable value); partial void OnActualWaterSavingChanged(); - partial void OnEnergySavingCompletionRateChanging(System.Nullable value); + partial void OnEnergySavingCompletionRateChanging(System.Nullable value); partial void OnEnergySavingCompletionRateChanged(); - partial void OnWaterSavingCompletionRateChanging(System.Nullable value); + partial void OnWaterSavingCompletionRateChanging(System.Nullable value); partial void OnWaterSavingCompletionRateChanged(); partial void OnCompileManChanging(string value); partial void OnCompileManChanged(); @@ -156101,8 +156168,8 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EnergySavingIndex", DbType="Decimal(18,2)")] - public System.Nullable EnergySavingIndex + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EnergySavingIndex", DbType="Int")] + public System.Nullable EnergySavingIndex { get { @@ -156121,8 +156188,8 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WaterSavingIndex", DbType="Decimal(18,2)")] - public System.Nullable WaterSavingIndex + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WaterSavingIndex", DbType="Int")] + public System.Nullable WaterSavingIndex { get { @@ -156241,8 +156308,8 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ActualEnergySaving", DbType="Decimal(18,2)")] - public System.Nullable ActualEnergySaving + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ActualEnergySaving", DbType="Int")] + public System.Nullable ActualEnergySaving { get { @@ -156261,8 +156328,8 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ActualWaterSaving", DbType="Decimal(18,2)")] - public System.Nullable ActualWaterSaving + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ActualWaterSaving", DbType="Int")] + public System.Nullable ActualWaterSaving { get { @@ -156281,8 +156348,8 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EnergySavingCompletionRate", DbType="Decimal(18,2)")] - public System.Nullable EnergySavingCompletionRate + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EnergySavingCompletionRate", DbType="Int")] + public System.Nullable EnergySavingCompletionRate { get { @@ -156301,8 +156368,8 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WaterSavingCompletionRate", DbType="Decimal(18,2)")] - public System.Nullable WaterSavingCompletionRate + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WaterSavingCompletionRate", DbType="Int")] + public System.Nullable WaterSavingCompletionRate { get { @@ -338284,6 +338351,2375 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.SafetyManagementData")] + public partial class SafetyManagementData : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _DataId; + + private string _ProjectId; + + private string _UnitId; + + private System.Nullable _ReportDate; + + private System.Nullable _ConAndEPCCount; + + private System.Nullable _SurveyAndDesignCount; + + private System.Nullable _WorkingHours; + + private System.Nullable _SafeDrivingMileage; + + private System.Nullable _SubSupervise_InspectionItems; + + private System.Nullable _SubSupervise_Inspections; + + private System.Nullable _SubSupervise_HSE_Total; + + private System.Nullable _SubSupervise_HSE_Larger; + + private System.Nullable _SubSupervise_HSE_Generally; + + private System.Nullable _SubSupervise_HSE_Slight; + + private System.Nullable _SubSupervise_Quality_Total; + + private System.Nullable _SubSupervise_Quality_Larger; + + private System.Nullable _SubSupervise_Quality_Generally; + + private System.Nullable _SubSupervise_Quality_Slight; + + private System.Nullable _SubVideo_InspectionItems; + + private System.Nullable _SubVideo_InspectionsMin; + + private System.Nullable _SubVideo_HSE_Total; + + private System.Nullable _SubVideo_HSE_Larger; + + private System.Nullable _SubVideo_HSE_Generally; + + private System.Nullable _SubVideo_HSE_Slight; + + private System.Nullable _SubVideo_Quality_Total; + + private System.Nullable _SubVideo_Quality_Larger; + + private System.Nullable _SubVideo_Quality_Generally; + + private System.Nullable _SubVideo_Quality_Slight; + + private System.Nullable _HQ_InspectionItems; + + private System.Nullable _HQ_Inspections; + + private System.Nullable _HQ_HSE_Total; + + private System.Nullable _HQ_HSE_Larger; + + private System.Nullable _HQ_HSE_Generally; + + private System.Nullable _HQ_HSE_Slight; + + private System.Nullable _HQ_Quality_Total; + + private System.Nullable _HQ_Quality_Larger; + + private System.Nullable _HQ_Quality_Generally; + + private System.Nullable _HQ_Quality_Slight; + + private System.Nullable _Quality_Employee_Count; + + private System.Nullable _Quality_Employee_Score; + + private System.Nullable _Quality_Contractor_Count; + + private System.Nullable _Quality_Contractor_Score; + + private System.Nullable _Quality_Employee_Fine; + + private System.Nullable _Quality_Employee_FineAmount; + + private System.Nullable _Quality_Contractor_Fine; + + private System.Nullable _Quality_Contractor_FineAmount; + + private System.Nullable _Quality_Contractor_Deduction; + + private System.Nullable _Quality_Contractor_DeductionAmount; + + private System.Nullable _Quality_ProjectDepartment_Fine; + + private System.Nullable _Quality_ProjectDepartment_FineAmount; + + private System.Nullable _HSE_Employee_Count; + + private System.Nullable _HSE_Employee_Score; + + private System.Nullable _HSE_Contractor_Count; + + private System.Nullable _HSE_Contractor_Score; + + private System.Nullable _HSE_Employee_Fine; + + private System.Nullable _HSE_Employee_FineAmount; + + private System.Nullable _HSE_Contractor_Fine; + + private System.Nullable _HSE_Contractor_FineAmount; + + private System.Nullable _HSE_Contractor_Deduction; + + private System.Nullable _HSE_Contractor_DeductionAmount; + + private System.Nullable _HSE_ProjectDepartment_Fine; + + private System.Nullable _HSE_ProjectDepartment_FineAmount; + + private System.Nullable _LeaderSupervision_HSECheck_Leaders; + + private System.Nullable _LeaderSupervision_HSECheck_Count; + + private System.Nullable _LeaderSupervision_HSECheck_Hazards; + + private System.Nullable _LeaderSupervision_SafetyLectures_Leaders; + + private System.Nullable _LeaderSupervision_SafetyLectures_Count; + + private System.Nullable _LeaderSupervision_SafetyLectures_Attendees; + + private System.Nullable _LeaderSupervision_Activities_Leaders; + + private System.Nullable _LeaderSupervision_Activities_Count; + + private System.Nullable _HSEMeasures_OfficesCount; + + private System.Nullable _HSEMeasures_TrainingBooths; + + private System.Nullable _HSEMeasures_Toolboxs; + + private System.Nullable _HSEMeasures_Consultant_Projects; + + private System.Nullable _HSEMeasures_Consultant_Count; + + private System.Nullable _HSEMeasures_FiveStar_Star2; + + private System.Nullable _HSEMeasures_FiveStar_Star3; + + private System.Nullable _HSEMeasures_FiveStar_Star4; + + private System.Nullable _HSEMeasures_FiveStar_Star5; + + private System.Nullable _HSEMeasures_Contractor_Interviewees; + + private System.Nullable _HSEMeasures_PilotProject_Headquarters; + + private System.Nullable _HSEMeasures_PilotProject_Branch; + + private System.Nullable _Construction_Teams_Totals; + + private System.Nullable _Construction_Teams_Compliant; + + private System.Nullable _Construction_ModelTeams_Headquarters; + + private System.Nullable _Construction_ModelTeams_CPECC; + + private System.Nullable _Construction_ModelTeams_Group; + + private System.Nullable _HSETraining_ThreeCategory; + + private System.Nullable _HSETraining_TrainingPersons; + + private System.Nullable _HSETraining_ContractorTraining; + + private string _CompileMan; + + private System.Nullable _CompileDate; + + private EntityRef _Base_Project; + + private EntityRef _Base_Unit; + + private EntityRef _Sys_User; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnDataIdChanging(string value); + partial void OnDataIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnUnitIdChanging(string value); + partial void OnUnitIdChanged(); + partial void OnReportDateChanging(System.Nullable value); + partial void OnReportDateChanged(); + partial void OnConAndEPCCountChanging(System.Nullable value); + partial void OnConAndEPCCountChanged(); + partial void OnSurveyAndDesignCountChanging(System.Nullable value); + partial void OnSurveyAndDesignCountChanged(); + partial void OnWorkingHoursChanging(System.Nullable value); + partial void OnWorkingHoursChanged(); + partial void OnSafeDrivingMileageChanging(System.Nullable value); + partial void OnSafeDrivingMileageChanged(); + partial void OnSubSupervise_InspectionItemsChanging(System.Nullable value); + partial void OnSubSupervise_InspectionItemsChanged(); + partial void OnSubSupervise_InspectionsChanging(System.Nullable value); + partial void OnSubSupervise_InspectionsChanged(); + partial void OnSubSupervise_HSE_TotalChanging(System.Nullable value); + partial void OnSubSupervise_HSE_TotalChanged(); + partial void OnSubSupervise_HSE_LargerChanging(System.Nullable value); + partial void OnSubSupervise_HSE_LargerChanged(); + partial void OnSubSupervise_HSE_GenerallyChanging(System.Nullable value); + partial void OnSubSupervise_HSE_GenerallyChanged(); + partial void OnSubSupervise_HSE_SlightChanging(System.Nullable value); + partial void OnSubSupervise_HSE_SlightChanged(); + partial void OnSubSupervise_Quality_TotalChanging(System.Nullable value); + partial void OnSubSupervise_Quality_TotalChanged(); + partial void OnSubSupervise_Quality_LargerChanging(System.Nullable value); + partial void OnSubSupervise_Quality_LargerChanged(); + partial void OnSubSupervise_Quality_GenerallyChanging(System.Nullable value); + partial void OnSubSupervise_Quality_GenerallyChanged(); + partial void OnSubSupervise_Quality_SlightChanging(System.Nullable value); + partial void OnSubSupervise_Quality_SlightChanged(); + partial void OnSubVideo_InspectionItemsChanging(System.Nullable value); + partial void OnSubVideo_InspectionItemsChanged(); + partial void OnSubVideo_InspectionsMinChanging(System.Nullable value); + partial void OnSubVideo_InspectionsMinChanged(); + partial void OnSubVideo_HSE_TotalChanging(System.Nullable value); + partial void OnSubVideo_HSE_TotalChanged(); + partial void OnSubVideo_HSE_LargerChanging(System.Nullable value); + partial void OnSubVideo_HSE_LargerChanged(); + partial void OnSubVideo_HSE_GenerallyChanging(System.Nullable value); + partial void OnSubVideo_HSE_GenerallyChanged(); + partial void OnSubVideo_HSE_SlightChanging(System.Nullable value); + partial void OnSubVideo_HSE_SlightChanged(); + partial void OnSubVideo_Quality_TotalChanging(System.Nullable value); + partial void OnSubVideo_Quality_TotalChanged(); + partial void OnSubVideo_Quality_LargerChanging(System.Nullable value); + partial void OnSubVideo_Quality_LargerChanged(); + partial void OnSubVideo_Quality_GenerallyChanging(System.Nullable value); + partial void OnSubVideo_Quality_GenerallyChanged(); + partial void OnSubVideo_Quality_SlightChanging(System.Nullable value); + partial void OnSubVideo_Quality_SlightChanged(); + partial void OnHQ_InspectionItemsChanging(System.Nullable value); + partial void OnHQ_InspectionItemsChanged(); + partial void OnHQ_InspectionsChanging(System.Nullable value); + partial void OnHQ_InspectionsChanged(); + partial void OnHQ_HSE_TotalChanging(System.Nullable value); + partial void OnHQ_HSE_TotalChanged(); + partial void OnHQ_HSE_LargerChanging(System.Nullable value); + partial void OnHQ_HSE_LargerChanged(); + partial void OnHQ_HSE_GenerallyChanging(System.Nullable value); + partial void OnHQ_HSE_GenerallyChanged(); + partial void OnHQ_HSE_SlightChanging(System.Nullable value); + partial void OnHQ_HSE_SlightChanged(); + partial void OnHQ_Quality_TotalChanging(System.Nullable value); + partial void OnHQ_Quality_TotalChanged(); + partial void OnHQ_Quality_LargerChanging(System.Nullable value); + partial void OnHQ_Quality_LargerChanged(); + partial void OnHQ_Quality_GenerallyChanging(System.Nullable value); + partial void OnHQ_Quality_GenerallyChanged(); + partial void OnHQ_Quality_SlightChanging(System.Nullable value); + partial void OnHQ_Quality_SlightChanged(); + partial void OnQuality_Employee_CountChanging(System.Nullable value); + partial void OnQuality_Employee_CountChanged(); + partial void OnQuality_Employee_ScoreChanging(System.Nullable value); + partial void OnQuality_Employee_ScoreChanged(); + partial void OnQuality_Contractor_CountChanging(System.Nullable value); + partial void OnQuality_Contractor_CountChanged(); + partial void OnQuality_Contractor_ScoreChanging(System.Nullable value); + partial void OnQuality_Contractor_ScoreChanged(); + partial void OnQuality_Employee_FineChanging(System.Nullable value); + partial void OnQuality_Employee_FineChanged(); + partial void OnQuality_Employee_FineAmountChanging(System.Nullable value); + partial void OnQuality_Employee_FineAmountChanged(); + partial void OnQuality_Contractor_FineChanging(System.Nullable value); + partial void OnQuality_Contractor_FineChanged(); + partial void OnQuality_Contractor_FineAmountChanging(System.Nullable value); + partial void OnQuality_Contractor_FineAmountChanged(); + partial void OnQuality_Contractor_DeductionChanging(System.Nullable value); + partial void OnQuality_Contractor_DeductionChanged(); + partial void OnQuality_Contractor_DeductionAmountChanging(System.Nullable value); + partial void OnQuality_Contractor_DeductionAmountChanged(); + partial void OnQuality_ProjectDepartment_FineChanging(System.Nullable value); + partial void OnQuality_ProjectDepartment_FineChanged(); + partial void OnQuality_ProjectDepartment_FineAmountChanging(System.Nullable value); + partial void OnQuality_ProjectDepartment_FineAmountChanged(); + partial void OnHSE_Employee_CountChanging(System.Nullable value); + partial void OnHSE_Employee_CountChanged(); + partial void OnHSE_Employee_ScoreChanging(System.Nullable value); + partial void OnHSE_Employee_ScoreChanged(); + partial void OnHSE_Contractor_CountChanging(System.Nullable value); + partial void OnHSE_Contractor_CountChanged(); + partial void OnHSE_Contractor_ScoreChanging(System.Nullable value); + partial void OnHSE_Contractor_ScoreChanged(); + partial void OnHSE_Employee_FineChanging(System.Nullable value); + partial void OnHSE_Employee_FineChanged(); + partial void OnHSE_Employee_FineAmountChanging(System.Nullable value); + partial void OnHSE_Employee_FineAmountChanged(); + partial void OnHSE_Contractor_FineChanging(System.Nullable value); + partial void OnHSE_Contractor_FineChanged(); + partial void OnHSE_Contractor_FineAmountChanging(System.Nullable value); + partial void OnHSE_Contractor_FineAmountChanged(); + partial void OnHSE_Contractor_DeductionChanging(System.Nullable value); + partial void OnHSE_Contractor_DeductionChanged(); + partial void OnHSE_Contractor_DeductionAmountChanging(System.Nullable value); + partial void OnHSE_Contractor_DeductionAmountChanged(); + partial void OnHSE_ProjectDepartment_FineChanging(System.Nullable value); + partial void OnHSE_ProjectDepartment_FineChanged(); + partial void OnHSE_ProjectDepartment_FineAmountChanging(System.Nullable value); + partial void OnHSE_ProjectDepartment_FineAmountChanged(); + partial void OnLeaderSupervision_HSECheck_LeadersChanging(System.Nullable value); + partial void OnLeaderSupervision_HSECheck_LeadersChanged(); + partial void OnLeaderSupervision_HSECheck_CountChanging(System.Nullable value); + partial void OnLeaderSupervision_HSECheck_CountChanged(); + partial void OnLeaderSupervision_HSECheck_HazardsChanging(System.Nullable value); + partial void OnLeaderSupervision_HSECheck_HazardsChanged(); + partial void OnLeaderSupervision_SafetyLectures_LeadersChanging(System.Nullable value); + partial void OnLeaderSupervision_SafetyLectures_LeadersChanged(); + partial void OnLeaderSupervision_SafetyLectures_CountChanging(System.Nullable value); + partial void OnLeaderSupervision_SafetyLectures_CountChanged(); + partial void OnLeaderSupervision_SafetyLectures_AttendeesChanging(System.Nullable value); + partial void OnLeaderSupervision_SafetyLectures_AttendeesChanged(); + partial void OnLeaderSupervision_Activities_LeadersChanging(System.Nullable value); + partial void OnLeaderSupervision_Activities_LeadersChanged(); + partial void OnLeaderSupervision_Activities_CountChanging(System.Nullable value); + partial void OnLeaderSupervision_Activities_CountChanged(); + partial void OnHSEMeasures_OfficesCountChanging(System.Nullable value); + partial void OnHSEMeasures_OfficesCountChanged(); + partial void OnHSEMeasures_TrainingBoothsChanging(System.Nullable value); + partial void OnHSEMeasures_TrainingBoothsChanged(); + partial void OnHSEMeasures_ToolboxsChanging(System.Nullable value); + partial void OnHSEMeasures_ToolboxsChanged(); + partial void OnHSEMeasures_Consultant_ProjectsChanging(System.Nullable value); + partial void OnHSEMeasures_Consultant_ProjectsChanged(); + partial void OnHSEMeasures_Consultant_CountChanging(System.Nullable value); + partial void OnHSEMeasures_Consultant_CountChanged(); + partial void OnHSEMeasures_FiveStar_Star2Changing(System.Nullable value); + partial void OnHSEMeasures_FiveStar_Star2Changed(); + partial void OnHSEMeasures_FiveStar_Star3Changing(System.Nullable value); + partial void OnHSEMeasures_FiveStar_Star3Changed(); + partial void OnHSEMeasures_FiveStar_Star4Changing(System.Nullable value); + partial void OnHSEMeasures_FiveStar_Star4Changed(); + partial void OnHSEMeasures_FiveStar_Star5Changing(System.Nullable value); + partial void OnHSEMeasures_FiveStar_Star5Changed(); + partial void OnHSEMeasures_Contractor_IntervieweesChanging(System.Nullable value); + partial void OnHSEMeasures_Contractor_IntervieweesChanged(); + partial void OnHSEMeasures_PilotProject_HeadquartersChanging(System.Nullable value); + partial void OnHSEMeasures_PilotProject_HeadquartersChanged(); + partial void OnHSEMeasures_PilotProject_BranchChanging(System.Nullable value); + partial void OnHSEMeasures_PilotProject_BranchChanged(); + partial void OnConstruction_Teams_TotalsChanging(System.Nullable value); + partial void OnConstruction_Teams_TotalsChanged(); + partial void OnConstruction_Teams_CompliantChanging(System.Nullable value); + partial void OnConstruction_Teams_CompliantChanged(); + partial void OnConstruction_ModelTeams_HeadquartersChanging(System.Nullable value); + partial void OnConstruction_ModelTeams_HeadquartersChanged(); + partial void OnConstruction_ModelTeams_CPECCChanging(System.Nullable value); + partial void OnConstruction_ModelTeams_CPECCChanged(); + partial void OnConstruction_ModelTeams_GroupChanging(System.Nullable value); + partial void OnConstruction_ModelTeams_GroupChanged(); + partial void OnHSETraining_ThreeCategoryChanging(System.Nullable value); + partial void OnHSETraining_ThreeCategoryChanged(); + partial void OnHSETraining_TrainingPersonsChanging(System.Nullable value); + partial void OnHSETraining_TrainingPersonsChanged(); + partial void OnHSETraining_ContractorTrainingChanging(System.Nullable value); + partial void OnHSETraining_ContractorTrainingChanged(); + partial void OnCompileManChanging(string value); + partial void OnCompileManChanged(); + partial void OnCompileDateChanging(System.Nullable value); + partial void OnCompileDateChanged(); + #endregion + + public SafetyManagementData() + { + this._Base_Project = default(EntityRef); + this._Base_Unit = default(EntityRef); + this._Sys_User = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DataId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string DataId + { + get + { + return this._DataId; + } + set + { + if ((this._DataId != value)) + { + this.OnDataIdChanging(value); + this.SendPropertyChanging(); + this._DataId = value; + this.SendPropertyChanged("DataId"); + this.OnDataIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + if (this._Base_Project.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")] + public string UnitId + { + get + { + return this._UnitId; + } + set + { + if ((this._UnitId != value)) + { + if (this._Base_Unit.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnUnitIdChanging(value); + this.SendPropertyChanging(); + this._UnitId = value; + this.SendPropertyChanged("UnitId"); + this.OnUnitIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReportDate", DbType="DateTime")] + public System.Nullable ReportDate + { + get + { + return this._ReportDate; + } + set + { + if ((this._ReportDate != value)) + { + this.OnReportDateChanging(value); + this.SendPropertyChanging(); + this._ReportDate = value; + this.SendPropertyChanged("ReportDate"); + this.OnReportDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConAndEPCCount", DbType="Int")] + public System.Nullable ConAndEPCCount + { + get + { + return this._ConAndEPCCount; + } + set + { + if ((this._ConAndEPCCount != value)) + { + this.OnConAndEPCCountChanging(value); + this.SendPropertyChanging(); + this._ConAndEPCCount = value; + this.SendPropertyChanged("ConAndEPCCount"); + this.OnConAndEPCCountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SurveyAndDesignCount", DbType="Int")] + public System.Nullable SurveyAndDesignCount + { + get + { + return this._SurveyAndDesignCount; + } + set + { + if ((this._SurveyAndDesignCount != value)) + { + this.OnSurveyAndDesignCountChanging(value); + this.SendPropertyChanging(); + this._SurveyAndDesignCount = value; + this.SendPropertyChanged("SurveyAndDesignCount"); + this.OnSurveyAndDesignCountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkingHours", DbType="Int")] + public System.Nullable WorkingHours + { + get + { + return this._WorkingHours; + } + set + { + if ((this._WorkingHours != value)) + { + this.OnWorkingHoursChanging(value); + this.SendPropertyChanging(); + this._WorkingHours = value; + this.SendPropertyChanged("WorkingHours"); + this.OnWorkingHoursChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafeDrivingMileage", DbType="Int")] + public System.Nullable SafeDrivingMileage + { + get + { + return this._SafeDrivingMileage; + } + set + { + if ((this._SafeDrivingMileage != value)) + { + this.OnSafeDrivingMileageChanging(value); + this.SendPropertyChanging(); + this._SafeDrivingMileage = value; + this.SendPropertyChanged("SafeDrivingMileage"); + this.OnSafeDrivingMileageChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubSupervise_InspectionItems", DbType="Int")] + public System.Nullable SubSupervise_InspectionItems + { + get + { + return this._SubSupervise_InspectionItems; + } + set + { + if ((this._SubSupervise_InspectionItems != value)) + { + this.OnSubSupervise_InspectionItemsChanging(value); + this.SendPropertyChanging(); + this._SubSupervise_InspectionItems = value; + this.SendPropertyChanged("SubSupervise_InspectionItems"); + this.OnSubSupervise_InspectionItemsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubSupervise_Inspections", DbType="Int")] + public System.Nullable SubSupervise_Inspections + { + get + { + return this._SubSupervise_Inspections; + } + set + { + if ((this._SubSupervise_Inspections != value)) + { + this.OnSubSupervise_InspectionsChanging(value); + this.SendPropertyChanging(); + this._SubSupervise_Inspections = value; + this.SendPropertyChanged("SubSupervise_Inspections"); + this.OnSubSupervise_InspectionsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubSupervise_HSE_Total", DbType="Int")] + public System.Nullable SubSupervise_HSE_Total + { + get + { + return this._SubSupervise_HSE_Total; + } + set + { + if ((this._SubSupervise_HSE_Total != value)) + { + this.OnSubSupervise_HSE_TotalChanging(value); + this.SendPropertyChanging(); + this._SubSupervise_HSE_Total = value; + this.SendPropertyChanged("SubSupervise_HSE_Total"); + this.OnSubSupervise_HSE_TotalChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubSupervise_HSE_Larger", DbType="Int")] + public System.Nullable SubSupervise_HSE_Larger + { + get + { + return this._SubSupervise_HSE_Larger; + } + set + { + if ((this._SubSupervise_HSE_Larger != value)) + { + this.OnSubSupervise_HSE_LargerChanging(value); + this.SendPropertyChanging(); + this._SubSupervise_HSE_Larger = value; + this.SendPropertyChanged("SubSupervise_HSE_Larger"); + this.OnSubSupervise_HSE_LargerChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubSupervise_HSE_Generally", DbType="Int")] + public System.Nullable SubSupervise_HSE_Generally + { + get + { + return this._SubSupervise_HSE_Generally; + } + set + { + if ((this._SubSupervise_HSE_Generally != value)) + { + this.OnSubSupervise_HSE_GenerallyChanging(value); + this.SendPropertyChanging(); + this._SubSupervise_HSE_Generally = value; + this.SendPropertyChanged("SubSupervise_HSE_Generally"); + this.OnSubSupervise_HSE_GenerallyChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubSupervise_HSE_Slight", DbType="Int")] + public System.Nullable SubSupervise_HSE_Slight + { + get + { + return this._SubSupervise_HSE_Slight; + } + set + { + if ((this._SubSupervise_HSE_Slight != value)) + { + this.OnSubSupervise_HSE_SlightChanging(value); + this.SendPropertyChanging(); + this._SubSupervise_HSE_Slight = value; + this.SendPropertyChanged("SubSupervise_HSE_Slight"); + this.OnSubSupervise_HSE_SlightChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubSupervise_Quality_Total", DbType="Int")] + public System.Nullable SubSupervise_Quality_Total + { + get + { + return this._SubSupervise_Quality_Total; + } + set + { + if ((this._SubSupervise_Quality_Total != value)) + { + this.OnSubSupervise_Quality_TotalChanging(value); + this.SendPropertyChanging(); + this._SubSupervise_Quality_Total = value; + this.SendPropertyChanged("SubSupervise_Quality_Total"); + this.OnSubSupervise_Quality_TotalChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubSupervise_Quality_Larger", DbType="Int")] + public System.Nullable SubSupervise_Quality_Larger + { + get + { + return this._SubSupervise_Quality_Larger; + } + set + { + if ((this._SubSupervise_Quality_Larger != value)) + { + this.OnSubSupervise_Quality_LargerChanging(value); + this.SendPropertyChanging(); + this._SubSupervise_Quality_Larger = value; + this.SendPropertyChanged("SubSupervise_Quality_Larger"); + this.OnSubSupervise_Quality_LargerChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubSupervise_Quality_Generally", DbType="Int")] + public System.Nullable SubSupervise_Quality_Generally + { + get + { + return this._SubSupervise_Quality_Generally; + } + set + { + if ((this._SubSupervise_Quality_Generally != value)) + { + this.OnSubSupervise_Quality_GenerallyChanging(value); + this.SendPropertyChanging(); + this._SubSupervise_Quality_Generally = value; + this.SendPropertyChanged("SubSupervise_Quality_Generally"); + this.OnSubSupervise_Quality_GenerallyChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubSupervise_Quality_Slight", DbType="Int")] + public System.Nullable SubSupervise_Quality_Slight + { + get + { + return this._SubSupervise_Quality_Slight; + } + set + { + if ((this._SubSupervise_Quality_Slight != value)) + { + this.OnSubSupervise_Quality_SlightChanging(value); + this.SendPropertyChanging(); + this._SubSupervise_Quality_Slight = value; + this.SendPropertyChanged("SubSupervise_Quality_Slight"); + this.OnSubSupervise_Quality_SlightChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubVideo_InspectionItems", DbType="Int")] + public System.Nullable SubVideo_InspectionItems + { + get + { + return this._SubVideo_InspectionItems; + } + set + { + if ((this._SubVideo_InspectionItems != value)) + { + this.OnSubVideo_InspectionItemsChanging(value); + this.SendPropertyChanging(); + this._SubVideo_InspectionItems = value; + this.SendPropertyChanged("SubVideo_InspectionItems"); + this.OnSubVideo_InspectionItemsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubVideo_InspectionsMin", DbType="Int")] + public System.Nullable SubVideo_InspectionsMin + { + get + { + return this._SubVideo_InspectionsMin; + } + set + { + if ((this._SubVideo_InspectionsMin != value)) + { + this.OnSubVideo_InspectionsMinChanging(value); + this.SendPropertyChanging(); + this._SubVideo_InspectionsMin = value; + this.SendPropertyChanged("SubVideo_InspectionsMin"); + this.OnSubVideo_InspectionsMinChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubVideo_HSE_Total", DbType="Int")] + public System.Nullable SubVideo_HSE_Total + { + get + { + return this._SubVideo_HSE_Total; + } + set + { + if ((this._SubVideo_HSE_Total != value)) + { + this.OnSubVideo_HSE_TotalChanging(value); + this.SendPropertyChanging(); + this._SubVideo_HSE_Total = value; + this.SendPropertyChanged("SubVideo_HSE_Total"); + this.OnSubVideo_HSE_TotalChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubVideo_HSE_Larger", DbType="Int")] + public System.Nullable SubVideo_HSE_Larger + { + get + { + return this._SubVideo_HSE_Larger; + } + set + { + if ((this._SubVideo_HSE_Larger != value)) + { + this.OnSubVideo_HSE_LargerChanging(value); + this.SendPropertyChanging(); + this._SubVideo_HSE_Larger = value; + this.SendPropertyChanged("SubVideo_HSE_Larger"); + this.OnSubVideo_HSE_LargerChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubVideo_HSE_Generally", DbType="Int")] + public System.Nullable SubVideo_HSE_Generally + { + get + { + return this._SubVideo_HSE_Generally; + } + set + { + if ((this._SubVideo_HSE_Generally != value)) + { + this.OnSubVideo_HSE_GenerallyChanging(value); + this.SendPropertyChanging(); + this._SubVideo_HSE_Generally = value; + this.SendPropertyChanged("SubVideo_HSE_Generally"); + this.OnSubVideo_HSE_GenerallyChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubVideo_HSE_Slight", DbType="Int")] + public System.Nullable SubVideo_HSE_Slight + { + get + { + return this._SubVideo_HSE_Slight; + } + set + { + if ((this._SubVideo_HSE_Slight != value)) + { + this.OnSubVideo_HSE_SlightChanging(value); + this.SendPropertyChanging(); + this._SubVideo_HSE_Slight = value; + this.SendPropertyChanged("SubVideo_HSE_Slight"); + this.OnSubVideo_HSE_SlightChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubVideo_Quality_Total", DbType="Int")] + public System.Nullable SubVideo_Quality_Total + { + get + { + return this._SubVideo_Quality_Total; + } + set + { + if ((this._SubVideo_Quality_Total != value)) + { + this.OnSubVideo_Quality_TotalChanging(value); + this.SendPropertyChanging(); + this._SubVideo_Quality_Total = value; + this.SendPropertyChanged("SubVideo_Quality_Total"); + this.OnSubVideo_Quality_TotalChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubVideo_Quality_Larger", DbType="Int")] + public System.Nullable SubVideo_Quality_Larger + { + get + { + return this._SubVideo_Quality_Larger; + } + set + { + if ((this._SubVideo_Quality_Larger != value)) + { + this.OnSubVideo_Quality_LargerChanging(value); + this.SendPropertyChanging(); + this._SubVideo_Quality_Larger = value; + this.SendPropertyChanged("SubVideo_Quality_Larger"); + this.OnSubVideo_Quality_LargerChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubVideo_Quality_Generally", DbType="Int")] + public System.Nullable SubVideo_Quality_Generally + { + get + { + return this._SubVideo_Quality_Generally; + } + set + { + if ((this._SubVideo_Quality_Generally != value)) + { + this.OnSubVideo_Quality_GenerallyChanging(value); + this.SendPropertyChanging(); + this._SubVideo_Quality_Generally = value; + this.SendPropertyChanged("SubVideo_Quality_Generally"); + this.OnSubVideo_Quality_GenerallyChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubVideo_Quality_Slight", DbType="Int")] + public System.Nullable SubVideo_Quality_Slight + { + get + { + return this._SubVideo_Quality_Slight; + } + set + { + if ((this._SubVideo_Quality_Slight != value)) + { + this.OnSubVideo_Quality_SlightChanging(value); + this.SendPropertyChanging(); + this._SubVideo_Quality_Slight = value; + this.SendPropertyChanged("SubVideo_Quality_Slight"); + this.OnSubVideo_Quality_SlightChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HQ_InspectionItems", DbType="Int")] + public System.Nullable HQ_InspectionItems + { + get + { + return this._HQ_InspectionItems; + } + set + { + if ((this._HQ_InspectionItems != value)) + { + this.OnHQ_InspectionItemsChanging(value); + this.SendPropertyChanging(); + this._HQ_InspectionItems = value; + this.SendPropertyChanged("HQ_InspectionItems"); + this.OnHQ_InspectionItemsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HQ_Inspections", DbType="Int")] + public System.Nullable HQ_Inspections + { + get + { + return this._HQ_Inspections; + } + set + { + if ((this._HQ_Inspections != value)) + { + this.OnHQ_InspectionsChanging(value); + this.SendPropertyChanging(); + this._HQ_Inspections = value; + this.SendPropertyChanged("HQ_Inspections"); + this.OnHQ_InspectionsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HQ_HSE_Total", DbType="Int")] + public System.Nullable HQ_HSE_Total + { + get + { + return this._HQ_HSE_Total; + } + set + { + if ((this._HQ_HSE_Total != value)) + { + this.OnHQ_HSE_TotalChanging(value); + this.SendPropertyChanging(); + this._HQ_HSE_Total = value; + this.SendPropertyChanged("HQ_HSE_Total"); + this.OnHQ_HSE_TotalChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HQ_HSE_Larger", DbType="Int")] + public System.Nullable HQ_HSE_Larger + { + get + { + return this._HQ_HSE_Larger; + } + set + { + if ((this._HQ_HSE_Larger != value)) + { + this.OnHQ_HSE_LargerChanging(value); + this.SendPropertyChanging(); + this._HQ_HSE_Larger = value; + this.SendPropertyChanged("HQ_HSE_Larger"); + this.OnHQ_HSE_LargerChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HQ_HSE_Generally", DbType="Int")] + public System.Nullable HQ_HSE_Generally + { + get + { + return this._HQ_HSE_Generally; + } + set + { + if ((this._HQ_HSE_Generally != value)) + { + this.OnHQ_HSE_GenerallyChanging(value); + this.SendPropertyChanging(); + this._HQ_HSE_Generally = value; + this.SendPropertyChanged("HQ_HSE_Generally"); + this.OnHQ_HSE_GenerallyChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HQ_HSE_Slight", DbType="Int")] + public System.Nullable HQ_HSE_Slight + { + get + { + return this._HQ_HSE_Slight; + } + set + { + if ((this._HQ_HSE_Slight != value)) + { + this.OnHQ_HSE_SlightChanging(value); + this.SendPropertyChanging(); + this._HQ_HSE_Slight = value; + this.SendPropertyChanged("HQ_HSE_Slight"); + this.OnHQ_HSE_SlightChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HQ_Quality_Total", DbType="Int")] + public System.Nullable HQ_Quality_Total + { + get + { + return this._HQ_Quality_Total; + } + set + { + if ((this._HQ_Quality_Total != value)) + { + this.OnHQ_Quality_TotalChanging(value); + this.SendPropertyChanging(); + this._HQ_Quality_Total = value; + this.SendPropertyChanged("HQ_Quality_Total"); + this.OnHQ_Quality_TotalChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HQ_Quality_Larger", DbType="Int")] + public System.Nullable HQ_Quality_Larger + { + get + { + return this._HQ_Quality_Larger; + } + set + { + if ((this._HQ_Quality_Larger != value)) + { + this.OnHQ_Quality_LargerChanging(value); + this.SendPropertyChanging(); + this._HQ_Quality_Larger = value; + this.SendPropertyChanged("HQ_Quality_Larger"); + this.OnHQ_Quality_LargerChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HQ_Quality_Generally", DbType="Int")] + public System.Nullable HQ_Quality_Generally + { + get + { + return this._HQ_Quality_Generally; + } + set + { + if ((this._HQ_Quality_Generally != value)) + { + this.OnHQ_Quality_GenerallyChanging(value); + this.SendPropertyChanging(); + this._HQ_Quality_Generally = value; + this.SendPropertyChanged("HQ_Quality_Generally"); + this.OnHQ_Quality_GenerallyChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HQ_Quality_Slight", DbType="Int")] + public System.Nullable HQ_Quality_Slight + { + get + { + return this._HQ_Quality_Slight; + } + set + { + if ((this._HQ_Quality_Slight != value)) + { + this.OnHQ_Quality_SlightChanging(value); + this.SendPropertyChanging(); + this._HQ_Quality_Slight = value; + this.SendPropertyChanged("HQ_Quality_Slight"); + this.OnHQ_Quality_SlightChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quality_Employee_Count", DbType="Int")] + public System.Nullable Quality_Employee_Count + { + get + { + return this._Quality_Employee_Count; + } + set + { + if ((this._Quality_Employee_Count != value)) + { + this.OnQuality_Employee_CountChanging(value); + this.SendPropertyChanging(); + this._Quality_Employee_Count = value; + this.SendPropertyChanged("Quality_Employee_Count"); + this.OnQuality_Employee_CountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quality_Employee_Score", DbType="Int")] + public System.Nullable Quality_Employee_Score + { + get + { + return this._Quality_Employee_Score; + } + set + { + if ((this._Quality_Employee_Score != value)) + { + this.OnQuality_Employee_ScoreChanging(value); + this.SendPropertyChanging(); + this._Quality_Employee_Score = value; + this.SendPropertyChanged("Quality_Employee_Score"); + this.OnQuality_Employee_ScoreChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quality_Contractor_Count", DbType="Int")] + public System.Nullable Quality_Contractor_Count + { + get + { + return this._Quality_Contractor_Count; + } + set + { + if ((this._Quality_Contractor_Count != value)) + { + this.OnQuality_Contractor_CountChanging(value); + this.SendPropertyChanging(); + this._Quality_Contractor_Count = value; + this.SendPropertyChanged("Quality_Contractor_Count"); + this.OnQuality_Contractor_CountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quality_Contractor_Score", DbType="Int")] + public System.Nullable Quality_Contractor_Score + { + get + { + return this._Quality_Contractor_Score; + } + set + { + if ((this._Quality_Contractor_Score != value)) + { + this.OnQuality_Contractor_ScoreChanging(value); + this.SendPropertyChanging(); + this._Quality_Contractor_Score = value; + this.SendPropertyChanged("Quality_Contractor_Score"); + this.OnQuality_Contractor_ScoreChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quality_Employee_Fine", DbType="Int")] + public System.Nullable Quality_Employee_Fine + { + get + { + return this._Quality_Employee_Fine; + } + set + { + if ((this._Quality_Employee_Fine != value)) + { + this.OnQuality_Employee_FineChanging(value); + this.SendPropertyChanging(); + this._Quality_Employee_Fine = value; + this.SendPropertyChanged("Quality_Employee_Fine"); + this.OnQuality_Employee_FineChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quality_Employee_FineAmount", DbType="Int")] + public System.Nullable Quality_Employee_FineAmount + { + get + { + return this._Quality_Employee_FineAmount; + } + set + { + if ((this._Quality_Employee_FineAmount != value)) + { + this.OnQuality_Employee_FineAmountChanging(value); + this.SendPropertyChanging(); + this._Quality_Employee_FineAmount = value; + this.SendPropertyChanged("Quality_Employee_FineAmount"); + this.OnQuality_Employee_FineAmountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quality_Contractor_Fine", DbType="Int")] + public System.Nullable Quality_Contractor_Fine + { + get + { + return this._Quality_Contractor_Fine; + } + set + { + if ((this._Quality_Contractor_Fine != value)) + { + this.OnQuality_Contractor_FineChanging(value); + this.SendPropertyChanging(); + this._Quality_Contractor_Fine = value; + this.SendPropertyChanged("Quality_Contractor_Fine"); + this.OnQuality_Contractor_FineChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quality_Contractor_FineAmount", DbType="Int")] + public System.Nullable Quality_Contractor_FineAmount + { + get + { + return this._Quality_Contractor_FineAmount; + } + set + { + if ((this._Quality_Contractor_FineAmount != value)) + { + this.OnQuality_Contractor_FineAmountChanging(value); + this.SendPropertyChanging(); + this._Quality_Contractor_FineAmount = value; + this.SendPropertyChanged("Quality_Contractor_FineAmount"); + this.OnQuality_Contractor_FineAmountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quality_Contractor_Deduction", DbType="Int")] + public System.Nullable Quality_Contractor_Deduction + { + get + { + return this._Quality_Contractor_Deduction; + } + set + { + if ((this._Quality_Contractor_Deduction != value)) + { + this.OnQuality_Contractor_DeductionChanging(value); + this.SendPropertyChanging(); + this._Quality_Contractor_Deduction = value; + this.SendPropertyChanged("Quality_Contractor_Deduction"); + this.OnQuality_Contractor_DeductionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quality_Contractor_DeductionAmount", DbType="Int")] + public System.Nullable Quality_Contractor_DeductionAmount + { + get + { + return this._Quality_Contractor_DeductionAmount; + } + set + { + if ((this._Quality_Contractor_DeductionAmount != value)) + { + this.OnQuality_Contractor_DeductionAmountChanging(value); + this.SendPropertyChanging(); + this._Quality_Contractor_DeductionAmount = value; + this.SendPropertyChanged("Quality_Contractor_DeductionAmount"); + this.OnQuality_Contractor_DeductionAmountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quality_ProjectDepartment_Fine", DbType="Int")] + public System.Nullable Quality_ProjectDepartment_Fine + { + get + { + return this._Quality_ProjectDepartment_Fine; + } + set + { + if ((this._Quality_ProjectDepartment_Fine != value)) + { + this.OnQuality_ProjectDepartment_FineChanging(value); + this.SendPropertyChanging(); + this._Quality_ProjectDepartment_Fine = value; + this.SendPropertyChanged("Quality_ProjectDepartment_Fine"); + this.OnQuality_ProjectDepartment_FineChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quality_ProjectDepartment_FineAmount", DbType="Int")] + public System.Nullable Quality_ProjectDepartment_FineAmount + { + get + { + return this._Quality_ProjectDepartment_FineAmount; + } + set + { + if ((this._Quality_ProjectDepartment_FineAmount != value)) + { + this.OnQuality_ProjectDepartment_FineAmountChanging(value); + this.SendPropertyChanging(); + this._Quality_ProjectDepartment_FineAmount = value; + this.SendPropertyChanged("Quality_ProjectDepartment_FineAmount"); + this.OnQuality_ProjectDepartment_FineAmountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSE_Employee_Count", DbType="Int")] + public System.Nullable HSE_Employee_Count + { + get + { + return this._HSE_Employee_Count; + } + set + { + if ((this._HSE_Employee_Count != value)) + { + this.OnHSE_Employee_CountChanging(value); + this.SendPropertyChanging(); + this._HSE_Employee_Count = value; + this.SendPropertyChanged("HSE_Employee_Count"); + this.OnHSE_Employee_CountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSE_Employee_Score", DbType="Int")] + public System.Nullable HSE_Employee_Score + { + get + { + return this._HSE_Employee_Score; + } + set + { + if ((this._HSE_Employee_Score != value)) + { + this.OnHSE_Employee_ScoreChanging(value); + this.SendPropertyChanging(); + this._HSE_Employee_Score = value; + this.SendPropertyChanged("HSE_Employee_Score"); + this.OnHSE_Employee_ScoreChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSE_Contractor_Count", DbType="Int")] + public System.Nullable HSE_Contractor_Count + { + get + { + return this._HSE_Contractor_Count; + } + set + { + if ((this._HSE_Contractor_Count != value)) + { + this.OnHSE_Contractor_CountChanging(value); + this.SendPropertyChanging(); + this._HSE_Contractor_Count = value; + this.SendPropertyChanged("HSE_Contractor_Count"); + this.OnHSE_Contractor_CountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSE_Contractor_Score", DbType="Int")] + public System.Nullable HSE_Contractor_Score + { + get + { + return this._HSE_Contractor_Score; + } + set + { + if ((this._HSE_Contractor_Score != value)) + { + this.OnHSE_Contractor_ScoreChanging(value); + this.SendPropertyChanging(); + this._HSE_Contractor_Score = value; + this.SendPropertyChanged("HSE_Contractor_Score"); + this.OnHSE_Contractor_ScoreChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSE_Employee_Fine", DbType="Int")] + public System.Nullable HSE_Employee_Fine + { + get + { + return this._HSE_Employee_Fine; + } + set + { + if ((this._HSE_Employee_Fine != value)) + { + this.OnHSE_Employee_FineChanging(value); + this.SendPropertyChanging(); + this._HSE_Employee_Fine = value; + this.SendPropertyChanged("HSE_Employee_Fine"); + this.OnHSE_Employee_FineChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSE_Employee_FineAmount", DbType="Int")] + public System.Nullable HSE_Employee_FineAmount + { + get + { + return this._HSE_Employee_FineAmount; + } + set + { + if ((this._HSE_Employee_FineAmount != value)) + { + this.OnHSE_Employee_FineAmountChanging(value); + this.SendPropertyChanging(); + this._HSE_Employee_FineAmount = value; + this.SendPropertyChanged("HSE_Employee_FineAmount"); + this.OnHSE_Employee_FineAmountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSE_Contractor_Fine", DbType="Int")] + public System.Nullable HSE_Contractor_Fine + { + get + { + return this._HSE_Contractor_Fine; + } + set + { + if ((this._HSE_Contractor_Fine != value)) + { + this.OnHSE_Contractor_FineChanging(value); + this.SendPropertyChanging(); + this._HSE_Contractor_Fine = value; + this.SendPropertyChanged("HSE_Contractor_Fine"); + this.OnHSE_Contractor_FineChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSE_Contractor_FineAmount", DbType="Int")] + public System.Nullable HSE_Contractor_FineAmount + { + get + { + return this._HSE_Contractor_FineAmount; + } + set + { + if ((this._HSE_Contractor_FineAmount != value)) + { + this.OnHSE_Contractor_FineAmountChanging(value); + this.SendPropertyChanging(); + this._HSE_Contractor_FineAmount = value; + this.SendPropertyChanged("HSE_Contractor_FineAmount"); + this.OnHSE_Contractor_FineAmountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSE_Contractor_Deduction", DbType="Int")] + public System.Nullable HSE_Contractor_Deduction + { + get + { + return this._HSE_Contractor_Deduction; + } + set + { + if ((this._HSE_Contractor_Deduction != value)) + { + this.OnHSE_Contractor_DeductionChanging(value); + this.SendPropertyChanging(); + this._HSE_Contractor_Deduction = value; + this.SendPropertyChanged("HSE_Contractor_Deduction"); + this.OnHSE_Contractor_DeductionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSE_Contractor_DeductionAmount", DbType="Int")] + public System.Nullable HSE_Contractor_DeductionAmount + { + get + { + return this._HSE_Contractor_DeductionAmount; + } + set + { + if ((this._HSE_Contractor_DeductionAmount != value)) + { + this.OnHSE_Contractor_DeductionAmountChanging(value); + this.SendPropertyChanging(); + this._HSE_Contractor_DeductionAmount = value; + this.SendPropertyChanged("HSE_Contractor_DeductionAmount"); + this.OnHSE_Contractor_DeductionAmountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSE_ProjectDepartment_Fine", DbType="Int")] + public System.Nullable HSE_ProjectDepartment_Fine + { + get + { + return this._HSE_ProjectDepartment_Fine; + } + set + { + if ((this._HSE_ProjectDepartment_Fine != value)) + { + this.OnHSE_ProjectDepartment_FineChanging(value); + this.SendPropertyChanging(); + this._HSE_ProjectDepartment_Fine = value; + this.SendPropertyChanged("HSE_ProjectDepartment_Fine"); + this.OnHSE_ProjectDepartment_FineChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSE_ProjectDepartment_FineAmount", DbType="Int")] + public System.Nullable HSE_ProjectDepartment_FineAmount + { + get + { + return this._HSE_ProjectDepartment_FineAmount; + } + set + { + if ((this._HSE_ProjectDepartment_FineAmount != value)) + { + this.OnHSE_ProjectDepartment_FineAmountChanging(value); + this.SendPropertyChanging(); + this._HSE_ProjectDepartment_FineAmount = value; + this.SendPropertyChanged("HSE_ProjectDepartment_FineAmount"); + this.OnHSE_ProjectDepartment_FineAmountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeaderSupervision_HSECheck_Leaders", DbType="Int")] + public System.Nullable LeaderSupervision_HSECheck_Leaders + { + get + { + return this._LeaderSupervision_HSECheck_Leaders; + } + set + { + if ((this._LeaderSupervision_HSECheck_Leaders != value)) + { + this.OnLeaderSupervision_HSECheck_LeadersChanging(value); + this.SendPropertyChanging(); + this._LeaderSupervision_HSECheck_Leaders = value; + this.SendPropertyChanged("LeaderSupervision_HSECheck_Leaders"); + this.OnLeaderSupervision_HSECheck_LeadersChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeaderSupervision_HSECheck_Count", DbType="Int")] + public System.Nullable LeaderSupervision_HSECheck_Count + { + get + { + return this._LeaderSupervision_HSECheck_Count; + } + set + { + if ((this._LeaderSupervision_HSECheck_Count != value)) + { + this.OnLeaderSupervision_HSECheck_CountChanging(value); + this.SendPropertyChanging(); + this._LeaderSupervision_HSECheck_Count = value; + this.SendPropertyChanged("LeaderSupervision_HSECheck_Count"); + this.OnLeaderSupervision_HSECheck_CountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeaderSupervision_HSECheck_Hazards", DbType="Int")] + public System.Nullable LeaderSupervision_HSECheck_Hazards + { + get + { + return this._LeaderSupervision_HSECheck_Hazards; + } + set + { + if ((this._LeaderSupervision_HSECheck_Hazards != value)) + { + this.OnLeaderSupervision_HSECheck_HazardsChanging(value); + this.SendPropertyChanging(); + this._LeaderSupervision_HSECheck_Hazards = value; + this.SendPropertyChanged("LeaderSupervision_HSECheck_Hazards"); + this.OnLeaderSupervision_HSECheck_HazardsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeaderSupervision_SafetyLectures_Leaders", DbType="Int")] + public System.Nullable LeaderSupervision_SafetyLectures_Leaders + { + get + { + return this._LeaderSupervision_SafetyLectures_Leaders; + } + set + { + if ((this._LeaderSupervision_SafetyLectures_Leaders != value)) + { + this.OnLeaderSupervision_SafetyLectures_LeadersChanging(value); + this.SendPropertyChanging(); + this._LeaderSupervision_SafetyLectures_Leaders = value; + this.SendPropertyChanged("LeaderSupervision_SafetyLectures_Leaders"); + this.OnLeaderSupervision_SafetyLectures_LeadersChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeaderSupervision_SafetyLectures_Count", DbType="Int")] + public System.Nullable LeaderSupervision_SafetyLectures_Count + { + get + { + return this._LeaderSupervision_SafetyLectures_Count; + } + set + { + if ((this._LeaderSupervision_SafetyLectures_Count != value)) + { + this.OnLeaderSupervision_SafetyLectures_CountChanging(value); + this.SendPropertyChanging(); + this._LeaderSupervision_SafetyLectures_Count = value; + this.SendPropertyChanged("LeaderSupervision_SafetyLectures_Count"); + this.OnLeaderSupervision_SafetyLectures_CountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeaderSupervision_SafetyLectures_Attendees", DbType="Int")] + public System.Nullable LeaderSupervision_SafetyLectures_Attendees + { + get + { + return this._LeaderSupervision_SafetyLectures_Attendees; + } + set + { + if ((this._LeaderSupervision_SafetyLectures_Attendees != value)) + { + this.OnLeaderSupervision_SafetyLectures_AttendeesChanging(value); + this.SendPropertyChanging(); + this._LeaderSupervision_SafetyLectures_Attendees = value; + this.SendPropertyChanged("LeaderSupervision_SafetyLectures_Attendees"); + this.OnLeaderSupervision_SafetyLectures_AttendeesChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeaderSupervision_Activities_Leaders", DbType="Int")] + public System.Nullable LeaderSupervision_Activities_Leaders + { + get + { + return this._LeaderSupervision_Activities_Leaders; + } + set + { + if ((this._LeaderSupervision_Activities_Leaders != value)) + { + this.OnLeaderSupervision_Activities_LeadersChanging(value); + this.SendPropertyChanging(); + this._LeaderSupervision_Activities_Leaders = value; + this.SendPropertyChanged("LeaderSupervision_Activities_Leaders"); + this.OnLeaderSupervision_Activities_LeadersChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeaderSupervision_Activities_Count", DbType="Int")] + public System.Nullable LeaderSupervision_Activities_Count + { + get + { + return this._LeaderSupervision_Activities_Count; + } + set + { + if ((this._LeaderSupervision_Activities_Count != value)) + { + this.OnLeaderSupervision_Activities_CountChanging(value); + this.SendPropertyChanging(); + this._LeaderSupervision_Activities_Count = value; + this.SendPropertyChanged("LeaderSupervision_Activities_Count"); + this.OnLeaderSupervision_Activities_CountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSEMeasures_OfficesCount", DbType="Int")] + public System.Nullable HSEMeasures_OfficesCount + { + get + { + return this._HSEMeasures_OfficesCount; + } + set + { + if ((this._HSEMeasures_OfficesCount != value)) + { + this.OnHSEMeasures_OfficesCountChanging(value); + this.SendPropertyChanging(); + this._HSEMeasures_OfficesCount = value; + this.SendPropertyChanged("HSEMeasures_OfficesCount"); + this.OnHSEMeasures_OfficesCountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSEMeasures_TrainingBooths", DbType="Int")] + public System.Nullable HSEMeasures_TrainingBooths + { + get + { + return this._HSEMeasures_TrainingBooths; + } + set + { + if ((this._HSEMeasures_TrainingBooths != value)) + { + this.OnHSEMeasures_TrainingBoothsChanging(value); + this.SendPropertyChanging(); + this._HSEMeasures_TrainingBooths = value; + this.SendPropertyChanged("HSEMeasures_TrainingBooths"); + this.OnHSEMeasures_TrainingBoothsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSEMeasures_Toolboxs", DbType="Int")] + public System.Nullable HSEMeasures_Toolboxs + { + get + { + return this._HSEMeasures_Toolboxs; + } + set + { + if ((this._HSEMeasures_Toolboxs != value)) + { + this.OnHSEMeasures_ToolboxsChanging(value); + this.SendPropertyChanging(); + this._HSEMeasures_Toolboxs = value; + this.SendPropertyChanged("HSEMeasures_Toolboxs"); + this.OnHSEMeasures_ToolboxsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSEMeasures_Consultant_Projects", DbType="Int")] + public System.Nullable HSEMeasures_Consultant_Projects + { + get + { + return this._HSEMeasures_Consultant_Projects; + } + set + { + if ((this._HSEMeasures_Consultant_Projects != value)) + { + this.OnHSEMeasures_Consultant_ProjectsChanging(value); + this.SendPropertyChanging(); + this._HSEMeasures_Consultant_Projects = value; + this.SendPropertyChanged("HSEMeasures_Consultant_Projects"); + this.OnHSEMeasures_Consultant_ProjectsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSEMeasures_Consultant_Count", DbType="Int")] + public System.Nullable HSEMeasures_Consultant_Count + { + get + { + return this._HSEMeasures_Consultant_Count; + } + set + { + if ((this._HSEMeasures_Consultant_Count != value)) + { + this.OnHSEMeasures_Consultant_CountChanging(value); + this.SendPropertyChanging(); + this._HSEMeasures_Consultant_Count = value; + this.SendPropertyChanged("HSEMeasures_Consultant_Count"); + this.OnHSEMeasures_Consultant_CountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSEMeasures_FiveStar_Star2", DbType="Int")] + public System.Nullable HSEMeasures_FiveStar_Star2 + { + get + { + return this._HSEMeasures_FiveStar_Star2; + } + set + { + if ((this._HSEMeasures_FiveStar_Star2 != value)) + { + this.OnHSEMeasures_FiveStar_Star2Changing(value); + this.SendPropertyChanging(); + this._HSEMeasures_FiveStar_Star2 = value; + this.SendPropertyChanged("HSEMeasures_FiveStar_Star2"); + this.OnHSEMeasures_FiveStar_Star2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSEMeasures_FiveStar_Star3", DbType="Int")] + public System.Nullable HSEMeasures_FiveStar_Star3 + { + get + { + return this._HSEMeasures_FiveStar_Star3; + } + set + { + if ((this._HSEMeasures_FiveStar_Star3 != value)) + { + this.OnHSEMeasures_FiveStar_Star3Changing(value); + this.SendPropertyChanging(); + this._HSEMeasures_FiveStar_Star3 = value; + this.SendPropertyChanged("HSEMeasures_FiveStar_Star3"); + this.OnHSEMeasures_FiveStar_Star3Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSEMeasures_FiveStar_Star4", DbType="Int")] + public System.Nullable HSEMeasures_FiveStar_Star4 + { + get + { + return this._HSEMeasures_FiveStar_Star4; + } + set + { + if ((this._HSEMeasures_FiveStar_Star4 != value)) + { + this.OnHSEMeasures_FiveStar_Star4Changing(value); + this.SendPropertyChanging(); + this._HSEMeasures_FiveStar_Star4 = value; + this.SendPropertyChanged("HSEMeasures_FiveStar_Star4"); + this.OnHSEMeasures_FiveStar_Star4Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSEMeasures_FiveStar_Star5", DbType="Int")] + public System.Nullable HSEMeasures_FiveStar_Star5 + { + get + { + return this._HSEMeasures_FiveStar_Star5; + } + set + { + if ((this._HSEMeasures_FiveStar_Star5 != value)) + { + this.OnHSEMeasures_FiveStar_Star5Changing(value); + this.SendPropertyChanging(); + this._HSEMeasures_FiveStar_Star5 = value; + this.SendPropertyChanged("HSEMeasures_FiveStar_Star5"); + this.OnHSEMeasures_FiveStar_Star5Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSEMeasures_Contractor_Interviewees", DbType="Int")] + public System.Nullable HSEMeasures_Contractor_Interviewees + { + get + { + return this._HSEMeasures_Contractor_Interviewees; + } + set + { + if ((this._HSEMeasures_Contractor_Interviewees != value)) + { + this.OnHSEMeasures_Contractor_IntervieweesChanging(value); + this.SendPropertyChanging(); + this._HSEMeasures_Contractor_Interviewees = value; + this.SendPropertyChanged("HSEMeasures_Contractor_Interviewees"); + this.OnHSEMeasures_Contractor_IntervieweesChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSEMeasures_PilotProject_Headquarters", DbType="Int")] + public System.Nullable HSEMeasures_PilotProject_Headquarters + { + get + { + return this._HSEMeasures_PilotProject_Headquarters; + } + set + { + if ((this._HSEMeasures_PilotProject_Headquarters != value)) + { + this.OnHSEMeasures_PilotProject_HeadquartersChanging(value); + this.SendPropertyChanging(); + this._HSEMeasures_PilotProject_Headquarters = value; + this.SendPropertyChanged("HSEMeasures_PilotProject_Headquarters"); + this.OnHSEMeasures_PilotProject_HeadquartersChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSEMeasures_PilotProject_Branch", DbType="Int")] + public System.Nullable HSEMeasures_PilotProject_Branch + { + get + { + return this._HSEMeasures_PilotProject_Branch; + } + set + { + if ((this._HSEMeasures_PilotProject_Branch != value)) + { + this.OnHSEMeasures_PilotProject_BranchChanging(value); + this.SendPropertyChanging(); + this._HSEMeasures_PilotProject_Branch = value; + this.SendPropertyChanged("HSEMeasures_PilotProject_Branch"); + this.OnHSEMeasures_PilotProject_BranchChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Construction_Teams_Totals", DbType="Int")] + public System.Nullable Construction_Teams_Totals + { + get + { + return this._Construction_Teams_Totals; + } + set + { + if ((this._Construction_Teams_Totals != value)) + { + this.OnConstruction_Teams_TotalsChanging(value); + this.SendPropertyChanging(); + this._Construction_Teams_Totals = value; + this.SendPropertyChanged("Construction_Teams_Totals"); + this.OnConstruction_Teams_TotalsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Construction_Teams_Compliant", DbType="Int")] + public System.Nullable Construction_Teams_Compliant + { + get + { + return this._Construction_Teams_Compliant; + } + set + { + if ((this._Construction_Teams_Compliant != value)) + { + this.OnConstruction_Teams_CompliantChanging(value); + this.SendPropertyChanging(); + this._Construction_Teams_Compliant = value; + this.SendPropertyChanged("Construction_Teams_Compliant"); + this.OnConstruction_Teams_CompliantChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Construction_ModelTeams_Headquarters", DbType="Int")] + public System.Nullable Construction_ModelTeams_Headquarters + { + get + { + return this._Construction_ModelTeams_Headquarters; + } + set + { + if ((this._Construction_ModelTeams_Headquarters != value)) + { + this.OnConstruction_ModelTeams_HeadquartersChanging(value); + this.SendPropertyChanging(); + this._Construction_ModelTeams_Headquarters = value; + this.SendPropertyChanged("Construction_ModelTeams_Headquarters"); + this.OnConstruction_ModelTeams_HeadquartersChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Construction_ModelTeams_CPECC", DbType="Int")] + public System.Nullable Construction_ModelTeams_CPECC + { + get + { + return this._Construction_ModelTeams_CPECC; + } + set + { + if ((this._Construction_ModelTeams_CPECC != value)) + { + this.OnConstruction_ModelTeams_CPECCChanging(value); + this.SendPropertyChanging(); + this._Construction_ModelTeams_CPECC = value; + this.SendPropertyChanged("Construction_ModelTeams_CPECC"); + this.OnConstruction_ModelTeams_CPECCChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Construction_ModelTeams_Group", DbType="Int")] + public System.Nullable Construction_ModelTeams_Group + { + get + { + return this._Construction_ModelTeams_Group; + } + set + { + if ((this._Construction_ModelTeams_Group != value)) + { + this.OnConstruction_ModelTeams_GroupChanging(value); + this.SendPropertyChanging(); + this._Construction_ModelTeams_Group = value; + this.SendPropertyChanged("Construction_ModelTeams_Group"); + this.OnConstruction_ModelTeams_GroupChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSETraining_ThreeCategory", DbType="Int")] + public System.Nullable HSETraining_ThreeCategory + { + get + { + return this._HSETraining_ThreeCategory; + } + set + { + if ((this._HSETraining_ThreeCategory != value)) + { + this.OnHSETraining_ThreeCategoryChanging(value); + this.SendPropertyChanging(); + this._HSETraining_ThreeCategory = value; + this.SendPropertyChanged("HSETraining_ThreeCategory"); + this.OnHSETraining_ThreeCategoryChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSETraining_TrainingPersons", DbType="Int")] + public System.Nullable HSETraining_TrainingPersons + { + get + { + return this._HSETraining_TrainingPersons; + } + set + { + if ((this._HSETraining_TrainingPersons != value)) + { + this.OnHSETraining_TrainingPersonsChanging(value); + this.SendPropertyChanging(); + this._HSETraining_TrainingPersons = value; + this.SendPropertyChanged("HSETraining_TrainingPersons"); + this.OnHSETraining_TrainingPersonsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSETraining_ContractorTraining", DbType="Int")] + public System.Nullable HSETraining_ContractorTraining + { + get + { + return this._HSETraining_ContractorTraining; + } + set + { + if ((this._HSETraining_ContractorTraining != value)) + { + this.OnHSETraining_ContractorTrainingChanging(value); + this.SendPropertyChanging(); + this._HSETraining_ContractorTraining = value; + this.SendPropertyChanged("HSETraining_ContractorTraining"); + this.OnHSETraining_ContractorTrainingChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")] + public string CompileMan + { + get + { + return this._CompileMan; + } + set + { + if ((this._CompileMan != value)) + { + if (this._Sys_User.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnCompileManChanging(value); + this.SendPropertyChanging(); + this._CompileMan = value; + this.SendPropertyChanged("CompileMan"); + this.OnCompileManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")] + public System.Nullable CompileDate + { + get + { + return this._CompileDate; + } + set + { + if ((this._CompileDate != value)) + { + this.OnCompileDateChanging(value); + this.SendPropertyChanging(); + this._CompileDate = value; + this.SendPropertyChanged("CompileDate"); + this.OnCompileDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SafetyManagementData_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] + public Base_Project Base_Project + { + get + { + return this._Base_Project.Entity; + } + set + { + Base_Project previousValue = this._Base_Project.Entity; + if (((previousValue != value) + || (this._Base_Project.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_Project.Entity = null; + previousValue.SafetyManagementData.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.SafetyManagementData.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SafetyManagementData_Base_Unit", Storage="_Base_Unit", ThisKey="UnitId", OtherKey="UnitId", IsForeignKey=true)] + public Base_Unit Base_Unit + { + get + { + return this._Base_Unit.Entity; + } + set + { + Base_Unit previousValue = this._Base_Unit.Entity; + if (((previousValue != value) + || (this._Base_Unit.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_Unit.Entity = null; + previousValue.SafetyManagementData.Remove(this); + } + this._Base_Unit.Entity = value; + if ((value != null)) + { + value.SafetyManagementData.Add(this); + this._UnitId = value.UnitId; + } + else + { + this._UnitId = default(string); + } + this.SendPropertyChanged("Base_Unit"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SafetyManagementData_Sys_User", Storage="_Sys_User", ThisKey="CompileMan", OtherKey="UserId", IsForeignKey=true)] + public Sys_User Sys_User + { + get + { + return this._Sys_User.Entity; + } + set + { + Sys_User previousValue = this._Sys_User.Entity; + if (((previousValue != value) + || (this._Sys_User.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Sys_User.Entity = null; + previousValue.SafetyManagementData.Remove(this); + } + this._Sys_User.Entity = value; + if ((value != null)) + { + value.SafetyManagementData.Add(this); + this._CompileMan = value.UserId; + } + else + { + this._CompileMan = default(string); + } + this.SendPropertyChanged("Sys_User"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ScoreFlowLog")] public partial class ScoreFlowLog : INotifyPropertyChanging, INotifyPropertyChanged { @@ -373285,6 +375721,8 @@ namespace Model private EntitySet _SafetyData_SafetyDataItem; + private EntitySet _SafetyManagementData; + private EntitySet _SitePerson_DayReport_Bak; private EntitySet _SitePerson_DayReport; @@ -373795,6 +376233,7 @@ namespace Model this._QualityAudit_SafePersonQuality_Sys_User_AuditorId = new EntitySet(new Action(this.attach_QualityAudit_SafePersonQuality_Sys_User_AuditorId), new Action(this.detach_QualityAudit_SafePersonQuality_Sys_User_AuditorId)); this._QualityAudit_SubUnitQualityAuditDetail = new EntitySet(new Action(this.attach_QualityAudit_SubUnitQualityAuditDetail), new Action(this.detach_QualityAudit_SubUnitQualityAuditDetail)); this._SafetyData_SafetyDataItem = new EntitySet(new Action(this.attach_SafetyData_SafetyDataItem), new Action(this.detach_SafetyData_SafetyDataItem)); + this._SafetyManagementData = new EntitySet(new Action(this.attach_SafetyManagementData), new Action(this.detach_SafetyManagementData)); this._SitePerson_DayReport_Bak = new EntitySet(new Action(this.attach_SitePerson_DayReport_Bak), new Action(this.detach_SitePerson_DayReport_Bak)); this._SitePerson_DayReport = new EntitySet(new Action(this.attach_SitePerson_DayReport), new Action(this.detach_SitePerson_DayReport)); this._SitePerson_MonthReport = new EntitySet(new Action(this.attach_SitePerson_MonthReport), new Action(this.detach_SitePerson_MonthReport)); @@ -378773,6 +381212,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SafetyManagementData_Sys_User", Storage="_SafetyManagementData", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")] + public EntitySet SafetyManagementData + { + get + { + return this._SafetyManagementData; + } + set + { + this._SafetyManagementData.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SitePerson_DayReport_Bak_Sys_User", Storage="_SitePerson_DayReport_Bak", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")] public EntitySet SitePerson_DayReport_Bak { @@ -382994,6 +385446,18 @@ namespace Model entity.Sys_User = null; } + private void attach_SafetyManagementData(SafetyManagementData entity) + { + this.SendPropertyChanging(); + entity.Sys_User = this; + } + + private void detach_SafetyManagementData(SafetyManagementData entity) + { + this.SendPropertyChanging(); + entity.Sys_User = null; + } + private void attach_SitePerson_DayReport_Bak(SitePerson_DayReport_Bak entity) { this.SendPropertyChanging();