20260907 安全管理数据

This commit is contained in:
2026-09-07 15:06:45 +08:00
parent 13fa72ab8c
commit 6b29c36567
17 changed files with 7511 additions and 25 deletions
@@ -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
+1
View File
@@ -860,6 +860,7 @@
<Compile Include="PZHGL\ProjectData\ProjectPageDataService.cs" />
<Compile Include="ReportManage\HazardFactor\HazardFactorOccHealthService.cs" />
<Compile Include="ReportManage\HazardFactor\HazardFactorSafetyService.cs" />
<Compile Include="ReportManage\SafeEnvBudget\SafetyManagementDataService.cs" />
<Compile Include="Score\ScoreUserService.cs" />
<Compile Include="Score\ScoreFlowLogService.cs" />
<Compile Include="Service References\CNCECHSSEService\Reference.cs">
+10
View File
@@ -3529,6 +3529,16 @@ namespace BLL
/// </summary>
public const string ProjectSafeEnvBudgetMenuId = "43763381-A158-4FC9-8A20-0499D8F8BD8B";
/// <summary>
/// 安全管理数据(项目级)
/// </summary>
public const string ProjectSafetyManagementDataMenuId = "25C34386-38FB-4D5D-8AD2-9B72C7F7D4D0";
/// <summary>
/// 安全管理数据(公司级)
/// </summary>
public const string SafetyManagementDataTotalMenuId = "B2E6FF41-8379-4603-9560-E2DD84080058";
/// <summary>
/// 安全危害因素清单
/// </summary>
@@ -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);
}
}
}
}
}
@@ -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
{
/// <summary>
/// 安全管理数据
/// </summary>
public class SafetyManagementDataService
{
/// <summary>
/// 根据主键获取安全管理数据
/// </summary>
/// <param name="dataId"></param>
/// <returns></returns>
public static Model.SafetyManagementData GetSafetyManagementDataById(string dataId)
{
return Funs.DB.SafetyManagementData.FirstOrDefault(e => e.DataId == dataId);
}
/// <summary>
/// 添加安全管理数据
/// </summary>
/// <param name="newData"></param>
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();
}
/// <summary>
/// 修改安全管理数据
/// </summary>
/// <param name="data"></param>
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();
}
}
/// <summary>
/// 根据主键删除安全管理数据
/// </summary>
/// <param name="dataId"></param>
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();
}
}
/// <summary>
/// 根据报告日期获取安全管理数据
/// </summary>
/// <param name="projectId"></param>
/// <param name="reportDate"></param>
/// <returns></returns>
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);
}
}
}
+12
View File
@@ -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);
}
}
}
}
+25 -1
View File
@@ -2602,6 +2602,9 @@
<Content Include="ReportManage\SafeEnvBudget\SafeEnvBudget.aspx" />
<Content Include="ReportManage\SafeEnvBudget\SafeEnvBudgetView.aspx" />
<Content Include="ReportManage\SafeEnvBudget\SafeEnvBudgetEdit.aspx" />
<Content Include="ReportManage\SafeEnvBudget\SafetyManagementData.aspx" />
<Content Include="ReportManage\SafeEnvBudget\SafetyManagementDataEdit.aspx" />
<Content Include="ReportManage\SafeEnvBudget\SafetyManagementDataTotal.aspx" />
<Content Include="ReportPrint\PrintDesigner.aspx" />
<Content Include="Doc\help.doc" />
<Content Include="AttachFile\fileupload.ashx" />
@@ -17623,6 +17626,27 @@
<Compile Include="ReportManage\SafeEnvBudget\SafeEnvBudgetEdit.aspx.designer.cs">
<DependentUpon>SafeEnvBudgetEdit.aspx</DependentUpon>
</Compile>
<Compile Include="ReportManage\SafeEnvBudget\SafetyManagementData.aspx.cs">
<DependentUpon>SafetyManagementData.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="ReportManage\SafeEnvBudget\SafetyManagementData.aspx.designer.cs">
<DependentUpon>SafetyManagementData.aspx</DependentUpon>
</Compile>
<Compile Include="ReportManage\SafeEnvBudget\SafetyManagementDataEdit.aspx.cs">
<DependentUpon>SafetyManagementDataEdit.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="ReportManage\SafeEnvBudget\SafetyManagementDataEdit.aspx.designer.cs">
<DependentUpon>SafetyManagementDataEdit.aspx</DependentUpon>
</Compile>
<Compile Include="ReportManage\SafeEnvBudget\SafetyManagementDataTotal.aspx.cs">
<DependentUpon>SafetyManagementDataTotal.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="ReportManage\SafeEnvBudget\SafetyManagementDataTotal.aspx.designer.cs">
<DependentUpon>SafetyManagementDataTotal.aspx</DependentUpon>
</Compile>
<Compile Include="ReportPrint\PrintDesigner.aspx.cs">
<DependentUpon>PrintDesigner.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -20359,7 +20383,7 @@
<WCFMetadata Include="Service References\" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v18.0\WebApplications\Microsoft.WebApplication.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v17.0\WebApplications\Microsoft.WebApplication.targets" />
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
@@ -0,0 +1,330 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SafetyManagementData.aspx.cs" Inherits="FineUIPro.Web.ReportManage.SafeEnvBudget.SafetyManagementData" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>安全管理数据(项目级)</title>
<style>
.f-grid-colheader .f-grid-colheader-text {
white-space: normal;
word-break: break-all;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="安全管理数据" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="DataId" DataIDField="DataId" AllowSorting="true" SortField="UnitName,ReportDate"
SortDirection="DESC" OnSort="Grid1_Sort" EnableColumnLines="true" AllowPaging="true"
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DatePicker runat="server" DateFormatString="yyyy-MM" Label="日期" ID="txtStartTime"
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" LabelAlign="right" Width="150px" LabelWidth="50px" DisplayType="Month" ShowTodayButton="false">
</f:DatePicker>
<f:DatePicker runat="server" DateFormatString="yyyy-MM" Label="至" ID="txtEndTime"
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" LabelAlign="right" Width="140px" LabelWidth="30px" DisplayType="Month" ShowTodayButton="false">
</f:DatePicker>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnNew" ToolTip="新增" Icon="Add" EnablePostBack="false" runat="server" Hidden="true">
</f:Button>
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="" ToolTip="导出" Icon="FolderUp"
EnableAjax="false" DisableControlBeforePostBack="false">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:TemplateField ColumnID="tfNumber" Width="55px" HeaderText="序号" HeaderTextAlign="Center"
TextAlign="Center">
<ItemTemplate>
<asp:Label ID="labNumber" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="100px" ColumnID="UnitName" DataField="UnitName"
SortField="UnitName" FieldType="String" HeaderText="单位" TextAlign="Left"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="90px" ColumnID="ReportDate" DataField="ReportDate"
SortField="ReportDate" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM" HeaderText="填报日期" TextAlign="Left"
HeaderTextAlign="Center">
</f:RenderField>
<f:GroupField HeaderText="项目运行" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField1" Width="360px">
<Columns>
<f:BoundField ColumnID="ConAndEPCCount" DataField="ConAndEPCCount" HeaderText="施工及EPC项目数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SurveyAndDesignCount" DataField="SurveyAndDesignCount" HeaderText="勘察设计项目数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="WorkingHours" DataField="WorkingHours" HeaderText="百万安全工时" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SafeDrivingMileage" DataField="SafeDrivingMileage" HeaderText="万公里安全行车里程" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="分公司监督中心监督检查" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField2">
<Columns>
<f:BoundField ColumnID="SubSupervise_InspectionItems" DataField="SubSupervise_InspectionItems" HeaderText="检查项目数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubSupervise_Inspections" DataField="SubSupervise_Inspections" HeaderText="检查次数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:GroupField HeaderText="HSE问题" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField3">
<Columns>
<f:BoundField ColumnID="SubSupervise_HSE_Total" DataField="SubSupervise_HSE_Total" HeaderText="总数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubSupervise_HSE_Larger" DataField="SubSupervise_HSE_Larger" HeaderText="较大" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubSupervise_HSE_Generally" DataField="SubSupervise_HSE_Generally" HeaderText="一般" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubSupervise_HSE_Slight" DataField="SubSupervise_HSE_Slight" HeaderText="轻微" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="质量问题" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField4">
<Columns>
<f:BoundField ColumnID="SubSupervise_Quality_Total" DataField="SubSupervise_Quality_Total" HeaderText="总数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubSupervise_Quality_Larger" DataField="SubSupervise_Quality_Larger" HeaderText="较大" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubSupervise_Quality_Generally" DataField="SubSupervise_Quality_Generally" HeaderText="一般" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubSupervise_Quality_Slight" DataField="SubSupervise_Quality_Slight" HeaderText="轻微" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="分公司视频监督检查" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField5">
<Columns>
<f:BoundField ColumnID="SubVideo_InspectionItems" DataField="SubVideo_InspectionItems" HeaderText="检查项目数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubVideo_InspectionsMin" DataField="SubVideo_InspectionsMin" HeaderText="视频监督检查时间(分钟)" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:GroupField HeaderText="HSE问题" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField6">
<Columns>
<f:BoundField ColumnID="SubVideo_HSE_Total" DataField="SubVideo_HSE_Total" HeaderText="总数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubVideo_HSE_Larger" DataField="SubVideo_HSE_Larger" HeaderText="较大" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubVideo_HSE_Generally" DataField="SubVideo_HSE_Generally" HeaderText="一般" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubVideo_HSE_Slight" DataField="SubVideo_HSE_Slight" HeaderText="轻微" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="质量问题" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField7">
<Columns>
<f:BoundField ColumnID="SubVideo_Quality_Total" DataField="SubVideo_Quality_Total" HeaderText="总数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubVideo_Quality_Larger" DataField="SubVideo_Quality_Larger" HeaderText="较大" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubVideo_Quality_Generally" DataField="SubVideo_Quality_Generally" HeaderText="一般" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubVideo_Quality_Slight" DataField="SubVideo_Quality_Slight" HeaderText="轻微" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="总部监督中心监督检查" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField8">
<Columns>
<f:BoundField ColumnID="HQ_InspectionItems" DataField="HQ_InspectionItems" HeaderText="检查项目数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HQ_Inspections" DataField="HQ_Inspections" HeaderText="检查次数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:GroupField HeaderText="HSE问题" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField9">
<Columns>
<f:BoundField ColumnID="HQ_HSE_Total" DataField="HQ_HSE_Total" HeaderText="总数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HQ_HSE_Larger" DataField="HQ_HSE_Larger" HeaderText="较大" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HQ_HSE_Generally" DataField="HQ_HSE_Generally" HeaderText="一般" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HQ_HSE_Slight" DataField="HQ_HSE_Slight" HeaderText="轻微" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="质量问题" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField10">
<Columns>
<f:BoundField ColumnID="HQ_Quality_Total" DataField="HQ_Quality_Total" HeaderText="总数" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HQ_Quality_Larger" DataField="HQ_Quality_Larger" HeaderText="较大" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HQ_Quality_Generally" DataField="HQ_Quality_Generally" HeaderText="一般" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HQ_Quality_Slight" DataField="HQ_Quality_Slight" HeaderText="轻微" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="质量记分及问责考核处理情况" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField11">
<Columns>
<f:GroupField HeaderText="自有员工记分" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField12">
<Columns>
<f:BoundField ColumnID="Quality_Employee_Count" DataField="Quality_Employee_Count" HeaderText="人次" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="Quality_Employee_Score" DataField="Quality_Employee_Score" HeaderText="分数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="承包商员工记分" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField13">
<Columns>
<f:BoundField ColumnID="Quality_Contractor_Count" DataField="Quality_Contractor_Count" HeaderText="人次" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="Quality_Contractor_Score" DataField="Quality_Contractor_Score" HeaderText="分数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="自有员工罚款" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField14">
<Columns>
<f:BoundField ColumnID="Quality_Employee_Fine" DataField="Quality_Employee_Fine" HeaderText="人次" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="Quality_Employee_FineAmount" DataField="Quality_Employee_FineAmount" HeaderText="金额(元)" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="承包商员工罚款" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField15">
<Columns>
<f:BoundField ColumnID="Quality_Contractor_Fine" DataField="Quality_Contractor_Fine" HeaderText="人次" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="Quality_Contractor_FineAmount" DataField="Quality_Contractor_FineAmount" HeaderText="金额(元)" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="扣除承包商违约金(元)" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField16">
<Columns>
<f:BoundField ColumnID="Quality_Contractor_Deduction" DataField="Quality_Contractor_Deduction" HeaderText="个数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="Quality_Contractor_DeductionAmount" DataField="Quality_Contractor_DeductionAmount" HeaderText="金额(元)" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="对项目部罚款(元)" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField17">
<Columns>
<f:BoundField ColumnID="Quality_ProjectDepartment_Fine" DataField="Quality_ProjectDepartment_Fine" HeaderText="个数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="Quality_ProjectDepartment_FineAmount" DataField="Quality_ProjectDepartment_FineAmount" HeaderText="金额(元)" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="安全记分及问责考核处理情况" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField18">
<Columns>
<f:GroupField HeaderText="自有员工记分" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField19">
<Columns>
<f:BoundField ColumnID="HSE_Employee_Count" DataField="HSE_Employee_Count" HeaderText="人次" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSE_Employee_Score" DataField="HSE_Employee_Score" HeaderText="分数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="承包商员工记分" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField20">
<Columns>
<f:BoundField ColumnID="HSE_Contractor_Count" DataField="HSE_Contractor_Count" HeaderText="人次" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSE_Contractor_Score" DataField="HSE_Contractor_Score" HeaderText="分数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="自有员工罚款" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField21">
<Columns>
<f:BoundField ColumnID="HSE_Employee_Fine" DataField="HSE_Employee_Fine" HeaderText="人次" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSE_Employee_FineAmount" DataField="HSE_Employee_FineAmount" HeaderText="金额(元)" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="承包商员工罚款" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField22">
<Columns>
<f:BoundField ColumnID="HSE_Contractor_Fine" DataField="HSE_Contractor_Fine" HeaderText="人次" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSE_Contractor_FineAmount" DataField="HSE_Contractor_FineAmount" HeaderText="金额(元)" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="扣除承包商违约金(元)" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField23">
<Columns>
<f:BoundField ColumnID="HSE_Contractor_Deduction" DataField="HSE_Contractor_Deduction" HeaderText="个数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSE_Contractor_DeductionAmount" DataField="HSE_Contractor_DeductionAmount" HeaderText="金额(元)" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="对项目部罚款(元)" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField24">
<Columns>
<f:BoundField ColumnID="HSE_ProjectDepartment_Fine" DataField="HSE_ProjectDepartment_Fine" HeaderText="个数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSE_ProjectDepartment_FineAmount" DataField="HSE_ProjectDepartment_FineAmount" HeaderText="金额(元)" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="领导干部HSE片区监管活动情况(二级副及以上领导班子成员)" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField25">
<Columns>
<f:GroupField HeaderText="HSE片区检查" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField26">
<Columns>
<f:BoundField ColumnID="LeaderSupervision_HSECheck_Leaders" DataField="LeaderSupervision_HSECheck_Leaders" HeaderText="领导人数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="LeaderSupervision_HSECheck_Count" DataField="LeaderSupervision_HSECheck_Count" HeaderText="检查次数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="LeaderSupervision_HSECheck_Hazards" DataField="LeaderSupervision_HSECheck_Hazards" HeaderText="查改HSE隐患数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="安全授课" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField27">
<Columns>
<f:BoundField ColumnID="LeaderSupervision_SafetyLectures_Leaders" DataField="LeaderSupervision_SafetyLectures_Leaders" HeaderText="领导人数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="LeaderSupervision_SafetyLectures_Count" DataField="LeaderSupervision_SafetyLectures_Count" HeaderText="开展次数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="LeaderSupervision_SafetyLectures_Attendees" DataField="LeaderSupervision_SafetyLectures_Attendees" HeaderText="听课人数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="安全观察与沟通活动" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField28">
<Columns>
<f:BoundField ColumnID="LeaderSupervision_Activities_Leaders" DataField="LeaderSupervision_Activities_Leaders" HeaderText="领导人数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="LeaderSupervision_Activities_Count" DataField="LeaderSupervision_Activities_Count" HeaderText="开展次数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="落实安全管理新举措" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField29">
<Columns>
<f:BoundField ColumnID="HSEMeasures_OfficesCount" DataField="HSEMeasures_OfficesCount" HeaderText="设置作业许可办公室数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSEMeasures_TrainingBooths" DataField="HSEMeasures_TrainingBooths" HeaderText="设置安全培训小屋数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSEMeasures_Toolboxs" DataField="HSEMeasures_Toolboxs" HeaderText="设置安全工具箱数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:GroupField HeaderText="设置HSE顾问" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField30">
<Columns>
<f:BoundField ColumnID="HSEMeasures_Consultant_Projects" DataField="HSEMeasures_Consultant_Projects" HeaderText="项目数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSEMeasures_Consultant_Count" DataField="HSEMeasures_Consultant_Count" HeaderText="顾问数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="施工现场五星计划" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField31">
<Columns>
<f:BoundField ColumnID="HSEMeasures_FiveStar_Star2" DataField="HSEMeasures_FiveStar_Star2" HeaderText="2星人数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSEMeasures_FiveStar_Star3" DataField="HSEMeasures_FiveStar_Star3" HeaderText="3星人数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSEMeasures_FiveStar_Star4" DataField="HSEMeasures_FiveStar_Star4" HeaderText="4星人数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSEMeasures_FiveStar_Star5" DataField="HSEMeasures_FiveStar_Star5" HeaderText="5星人数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:BoundField ColumnID="HSEMeasures_Contractor_Interviewees" DataField="HSEMeasures_Contractor_Interviewees" HeaderText="承包商人员面试人数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:GroupField HeaderText="开展安全自主管理试点项目数" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField32">
<Columns>
<f:BoundField ColumnID="HSEMeasures_PilotProject_Headquarters" DataField="HSEMeasures_PilotProject_Headquarters" HeaderText="总部级" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSEMeasures_PilotProject_Branch" DataField="HSEMeasures_PilotProject_Branch" HeaderText="分公司级" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="基层站队HSE标准化建设情况" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField33">
<Columns>
<f:BoundField ColumnID="Construction_Teams_Totals" DataField="Construction_Teams_Totals" HeaderText="班组总数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="Construction_Teams_Compliant" DataField="Construction_Teams_Compliant" HeaderText="达标班组数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:GroupField HeaderText="示范班组" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField34">
<Columns>
<f:BoundField ColumnID="Construction_ModelTeams_Headquarters" DataField="Construction_ModelTeams_Headquarters" HeaderText="公司级" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="Construction_ModelTeams_CPECC" DataField="Construction_ModelTeams_CPECC" HeaderText="CPECC级" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="Construction_ModelTeams_Group" DataField="Construction_ModelTeams_Group" HeaderText="集团公司级" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="HSE培训" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField35">
<Columns>
<f:BoundField ColumnID="HSETraining_ThreeCategory" DataField="HSETraining_ThreeCategory" HeaderText="安全管理三类人员培训人数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSETraining_TrainingPersons" DataField="HSETraining_TrainingPersons" HeaderText="新疆油田公司HSE培训人数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSETraining_ContractorTraining" DataField="HSETraining_ContractorTraining" HeaderText="承包商人员入场培训(人次)" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
</Listeners>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
</f:DropDownList>
<f:ToolbarFill runat="server">
</f:ToolbarFill>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="安全管理数据" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
Width="1250px" Height="650px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<Items>
<f:MenuButton ID="btnMenuModify" EnablePostBack="true" runat="server" Hidden="true"
Text="修改" Icon="Pencil" OnClick="btnMenuModify_Click">
</f:MenuButton>
<f:MenuButton ID="btnMenuDel" EnablePostBack="true" runat="server" Hidden="true"
Icon="Delete" Text="删除" ConfirmText="确定删除当前数据?" OnClick="btnMenuDel_Click">
</f:MenuButton>
</Items>
</f:Menu>
</form>
<script type="text/javascript">
var menuID = '<%= Menu1.ClientID %>';
// 返回false,来阻止浏览器右键菜单
function onRowContextMenu(event, rowId) {
F(menuID).show(); //showAt(event.pageX, event.pageY);
return false;
}
</script>
</body>
</html>
@@ -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
/// <summary>
/// 项目id
/// </summary>
public string ProjectId
{
get
{
return (string)ViewState["ProjectId"];
}
set
{
ViewState["ProjectId"] = value;
}
}
#endregion
#region
/// <summary>
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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<SqlParameter> listStr = new List<SqlParameter>();
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;
}
/// <summary>
/// 绑定数据
/// </summary>
private void BindGrid()
{
DataTable tb = GetSourceDataTable();
Grid1.RecordCount = tb.Rows.Count;
var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table;
Grid1.DataBind();
}
#endregion
#region
/// <summary>
/// 分页
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
{
Grid1.PageIndex = e.NewPageIndex;
BindGrid();
}
/// <summary>
/// 排序
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_Sort(object sender, GridSortEventArgs e)
{
BindGrid();
}
/// <summary>
/// 分页显示条数下拉框
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
BindGrid();
}
/// <summary>
/// 关闭弹出窗
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Window1_Close(object sender, WindowCloseEventArgs e)
{
BindGrid();
}
#endregion
#region Grid双击事件
/// <summary>
/// Grid行双击事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
{
btnMenuModify_Click(null, null);
}
#endregion
#region
/// <summary>
/// 编辑按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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
/// <summary>
/// 批量删除
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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
/// <summary>
/// 获取按钮权限
/// </summary>
/// <param name="button"></param>
/// <returns></returns>
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
/// <summary>
/// 查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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
/// 导出按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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();
}
/// <summary>
/// 多表头导出
/// </summary>
public string GetGridMultiHeaderTableHtml(Grid grid, DataTable dtSource)
{
StringBuilder sb = new StringBuilder();
sb.Append("<meta http-equiv=\"content-type\" content=\"application/excel; charset=UTF-8\"/>");
sb.Append("<table cellspacing=\"0\" rules=\"all\" border=\"1\" style=\"border-collapse:collapse;\">");
MultiHeaderTable mht = new MultiHeaderTable();
mht.ResolveMultiHeaderTable(grid.Columns);
foreach (List<object[]> rows in mht.MultiTable)
{
sb.Append("<tr>");
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("<th{0}{1}{2}>{3}</th>",
rowspan != 1 ? " rowspan=\"" + rowspan + "\"" : "",
colspan != 1 ? " colspan=\"" + colspan + "\"" : "",
colspan != 1 ? " style=\"text-align:center;\"" : "",
column.HeaderText);
}
}
sb.Append("</tr>");
}
int rowIndex = 0;
foreach (DataRow dr in dtSource.Rows)
{
sb.Append("<tr>");
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("<td style=\"mso-number-format:'\\@';\">{0}</td>", System.Web.HttpUtility.HtmlEncode(cellValue));
//sb.AppendFormat("<td>{0}</td>", System.Web.HttpUtility.HtmlEncode(cellValue));
}
sb.Append("</tr>");
rowIndex++;
}
sb.Append("</table>");
return sb.ToString();
}
#endregion
}
}
@@ -0,0 +1,179 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.ReportManage.SafeEnvBudget
{
public partial class SafetyManagementData
{
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// Grid1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// Toolbar2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// txtStartTime 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtStartTime;
/// <summary>
/// txtEndTime 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtEndTime;
/// <summary>
/// ToolbarFill1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// btnNew 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnNew;
/// <summary>
/// btnOut 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnOut;
/// <summary>
/// labNumber 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label labNumber;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
/// <summary>
/// Window1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// Menu1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Menu Menu1;
/// <summary>
/// btnMenuModify 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuModify;
/// <summary>
/// btnMenuDel 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuDel;
}
}
@@ -0,0 +1,689 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SafetyManagementDataEdit.aspx.cs" Inherits="FineUIPro.Web.ReportManage.SafeEnvBudget.SafetyManagementDataEdit" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑安全管理数据(项目级)</title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow ColumnWidths="25% 30% 45%">
<Items>
<f:DatePicker ID="txtReportDate" runat="server" Label="日期" DateFormatString="yyyy-MM" EnableEdit="false" Required="true" ShowRedStar="true" LabelWidth="155px" DisplayType="Month" ShowTodayButton="false">
</f:DatePicker>
<f:DropDownList ID="drpUnitId" runat="server" Label="单位" EnableEdit="true" Required="true" ShowRedStar="true" LabelWidth="150px"></f:DropDownList>
<f:Label ID="Label4" runat="server"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="项目运行" BodyPadding="5" ID="GroupPanel1" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtConAndEPCCount" runat="server" Label="施工及EPC项目数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtSurveyAndDesignCount" runat="server" Label="勘察设计项目数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtWorkingHours" runat="server" Label="百万安全工时" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtSafeDrivingMileage" runat="server" Label="万公里安全行车里程" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="分公司监督中心监督检查" BodyPadding="5" ID="GroupPanel2" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form3" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtSubSupervise_InspectionItems" runat="server" Label="检查项目数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtSubSupervise_Inspections" runat="server" Label="检查次数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:Label ID="Label5" runat="server"></f:Label>
<f:Label ID="Label6" runat="server"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="HSE问题" BodyPadding="5" ID="GroupPanel3" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form4" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtSubSupervise_HSE_Total" runat="server" Label="总数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtSubSupervise_HSE_Larger" runat="server" Label="较大" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtSubSupervise_HSE_Generally" runat="server" Label="一般" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtSubSupervise_HSE_Slight" runat="server" Label="轻微" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="质量问题" BodyPadding="5" ID="GroupPanel4" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form5" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtSubSupervise_Quality_Total" runat="server" Label="总数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtSubSupervise_Quality_Larger" runat="server" Label="较大" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtSubSupervise_Quality_Generally" runat="server" Label="一般" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtSubSupervise_Quality_Slight" runat="server" Label="轻微" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="分公司视频监督检查" BodyPadding="5" ID="GroupPanel5" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form6" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtSubVideo_InspectionItems" runat="server" Label="检查项目数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtSubVideo_InspectionsMin" runat="server" Label="视频监督检查时间(分钟)" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="180px"></f:NumberBox>
<f:Label ID="Label7" runat="server"></f:Label>
<f:Label ID="Label8" runat="server"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="HSE问题" BodyPadding="5" ID="GroupPanel6" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form7" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtSubVideo_HSE_Total" runat="server" Label="总数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtSubVideo_HSE_Larger" runat="server" Label="较大" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtSubVideo_HSE_Generally" runat="server" Label="一般" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtSubVideo_HSE_Slight" runat="server" Label="轻微" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="质量问题" BodyPadding="5" ID="GroupPanel7" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form8" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtSubVideo_Quality_Total" runat="server" Label="总数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtSubVideo_Quality_Larger" runat="server" Label="较大" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtSubVideo_Quality_Generally" runat="server" Label="一般" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtSubVideo_Quality_Slight" runat="server" Label="轻微" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="总部监督中心监督检查" BodyPadding="5" ID="GroupPanel8" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form9" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtHQ_InspectionItems" runat="server" Label="检查项目数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtHQ_Inspections" runat="server" Label="检查次数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:Label ID="Label9" runat="server"></f:Label>
<f:Label ID="Label10" runat="server"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="HSE问题" BodyPadding="5" ID="GroupPanel9" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form10" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtHQ_HSE_Total" runat="server" Label="总数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtHQ_HSE_Larger" runat="server" Label="较大" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtHQ_HSE_Generally" runat="server" Label="一般" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtHQ_HSE_Slight" runat="server" Label="轻微" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="质量问题" BodyPadding="5" ID="GroupPanel10" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form11" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtHQ_Quality_Total" runat="server" Label="总数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtHQ_Quality_Larger" runat="server" Label="较大" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtHQ_Quality_Generally" runat="server" Label="一般" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtHQ_Quality_Slight" runat="server" Label="轻微" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="质量记分及问责考核处理情况" BodyPadding="5" ID="GroupPanel11" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form12" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:GroupPanel Title="自有员工记分" BodyPadding="5" ID="GroupPanel12" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form13" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtQuality_Employee_Count" runat="server" Label="人次" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtQuality_Employee_Score" runat="server" Label="分数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel Title="承包商员工记分" BodyPadding="5" ID="GroupPanel13" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form14" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtQuality_Contractor_Count" runat="server" Label="人次" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtQuality_Contractor_Score" runat="server" Label="分数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="自有员工罚款" BodyPadding="5" ID="GroupPanel14" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form15" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtQuality_Employee_Fine" runat="server" Label="人次" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtQuality_Employee_FineAmount" runat="server" Label="金额(元)" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel Title="承包商员工罚款" BodyPadding="5" ID="GroupPanel15" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form16" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtQuality_Contractor_Fine" runat="server" Label="人次" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtQuality_Contractor_FineAmount" runat="server" Label="金额(元)" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="扣除承包商违约金(元)" BodyPadding="5" ID="GroupPanel16" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form17" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtQuality_Contractor_Deduction" runat="server" Label="个数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtQuality_Contractor_DeductionAmount" runat="server" Label="金额(元)" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel Title="对项目部罚款(元)" BodyPadding="5" ID="GroupPanel17" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form18" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtQuality_ProjectDepartment_Fine" runat="server" Label="个数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtQuality_ProjectDepartment_FineAmount" runat="server" Label="金额(元)" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="安全记分及问责考核处理情况" BodyPadding="5" ID="GroupPanel18" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form19" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:GroupPanel Title="自有员工记分" BodyPadding="5" ID="GroupPanel19" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form20" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtHSE_Employee_Count" runat="server" Label="人次" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtHSE_Employee_Score" runat="server" Label="分数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel Title="承包商员工记分" BodyPadding="5" ID="GroupPanel20" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form21" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtHSE_Contractor_Count" runat="server" Label="人次" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtHSE_Contractor_Score" runat="server" Label="分数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="自有员工罚款" BodyPadding="5" ID="GroupPanel21" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form22" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtHSE_Employee_Fine" runat="server" Label="人次" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtHSE_Employee_FineAmount" runat="server" Label="金额(元)" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel Title="承包商员工罚款" BodyPadding="5" ID="GroupPanel22" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form23" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtHSE_Contractor_Fine" runat="server" Label="人次" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtHSE_Contractor_FineAmount" runat="server" Label="金额(元)" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="扣除承包商违约金(元)" BodyPadding="5" ID="GroupPanel23" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form24" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtHSE_Contractor_Deduction" runat="server" Label="个数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtHSE_Contractor_DeductionAmount" runat="server" Label="金额(元)" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel Title="对项目部罚款(元)" BodyPadding="5" ID="GroupPanel24" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form25" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtHSE_ProjectDepartment_Fine" runat="server" Label="个数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
<f:NumberBox ID="txtHSE_ProjectDepartment_FineAmount" runat="server" Label="金额(元)" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="150px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="领导干部HSE片区监管活动情况(二级副及以上领导班子成员)" BodyPadding="5" ID="GroupPanel25" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form26" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:GroupPanel Title="HSE片区检查" BodyPadding="5" ID="GroupPanel26" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form27" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtLeaderSupervision_HSECheck_Leaders" runat="server" Label="领导人数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="100px"></f:NumberBox>
<f:NumberBox ID="txtLeaderSupervision_HSECheck_Count" runat="server" Label="检查次数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="100px"></f:NumberBox>
<f:NumberBox ID="txtLeaderSupervision_HSECheck_Hazards" runat="server" Label="查改HSE隐患数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="100px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel Title="安全授课" BodyPadding="5" ID="GroupPanel27" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form28" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtLeaderSupervision_SafetyLectures_Leaders" runat="server" Label="领导人数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="100px"></f:NumberBox>
<f:NumberBox ID="txtLeaderSupervision_SafetyLectures_Count" runat="server" Label="开展次数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="100px"></f:NumberBox>
<f:NumberBox ID="txtLeaderSupervision_SafetyLectures_Attendees" runat="server" Label="听课人数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="100px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="安全观察与沟通活动" BodyPadding="5" ID="GroupPanel28" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form29" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtLeaderSupervision_Activities_Leaders" runat="server" Label="领导人数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="100px"></f:NumberBox>
<f:NumberBox ID="txtLeaderSupervision_Activities_Count" runat="server" Label="开展次数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="100px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:Label ID="Label1" runat="server"></f:Label>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="落实安全管理新举措" BodyPadding="5" ID="GroupPanel29" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form30" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtHSEMeasures_OfficesCount" runat="server" Label="设置作业许可办公室数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="200px"></f:NumberBox>
<f:NumberBox ID="txtHSEMeasures_TrainingBooths" runat="server" Label="设置安全培训小屋数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="200px"></f:NumberBox>
<f:NumberBox ID="txtHSEMeasures_Toolboxs" runat="server" Label="设置安全工具箱数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="200px"></f:NumberBox>
</Items>
</f:FormRow>
<f:FormRow ColumnWidths="33% 67%">
<Items>
<f:GroupPanel Title="设置HSE顾问" BodyPadding="5" ID="GroupPanel30" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form31" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtHSEMeasures_Consultant_Projects" runat="server" Label="项目数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="100px"></f:NumberBox>
<f:NumberBox ID="txtHSEMeasures_Consultant_Count" runat="server" Label="顾问数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="100px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel Title="施工现场五星计划" BodyPadding="5" ID="GroupPanel31" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form32" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtHSEMeasures_FiveStar_Star2" runat="server" Label="2星人数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="100px"></f:NumberBox>
<f:NumberBox ID="txtHSEMeasures_FiveStar_Star3" runat="server" Label="3星人数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="100px"></f:NumberBox>
<f:NumberBox ID="txtHSEMeasures_FiveStar_Star4" runat="server" Label="4星人数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="100px"></f:NumberBox>
<f:NumberBox ID="txtHSEMeasures_FiveStar_Star5" runat="server" Label="5星人数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="100px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="" BodyPadding="5" ID="GroupPanel36" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:NumberBox ID="txtHSEMeasures_Contractor_Interviewees" runat="server" Label="承包商人员面试人数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="200px"></f:NumberBox>
</Items>
</f:GroupPanel>
<f:GroupPanel Title="开展安全自主管理试点项目数" BodyPadding="5" ID="GroupPanel32" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form33" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtHSEMeasures_PilotProject_Headquarters" runat="server" Label="总部级" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="100px"></f:NumberBox>
<f:NumberBox ID="txtHSEMeasures_PilotProject_Branch" runat="server" Label="分公司级" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="100px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:Label ID="Label3" runat="server"></f:Label>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="基层站队HSE标准化建设情况" BodyPadding="5" ID="GroupPanel33" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form34" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtConstruction_Teams_Totals" runat="server" Label="班组总数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="200px"></f:NumberBox>
<f:NumberBox ID="txtConstruction_Teams_Compliant" runat="server" Label="达标班组数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="200px"></f:NumberBox>
<f:Label ID="Label2" runat="server"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="示范班组" BodyPadding="5" ID="GroupPanel34" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form35" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtConstruction_ModelTeams_Headquarters" runat="server" Label="公司级" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="200px"></f:NumberBox>
<f:NumberBox ID="txtConstruction_ModelTeams_CPECC" runat="server" Label="CPECC级" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="200px"></f:NumberBox>
<f:NumberBox ID="txtConstruction_ModelTeams_Group" runat="server" Label="集团公司级" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="200px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel Title="HSE培训" BodyPadding="5" ID="GroupPanel35" EnableCollapse="true" Collapsed="false" runat="server">
<Items>
<f:Form ID="Form36" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtHSETraining_ThreeCategory" runat="server" Label="安全管理三类人员培训人数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="200px"></f:NumberBox>
<f:NumberBox ID="txtHSETraining_TrainingPersons" runat="server" Label="新疆油田公司HSE培训人数" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="200px"></f:NumberBox>
<f:NumberBox ID="txtHSETraining_ContractorTraining" runat="server" Label="承包商人员入场培训(人次)" LabelAlign="Right" NoDecimal="true" NoNegative="true" LabelWidth="200px"></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
</form>
</body>
</html>
@@ -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
/// <summary>
/// 主键
/// </summary>
public string DataId
{
get
{
return (string)ViewState["DataId"];
}
set
{
ViewState["DataId"] = value;
}
}
#endregion
#region
/// <summary>
/// 加载数据
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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
/// <summary>
/// 保存数据
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,303 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SafetyManagementDataTotal.aspx.cs" Inherits="FineUIPro.Web.ReportManage.SafeEnvBudget.SafetyManagementDataTotal" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>安全管理数据(公司级)</title>
<style>
.f-grid-colheader .f-grid-colheader-text {
white-space: normal;
word-break: break-all;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="安全管理数据" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="UnitId" DataIDField="" AllowSorting="true" SortField="UnitName,ReportDate"
SortDirection="DESC" OnSort="Grid1_Sort" EnableColumnLines="true" AllowPaging="true"
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
EnableTextSelection="True">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList ID="drpUnitId" runat="server" Label="单位名称" LabelAlign="Right" AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged"></f:DropDownList>
<f:DatePicker runat="server" DateFormatString="yyyy-MM" Label="日期" ID="txtStartTime"
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" LabelAlign="right" Width="150px" LabelWidth="50px" DisplayType="Month" ShowTodayButton="false">
</f:DatePicker>
<f:DatePicker runat="server" DateFormatString="yyyy-MM" Label="至" ID="txtEndTime"
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" LabelAlign="right" Width="140px" LabelWidth="30px" DisplayType="Month" ShowTodayButton="false">
</f:DatePicker>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出" Icon="FolderUp"
EnableAjax="false" DisableControlBeforePostBack="false">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:TemplateField ColumnID="tfNumber" Width="55px" HeaderText="序号" HeaderTextAlign="Center"
TextAlign="Center">
<ItemTemplate>
<asp:Label ID="labNumber" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="100px" ColumnID="UnitName" DataField="UnitName"
SortField="UnitName" FieldType="String" HeaderText="单位" TextAlign="Left"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="90px" ColumnID="ReportDate" DataField="ReportDate"
SortField="ReportDate" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM" HeaderText="填报日期" TextAlign="Left"
HeaderTextAlign="Center">
</f:RenderField>
<f:GroupField HeaderText="项目运行" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField1" Width="360px">
<Columns>
<f:BoundField ColumnID="ConAndEPCCount" DataField="ConAndEPCCount" HeaderText="施工及EPC项目数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SurveyAndDesignCount" DataField="SurveyAndDesignCount" HeaderText="勘察设计项目数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="WorkingHours" DataField="WorkingHours" HeaderText="百万安全工时" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SafeDrivingMileage" DataField="SafeDrivingMileage" HeaderText="万公里安全行车里程" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="分公司监督中心监督检查" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField2">
<Columns>
<f:BoundField ColumnID="SubSupervise_InspectionItems" DataField="SubSupervise_InspectionItems" HeaderText="检查项目数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubSupervise_Inspections" DataField="SubSupervise_Inspections" HeaderText="检查次数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:GroupField HeaderText="HSE问题" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField3">
<Columns>
<f:BoundField ColumnID="SubSupervise_HSE_Total" DataField="SubSupervise_HSE_Total" HeaderText="总数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubSupervise_HSE_Larger" DataField="SubSupervise_HSE_Larger" HeaderText="较大" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubSupervise_HSE_Generally" DataField="SubSupervise_HSE_Generally" HeaderText="一般" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubSupervise_HSE_Slight" DataField="SubSupervise_HSE_Slight" HeaderText="轻微" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="质量问题" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField4">
<Columns>
<f:BoundField ColumnID="SubSupervise_Quality_Total" DataField="SubSupervise_Quality_Total" HeaderText="总数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubSupervise_Quality_Larger" DataField="SubSupervise_Quality_Larger" HeaderText="较大" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubSupervise_Quality_Generally" DataField="SubSupervise_Quality_Generally" HeaderText="一般" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubSupervise_Quality_Slight" DataField="SubSupervise_Quality_Slight" HeaderText="轻微" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="分公司视频监督检查" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField5">
<Columns>
<f:BoundField ColumnID="SubVideo_InspectionItems" DataField="SubVideo_InspectionItems" HeaderText="检查项目数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubVideo_InspectionsMin" DataField="SubVideo_InspectionsMin" HeaderText="视频监督检查时间(分钟)" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:GroupField HeaderText="HSE问题" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField6">
<Columns>
<f:BoundField ColumnID="SubVideo_HSE_Total" DataField="SubVideo_HSE_Total" HeaderText="总数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubVideo_HSE_Larger" DataField="SubVideo_HSE_Larger" HeaderText="较大" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubVideo_HSE_Generally" DataField="SubVideo_HSE_Generally" HeaderText="一般" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubVideo_HSE_Slight" DataField="SubVideo_HSE_Slight" HeaderText="轻微" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="质量问题" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField7">
<Columns>
<f:BoundField ColumnID="SubVideo_Quality_Total" DataField="SubVideo_Quality_Total" HeaderText="总数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubVideo_Quality_Larger" DataField="SubVideo_Quality_Larger" HeaderText="较大" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubVideo_Quality_Generally" DataField="SubVideo_Quality_Generally" HeaderText="一般" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="SubVideo_Quality_Slight" DataField="SubVideo_Quality_Slight" HeaderText="轻微" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="总部监督中心监督检查" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField8">
<Columns>
<f:BoundField ColumnID="HQ_InspectionItems" DataField="HQ_InspectionItems" HeaderText="检查项目数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HQ_Inspections" DataField="HQ_Inspections" HeaderText="检查次数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:GroupField HeaderText="HSE问题" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField9">
<Columns>
<f:BoundField ColumnID="HQ_HSE_Total" DataField="HQ_HSE_Total" HeaderText="总数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HQ_HSE_Larger" DataField="HQ_HSE_Larger" HeaderText="较大" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HQ_HSE_Generally" DataField="HQ_HSE_Generally" HeaderText="一般" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HQ_HSE_Slight" DataField="HQ_HSE_Slight" HeaderText="轻微" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="质量问题" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField10">
<Columns>
<f:BoundField ColumnID="HQ_Quality_Total" DataField="HQ_Quality_Total" HeaderText="总数" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HQ_Quality_Larger" DataField="HQ_Quality_Larger" HeaderText="较大" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HQ_Quality_Generally" DataField="HQ_Quality_Generally" HeaderText="一般" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HQ_Quality_Slight" DataField="HQ_Quality_Slight" HeaderText="轻微" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="质量记分及问责考核处理情况" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField11">
<Columns>
<f:GroupField HeaderText="自有员工记分" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField12">
<Columns>
<f:BoundField ColumnID="Quality_Employee_Count" DataField="Quality_Employee_Count" HeaderText="人次" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="Quality_Employee_Score" DataField="Quality_Employee_Score" HeaderText="分数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="承包商员工记分" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField13">
<Columns>
<f:BoundField ColumnID="Quality_Contractor_Count" DataField="Quality_Contractor_Count" HeaderText="人次" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="Quality_Contractor_Score" DataField="Quality_Contractor_Score" HeaderText="分数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="自有员工罚款" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField14">
<Columns>
<f:BoundField ColumnID="Quality_Employee_Fine" DataField="Quality_Employee_Fine" HeaderText="人次" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="Quality_Employee_FineAmount" DataField="Quality_Employee_FineAmount" HeaderText="金额(元)" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="承包商员工罚款" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField15">
<Columns>
<f:BoundField ColumnID="Quality_Contractor_Fine" DataField="Quality_Contractor_Fine" HeaderText="人次" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="Quality_Contractor_FineAmount" DataField="Quality_Contractor_FineAmount" HeaderText="金额(元)" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="扣除承包商违约金(元)" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField16">
<Columns>
<f:BoundField ColumnID="Quality_Contractor_Deduction" DataField="Quality_Contractor_Deduction" HeaderText="个数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="Quality_Contractor_DeductionAmount" DataField="Quality_Contractor_DeductionAmount" HeaderText="金额(元)" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="对项目部罚款(元)" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField17">
<Columns>
<f:BoundField ColumnID="Quality_ProjectDepartment_Fine" DataField="Quality_ProjectDepartment_Fine" HeaderText="个数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="Quality_ProjectDepartment_FineAmount" DataField="Quality_ProjectDepartment_FineAmount" HeaderText="金额(元)" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="安全记分及问责考核处理情况" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField18">
<Columns>
<f:GroupField HeaderText="自有员工记分" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField19">
<Columns>
<f:BoundField ColumnID="HSE_Employee_Count" DataField="HSE_Employee_Count" HeaderText="人次" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSE_Employee_Score" DataField="HSE_Employee_Score" HeaderText="分数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="承包商员工记分" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField20">
<Columns>
<f:BoundField ColumnID="HSE_Contractor_Count" DataField="HSE_Contractor_Count" HeaderText="人次" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSE_Contractor_Score" DataField="HSE_Contractor_Score" HeaderText="分数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="自有员工罚款" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField21">
<Columns>
<f:BoundField ColumnID="HSE_Employee_Fine" DataField="HSE_Employee_Fine" HeaderText="人次" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSE_Employee_FineAmount" DataField="HSE_Employee_FineAmount" HeaderText="金额(元)" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="承包商员工罚款" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField22">
<Columns>
<f:BoundField ColumnID="HSE_Contractor_Fine" DataField="HSE_Contractor_Fine" HeaderText="人次" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSE_Contractor_FineAmount" DataField="HSE_Contractor_FineAmount" HeaderText="金额(元)" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="扣除承包商违约金(元)" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField23">
<Columns>
<f:BoundField ColumnID="HSE_Contractor_Deduction" DataField="HSE_Contractor_Deduction" HeaderText="个数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSE_Contractor_DeductionAmount" DataField="HSE_Contractor_DeductionAmount" HeaderText="金额(元)" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="对项目部罚款(元)" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField24">
<Columns>
<f:BoundField ColumnID="HSE_ProjectDepartment_Fine" DataField="HSE_ProjectDepartment_Fine" HeaderText="个数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSE_ProjectDepartment_FineAmount" DataField="HSE_ProjectDepartment_FineAmount" HeaderText="金额(元)" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="领导干部HSE片区监管活动情况(二级副及以上领导班子成员)" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField25">
<Columns>
<f:GroupField HeaderText="HSE片区检查" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField26">
<Columns>
<f:BoundField ColumnID="LeaderSupervision_HSECheck_Leaders" DataField="LeaderSupervision_HSECheck_Leaders" HeaderText="领导人数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="LeaderSupervision_HSECheck_Count" DataField="LeaderSupervision_HSECheck_Count" HeaderText="检查次数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="LeaderSupervision_HSECheck_Hazards" DataField="LeaderSupervision_HSECheck_Hazards" HeaderText="查改HSE隐患数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="安全授课" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField27">
<Columns>
<f:BoundField ColumnID="LeaderSupervision_SafetyLectures_Leaders" DataField="LeaderSupervision_SafetyLectures_Leaders" HeaderText="领导人数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="LeaderSupervision_SafetyLectures_Count" DataField="LeaderSupervision_SafetyLectures_Count" HeaderText="开展次数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="LeaderSupervision_SafetyLectures_Attendees" DataField="LeaderSupervision_SafetyLectures_Attendees" HeaderText="听课人数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="安全观察与沟通活动" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField28">
<Columns>
<f:BoundField ColumnID="LeaderSupervision_Activities_Leaders" DataField="LeaderSupervision_Activities_Leaders" HeaderText="领导人数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="LeaderSupervision_Activities_Count" DataField="LeaderSupervision_Activities_Count" HeaderText="开展次数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="落实安全管理新举措" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField29">
<Columns>
<f:BoundField ColumnID="HSEMeasures_OfficesCount" DataField="HSEMeasures_OfficesCount" HeaderText="设置作业许可办公室数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSEMeasures_TrainingBooths" DataField="HSEMeasures_TrainingBooths" HeaderText="设置安全培训小屋数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSEMeasures_Toolboxs" DataField="HSEMeasures_Toolboxs" HeaderText="设置安全工具箱数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:GroupField HeaderText="设置HSE顾问" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField30">
<Columns>
<f:BoundField ColumnID="HSEMeasures_Consultant_Projects" DataField="HSEMeasures_Consultant_Projects" HeaderText="项目数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSEMeasures_Consultant_Count" DataField="HSEMeasures_Consultant_Count" HeaderText="顾问数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="施工现场五星计划" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField31">
<Columns>
<f:BoundField ColumnID="HSEMeasures_FiveStar_Star2" DataField="HSEMeasures_FiveStar_Star2" HeaderText="2星人数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSEMeasures_FiveStar_Star3" DataField="HSEMeasures_FiveStar_Star3" HeaderText="3星人数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSEMeasures_FiveStar_Star4" DataField="HSEMeasures_FiveStar_Star4" HeaderText="4星人数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSEMeasures_FiveStar_Star5" DataField="HSEMeasures_FiveStar_Star5" HeaderText="5星人数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
<f:BoundField ColumnID="HSEMeasures_Contractor_Interviewees" DataField="HSEMeasures_Contractor_Interviewees" HeaderText="承包商人员面试人数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:GroupField HeaderText="开展安全自主管理试点项目数" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField32">
<Columns>
<f:BoundField ColumnID="HSEMeasures_PilotProject_Headquarters" DataField="HSEMeasures_PilotProject_Headquarters" HeaderText="总部级" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSEMeasures_PilotProject_Branch" DataField="HSEMeasures_PilotProject_Branch" HeaderText="分公司级" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="基层站队HSE标准化建设情况" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField33">
<Columns>
<f:BoundField ColumnID="Construction_Teams_Totals" DataField="Construction_Teams_Totals" HeaderText="班组总数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="Construction_Teams_Compliant" DataField="Construction_Teams_Compliant" HeaderText="达标班组数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:GroupField HeaderText="示范班组" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField34">
<Columns>
<f:BoundField ColumnID="Construction_ModelTeams_Headquarters" DataField="Construction_ModelTeams_Headquarters" HeaderText="公司级" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="Construction_ModelTeams_CPECC" DataField="Construction_ModelTeams_CPECC" HeaderText="CPECC级" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="Construction_ModelTeams_Group" DataField="Construction_ModelTeams_Group" HeaderText="集团公司级" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="HSE培训" HeaderTextAlign="Center" TextAlign="Center" ColumnID="GroupField35">
<Columns>
<f:BoundField ColumnID="HSETraining_ThreeCategory" DataField="HSETraining_ThreeCategory" HeaderText="安全管理三类人员培训人数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSETraining_TrainingPersons" DataField="HSETraining_TrainingPersons" HeaderText="新疆油田公司HSE培训人数" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
<f:BoundField ColumnID="HSETraining_ContractorTraining" DataField="HSETraining_ContractorTraining" HeaderText="承包商人员入场培训(人次)" HeaderTextAlign="Center" TextAlign="Left" Width="90px"></f:BoundField>
</Columns>
</f:GroupField>
</Columns>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
</f:DropDownList>
<f:ToolbarFill runat="server">
</f:ToolbarFill>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
</form>
</body>
</html>
@@ -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
/// <summary>
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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<SqlParameter> listStr = new List<SqlParameter>();
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;
}
/// <summary>
/// 绑定数据
/// </summary>
private void BindGrid()
{
DataTable tb = GetSourceDataTable();
Grid1.RecordCount = tb.Rows.Count;
var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table;
Grid1.DataBind();
}
#endregion
#region
/// <summary>
/// 分页
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
{
Grid1.PageIndex = e.NewPageIndex;
BindGrid();
}
/// <summary>
/// 排序
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_Sort(object sender, GridSortEventArgs e)
{
BindGrid();
}
/// <summary>
/// 分页显示条数下拉框
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
BindGrid();
}
#endregion
#region
/// <summary>
/// 查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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
/// 导出按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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();
}
/// <summary>
/// 多表头导出
/// </summary>
public string GetGridMultiHeaderTableHtml(Grid grid, DataTable dtSource)
{
StringBuilder sb = new StringBuilder();
sb.Append("<meta http-equiv=\"content-type\" content=\"application/excel; charset=UTF-8\"/>");
sb.Append("<table cellspacing=\"0\" rules=\"all\" border=\"1\" style=\"border-collapse:collapse;\">");
MultiHeaderTable mht = new MultiHeaderTable();
mht.ResolveMultiHeaderTable(grid.Columns);
foreach (List<object[]> rows in mht.MultiTable)
{
sb.Append("<tr>");
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("<th{0}{1}{2}>{3}</th>",
rowspan != 1 ? " rowspan=\"" + rowspan + "\"" : "",
colspan != 1 ? " colspan=\"" + colspan + "\"" : "",
colspan != 1 ? " style=\"text-align:center;\"" : "",
column.HeaderText);
}
}
sb.Append("</tr>");
}
int rowIndex = 0;
foreach (DataRow dr in dtSource.Rows)
{
sb.Append("<tr>");
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("<td style=\"mso-number-format:'\\@';\">{0}</td>", System.Web.HttpUtility.HtmlEncode(cellValue));
//sb.AppendFormat("<td>{0}</td>", System.Web.HttpUtility.HtmlEncode(cellValue));
}
sb.Append("</tr>");
rowIndex++;
}
sb.Append("</table>");
return sb.ToString();
}
#endregion
}
}
@@ -0,0 +1,143 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.ReportManage.SafeEnvBudget
{
public partial class SafetyManagementDataTotal
{
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// Grid1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// Toolbar2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// drpUnitId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpUnitId;
/// <summary>
/// txtStartTime 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtStartTime;
/// <summary>
/// txtEndTime 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtEndTime;
/// <summary>
/// ToolbarFill1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// btnOut 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnOut;
/// <summary>
/// labNumber 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label labNumber;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
}
}
+2488 -24
View File
File diff suppressed because it is too large Load Diff