From 374cad03f1ebb6a62680b2e66e6831712b373d17 Mon Sep 17 00:00:00 2001 From: wendy <408182087@qq.com> Date: Wed, 20 Sep 2023 13:55:00 +0800 Subject: [PATCH] =?UTF-8?q?20230920=20HSE=E7=AE=A1=E7=90=86=E6=9C=88?= =?UTF-8?q?=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DataBase/版本日志/SGGLDB_WH_2023-09-20.sql | 317 ++ SGGL/BLL/BLL.csproj | 5 + SGGL/BLL/Common/Const.cs | 9 +- SGGL/BLL/CostGoods/PayRegistrationService.cs | 22 +- .../CostGoods/SubPayRegistrationService.cs | 26 + .../HSSE/Accident/AccidentHandleService.cs | 5 + .../HSSE/Accident/AccidentReportService.cs | 5 + .../EduTrain/EduTrain_TrainRecordService.cs | 5 + .../ComplianceObligationsCService.cs | 57 + .../Manager/ManagerMonthC/HazardCService.cs | 8 +- .../ManagerMonthC/InjuryAccidentCService.cs | 64 + .../ManagerMonthC/MonthReportCService.cs | 4 +- .../ManagerMonthC/NoInjuryAccidentCService.cs | 54 + .../PerformanceIndicatorCService.cs | 57 + .../ManagerMonthC/PersonSortCService.cs | 2 +- .../RewardAndPunishSortCService.cs | 59 + .../ManagerMonthC/SubExpenseCService.cs | 5 +- .../ManagerMonthC/TrainSortCService.cs | 4 +- SGGL/BLL/HSSE/Meeting/ClassMeetingService.cs | 15 +- SGGL/BLL/HSSE/SitePerson/PersonService.cs | 4 +- SGGL/FineUIPro.Web/ErrLog.txt | 2656 ---------------- SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 16 +- .../HSSE/Manager/MonthReportCEdit1.aspx | 4 +- .../HSSE/Manager/MonthReportCEdit10.aspx | 58 +- .../HSSE/Manager/MonthReportCEdit2.aspx | 148 +- .../HSSE/Manager/MonthReportCEdit2.aspx.cs | 12 +- .../MonthReportCEdit2.aspx.designer.cs | 9 + .../HSSE/Manager/MonthReportCEdit3.aspx | 10 +- .../HSSE/Manager/MonthReportCEdit4.aspx | 969 +++--- .../HSSE/Manager/MonthReportCEdit4.aspx.cs | 2706 +++++++++-------- .../MonthReportCEdit4.aspx.designer.cs | 796 +---- .../HSSE/Manager/MonthReportCEdit5.aspx | 241 +- .../HSSE/Manager/MonthReportCEdit5.aspx.cs | 748 +++-- .../MonthReportCEdit5.aspx.designer.cs | 65 +- .../HSSE/Manager/MonthReportCEdit6.aspx | 557 ++-- .../HSSE/Manager/MonthReportCEdit6.aspx.cs | 651 ++-- .../MonthReportCEdit6.aspx.designer.cs | 544 ++-- .../HSSE/Manager/MonthReportCEdit7.aspx | 223 +- .../HSSE/Manager/MonthReportCEdit7.aspx.cs | 412 +-- .../MonthReportCEdit7.aspx.designer.cs | 77 +- .../HSSE/Manager/MonthReportCEdit8.aspx | 293 +- .../HSSE/Manager/MonthReportCEdit8.aspx.cs | 448 +-- .../MonthReportCEdit8.aspx.designer.cs | 235 +- .../HSSE/Manager/MonthReportCEdit9.aspx | 4 +- .../HSSE/Manager/MonthReportCOut.aspx.cs | 2 +- .../HSSE/Manager/MonthReportCView2.aspx.cs | 3 +- .../HSSE/Manager/MonthReportCView8.aspx.cs | 2 +- SGGL/Model/Model.cs | 2162 +++++++++++-- 48 files changed, 6674 insertions(+), 8104 deletions(-) create mode 100644 DataBase/版本日志/SGGLDB_WH_2023-09-20.sql create mode 100644 SGGL/BLL/HSSE/Manager/ManagerMonthC/ComplianceObligationsCService.cs create mode 100644 SGGL/BLL/HSSE/Manager/ManagerMonthC/InjuryAccidentCService.cs create mode 100644 SGGL/BLL/HSSE/Manager/ManagerMonthC/NoInjuryAccidentCService.cs create mode 100644 SGGL/BLL/HSSE/Manager/ManagerMonthC/PerformanceIndicatorCService.cs create mode 100644 SGGL/BLL/HSSE/Manager/ManagerMonthC/RewardAndPunishSortCService.cs diff --git a/DataBase/版本日志/SGGLDB_WH_2023-09-20.sql b/DataBase/版本日志/SGGLDB_WH_2023-09-20.sql new file mode 100644 index 00000000..6ad99dbe --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_2023-09-20.sql @@ -0,0 +1,317 @@ +alter table Manager_PersonSortC add SumOutPersonNum int +go + +update Sys_Const set ConstText='3 本月项目现场HSE工时/工日统计' where ID='D8141695-CD8C-4724-98A5-C5DD015FA917' +update Sys_Const set ConstText='4 HSE绩效管理数据' where ID='244E173B-43D8-4D37-B4BE-FFBAF6EC18B7' +update Sys_Const set ConstText='5 本月项目HSE费用管理' where ID='890B9A0E-DA44-471A-92BD-E7150E4FFC7C' +update Sys_Const set ConstText='6 HSE责任事故/事件描述' where ID='7EC9E717-5869-4B16-8D38-7CD156C0330A' +update Sys_Const set ConstText='7 下月HSE工作计划' where ID='80488E9F-5289-4A77-A7E8-0B13FEF14ABA' +update Sys_Const set ConstText='8 HSE合规义务识别与评价' where ID='FC2F863C-248D-424C-998D-9FC00B55C13D' +update Sys_Const set ConstText='9 需协调解决的主要问题' where ID='C11BB760-8C4D-489F-8FA3-324BD0CBEB38' +update Sys_Const set ConstText='10 项目现场HSE影像照片' where ID='671D47D7-511A-404C-B864-3179483F3579' +go + +alter table Manager_TrainSortC add TrainType nvarchar(50) +alter table Manager_TrainSortC add TotalPersonNum int +alter table Manager_MonthReportC add AccidentDef nvarchar(2000) +go + + +CREATE TABLE [dbo].[Manager_Month_ComplianceObligationsC]( + [ComplianceObligationsId] [nvarchar](50) NOT NULL, + [MonthReportId] [nvarchar](50) NULL, + [InformationContent] [nvarchar](500) NULL, + [ResponseMeasures] [nvarchar](500) NULL, + [ImplementationStatus] [nvarchar](500) NULL, + [EvaluationConclusion] [nvarchar](50) NULL, + CONSTRAINT [PK_Manager_Month_ComplianceObligationsC] PRIMARY KEY CLUSTERED +( + [ComplianceObligationsId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO + +ALTER TABLE [dbo].[Manager_Month_ComplianceObligationsC] WITH CHECK ADD CONSTRAINT [FK_Manager_Month_ComplianceObligationsC_Manager_MonthReportC] FOREIGN KEY([MonthReportId]) +REFERENCES [dbo].[Manager_MonthReportC] ([MonthReportId]) +GO + +ALTER TABLE [dbo].[Manager_Month_ComplianceObligationsC] CHECK CONSTRAINT [FK_Manager_Month_ComplianceObligationsC_Manager_MonthReportC] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_ComplianceObligationsC', @level2type=N'COLUMN',@level2name=N'ComplianceObligationsId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'HSE管理月报ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_ComplianceObligationsC', @level2type=N'COLUMN',@level2name=N'MonthReportId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'HSE合规义务信息内容' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_ComplianceObligationsC', @level2type=N'COLUMN',@level2name=N'InformationContent' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'响应措施内容' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_ComplianceObligationsC', @level2type=N'COLUMN',@level2name=N'ResponseMeasures' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'实施情况' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_ComplianceObligationsC', @level2type=N'COLUMN',@level2name=N'ImplementationStatus' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'HSE合规义务识别与评价表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_ComplianceObligationsC' +GO + +drop table Manager_Month_HazardC +go +CREATE TABLE [dbo].[Manager_Month_HazardC]( + [HazardId] [nvarchar](50) NOT NULL, + [MonthReportId] [nvarchar](50) NOT NULL, + [WorkArea] [nvarchar](50) NULL, + [EnvironmentalFactors] [nvarchar](500) NULL, + [Consequence] [nvarchar](500) NULL, + [ControlMeasures] [nvarchar](100) NULL, + [IsMajor] [bit] NULL, + CONSTRAINT [PK_Manager_Month_HazardC] PRIMARY KEY CLUSTERED +( + [HazardId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO + +ALTER TABLE [dbo].[Manager_Month_HazardC] WITH CHECK ADD CONSTRAINT [FK_Manager_Month_HazardC_Manager_MonthReport] FOREIGN KEY([MonthReportId]) +REFERENCES [dbo].[Manager_MonthReportC] ([MonthReportId]) +GO + +ALTER TABLE [dbo].[Manager_Month_HazardC] CHECK CONSTRAINT [FK_Manager_Month_HazardC_Manager_MonthReport] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_HazardC', @level2type=N'COLUMN',@level2name=N'HazardId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'月报Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_HazardC', @level2type=N'COLUMN',@level2name=N'MonthReportId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'活动/过程/地点' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_HazardC', @level2type=N'COLUMN',@level2name=N'WorkArea' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'危险源环境因素描述' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_HazardC', @level2type=N'COLUMN',@level2name=N'EnvironmentalFactors' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'可能存在的危险源' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_HazardC', @level2type=N'COLUMN',@level2name=N'Consequence' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'控制措施' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_HazardC', @level2type=N'COLUMN',@level2name=N'ControlMeasures' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否重大危险源/重要环境因素' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_HazardC', @level2type=N'COLUMN',@level2name=N'IsMajor' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'新增危险源识别及控制' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_HazardC' +GO + + + +CREATE TABLE [dbo].[Manager_RewardAndPunishSortC]( + [RewardAndPunishId] [nvarchar](50) NOT NULL, + [MonthReportId] [nvarchar](50) NULL, + [RewardNum] [int] NULL, + [RewardMoney] [decimal](18, 2) NULL, + [ProjectRewardMoney] [numeric](18, 2) NULL, + [PunishNum] [int] NULL, + [PunishMoney] [decimal](18, 2) NULL, + [ProjectPunishMoney] [decimal](18, 2) NULL, + CONSTRAINT [PK_Manager_RewardAndPunishSortC] PRIMARY KEY CLUSTERED +( + [RewardAndPunishId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO + +ALTER TABLE [dbo].[Manager_RewardAndPunishSortC] WITH CHECK ADD CONSTRAINT [FK_Manager_RewardAndPunishSortC_Manager_MonthReportC] FOREIGN KEY([MonthReportId]) +REFERENCES [dbo].[Manager_MonthReportC] ([MonthReportId]) +GO + +ALTER TABLE [dbo].[Manager_RewardAndPunishSortC] CHECK CONSTRAINT [FK_Manager_RewardAndPunishSortC_Manager_MonthReportC] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_RewardAndPunishSortC', @level2type=N'COLUMN',@level2name=N'RewardAndPunishId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'HSE管理月报ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_RewardAndPunishSortC', @level2type=N'COLUMN',@level2name=N'MonthReportId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'本月HSE奖励次数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_RewardAndPunishSortC', @level2type=N'COLUMN',@level2name=N'RewardNum' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'本月奖励金额(元)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_RewardAndPunishSortC', @level2type=N'COLUMN',@level2name=N'RewardMoney' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目累计奖励金额' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_RewardAndPunishSortC', @level2type=N'COLUMN',@level2name=N'ProjectRewardMoney' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'本月HSE处罚次数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_RewardAndPunishSortC', @level2type=N'COLUMN',@level2name=N'PunishNum' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'本月处罚金额(元)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_RewardAndPunishSortC', @level2type=N'COLUMN',@level2name=N'PunishMoney' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目累计处罚金额' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_RewardAndPunishSortC', @level2type=N'COLUMN',@level2name=N'ProjectPunishMoney' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N' HSE奖励与处罚' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_RewardAndPunishSortC' +GO + +alter table Manager_Month_SubExpenseC add ContractAmount decimal(18,2) +alter table Manager_Month_SubExpenseC add MonthApprovalAmount decimal(18,2) +alter table Manager_Month_SubExpenseC add ProjectApprovalAmount decimal(18,2) +go + +CREATE TABLE [dbo].[Manager_Month_InjuryAccidentC]( + [InjuryAccidentId] [nvarchar](50) NOT NULL, + [MonthReportId] [nvarchar](50) NULL, + [UnitName] [nvarchar](50) NULL, + [AttemptedIncidents] [int] NULL, + [FirstAidDressing] [int] NULL, + [MedicalTreatment] [int] NULL, + [WorkLimitation] [int] NULL, + [LossPerson] [int] NULL, + [LossWorkTime] [decimal](18, 2) NULL, + [LossEconomy] [decimal](18, 2) NULL, + [DeathPerson] [int] NULL, + [DeathWorkTime] [decimal](18, 2) NULL, + [DeathEconomy] [decimal](18, 2) NULL, + CONSTRAINT [PK_Manager_Month_InjuryAccidentC] PRIMARY KEY CLUSTERED +( + [InjuryAccidentId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO + +ALTER TABLE [dbo].[Manager_Month_InjuryAccidentC] WITH CHECK ADD CONSTRAINT [FK_Manager_Month_InjuryAccidentC_Manager_MonthReportC] FOREIGN KEY([MonthReportId]) +REFERENCES [dbo].[Manager_MonthReportC] ([MonthReportId]) +GO + +ALTER TABLE [dbo].[Manager_Month_InjuryAccidentC] CHECK CONSTRAINT [FK_Manager_Month_InjuryAccidentC_Manager_MonthReportC] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'未遂事件起数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_InjuryAccidentC', @level2type=N'COLUMN',@level2name=N'AttemptedIncidents' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'急救包扎事故人数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_InjuryAccidentC', @level2type=N'COLUMN',@level2name=N'FirstAidDressing' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'医疗处置事故人数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_InjuryAccidentC', @level2type=N'COLUMN',@level2name=N'MedicalTreatment' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'工作受限事故人数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_InjuryAccidentC', @level2type=N'COLUMN',@level2name=N'WorkLimitation' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'损失事故(人数)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_InjuryAccidentC', @level2type=N'COLUMN',@level2name=N'LossPerson' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'损失事故(损失工时)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_InjuryAccidentC', @level2type=N'COLUMN',@level2name=N'LossWorkTime' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'损失事故(经济损失)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_InjuryAccidentC', @level2type=N'COLUMN',@level2name=N'LossEconomy' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'死亡事故(人数)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_InjuryAccidentC', @level2type=N'COLUMN',@level2name=N'DeathPerson' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'死亡事故(损失工时)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_InjuryAccidentC', @level2type=N'COLUMN',@level2name=N'DeathWorkTime' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'死亡事故(经济损失)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_InjuryAccidentC', @level2type=N'COLUMN',@level2name=N'DeathEconomy' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'本月伤害事故统计' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_InjuryAccidentC' +GO + + + +CREATE TABLE [dbo].[Manager_Month_NoInjuryAccidentC]( + [NoInjuryAccidentId] [nvarchar](50) NOT NULL, + [MonthReportId] [nvarchar](50) NULL, + [AccidentType] [nvarchar](50) NULL, + [EconomicLosses] [decimal](18, 2) NULL, + [WHAccidentCount] [int] NULL, + [SubAccidentCount] [int] NULL, + CONSTRAINT [PK_Manager_Month_NoInjuryAccidentC] PRIMARY KEY CLUSTERED +( + [NoInjuryAccidentId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO + +ALTER TABLE [dbo].[Manager_Month_NoInjuryAccidentC] WITH CHECK ADD CONSTRAINT [FK_Manager_Month_NoInjuryAccidentC_Manager_MonthReportC] FOREIGN KEY([MonthReportId]) +REFERENCES [dbo].[Manager_MonthReportC] ([MonthReportId]) +GO + +ALTER TABLE [dbo].[Manager_Month_NoInjuryAccidentC] CHECK CONSTRAINT [FK_Manager_Month_NoInjuryAccidentC_Manager_MonthReportC] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_NoInjuryAccidentC', @level2type=N'COLUMN',@level2name=N'NoInjuryAccidentId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'月报ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_NoInjuryAccidentC', @level2type=N'COLUMN',@level2name=N'MonthReportId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'事故类型' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_NoInjuryAccidentC', @level2type=N'COLUMN',@level2name=N'AccidentType' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'经济损失' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_NoInjuryAccidentC', @level2type=N'COLUMN',@level2name=N'EconomicLosses' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'事故起数(五环)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_NoInjuryAccidentC', @level2type=N'COLUMN',@level2name=N'WHAccidentCount' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'事故起数(分包)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_NoInjuryAccidentC', @level2type=N'COLUMN',@level2name=N'SubAccidentCount' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'本月无伤害事故统计' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_NoInjuryAccidentC' +GO + + + +CREATE TABLE [dbo].[Manager_Month_PerformanceIndicatorC]( + [PerformanceIndicatorId] [nvarchar](50) NOT NULL, + [MonthReportId] [nvarchar](50) NULL, + [IndicatorType] [nvarchar](50) NULL, + [IndicatorName] [nvarchar](200) NULL, + [IndicatorValue] [nvarchar](50) NULL, + [SortIndex] [int] NULL, + CONSTRAINT [PK_Manager_Month_PerformanceIndicatorC] PRIMARY KEY CLUSTERED +( + [PerformanceIndicatorId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO + +ALTER TABLE [dbo].[Manager_Month_PerformanceIndicatorC] WITH CHECK ADD CONSTRAINT [FK_Manager_Month_PerformanceIndicatorC_Manager_MonthReportC] FOREIGN KEY([MonthReportId]) +REFERENCES [dbo].[Manager_MonthReportC] ([MonthReportId]) +GO + +ALTER TABLE [dbo].[Manager_Month_PerformanceIndicatorC] CHECK CONSTRAINT [FK_Manager_Month_PerformanceIndicatorC_Manager_MonthReportC] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_PerformanceIndicatorC', @level2type=N'COLUMN',@level2name=N'PerformanceIndicatorId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'月报ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_PerformanceIndicatorC', @level2type=N'COLUMN',@level2name=N'MonthReportId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'指标类别' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_PerformanceIndicatorC', @level2type=N'COLUMN',@level2name=N'IndicatorType' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'指标名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_PerformanceIndicatorC', @level2type=N'COLUMN',@level2name=N'IndicatorName' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'指标值' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_PerformanceIndicatorC', @level2type=N'COLUMN',@level2name=N'IndicatorValue' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'绩效指标' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_Month_PerformanceIndicatorC' +GO + + + diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj index a90535d5..f8b66252 100644 --- a/SGGL/BLL/BLL.csproj +++ b/SGGL/BLL/BLL.csproj @@ -467,6 +467,7 @@ + @@ -478,18 +479,22 @@ + + + + diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs index 91bcdee0..aac29cc9 100644 --- a/SGGL/BLL/Common/Const.cs +++ b/SGGL/BLL/Common/Const.cs @@ -207,6 +207,11 @@ namespace BLL /// public const string AppSecret_CWCEC = "a08b6ad503f1ced05d27bc11dc9198c3"; + /// + /// 施工单位ID + /// + public const string UnitId_Con = "fedf9907-54f8-481d-ae4c-8f3dfb7c8eda"; + /// ///施工部门id /// @@ -281,7 +286,7 @@ namespace BLL /// /// HSE工程师岗位Id /// - public static string WorkPost_HSSEEngineer = "9b15af2e-6131-462c-9f8a-71533957ca0e"; + public static string WorkPost_HSSEEngineer = "D1115B78-C9E1-43A4-8AB1-FF099CAF7BA4"; /// /// 项目安全总监岗位Id /// @@ -289,7 +294,7 @@ namespace BLL /// /// HSE经理岗位Id /// - public static string WorkPost_SafetyManager = "e426e560-9906-4aba-843e-2daef9ebeb05"; + public static string WorkPost_SafetyManager = "eac153fd-4cf3-4f5f-984d-022a636d47aa"; /// /// 无损检测工岗位Id diff --git a/SGGL/BLL/CostGoods/PayRegistrationService.cs b/SGGL/BLL/CostGoods/PayRegistrationService.cs index ab737242..648ec829 100644 --- a/SGGL/BLL/CostGoods/PayRegistrationService.cs +++ b/SGGL/BLL/CostGoods/PayRegistrationService.cs @@ -475,15 +475,31 @@ namespace BLL } /// - /// 根据时间、项目获取安全费用投入登记信息 + /// 根据时间、项目获取五环安全费用投入登记信息 /// /// /// /// /// - public static List GetPayRegistrationByPayDate(DateTime startTime, DateTime endTime, string projectId) + public static List GetPayRegistrationByPayDate(DateTime startTime, DateTime endTime, string projectId,string unitId) { - return (from x in Funs.DB.CostGoods_PayRegistration where x.PayDate >= startTime && x.PayDate <= endTime && x.ProjectId == projectId select x).ToList(); + return (from x in Funs.DB.CostGoods_PayRegistration where x.PayDate >= startTime && x.PayDate <= endTime && x.ProjectId == projectId && x.UnitId == unitId select x).ToList(); + } + + /// + /// 根据时间、项目获取施工分包商安全费用投入登记信息 + /// + /// + /// + /// + /// + public static List GetConPayRegistrationByPayDate(DateTime startTime, DateTime endTime, string projectId) + { + return (from x in Funs.DB.CostGoods_PayRegistration + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + where x.PayDate >= startTime && x.PayDate <= endTime && x.ProjectId == projectId + && y.UnitTypeId == BLL.Const.UnitId_Con + select x).ToList(); } } } diff --git a/SGGL/BLL/CostGoods/SubPayRegistrationService.cs b/SGGL/BLL/CostGoods/SubPayRegistrationService.cs index 395f0643..ca677519 100644 --- a/SGGL/BLL/CostGoods/SubPayRegistrationService.cs +++ b/SGGL/BLL/CostGoods/SubPayRegistrationService.cs @@ -219,6 +219,32 @@ namespace BLL return (from x in Funs.DB.CostGoods_SubPayRegistration where x.PayDate >= startTime && x.PayDate <= endTime && x.ProjectId == projectId select x).ToList(); } + /// + /// 根据单位获取HSE措施费合同额 + /// + /// + /// + /// + /// + public static decimal? GetSubPaySMonthTypeByUnitId(string unitId, DateTime startTime, DateTime endTime) + { + var q = (from x in Funs.DB.CostGoods_SubPayRegistration + where x.UnitId == unitId && x.PayDate >= startTime && x.PayDate < endTime + select x).ToList(); + if (q.Count > 0) + { + return q.Sum(e => (e.SMonthType1 + e.SMonthType2 + e.SMonthType3 + e.SMonthType4 + e.SMonthType5 + e.SMonthType6 + e.SMonthType7 + e.SMonthType8 + e.SMonthType9 + e.SMonthType10 + e.SMonthType11 + e.SMonthType12 + e.SMonthType13 + e.SMonthType14 + e.SMonthType15 + e.SMonthType16 + e.SMonthType17 + e.SMonthType18 + e.SMonthType19 + e.SMonthType20 + e.SMonthType21 + e.SMonthType22 + e.SMonthType23 + e.SMonthType24 + e.SMonthType25 + e.SMonthType26 + e.SMonthType27 + e.SMonthType28 + e.SMonthType29)); + } + return null; + } + + /// + /// 根据单位获取本月项目分包商HSE费用支付统计 + /// + /// + /// + /// + /// public static decimal? GetSubPayRegistrationByUnitId(string unitId, DateTime startTime, DateTime endTime) { var q = (from x in Funs.DB.CostGoods_SubPayRegistration diff --git a/SGGL/BLL/HSSE/Accident/AccidentHandleService.cs b/SGGL/BLL/HSSE/Accident/AccidentHandleService.cs index 6ba1d44f..b1f73c7d 100644 --- a/SGGL/BLL/HSSE/Accident/AccidentHandleService.cs +++ b/SGGL/BLL/HSSE/Accident/AccidentHandleService.cs @@ -102,5 +102,10 @@ namespace BLL db.SubmitChanges(); } } + + public static int GetAccidentHandleByAccidentDate(DateTime startTime, DateTime endTime, string projectId, string unitId) + { + return (from x in Funs.DB.Accident_AccidentHandle where x.AccidentDate >= startTime && x.AccidentDate < endTime && x.ProjectId == projectId && x.UnitId == unitId select x).Count(); + } } } \ No newline at end of file diff --git a/SGGL/BLL/HSSE/Accident/AccidentReportService.cs b/SGGL/BLL/HSSE/Accident/AccidentReportService.cs index bdabca29..febdddd9 100644 --- a/SGGL/BLL/HSSE/Accident/AccidentReportService.cs +++ b/SGGL/BLL/HSSE/Accident/AccidentReportService.cs @@ -453,5 +453,10 @@ namespace BLL db.SubmitChanges(); } } + + public static List GetAccidentReportsByAccidentType(string accidentType,DateTime startTime, DateTime endTime, string projectId) + { + return (from x in Funs.DB.Accident_AccidentReport where x.AccidentTypeId==accidentType && x.AccidentDate >= startTime && x.AccidentDate < endTime && x.ProjectId == projectId && x.States == BLL.Const.State_2 select x).ToList(); + } } } diff --git a/SGGL/BLL/HSSE/EduTrain/EduTrain_TrainRecordService.cs b/SGGL/BLL/HSSE/EduTrain/EduTrain_TrainRecordService.cs index 2f6b3c00..157168e1 100644 --- a/SGGL/BLL/HSSE/EduTrain/EduTrain_TrainRecordService.cs +++ b/SGGL/BLL/HSSE/EduTrain/EduTrain_TrainRecordService.cs @@ -154,5 +154,10 @@ namespace BLL { return (from x in Funs.DB.EduTrain_TrainRecord where x.TrainStartDate < time && x.ProjectId == projectId select x).Count(); } + + public static int? GetTrainPersonCount(DateTime startTime, DateTime endTime, string projectId) + { + return (from x in Funs.DB.EduTrain_TrainRecord where x.TrainStartDate >= startTime && x.TrainStartDate <= endTime && x.ProjectId == projectId select x.TrainPersonNum).Sum(); + } } } diff --git a/SGGL/BLL/HSSE/Manager/ManagerMonthC/ComplianceObligationsCService.cs b/SGGL/BLL/HSSE/Manager/ManagerMonthC/ComplianceObligationsCService.cs new file mode 100644 index 00000000..313d61fd --- /dev/null +++ b/SGGL/BLL/HSSE/Manager/ManagerMonthC/ComplianceObligationsCService.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + /// + /// HSE合规义务识别与评价 + /// + public class ComplianceObligationsCService + { + /// + /// 根据月报ID获取相关HSE合规义务识别与评价 + /// + /// + /// + public static List GetComplianceObligationsCByMonthReportId(string monthRepportId) + { + return (from x in Funs.DB.Manager_Month_ComplianceObligationsC where x.MonthReportId == monthRepportId select x).ToList(); + } + + /// + /// 增加 + /// + /// + public static void AddComplianceObligationsC(Model.Manager_Month_ComplianceObligationsC data) + { + Model.Manager_Month_ComplianceObligationsC newData = new Model.Manager_Month_ComplianceObligationsC + { + ComplianceObligationsId = data.ComplianceObligationsId, + MonthReportId = data.MonthReportId, + InformationContent = data.InformationContent, + ResponseMeasures = data.ResponseMeasures, + ImplementationStatus = data.ImplementationStatus, + EvaluationConclusion = data.EvaluationConclusion + }; + Funs.DB.Manager_Month_ComplianceObligationsC.InsertOnSubmit(newData); + Funs.DB.SubmitChanges(); + } + + /// + /// 根据HSE月报ID删除相关HSE合规义务识别与评价 + /// + /// + public static void DeleteComplianceObligationsCByMonthReportId(string monthReportId) + { + var q = (from x in Funs.DB.Manager_Month_ComplianceObligationsC where x.MonthReportId == monthReportId select x).ToList(); + if (q != null) + { + Funs.DB.Manager_Month_ComplianceObligationsC.DeleteAllOnSubmit(q); + Funs.DB.SubmitChanges(); + } + } + } +} diff --git a/SGGL/BLL/HSSE/Manager/ManagerMonthC/HazardCService.cs b/SGGL/BLL/HSSE/Manager/ManagerMonthC/HazardCService.cs index 63fa1762..ec21a88e 100644 --- a/SGGL/BLL/HSSE/Manager/ManagerMonthC/HazardCService.cs +++ b/SGGL/BLL/HSSE/Manager/ManagerMonthC/HazardCService.cs @@ -16,7 +16,7 @@ namespace BLL /// public static List GetHazardByMonthReportId(string monthReportId) { - return (from x in Funs.DB.Manager_Month_HazardC where x.MonthReportId == monthReportId orderby x.SortIndex select x).ToList(); + return (from x in Funs.DB.Manager_Month_HazardC where x.MonthReportId == monthReportId select x).ToList(); } /// @@ -31,10 +31,10 @@ namespace BLL HazardId = SQLHelper.GetNewID(typeof(Model.Manager_Month_HazardC)), MonthReportId = hazard.MonthReportId, WorkArea = hazard.WorkArea, - Subcontractor = hazard.Subcontractor, - DangerousSource = hazard.DangerousSource, + EnvironmentalFactors = hazard.EnvironmentalFactors, + Consequence = hazard.Consequence, ControlMeasures = hazard.ControlMeasures, - SortIndex = hazard.SortIndex + IsMajor = hazard.IsMajor }; db.Manager_Month_HazardC.InsertOnSubmit(newHazard); db.SubmitChanges(); diff --git a/SGGL/BLL/HSSE/Manager/ManagerMonthC/InjuryAccidentCService.cs b/SGGL/BLL/HSSE/Manager/ManagerMonthC/InjuryAccidentCService.cs new file mode 100644 index 00000000..07f849d9 --- /dev/null +++ b/SGGL/BLL/HSSE/Manager/ManagerMonthC/InjuryAccidentCService.cs @@ -0,0 +1,64 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + /// + /// 伤害事故统计 + /// + public class InjuryAccidentCService + { + /// + /// 根据月报ID获取伤害事故统计 + /// + /// + /// + public static List GetInjuryAccidentCByMonthReportId(string monthReportId) + { + return (from x in Funs.DB.Manager_Month_InjuryAccidentC where x.MonthReportId == monthReportId select x).ToList(); + } + + /// + /// 添加伤害事故统计 + /// + /// + public static void AddInjuryAccidentC(Model.Manager_Month_InjuryAccidentC injuryAccident) + { + Model.Manager_Month_InjuryAccidentC newInjuryAccident = new Model.Manager_Month_InjuryAccidentC + { + InjuryAccidentId = injuryAccident.InjuryAccidentId, + MonthReportId = injuryAccident.MonthReportId, + UnitName = injuryAccident.UnitName, + AttemptedIncidents = injuryAccident.AttemptedIncidents, + FirstAidDressing = injuryAccident.FirstAidDressing, + MedicalTreatment = injuryAccident.MedicalTreatment, + WorkLimitation = injuryAccident.WorkLimitation, + LossPerson = injuryAccident.LossPerson, + LossWorkTime = injuryAccident.LossWorkTime, + LossEconomy = injuryAccident.LossEconomy, + DeathPerson = injuryAccident.DeathPerson, + DeathWorkTime = injuryAccident.DeathWorkTime, + DeathEconomy = injuryAccident.DeathEconomy + }; + Funs.DB.Manager_Month_InjuryAccidentC.InsertOnSubmit(newInjuryAccident); + Funs.DB.SubmitChanges(); + } + + /// + /// 根据月报ID删除伤害事故 + /// + /// + public static void DeleteInjuryAccidengtByMonthReportId(string montReportId) + { + var q = (from x in Funs.DB.Manager_Month_InjuryAccidentC where x.MonthReportId == montReportId select x).ToList(); + if (q != null) + { + Funs.DB.Manager_Month_InjuryAccidentC.DeleteAllOnSubmit(q); + Funs.DB.SubmitChanges(); + } + } + } +} diff --git a/SGGL/BLL/HSSE/Manager/ManagerMonthC/MonthReportCService.cs b/SGGL/BLL/HSSE/Manager/ManagerMonthC/MonthReportCService.cs index 724cb04a..be75da67 100644 --- a/SGGL/BLL/HSSE/Manager/ManagerMonthC/MonthReportCService.cs +++ b/SGGL/BLL/HSSE/Manager/ManagerMonthC/MonthReportCService.cs @@ -225,7 +225,8 @@ namespace BLL YearSolutionNum = monthReport.YearSolutionNum, AccidentDes = monthReport.AccidentDes, Question = monthReport.Question, - SubcontractManHours = monthReport.SubcontractManHours + SubcontractManHours = monthReport.SubcontractManHours, + AccidentDef = monthReport.AccidentDef, }; db.Manager_MonthReportC.InsertOnSubmit(newMonthReport); @@ -295,6 +296,7 @@ namespace BLL newMonthReport.AccidentDes = monthReport.AccidentDes; newMonthReport.Question = monthReport.Question; newMonthReport.SubcontractManHours = monthReport.SubcontractManHours; + newMonthReport.AccidentDef = monthReport.AccidentDef; db.SubmitChanges(); } diff --git a/SGGL/BLL/HSSE/Manager/ManagerMonthC/NoInjuryAccidentCService.cs b/SGGL/BLL/HSSE/Manager/ManagerMonthC/NoInjuryAccidentCService.cs new file mode 100644 index 00000000..c646f973 --- /dev/null +++ b/SGGL/BLL/HSSE/Manager/ManagerMonthC/NoInjuryAccidentCService.cs @@ -0,0 +1,54 @@ +using System.Collections.Generic; +using System.Linq; + +namespace BLL +{ + /// + /// 本月无伤害事故统计 + /// + public class NoInjuryAccidentCService + { + /// + /// 根据月报ID获取本月无伤害事故统计 + /// + /// + /// + public static List GetNoInjuryAccidentByMonthReportId(string monthReportId) + { + return (from x in Funs.DB.Manager_Month_NoInjuryAccidentC where x.MonthReportId == monthReportId select x).ToList(); + } + + /// + /// 添加无伤害事故统计 + /// + /// + public static void AddNoInjuryAccident(Model.Manager_Month_NoInjuryAccidentC noInjury) + { + Model.Manager_Month_NoInjuryAccidentC newNoInjury = new Model.Manager_Month_NoInjuryAccidentC + { + NoInjuryAccidentId = noInjury.NoInjuryAccidentId, + MonthReportId = noInjury.MonthReportId, + AccidentType = noInjury.AccidentType, + EconomicLosses = noInjury.EconomicLosses, + WHAccidentCount = noInjury.WHAccidentCount, + SubAccidentCount = noInjury.SubAccidentCount, + }; + Funs.DB.Manager_Month_NoInjuryAccidentC.InsertOnSubmit(newNoInjury); + Funs.DB.SubmitChanges(); + } + + /// + /// 根据月报ID删除无伤害事故统计 + /// + /// + public static void DeleteNoInjuryAccidentByMonthReportId(string monthReportId) + { + var q = (from x in Funs.DB.Manager_Month_NoInjuryAccidentC where x.MonthReportId == monthReportId select x).ToList(); + if (q!=null) + { + Funs.DB.Manager_Month_NoInjuryAccidentC.DeleteAllOnSubmit(q); + Funs.DB.SubmitChanges(); + } + } + } +} diff --git a/SGGL/BLL/HSSE/Manager/ManagerMonthC/PerformanceIndicatorCService.cs b/SGGL/BLL/HSSE/Manager/ManagerMonthC/PerformanceIndicatorCService.cs new file mode 100644 index 00000000..ed120ec8 --- /dev/null +++ b/SGGL/BLL/HSSE/Manager/ManagerMonthC/PerformanceIndicatorCService.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + /// + /// 项目HSE绩效指标 + /// + public class PerformanceIndicatorCService + { + /// + /// 根据月报ID获取HSE绩效指标 + /// + /// + /// + public static List GetPerformanceIndicatorByMonthReportId(string monthReportId) + { + return (from x in Funs.DB.Manager_Month_PerformanceIndicatorC where x.MonthReportId == monthReportId orderby x.SortIndex select x).ToList(); + } + + /// + /// 添加HSE绩效指标 + /// + /// + public static void AddPerformanceIndicator(Model.Manager_Month_PerformanceIndicatorC indicator) + { + Model.Manager_Month_PerformanceIndicatorC newIndicator = new Model.Manager_Month_PerformanceIndicatorC + { + PerformanceIndicatorId = indicator.PerformanceIndicatorId, + MonthReportId = indicator.MonthReportId, + IndicatorType = indicator.IndicatorType, + IndicatorName = indicator.IndicatorName, + IndicatorValue = indicator.IndicatorValue, + SortIndex = indicator.SortIndex, + }; + Funs.DB.Manager_Month_PerformanceIndicatorC.InsertOnSubmit(newIndicator); + Funs.DB.SubmitChanges(); + } + + /// + /// 根据主键删除HSE绩效指标 + /// + /// + public static void DeletePerformanceIndicatorByMonthReportId(string monthReportId) + { + var q = (from x in Funs.DB.Manager_Month_PerformanceIndicatorC where x.MonthReportId == monthReportId select x).ToList(); + if (q != null) + { + Funs.DB.Manager_Month_PerformanceIndicatorC.DeleteAllOnSubmit(q); + Funs.DB.SubmitChanges(); + } + } + } +} diff --git a/SGGL/BLL/HSSE/Manager/ManagerMonthC/PersonSortCService.cs b/SGGL/BLL/HSSE/Manager/ManagerMonthC/PersonSortCService.cs index 60a7d289..d57b308e 100644 --- a/SGGL/BLL/HSSE/Manager/ManagerMonthC/PersonSortCService.cs +++ b/SGGL/BLL/HSSE/Manager/ManagerMonthC/PersonSortCService.cs @@ -39,11 +39,11 @@ namespace BLL MonthReportId = checkSort.MonthReportId, UnitId = checkSort.UnitId, SumPersonNum = checkSort.SumPersonNum, + SumOutPersonNum = checkSort.SumOutPersonNum, HSEPersonNum = checkSort.HSEPersonNum, ContractRange = checkSort.ContractRange, Remark = checkSort.Remark }; - db.Manager_PersonSortC.InsertOnSubmit(newPersonSort); db.SubmitChanges(); } diff --git a/SGGL/BLL/HSSE/Manager/ManagerMonthC/RewardAndPunishSortCService.cs b/SGGL/BLL/HSSE/Manager/ManagerMonthC/RewardAndPunishSortCService.cs new file mode 100644 index 00000000..d0acb882 --- /dev/null +++ b/SGGL/BLL/HSSE/Manager/ManagerMonthC/RewardAndPunishSortCService.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + /// + /// HSE奖励与处罚 + /// + public class RewardAndPunishSortCService + { + /// + /// 根据月报ID获取HSE奖励与处罚列表 + /// + /// + /// + public static List GetRewardAndPunishSortCByMontReportId(string monthReportId) + { + return (from x in Funs.DB.Manager_RewardAndPunishSortC where x.MonthReportId == monthReportId select x).ToList(); + } + + /// + /// 增加HSE奖励与处罚 + /// + /// + public static void AddRewardAndPunishSortC(Model.Manager_RewardAndPunishSortC sortC) + { + Model.Manager_RewardAndPunishSortC newSortC = new Model.Manager_RewardAndPunishSortC + { + RewardAndPunishId = sortC.RewardAndPunishId, + MonthReportId = sortC.MonthReportId, + RewardNum = sortC.RewardNum, + RewardMoney = sortC.RewardMoney, + ProjectRewardMoney = sortC.ProjectRewardMoney, + PunishNum = sortC.PunishNum, + PunishMoney = sortC.PunishMoney, + ProjectPunishMoney = sortC.ProjectPunishMoney + }; + Funs.DB.Manager_RewardAndPunishSortC.InsertOnSubmit(newSortC); + Funs.DB.SubmitChanges(); + } + + /// + /// 根据月报id删除HSE奖励与处罚 + /// + /// + public static void DeleteRewardAndPunishSortCByMonthReportId(string monthReportId) + { + var q = (from x in Funs.DB.Manager_RewardAndPunishSortC where x.MonthReportId == monthReportId select x).ToList(); + if (q != null) + { + Funs.DB.Manager_RewardAndPunishSortC.DeleteAllOnSubmit(q); + Funs.DB.SubmitChanges(); + } + } + } +} diff --git a/SGGL/BLL/HSSE/Manager/ManagerMonthC/SubExpenseCService.cs b/SGGL/BLL/HSSE/Manager/ManagerMonthC/SubExpenseCService.cs index ee335401..9c018d71 100644 --- a/SGGL/BLL/HSSE/Manager/ManagerMonthC/SubExpenseCService.cs +++ b/SGGL/BLL/HSSE/Manager/ManagerMonthC/SubExpenseCService.cs @@ -33,7 +33,10 @@ namespace BLL SubUnit = subExpense.SubUnit, CostMonth = subExpense.CostMonth, CostYear = subExpense.CostYear, - SortIndex = subExpense.SortIndex + SortIndex = subExpense.SortIndex, + ContractAmount=subExpense.ContractAmount, + MonthApprovalAmount = subExpense.MonthApprovalAmount, + ProjectApprovalAmount=subExpense.ProjectApprovalAmount }; db.Manager_Month_SubExpenseC.InsertOnSubmit(newSubExpense); db.SubmitChanges(); diff --git a/SGGL/BLL/HSSE/Manager/ManagerMonthC/TrainSortCService.cs b/SGGL/BLL/HSSE/Manager/ManagerMonthC/TrainSortCService.cs index bfecd4ac..817befa0 100644 --- a/SGGL/BLL/HSSE/Manager/ManagerMonthC/TrainSortCService.cs +++ b/SGGL/BLL/HSSE/Manager/ManagerMonthC/TrainSortCService.cs @@ -36,7 +36,9 @@ namespace BLL TeachHour = trainSort.TeachHour, TeachMan = trainSort.TeachMan, UnitName = trainSort.UnitName, - PersonNum = trainSort.PersonNum + PersonNum = trainSort.PersonNum, + TrainType = trainSort.TrainType, + TotalPersonNum = trainSort.TotalPersonNum }; db.Manager_TrainSortC.InsertOnSubmit(newTrainSort); diff --git a/SGGL/BLL/HSSE/Meeting/ClassMeetingService.cs b/SGGL/BLL/HSSE/Meeting/ClassMeetingService.cs index e6ef0a0b..6e151d5c 100644 --- a/SGGL/BLL/HSSE/Meeting/ClassMeetingService.cs +++ b/SGGL/BLL/HSSE/Meeting/ClassMeetingService.cs @@ -1,4 +1,5 @@ -using System.Linq; +using System; +using System.Linq; namespace BLL { @@ -100,5 +101,17 @@ namespace BLL db.SubmitChanges(); } } + + /// + /// 根据时间段获取班前会议集合 + /// + /// + /// + /// + /// + public static int GetCountByTime(DateTime startTime, DateTime endTime, string projectId) + { + return (from x in Funs.DB.Meeting_ClassMeeting where x.ClassMeetingDate >= startTime && x.ClassMeetingDate < endTime && x.ProjectId == projectId select x).Count(); + } } } diff --git a/SGGL/BLL/HSSE/SitePerson/PersonService.cs b/SGGL/BLL/HSSE/SitePerson/PersonService.cs index 157e8e6e..37d3e706 100644 --- a/SGGL/BLL/HSSE/SitePerson/PersonService.cs +++ b/SGGL/BLL/HSSE/SitePerson/PersonService.cs @@ -384,9 +384,9 @@ namespace BLL /// /// 单位Id /// 人员的数量 - public static int GetPersonCountByUnitId(string unitId, string projectId) + public static int GetPersonCountByUnitId(string unitId, string projectId, bool isOutside) { - var q = (from x in Funs.DB.SitePerson_Person where x.UnitId == unitId && x.ProjectId == projectId && x.IsUsed == true select x).ToList(); + var q = (from x in Funs.DB.SitePerson_Person where x.UnitId == unitId && x.ProjectId == projectId && x.IsUsed == true && x.IsOutside == isOutside select x).ToList(); return q.Count(); } diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt index 01866bc0..e69de29b 100644 --- a/SGGL/FineUIPro.Web/ErrLog.txt +++ b/SGGL/FineUIPro.Web/ErrLog.txt @@ -1,2656 +0,0 @@ - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:11:23 -出错时间:08/16/2023 16:11:23 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:11:23 -出错时间:08/16/2023 16:11:23 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:11:24 -出错时间:08/16/2023 16:11:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:11:24 -出错时间:08/16/2023 16:11:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:11:24 -出错时间:08/16/2023 16:11:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:11:24 -出错时间:08/16/2023 16:11:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:11:24 -出错时间:08/16/2023 16:11:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:11:24 -出错时间:08/16/2023 16:11:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:11:24 -出错时间:08/16/2023 16:11:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:11:24 -出错时间:08/16/2023 16:11:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:11:24 -出错时间:08/16/2023 16:11:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:11:24 -出错时间:08/16/2023 16:11:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:11:25 -出错时间:08/16/2023 16:11:25 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:11:50 -出错时间:08/16/2023 16:11:50 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:11:50 -出错时间:08/16/2023 16:11:50 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:11:50 -出错时间:08/16/2023 16:11:50 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:11:50 -出错时间:08/16/2023 16:11:50 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:11:50 -出错时间:08/16/2023 16:11:50 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:41:24 -出错时间:08/16/2023 16:41:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:41:24 -出错时间:08/16/2023 16:41:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:41:25 -出错时间:08/16/2023 16:41:25 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:41:25 -出错时间:08/16/2023 16:41:25 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:41:25 -出错时间:08/16/2023 16:41:25 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:41:25 -出错时间:08/16/2023 16:41:25 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:41:25 -出错时间:08/16/2023 16:41:26 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:41:26 -出错时间:08/16/2023 16:41:26 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:41:26 -出错时间:08/16/2023 16:41:26 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:41:26 -出错时间:08/16/2023 16:41:26 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:41:26 -出错时间:08/16/2023 16:41:26 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:41:26 -出错时间:08/16/2023 16:41:26 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:41:26 -出错时间:08/16/2023 16:41:26 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:41:27 -出错时间:08/16/2023 16:41:27 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:41:27 -出错时间:08/16/2023 16:41:27 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:41:27 -出错时间:08/16/2023 16:41:27 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:41:27 -出错时间:08/16/2023 16:41:27 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:41:27 -出错时间:08/16/2023 16:41:27 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 16:41:29 -出错时间:08/16/2023 16:41:29 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:26 -出错时间:08/16/2023 17:11:26 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:27 -出错时间:08/16/2023 17:11:27 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:27 -出错时间:08/16/2023 17:11:27 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:27 -出错时间:08/16/2023 17:11:27 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:27 -出错时间:08/16/2023 17:11:27 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:28 -出错时间:08/16/2023 17:11:28 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:28 -出错时间:08/16/2023 17:11:28 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:28 -出错时间:08/16/2023 17:11:28 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:28 -出错时间:08/16/2023 17:11:28 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:28 -出错时间:08/16/2023 17:11:28 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:28 -出错时间:08/16/2023 17:11:28 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:28 -出错时间:08/16/2023 17:11:28 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:28 -出错时间:08/16/2023 17:11:28 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:28 -出错时间:08/16/2023 17:11:28 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:28 -出错时间:08/16/2023 17:11:28 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:29 -出错时间:08/16/2023 17:11:29 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:29 -出错时间:08/16/2023 17:11:29 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:29 -出错时间:08/16/2023 17:11:29 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:29 -出错时间:08/16/2023 17:11:29 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:30 -出错时间:08/16/2023 17:11:30 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:31 -出错时间:08/16/2023 17:11:31 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:31 -出错时间:08/16/2023 17:11:31 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:31 -出错时间:08/16/2023 17:11:31 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:11:31 -出错时间:08/16/2023 17:11:31 - - -错误信息开始=====> -错误类型:ArgumentException -错误信息:提供的 URI 方案“http”无效,应为“https”。 -参数名: via -错误堆栈: - 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via) - 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) - 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) - 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via) - 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via) - 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via) - 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via) - 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via) - 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via) - 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via) - 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via) - 在 System.ServiceModel.ChannelFactory`1.CreateChannel() - 在 System.ServiceModel.ClientBase`1.CreateChannel() - 在 System.ServiceModel.ClientBase`1.CreateChannelInternal() - 在 System.ServiceModel.ClientBase`1.get_Channel() - 在 BLL.CNCECHSSEService.HSSEServiceClient.GetSupervise_SubUnitReportListToSUB() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14204 - 在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2160 -出错时间:08/16/2023 17:41:19 -出错时间:08/16/2023 17:41:19 - - -错误信息开始=====> -错误类型:ArgumentException -错误信息:提供的 URI 方案“http”无效,应为“https”。 -参数名: via -错误堆栈: - 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via) - 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) - 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) - 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via) - 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via) - 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via) - 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via) - 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via) - 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via) - 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via) - 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via) - 在 System.ServiceModel.ChannelFactory`1.CreateChannel() - 在 System.ServiceModel.ClientBase`1.CreateChannel() - 在 System.ServiceModel.ClientBase`1.CreateChannelInternal() - 在 System.ServiceModel.ClientBase`1.get_Channel() - 在 BLL.CNCECHSSEService.HSSEServiceClient.GetCheck_CheckInfo_Table8ItemListToSUB(String unitId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14228 - 在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2025 -出错时间:08/16/2023 17:41:19 -出错时间:08/16/2023 17:41:19 - - -错误信息开始=====> -错误类型:ArgumentException -错误信息:提供的 URI 方案“http”无效,应为“https”。 -参数名: via -错误堆栈: - 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via) - 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) - 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) - 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via) - 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via) - 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via) - 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via) - 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via) - 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via) - 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via) - 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via) - 在 System.ServiceModel.ChannelFactory`1.CreateChannel() - 在 System.ServiceModel.ClientBase`1.CreateChannel() - 在 System.ServiceModel.ClientBase`1.CreateChannelInternal() - 在 System.ServiceModel.ClientBase`1.get_Channel() - 在 BLL.CNCECHSSEService.HSSEServiceClient.GetCheck_CheckRectifyListToSUB(String unitId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14220 - 在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1921 -出错时间:08/16/2023 17:41:19 -出错时间:08/16/2023 17:41:19 - - -错误信息开始=====> -错误类型:ArgumentException -错误信息:提供的 URI 方案“http”无效,应为“https”。 -参数名: via -错误堆栈: - 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via) - 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) - 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) - 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via) - 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via) - 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via) - 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via) - 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via) - 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via) - 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via) - 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via) - 在 System.ServiceModel.ChannelFactory`1.CreateChannel() - 在 System.ServiceModel.ClientBase`1.CreateChannel() - 在 System.ServiceModel.ClientBase`1.CreateChannelInternal() - 在 System.ServiceModel.ClientBase`1.get_Channel() - 在 BLL.CNCECHSSEService.HSSEServiceClient.GetInformation_UrgeReportToSUB(String unitId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14020 - 在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1863 -出错时间:08/16/2023 17:41:19 -出错时间:08/16/2023 17:41:19 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:41:22 -出错时间:08/16/2023 17:41:22 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:41:23 -出错时间:08/16/2023 17:41:23 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:41:23 -出错时间:08/16/2023 17:41:23 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:41:23 -出错时间:08/16/2023 17:41:23 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:41:23 -出错时间:08/16/2023 17:41:23 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:41:23 -出错时间:08/16/2023 17:41:23 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:41:23 -出错时间:08/16/2023 17:41:23 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:41:23 -出错时间:08/16/2023 17:41:23 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:41:23 -出错时间:08/16/2023 17:41:23 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:41:23 -出错时间:08/16/2023 17:41:23 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:41:23 -出错时间:08/16/2023 17:41:23 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:41:23 -出错时间:08/16/2023 17:41:23 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:41:23 -出错时间:08/16/2023 17:41:23 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:41:24 -出错时间:08/16/2023 17:41:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:41:24 -出错时间:08/16/2023 17:41:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:41:24 -出错时间:08/16/2023 17:41:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:41:24 -出错时间:08/16/2023 17:41:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:41:24 -出错时间:08/16/2023 17:41:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:41:25 -出错时间:08/16/2023 17:41:25 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 325 -出错时间:08/16/2023 17:41:25 -出错时间:08/16/2023 17:41:25 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:55 -出错时间:08/22/2023 16:32:55 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:55 -出错时间:08/22/2023 16:32:55 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:55 -出错时间:08/22/2023 16:32:55 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:55 -出错时间:08/22/2023 16:32:55 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:55 -出错时间:08/22/2023 16:32:55 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:55 -出错时间:08/22/2023 16:32:55 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:55 -出错时间:08/22/2023 16:32:55 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:55 -出错时间:08/22/2023 16:32:55 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:56 -出错时间:08/22/2023 16:32:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:56 -出错时间:08/22/2023 16:32:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:56 -出错时间:08/22/2023 16:32:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:56 -出错时间:08/22/2023 16:32:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:56 -出错时间:08/22/2023 16:32:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:56 -出错时间:08/22/2023 16:32:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:56 -出错时间:08/22/2023 16:32:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:56 -出错时间:08/22/2023 16:32:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:56 -出错时间:08/22/2023 16:32:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:57 -出错时间:08/22/2023 16:32:57 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:57 -出错时间:08/22/2023 16:32:57 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:57 -出错时间:08/22/2023 16:32:57 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:57 -出错时间:08/22/2023 16:32:57 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:58 -出错时间:08/22/2023 16:32:58 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:58 -出错时间:08/22/2023 16:32:58 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:58 -出错时间:08/22/2023 16:32:58 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:58 -出错时间:08/22/2023 16:32:58 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:59 -出错时间:08/22/2023 16:32:59 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 16:32:59 -出错时间:08/22/2023 16:32:59 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:55 -出错时间:08/22/2023 17:02:55 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:55 -出错时间:08/22/2023 17:02:55 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:55 -出错时间:08/22/2023 17:02:55 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:56 -出错时间:08/22/2023 17:02:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:56 -出错时间:08/22/2023 17:02:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:56 -出错时间:08/22/2023 17:02:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:56 -出错时间:08/22/2023 17:02:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:56 -出错时间:08/22/2023 17:02:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:56 -出错时间:08/22/2023 17:02:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:56 -出错时间:08/22/2023 17:02:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:56 -出错时间:08/22/2023 17:02:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:56 -出错时间:08/22/2023 17:02:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:57 -出错时间:08/22/2023 17:02:57 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:57 -出错时间:08/22/2023 17:02:57 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:57 -出错时间:08/22/2023 17:02:57 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:57 -出错时间:08/22/2023 17:02:57 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:57 -出错时间:08/22/2023 17:02:57 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:57 -出错时间:08/22/2023 17:02:57 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:57 -出错时间:08/22/2023 17:02:57 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:58 -出错时间:08/22/2023 17:02:58 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:58 -出错时间:08/22/2023 17:02:58 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:59 -出错时间:08/22/2023 17:02:59 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:59 -出错时间:08/22/2023 17:02:59 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:02:59 -出错时间:08/22/2023 17:02:59 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:54 -出错时间:08/22/2023 17:32:54 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:54 -出错时间:08/22/2023 17:32:54 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:54 -出错时间:08/22/2023 17:32:54 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:54 -出错时间:08/22/2023 17:32:54 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:55 -出错时间:08/22/2023 17:32:55 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:55 -出错时间:08/22/2023 17:32:55 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:55 -出错时间:08/22/2023 17:32:55 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:55 -出错时间:08/22/2023 17:32:55 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:55 -出错时间:08/22/2023 17:32:55 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:55 -出错时间:08/22/2023 17:32:55 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:55 -出错时间:08/22/2023 17:32:55 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:56 -出错时间:08/22/2023 17:32:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:56 -出错时间:08/22/2023 17:32:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:56 -出错时间:08/22/2023 17:32:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:56 -出错时间:08/22/2023 17:32:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:56 -出错时间:08/22/2023 17:32:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:56 -出错时间:08/22/2023 17:32:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:56 -出错时间:08/22/2023 17:32:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:56 -出错时间:08/22/2023 17:32:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:56 -出错时间:08/22/2023 17:32:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:57 -出错时间:08/22/2023 17:32:57 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:57 -出错时间:08/22/2023 17:32:57 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:58 -出错时间:08/22/2023 17:32:58 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/22/2023 17:32:58 -出错时间:08/22/2023 17:32:58 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:49:59 -出错时间:08/24/2023 14:49:59 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:49:59 -出错时间:08/24/2023 14:49:59 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:00 -出错时间:08/24/2023 14:50:00 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:00 -出错时间:08/24/2023 14:50:00 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:00 -出错时间:08/24/2023 14:50:00 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:01 -出错时间:08/24/2023 14:50:01 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:01 -出错时间:08/24/2023 14:50:01 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:01 -出错时间:08/24/2023 14:50:01 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:01 -出错时间:08/24/2023 14:50:01 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:01 -出错时间:08/24/2023 14:50:01 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:01 -出错时间:08/24/2023 14:50:01 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:02 -出错时间:08/24/2023 14:50:02 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:02 -出错时间:08/24/2023 14:50:02 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:02 -出错时间:08/24/2023 14:50:02 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:02 -出错时间:08/24/2023 14:50:02 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:02 -出错时间:08/24/2023 14:50:02 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:02 -出错时间:08/24/2023 14:50:02 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:02 -出错时间:08/24/2023 14:50:02 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:03 -出错时间:08/24/2023 14:50:03 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:03 -出错时间:08/24/2023 14:50:03 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:03 -出错时间:08/24/2023 14:50:03 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:04 -出错时间:08/24/2023 14:50:04 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:04 -出错时间:08/24/2023 14:50:04 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:04 -出错时间:08/24/2023 14:50:04 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:04 -出错时间:08/24/2023 14:50:04 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:05 -出错时间:08/24/2023 14:50:05 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:05 -出错时间:08/24/2023 14:50:05 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 14:50:08 -出错时间:08/24/2023 14:50:08 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:56 -出错时间:08/24/2023 15:19:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:56 -出错时间:08/24/2023 15:19:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:56 -出错时间:08/24/2023 15:19:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:56 -出错时间:08/24/2023 15:19:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:56 -出错时间:08/24/2023 15:19:56 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:57 -出错时间:08/24/2023 15:19:57 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:57 -出错时间:08/24/2023 15:19:57 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:57 -出错时间:08/24/2023 15:19:57 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:57 -出错时间:08/24/2023 15:19:57 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:57 -出错时间:08/24/2023 15:19:57 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:58 -出错时间:08/24/2023 15:19:58 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:58 -出错时间:08/24/2023 15:19:58 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:58 -出错时间:08/24/2023 15:19:58 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:58 -出错时间:08/24/2023 15:19:58 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:58 -出错时间:08/24/2023 15:19:58 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:58 -出错时间:08/24/2023 15:19:58 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:59 -出错时间:08/24/2023 15:19:59 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:59 -出错时间:08/24/2023 15:19:59 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:59 -出错时间:08/24/2023 15:19:59 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:59 -出错时间:08/24/2023 15:19:59 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:59 -出错时间:08/24/2023 15:19:59 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:59 -出错时间:08/24/2023 15:19:59 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:19:59 -出错时间:08/24/2023 15:19:59 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:20:00 -出错时间:08/24/2023 15:20:00 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/24/2023 15:20:00 -出错时间:08/24/2023 15:20:00 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:21 -出错时间:08/30/2023 10:54:21 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:21 -出错时间:08/30/2023 10:54:21 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:22 -出错时间:08/30/2023 10:54:22 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:22 -出错时间:08/30/2023 10:54:22 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:22 -出错时间:08/30/2023 10:54:22 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:23 -出错时间:08/30/2023 10:54:23 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:23 -出错时间:08/30/2023 10:54:23 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:23 -出错时间:08/30/2023 10:54:23 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:24 -出错时间:08/30/2023 10:54:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:24 -出错时间:08/30/2023 10:54:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:24 -出错时间:08/30/2023 10:54:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:24 -出错时间:08/30/2023 10:54:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:24 -出错时间:08/30/2023 10:54:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:24 -出错时间:08/30/2023 10:54:24 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:25 -出错时间:08/30/2023 10:54:25 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:25 -出错时间:08/30/2023 10:54:25 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:25 -出错时间:08/30/2023 10:54:25 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:25 -出错时间:08/30/2023 10:54:25 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:26 -出错时间:08/30/2023 10:54:26 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:26 -出错时间:08/30/2023 10:54:26 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:27 -出错时间:08/30/2023 10:54:27 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:28 -出错时间:08/30/2023 10:54:28 - - -错误信息开始=====> -错误类型:InvalidOperationException -错误信息:不能添加已经存在的实体。 -错误堆栈: - 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) - 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) - 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 -出错时间:08/30/2023 10:54:28 -出错时间:08/30/2023 10:54:28 - diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 4e4b636f..a3640e64 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -1111,8 +1111,8 @@ - + @@ -11942,13 +11942,6 @@ MonthReportCEdit4.aspx - - MonthReportCEdit5.aspx - ASPXCodeBehind - - - MonthReportCEdit5.aspx - MonthReportCEdit6.aspx ASPXCodeBehind @@ -11956,6 +11949,13 @@ MonthReportCEdit6.aspx + + MonthReportCEdit5.aspx + ASPXCodeBehind + + + MonthReportCEdit5.aspx + MonthReportCEdit7.aspx ASPXCodeBehind diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit1.aspx b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit1.aspx index 8c95cecb..fa049c0d 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit1.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit1.aspx @@ -31,9 +31,9 @@ - + - + diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit10.aspx b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit10.aspx index 4e63b672..2f0d9ecb 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit10.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit10.aspx @@ -4,38 +4,38 @@ - + 10.项目现场HSE影像照片
- - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit2.aspx b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit2.aspx index 47a6833a..450bec96 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit2.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit2.aspx @@ -8,75 +8,87 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - +
diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit2.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit2.aspx.cs index c269fbd1..42a26793 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit2.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit2.aspx.cs @@ -86,6 +86,7 @@ namespace FineUIPro.Web.HSSE.Manager JObject summary = new JObject(); summary.Add("UnitId", "合计:"); summary.Add("SumPersonNum", (from x in personSorts select x.SumPersonNum ?? 0).Sum()); + summary.Add("SumOutPersonNum", (from x in personSorts select x.SumOutPersonNum ?? 0).Sum()); summary.Add("HSEPersonNum", (from x in personSorts select x.HSEPersonNum ?? 0).Sum()); this.gvPersonSort.SummaryData = summary; } @@ -94,7 +95,7 @@ namespace FineUIPro.Web.HSSE.Manager this.gvPersonSort.SummaryData = null; } } - else + else { GetPersonSort(); } @@ -118,7 +119,8 @@ namespace FineUIPro.Web.HSSE.Manager where x.ProjectId == this.ProjectId && (x.UnitType == "1" || x.UnitType == "2") orderby x.UnitType select x; //1为总包,2为施工分包 - int totalSumPersonNum = 0; + int totalSumPersonNum = 0;//总部 + int totalSumOutPersonNum = 0;//外聘 int totalHSEPersonNum = 0; if (units.Count() > 0) { @@ -128,12 +130,14 @@ namespace FineUIPro.Web.HSSE.Manager { PersonSortId = SQLHelper.GetNewID(typeof(Model.Manager_PersonSortC)), UnitId = u.UnitId, - SumPersonNum = BLL.PersonService.GetPersonCountByUnitId(u.UnitId, this.CurrUser.LoginProjectId), + SumPersonNum = BLL.PersonService.GetPersonCountByUnitId(u.UnitId, this.CurrUser.LoginProjectId, false),//本部 + SumOutPersonNum = BLL.PersonService.GetPersonCountByUnitId(u.UnitId, this.CurrUser.LoginProjectId, true),//外聘 HSEPersonNum = BLL.PersonService.GetHSEPersonCountByUnitId(u.UnitId, this.CurrUser.LoginProjectId), ContractRange = u.ContractRange }; personSorts.Add(personSort); totalSumPersonNum += Convert.ToInt32(personSort.SumPersonNum); + totalSumOutPersonNum += Convert.ToInt32(personSort.SumOutPersonNum); totalHSEPersonNum += Convert.ToInt32(personSort.HSEPersonNum); } } @@ -144,6 +148,7 @@ namespace FineUIPro.Web.HSSE.Manager JObject summary = new JObject(); summary.Add("UnitId", "合计:"); summary.Add("SumPersonNum", totalSumPersonNum); + summary.Add("SumOutPersonNum", totalSumOutPersonNum); summary.Add("HSEPersonNum", totalHSEPersonNum); this.gvPersonSort.SummaryData = summary; } @@ -224,6 +229,7 @@ namespace FineUIPro.Web.HSSE.Manager MonthReportId = monthReportId, UnitId = this.gvPersonSort.Rows[i].DataKeys[1].ToString(), SumPersonNum = Funs.GetNewIntOrZero(values.Value("SumPersonNum").ToString()), + SumOutPersonNum = Funs.GetNewIntOrZero(values.Value("SumOutPersonNum").ToString()), HSEPersonNum = Funs.GetNewIntOrZero(values.Value("HSEPersonNum").ToString()), ContractRange = values.Value("ContractRange").ToString(), Remark = values.Value("Remark").ToString() diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit2.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit2.aspx.designer.cs index 1dd0e3cd..d270afe9 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit2.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit2.aspx.designer.cs @@ -75,6 +75,15 @@ namespace FineUIPro.Web.HSSE.Manager { /// protected global::FineUIPro.NumberBox nbSumPersonNum; + /// + /// nbSumOutPersonNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox nbSumOutPersonNum; + /// /// nbHSEPersonNum 控件。 /// diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit3.aspx b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit3.aspx index 5e7b788b..5968b85b 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit3.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit3.aspx @@ -15,9 +15,9 @@ - + - @@ -68,9 +68,9 @@ - + - + @@ -90,7 +90,7 @@ - + HSE绩效管理数据
- - - - - - - - - + + + + + + + + + + + <%-- + + + + + + + --%> + + <%----%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --%> + + + + + + + + + + + + + + + + <%-- + + + + + + + --%> + + <%----%> + <%----%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --%> + + + <%-- - - --%> + <%-- - - + --%> + <%-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -318,8 +595,8 @@ - - + --%> + <%-- @@ -406,298 +683,28 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + --%> + <%-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<%-- - - - - - --%> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + --%> + + + + + + + + + + + +
diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit4.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit4.aspx.cs index 829eb183..b51487f7 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit4.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit4.aspx.cs @@ -52,70 +52,78 @@ namespace FineUIPro.Web.HSSE.Manager private static DateTime projectStartTime; #region 定义集合 - /// - /// 危险源情况集合 - /// - private static List hazardSorts = new List(); - /// /// 培训情况集合 /// private static List trainSorts = new List(); - /// - /// 培训活动情况集合 - /// - private static List trainActivitySorts = new List(); - /// /// 检查情况集合 /// private static List checkSorts = new List(); - /// - /// 检查明细情况集合 - /// - private static List checkDetailSorts = new List(); + + ///// + ///// 危险源情况集合 + ///// + //private static List hazardSorts = new List(); + + ///// + ///// 培训活动情况集合 + ///// + //private static List trainActivitySorts = new List(); + + + ///// + ///// 检查明细情况集合 + ///// + //private static List checkDetailSorts = new List(); + + ///// + ///// 会议情况集合 + ///// + //private static List meetingSorts = new List(); + + ///// + ///// HSE宣传活动集合 + ///// + //private static List promotionalActiviteSorts = new List(); + + ///// + ///// HSE应急预案集合 + ///// + //private static List emergencySorts = new List(); + + ///// + ///// HSE应急演练集合 + ///// + //private static List drillSorts = new List(); + + ///// + ///// HSE奖励集合 + ///// + //private static List rewardSorts = new List(); + + ///// + ///// HSE处罚集合 + ///// + //private static List punishSorts = new List(); + + ///// + ///// 其他HSE管理活动 + ///// + //private static List otherActiveSorts = new List(); + + ///// + ///// 4.9.2 活动情况说明集合 + ///// + //private static List activityDess = new List(); + /// - /// 会议情况集合 + /// HSE奖励与处罚 /// - private static List meetingSorts = new List(); - - /// - /// HSE宣传活动集合 - /// - private static List promotionalActiviteSorts = new List(); - - /// - /// HSE应急预案集合 - /// - private static List emergencySorts = new List(); - - /// - /// HSE应急演练集合 - /// - private static List drillSorts = new List(); - - /// - /// HSE奖励集合 - /// - private static List rewardSorts = new List(); - - /// - /// HSE处罚集合 - /// - private static List punishSorts = new List(); - - /// - /// 其他HSE管理活动 - /// - private static List otherActiveSorts = new List(); - - /// - /// 4.9.2 活动情况说明集合 - /// - private static List activityDess = new List(); + private static List rewardAndPunishSortCs = new List(); /// /// 4.10 HSE现场其他管理情况集合 @@ -131,19 +139,20 @@ namespace FineUIPro.Web.HSSE.Manager { if (!IsPostBack) { - hazardSorts.Clear(); trainSorts.Clear(); - trainActivitySorts.Clear(); checkSorts.Clear(); - checkDetailSorts.Clear(); - meetingSorts.Clear(); - emergencySorts.Clear(); - promotionalActiviteSorts.Clear(); - drillSorts.Clear(); - rewardSorts.Clear(); - punishSorts.Clear(); - otherActiveSorts.Clear(); - activityDess.Clear(); + //hazardSorts.Clear(); + //trainActivitySorts.Clear(); + //checkDetailSorts.Clear(); + //meetingSorts.Clear(); + //emergencySorts.Clear(); + //promotionalActiviteSorts.Clear(); + //drillSorts.Clear(); + //rewardSorts.Clear(); + //punishSorts.Clear(); + //otherActiveSorts.Clear(); + //activityDess.Clear(); + rewardAndPunishSortCs.Clear(); otherManagements.Clear(); this.MonthReportId = Request.Params["monthReportId"]; this.ProjectId = this.CurrUser.LoginProjectId; @@ -151,9 +160,9 @@ namespace FineUIPro.Web.HSSE.Manager startTime = Convert.ToDateTime(Request.Params["startTime"]); endTime = Convert.ToDateTime(Request.Params["endTime"]); yearStartTime = Convert.ToDateTime(Request.Params["yearStartTime"]); - Model.Manager_MonthReportC monthReport = BLL.MonthReportCService.GetMonthReportByMonths(months, this.CurrUser.LoginProjectId); + Model.Manager_MonthReportC monthReport = BLL.MonthReportCService.GetMonthReportByMonths(months, this.ProjectId); Model.Manager_MonthReportC mr = BLL.MonthReportCService.GetLastMonthReportByDate(endTime, this.ProjectId); - Model.Base_Project project = BLL.ProjectService.GetProjectByProjectId(ProjectId); + Model.Base_Project project = BLL.ProjectService.GetProjectByProjectId(this.ProjectId); if (project.StartDate != null) { projectStartTime = Convert.ToDateTime(project.StartDate); @@ -163,17 +172,11 @@ namespace FineUIPro.Web.HSSE.Manager this.MonthReportId = monthReport.MonthReportId; this.ProjectId = monthReport.ProjectId; months = Convert.ToDateTime(monthReport.Months); - Model.SGGLDB db = Funs.DB; - this.txtMainActivitiesDef.Text = monthReport.MainActivitiesDef; - //危险源情况 - hazardSorts = (from x in db.Manager_HazardSortC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList(); - if (hazardSorts.Count > 0) //保存过数据 - { - this.gvHazardSort.DataSource = hazardSorts; - this.gvHazardSort.DataBind(); - } + //Model.SGGLDB db = Funs.DB; + + //培训情况 - trainSorts = (from x in db.Manager_TrainSortC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList(); + trainSorts = BLL.TrainSortCService.GetTrainSortsByMonthReportId(this.MonthReportId); if (trainSorts.Count > 0) { this.gvTrainSort.DataSource = trainSorts; @@ -183,15 +186,8 @@ namespace FineUIPro.Web.HSSE.Manager { GetTrainSort(); } - //培训活动情况 - trainActivitySorts = (from x in db.Manager_TrainActivitySortC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList(); - if (trainActivitySorts.Count > 0) - { - this.gvTrainActivitySort.DataSource = trainActivitySorts; - this.gvTrainActivitySort.DataBind(); - } //检查情况 - checkSorts = (from x in db.Manager_CheckSortC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList(); + checkSorts = BLL.CheckSortCService.GetCheckSortsByMonthReportId(this.MonthReportId); if (checkSorts.Count > 0) { this.gvCheckSort.DataSource = checkSorts; @@ -201,337 +197,369 @@ namespace FineUIPro.Web.HSSE.Manager { GetCheckSort(); } + //this.txtMainActivitiesDef.Text = monthReport.MainActivitiesDef; + //危险源情况 + //hazardSorts = (from x in db.Manager_HazardSortC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList(); + //if (hazardSorts.Count > 0) //保存过数据 + //{ + // this.gvHazardSort.DataSource = hazardSorts; + // this.gvHazardSort.DataBind(); + //} + //培训活动情况 + //trainActivitySorts = (from x in db.Manager_TrainActivitySortC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList(); + //if (trainActivitySorts.Count > 0) + //{ + // this.gvTrainActivitySort.DataSource = trainActivitySorts; + // this.gvTrainActivitySort.DataBind(); + //} //检查明细情况 - checkDetailSorts = (from x in db.Manager_CheckDetailSortC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList(); - if (checkDetailSorts.Count > 0) - { - this.gvCheckDetailSort.DataSource = checkDetailSorts; - this.gvCheckDetailSort.DataBind(); - } - else - { - GetCheckDetailSort(); - } - if (monthReport.MeetingNum != null) - { - this.txtMeetingNum.Text = (monthReport.MeetingNum ?? 0).ToString(); - this.txtYearMeetingNum.Text = (monthReport.YearMeetingNum ?? 0).ToString(); - } - else - { - //会议数量 - int meetingNum1 = BLL.WeekMeetingService.GetCountByTime(startTime, endTime, this.ProjectId); - int meetingNum2 = BLL.MonthMeetingService.GetCountByTime(startTime, endTime, this.ProjectId); - int meetingNum3 = BLL.SpecialMeetingService.GetCountByTime(startTime, endTime, this.ProjectId); - int meetingNum4 = BLL.AttendMeetingService.GetCountByTime(startTime, endTime, this.ProjectId); - this.txtMeetingNum.Text = (meetingNum1 + meetingNum2 + meetingNum3 + meetingNum4).ToString(); - if (mr != null) - { - if (mr.YearMeetingNum != 0) - { - this.txtYearMeetingNum.Text = (mr.YearMeetingNum + Convert.ToInt32(this.txtMeetingNum.Text.Trim())).ToString(); - } - else - { - this.txtYearMeetingNum.Text = txtMeetingNum.Text.Trim(); - } - } - else - { - this.txtYearMeetingNum.Text = txtMeetingNum.Text.Trim(); - } - } + //checkDetailSorts = (from x in db.Manager_CheckDetailSortC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList(); + //if (checkDetailSorts.Count > 0) + //{ + // this.gvCheckDetailSort.DataSource = checkDetailSorts; + // this.gvCheckDetailSort.DataBind(); + //} + //else + //{ + // GetCheckDetailSort(); + //} + //if (monthReport.MeetingNum != null) + //{ + // this.txtMeetingNum.Text = (monthReport.MeetingNum ?? 0).ToString(); + // this.txtYearMeetingNum.Text = (monthReport.YearMeetingNum ?? 0).ToString(); + //} + //else + //{ + // //会议数量 + // int meetingNum1 = BLL.WeekMeetingService.GetCountByTime(startTime, endTime, this.ProjectId); + // int meetingNum2 = BLL.MonthMeetingService.GetCountByTime(startTime, endTime, this.ProjectId); + // int meetingNum3 = BLL.SpecialMeetingService.GetCountByTime(startTime, endTime, this.ProjectId); + // int meetingNum4 = BLL.AttendMeetingService.GetCountByTime(startTime, endTime, this.ProjectId); + // this.txtMeetingNum.Text = (meetingNum1 + meetingNum2 + meetingNum3 + meetingNum4).ToString(); + // if (mr != null) + // { + // if (mr.YearMeetingNum != 0) + // { + // this.txtYearMeetingNum.Text = (mr.YearMeetingNum + Convert.ToInt32(this.txtMeetingNum.Text.Trim())).ToString(); + // } + // else + // { + // this.txtYearMeetingNum.Text = txtMeetingNum.Text.Trim(); + // } + // } + // else + // { + // this.txtYearMeetingNum.Text = txtMeetingNum.Text.Trim(); + // } + //} //会议情况 - meetingSorts = (from x in db.Manager_MeetingSortC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList(); - if (meetingSorts.Count > 0) - { - this.gvMeetingSort.DataSource = meetingSorts; - this.gvMeetingSort.DataBind(); - } - else - { - GetMeetingSort(); - } - if (monthReport.ComplexEmergencyNum != null) - { - this.txtComplexEmergencyNum.Text = (monthReport.ComplexEmergencyNum ?? 0).ToString(); - this.txtYearComplexEmergencyNum.Text = (monthReport.YearComplexEmergencyNum ?? 0).ToString(); - this.txtTotalComplexEmergencyNum.Text = (monthReport.TotalComplexEmergencyNum ?? 0).ToString(); - this.txtSpecialEmergencyNum.Text = (monthReport.SpecialEmergencyNum ?? 0).ToString(); - this.txtYearSpecialEmergencyNum.Text = (monthReport.YearSpecialEmergencyNum ?? 0).ToString(); - this.txtTotalSpecialEmergencyNum.Text = (monthReport.TotalSpecialEmergencyNum ?? 0).ToString(); - this.txtDrillRecordNum.Text = (monthReport.DrillRecordNum ?? 0).ToString(); - this.txtYearDrillRecordNum.Text = (monthReport.YearDrillRecordNum ?? 0).ToString(); - this.txtTotalDrillRecordNum.Text = (monthReport.TotalDrillRecordNum ?? 0).ToString(); - } - else - { - //应急管理 - List complexEmergencys = BLL.EmergencyListService.GetEmergencyListsByEmergencyType(BLL.Const.ComplexEmergencyName, this.ProjectId, startTime, endTime); //综合应急预案集合 - int complexEmergencyNum = complexEmergencys.Count; - this.txtComplexEmergencyNum.Text = complexEmergencyNum.ToString(); - List specialEmergencys = BLL.EmergencyListService.GetOtherEmergencyListsByEmergencyType(BLL.Const.ComplexEmergencyName, this.ProjectId, startTime, endTime); //专项应急预案集合 - int specialEmergencyNum = specialEmergencys.Count; - this.txtSpecialEmergencyNum.Text = specialEmergencyNum.ToString(); - this.txtDrillRecordNum.Text = BLL.DrillRecordListService.GetCountByDate(startTime, endTime, this.ProjectId).ToString(); - if (mr != null) - { - //综合应急预案 - if (mr.YearComplexEmergencyNum != 0) - { - this.txtYearComplexEmergencyNum.Text = (mr.YearComplexEmergencyNum + complexEmergencyNum).ToString(); - this.txtTotalComplexEmergencyNum.Text = (mr.TotalComplexEmergencyNum + complexEmergencyNum).ToString(); - } - else - { - this.txtYearComplexEmergencyNum.Text = complexEmergencyNum.ToString(); - this.txtTotalComplexEmergencyNum.Text = complexEmergencyNum.ToString(); - } - //专项应急预案 - if (mr.YearSpecialEmergencyNum != 0) - { - this.txtYearSpecialEmergencyNum.Text = (mr.YearSpecialEmergencyNum + specialEmergencyNum).ToString(); - this.txtTotalSpecialEmergencyNum.Text = (mr.TotalSpecialEmergencyNum + specialEmergencyNum).ToString(); - } - else - { - this.txtYearSpecialEmergencyNum.Text = specialEmergencyNum.ToString(); - this.txtTotalSpecialEmergencyNum.Text = specialEmergencyNum.ToString(); - } - //应急演练活动 - if (mr.YearDrillRecordNum != 0) - { - this.txtYearDrillRecordNum.Text = (mr.YearDrillRecordNum + Convert.ToInt32(this.txtDrillRecordNum.Text.Trim())).ToString(); - this.txtTotalDrillRecordNum.Text = (mr.TotalDrillRecordNum + Convert.ToInt32(this.txtDrillRecordNum.Text.Trim())).ToString(); - } - else - { - this.txtYearDrillRecordNum.Text = this.txtDrillRecordNum.Text; - this.txtTotalDrillRecordNum.Text = this.txtDrillRecordNum.Text; - } - } - else - { - this.txtYearComplexEmergencyNum.Text = complexEmergencyNum.ToString(); - this.txtTotalComplexEmergencyNum.Text = complexEmergencyNum.ToString(); - this.txtYearSpecialEmergencyNum.Text = specialEmergencyNum.ToString(); - this.txtTotalSpecialEmergencyNum.Text = specialEmergencyNum.ToString(); - this.txtYearDrillRecordNum.Text = this.txtDrillRecordNum.Text; - this.txtTotalDrillRecordNum.Text = this.txtDrillRecordNum.Text; - } - } + // meetingSorts = (from x in db.Manager_MeetingSortC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList(); + // if (meetingSorts.Count > 0) + // { + // this.gvMeetingSort.DataSource = meetingSorts; + // this.gvMeetingSort.DataBind(); + // } + // else + // { + // GetMeetingSort(); + // } + // if (monthReport.ComplexEmergencyNum != null) + // { + // this.txtComplexEmergencyNum.Text = (monthReport.ComplexEmergencyNum ?? 0).ToString(); + // this.txtYearComplexEmergencyNum.Text = (monthReport.YearComplexEmergencyNum ?? 0).ToString(); + // this.txtTotalComplexEmergencyNum.Text = (monthReport.TotalComplexEmergencyNum ?? 0).ToString(); + // this.txtSpecialEmergencyNum.Text = (monthReport.SpecialEmergencyNum ?? 0).ToString(); + // this.txtYearSpecialEmergencyNum.Text = (monthReport.YearSpecialEmergencyNum ?? 0).ToString(); + // this.txtTotalSpecialEmergencyNum.Text = (monthReport.TotalSpecialEmergencyNum ?? 0).ToString(); + // this.txtDrillRecordNum.Text = (monthReport.DrillRecordNum ?? 0).ToString(); + // this.txtYearDrillRecordNum.Text = (monthReport.YearDrillRecordNum ?? 0).ToString(); + // this.txtTotalDrillRecordNum.Text = (monthReport.TotalDrillRecordNum ?? 0).ToString(); + // } + // else + // { + // //应急管理 + // List complexEmergencys = BLL.EmergencyListService.GetEmergencyListsByEmergencyType(BLL.Const.ComplexEmergencyName, this.ProjectId, startTime, endTime); //综合应急预案集合 + // int complexEmergencyNum = complexEmergencys.Count; + // this.txtComplexEmergencyNum.Text = complexEmergencyNum.ToString(); + // List specialEmergencys = BLL.EmergencyListService.GetOtherEmergencyListsByEmergencyType(BLL.Const.ComplexEmergencyName, this.ProjectId, startTime, endTime); //专项应急预案集合 + // int specialEmergencyNum = specialEmergencys.Count; + // this.txtSpecialEmergencyNum.Text = specialEmergencyNum.ToString(); + // this.txtDrillRecordNum.Text = BLL.DrillRecordListService.GetCountByDate(startTime, endTime, this.ProjectId).ToString(); + // if (mr != null) + // { + // //综合应急预案 + // if (mr.YearComplexEmergencyNum != 0) + // { + // this.txtYearComplexEmergencyNum.Text = (mr.YearComplexEmergencyNum + complexEmergencyNum).ToString(); + // this.txtTotalComplexEmergencyNum.Text = (mr.TotalComplexEmergencyNum + complexEmergencyNum).ToString(); + // } + // else + // { + // this.txtYearComplexEmergencyNum.Text = complexEmergencyNum.ToString(); + // this.txtTotalComplexEmergencyNum.Text = complexEmergencyNum.ToString(); + // } + // //专项应急预案 + // if (mr.YearSpecialEmergencyNum != 0) + // { + // this.txtYearSpecialEmergencyNum.Text = (mr.YearSpecialEmergencyNum + specialEmergencyNum).ToString(); + // this.txtTotalSpecialEmergencyNum.Text = (mr.TotalSpecialEmergencyNum + specialEmergencyNum).ToString(); + // } + // else + // { + // this.txtYearSpecialEmergencyNum.Text = specialEmergencyNum.ToString(); + // this.txtTotalSpecialEmergencyNum.Text = specialEmergencyNum.ToString(); + // } + // //应急演练活动 + // if (mr.YearDrillRecordNum != 0) + // { + // this.txtYearDrillRecordNum.Text = (mr.YearDrillRecordNum + Convert.ToInt32(this.txtDrillRecordNum.Text.Trim())).ToString(); + // this.txtTotalDrillRecordNum.Text = (mr.TotalDrillRecordNum + Convert.ToInt32(this.txtDrillRecordNum.Text.Trim())).ToString(); + // } + // else + // { + // this.txtYearDrillRecordNum.Text = this.txtDrillRecordNum.Text; + // this.txtTotalDrillRecordNum.Text = this.txtDrillRecordNum.Text; + // } + // } + // else + // { + // this.txtYearComplexEmergencyNum.Text = complexEmergencyNum.ToString(); + // this.txtTotalComplexEmergencyNum.Text = complexEmergencyNum.ToString(); + // this.txtYearSpecialEmergencyNum.Text = specialEmergencyNum.ToString(); + // this.txtTotalSpecialEmergencyNum.Text = specialEmergencyNum.ToString(); + // this.txtYearDrillRecordNum.Text = this.txtDrillRecordNum.Text; + // this.txtTotalDrillRecordNum.Text = this.txtDrillRecordNum.Text; + // } + // } this.txtEmergencyManagementWorkDef.Text = monthReport.EmergencyManagementWorkDef; - this.txtLicenseRemark.Text = monthReport.LicenseRemark; - this.txtEquipmentRemark.Text = monthReport.EquipmentRemark; - //HSE奖励情况 - rewardSorts = (from x in db.Manager_IncentiveSortC where x.MonthReportId == MonthReportId && x.BigType == "1" orderby x.SortIndex select x).ToList(); - if (rewardSorts.Count > 0) + this.txtWorkDef.Text = monthReport.LicenseRemark; + // this.txtEquipmentRemark.Text = monthReport.EquipmentRemark; + // //HSE奖励情况 + // rewardSorts = (from x in db.Manager_IncentiveSortC where x.MonthReportId == MonthReportId && x.BigType == "1" orderby x.SortIndex select x).ToList(); + // if (rewardSorts.Count > 0) + // { + // this.gvRewardSort.DataSource = rewardSorts; + // this.gvRewardSort.DataBind(); + // } + // else + // { + // GetRewardSort(); + // } + // //HSE处罚情况 + // punishSorts = (from x in db.Manager_IncentiveSortC where x.MonthReportId == MonthReportId && x.BigType == "2" orderby x.SortIndex select x).ToList(); + // if (punishSorts.Count > 0) + // { + // this.gvPunishSort.DataSource = punishSorts; + // this.gvPunishSort.DataBind(); + // } + // else + // { + // GetPunishSort(); + // } + // if (monthReport.RewardNum != null) + // { + // this.txtRewardNum.Text = (monthReport.RewardNum ?? 0).ToString(); + // this.txtYearRewardNum.Text = (monthReport.YearRewardNum ?? 0).ToString(); + // this.txtRewardMoney.Text = (monthReport.RewardMoney ?? 0).ToString(); + // this.txtYearRewardMoney.Text = (monthReport.YearRewardMoney ?? 0).ToString(); + // this.txtPunishNum.Text = (monthReport.PunishNum ?? 0).ToString(); + // this.txtYearPunishNum.Text = (monthReport.YearPunishNum ?? 0).ToString(); + // this.txtPunishMoney.Text = (monthReport.PunishMoney ?? 0).ToString(); + // this.txtYearPunishMoney.Text = (monthReport.YearPunishMoney ?? 0).ToString(); + // } + // else + // { + // this.txtRewardNum.Text = BLL.IncentiveNoticeService.GetCountByDate(startTime, endTime, this.ProjectId).ToString(); + // this.txtRewardMoney.Text = Convert.ToInt32(BLL.IncentiveNoticeService.GetSumMoneyByDate(startTime, endTime, this.ProjectId)).ToString(); + // this.txtPunishNum.Text = BLL.PunishNoticeService.GetCountByDate(startTime, endTime, this.ProjectId).ToString(); + // this.txtPunishMoney.Text = Convert.ToInt32(BLL.PunishNoticeService.GetSumMoneyByDate(startTime, endTime, this.ProjectId)).ToString(); + // if (mr != null) + // { + // if (mr.YearRewardNum != 0) + // { + // this.txtYearRewardNum.Text = (mr.YearRewardNum + Convert.ToInt32(this.txtRewardNum.Text.Trim())).ToString(); + // } + // else + // { + // this.txtYearRewardNum.Text = this.txtRewardNum.Text.Trim(); + // } + // if (mr.YearRewardMoney != 0) + // { + // this.txtYearRewardMoney.Text = (mr.YearRewardMoney + Convert.ToInt32(this.txtRewardMoney.Text.Trim())).ToString(); + // } + // else + // { + // this.txtYearRewardMoney.Text = this.txtRewardMoney.Text.Trim(); + // } + // if (mr.YearPunishNum != 0) + // { + // this.txtYearPunishNum.Text = (mr.YearPunishNum + Convert.ToInt32(this.txtPunishNum.Text.Trim())).ToString(); + // } + // else + // { + // this.txtYearPunishNum.Text = this.txtPunishNum.Text.Trim(); + // } + // if (mr.YearPunishMoney != 0) + // { + // this.txtYearPunishMoney.Text = (mr.YearPunishMoney + Convert.ToInt32(this.txtPunishMoney.Text.Trim())).ToString(); + // } + // else + // { + // this.txtYearPunishMoney.Text = this.txtPunishMoney.Text.Trim(); + // } + // } + // else + // { + // this.txtYearRewardNum.Text = this.txtYearRewardNum.Text.Trim(); + // this.txtYearRewardMoney.Text = this.txtRewardMoney.Text.Trim(); + // this.txtYearPunishNum.Text = this.txtPunishNum.Text.Trim(); + // this.txtYearPunishMoney.Text = this.txtPunishMoney.Text.Trim(); + // } + // } + //HSE奖励与处罚 + rewardAndPunishSortCs = BLL.RewardAndPunishSortCService.GetRewardAndPunishSortCByMontReportId(this.MonthReportId); + if (rewardAndPunishSortCs.Count>0) { - this.gvRewardSort.DataSource = rewardSorts; - this.gvRewardSort.DataBind(); + this.gvRewardSortAndPunish.DataSource = rewardAndPunishSortCs; + this.gvRewardSortAndPunish.DataBind(); } else { - GetRewardSort(); - } - //HSE处罚情况 - punishSorts = (from x in db.Manager_IncentiveSortC where x.MonthReportId == MonthReportId && x.BigType == "2" orderby x.SortIndex select x).ToList(); - if (punishSorts.Count > 0) - { - this.gvPunishSort.DataSource = punishSorts; - this.gvPunishSort.DataBind(); - } - else - { - GetPunishSort(); - } - if (monthReport.RewardNum != null) - { - this.txtRewardNum.Text = (monthReport.RewardNum ?? 0).ToString(); - this.txtYearRewardNum.Text = (monthReport.YearRewardNum ?? 0).ToString(); - this.txtRewardMoney.Text = (monthReport.RewardMoney ?? 0).ToString(); - this.txtYearRewardMoney.Text = (monthReport.YearRewardMoney ?? 0).ToString(); - this.txtPunishNum.Text = (monthReport.PunishNum ?? 0).ToString(); - this.txtYearPunishNum.Text = (monthReport.YearPunishNum ?? 0).ToString(); - this.txtPunishMoney.Text = (monthReport.PunishMoney ?? 0).ToString(); - this.txtYearPunishMoney.Text = (monthReport.YearPunishMoney ?? 0).ToString(); - } - else - { - this.txtRewardNum.Text = BLL.IncentiveNoticeService.GetCountByDate(startTime, endTime, this.ProjectId).ToString(); - this.txtRewardMoney.Text = Convert.ToInt32(BLL.IncentiveNoticeService.GetSumMoneyByDate(startTime, endTime, this.ProjectId)).ToString(); - this.txtPunishNum.Text = BLL.PunishNoticeService.GetCountByDate(startTime, endTime, this.ProjectId).ToString(); - this.txtPunishMoney.Text = Convert.ToInt32(BLL.PunishNoticeService.GetSumMoneyByDate(startTime, endTime, this.ProjectId)).ToString(); - if (mr != null) - { - if (mr.YearRewardNum != 0) - { - this.txtYearRewardNum.Text = (mr.YearRewardNum + Convert.ToInt32(this.txtRewardNum.Text.Trim())).ToString(); - } - else - { - this.txtYearRewardNum.Text = this.txtRewardNum.Text.Trim(); - } - if (mr.YearRewardMoney != 0) - { - this.txtYearRewardMoney.Text = (mr.YearRewardMoney + Convert.ToInt32(this.txtRewardMoney.Text.Trim())).ToString(); - } - else - { - this.txtYearRewardMoney.Text = this.txtRewardMoney.Text.Trim(); - } - if (mr.YearPunishNum != 0) - { - this.txtYearPunishNum.Text = (mr.YearPunishNum + Convert.ToInt32(this.txtPunishNum.Text.Trim())).ToString(); - } - else - { - this.txtYearPunishNum.Text = this.txtPunishNum.Text.Trim(); - } - if (mr.YearPunishMoney != 0) - { - this.txtYearPunishMoney.Text = (mr.YearPunishMoney + Convert.ToInt32(this.txtPunishMoney.Text.Trim())).ToString(); - } - else - { - this.txtYearPunishMoney.Text = this.txtPunishMoney.Text.Trim(); - } - } - else - { - this.txtYearRewardNum.Text = this.txtYearRewardNum.Text.Trim(); - this.txtYearRewardMoney.Text = this.txtRewardMoney.Text.Trim(); - this.txtYearPunishNum.Text = this.txtPunishNum.Text.Trim(); - this.txtYearPunishMoney.Text = this.txtPunishMoney.Text.Trim(); - } + GetRewardAndPunishSort(); } //4.10 HSE现场其他管理情况 - otherManagements = (from x in db.Manager_Month_OtherManagementC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList(); + otherManagements = BLL.OtherManagementCService.GetOtherManagementByMonthReportId(this.MonthReportId); if (otherManagements.Count > 0) { this.gvOtherManagement.DataSource = otherManagements; this.gvOtherManagement.DataBind(); } + //} + //else + //{ + // GetTrainSort(); + // GetCheckSort(); + // GetCheckDetailSort(); + // //会议数量 + // int meetingNum1 = BLL.WeekMeetingService.GetCountByTime(startTime, endTime, this.ProjectId); + // int meetingNum2 = BLL.MonthMeetingService.GetCountByTime(startTime, endTime, this.ProjectId); + // int meetingNum3 = BLL.SpecialMeetingService.GetCountByTime(startTime, endTime, this.ProjectId); + // int meetingNum4 = BLL.AttendMeetingService.GetCountByTime(startTime, endTime, this.ProjectId); + // this.txtMeetingNum.Text = (meetingNum1 + meetingNum2 + meetingNum3 + meetingNum4).ToString(); + // if (mr != null) + // { + // if (mr.YearMeetingNum != 0) + // { + // this.txtYearMeetingNum.Text = (mr.YearMeetingNum + Convert.ToInt32(this.txtMeetingNum.Text.Trim())).ToString(); + // } + // else + // { + // this.txtYearMeetingNum.Text = txtMeetingNum.Text.Trim(); + // } + // } + // else + // { + // this.txtYearMeetingNum.Text = txtMeetingNum.Text.Trim(); + // } + // GetMeetingSort(); + // //应急管理 + // List complexEmergencys = BLL.EmergencyListService.GetEmergencyListsByEmergencyType(BLL.Const.ComplexEmergencyName, this.ProjectId, startTime, endTime); //综合应急预案集合 + // int complexEmergencyNum = complexEmergencys.Count; + // this.txtComplexEmergencyNum.Text = complexEmergencyNum.ToString(); + // List specialEmergencys = BLL.EmergencyListService.GetOtherEmergencyListsByEmergencyType(BLL.Const.ComplexEmergencyName, this.ProjectId, startTime, endTime); //专项应急预案集合 + // int specialEmergencyNum = specialEmergencys.Count; + // this.txtSpecialEmergencyNum.Text = specialEmergencyNum.ToString(); + // this.txtDrillRecordNum.Text = BLL.DrillRecordListService.GetCountByDate(startTime, endTime, this.ProjectId).ToString(); + // if (mr != null) + // { + // //综合应急预案 + // if (mr.YearComplexEmergencyNum != 0) + // { + // this.txtYearComplexEmergencyNum.Text = (mr.YearComplexEmergencyNum + complexEmergencyNum).ToString(); + // } + // else + // { + // this.txtYearComplexEmergencyNum.Text = complexEmergencyNum.ToString(); + // } + // //专项应急预案 + // if (mr.YearSpecialEmergencyNum != 0) + // { + // this.txtYearSpecialEmergencyNum.Text = (mr.YearSpecialEmergencyNum + specialEmergencyNum).ToString(); + // } + // else + // { + // this.txtYearSpecialEmergencyNum.Text = specialEmergencyNum.ToString(); + // } + // //应急演练活动 + // if (mr.YearDrillRecordNum != 0) + // { + // this.txtYearDrillRecordNum.Text = (mr.YearDrillRecordNum + Convert.ToInt32(this.txtDrillRecordNum.Text.Trim())).ToString(); + // } + // else + // { + // this.txtYearDrillRecordNum.Text = this.txtDrillRecordNum.Text; + // } + // } + // else + // { + // this.txtYearComplexEmergencyNum.Text = complexEmergencyNum.ToString(); + // this.txtYearSpecialEmergencyNum.Text = specialEmergencyNum.ToString(); + // this.txtYearDrillRecordNum.Text = this.txtDrillRecordNum.Text; + // } + // GetRewardSort(); + // GetPunishSort(); + // this.txtRewardNum.Text = BLL.IncentiveNoticeService.GetCountByDate(startTime, endTime, this.ProjectId).ToString(); + // this.txtRewardMoney.Text = Convert.ToInt32(BLL.IncentiveNoticeService.GetSumMoneyByDate(startTime, endTime, this.ProjectId)).ToString(); + // this.txtPunishNum.Text = BLL.PunishNoticeService.GetCountByDate(startTime, endTime, this.ProjectId).ToString(); + // this.txtPunishMoney.Text = Convert.ToInt32(BLL.PunishNoticeService.GetSumMoneyByDate(startTime, endTime, this.ProjectId)).ToString(); + // if (mr != null) + // { + // if (mr.YearRewardNum != 0) + // { + // this.txtYearRewardNum.Text = (mr.YearRewardNum + Convert.ToInt32(this.txtRewardNum.Text.Trim())).ToString(); + // } + // else + // { + // this.txtYearRewardNum.Text = this.txtRewardNum.Text.Trim(); + // } + // if (mr.YearRewardMoney != 0) + // { + // this.txtYearRewardMoney.Text = (mr.YearRewardMoney + Convert.ToInt32(this.txtRewardMoney.Text.Trim())).ToString(); + // } + // else + // { + // this.txtYearRewardMoney.Text = this.txtRewardMoney.Text.Trim(); + // } + // if (mr.YearPunishNum != 0) + // { + // this.txtYearPunishNum.Text = (mr.YearPunishNum + Convert.ToInt32(this.txtPunishNum.Text.Trim())).ToString(); + // } + // else + // { + // this.txtYearPunishNum.Text = this.txtPunishNum.Text.Trim(); + // } + // if (mr.YearPunishMoney != 0) + // { + // this.txtYearPunishMoney.Text = (mr.YearPunishMoney + Convert.ToInt32(this.txtPunishMoney.Text.Trim())).ToString(); + // } + // else + // { + // this.txtYearPunishMoney.Text = this.txtPunishMoney.Text.Trim(); + // } + // } + // else + // { + // this.txtYearRewardNum.Text = this.txtRewardNum.Text.Trim(); + // this.txtYearRewardMoney.Text = this.txtRewardMoney.Text.Trim(); + // this.txtYearPunishNum.Text = this.txtPunishNum.Text.Trim(); + // this.txtYearPunishMoney.Text = this.txtPunishMoney.Text.Trim(); + // } } else { - GetTrainSort(); - GetCheckSort(); - GetCheckDetailSort(); - //会议数量 - int meetingNum1 = BLL.WeekMeetingService.GetCountByTime(startTime, endTime, this.ProjectId); - int meetingNum2 = BLL.MonthMeetingService.GetCountByTime(startTime, endTime, this.ProjectId); - int meetingNum3 = BLL.SpecialMeetingService.GetCountByTime(startTime, endTime, this.ProjectId); - int meetingNum4 = BLL.AttendMeetingService.GetCountByTime(startTime, endTime, this.ProjectId); - this.txtMeetingNum.Text = (meetingNum1 + meetingNum2 + meetingNum3 + meetingNum4).ToString(); - if (mr != null) - { - if (mr.YearMeetingNum != 0) - { - this.txtYearMeetingNum.Text = (mr.YearMeetingNum + Convert.ToInt32(this.txtMeetingNum.Text.Trim())).ToString(); - } - else - { - this.txtYearMeetingNum.Text = txtMeetingNum.Text.Trim(); - } - } - else - { - this.txtYearMeetingNum.Text = txtMeetingNum.Text.Trim(); - } - GetMeetingSort(); - //应急管理 - List complexEmergencys = BLL.EmergencyListService.GetEmergencyListsByEmergencyType(BLL.Const.ComplexEmergencyName, this.ProjectId, startTime, endTime); //综合应急预案集合 - int complexEmergencyNum = complexEmergencys.Count; - this.txtComplexEmergencyNum.Text = complexEmergencyNum.ToString(); - List specialEmergencys = BLL.EmergencyListService.GetOtherEmergencyListsByEmergencyType(BLL.Const.ComplexEmergencyName, this.ProjectId, startTime, endTime); //专项应急预案集合 - int specialEmergencyNum = specialEmergencys.Count; - this.txtSpecialEmergencyNum.Text = specialEmergencyNum.ToString(); - this.txtDrillRecordNum.Text = BLL.DrillRecordListService.GetCountByDate(startTime, endTime, this.ProjectId).ToString(); - if (mr != null) - { - //综合应急预案 - if (mr.YearComplexEmergencyNum != 0) - { - this.txtYearComplexEmergencyNum.Text = (mr.YearComplexEmergencyNum + complexEmergencyNum).ToString(); - } - else - { - this.txtYearComplexEmergencyNum.Text = complexEmergencyNum.ToString(); - } - //专项应急预案 - if (mr.YearSpecialEmergencyNum != 0) - { - this.txtYearSpecialEmergencyNum.Text = (mr.YearSpecialEmergencyNum + specialEmergencyNum).ToString(); - } - else - { - this.txtYearSpecialEmergencyNum.Text = specialEmergencyNum.ToString(); - } - //应急演练活动 - if (mr.YearDrillRecordNum != 0) - { - this.txtYearDrillRecordNum.Text = (mr.YearDrillRecordNum + Convert.ToInt32(this.txtDrillRecordNum.Text.Trim())).ToString(); - } - else - { - this.txtYearDrillRecordNum.Text = this.txtDrillRecordNum.Text; - } - } - else - { - this.txtYearComplexEmergencyNum.Text = complexEmergencyNum.ToString(); - this.txtYearSpecialEmergencyNum.Text = specialEmergencyNum.ToString(); - this.txtYearDrillRecordNum.Text = this.txtDrillRecordNum.Text; - } - GetRewardSort(); - GetPunishSort(); - this.txtRewardNum.Text = BLL.IncentiveNoticeService.GetCountByDate(startTime, endTime, this.ProjectId).ToString(); - this.txtRewardMoney.Text = Convert.ToInt32(BLL.IncentiveNoticeService.GetSumMoneyByDate(startTime, endTime, this.ProjectId)).ToString(); - this.txtPunishNum.Text = BLL.PunishNoticeService.GetCountByDate(startTime, endTime, this.ProjectId).ToString(); - this.txtPunishMoney.Text = Convert.ToInt32(BLL.PunishNoticeService.GetSumMoneyByDate(startTime, endTime, this.ProjectId)).ToString(); - if (mr != null) - { - if (mr.YearRewardNum != 0) - { - this.txtYearRewardNum.Text = (mr.YearRewardNum + Convert.ToInt32(this.txtRewardNum.Text.Trim())).ToString(); - } - else - { - this.txtYearRewardNum.Text = this.txtRewardNum.Text.Trim(); - } - if (mr.YearRewardMoney != 0) - { - this.txtYearRewardMoney.Text = (mr.YearRewardMoney + Convert.ToInt32(this.txtRewardMoney.Text.Trim())).ToString(); - } - else - { - this.txtYearRewardMoney.Text = this.txtRewardMoney.Text.Trim(); - } - if (mr.YearPunishNum != 0) - { - this.txtYearPunishNum.Text = (mr.YearPunishNum + Convert.ToInt32(this.txtPunishNum.Text.Trim())).ToString(); - } - else - { - this.txtYearPunishNum.Text = this.txtPunishNum.Text.Trim(); - } - if (mr.YearPunishMoney != 0) - { - this.txtYearPunishMoney.Text = (mr.YearPunishMoney + Convert.ToInt32(this.txtPunishMoney.Text.Trim())).ToString(); - } - else - { - this.txtYearPunishMoney.Text = this.txtPunishMoney.Text.Trim(); - } - } - else - { - this.txtYearRewardNum.Text = this.txtRewardNum.Text.Trim(); - this.txtYearRewardMoney.Text = this.txtRewardMoney.Text.Trim(); - this.txtYearPunishNum.Text = this.txtPunishNum.Text.Trim(); - this.txtYearPunishMoney.Text = this.txtPunishMoney.Text.Trim(); - } + GetTrainSort();//培训数据统计 + GetCheckSort();//现场HSE绩效数据统计 + GetRewardAndPunishSort();//HSE奖励与处罚 } } } @@ -543,62 +571,62 @@ namespace FineUIPro.Web.HSSE.Manager /// /// /// - protected void btnNewHazardSort_Click(object sender, EventArgs e) - { - jerqueSaveHazardList(); - Model.Manager_HazardSortC hazardSort = new Model.Manager_HazardSortC - { - HazardSortId = SQLHelper.GetNewID(typeof(Model.Manager_HazardSortC)) - }; - hazardSorts.Add(hazardSort); - this.gvHazardSort.DataSource = hazardSorts; - this.gvHazardSort.DataBind(); - } + //protected void btnNewHazardSort_Click(object sender, EventArgs e) + //{ + // jerqueSaveHazardList(); + // Model.Manager_HazardSortC hazardSort = new Model.Manager_HazardSortC + // { + // HazardSortId = SQLHelper.GetNewID(typeof(Model.Manager_HazardSortC)) + // }; + // hazardSorts.Add(hazardSort); + // this.gvHazardSort.DataSource = hazardSorts; + // this.gvHazardSort.DataBind(); + //} /// /// 检查并保存危险源集合 /// - private void jerqueSaveHazardList() - { - hazardSorts.Clear(); - JArray mergedData = gvHazardSort.GetMergedData(); - foreach (JObject mergedRow in mergedData) - { - string status = mergedRow.Value("status"); - JObject values = mergedRow.Value("values"); - int i = mergedRow.Value("index"); - Model.Manager_HazardSortC hazardSort = new Model.Manager_HazardSortC - { - HazardSortId = this.gvHazardSort.Rows[i].DataKeys[0].ToString(), - SortIndex = i, - HazardName = values.Value("HazardName").ToString(), - UnitAndArea = values.Value("UnitAndArea").ToString(), - StationDef = values.Value("StationDef").ToString(), - HandleWay = values.Value("HandleWay").ToString() - }; - hazardSorts.Add(hazardSort); - } - } + //private void jerqueSaveHazardList() + //{ + // hazardSorts.Clear(); + // JArray mergedData = gvHazardSort.GetMergedData(); + // foreach (JObject mergedRow in mergedData) + // { + // string status = mergedRow.Value("status"); + // JObject values = mergedRow.Value("values"); + // int i = mergedRow.Value("index"); + // Model.Manager_HazardSortC hazardSort = new Model.Manager_HazardSortC + // { + // HazardSortId = this.gvHazardSort.Rows[i].DataKeys[0].ToString(), + // SortIndex = i, + // HazardName = values.Value("HazardName").ToString(), + // UnitAndArea = values.Value("UnitAndArea").ToString(), + // StationDef = values.Value("StationDef").ToString(), + // HandleWay = values.Value("HandleWay").ToString() + // }; + // hazardSorts.Add(hazardSort); + // } + //} - protected void gvHazardSort_RowCommand(object sender, GridCommandEventArgs e) - { - jerqueSaveHazardList(); - string rowID = this.gvHazardSort.DataKeys[e.RowIndex][0].ToString(); - if (e.CommandName == "Delete") - { - foreach (var item in hazardSorts) - { - if (item.HazardSortId == rowID) - { - hazardSorts.Remove(item); - break; - } - } - gvHazardSort.DataSource = hazardSorts; - gvHazardSort.DataBind(); - ShowNotify("删除数据成功!", MessageBoxIcon.Success); - } - } + //protected void gvHazardSort_RowCommand(object sender, GridCommandEventArgs e) + //{ + // jerqueSaveHazardList(); + // string rowID = this.gvHazardSort.DataKeys[e.RowIndex][0].ToString(); + // if (e.CommandName == "Delete") + // { + // foreach (var item in hazardSorts) + // { + // if (item.HazardSortId == rowID) + // { + // hazardSorts.Remove(item); + // break; + // } + // } + // gvHazardSort.DataSource = hazardSorts; + // gvHazardSort.DataBind(); + // ShowNotify("删除数据成功!", MessageBoxIcon.Success); + // } + //} #endregion #region HSE培训 @@ -621,8 +649,9 @@ namespace FineUIPro.Web.HSSE.Manager Model.Base_TrainType trainType = BLL.TrainTypeService.GetTrainTypeById(t.TrainTypeId); if (trainType != null) { - trainSort.TrainContent = trainType.TrainTypeName; + trainSort.TrainType = trainType.TrainTypeName; } + trainSort.TrainContent = t.TrainContent; trainSort.TeachHour = t.TeachHour; trainSort.TeachMan = t.TeachMan; List unitIds = t.UnitIds.Split(',').ToList(); @@ -643,6 +672,9 @@ namespace FineUIPro.Web.HSSE.Manager } } trainSort.PersonNum = BLL.EduTrain_TrainRecordDetailService.GetTrainRecordDetailByTrainingId(t.TrainingId).Count(); + DateTime startTime = Convert.ToDateTime(DateTime.Now.ToString()).AddDays(1 - DateTime.Now.Day);//本月第一天 + DateTime endTime = Convert.ToDateTime(DateTime.Now.ToString()).AddDays(1 - DateTime.Now.Day).AddMonths(1).AddDays(-1); + trainSort.TotalPersonNum = BLL.EduTrain_TrainRecordService.GetTrainPersonCount(startTime, endTime, ProjectId); trainSorts.Add(trainSort); i++; } @@ -650,23 +682,23 @@ namespace FineUIPro.Web.HSSE.Manager this.gvTrainSort.DataSource = trainSorts; this.gvTrainSort.DataBind(); } - + /// /// 增加HSE培训 /// /// /// - protected void btnNewTrainSort_Click(object sender, EventArgs e) - { - jerqueSaveTrainList(); - Model.Manager_TrainSortC trainSort = new Model.Manager_TrainSortC - { - TrainSortId = SQLHelper.GetNewID(typeof(Model.Manager_TrainSortC)) - }; - trainSorts.Add(trainSort); - this.gvTrainSort.DataSource = trainSorts; - this.gvTrainSort.DataBind(); - } + //protected void btnNewTrainSort_Click(object sender, EventArgs e) + //{ + // jerqueSaveTrainList(); + // Model.Manager_TrainSortC trainSort = new Model.Manager_TrainSortC + // { + // TrainSortId = SQLHelper.GetNewID(typeof(Model.Manager_TrainSortC)) + // }; + // trainSorts.Add(trainSort); + // this.gvTrainSort.DataSource = trainSorts; + // this.gvTrainSort.DataBind(); + //} /// /// 检查并保存HSE培训集合 @@ -684,11 +716,13 @@ namespace FineUIPro.Web.HSSE.Manager { TrainSortId = this.gvTrainSort.Rows[i].DataKeys[0].ToString(), SortIndex = i, - TrainContent = values.Value("TrainContent").ToString(), + TrainType= values.Value("TrainType").ToString(), + //TrainContent = values.Value("TrainContent").ToString(), TeachHour = Funs.GetNewDecimalOrZero(values.Value("TeachHour").ToString()), - TeachMan = values.Value("TeachMan").ToString(), + //TeachMan = values.Value("TeachMan").ToString(), UnitName = values.Value("UnitName").ToString(), - PersonNum = Funs.GetNewIntOrZero(values.Value("PersonNum").ToString()) + PersonNum = Funs.GetNewIntOrZero(values.Value("PersonNum").ToString()), + TotalPersonNum = Funs.GetNewIntOrZero(values.Value("TotalPersonNum").ToString()) }; trainSorts.Add(trainSort); } @@ -696,22 +730,22 @@ namespace FineUIPro.Web.HSSE.Manager protected void gvTrainSort_RowCommand(object sender, GridCommandEventArgs e) { - jerqueSaveTrainList(); - string rowID = this.gvTrainSort.DataKeys[e.RowIndex][0].ToString(); - if (e.CommandName == "Delete") - { - foreach (var item in trainSorts) - { - if (item.TrainSortId == rowID) - { - trainSorts.Remove(item); - break; - } - } - gvTrainSort.DataSource = trainSorts; - gvTrainSort.DataBind(); - ShowNotify("删除数据成功!", MessageBoxIcon.Success); - } + //jerqueSaveTrainList(); + //string rowID = this.gvTrainSort.DataKeys[e.RowIndex][0].ToString(); + //if (e.CommandName == "Delete") + //{ + // foreach (var item in trainSorts) + // { + // if (item.TrainSortId == rowID) + // { + // trainSorts.Remove(item); + // break; + // } + // } + // gvTrainSort.DataSource = trainSorts; + // gvTrainSort.DataBind(); + // ShowNotify("删除数据成功!", MessageBoxIcon.Success); + //} } /// @@ -719,61 +753,61 @@ namespace FineUIPro.Web.HSSE.Manager /// /// /// - protected void btnNewTrainActivitySort_Click(object sender, EventArgs e) - { - jerqueSaveTrainActivityList(); - Model.Manager_TrainActivitySortC trainActivitySort = new Model.Manager_TrainActivitySortC - { - TrainActivitySortId = SQLHelper.GetNewID(typeof(Model.Manager_TrainActivitySortC)) - }; - trainActivitySorts.Add(trainActivitySort); - this.gvTrainActivitySort.DataSource = trainActivitySorts; - this.gvTrainActivitySort.DataBind(); - } + //protected void btnNewTrainActivitySort_Click(object sender, EventArgs e) + //{ + // jerqueSaveTrainActivityList(); + // Model.Manager_TrainActivitySortC trainActivitySort = new Model.Manager_TrainActivitySortC + // { + // TrainActivitySortId = SQLHelper.GetNewID(typeof(Model.Manager_TrainActivitySortC)) + // }; + // trainActivitySorts.Add(trainActivitySort); + // this.gvTrainActivitySort.DataSource = trainActivitySorts; + // this.gvTrainActivitySort.DataBind(); + //} /// /// 检查并保存HSE培训活动集合 /// - private void jerqueSaveTrainActivityList() - { - trainActivitySorts.Clear(); - JArray mergedData = gvTrainActivitySort.GetMergedData(); - foreach (JObject mergedRow in mergedData) - { - string status = mergedRow.Value("status"); - JObject values = mergedRow.Value("values"); - int i = mergedRow.Value("index"); - Model.Manager_TrainActivitySortC trainActivitySort = new Model.Manager_TrainActivitySortC - { - TrainActivitySortId = this.gvTrainActivitySort.Rows[i].DataKeys[0].ToString(), - SortIndex = i, - ActivityName = values.Value("ActivityName").ToString(), - TrainDate = values.Value("TrainDate").ToString(), - TrainEffect = values.Value("TrainEffect").ToString() - }; - trainActivitySorts.Add(trainActivitySort); - } - } + //private void jerqueSaveTrainActivityList() + //{ + // trainActivitySorts.Clear(); + // JArray mergedData = gvTrainActivitySort.GetMergedData(); + // foreach (JObject mergedRow in mergedData) + // { + // string status = mergedRow.Value("status"); + // JObject values = mergedRow.Value("values"); + // int i = mergedRow.Value("index"); + // Model.Manager_TrainActivitySortC trainActivitySort = new Model.Manager_TrainActivitySortC + // { + // TrainActivitySortId = this.gvTrainActivitySort.Rows[i].DataKeys[0].ToString(), + // SortIndex = i, + // ActivityName = values.Value("ActivityName").ToString(), + // TrainDate = values.Value("TrainDate").ToString(), + // TrainEffect = values.Value("TrainEffect").ToString() + // }; + // trainActivitySorts.Add(trainActivitySort); + // } + //} - protected void gvTrainActivitySort_RowCommand(object sender, GridCommandEventArgs e) - { - jerqueSaveTrainActivityList(); - string rowID = this.gvTrainActivitySort.DataKeys[e.RowIndex][0].ToString(); - if (e.CommandName == "Delete") - { - foreach (var item in trainActivitySorts) - { - if (item.TrainActivitySortId == rowID) - { - trainActivitySorts.Remove(item); - break; - } - } - gvTrainActivitySort.DataSource = trainActivitySorts; - gvTrainActivitySort.DataBind(); - ShowNotify("删除数据成功!", MessageBoxIcon.Success); - } - } + //protected void gvTrainActivitySort_RowCommand(object sender, GridCommandEventArgs e) + //{ + // jerqueSaveTrainActivityList(); + // string rowID = this.gvTrainActivitySort.DataKeys[e.RowIndex][0].ToString(); + // if (e.CommandName == "Delete") + // { + // foreach (var item in trainActivitySorts) + // { + // if (item.TrainActivitySortId == rowID) + // { + // trainActivitySorts.Remove(item); + // break; + // } + // } + // gvTrainActivitySort.DataSource = trainActivitySorts; + // gvTrainActivitySort.DataBind(); + // ShowNotify("删除数据成功!", MessageBoxIcon.Success); + // } + //} #endregion #region HSE检查 @@ -783,7 +817,59 @@ namespace FineUIPro.Web.HSSE.Manager private void GetCheckSort() { int i = 0; + + #region HSE会议 本月开展次数 + int safetyLeaderGroup = BLL.SafetyLeaderGroupMeetingService.GetCountByTime(startTime, endTime, this.ProjectId);//安全领导小组会议 + int weekMeeting = BLL.WeekMeetingService.GetCountByTime(startTime, endTime, this.ProjectId);//周例会 + int monthMeeting = BLL.MonthMeetingService.GetCountByTime(startTime, endTime, this.ProjectId);//月例会 + int specialMeeting = BLL.SpecialMeetingService.GetCountByTime(startTime, endTime, this.ProjectId);//专题例会 + int attendMeeting = BLL.AttendMeetingService.GetCountByTime(startTime, endTime, this.ProjectId);//其他会议 + int classMeeting = BLL.ClassMeetingService.GetCountByTime(startTime, endTime, this.ProjectId);//班前会 + #endregion + #region HSE会议 年度累计次数 + int yearSafetyLeaderGroup = BLL.SafetyLeaderGroupMeetingService.GetCountByTime(yearStartTime, endTime, this.ProjectId);//安全领导小组会议 + int yearWeekMeeting = BLL.WeekMeetingService.GetCountByTime(yearStartTime, endTime, this.ProjectId);//周例会 + int yearMonthMeeting = BLL.MonthMeetingService.GetCountByTime(yearStartTime, endTime, this.ProjectId);//月例会 + int yearSpecialMeeting = BLL.SpecialMeetingService.GetCountByTime(yearStartTime, endTime, this.ProjectId);//专题例会 + int yearAttendMeeting = BLL.AttendMeetingService.GetCountByTime(yearStartTime, endTime, this.ProjectId);//其他会议 + int yearClassMeeting = BLL.ClassMeetingService.GetCountByTime(yearStartTime, endTime, this.ProjectId);//班前会 + #endregion + #region HSE会议 项目总累计数 + int projectSafetyLeaderGroup = BLL.SafetyLeaderGroupMeetingService.GetCountByTime(projectStartTime, endTime, this.ProjectId);//安全领导小组会议 + int projectWeekMeeting = BLL.WeekMeetingService.GetCountByTime(projectStartTime, endTime, this.ProjectId);//周例会 + int projectMonthMeeting = BLL.MonthMeetingService.GetCountByTime(projectStartTime, endTime, this.ProjectId);//月例会 + int projectSpecialMeeting = BLL.SpecialMeetingService.GetCountByTime(projectStartTime, endTime, this.ProjectId);//专题例会 + int projectAttendMeeting = BLL.AttendMeetingService.GetCountByTime(projectStartTime, endTime, this.ProjectId);//其他会议 + int projectClassMeeting = BLL.ClassMeetingService.GetCountByTime(projectStartTime, endTime, this.ProjectId);//班前会 + #endregion + Model.Manager_CheckSortC checkSort1 = new Model.Manager_CheckSortC + { + CheckSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckSortC)), + SortIndex = i, + CheckType = "HSE会议", + CheckNumber = safetyLeaderGroup + weekMeeting + monthMeeting + specialMeeting + attendMeeting + classMeeting, + YearCheckNum = yearSafetyLeaderGroup + yearWeekMeeting + yearMonthMeeting + yearSpecialMeeting + yearSpecialMeeting + yearAttendMeeting + yearClassMeeting, + TotalCheckNum = projectSafetyLeaderGroup + projectWeekMeeting + projectMonthMeeting + projectSpecialMeeting + projectSpecialMeeting + projectAttendMeeting + projectClassMeeting, + ViolationNumber = null, + YearViolationNum = null + }; + checkSorts.Add(checkSort1); + i++; + Model.Manager_CheckSortC checkSort2 = new Model.Manager_CheckSortC + { + CheckSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckSortC)), + SortIndex = i, + CheckType = "开工前HSE检查", + CheckNumber = BLL.Check_CheckWorkService.GetCountByCheckTime(startTime, endTime, this.ProjectId), + YearCheckNum = BLL.Check_CheckWorkService.GetCountByCheckTime(yearStartTime, endTime, this.ProjectId), + TotalCheckNum = BLL.Check_CheckWorkService.GetCountByCheckTime(projectStartTime, endTime, this.ProjectId), + ViolationNumber = BLL.Check_CheckWorkService.GetIsOKViolationCountByCheckTime(startTime, endTime, this.ProjectId), + YearViolationNum = BLL.Check_CheckWorkService.GetIsOKViolationCountByCheckTime(yearStartTime, endTime, this.ProjectId) + }; + checkSorts.Add(checkSort2); + i++; + Model.Manager_CheckSortC checkSort3 = new Model.Manager_CheckSortC { CheckSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckSortC)), SortIndex = i, @@ -794,22 +880,10 @@ namespace FineUIPro.Web.HSSE.Manager ViolationNumber = BLL.Check_CheckDayService.GetIsOKViolationCountByCheckTime(startTime, endTime, this.ProjectId), YearViolationNum = BLL.Check_CheckDayService.GetIsOKViolationCountByCheckTime(yearStartTime, endTime, this.ProjectId) }; - checkSorts.Add(checkSort1); + checkSorts.Add(checkSort3); i++; - Model.Manager_CheckSortC checkSort2 = new Model.Manager_CheckSortC - { - CheckSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckSortC)), - SortIndex = i, - CheckType = "联合检查", - CheckNumber = BLL.Check_CheckColligationService.GetCountByCheckTime(startTime, endTime, this.ProjectId), - YearCheckNum = BLL.Check_CheckColligationService.GetCountByCheckTime(yearStartTime, endTime, this.ProjectId), - TotalCheckNum = BLL.Check_CheckColligationService.GetCountByCheckTime(projectStartTime, endTime, this.ProjectId), - ViolationNumber = BLL.Check_CheckColligationService.GetIsOKViolationCountByCheckTime(startTime, endTime, this.ProjectId), - YearViolationNum = BLL.Check_CheckColligationService.GetIsOKViolationCountByCheckTime(yearStartTime, endTime, this.ProjectId) - }; - checkSorts.Add(checkSort2); - i++; - Model.Manager_CheckSortC checkSort3 = new Model.Manager_CheckSortC + + Model.Manager_CheckSortC checkSort4 = new Model.Manager_CheckSortC { CheckSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckSortC)), SortIndex = i, @@ -820,26 +894,13 @@ namespace FineUIPro.Web.HSSE.Manager ViolationNumber = BLL.Check_CheckSpecialService.GetIsOKViolationCountByCheckTime(startTime, endTime, this.ProjectId), YearViolationNum = BLL.Check_CheckSpecialService.GetIsOKViolationCountByCheckTime(yearStartTime, endTime, this.ProjectId) }; - checkSorts.Add(checkSort3); - i++; - Model.Manager_CheckSortC checkSort4 = new Model.Manager_CheckSortC - { - CheckSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckSortC)), - SortIndex = i, - CheckType = "开工前检查", - CheckNumber = BLL.Check_CheckWorkService.GetCountByCheckTime(startTime, endTime, this.ProjectId), - YearCheckNum = BLL.Check_CheckWorkService.GetCountByCheckTime(yearStartTime, endTime, this.ProjectId), - TotalCheckNum = BLL.Check_CheckWorkService.GetCountByCheckTime(projectStartTime, endTime, this.ProjectId), - ViolationNumber = BLL.Check_CheckWorkService.GetIsOKViolationCountByCheckTime(startTime, endTime, this.ProjectId), - YearViolationNum = BLL.Check_CheckWorkService.GetIsOKViolationCountByCheckTime(yearStartTime, endTime, this.ProjectId) - }; checkSorts.Add(checkSort4); i++; Model.Manager_CheckSortC checkSort5 = new Model.Manager_CheckSortC { CheckSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckSortC)), SortIndex = i, - CheckType = "季节性/节假日检查", + CheckType = "节假日前安全检查", CheckNumber = BLL.Check_CheckHolidayService.GetCountByCheckTime(startTime, endTime, this.ProjectId), YearCheckNum = BLL.Check_CheckHolidayService.GetCountByCheckTime(yearStartTime, endTime, this.ProjectId), TotalCheckNum = BLL.Check_CheckHolidayService.GetCountByCheckTime(projectStartTime, endTime, this.ProjectId), @@ -847,6 +908,100 @@ namespace FineUIPro.Web.HSSE.Manager YearViolationNum = BLL.Check_CheckHolidayService.GetIsOKViolationCountByCheckTime(yearStartTime, endTime, this.ProjectId) }; checkSorts.Add(checkSort5); + i++; + + Model.Manager_CheckSortC checkSort6 = new Model.Manager_CheckSortC + { + CheckSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckSortC)), + SortIndex = i, + CheckType = "文明施工检查", + CheckNumber = null, + YearCheckNum = null, + TotalCheckNum = null, + ViolationNumber = null, + YearViolationNum = null + }; + checkSorts.Add(checkSort6); + i++; + Model.Manager_CheckSortC checkSort7 = new Model.Manager_CheckSortC + { + CheckSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckSortC)), + SortIndex = i, + CheckType = "联合检查", + CheckNumber = BLL.Check_CheckColligationService.GetCountByCheckTime(startTime, endTime, this.ProjectId), + YearCheckNum = BLL.Check_CheckColligationService.GetCountByCheckTime(yearStartTime, endTime, this.ProjectId), + TotalCheckNum = BLL.Check_CheckColligationService.GetCountByCheckTime(projectStartTime, endTime, this.ProjectId), + ViolationNumber = BLL.Check_CheckColligationService.GetIsOKViolationCountByCheckTime(startTime, endTime, this.ProjectId), + YearViolationNum = BLL.Check_CheckColligationService.GetIsOKViolationCountByCheckTime(yearStartTime, endTime, this.ProjectId) + }; + checkSorts.Add(checkSort7); + i++; + Model.Manager_CheckSortC checkSort8 = new Model.Manager_CheckSortC + { + CheckSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckSortC)), + SortIndex = i, + CheckType = "综合应急预案发布", + CheckNumber = null, + YearCheckNum = null, + TotalCheckNum = null, + ViolationNumber = null, + YearViolationNum = null, + }; + checkSorts.Add(checkSort8); + i++; + Model.Manager_CheckSortC checkSort9 = new Model.Manager_CheckSortC + { + CheckSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckSortC)), + SortIndex = i, + CheckType = "专项应急预案发布", + CheckNumber = null, + YearCheckNum = null, + TotalCheckNum = null, + ViolationNumber = null, + YearViolationNum = null, + }; + checkSorts.Add(checkSort9); + i++; + Model.Manager_CheckSortC checkSort10 = new Model.Manager_CheckSortC + { + CheckSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckSortC)), + SortIndex = i, + CheckType = "应急演练活动次数", + CheckNumber = BLL.DrillRecordListService.GetCountByDate(startTime,endTime,this.ProjectId), + YearCheckNum = BLL.DrillRecordListService.GetCountByDate(yearStartTime, endTime, this.ProjectId), + TotalCheckNum = BLL.DrillRecordListService.GetCountByDate(projectStartTime, endTime, this.ProjectId), + ViolationNumber = null, + YearViolationNum = null, + }; + checkSorts.Add(checkSort10); + i++; + Model.Manager_CheckSortC checkSort11 = new Model.Manager_CheckSortC + { + CheckSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckSortC)), + SortIndex = i, + CheckType = "HSE管理文件/方案发布", + CheckNumber = BLL.ConstructSolutionService.GetConstructSolutionCountByDate(this.ProjectId,startTime,endTime), + YearCheckNum = BLL.ConstructSolutionService.GetConstructSolutionCountByDate(this.ProjectId, yearStartTime, endTime), + TotalCheckNum = BLL.ConstructSolutionService.GetConstructSolutionCountByDate(this.ProjectId, projectStartTime, endTime), + ViolationNumber = null, + YearViolationNum = null, + }; + checkSorts.Add(checkSort11); + i++; + + Model.Manager_CheckSortC checkSort12 = new Model.Manager_CheckSortC + { + CheckSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckSortC)), + SortIndex = i, + CheckType = "作业许可证", + CheckNumber = BLL.LicenseManagerService.GetCountByDate(startTime,endTime,this.ProjectId), + YearCheckNum = BLL.LicenseManagerService.GetCountByDate(yearStartTime, endTime, this.ProjectId), + TotalCheckNum = BLL.LicenseManagerService.GetCountByDate(projectStartTime, endTime, this.ProjectId), + ViolationNumber = null, + YearViolationNum = null, + }; + checkSorts.Add(checkSort12); + this.gvCheckSort.DataSource = checkSorts; this.gvCheckSort.DataBind(); } @@ -885,11 +1040,11 @@ namespace FineUIPro.Web.HSSE.Manager CheckSortId = this.gvCheckSort.Rows[i].DataKeys[0].ToString(), SortIndex = i, CheckType = values.Value("CheckType").ToString(), - CheckNumber = Funs.GetNewIntOrZero(values.Value("CheckNumber").ToString()), - YearCheckNum = Funs.GetNewIntOrZero(values.Value("YearCheckNum").ToString()), - TotalCheckNum = Funs.GetNewIntOrZero(values.Value("TotalCheckNum").ToString()), - ViolationNumber = Funs.GetNewIntOrZero(values.Value("ViolationNumber").ToString()), - YearViolationNum = Funs.GetNewIntOrZero(values.Value("YearViolationNum").ToString()) + CheckNumber = Funs.GetNewInt(values.Value("CheckNumber").ToString()), + YearCheckNum = Funs.GetNewInt(values.Value("YearCheckNum").ToString()), + TotalCheckNum = Funs.GetNewInt(values.Value("TotalCheckNum").ToString()), + ViolationNumber = Funs.GetNewInt(values.Value("ViolationNumber").ToString()), + YearViolationNum = Funs.GetNewInt(values.Value("YearViolationNum").ToString()) }; checkSorts.Add(checkSort); } @@ -918,538 +1073,581 @@ namespace FineUIPro.Web.HSSE.Manager /// /// 显示月报告HSE检查明细情况 /// - private void GetCheckDetailSort() - { - int i = 0; - Model.Manager_CheckDetailSortC checkDetailSort1 = new Model.Manager_CheckDetailSortC - { - CheckDetailSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckDetailSortC)), - SortIndex = i, - CheckType = "日巡检" - }; - checkDetailSorts.Add(checkDetailSort1); - i++; - Model.Manager_CheckDetailSortC checkDetailSort2 = new Model.Manager_CheckDetailSortC - { - CheckDetailSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckDetailSortC)), - SortIndex = i, - CheckType = "周检/月检" - }; - checkDetailSorts.Add(checkDetailSort2); - i++; - List checkSpecials = BLL.Check_CheckSpecialService.GetListByCheckTime(startTime, endTime, this.ProjectId); - if (checkSpecials.Count > 0) - { - foreach (Model.Check_CheckSpecial checkSpecial in checkSpecials) - { - Model.Manager_CheckDetailSortC checkDetailSort = new Model.Manager_CheckDetailSortC - { - CheckDetailSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckDetailSortC)), - SortIndex = i - }; - List details = BLL.Check_CheckSpecialDetailService.GetCheckSpecialDetailByCheckSpecialId(checkSpecial.CheckSpecialId); - string str = string.Empty; - string checkStation = string.Empty; - if (details.Count > 0) - { - foreach (Model.Check_CheckSpecialDetail detail in details) - { - str += BLL.Check_ProjectCheckItemSetService.ConvertCheckItemType(detail.CheckItem) + ","; - checkStation += "隐患:" + detail.Unqualified + ";整改:" + detail.Suggestions + "。"; - } - } - if (!string.IsNullOrEmpty(str)) - { - str = str.Substring(0, str.LastIndexOf(',')); - } - checkDetailSort.CheckType = "专项检查(" + str + ")"; - if (checkSpecial.CheckTime != null) - { - checkDetailSort.CheckTime = string.Format("{0:yyyy-MM-dd}", checkSpecial.CheckTime); - } - string unitNames = string.Empty; - if (!string.IsNullOrEmpty(checkSpecial.PartInUnits)) - { - string[] strs = checkSpecial.PartInUnits.Split(','); - foreach (var item in strs) - { - Model.Base_Unit unit = BLL.UnitService.GetUnitByUnitId(item); - if (unit != null) - { - unitNames += unit.UnitName + ","; - } - } - if (!string.IsNullOrEmpty(unitNames)) - { - unitNames = unitNames.Substring(0, unitNames.LastIndexOf(",")); - } - } - checkDetailSort.JoinUnit = unitNames; - checkDetailSort.StateDef = checkStation; - checkDetailSorts.Add(checkDetailSort); - i++; - } - } - this.gvCheckDetailSort.DataSource = checkDetailSorts; - this.gvCheckDetailSort.DataBind(); - } + //private void GetCheckDetailSort() + //{ + // int i = 0; + // Model.Manager_CheckDetailSortC checkDetailSort1 = new Model.Manager_CheckDetailSortC + // { + // CheckDetailSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckDetailSortC)), + // SortIndex = i, + // CheckType = "日巡检" + // }; + // checkDetailSorts.Add(checkDetailSort1); + // i++; + // Model.Manager_CheckDetailSortC checkDetailSort2 = new Model.Manager_CheckDetailSortC + // { + // CheckDetailSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckDetailSortC)), + // SortIndex = i, + // CheckType = "周检/月检" + // }; + // checkDetailSorts.Add(checkDetailSort2); + // i++; + // List checkSpecials = BLL.Check_CheckSpecialService.GetListByCheckTime(startTime, endTime, this.ProjectId); + // if (checkSpecials.Count > 0) + // { + // foreach (Model.Check_CheckSpecial checkSpecial in checkSpecials) + // { + // Model.Manager_CheckDetailSortC checkDetailSort = new Model.Manager_CheckDetailSortC + // { + // CheckDetailSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckDetailSortC)), + // SortIndex = i + // }; + // List details = BLL.Check_CheckSpecialDetailService.GetCheckSpecialDetailByCheckSpecialId(checkSpecial.CheckSpecialId); + // string str = string.Empty; + // string checkStation = string.Empty; + // if (details.Count > 0) + // { + // foreach (Model.Check_CheckSpecialDetail detail in details) + // { + // str += BLL.Check_ProjectCheckItemSetService.ConvertCheckItemType(detail.CheckItem) + ","; + // checkStation += "隐患:" + detail.Unqualified + ";整改:" + detail.Suggestions + "。"; + // } + // } + // if (!string.IsNullOrEmpty(str)) + // { + // str = str.Substring(0, str.LastIndexOf(',')); + // } + // checkDetailSort.CheckType = "专项检查(" + str + ")"; + // if (checkSpecial.CheckTime != null) + // { + // checkDetailSort.CheckTime = string.Format("{0:yyyy-MM-dd}", checkSpecial.CheckTime); + // } + // string unitNames = string.Empty; + // if (!string.IsNullOrEmpty(checkSpecial.PartInUnits)) + // { + // string[] strs = checkSpecial.PartInUnits.Split(','); + // foreach (var item in strs) + // { + // Model.Base_Unit unit = BLL.UnitService.GetUnitByUnitId(item); + // if (unit != null) + // { + // unitNames += unit.UnitName + ","; + // } + // } + // if (!string.IsNullOrEmpty(unitNames)) + // { + // unitNames = unitNames.Substring(0, unitNames.LastIndexOf(",")); + // } + // } + // checkDetailSort.JoinUnit = unitNames; + // checkDetailSort.StateDef = checkStation; + // checkDetailSorts.Add(checkDetailSort); + // i++; + // } + // } + // this.gvCheckDetailSort.DataSource = checkDetailSorts; + // this.gvCheckDetailSort.DataBind(); + //} /// /// 增加HSE检查 /// /// /// - protected void btnNewCheckDetailSort_Click(object sender, EventArgs e) - { - jerqueSaveCheckDetailList(); - Model.Manager_CheckDetailSortC checkDetailSort = new Model.Manager_CheckDetailSortC - { - CheckDetailSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckDetailSortC)) - }; - checkDetailSorts.Add(checkDetailSort); - this.gvCheckDetailSort.DataSource = checkDetailSorts; - this.gvCheckDetailSort.DataBind(); - } + //protected void btnNewCheckDetailSort_Click(object sender, EventArgs e) + //{ + // jerqueSaveCheckDetailList(); + // Model.Manager_CheckDetailSortC checkDetailSort = new Model.Manager_CheckDetailSortC + // { + // CheckDetailSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckDetailSortC)) + // }; + // checkDetailSorts.Add(checkDetailSort); + // this.gvCheckDetailSort.DataSource = checkDetailSorts; + // this.gvCheckDetailSort.DataBind(); + //} /// /// 检查并保存HSE检查集合 /// - private void jerqueSaveCheckDetailList() - { - checkDetailSorts.Clear(); - JArray mergedData = gvCheckDetailSort.GetMergedData(); - foreach (JObject mergedRow in mergedData) - { - string status = mergedRow.Value("status"); - JObject values = mergedRow.Value("values"); - int i = mergedRow.Value("index"); - Model.Manager_CheckDetailSortC checkDetailSort = new Model.Manager_CheckDetailSortC - { - CheckDetailSortId = this.gvCheckDetailSort.Rows[i].DataKeys[0].ToString(), - SortIndex = i, - CheckType = values.Value("CheckType").ToString(), - CheckTime = values.Value("CheckTime").ToString(), - JoinUnit = values.Value("JoinUnit").ToString(), - StateDef = values.Value("StateDef").ToString() - }; - checkDetailSorts.Add(checkDetailSort); - } - } + //private void jerqueSaveCheckDetailList() + //{ + // checkDetailSorts.Clear(); + // JArray mergedData = gvCheckDetailSort.GetMergedData(); + // foreach (JObject mergedRow in mergedData) + // { + // string status = mergedRow.Value("status"); + // JObject values = mergedRow.Value("values"); + // int i = mergedRow.Value("index"); + // Model.Manager_CheckDetailSortC checkDetailSort = new Model.Manager_CheckDetailSortC + // { + // CheckDetailSortId = this.gvCheckDetailSort.Rows[i].DataKeys[0].ToString(), + // SortIndex = i, + // CheckType = values.Value("CheckType").ToString(), + // CheckTime = values.Value("CheckTime").ToString(), + // JoinUnit = values.Value("JoinUnit").ToString(), + // StateDef = values.Value("StateDef").ToString() + // }; + // checkDetailSorts.Add(checkDetailSort); + // } + //} - protected void gvCheckDetailSort_RowCommand(object sender, GridCommandEventArgs e) - { - jerqueSaveCheckDetailList(); - string rowID = this.gvCheckDetailSort.DataKeys[e.RowIndex][0].ToString(); - if (e.CommandName == "Delete") - { - foreach (var item in checkDetailSorts) - { - if (item.CheckDetailSortId == rowID) - { - checkDetailSorts.Remove(item); - break; - } - } - gvCheckDetailSort.DataSource = checkDetailSorts; - gvCheckDetailSort.DataBind(); - ShowNotify("删除数据成功!", MessageBoxIcon.Success); - } - } + //protected void gvCheckDetailSort_RowCommand(object sender, GridCommandEventArgs e) + //{ + // jerqueSaveCheckDetailList(); + // string rowID = this.gvCheckDetailSort.DataKeys[e.RowIndex][0].ToString(); + // if (e.CommandName == "Delete") + // { + // foreach (var item in checkDetailSorts) + // { + // if (item.CheckDetailSortId == rowID) + // { + // checkDetailSorts.Remove(item); + // break; + // } + // } + // gvCheckDetailSort.DataSource = checkDetailSorts; + // gvCheckDetailSort.DataBind(); + // ShowNotify("删除数据成功!", MessageBoxIcon.Success); + // } + //} #endregion #region HSE会议 /// /// 显示月报告HSE会议情况 /// - private void GetMeetingSort() - { - int i = 0; - List weekMeetings = BLL.WeekMeetingService.GetMeetingListsByDate(startTime, endTime, this.ProjectId); - if (weekMeetings.Count > 0) - { - Model.Manager_MeetingSortC meetingSort = new Model.Manager_MeetingSortC - { - MeetingSortId = SQLHelper.GetNewID(typeof(Model.Manager_MeetingSortC)), - SortIndex = i, - MeetingType = "HSE周例会", - MeetingHours = weekMeetings.First().MeetingHours, - MeetingHostMan = weekMeetings.First().MeetingHostMan - }; - string date = string.Empty; - foreach (Model.Meeting_WeekMeeting m in weekMeetings) - { - if (m.WeekMeetingDate != null) - { - DateTime d = Convert.ToDateTime(m.WeekMeetingDate); - date += d.Month + "." + d.Day + "/"; - } - } - if (!string.IsNullOrEmpty(date)) - { - date = date.Substring(0, date.LastIndexOf('/')); - } - meetingSort.MeetingDate = date; - meetingSort.AttentPerson = weekMeetings.First().AttentPerson; - meetingSorts.Add(meetingSort); - } - i++; - List monthMeetings = BLL.MonthMeetingService.GetMeetingListsByDate(startTime, endTime, this.ProjectId); - if (monthMeetings.Count > 0) - { - Model.Manager_MeetingSortC meetingSort = new Model.Manager_MeetingSortC - { - MeetingSortId = SQLHelper.GetNewID(typeof(Model.Manager_MeetingSortC)), - SortIndex = i, - MeetingType = "HSE月例会", - MeetingHours = monthMeetings.First().MeetingHours, - MeetingHostMan = monthMeetings.First().MeetingHostMan - }; - string date = string.Empty; - if (monthMeetings.First().MonthMeetingDate != null) - { - DateTime d = Convert.ToDateTime(monthMeetings.First().MonthMeetingDate); - date += d.Month + "." + d.Day; - } - meetingSort.MeetingDate = date; - meetingSort.AttentPerson = monthMeetings.First().AttentPerson; - meetingSorts.Add(meetingSort); - } - i++; - List specialMeetings = BLL.SpecialMeetingService.GetMeetingListsByDate(startTime, endTime, this.ProjectId); - if (specialMeetings.Count > 0) - { - foreach (Model.Meeting_SpecialMeeting item in specialMeetings) - { - Model.Manager_MeetingSortC meetingSort = new Model.Manager_MeetingSortC - { - MeetingSortId = SQLHelper.GetNewID(typeof(Model.Manager_MeetingSortC)), - SortIndex = i, - MeetingType = "专题会议", - MeetingHours = item.MeetingHours, - MeetingHostMan = item.MeetingHostMan - }; - string date = string.Empty; - if (item.SpecialMeetingDate != null) - { - DateTime d = Convert.ToDateTime(item.SpecialMeetingDate); - date += d.Month + "." + d.Day; - } - meetingSort.MeetingDate = date; - meetingSort.AttentPerson = item.AttentPerson; - meetingSorts.Add(meetingSort); - i++; - } - } - List attendMeetings = BLL.AttendMeetingService.GetMeetingListsByDate(startTime, endTime, this.ProjectId); - if (attendMeetings.Count > 0) - { - foreach (Model.Meeting_AttendMeeting item in attendMeetings) - { - Model.Manager_MeetingSortC meetingSort = new Model.Manager_MeetingSortC - { - MeetingSortId = SQLHelper.GetNewID(typeof(Model.Manager_MeetingSortC)), - SortIndex = i, - MeetingType = item.AttendMeetingName, - MeetingHours = item.MeetingHours, - MeetingHostMan = item.MeetingHostMan - }; - string date = string.Empty; - if (item.AttendMeetingDate != null) - { - DateTime d = Convert.ToDateTime(item.AttendMeetingDate); - date += d.Month + "." + d.Day; - } - meetingSort.MeetingDate = date; - meetingSorts.Add(meetingSort); - i++; - } - } - this.gvMeetingSort.DataSource = meetingSorts; - this.gvMeetingSort.DataBind(); - } + //private void GetMeetingSort() + //{ + // int i = 0; + // List weekMeetings = BLL.WeekMeetingService.GetMeetingListsByDate(startTime, endTime, this.ProjectId); + // if (weekMeetings.Count > 0) + // { + // Model.Manager_MeetingSortC meetingSort = new Model.Manager_MeetingSortC + // { + // MeetingSortId = SQLHelper.GetNewID(typeof(Model.Manager_MeetingSortC)), + // SortIndex = i, + // MeetingType = "HSE周例会", + // MeetingHours = weekMeetings.First().MeetingHours, + // MeetingHostMan = weekMeetings.First().MeetingHostMan + // }; + // string date = string.Empty; + // foreach (Model.Meeting_WeekMeeting m in weekMeetings) + // { + // if (m.WeekMeetingDate != null) + // { + // DateTime d = Convert.ToDateTime(m.WeekMeetingDate); + // date += d.Month + "." + d.Day + "/"; + // } + // } + // if (!string.IsNullOrEmpty(date)) + // { + // date = date.Substring(0, date.LastIndexOf('/')); + // } + // meetingSort.MeetingDate = date; + // meetingSort.AttentPerson = weekMeetings.First().AttentPerson; + // meetingSorts.Add(meetingSort); + // } + // i++; + // List monthMeetings = BLL.MonthMeetingService.GetMeetingListsByDate(startTime, endTime, this.ProjectId); + // if (monthMeetings.Count > 0) + // { + // Model.Manager_MeetingSortC meetingSort = new Model.Manager_MeetingSortC + // { + // MeetingSortId = SQLHelper.GetNewID(typeof(Model.Manager_MeetingSortC)), + // SortIndex = i, + // MeetingType = "HSE月例会", + // MeetingHours = monthMeetings.First().MeetingHours, + // MeetingHostMan = monthMeetings.First().MeetingHostMan + // }; + // string date = string.Empty; + // if (monthMeetings.First().MonthMeetingDate != null) + // { + // DateTime d = Convert.ToDateTime(monthMeetings.First().MonthMeetingDate); + // date += d.Month + "." + d.Day; + // } + // meetingSort.MeetingDate = date; + // meetingSort.AttentPerson = monthMeetings.First().AttentPerson; + // meetingSorts.Add(meetingSort); + // } + // i++; + // List specialMeetings = BLL.SpecialMeetingService.GetMeetingListsByDate(startTime, endTime, this.ProjectId); + // if (specialMeetings.Count > 0) + // { + // foreach (Model.Meeting_SpecialMeeting item in specialMeetings) + // { + // Model.Manager_MeetingSortC meetingSort = new Model.Manager_MeetingSortC + // { + // MeetingSortId = SQLHelper.GetNewID(typeof(Model.Manager_MeetingSortC)), + // SortIndex = i, + // MeetingType = "专题会议", + // MeetingHours = item.MeetingHours, + // MeetingHostMan = item.MeetingHostMan + // }; + // string date = string.Empty; + // if (item.SpecialMeetingDate != null) + // { + // DateTime d = Convert.ToDateTime(item.SpecialMeetingDate); + // date += d.Month + "." + d.Day; + // } + // meetingSort.MeetingDate = date; + // meetingSort.AttentPerson = item.AttentPerson; + // meetingSorts.Add(meetingSort); + // i++; + // } + // } + // List attendMeetings = BLL.AttendMeetingService.GetMeetingListsByDate(startTime, endTime, this.ProjectId); + // if (attendMeetings.Count > 0) + // { + // foreach (Model.Meeting_AttendMeeting item in attendMeetings) + // { + // Model.Manager_MeetingSortC meetingSort = new Model.Manager_MeetingSortC + // { + // MeetingSortId = SQLHelper.GetNewID(typeof(Model.Manager_MeetingSortC)), + // SortIndex = i, + // MeetingType = item.AttendMeetingName, + // MeetingHours = item.MeetingHours, + // MeetingHostMan = item.MeetingHostMan + // }; + // string date = string.Empty; + // if (item.AttendMeetingDate != null) + // { + // DateTime d = Convert.ToDateTime(item.AttendMeetingDate); + // date += d.Month + "." + d.Day; + // } + // meetingSort.MeetingDate = date; + // meetingSorts.Add(meetingSort); + // i++; + // } + // } + // this.gvMeetingSort.DataSource = meetingSorts; + // this.gvMeetingSort.DataBind(); + //} /// /// 增加HSE会议 /// /// /// - protected void btnNewMeetingSort_Click(object sender, EventArgs e) - { - jerqueSaveMeetingList(); - Model.Manager_MeetingSortC meetingSort = new Model.Manager_MeetingSortC - { - MeetingSortId = SQLHelper.GetNewID(typeof(Model.Manager_MeetingSortC)) - }; - meetingSorts.Add(meetingSort); - this.gvMeetingSort.DataSource = meetingSorts; - this.gvMeetingSort.DataBind(); - } + //protected void btnNewMeetingSort_Click(object sender, EventArgs e) + //{ + // jerqueSaveMeetingList(); + // Model.Manager_MeetingSortC meetingSort = new Model.Manager_MeetingSortC + // { + // MeetingSortId = SQLHelper.GetNewID(typeof(Model.Manager_MeetingSortC)) + // }; + // meetingSorts.Add(meetingSort); + // this.gvMeetingSort.DataSource = meetingSorts; + // this.gvMeetingSort.DataBind(); + //} /// /// 检查并保存HSE会议集合 /// - private void jerqueSaveMeetingList() - { - meetingSorts.Clear(); - JArray mergedData = gvMeetingSort.GetMergedData(); - foreach (JObject mergedRow in mergedData) - { - string status = mergedRow.Value("status"); - JObject values = mergedRow.Value("values"); - int i = mergedRow.Value("index"); - Model.Manager_MeetingSortC meetingSort = new Model.Manager_MeetingSortC - { - MeetingSortId = this.gvMeetingSort.Rows[i].DataKeys[0].ToString(), - SortIndex = i, - MeetingType = values.Value("MeetingType").ToString(), - MeetingHours = Funs.GetNewDecimalOrZero(values.Value("MeetingHours").ToString()), - MeetingHostMan = values.Value("MeetingHostMan").ToString(), - MeetingDate = values.Value("MeetingDate").ToString(), - AttentPerson = values.Value("AttentPerson").ToString(), - MainContent = values.Value("MainContent").ToString() - }; - meetingSorts.Add(meetingSort); - } - } + //private void jerqueSaveMeetingList() + //{ + // meetingSorts.Clear(); + // JArray mergedData = gvMeetingSort.GetMergedData(); + // foreach (JObject mergedRow in mergedData) + // { + // string status = mergedRow.Value("status"); + // JObject values = mergedRow.Value("values"); + // int i = mergedRow.Value("index"); + // Model.Manager_MeetingSortC meetingSort = new Model.Manager_MeetingSortC + // { + // MeetingSortId = this.gvMeetingSort.Rows[i].DataKeys[0].ToString(), + // SortIndex = i, + // MeetingType = values.Value("MeetingType").ToString(), + // MeetingHours = Funs.GetNewDecimalOrZero(values.Value("MeetingHours").ToString()), + // MeetingHostMan = values.Value("MeetingHostMan").ToString(), + // MeetingDate = values.Value("MeetingDate").ToString(), + // AttentPerson = values.Value("AttentPerson").ToString(), + // MainContent = values.Value("MainContent").ToString() + // }; + // meetingSorts.Add(meetingSort); + // } + //} - protected void gvMeetingSort_RowCommand(object sender, GridCommandEventArgs e) - { - jerqueSaveMeetingList(); - string rowID = this.gvMeetingSort.DataKeys[e.RowIndex][0].ToString(); - if (e.CommandName == "Delete") - { - foreach (var item in meetingSorts) - { - if (item.MeetingSortId == rowID) - { - meetingSorts.Remove(item); - break; - } - } - gvMeetingSort.DataSource = meetingSorts; - gvMeetingSort.DataBind(); - ShowNotify("删除数据成功!", MessageBoxIcon.Success); - } - } + //protected void gvMeetingSort_RowCommand(object sender, GridCommandEventArgs e) + //{ + // jerqueSaveMeetingList(); + // string rowID = this.gvMeetingSort.DataKeys[e.RowIndex][0].ToString(); + // if (e.CommandName == "Delete") + // { + // foreach (var item in meetingSorts) + // { + // if (item.MeetingSortId == rowID) + // { + // meetingSorts.Remove(item); + // break; + // } + // } + // gvMeetingSort.DataSource = meetingSorts; + // gvMeetingSort.DataBind(); + // ShowNotify("删除数据成功!", MessageBoxIcon.Success); + // } + //} #endregion #region HSE宣传活动 - private string StripHT(string strHtml) - { - Regex regex = new Regex("<.+?>", RegexOptions.IgnoreCase); - string strOutput = regex.Replace(strHtml, ""); - return strOutput; - } + //private string StripHT(string strHtml) + //{ + // Regex regex = new Regex("<.+?>", RegexOptions.IgnoreCase); + // string strOutput = regex.Replace(strHtml, ""); + // return strOutput; + //} #endregion #region HSE奖励 /// /// 显示月报告HSE奖励情况 /// - private void GetRewardSort() - { - List rewardNoticeList = BLL.IncentiveNoticeService.GetIncentiveNoticeListsByDate(startTime, endTime, this.ProjectId); - if (rewardNoticeList.Count > 0) - { - int i = 0; - foreach (Model.Check_IncentiveNotice r in rewardNoticeList) - { - Model.Manager_IncentiveSortC rewardSort = new Model.Manager_IncentiveSortC - { - IncentiveSortId = SQLHelper.GetNewID(typeof(Model.Manager_IncentiveSortC)), - SortIndex = i, - BigType = "1" - }; - Model.Base_Unit u = BLL.UnitService.GetUnitByUnitId(r.UnitId); - if (u != null) - { - rewardSort.IncentiveUnit = u.UnitName; - } - rewardSort.IncentiveType = "现金"; - if (r.IncentiveDate != null) - { - rewardSort.IncentiveDate = string.Format("{0:yyyy-MM-dd}", r.IncentiveDate); - } - if (r.IncentiveMoney != null) - { - rewardSort.IncentiveMoney = Convert.ToInt32(r.IncentiveMoney); - } - rewardSorts.Add(rewardSort); - i++; - } - } - this.gvRewardSort.DataSource = rewardSorts; - this.gvRewardSort.DataBind(); - } + //private void GetRewardSort() + //{ + // List rewardNoticeList = BLL.IncentiveNoticeService.GetIncentiveNoticeListsByDate(startTime, endTime, this.ProjectId); + // if (rewardNoticeList.Count > 0) + // { + // int i = 0; + // foreach (Model.Check_IncentiveNotice r in rewardNoticeList) + // { + // Model.Manager_IncentiveSortC rewardSort = new Model.Manager_IncentiveSortC + // { + // IncentiveSortId = SQLHelper.GetNewID(typeof(Model.Manager_IncentiveSortC)), + // SortIndex = i, + // BigType = "1" + // }; + // Model.Base_Unit u = BLL.UnitService.GetUnitByUnitId(r.UnitId); + // if (u != null) + // { + // rewardSort.IncentiveUnit = u.UnitName; + // } + // rewardSort.IncentiveType = "现金"; + // if (r.IncentiveDate != null) + // { + // rewardSort.IncentiveDate = string.Format("{0:yyyy-MM-dd}", r.IncentiveDate); + // } + // if (r.IncentiveMoney != null) + // { + // rewardSort.IncentiveMoney = Convert.ToInt32(r.IncentiveMoney); + // } + // rewardSorts.Add(rewardSort); + // i++; + // } + // } + // this.gvRewardSort.DataSource = rewardSorts; + // this.gvRewardSort.DataBind(); + //} /// /// 增加HSE奖励 /// /// /// - protected void btnNewRewardSort_Click(object sender, EventArgs e) - { - jerqueSaveRewardList(); - Model.Manager_IncentiveSortC rewardSort = new Model.Manager_IncentiveSortC - { - IncentiveSortId = SQLHelper.GetNewID(typeof(Model.Manager_IncentiveSortC)) - }; - rewardSorts.Add(rewardSort); - this.gvRewardSort.DataSource = rewardSorts; - this.gvRewardSort.DataBind(); - } + //protected void btnNewRewardSort_Click(object sender, EventArgs e) + //{ + // jerqueSaveRewardList(); + // Model.Manager_IncentiveSortC rewardSort = new Model.Manager_IncentiveSortC + // { + // IncentiveSortId = SQLHelper.GetNewID(typeof(Model.Manager_IncentiveSortC)) + // }; + // rewardSorts.Add(rewardSort); + // this.gvRewardSort.DataSource = rewardSorts; + // this.gvRewardSort.DataBind(); + //} /// /// 检查并保存HSE奖励集合 /// - private void jerqueSaveRewardList() - { - rewardSorts.Clear(); - JArray mergedData = gvRewardSort.GetMergedData(); - foreach (JObject mergedRow in mergedData) - { - string status = mergedRow.Value("status"); - JObject values = mergedRow.Value("values"); - int i = mergedRow.Value("index"); - Model.Manager_IncentiveSortC rewardSort = new Model.Manager_IncentiveSortC - { - IncentiveSortId = this.gvRewardSort.Rows[i].DataKeys[0].ToString(), - SortIndex = i, - BigType = "1", - IncentiveUnit = values.Value("IncentiveUnit").ToString(), - IncentiveType = values.Value("IncentiveType").ToString(), - IncentiveDate = values.Value("IncentiveDate").ToString(), - IncentiveMoney = Funs.GetNewIntOrZero(values.Value("IncentiveMoney").ToString()) - }; - rewardSorts.Add(rewardSort); - } - } + //private void jerqueSaveRewardList() + //{ + // rewardSorts.Clear(); + // JArray mergedData = gvRewardSort.GetMergedData(); + // foreach (JObject mergedRow in mergedData) + // { + // string status = mergedRow.Value("status"); + // JObject values = mergedRow.Value("values"); + // int i = mergedRow.Value("index"); + // Model.Manager_IncentiveSortC rewardSort = new Model.Manager_IncentiveSortC + // { + // IncentiveSortId = this.gvRewardSort.Rows[i].DataKeys[0].ToString(), + // SortIndex = i, + // BigType = "1", + // IncentiveUnit = values.Value("IncentiveUnit").ToString(), + // IncentiveType = values.Value("IncentiveType").ToString(), + // IncentiveDate = values.Value("IncentiveDate").ToString(), + // IncentiveMoney = Funs.GetNewIntOrZero(values.Value("IncentiveMoney").ToString()) + // }; + // rewardSorts.Add(rewardSort); + // } + //} - protected void gvRewardSort_RowCommand(object sender, GridCommandEventArgs e) - { - jerqueSaveRewardList(); - string rowID = this.gvRewardSort.DataKeys[e.RowIndex][0].ToString(); - if (e.CommandName == "Delete") - { - foreach (var item in rewardSorts) - { - if (item.IncentiveSortId == rowID) - { - rewardSorts.Remove(item); - break; - } - } - gvRewardSort.DataSource = rewardSorts; - gvRewardSort.DataBind(); - ShowNotify("删除数据成功!", MessageBoxIcon.Success); - } - } + //protected void gvRewardSort_RowCommand(object sender, GridCommandEventArgs e) + //{ + // jerqueSaveRewardList(); + // string rowID = this.gvRewardSort.DataKeys[e.RowIndex][0].ToString(); + // if (e.CommandName == "Delete") + // { + // foreach (var item in rewardSorts) + // { + // if (item.IncentiveSortId == rowID) + // { + // rewardSorts.Remove(item); + // break; + // } + // } + // gvRewardSort.DataSource = rewardSorts; + // gvRewardSort.DataBind(); + // ShowNotify("删除数据成功!", MessageBoxIcon.Success); + // } + //} #endregion #region HSE处罚 /// /// 显示月报告HSE处罚情况 /// - private void GetPunishSort() - { - List punishNoticeList = BLL.PunishNoticeService.GetPunishNoticeListsByDate(startTime, endTime, this.ProjectId); - if (punishNoticeList.Count > 0) - { - int i = 0; - foreach (Model.Check_PunishNotice p in punishNoticeList) - { - Model.Manager_IncentiveSortC punishSort = new Model.Manager_IncentiveSortC - { - IncentiveSortId = SQLHelper.GetNewID(typeof(Model.Manager_IncentiveSortC)), - SortIndex = i, - BigType = "2" - }; - Model.Base_Unit u = BLL.UnitService.GetUnitByUnitId(p.UnitId); - if (u != null) - { - punishSort.IncentiveUnit = u.UnitName; - } - if (p.PunishNoticeDate != null) - { - punishSort.IncentiveDate = string.Format("{0:yyyy-MM-dd}", p.PunishNoticeDate); - } - if (p.PunishMoney != null) - { - punishSort.IncentiveMoney = Convert.ToInt32(p.PunishMoney); - } - punishSort.IncentiveReason = p.IncentiveReason; - punishSort.IncentiveBasis = p.BasicItem; - punishSorts.Add(punishSort); - i++; - } - } - this.gvPunishSort.DataSource = punishSorts; - this.gvPunishSort.DataBind(); - } + //private void GetPunishSort() + //{ + // List punishNoticeList = BLL.PunishNoticeService.GetPunishNoticeListsByDate(startTime, endTime, this.ProjectId); + // if (punishNoticeList.Count > 0) + // { + // int i = 0; + // foreach (Model.Check_PunishNotice p in punishNoticeList) + // { + // Model.Manager_IncentiveSortC punishSort = new Model.Manager_IncentiveSortC + // { + // IncentiveSortId = SQLHelper.GetNewID(typeof(Model.Manager_IncentiveSortC)), + // SortIndex = i, + // BigType = "2" + // }; + // Model.Base_Unit u = BLL.UnitService.GetUnitByUnitId(p.UnitId); + // if (u != null) + // { + // punishSort.IncentiveUnit = u.UnitName; + // } + // if (p.PunishNoticeDate != null) + // { + // punishSort.IncentiveDate = string.Format("{0:yyyy-MM-dd}", p.PunishNoticeDate); + // } + // if (p.PunishMoney != null) + // { + // punishSort.IncentiveMoney = Convert.ToInt32(p.PunishMoney); + // } + // punishSort.IncentiveReason = p.IncentiveReason; + // punishSort.IncentiveBasis = p.BasicItem; + // punishSorts.Add(punishSort); + // i++; + // } + // } + // this.gvPunishSort.DataSource = punishSorts; + // this.gvPunishSort.DataBind(); + //} /// /// 增加HSE处罚 /// /// /// - protected void btnNewPunishSort_Click(object sender, EventArgs e) - { - jerqueSavePunishList(); - Model.Manager_IncentiveSortC punishSort = new Model.Manager_IncentiveSortC - { - IncentiveSortId = SQLHelper.GetNewID(typeof(Model.Manager_IncentiveSortC)) - }; - punishSorts.Add(punishSort); - this.gvPunishSort.DataSource = punishSorts; - this.gvPunishSort.DataBind(); - } + //protected void btnNewPunishSort_Click(object sender, EventArgs e) + //{ + // jerqueSavePunishList(); + // Model.Manager_IncentiveSortC punishSort = new Model.Manager_IncentiveSortC + // { + // IncentiveSortId = SQLHelper.GetNewID(typeof(Model.Manager_IncentiveSortC)) + // }; + // punishSorts.Add(punishSort); + // this.gvPunishSort.DataSource = punishSorts; + // this.gvPunishSort.DataBind(); + //} /// /// 检查并保存HSE处罚集合 /// + //private void jerqueSavePunishList() + //{ + // punishSorts.Clear(); + // JArray mergedData = gvPunishSort.GetMergedData(); + // foreach (JObject mergedRow in mergedData) + // { + // string status = mergedRow.Value("status"); + // JObject values = mergedRow.Value("values"); + // int i = mergedRow.Value("index"); + // Model.Manager_IncentiveSortC punishSort = new Model.Manager_IncentiveSortC + // { + // IncentiveSortId = this.gvPunishSort.Rows[i].DataKeys[0].ToString(), + // SortIndex = i, + // BigType = "2", + // IncentiveUnit = values.Value("IncentiveUnit").ToString(), + // IncentiveDate = values.Value("IncentiveDate").ToString(), + // IncentiveMoney = Funs.GetNewIntOrZero(values.Value("IncentiveMoney").ToString()), + // IncentiveReason = values.Value("IncentiveReason").ToString(), + // IncentiveBasis = values.Value("IncentiveBasis").ToString() + // }; + // punishSorts.Add(punishSort); + // } + //} + + //protected void gvPunishSort_RowCommand(object sender, GridCommandEventArgs e) + //{ + // jerqueSavePunishList(); + // string rowID = this.gvPunishSort.DataKeys[e.RowIndex][0].ToString(); + // if (e.CommandName == "Delete") + // { + // foreach (var item in punishSorts) + // { + // if (item.IncentiveSortId == rowID) + // { + // punishSorts.Remove(item); + // break; + // } + // } + // gvPunishSort.DataSource = punishSorts; + // gvPunishSort.DataBind(); + // ShowNotify("删除数据成功!", MessageBoxIcon.Success); + // } + //} + #endregion + + #region HSE奖励与处罚 + private void GetRewardAndPunishSort() + { + Model.Manager_RewardAndPunishSortC sortC = new Model.Manager_RewardAndPunishSortC + { + RewardAndPunishId = SQLHelper.GetNewID(typeof(Model.Manager_RewardAndPunishSortC)), + RewardNum = BLL.IncentiveNoticeService.GetCountByDate(startTime, endTime, this.ProjectId), + RewardMoney = BLL.IncentiveNoticeService.GetSumMoneyByDate(startTime, endTime, this.ProjectId), + ProjectRewardMoney = BLL.IncentiveNoticeService.GetSumMoneyByDate(projectStartTime, endTime, this.ProjectId), + PunishNum = BLL.PunishNoticeService.GetCountByDate(startTime, endTime, this.ProjectId), + PunishMoney = BLL.PunishNoticeService.GetSumMoneyByDate(startTime, endTime, this.ProjectId), + ProjectPunishMoney = BLL.PunishNoticeService.GetSumMoneyByDate(projectStartTime, endTime, this.ProjectId), + }; + rewardAndPunishSortCs.Add(sortC); + + this.gvRewardSortAndPunish.DataSource = rewardAndPunishSortCs; + this.gvRewardSortAndPunish.DataBind(); + } + private void jerqueSavePunishList() { - punishSorts.Clear(); - JArray mergedData = gvPunishSort.GetMergedData(); + rewardAndPunishSortCs.Clear(); + JArray mergedData = gvRewardSortAndPunish.GetMergedData(); foreach (JObject mergedRow in mergedData) { string status = mergedRow.Value("status"); JObject values = mergedRow.Value("values"); int i = mergedRow.Value("index"); - Model.Manager_IncentiveSortC punishSort = new Model.Manager_IncentiveSortC + Model.Manager_RewardAndPunishSortC punishSort = new Model.Manager_RewardAndPunishSortC { - IncentiveSortId = this.gvPunishSort.Rows[i].DataKeys[0].ToString(), - SortIndex = i, - BigType = "2", - IncentiveUnit = values.Value("IncentiveUnit").ToString(), - IncentiveDate = values.Value("IncentiveDate").ToString(), - IncentiveMoney = Funs.GetNewIntOrZero(values.Value("IncentiveMoney").ToString()), - IncentiveReason = values.Value("IncentiveReason").ToString(), - IncentiveBasis = values.Value("IncentiveBasis").ToString() + RewardAndPunishId = this.gvRewardSortAndPunish.Rows[i].DataKeys[0].ToString(), + RewardNum = Funs.GetNewInt(values.Value("RewardNum").ToString()), + RewardMoney = Funs.GetNewDecimal(values.Value("RewardMoney").ToString()), + ProjectRewardMoney = Funs.GetNewDecimal(values.Value("ProjectRewardMoney").ToString()), + PunishNum = Funs.GetNewInt(values.Value("PunishNum").ToString()), + PunishMoney = Funs.GetNewDecimal(values.Value("PunishMoney").ToString()), + ProjectPunishMoney = Funs.GetNewDecimal(values.Value("ProjectPunishMoney").ToString()) }; - punishSorts.Add(punishSort); - } - } - - protected void gvPunishSort_RowCommand(object sender, GridCommandEventArgs e) - { - jerqueSavePunishList(); - string rowID = this.gvPunishSort.DataKeys[e.RowIndex][0].ToString(); - if (e.CommandName == "Delete") - { - foreach (var item in punishSorts) - { - if (item.IncentiveSortId == rowID) - { - punishSorts.Remove(item); - break; - } - } - gvPunishSort.DataSource = punishSorts; - gvPunishSort.DataBind(); - ShowNotify("删除数据成功!", MessageBoxIcon.Success); + rewardAndPunishSortCs.Add(punishSort); } } #endregion @@ -1526,96 +1724,97 @@ namespace FineUIPro.Web.HSSE.Manager Model.Manager_MonthReportC oldMonthReport = BLL.MonthReportCService.GetMonthReportByMonths(Convert.ToDateTime(Request.Params["months"]), this.CurrUser.LoginProjectId); if (oldMonthReport != null) { - oldMonthReport.MainActivitiesDef = this.txtMainActivitiesDef.Text.Trim(); - if (!string.IsNullOrEmpty(this.txtMeetingNum.Text.Trim())) - { - oldMonthReport.MeetingNum = Convert.ToInt32(this.txtMeetingNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtYearMeetingNum.Text.Trim())) - { - oldMonthReport.YearMeetingNum = Convert.ToInt32(this.txtYearMeetingNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtComplexEmergencyNum.Text.Trim())) - { - oldMonthReport.ComplexEmergencyNum = Convert.ToInt32(this.txtComplexEmergencyNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtYearComplexEmergencyNum.Text.Trim())) - { - oldMonthReport.YearComplexEmergencyNum = Convert.ToInt32(this.txtYearComplexEmergencyNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtTotalComplexEmergencyNum.Text.Trim())) - { - oldMonthReport.TotalComplexEmergencyNum = Convert.ToInt32(this.txtTotalComplexEmergencyNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtSpecialEmergencyNum.Text.Trim())) - { - oldMonthReport.SpecialEmergencyNum = Convert.ToInt32(this.txtSpecialEmergencyNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtYearSpecialEmergencyNum.Text.Trim())) - { - oldMonthReport.YearSpecialEmergencyNum = Convert.ToInt32(this.txtYearSpecialEmergencyNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtTotalSpecialEmergencyNum.Text.Trim())) - { - oldMonthReport.TotalSpecialEmergencyNum = Convert.ToInt32(this.txtTotalSpecialEmergencyNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtDrillRecordNum.Text.Trim())) - { - oldMonthReport.DrillRecordNum = Convert.ToInt32(this.txtDrillRecordNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtYearDrillRecordNum.Text.Trim())) - { - oldMonthReport.YearDrillRecordNum = Convert.ToInt32(this.txtYearDrillRecordNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtTotalDrillRecordNum.Text.Trim())) - { - oldMonthReport.TotalDrillRecordNum = Convert.ToInt32(this.txtTotalDrillRecordNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtRewardNum.Text.Trim())) - { - oldMonthReport.RewardNum = Convert.ToInt32(this.txtRewardNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtYearRewardNum.Text.Trim())) - { - oldMonthReport.YearRewardNum = Convert.ToInt32(this.txtYearRewardNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtRewardMoney.Text.Trim())) - { - oldMonthReport.RewardMoney = Convert.ToInt32(this.txtRewardMoney.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtYearRewardMoney.Text.Trim())) - { - oldMonthReport.YearRewardMoney = Convert.ToInt32(this.txtYearRewardMoney.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtPunishNum.Text.Trim())) - { - oldMonthReport.PunishNum = Convert.ToInt32(this.txtPunishNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtYearPunishNum.Text.Trim())) - { - oldMonthReport.YearPunishNum = Convert.ToInt32(this.txtYearPunishNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtPunishMoney.Text.Trim())) - { - oldMonthReport.PunishMoney = Convert.ToInt32(this.txtPunishMoney.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtYearPunishMoney.Text.Trim())) - { - oldMonthReport.YearPunishMoney = Convert.ToInt32(this.txtYearPunishMoney.Text.Trim()); - } - oldMonthReport.LicenseRemark = this.txtLicenseRemark.Text.Trim(); - oldMonthReport.EmergencyManagementWorkDef = this.txtEmergencyManagementWorkDef.Text.Trim(); - oldMonthReport.EquipmentRemark = this.txtEquipmentRemark.Text.Trim(); + //oldMonthReport.MainActivitiesDef = this.txtMainActivitiesDef.Text.Trim(); + //if (!string.IsNullOrEmpty(this.txtMeetingNum.Text.Trim())) + //{ + // oldMonthReport.MeetingNum = Convert.ToInt32(this.txtMeetingNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtYearMeetingNum.Text.Trim())) + //{ + // oldMonthReport.YearMeetingNum = Convert.ToInt32(this.txtYearMeetingNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtComplexEmergencyNum.Text.Trim())) + //{ + // oldMonthReport.ComplexEmergencyNum = Convert.ToInt32(this.txtComplexEmergencyNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtYearComplexEmergencyNum.Text.Trim())) + //{ + // oldMonthReport.YearComplexEmergencyNum = Convert.ToInt32(this.txtYearComplexEmergencyNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtTotalComplexEmergencyNum.Text.Trim())) + //{ + // oldMonthReport.TotalComplexEmergencyNum = Convert.ToInt32(this.txtTotalComplexEmergencyNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtSpecialEmergencyNum.Text.Trim())) + //{ + // oldMonthReport.SpecialEmergencyNum = Convert.ToInt32(this.txtSpecialEmergencyNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtYearSpecialEmergencyNum.Text.Trim())) + //{ + // oldMonthReport.YearSpecialEmergencyNum = Convert.ToInt32(this.txtYearSpecialEmergencyNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtTotalSpecialEmergencyNum.Text.Trim())) + //{ + // oldMonthReport.TotalSpecialEmergencyNum = Convert.ToInt32(this.txtTotalSpecialEmergencyNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtDrillRecordNum.Text.Trim())) + //{ + // oldMonthReport.DrillRecordNum = Convert.ToInt32(this.txtDrillRecordNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtYearDrillRecordNum.Text.Trim())) + //{ + // oldMonthReport.YearDrillRecordNum = Convert.ToInt32(this.txtYearDrillRecordNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtTotalDrillRecordNum.Text.Trim())) + //{ + // oldMonthReport.TotalDrillRecordNum = Convert.ToInt32(this.txtTotalDrillRecordNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtRewardNum.Text.Trim())) + //{ + // oldMonthReport.RewardNum = Convert.ToInt32(this.txtRewardNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtYearRewardNum.Text.Trim())) + //{ + // oldMonthReport.YearRewardNum = Convert.ToInt32(this.txtYearRewardNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtRewardMoney.Text.Trim())) + //{ + // oldMonthReport.RewardMoney = Convert.ToInt32(this.txtRewardMoney.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtYearRewardMoney.Text.Trim())) + //{ + // oldMonthReport.YearRewardMoney = Convert.ToInt32(this.txtYearRewardMoney.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtPunishNum.Text.Trim())) + //{ + // oldMonthReport.PunishNum = Convert.ToInt32(this.txtPunishNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtYearPunishNum.Text.Trim())) + //{ + // oldMonthReport.YearPunishNum = Convert.ToInt32(this.txtYearPunishNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtPunishMoney.Text.Trim())) + //{ + // oldMonthReport.PunishMoney = Convert.ToInt32(this.txtPunishMoney.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtYearPunishMoney.Text.Trim())) + //{ + // oldMonthReport.YearPunishMoney = Convert.ToInt32(this.txtYearPunishMoney.Text.Trim()); + //} + oldMonthReport.LicenseRemark = this.txtWorkDef.Text.Trim();//应急演练工作情况说明 + oldMonthReport.EmergencyManagementWorkDef = this.txtEmergencyManagementWorkDef.Text.Trim();//其他应急管理工作描述(本月如有) + //oldMonthReport.EquipmentRemark = this.txtEquipmentRemark.Text.Trim(); BLL.MonthReportCService.UpdateMonthReport(oldMonthReport); - OperateHazardSort(MonthReportId); + //OperateHazardSort(MonthReportId); OperateTrainSort(MonthReportId); - OperateTrainActivitySort(MonthReportId); + //OperateTrainActivitySort(MonthReportId); OperateCheckSort(MonthReportId); - OperateCheckDetailSort(MonthReportId); - OperateMeetingSort(MonthReportId); - BLL.IncentiveSortCService.DeleteIncentiveSortsByMonthReportId(MonthReportId); - OperateRewardSort(MonthReportId); - OperatePunishSort(MonthReportId); + //OperateCheckDetailSort(MonthReportId); + //OperateMeetingSort(MonthReportId); + //BLL.IncentiveSortCService.DeleteIncentiveSortsByMonthReportId(MonthReportId); + //OperateRewardSort(MonthReportId); + //OperatePunishSort(MonthReportId); + OperateRewardAndPunishSort(MonthReportId); OperateOtherManagementSort(MonthReportId); BLL.LogService.AddSys_Log(this.CurrUser, oldMonthReport.MonthReportCode, oldMonthReport.MonthReportId, BLL.Const.ProjectManagerMonthCMenuId, BLL.Const.BtnModify); } @@ -1630,96 +1829,97 @@ namespace FineUIPro.Web.HSSE.Manager monthReport.Months = Funs.GetNewDateTime(Request.Params["months"]); monthReport.ReportMan = this.CurrUser.UserId; monthReport.MonthReportDate = DateTime.Now; - monthReport.MainActivitiesDef = this.txtMainActivitiesDef.Text.Trim(); - if (!string.IsNullOrEmpty(this.txtMeetingNum.Text.Trim())) - { - monthReport.MeetingNum = Convert.ToInt32(this.txtMeetingNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtYearMeetingNum.Text.Trim())) - { - monthReport.YearMeetingNum = Convert.ToInt32(this.txtYearMeetingNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtComplexEmergencyNum.Text.Trim())) - { - monthReport.ComplexEmergencyNum = Convert.ToInt32(this.txtComplexEmergencyNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtYearComplexEmergencyNum.Text.Trim())) - { - monthReport.YearComplexEmergencyNum = Convert.ToInt32(this.txtYearComplexEmergencyNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtTotalComplexEmergencyNum.Text.Trim())) - { - monthReport.TotalComplexEmergencyNum = Convert.ToInt32(this.txtTotalComplexEmergencyNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtSpecialEmergencyNum.Text.Trim())) - { - monthReport.SpecialEmergencyNum = Convert.ToInt32(this.txtSpecialEmergencyNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtYearSpecialEmergencyNum.Text.Trim())) - { - monthReport.YearSpecialEmergencyNum = Convert.ToInt32(this.txtYearSpecialEmergencyNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtTotalSpecialEmergencyNum.Text.Trim())) - { - monthReport.TotalSpecialEmergencyNum = Convert.ToInt32(this.txtTotalSpecialEmergencyNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtDrillRecordNum.Text.Trim())) - { - monthReport.DrillRecordNum = Convert.ToInt32(this.txtDrillRecordNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtYearDrillRecordNum.Text.Trim())) - { - monthReport.YearDrillRecordNum = Convert.ToInt32(this.txtYearDrillRecordNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtTotalDrillRecordNum.Text.Trim())) - { - monthReport.TotalDrillRecordNum = Convert.ToInt32(this.txtTotalDrillRecordNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtRewardNum.Text.Trim())) - { - monthReport.RewardNum = Convert.ToInt32(this.txtRewardNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtYearRewardNum.Text.Trim())) - { - monthReport.YearRewardNum = Convert.ToInt32(this.txtYearRewardNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtRewardMoney.Text.Trim())) - { - monthReport.RewardMoney = Convert.ToInt32(this.txtRewardMoney.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtYearRewardMoney.Text.Trim())) - { - monthReport.YearRewardMoney = Convert.ToInt32(this.txtYearRewardMoney.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtPunishNum.Text.Trim())) - { - monthReport.PunishNum = Convert.ToInt32(this.txtPunishNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtYearPunishNum.Text.Trim())) - { - monthReport.YearPunishNum = Convert.ToInt32(this.txtYearPunishNum.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtPunishMoney.Text.Trim())) - { - monthReport.PunishMoney = Convert.ToInt32(this.txtPunishMoney.Text.Trim()); - } - if (!string.IsNullOrEmpty(this.txtYearPunishMoney.Text.Trim())) - { - monthReport.YearPunishMoney = Convert.ToInt32(this.txtYearPunishMoney.Text.Trim()); - } - monthReport.EmergencyManagementWorkDef = this.txtEmergencyManagementWorkDef.Text.Trim(); - monthReport.LicenseRemark = this.txtLicenseRemark.Text.Trim(); - monthReport.EquipmentRemark = this.txtEquipmentRemark.Text.Trim(); + //monthReport.MainActivitiesDef = this.txtMainActivitiesDef.Text.Trim(); + //if (!string.IsNullOrEmpty(this.txtMeetingNum.Text.Trim())) + //{ + // monthReport.MeetingNum = Convert.ToInt32(this.txtMeetingNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtYearMeetingNum.Text.Trim())) + //{ + // monthReport.YearMeetingNum = Convert.ToInt32(this.txtYearMeetingNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtComplexEmergencyNum.Text.Trim())) + //{ + // monthReport.ComplexEmergencyNum = Convert.ToInt32(this.txtComplexEmergencyNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtYearComplexEmergencyNum.Text.Trim())) + //{ + // monthReport.YearComplexEmergencyNum = Convert.ToInt32(this.txtYearComplexEmergencyNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtTotalComplexEmergencyNum.Text.Trim())) + //{ + // monthReport.TotalComplexEmergencyNum = Convert.ToInt32(this.txtTotalComplexEmergencyNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtSpecialEmergencyNum.Text.Trim())) + //{ + // monthReport.SpecialEmergencyNum = Convert.ToInt32(this.txtSpecialEmergencyNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtYearSpecialEmergencyNum.Text.Trim())) + //{ + // monthReport.YearSpecialEmergencyNum = Convert.ToInt32(this.txtYearSpecialEmergencyNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtTotalSpecialEmergencyNum.Text.Trim())) + //{ + // monthReport.TotalSpecialEmergencyNum = Convert.ToInt32(this.txtTotalSpecialEmergencyNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtDrillRecordNum.Text.Trim())) + //{ + // monthReport.DrillRecordNum = Convert.ToInt32(this.txtDrillRecordNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtYearDrillRecordNum.Text.Trim())) + //{ + // monthReport.YearDrillRecordNum = Convert.ToInt32(this.txtYearDrillRecordNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtTotalDrillRecordNum.Text.Trim())) + //{ + // monthReport.TotalDrillRecordNum = Convert.ToInt32(this.txtTotalDrillRecordNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtRewardNum.Text.Trim())) + //{ + // monthReport.RewardNum = Convert.ToInt32(this.txtRewardNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtYearRewardNum.Text.Trim())) + //{ + // monthReport.YearRewardNum = Convert.ToInt32(this.txtYearRewardNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtRewardMoney.Text.Trim())) + //{ + // monthReport.RewardMoney = Convert.ToInt32(this.txtRewardMoney.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtYearRewardMoney.Text.Trim())) + //{ + // monthReport.YearRewardMoney = Convert.ToInt32(this.txtYearRewardMoney.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtPunishNum.Text.Trim())) + //{ + // monthReport.PunishNum = Convert.ToInt32(this.txtPunishNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtYearPunishNum.Text.Trim())) + //{ + // monthReport.YearPunishNum = Convert.ToInt32(this.txtYearPunishNum.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtPunishMoney.Text.Trim())) + //{ + // monthReport.PunishMoney = Convert.ToInt32(this.txtPunishMoney.Text.Trim()); + //} + //if (!string.IsNullOrEmpty(this.txtYearPunishMoney.Text.Trim())) + //{ + // monthReport.YearPunishMoney = Convert.ToInt32(this.txtYearPunishMoney.Text.Trim()); + //} + monthReport.EmergencyManagementWorkDef = this.txtEmergencyManagementWorkDef.Text.Trim();//其他应急管理工作描述(本月如有) + monthReport.LicenseRemark = this.txtWorkDef.Text.Trim();//应急演练工作情况说明 + //monthReport.EquipmentRemark = this.txtEquipmentRemark.Text.Trim(); BLL.MonthReportCService.AddMonthReport(monthReport); - OperateHazardSort(newKeyID); + //OperateHazardSort(newKeyID); OperateTrainSort(newKeyID); - OperateTrainActivitySort(newKeyID); + //OperateTrainActivitySort(newKeyID); OperateCheckSort(newKeyID); - OperateCheckDetailSort(newKeyID); - OperateMeetingSort(newKeyID); - BLL.IncentiveSortCService.DeleteIncentiveSortsByMonthReportId(newKeyID); - OperateRewardSort(newKeyID); - OperatePunishSort(newKeyID); + //OperateCheckDetailSort(newKeyID); + //OperateMeetingSort(newKeyID); + //BLL.IncentiveSortCService.DeleteIncentiveSortsByMonthReportId(newKeyID); + //OperateRewardSort(newKeyID); + //OperatePunishSort(newKeyID); + OperateRewardAndPunishSort(newKeyID); OperateOtherManagementSort(newKeyID); BLL.LogService.AddSys_Log(this.CurrUser, monthReport.MonthReportCode, monthReport.MonthReportId, BLL.Const.ProjectManagerMonthCMenuId, BLL.Const.BtnAdd); } @@ -1730,16 +1930,16 @@ namespace FineUIPro.Web.HSSE.Manager /// /// 操作月报告危险源情况 /// - private void OperateHazardSort(string monthReportId) - { - BLL.HazardSortCService.DeleteHazardSortsByMonthReportId(monthReportId); - jerqueSaveHazardList(); - foreach (Model.Manager_HazardSortC hazardSort in hazardSorts) - { - hazardSort.MonthReportId = monthReportId; - BLL.HazardSortCService.AddHazardSort(hazardSort); - } - } + //private void OperateHazardSort(string monthReportId) + //{ + // BLL.HazardSortCService.DeleteHazardSortsByMonthReportId(monthReportId); + // jerqueSaveHazardList(); + // foreach (Model.Manager_HazardSortC hazardSort in hazardSorts) + // { + // hazardSort.MonthReportId = monthReportId; + // BLL.HazardSortCService.AddHazardSort(hazardSort); + // } + //} /// /// 操作月报告HSE培训情况 @@ -1758,16 +1958,16 @@ namespace FineUIPro.Web.HSSE.Manager /// /// 操作月报告HSE培训活动情况 /// - private void OperateTrainActivitySort(string monthReportId) - { - BLL.TrainActivitySortCService.DeleteTrainActivitySortsByMonthReportId(monthReportId); - jerqueSaveTrainActivityList(); - foreach (Model.Manager_TrainActivitySortC trainActivitySort in trainActivitySorts) - { - trainActivitySort.MonthReportId = monthReportId; - BLL.TrainActivitySortCService.AddTrainActivitySort(trainActivitySort); - } - } + //private void OperateTrainActivitySort(string monthReportId) + //{ + // BLL.TrainActivitySortCService.DeleteTrainActivitySortsByMonthReportId(monthReportId); + // jerqueSaveTrainActivityList(); + // foreach (Model.Manager_TrainActivitySortC trainActivitySort in trainActivitySorts) + // { + // trainActivitySort.MonthReportId = monthReportId; + // BLL.TrainActivitySortCService.AddTrainActivitySort(trainActivitySort); + // } + //} /// /// 操作月报告HSE检查情况 @@ -1786,54 +1986,66 @@ namespace FineUIPro.Web.HSSE.Manager /// /// 操作月报告HSE检查明细情况 /// - private void OperateCheckDetailSort(string monthReportId) - { - BLL.CheckDetailSortCService.DeleteCheckDetailSortsByMonthReportId(monthReportId); - jerqueSaveCheckDetailList(); - foreach (Model.Manager_CheckDetailSortC checkDetailSort in checkDetailSorts) - { - checkDetailSort.MonthReportId = monthReportId; - BLL.CheckDetailSortCService.AddCheckDetailSort(checkDetailSort); - } - } + //private void OperateCheckDetailSort(string monthReportId) + //{ + // BLL.CheckDetailSortCService.DeleteCheckDetailSortsByMonthReportId(monthReportId); + // jerqueSaveCheckDetailList(); + // foreach (Model.Manager_CheckDetailSortC checkDetailSort in checkDetailSorts) + // { + // checkDetailSort.MonthReportId = monthReportId; + // BLL.CheckDetailSortCService.AddCheckDetailSort(checkDetailSort); + // } + //} /// /// 操作月报告HSE会议情况 /// - private void OperateMeetingSort(string monthReportId) - { - BLL.MeetingSortCService.DeleteMeetingSortsByMonthReportId(monthReportId); - jerqueSaveMeetingList(); - foreach (Model.Manager_MeetingSortC meetingSort in meetingSorts) - { - meetingSort.MonthReportId = monthReportId; - BLL.MeetingSortCService.AddMeetingSort(meetingSort); - } - } + //private void OperateMeetingSort(string monthReportId) + //{ + // BLL.MeetingSortCService.DeleteMeetingSortsByMonthReportId(monthReportId); + // jerqueSaveMeetingList(); + // foreach (Model.Manager_MeetingSortC meetingSort in meetingSorts) + // { + // meetingSort.MonthReportId = monthReportId; + // BLL.MeetingSortCService.AddMeetingSort(meetingSort); + // } + //} /// /// 操作月报告HSE奖励情况 /// - private void OperateRewardSort(string monthReportId) - { - jerqueSaveRewardList(); - foreach (Model.Manager_IncentiveSortC rewardSort in rewardSorts) - { - rewardSort.MonthReportId = monthReportId; - BLL.IncentiveSortCService.AddIncentiveSort(rewardSort); - } - } + //private void OperateRewardSort(string monthReportId) + //{ + // jerqueSaveRewardList(); + // foreach (Model.Manager_IncentiveSortC rewardSort in rewardSorts) + // { + // rewardSort.MonthReportId = monthReportId; + // BLL.IncentiveSortCService.AddIncentiveSort(rewardSort); + // } + //} /// /// 操作月报告HSE处罚情况 /// - private void OperatePunishSort(string monthReportId) + //private void OperatePunishSort(string monthReportId) + //{ + // jerqueSavePunishList(); + // foreach (Model.Manager_IncentiveSortC punishSort in punishSorts) + // { + // punishSort.MonthReportId = monthReportId; + // BLL.IncentiveSortCService.AddIncentiveSort(punishSort); + // } + //} + + /// + private void OperateRewardAndPunishSort(string monthReportId) { + BLL.RewardAndPunishSortCService.DeleteRewardAndPunishSortCByMonthReportId(monthReportId); jerqueSavePunishList(); - foreach (Model.Manager_IncentiveSortC punishSort in punishSorts) + foreach (Model.Manager_RewardAndPunishSortC rewardAndPunishSortC in rewardAndPunishSortCs) { - punishSort.MonthReportId = monthReportId; - BLL.IncentiveSortCService.AddIncentiveSort(punishSort); + rewardAndPunishSortC.MonthReportId = monthReportId; + BLL.RewardAndPunishSortCService.AddRewardAndPunishSortC(rewardAndPunishSortC); } } diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit4.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit4.aspx.designer.cs index 4cbb293f..7aec52c3 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit4.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit4.aspx.designer.cs @@ -48,33 +48,6 @@ namespace FineUIPro.Web.HSSE.Manager { /// protected global::FineUIPro.GroupPanel GroupPanel11; - /// - /// GroupPanel12 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.GroupPanel GroupPanel12; - - /// - /// Form2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Form Form2; - - /// - /// txtMainActivitiesDef 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextArea txtMainActivitiesDef; - /// /// GroupPanel1 控件。 /// @@ -84,87 +57,6 @@ namespace FineUIPro.Web.HSSE.Manager { /// protected global::FineUIPro.GroupPanel GroupPanel1; - /// - /// gvHazardSort 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Grid gvHazardSort; - - /// - /// Toolbar2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Toolbar Toolbar2; - - /// - /// btnNewHazardSort 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnNewHazardSort; - - /// - /// txtHazardName 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtHazardName; - - /// - /// txtUnitAndArea 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtUnitAndArea; - - /// - /// txtStationDef 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtStationDef; - - /// - /// txtHandleWay 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtHandleWay; - - /// - /// GroupPanel2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.GroupPanel GroupPanel2; - - /// - /// GroupPanel3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.GroupPanel GroupPanel3; - /// /// gvTrainSort 控件。 /// @@ -175,31 +67,13 @@ namespace FineUIPro.Web.HSSE.Manager { protected global::FineUIPro.Grid gvTrainSort; /// - /// Toolbar3 控件。 + /// txtTrainType 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Toolbar Toolbar3; - - /// - /// btnNewTrainSort 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnNewTrainSort; - - /// - /// txtTrainContent 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtTrainContent; + protected global::FineUIPro.TextBox txtTrainType; /// /// nbTeachHour 控件。 @@ -210,15 +84,6 @@ namespace FineUIPro.Web.HSSE.Manager { /// protected global::FineUIPro.NumberBox nbTeachHour; - /// - /// txtTeachMan 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtTeachMan; - /// /// TextBox4 控件。 /// @@ -238,85 +103,22 @@ namespace FineUIPro.Web.HSSE.Manager { protected global::FineUIPro.NumberBox nbPersonNum; /// - /// GroupPanel4 控件。 + /// NumberBox1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.GroupPanel GroupPanel4; + protected global::FineUIPro.NumberBox NumberBox1; /// - /// gvTrainActivitySort 控件。 + /// GroupPanel2 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Grid gvTrainActivitySort; - - /// - /// Toolbar4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Toolbar Toolbar4; - - /// - /// btnNewTrainActivitySort 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnNewTrainActivitySort; - - /// - /// txtActivityName 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtActivityName; - - /// - /// txtTrainDate 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtTrainDate; - - /// - /// txtTrainEffect 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtTrainEffect; - - /// - /// GroupPanel5 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.GroupPanel GroupPanel5; - - /// - /// GroupPanel6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.GroupPanel GroupPanel6; + protected global::FineUIPro.GroupPanel GroupPanel2; /// /// gvCheckSort 控件。 @@ -408,213 +210,6 @@ namespace FineUIPro.Web.HSSE.Manager { /// protected global::FineUIPro.Label lb111; - /// - /// GroupPanel7 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.GroupPanel GroupPanel7; - - /// - /// gvCheckDetailSort 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Grid gvCheckDetailSort; - - /// - /// Toolbar6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Toolbar Toolbar6; - - /// - /// btnNewCheckDetailSort 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnNewCheckDetailSort; - - /// - /// checktype 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox checktype; - - /// - /// txtCheckTime 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtCheckTime; - - /// - /// TextBox3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TextBox3; - - /// - /// TextBox1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TextBox1; - - /// - /// GroupPanel8 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.GroupPanel GroupPanel8; - - /// - /// GroupPanel15 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.GroupPanel GroupPanel15; - - /// - /// Form3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Form Form3; - - /// - /// txtMeetingNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtMeetingNum; - - /// - /// txtYearMeetingNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtYearMeetingNum; - - /// - /// GroupPanel16 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.GroupPanel GroupPanel16; - - /// - /// gvMeetingSort 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Grid gvMeetingSort; - - /// - /// Toolbar7 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Toolbar Toolbar7; - - /// - /// btnNewMeetingSort 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnNewMeetingSort; - - /// - /// TextBox2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TextBox2; - - /// - /// NumberBox1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox NumberBox1; - - /// - /// TextBox5 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TextBox5; - - /// - /// TextBox6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TextBox6; - - /// - /// TextBox7 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TextBox7; - - /// - /// TextBox8 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TextBox8; - /// /// GroupPanel20 控件。 /// @@ -634,157 +229,13 @@ namespace FineUIPro.Web.HSSE.Manager { protected global::FineUIPro.GroupPanel GroupPanel21; /// - /// Form5 控件。 + /// txtWorkDef 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Form Form5; - - /// - /// Label1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Label Label1; - - /// - /// Label2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Label Label2; - - /// - /// Label3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Label Label3; - - /// - /// Label4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Label Label4; - - /// - /// Label5 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Label Label5; - - /// - /// txtComplexEmergencyNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtComplexEmergencyNum; - - /// - /// txtYearComplexEmergencyNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtYearComplexEmergencyNum; - - /// - /// txtTotalComplexEmergencyNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtTotalComplexEmergencyNum; - - /// - /// Label6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Label Label6; - - /// - /// txtSpecialEmergencyNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtSpecialEmergencyNum; - - /// - /// txtYearSpecialEmergencyNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtYearSpecialEmergencyNum; - - /// - /// txtTotalSpecialEmergencyNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtTotalSpecialEmergencyNum; - - /// - /// Label7 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Label Label7; - - /// - /// txtDrillRecordNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtDrillRecordNum; - - /// - /// txtYearDrillRecordNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtYearDrillRecordNum; - - /// - /// txtTotalDrillRecordNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtTotalDrillRecordNum; + protected global::FineUIPro.TextArea txtWorkDef; /// /// GroupPanel22 控件。 @@ -804,33 +255,6 @@ namespace FineUIPro.Web.HSSE.Manager { /// protected global::FineUIPro.TextArea txtEmergencyManagementWorkDef; - /// - /// GroupPanel24 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.GroupPanel GroupPanel24; - - /// - /// txtLicenseRemark 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextArea txtLicenseRemark; - - /// - /// txtEquipmentRemark 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextArea txtEquipmentRemark; - /// /// GroupPanel27 控件。 /// @@ -841,175 +265,31 @@ namespace FineUIPro.Web.HSSE.Manager { protected global::FineUIPro.GroupPanel GroupPanel27; /// - /// GroupPanel28 控件。 + /// gvRewardSortAndPunish 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.GroupPanel GroupPanel28; + protected global::FineUIPro.Grid gvRewardSortAndPunish; /// - /// gvRewardSort 控件。 + /// NumberBox5 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Grid gvRewardSort; + protected global::FineUIPro.NumberBox NumberBox5; /// - /// Toolbar11 控件。 + /// NumberBox4 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Toolbar Toolbar11; - - /// - /// btnNewRewardSort 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnNewRewardSort; - - /// - /// TextBox21 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TextBox21; - - /// - /// TextBox22 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TextBox22; - - /// - /// TextBox23 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TextBox23; - - /// - /// NumberBox2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox NumberBox2; - - /// - /// Form7 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Form Form7; - - /// - /// txtRewardNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtRewardNum; - - /// - /// txtYearRewardNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtYearRewardNum; - - /// - /// txtRewardMoney 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtRewardMoney; - - /// - /// txtYearRewardMoney 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtYearRewardMoney; - - /// - /// GroupPanel29 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.GroupPanel GroupPanel29; - - /// - /// gvPunishSort 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Grid gvPunishSort; - - /// - /// Toolbar12 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Toolbar Toolbar12; - - /// - /// btnNewPunishSort 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnNewPunishSort; - - /// - /// TextBox24 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TextBox24; - - /// - /// TextBox26 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TextBox26; + protected global::FineUIPro.NumberBox NumberBox4; /// /// NumberBox3 控件。 @@ -1021,67 +301,31 @@ namespace FineUIPro.Web.HSSE.Manager { protected global::FineUIPro.NumberBox NumberBox3; /// - /// TextBox27 控件。 + /// NumberBox2 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox TextBox27; + protected global::FineUIPro.NumberBox NumberBox2; /// - /// TextBox28 控件。 + /// NumberBox6 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox TextBox28; + protected global::FineUIPro.NumberBox NumberBox6; /// - /// Form8 控件。 + /// NumberBox7 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Form Form8; - - /// - /// txtPunishNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtPunishNum; - - /// - /// txtYearPunishNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtYearPunishNum; - - /// - /// txtPunishMoney 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtPunishMoney; - - /// - /// txtYearPunishMoney 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtYearPunishMoney; + protected global::FineUIPro.NumberBox NumberBox7; /// /// GroupPanel33 控件。 diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit5.aspx b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit5.aspx index 528e6b18..e412b25a 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit5.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit5.aspx @@ -1,127 +1,134 @@ -<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MonthReportCEdit5.aspx.cs" - Inherits="FineUIPro.Web.HSSE.Manager.MonthReportCEdit5" %> +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MonthReportCEdit5.aspx.cs" Inherits="FineUIPro.Web.HSSE.Manager.MonthReportCEdit5" %> + - + 本月项目HSE费用管理 +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit5.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit5.aspx.cs index a60bb170..a127abbb 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit5.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit5.aspx.cs @@ -1,11 +1,9 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; -using BLL; +using BLL; using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; namespace FineUIPro.Web.HSSE.Manager { @@ -15,7 +13,7 @@ namespace FineUIPro.Web.HSSE.Manager /// /// 月报告查主键 /// - public string MonthReportId + public string newKeyID { get { @@ -52,19 +50,14 @@ namespace FineUIPro.Web.HSSE.Manager #region 定义集合 /// - /// 5.1.2 本月文件、方案修编情况说明集合 + /// 6.1 五环HSE费用投入集合 /// - private static List plans = new List(); + private static List fiveExpenses = new List(); /// - /// 5.2.2 详细审查记录集合 + /// 6.2 分包商HSE费用投入集合 /// - private static List reviewRecords = new List(); - - /// - /// 5.3 HSSE文件管理集合 - /// - private static List fileManages = new List(); + private static List subExpenses = new List(); #endregion @@ -75,10 +68,9 @@ namespace FineUIPro.Web.HSSE.Manager { if (!IsPostBack) { - plans.Clear(); - reviewRecords.Clear(); - fileManages.Clear(); - this.MonthReportId = Request.Params["monthReportId"]; + fiveExpenses.Clear(); + subExpenses.Clear(); + this.newKeyID = Request.Params["monthReportId"]; this.ProjectId = this.CurrUser.LoginProjectId; DateTime months = Convert.ToDateTime(Request.Params["months"]); startTime = Convert.ToDateTime(Request.Params["startTime"]); @@ -93,408 +85,320 @@ namespace FineUIPro.Web.HSSE.Manager } if (monthReport != null) { - this.MonthReportId = monthReport.MonthReportId; + this.newKeyID = monthReport.MonthReportId; this.ProjectId = monthReport.ProjectId; months = Convert.ToDateTime(monthReport.Months); - Model.SGGLDB db = Funs.DB; - //5.1.2 本月文件、方案修编情况说明 - plans = (from x in db.Manager_Month_PlanC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList(); - if (plans.Count > 0) + + fiveExpenses = BLL.FiveExpenseCService.GetFiveExpenseByMonthReportId(this.newKeyID); + if (fiveExpenses.Count > 0) { - this.gvMonthPlan.DataSource = plans; - this.gvMonthPlan.DataBind(); + this.gvFiveExpenseC.DataSource = fiveExpenses; + this.gvFiveExpenseC.DataBind(); + OutputSummaryData(); } else { - GetPlanSort(); + GetFiveExpenseList(); } - //5.2.2 详细审查记录 - reviewRecords = (from x in db.Manager_Month_ReviewRecordC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList(); - if (reviewRecords.Count > 0) + + subExpenses = BLL.SubExpenseCService.GetSubExpenseByMonthReportId(this.newKeyID); + if (subExpenses.Count>0) { - this.gvReviewRecord.DataSource = reviewRecords; - this.gvReviewRecord.DataBind(); + this.gvSubExpenseC.DataSource = subExpenses; + this.gvSubExpenseC.DataBind(); + OutputSubSummaryData(); } else { - GetReviewRecordSort(); + GetSubExpenseList(); } } else { - //施工HSE实施计划数量 - //List actionPlans = BLL.ActionPlanListService.GetActionPlanListsByDate(startTime, endTime, this.ProjectId); - //int actionPlanNum = actionPlans.Count; - ////HSE管理规定数量 - //List hSERules = BLL.ActionPlan_ManagerRuleService.GetManagerRuleListsByDate(startTime, endTime, this.ProjectId); - //int hSERuleNum = hSERules.Count; - //int constructSolutionNum = BLL.ConstructSolutionService.GetConstructSolutionCountByDate(this.ProjectId, startTime, endTime); - //int subUnitQualityAuditDetailNum = BLL.SubUnitQualityAuditDetailService.GetCountByDate(this.ProjectId, startTime, endTime); - //int equipmentQualityAuditDetailNum = BLL.EquipmentQualityAuditDetailService.GetCountByDate(this.ProjectId, startTime, endTime); - //int personQualityAuditDetailNum = BLL.PersonQualityService.GetCountByDate(this.ProjectId, startTime, endTime); - //int generalEquipmentQualityNum = BLL.GeneralEquipmentQualityService.GetSumCountByDate(this.ProjectId, startTime, endTime); - GetPlanSort(); - GetReviewRecordSort(); + GetFiveExpenseList(); //费用投入 + GetSubExpenseList(); //本月项目分包商HSE费用支付统计 } } } #endregion - #region HSE管理文件、方案修编 + #region 本月项目分包商HSE费用支付统计 /// - /// 显示本月文件、方案修编情况说明 + /// 费用投入 /// - private void GetPlanSort() + private void GetFiveExpenseList() { - List actionList = BLL.ActionPlanListService.GetActionPlanListsByDate(startTime, endTime, this.ProjectId); - //施工计划 - if (actionList.Count > 0) + #region 五环(本月) + decimal? sMonthType1 = 0, sMonthType2 = 0, sMonthType3 = 0, sMonthType4 = 0, sMonthType5 = 0, sMonthType6 = 0; + decimal? tMonthType1 = 0; + List payRegistrations = BLL.PayRegistrationService.GetPayRegistrationByPayDate(startTime, endTime, this.ProjectId, BLL.Const.UnitId_CWCEC); + if (payRegistrations != null) { - foreach (Model.ActionPlan_ActionPlanList item in actionList) + foreach (var item in payRegistrations) { - Model.Manager_Month_PlanC plan = new Model.Manager_Month_PlanC - { - PlanId = item.ActionPlanListId, - PlanName = item.ActionPlanListName - }; - List userSelect = (from x in Funs.DB.Sys_User - join y in Funs.DB.Sys_FlowOperate - on x.UserId equals y.OperaterId - join z in Funs.DB.Project_ProjectUser - on y.OperaterId equals z.UserId - where (z.RoleId.Contains(BLL.Const.HSSEEngineer) || z.RoleId.Contains(BLL.Const.HSSEManager)) && y.MenuId == BLL.Const.ProjectActionPlanListMenuId && y.DataId == item.ActionPlanListId - select x).Distinct().ToList(); - if (userSelect.Count() > 0) - { - List users = userSelect.Distinct().ToList(); - string names = string.Empty; - foreach (var user in users) - { - names += user.UserName + ","; - } - if (!string.IsNullOrEmpty(names)) - { - names = names.Substring(0, names.LastIndexOf(",")); - } - plan.CompileMan = names; - } - if (item.CompileDate != null) - { - plan.CompileDate = string.Format("{0:yyyy-MM-dd}", item.CompileDate); - } - plans.Add(plan); + sMonthType1 += item.SMonthType1_1 + item.SMonthType1_2 + item.SMonthType1_3 + item.SMonthType1_4 + item.SMonthType1_5 + item.SMonthType1_6 + item.SMonthType1_7 + item.SMonthType1_8 + item.SMonthType1_9 + item.SMonthType1_10 + item.SMonthType1_11 + item.SMonthType1_12 + item.SMonthType1_13 + item.SMonthType1_14 + item.SMonthType1_15 + item.SMonthType1_16; + sMonthType2 += item.SMonthType2_1 + item.SMonthType2_2 + item.SMonthType2_3 + item.SMonthType2_4; + sMonthType3 += item.SMonthType3_1 + item.SMonthType3_2 + item.SMonthType3_3 + item.SMonthType3_4 + item.SMonthType3_5 + item.SMonthType3_6; + sMonthType4 += item.SMonthType4_1 + item.SMonthType4_2 + item.SMonthType4_3 + item.SMonthType4_4 + item.SMonthType4_5 + item.SMonthType4_6 + item.SMonthType4_7 + item.SMonthType4_8 + item.SMonthType4_9 + item.SMonthType4_10 + item.SMonthType4_11 + item.SMonthType4_12 + item.SMonthType4_13 + item.SMonthType4_14 + item.SMonthType4_15 + item.SMonthType4_16 + item.SMonthType4_17 + item.SMonthType4_18 + item.SMonthType4_19 + item.SMonthType4_20 + item.SMonthType4_21 + item.SMonthType4_22 + item.SMonthType4_23 + item.SMonthType4_24 + item.SMonthType4_25 + item.SMonthType4_26 + item.SMonthType4_27 + item.SMonthType4_28 + item.SMonthType4_29 + item.SMonthType4_30 + item.SMonthType4_31 + item.SMonthType4_32 + item.SMonthType4_33 + item.SMonthType4_34 + item.SMonthType4_35 + item.SMonthType4_35 + item.SMonthType4_36 + item.SMonthType4_37 + item.SMonthType4_38 + item.SMonthType4_39 + item.SMonthType4_40; + sMonthType5 += item.SMonthType5_1 + item.SMonthType5_2 + item.SMonthType5_3 + item.SMonthType5_4 + item.SMonthType5_5 + item.SMonthType5_6; + sMonthType6 += item.SMonthType6_1 + item.SMonthType6_2 + item.SMonthType6_3; + tMonthType1 += item.TMonthType1_1 + item.TMonthType1_2 + item.TMonthType1_3 + item.TMonthType1_4 + item.TMonthType1_5 + item.TMonthType1_6 + item.TMonthType1_7 + item.TMonthType1_8 + item.TMonthType1_9 + item.TMonthType1_10 + item.TMonthType1_11; } } - //管理规定 - List hseRuleList = BLL.ActionPlan_ManagerRuleService.GetManagerRuleListsByDate(startTime, endTime, this.ProjectId); - if (hseRuleList.Count > 0) - { - foreach (Model.ActionPlan_ManagerRule rule in hseRuleList) - { - Model.Manager_Month_PlanC plan = new Model.Manager_Month_PlanC - { - PlanId = rule.ManagerRuleId, - PlanName = rule.ManageRuleName - }; - List users = (from x in Funs.DB.Sys_User - join y in Funs.DB.Sys_FlowOperate - on x.UserId equals y.OperaterId - join z in Funs.DB.Project_ProjectUser - on y.OperaterId equals z.UserId - where (z.RoleId.Contains(BLL.Const.HSSEEngineer) || z.RoleId.Contains(BLL.Const.HSSEManager)) && y.MenuId == BLL.Const.ActionPlan_ManagerRuleMenuId && y.DataId == rule.ManagerRuleId - select x).Distinct().ToList(); - if (users.Count() > 0) - { - string names = string.Empty; - foreach (var user in users) - { - names += user.UserName + ","; - } - if (!string.IsNullOrEmpty(names)) - { - names = names.Substring(0, names.LastIndexOf(",")); - } - plan.CompileMan = names; - } - if (rule.CompileDate != null) - { - plan.CompileDate = string.Format("{0:yyyy-MM-dd}", rule.CompileDate); - } - plans.Add(plan); - } - } - this.gvMonthPlan.DataSource = plans; - this.gvMonthPlan.DataBind(); - } + #endregion - /// - /// 增加本月文件、方案修编情况说明 - /// - /// - /// - protected void btnNewMonthPlan_Click(object sender, EventArgs e) - { - jerqueSaveMonthPlanList(); - Model.Manager_Month_PlanC monthPlanSort = new Model.Manager_Month_PlanC + #region 五环(项目) + decimal? sProjectType1 = 0, sProjectType2 = 0, sProjectType3 = 0, sProjectType4 = 0, sProjectType5 = 0, sProjectType6 = 0; + decimal? tProjectType1 = 0; + List payRegistrationsPro = BLL.PayRegistrationService.GetPayRegistrationByPayDate(projectStartTime, endTime, this.ProjectId, BLL.Const.UnitId_CWCEC); + if (payRegistrationsPro != null) { - PlanId = SQLHelper.GetNewID(typeof(Model.Manager_Month_PlanC)) + foreach (var item in payRegistrationsPro) + { + sProjectType1 += item.SMonthType1_1 + item.SMonthType1_2 + item.SMonthType1_3 + item.SMonthType1_4 + item.SMonthType1_5 + item.SMonthType1_6 + item.SMonthType1_7 + item.SMonthType1_8 + item.SMonthType1_9 + item.SMonthType1_10 + item.SMonthType1_11 + item.SMonthType1_12 + item.SMonthType1_13 + item.SMonthType1_14 + item.SMonthType1_15 + item.SMonthType1_16; + sProjectType2 += item.SMonthType2_1 + item.SMonthType2_2 + item.SMonthType2_3 + item.SMonthType2_4; + sProjectType3 += item.SMonthType3_1 + item.SMonthType3_2 + item.SMonthType3_3 + item.SMonthType3_4 + item.SMonthType3_5 + item.SMonthType3_6; + sProjectType4 += item.SMonthType4_1 + item.SMonthType4_2 + item.SMonthType4_3 + item.SMonthType4_4 + item.SMonthType4_5 + item.SMonthType4_6 + item.SMonthType4_7 + item.SMonthType4_8 + item.SMonthType4_9 + item.SMonthType4_10 + item.SMonthType4_11 + item.SMonthType4_12 + item.SMonthType4_13 + item.SMonthType4_14 + item.SMonthType4_15 + item.SMonthType4_16 + item.SMonthType4_17 + item.SMonthType4_18 + item.SMonthType4_19 + item.SMonthType4_20 + item.SMonthType4_21 + item.SMonthType4_22 + item.SMonthType4_23 + item.SMonthType4_24 + item.SMonthType4_25 + item.SMonthType4_26 + item.SMonthType4_27 + item.SMonthType4_28 + item.SMonthType4_29 + item.SMonthType4_30 + item.SMonthType4_31 + item.SMonthType4_32 + item.SMonthType4_33 + item.SMonthType4_34 + item.SMonthType4_35 + item.SMonthType4_35 + item.SMonthType4_36 + item.SMonthType4_37 + item.SMonthType4_38 + item.SMonthType4_39 + item.SMonthType4_40; + sProjectType5 += item.SMonthType5_1 + item.SMonthType5_2 + item.SMonthType5_3 + item.SMonthType5_4 + item.SMonthType5_5 + item.SMonthType5_6; + sProjectType6 += item.SMonthType6_1 + item.SMonthType6_2 + item.SMonthType6_3; + tProjectType1 += item.TMonthType1_1 + item.TMonthType1_2 + item.TMonthType1_3 + item.TMonthType1_4 + item.TMonthType1_5 + item.TMonthType1_6 + item.TMonthType1_7 + item.TMonthType1_8 + item.TMonthType1_9 + item.TMonthType1_10 + item.TMonthType1_11; + } + } + #endregion + + #region 施工分包(本月) + decimal? sConMonthType1 = 0, sConMonthType2 = 0, sConMonthType3 = 0, sConMonthType4 = 0, sConMonthType5 = 0, sConMonthType6 = 0; + decimal? tConMonthType1 = 0; + List payRegistrationsConMonth = BLL.PayRegistrationService.GetConPayRegistrationByPayDate(startTime, endTime, this.ProjectId); + if (payRegistrationsConMonth != null) + { + foreach (var item in payRegistrationsConMonth) + { + sConMonthType1 += item.SMonthType1_1 + item.SMonthType1_2 + item.SMonthType1_3 + item.SMonthType1_4 + item.SMonthType1_5 + item.SMonthType1_6 + item.SMonthType1_7 + item.SMonthType1_8 + item.SMonthType1_9 + item.SMonthType1_10 + item.SMonthType1_11 + item.SMonthType1_12 + item.SMonthType1_13 + item.SMonthType1_14 + item.SMonthType1_15 + item.SMonthType1_16; + sConMonthType2 += item.SMonthType2_1 + item.SMonthType2_2 + item.SMonthType2_3 + item.SMonthType2_4; + sConMonthType3 += item.SMonthType3_1 + item.SMonthType3_2 + item.SMonthType3_3 + item.SMonthType3_4 + item.SMonthType3_5 + item.SMonthType3_6; + sConMonthType4 += item.SMonthType4_1 + item.SMonthType4_2 + item.SMonthType4_3 + item.SMonthType4_4 + item.SMonthType4_5 + item.SMonthType4_6 + item.SMonthType4_7 + item.SMonthType4_8 + item.SMonthType4_9 + item.SMonthType4_10 + item.SMonthType4_11 + item.SMonthType4_12 + item.SMonthType4_13 + item.SMonthType4_14 + item.SMonthType4_15 + item.SMonthType4_16 + item.SMonthType4_17 + item.SMonthType4_18 + item.SMonthType4_19 + item.SMonthType4_20 + item.SMonthType4_21 + item.SMonthType4_22 + item.SMonthType4_23 + item.SMonthType4_24 + item.SMonthType4_25 + item.SMonthType4_26 + item.SMonthType4_27 + item.SMonthType4_28 + item.SMonthType4_29 + item.SMonthType4_30 + item.SMonthType4_31 + item.SMonthType4_32 + item.SMonthType4_33 + item.SMonthType4_34 + item.SMonthType4_35 + item.SMonthType4_35 + item.SMonthType4_36 + item.SMonthType4_37 + item.SMonthType4_38 + item.SMonthType4_39 + item.SMonthType4_40; + sConMonthType5 += item.SMonthType5_1 + item.SMonthType5_2 + item.SMonthType5_3 + item.SMonthType5_4 + item.SMonthType5_5 + item.SMonthType5_6; + sConMonthType6 += item.SMonthType6_1 + item.SMonthType6_2 + item.SMonthType6_3; + tConMonthType1 += item.TMonthType1_1 + item.TMonthType1_2 + item.TMonthType1_3 + item.TMonthType1_4 + item.TMonthType1_5 + item.TMonthType1_6 + item.TMonthType1_7 + item.TMonthType1_8 + item.TMonthType1_9 + item.TMonthType1_10 + item.TMonthType1_11; + } + } + #endregion + + #region 施工分包(项目) + decimal? sConProjectType1 = 0, sConProjectType2 = 0, sConProjectType3 = 0, sConProjectType4 = 0, sConProjectType5 = 0, sConProjectType6 = 0; + decimal? tConProjectType1 = 0; + List payRegistrationsConPro = BLL.PayRegistrationService.GetConPayRegistrationByPayDate(projectStartTime, endTime, this.ProjectId); + if (payRegistrationsConPro != null) + { + foreach (var item in payRegistrationsConPro) + { + sConProjectType1 += item.SMonthType1_1 + item.SMonthType1_2 + item.SMonthType1_3 + item.SMonthType1_4 + item.SMonthType1_5 + item.SMonthType1_6 + item.SMonthType1_7 + item.SMonthType1_8 + item.SMonthType1_9 + item.SMonthType1_10 + item.SMonthType1_11 + item.SMonthType1_12 + item.SMonthType1_13 + item.SMonthType1_14 + item.SMonthType1_15 + item.SMonthType1_16; + sConProjectType2 += item.SMonthType2_1 + item.SMonthType2_2 + item.SMonthType2_3 + item.SMonthType2_4; + sConProjectType3 += item.SMonthType3_1 + item.SMonthType3_2 + item.SMonthType3_3 + item.SMonthType3_4 + item.SMonthType3_5 + item.SMonthType3_6; + sConProjectType4 += item.SMonthType4_1 + item.SMonthType4_2 + item.SMonthType4_3 + item.SMonthType4_4 + item.SMonthType4_5 + item.SMonthType4_6 + item.SMonthType4_7 + item.SMonthType4_8 + item.SMonthType4_9 + item.SMonthType4_10 + item.SMonthType4_11 + item.SMonthType4_12 + item.SMonthType4_13 + item.SMonthType4_14 + item.SMonthType4_15 + item.SMonthType4_16 + item.SMonthType4_17 + item.SMonthType4_18 + item.SMonthType4_19 + item.SMonthType4_20 + item.SMonthType4_21 + item.SMonthType4_22 + item.SMonthType4_23 + item.SMonthType4_24 + item.SMonthType4_25 + item.SMonthType4_26 + item.SMonthType4_27 + item.SMonthType4_28 + item.SMonthType4_29 + item.SMonthType4_30 + item.SMonthType4_31 + item.SMonthType4_32 + item.SMonthType4_33 + item.SMonthType4_34 + item.SMonthType4_35 + item.SMonthType4_35 + item.SMonthType4_36 + item.SMonthType4_37 + item.SMonthType4_38 + item.SMonthType4_39 + item.SMonthType4_40; + sConProjectType5 += item.SMonthType5_1 + item.SMonthType5_2 + item.SMonthType5_3 + item.SMonthType5_4 + item.SMonthType5_5 + item.SMonthType5_6; + sConProjectType6 += item.SMonthType6_1 + item.SMonthType6_2 + item.SMonthType6_3; + tConProjectType1 += item.TMonthType1_1 + item.TMonthType1_2 + item.TMonthType1_3 + item.TMonthType1_4 + item.TMonthType1_5 + item.TMonthType1_6 + item.TMonthType1_7 + item.TMonthType1_8 + item.TMonthType1_9 + item.TMonthType1_10 + item.TMonthType1_11; + } + } + #endregion + + int i = 0; + Model.Manager_Month_FiveExpenseC fiveExpense1 = new Model.Manager_Month_FiveExpenseC + { + FiveExpenseId = SQLHelper.GetNewID(typeof(Model.Manager_Month_FiveExpenseC)), + SortIndex = i, + InvestmentProject = "基础管理", + PlanCostMonth = sMonthType1,//五环工程(本月) + PlanCostYear = sProjectType1, //五环工程(项目累计) + ActualCostMonth = sConMonthType1,//施工分包商(本月) + ActualCostYear = sConProjectType1//施工分包商(项目累计) }; - plans.Add(monthPlanSort); - this.gvMonthPlan.DataSource = plans; - this.gvMonthPlan.DataBind(); - } + fiveExpenses.Add(fiveExpense1); + i++; - /// - /// 检查并保存其他HSE管理活动集合 - /// - private void jerqueSaveMonthPlanList() - { - plans.Clear(); - JArray mergedData = gvMonthPlan.GetMergedData(); - foreach (JObject mergedRow in mergedData) + Model.Manager_Month_FiveExpenseC fiveExpense2 = new Model.Manager_Month_FiveExpenseC { - string status = mergedRow.Value("status"); - JObject values = mergedRow.Value("values"); - int i = mergedRow.Value("index"); - Model.Manager_Month_PlanC monthPlanSort = new Model.Manager_Month_PlanC - { - PlanId = this.gvMonthPlan.Rows[i].DataKeys[0].ToString(), - SortIndex = i, - PlanName = values.Value("PlanName").ToString(), - CompileMan = values.Value("CompileMan").ToString(), - CompileDate = values.Value("CompileDate").ToString() - }; - plans.Add(monthPlanSort); - } - } - - protected void gvMonthPlan_RowCommand(object sender, GridCommandEventArgs e) - { - jerqueSaveMonthPlanList(); - string rowID = this.gvMonthPlan.DataKeys[e.RowIndex][0].ToString(); - if (e.CommandName == "Delete") - { - foreach (var item in plans) - { - if (item.PlanId == rowID) - { - plans.Remove(item); - break; - } - } - gvMonthPlan.DataSource = plans; - gvMonthPlan.DataBind(); - ShowNotify("删除数据成功!", MessageBoxIcon.Success); - } - } - - /// - /// 审查记录修编情况修编、审核 - /// - private void GetReviewRecordSort() - { - //施工方案 - List constructSolution = BLL.ConstructSolutionService.GetConstructSolutionListByDate(this.ProjectId, startTime, endTime); - if (constructSolution.Count > 0) - { - foreach (Model.Solution_ConstructSolution item in constructSolution) - { - Model.Manager_Month_ReviewRecordC reviewRecord = new Model.Manager_Month_ReviewRecordC - { - ReviewRecordId = SQLHelper.GetNewID(typeof(Model.Manager_Month_ReviewRecordC)), - ReviewRecordName = item.ConstructSolutionName - }; - List users = (from x in Funs.DB.Sys_User - join y in Funs.DB.Sys_FlowOperate - on x.UserId equals y.OperaterId - join z in Funs.DB.Project_ProjectUser - on y.OperaterId equals z.UserId - where (z.RoleId.Contains(BLL.Const.HSSEEngineer) || z.RoleId.Contains(BLL.Const.HSSEManager)) && y.MenuId == BLL.Const.ProjectConstructSolutionMenuId && y.DataId == item.ConstructSolutionId - select x).Distinct().ToList(); - if (users.Count() > 0) - { - string names = string.Empty; - foreach (var user in users) - { - names += user.UserName + ","; - } - if (!string.IsNullOrEmpty(names)) - { - names = names.Substring(0, names.LastIndexOf(",")); - } - reviewRecord.ReviewMan = names; - } - - if (item.CompileDate != null) - { - reviewRecord.ReviewDate = string.Format("{0:yyyy-MM-dd}", item.CompileDate); - } - reviewRecords.Add(reviewRecord); - } - } - //分包商审核记录 - List subUnitDetails = BLL.SubUnitQualityAuditDetailService.GetListByDate(this.ProjectId, startTime, endTime); - if (subUnitDetails.Count > 0) - { - foreach (Model.QualityAudit_SubUnitQualityAuditDetail item in subUnitDetails) - { - Model.Manager_Month_ReviewRecordC reviewRecord = new Model.Manager_Month_ReviewRecordC - { - ReviewRecordId = SQLHelper.GetNewID(typeof(Model.Manager_Month_ReviewRecordC)), - ReviewRecordName = item.AuditContent - }; - Model.Sys_User user = BLL.UserService.GetUserByUserId(item.AuditMan); - if (user != null) - { - reviewRecord.ReviewMan = user.UserName; - } - if (item.AuditDate != null) - { - reviewRecord.ReviewDate = string.Format("{0:yyyy-MM-dd}", item.AuditDate); - } - reviewRecords.Add(reviewRecord); - } - } - //特种设备审核记录 - List equipmentDetails = BLL.EquipmentQualityAuditDetailService.GetListByDate(this.ProjectId, startTime, endTime); - if (equipmentDetails.Count > 0) - { - foreach (Model.QualityAudit_EquipmentQualityAuditDetail item in equipmentDetails) - { - Model.Manager_Month_ReviewRecordC reviewRecord = new Model.Manager_Month_ReviewRecordC - { - ReviewRecordId = SQLHelper.GetNewID(typeof(Model.Manager_Month_ReviewRecordC)), - ReviewRecordName = item.AuditContent - }; - Model.Sys_User user = BLL.UserService.GetUserByUserId(item.AuditMan); - if (user != null) - { - reviewRecord.ReviewMan = user.UserName; - } - if (item.AuditDate != null) - { - reviewRecord.ReviewDate = string.Format("{0:yyyy-MM-dd}", item.AuditDate); - } - reviewRecords.Add(reviewRecord); - } - } - //特岗人员资质 - List personDetails = BLL.PersonQualityService.GetListByDate(this.ProjectId, startTime, endTime); - if (personDetails.Count > 0) - { - foreach (Model.QualityAudit_PersonQuality item in personDetails) - { - Model.Manager_Month_ReviewRecordC reviewRecord = new Model.Manager_Month_ReviewRecordC - { - ReviewRecordId = SQLHelper.GetNewID(typeof(Model.Manager_Month_ReviewRecordC)) - }; - string personName = string.Empty; - Model.SitePerson_Person person = BLL.PersonService.GetPersonById(item.PersonId); - if (person != null) - { - personName = person.PersonName; - } - reviewRecord.ReviewRecordName = personName + "(" + item.CertificateName + ")"; - reviewRecord.ReviewMan = item.ApprovalPerson; - if (item.AuditDate != null) - { - reviewRecord.ReviewDate = string.Format("{0:yyyy-MM-dd}", item.AuditDate); - } - reviewRecords.Add(reviewRecord); - } - } - //一般机具资质 - List generalEquipmentDetails = BLL.GeneralEquipmentQualityService.GetListByDate(this.ProjectId, startTime, endTime); - if (generalEquipmentDetails.Count > 0) - { - foreach (Model.QualityAudit_GeneralEquipmentQuality item in generalEquipmentDetails) - { - Model.Manager_Month_ReviewRecordC reviewRecord = new Model.Manager_Month_ReviewRecordC - { - ReviewRecordId = SQLHelper.GetNewID(typeof(Model.Manager_Month_ReviewRecordC)) - }; - string generalEquipmentName = string.Empty; - Model.Base_SpecialEquipment specialEquipment = BLL.SpecialEquipmentService.GetSpecialEquipmentById(item.SpecialEquipmentId); - if (specialEquipment != null) - { - generalEquipmentName = specialEquipment.SpecialEquipmentName; - } - reviewRecord.ReviewRecordName = generalEquipmentName + "(" + item.EquipmentCount.ToString() + ")"; - Model.Sys_User user = BLL.UserService.GetUserByUserId(item.CompileMan); - if (user != null) - { - reviewRecord.ReviewMan = user.UserName; - } - if (item.InDate != null) - { - reviewRecord.ReviewDate = string.Format("{0:yyyy-MM-dd}", item.InDate); - } - reviewRecords.Add(reviewRecord); - } - } - this.gvReviewRecord.DataSource = reviewRecords; - this.gvReviewRecord.DataBind(); - } - - /// - /// 增加本月文件、方案修编情况说明 - /// - /// - /// - protected void btnNewReviewRecord_Click(object sender, EventArgs e) - { - jerqueSaveReviewRecordList(); - Model.Manager_Month_ReviewRecordC reviewRecordSort = new Model.Manager_Month_ReviewRecordC - { - ReviewRecordId = SQLHelper.GetNewID(typeof(Model.Manager_Month_ReviewRecordC)) + FiveExpenseId = SQLHelper.GetNewID(typeof(Model.Manager_Month_FiveExpenseC)), + SortIndex = i, + InvestmentProject = "安全技术", + PlanCostMonth = sMonthType2,//五环工程(本月) + PlanCostYear = sProjectType2, //五环工程(项目累计) + ActualCostMonth = sConMonthType2,//施工分包商(本月) + ActualCostYear = sConProjectType2//施工分包商(项目累计) }; - reviewRecords.Add(reviewRecordSort); - this.gvReviewRecord.DataSource = reviewRecords; - this.gvReviewRecord.DataBind(); - } + fiveExpenses.Add(fiveExpense2); + i++; + Model.Manager_Month_FiveExpenseC fiveExpense3 = new Model.Manager_Month_FiveExpenseC + { + FiveExpenseId = SQLHelper.GetNewID(typeof(Model.Manager_Month_FiveExpenseC)), + SortIndex = i, + InvestmentProject = "职业健康", + PlanCostMonth = sMonthType3,//五环工程(本月) + PlanCostYear = sProjectType3, //五环工程(项目累计) + ActualCostMonth = sConMonthType3,//施工分包商(本月) + ActualCostYear = sConProjectType3//施工分包商(项目累计) + }; + fiveExpenses.Add(fiveExpense3); + i++; + + Model.Manager_Month_FiveExpenseC fiveExpense4 = new Model.Manager_Month_FiveExpenseC + { + FiveExpenseId = SQLHelper.GetNewID(typeof(Model.Manager_Month_FiveExpenseC)), + SortIndex = i, + InvestmentProject = "安全防护", + PlanCostMonth = sMonthType4,//五环工程(本月) + PlanCostYear = sProjectType4, //五环工程(项目累计) + ActualCostMonth = sConMonthType4,//施工分包商(本月) + ActualCostYear = sConProjectType4//施工分包商(项目累计) + }; + fiveExpenses.Add(fiveExpense4); + i++; + + Model.Manager_Month_FiveExpenseC fiveExpense5 = new Model.Manager_Month_FiveExpenseC + { + FiveExpenseId = SQLHelper.GetNewID(typeof(Model.Manager_Month_FiveExpenseC)), + SortIndex = i, + InvestmentProject = "化工试车", + PlanCostMonth = sMonthType5,//五环工程(本月) + PlanCostYear = sProjectType5, //五环工程(项目累计) + ActualCostMonth = sConMonthType5,//施工分包商(本月) + ActualCostYear = sConProjectType5//施工分包商(项目累计) + }; + fiveExpenses.Add(fiveExpense5); + i++; + + Model.Manager_Month_FiveExpenseC fiveExpense6 = new Model.Manager_Month_FiveExpenseC + { + FiveExpenseId = SQLHelper.GetNewID(typeof(Model.Manager_Month_FiveExpenseC)), + SortIndex = i, + InvestmentProject = "教育培训", + PlanCostMonth = sMonthType6,//五环工程(本月) + PlanCostYear = sProjectType6, //五环工程(项目累计) + ActualCostMonth = sConMonthType6,//施工分包商(本月) + ActualCostYear = sConProjectType6//施工分包商(项目累计) + }; + fiveExpenses.Add(fiveExpense6); + i++; + + Model.Manager_Month_FiveExpenseC fiveExpense7 = new Model.Manager_Month_FiveExpenseC + { + FiveExpenseId = SQLHelper.GetNewID(typeof(Model.Manager_Month_FiveExpenseC)), + SortIndex = i, + InvestmentProject = "文明施工环境保护", + PlanCostMonth = tMonthType1,//五环工程(本月) + PlanCostYear = tMonthType1, //五环工程(项目累计) + ActualCostMonth = tConMonthType1,//施工分包商(本月) + ActualCostYear = tConProjectType1//施工分包商(项目累计) + }; + fiveExpenses.Add(fiveExpense7); + + this.gvFiveExpenseC.DataSource = fiveExpenses; + this.gvFiveExpenseC.DataBind(); + + OutputSummaryData(); + } /// - /// 检查并保存其他HSE管理活动集合 + /// 求和 /// - private void jerqueSaveReviewRecordList() + private void OutputSummaryData() { - reviewRecords.Clear(); - JArray mergedData = gvReviewRecord.GetMergedData(); - foreach (JObject mergedRow in mergedData) + JObject summary = new JObject(); + + decimal TotalPlanCostMonth = 0, TotalPlanCostYear = 0, TotalActualCostMonth = 0, TotalActualCostYear = 0; + foreach (JObject mergedRow in gvFiveExpenseC.GetMergedData()) { - string status = mergedRow.Value("status"); JObject values = mergedRow.Value("values"); - int i = mergedRow.Value("index"); - Model.Manager_Month_ReviewRecordC reviewRecordSort = new Model.Manager_Month_ReviewRecordC + if (!string.IsNullOrEmpty(values["PlanCostMonth"].ToString())) { - ReviewRecordId = this.gvReviewRecord.Rows[i].DataKeys[0].ToString(), - SortIndex = i, - ReviewRecordName = values.Value("ReviewRecordName").ToString(), - ReviewMan = values.Value("ReviewMan").ToString(), - ReviewDate = values.Value("ReviewDate").ToString() - }; - reviewRecords.Add(reviewRecordSort); + TotalPlanCostMonth += values.Value("PlanCostMonth"); + } + if (!string.IsNullOrEmpty(values["PlanCostYear"].ToString())) + { + TotalPlanCostYear += values.Value("PlanCostYear"); + } + if (!string.IsNullOrEmpty(values["ActualCostMonth"].ToString())) + { + TotalActualCostMonth += values.Value("ActualCostMonth"); + } + if (!string.IsNullOrEmpty(values["ActualCostYear"].ToString())) + { + TotalActualCostYear += values.Value("ActualCostYear"); + } } + summary.Add("InvestmentProject", "合计"); + summary.Add("PlanCostMonth", TotalPlanCostMonth.ToString("F2")); + summary.Add("PlanCostYear", TotalPlanCostYear.ToString("F2")); + summary.Add("ActualCostMonth", TotalActualCostMonth.ToString("F2")); + summary.Add("ActualCostYear", TotalActualCostYear.ToString("F2")); + + gvFiveExpenseC.SummaryData = summary; } - protected void gvReviewRecord_RowCommand(object sender, GridCommandEventArgs e) + #endregion + + #region 本月项目分包商HSE费用支付统计 + /// + /// 绑定数据 + /// + private void GetSubExpenseList() { - jerqueSaveReviewRecordList(); - string rowID = this.gvReviewRecord.DataKeys[e.RowIndex][0].ToString(); - if (e.CommandName == "Delete") + var units = from x in Funs.DB.Project_ProjectUnit + where x.ProjectId == this.ProjectId && x.UnitType == "2" + orderby x.UnitType + select x; + if (units.Count() > 0) { - foreach (var item in reviewRecords) + foreach (Model.Project_ProjectUnit u in units) { - if (item.ReviewRecordId == rowID) + Model.Manager_Month_SubExpenseC subExpense = new Model.Manager_Month_SubExpenseC { - reviewRecords.Remove(item); - break; - } + SubExpenseId = SQLHelper.GetNewID(typeof(Model.Manager_Month_SubExpenseC)), + SubUnit =BLL.UnitService.GetUnitNameByUnitId(u.UnitId), + ContractAmount = BLL.SubPayRegistrationService.GetSubPaySMonthTypeByUnitId(u.UnitId, startTime,endTime), + MonthApprovalAmount = BLL.SubPayRegistrationService.GetSubPayRegistrationByUnitId(u.UnitId, startTime, endTime), + ProjectApprovalAmount = BLL.SubPayRegistrationService.GetSubPayRegistrationByUnitId(u.UnitId, projectStartTime, endTime), + }; + + subExpenses.Add(subExpense); } - gvReviewRecord.DataSource = reviewRecords; - gvReviewRecord.DataBind(); - ShowNotify("删除数据成功!", MessageBoxIcon.Success); } + this.gvSubExpenseC.DataSource = subExpenses; + this.gvSubExpenseC.DataBind(); + OutputSubSummaryData(); + } + /// + /// 求和 + /// + private void OutputSubSummaryData() + { + JObject summary = new JObject(); + + decimal TotalContractAmount = 0, TotalMonthApprovalAmount = 0, TotalProjectApprovalAmount = 0; + foreach (JObject mergedRow in gvSubExpenseC.GetMergedData()) + { + JObject values = mergedRow.Value("values"); + if (!string.IsNullOrEmpty(values["ContractAmount"].ToString())) + { + TotalContractAmount += values.Value("ContractAmount"); + } + if (!string.IsNullOrEmpty(values["MonthApprovalAmount"].ToString())) + { + TotalMonthApprovalAmount += values.Value("MonthApprovalAmount"); + } + if (!string.IsNullOrEmpty(values["ProjectApprovalAmount"].ToString())) + { + TotalProjectApprovalAmount += values.Value("ProjectApprovalAmount"); + } + } + summary.Add("SubUnit", "合计"); + summary.Add("ContractAmount", TotalContractAmount.ToString("F2")); + summary.Add("MonthApprovalAmount", TotalMonthApprovalAmount.ToString("F2")); + summary.Add("ProjectApprovalAmount", TotalProjectApprovalAmount.ToString("F2")); + + gvSubExpenseC.SummaryData = summary; } #endregion @@ -510,8 +414,8 @@ namespace FineUIPro.Web.HSSE.Manager if (oldMonthReport != null) { BLL.MonthReportCService.UpdateMonthReport(oldMonthReport); - OperatePlanSort(MonthReportId); - OperateReviewRecordSort(MonthReportId); + OperateFiveExpenseSort(oldMonthReport.MonthReportId); + OperateSubExpenseSort(oldMonthReport.MonthReportId); BLL.LogService.AddSys_Log(this.CurrUser, oldMonthReport.MonthReportCode, oldMonthReport.MonthReportId, BLL.Const.ProjectManagerMonthCMenuId, BLL.Const.BtnModify); } else @@ -520,49 +424,105 @@ namespace FineUIPro.Web.HSSE.Manager string newKeyID = SQLHelper.GetNewID(typeof(Model.Manager_MonthReportC)); monthReport.MonthReportId = newKeyID; monthReport.ProjectId = this.CurrUser.LoginProjectId; - this.MonthReportId = newKeyID; + this.newKeyID = newKeyID; monthReport.MonthReportCode = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(BLL.Const.ProjectManagerMonthCMenuId, this.ProjectId, this.CurrUser.UnitId); monthReport.Months = Funs.GetNewDateTime(Request.Params["months"]); monthReport.ReportMan = this.CurrUser.UserId; monthReport.MonthReportDate = DateTime.Now; BLL.MonthReportCService.AddMonthReport(monthReport); - OperatePlanSort(MonthReportId); - OperateReviewRecordSort(MonthReportId); + OperateFiveExpenseSort(newKeyID); + OperateSubExpenseSort(newKeyID); BLL.LogService.AddSys_Log(this.CurrUser, monthReport.MonthReportCode, monthReport.MonthReportId, BLL.Const.ProjectManagerMonthCMenuId, BLL.Const.BtnAdd); } ShowNotify("保存成功!", MessageBoxIcon.Success); PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); } + #region 保存本月项目HSE费用投入统计 /// - /// 5.1.2 本月文件、方案修编情况说明 + /// 本月项目HSE费用投入统计 /// /// - private void OperatePlanSort(string monthReportId) + private void OperateFiveExpenseSort(string monthReportId) { - BLL.PlanCService.DeletePlanByMonthReportId(monthReportId); - jerqueSaveMonthPlanList(); - foreach (Model.Manager_Month_PlanC plan in plans) + BLL.FiveExpenseCService.DeleteFiveExpenseByMonthReportId(monthReportId); + jerqueSaveFiveExpenseList(); + foreach (Model.Manager_Month_FiveExpenseC fiveExpendse in fiveExpenses) { - plan.MonthReportId = monthReportId; - BLL.PlanCService.AddPlan(plan); + fiveExpendse.MonthReportId = monthReportId; + BLL.FiveExpenseCService.AddFiveExpense(fiveExpendse); } } /// - /// 5.2.2 详细审查记录 + /// 保存本月项目HSE费用投入统计数据 /// - /// - private void OperateReviewRecordSort(string monthReportId) + private void jerqueSaveFiveExpenseList() { - BLL.ReviewRecordCService.DeleteReviewRecordByMonthReportId(monthReportId); - jerqueSaveReviewRecordList(); - foreach (Model.Manager_Month_ReviewRecordC reviewRecord in reviewRecords) + fiveExpenses.Clear(); + JArray mergedData = gvFiveExpenseC.GetMergedData(); + foreach (JObject mergedRow in mergedData) { - reviewRecord.MonthReportId = monthReportId; - BLL.ReviewRecordCService.AddReviewRecord(reviewRecord); + string status = mergedRow.Value("status"); + JObject values = mergedRow.Value("values"); + int i = mergedRow.Value("index"); + Model.Manager_Month_FiveExpenseC trainSort = new Model.Manager_Month_FiveExpenseC + { + FiveExpenseId = this.gvFiveExpenseC.Rows[i].DataKeys[0].ToString(), + SortIndex = i, + InvestmentProject = values.Value("InvestmentProject").ToString(), + PlanCostMonth = Funs.GetNewDecimal(values.Value("PlanCostMonth").ToString()), + PlanCostYear = Funs.GetNewDecimal(values.Value("PlanCostYear").ToString()), + ActualCostMonth = Funs.GetNewDecimal(values.Value("ActualCostMonth").ToString()), + ActualCostYear = Funs.GetNewDecimal(values.Value("ActualCostYear").ToString()) + }; + fiveExpenses.Add(trainSort); } } #endregion + + #region 保存本月项目分包商HSE费用支付统计 + /// + /// 本月项目分包商HSE费用支付统计 + /// + /// + private void OperateSubExpenseSort(string monthReportId) + { + BLL.SubExpenseCService.DeleteSubExpenseByMonthReportId(monthReportId); + jerqueSaveSubExpenseList(); + foreach (Model.Manager_Month_SubExpenseC subExpendse in subExpenses) + { + subExpendse.MonthReportId = monthReportId; + BLL.SubExpenseCService.AddSubExpense(subExpendse); + } + } + + /// + /// 保存本月项目分包商HSE费用支付统计数据 + /// + private void jerqueSaveSubExpenseList() + { + subExpenses.Clear(); + JArray mergedData = gvSubExpenseC.GetMergedData(); + foreach (JObject mergedRow in mergedData) + { + string status = mergedRow.Value("status"); + JObject values = mergedRow.Value("values"); + int i = mergedRow.Value("index"); + Model.Manager_Month_SubExpenseC trainSort = new Model.Manager_Month_SubExpenseC + { + SubExpenseId = this.gvSubExpenseC.Rows[i].DataKeys[0].ToString(), + SortIndex = i, + SubUnit = values.Value("SubUnit").ToString(), + ContractAmount = Funs.GetNewDecimal(values.Value("ContractAmount").ToString()), + MonthApprovalAmount = Funs.GetNewDecimal(values.Value("MonthApprovalAmount").ToString()), + ProjectApprovalAmount = Funs.GetNewDecimal(values.Value("ProjectApprovalAmount").ToString()) + }; + subExpenses.Add(trainSort); + } + } + #endregion + + #endregion } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit5.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit5.aspx.designer.cs index 2f2d76a1..0a099139 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit5.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit5.aspx.designer.cs @@ -40,139 +40,130 @@ namespace FineUIPro.Web.HSSE.Manager { protected global::FineUIPro.Form SimpleForm1; /// - /// GroupPanel34 控件。 + /// GroupPanel1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.GroupPanel GroupPanel34; + protected global::FineUIPro.GroupPanel GroupPanel1; /// - /// GroupPanel37 控件。 + /// GroupPanel2 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.GroupPanel GroupPanel37; + protected global::FineUIPro.GroupPanel GroupPanel2; /// - /// gvMonthPlan 控件。 + /// gvFiveExpenseC 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Grid gvMonthPlan; + protected global::FineUIPro.Grid gvFiveExpenseC; /// - /// Toolbar15 控件。 + /// txtCheckType 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Toolbar Toolbar15; + protected global::FineUIPro.TextBox txtCheckType; /// - /// btnNewMonthPlan 控件。 + /// TextBox1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Button btnNewMonthPlan; + protected global::FineUIPro.TextBox TextBox1; /// - /// TextBox36 控件。 + /// TextBox2 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox TextBox36; + protected global::FineUIPro.TextBox TextBox2; /// - /// TextBox37 控件。 + /// TextBox3 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox TextBox37; + protected global::FineUIPro.TextBox TextBox3; /// - /// TextBox38 控件。 + /// TextBox4 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox TextBox38; + protected global::FineUIPro.TextBox TextBox4; /// - /// GroupPanel38 控件。 + /// GroupPanel27 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.GroupPanel GroupPanel38; + protected global::FineUIPro.GroupPanel GroupPanel27; /// - /// gvReviewRecord 控件。 + /// gvSubExpenseC 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Grid gvReviewRecord; + protected global::FineUIPro.Grid gvSubExpenseC; /// - /// Toolbar16 控件。 + /// TextBox5 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Toolbar Toolbar16; + protected global::FineUIPro.TextBox TextBox5; /// - /// btnNewReviewRecord 控件。 + /// NumberBox4 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Button btnNewReviewRecord; + protected global::FineUIPro.NumberBox NumberBox4; /// - /// TextBox39 控件。 + /// NumberBox3 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox TextBox39; + protected global::FineUIPro.NumberBox NumberBox3; /// - /// TextBox40 控件。 + /// NumberBox2 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox TextBox40; - - /// - /// TextBox41 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TextBox41; + protected global::FineUIPro.NumberBox NumberBox2; /// /// Toolbar1 控件。 diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit6.aspx b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit6.aspx index 4af6ad87..e4114ee9 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit6.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit6.aspx @@ -1,353 +1,224 @@ -<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MonthReportCEdit6.aspx.cs" Inherits="FineUIPro.Web.HSSE.Manager.MonthReportCEdit6" %> +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MonthReportCEdit6.aspx.cs" + Inherits="FineUIPro.Web.HSSE.Manager.MonthReportCEdit6" %> - - 本月项目HSE费用管理 - - + HSE责任事故/事件描述
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- 序号 - - 投入项目 - - 五环工程 - - 施工分包商 - - 建安产值 -
- 本月 - - 项目累计 - - 本月 - - 项目累计 - - 本月 - - 项目累计 -
- 1 - - 基础管理 - - - - - - - - - - - - - - - - - - -
- 2 - - 安全技术 - - - - - - - - - - - - -
- 3 - - 职业健康 - - - - - - - - - - - - -
- 4 - - 安全防护 - - - - - - - - - - - - -
- 5 - - 化工试车 - - - - - - - - - - - - -
- 6 - - 教育培训 - - - - - - - - - - - - -
- 7 - - 文明施工环境保护 - - - - - - - - - - - - -
- 合计 - - - - - - - - - - - - -
-
-
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + + + + + + + --%> + + <%----%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit6.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit6.aspx.cs index 30b4b966..59b66eee 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit6.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit6.aspx.cs @@ -52,14 +52,19 @@ namespace FineUIPro.Web.HSSE.Manager #region 定义集合 /// - /// 6.1 五环HSE费用投入集合 + /// 本月伤害事故统计 /// - private static List fiveExpenses = new List(); + private static List injuryAccidents = new List(); /// - /// 6.2 分包商HSE费用投入集合 + /// 无伤害事故统计 /// - private static List subExpenses = new List(); + private static List noInjuryAccidents = new List(); + + /// + /// HSE绩效指标 + /// + private static List performanceIndicators = new List(); #endregion @@ -70,8 +75,9 @@ namespace FineUIPro.Web.HSSE.Manager { if (!IsPostBack) { - fiveExpenses.Clear(); - subExpenses.Clear(); + injuryAccidents.Clear(); + noInjuryAccidents.Clear(); + performanceIndicators.Clear(); this.MonthReportId = Request.Params["monthReportId"]; this.ProjectId = this.CurrUser.LoginProjectId; DateTime months = Convert.ToDateTime(Request.Params["months"]); @@ -90,155 +96,326 @@ namespace FineUIPro.Web.HSSE.Manager this.MonthReportId = monthReport.MonthReportId; this.ProjectId = monthReport.ProjectId; months = Convert.ToDateTime(monthReport.Months); - Model.SGGLDB db = Funs.DB; - this.nbMainCost1.Text = (monthReport.MainCost1 ?? 0).ToString(); - this.nbMainProjectCost1.Text = (monthReport.MainProjectCost1 ?? 0).ToString(); - this.nbSubCost1.Text = (monthReport.SubCost1 ?? 0).ToString(); - this.nbSubProjectCost1.Text = (monthReport.SubProjectCost1 ?? 0).ToString(); - this.nbMainCost2.Text = (monthReport.MainCost2 ?? 0).ToString(); - this.nbMainProjectCost2.Text = (monthReport.MainProjectCost2 ?? 0).ToString(); - this.nbSubCost2.Text = (monthReport.SubCost2 ?? 0).ToString(); - this.nbSubProjectCost2.Text = (monthReport.SubProjectCost2 ?? 0).ToString(); - this.nbMainCost3.Text = (monthReport.MainCost3 ?? 0).ToString(); - this.nbMainProjectCost3.Text = (monthReport.MainProjectCost3 ?? 0).ToString(); - this.nbSubCost3.Text = (monthReport.SubCost3 ?? 0).ToString(); - this.nbSubProjectCost3.Text = (monthReport.SubProjectCost3 ?? 0).ToString(); - this.nbMainCost4.Text = (monthReport.MainCost4 ?? 0).ToString(); - this.nbMainProjectCost4.Text = (monthReport.MainProjectCost4 ?? 0).ToString(); - this.nbSubCost4.Text = (monthReport.SubCost4 ?? 0).ToString(); - this.nbSubProjectCost4.Text = (monthReport.SubProjectCost4 ?? 0).ToString(); - this.nbMainCost5.Text = (monthReport.MainCost5 ?? 0).ToString(); - this.nbMainProjectCost5.Text = (monthReport.MainProjectCost5 ?? 0).ToString(); - this.nbSubCost5.Text = (monthReport.SubCost5 ?? 0).ToString(); - this.nbSubProjectCost5.Text = (monthReport.SubProjectCost5 ?? 0).ToString(); - this.nbMainCost6.Text = (monthReport.MainCost6 ?? 0).ToString(); - this.nbMainProjectCost6.Text = (monthReport.MainProjectCost6 ?? 0).ToString(); - this.nbSubCost6.Text = (monthReport.SubCost6 ?? 0).ToString(); - this.nbSubProjectCost6.Text = (monthReport.SubProjectCost6 ?? 0).ToString(); - this.nbMainCost7.Text = (monthReport.MainCost7 ?? 0).ToString(); - this.nbMainProjectCost7.Text = (monthReport.MainProjectCost7 ?? 0).ToString(); - this.nbSubCost7.Text = (monthReport.SubCost7 ?? 0).ToString(); - this.nbSubProjectCost7.Text = (monthReport.SubProjectCost7 ?? 0).ToString(); - this.nbMainCost.Text = (monthReport.MainCost ?? 0).ToString(); - this.nbMainProjectCost.Text = (monthReport.MainProjectCost ?? 0).ToString(); - this.nbSubCost.Text = (monthReport.SubCost ?? 0).ToString(); - this.nbSubProjectCost.Text = (monthReport.SubProjectCost ?? 0).ToString(); - this.nbJianAnCost.Text = (monthReport.JianAnCost ?? 0).ToString(); - this.nbJianAnProjectCost.Text = (monthReport.JianAnProjectCost ?? 0).ToString(); + txtDef.Text = monthReport.AccidentDef; + + #region 本月伤害事故统计 + injuryAccidents = BLL.InjuryAccidentCService.GetInjuryAccidentCByMonthReportId(this.MonthReportId); + if (injuryAccidents.Count > 0) + { + this.gvInjuryAccident.DataSource = injuryAccidents; + this.gvInjuryAccident.DataBind(); + OutputSummaryData(); + } + else + { + GetInjuryAccident(); + } + #endregion + + #region 本月无伤害事故统计 + noInjuryAccidents = BLL.NoInjuryAccidentCService.GetNoInjuryAccidentByMonthReportId(this.MonthReportId); + if (noInjuryAccidents.Count > 0) + { + this.gvNoInjuryAccident.DataSource = noInjuryAccidents; + this.gvNoInjuryAccident.DataBind(); + } + else + { + GetNoInjuryAccident(); + } + #endregion + + #region HSE绩效指标 + performanceIndicators = BLL.PerformanceIndicatorCService.GetPerformanceIndicatorByMonthReportId(this.MonthReportId); + if (performanceIndicators.Count > 0) + { + this.gvPerformanceIndicator.DataSource = performanceIndicators; + this.gvPerformanceIndicator.DataBind(); + } + else + { + GetPerformanceIndicator(); + } + #endregion } else { - GetFiveExpenseList(); //费用投入 + GetInjuryAccident(); + GetNoInjuryAccident(); + GetPerformanceIndicator(); } } } - #endregion - #region 费用投入 + #region 本月伤害事故统计 /// - /// 费用投入 + /// 本月伤害事故统计 /// - private void GetFiveExpenseList() + private void GetInjuryAccident() { - Model.Manager_MonthReportC mr = BLL.MonthReportCService.GetLastMonthReportByDate(endTime, this.ProjectId); - decimal? sMonthType1 = 0, sMonthType2 = 0, sMonthType3 = 0, sMonthType4 = 0, sMonthType5 = 0, sMonthType6 = 0; - decimal? tMonthType1 = 0, tMonthType2 = 0; - List payRegistrations = BLL.PayRegistrationService.GetPayRegistrationByPayDate(startTime, endTime, this.ProjectId); - if (payRegistrations != null) + List reports = AccidentReportService.GetAccidentReportsByAccidentTime(startTime, endTime, this.ProjectId); + List deathReports = AccidentReportService.GetAccidentReportsByAccidentType("1", startTime, endTime, this.ProjectId); + int i = 0; + Model.Manager_Month_InjuryAccidentC injury = new Model.Manager_Month_InjuryAccidentC { - foreach (var item in payRegistrations) - { - sMonthType1 += item.SMonthType1_1 + item.SMonthType1_2 + item.SMonthType1_3 + item.SMonthType1_4 + item.SMonthType1_5 + item.SMonthType1_6 + item.SMonthType1_7 + item.SMonthType1_8 + item.SMonthType1_9 + item.SMonthType1_10 + item.SMonthType1_11 + item.SMonthType1_12 + item.SMonthType1_13 + item.SMonthType1_14 + item.SMonthType1_15 + item.SMonthType1_16; - sMonthType2 += item.SMonthType2_1 + item.SMonthType2_2 + item.SMonthType2_3 + item.SMonthType2_4; - sMonthType3 += item.SMonthType3_1 + item.SMonthType3_2 + item.SMonthType3_3 + item.SMonthType3_4 + item.SMonthType3_5 + item.SMonthType3_6; - sMonthType4 += item.SMonthType4_1 + item.SMonthType4_2 + item.SMonthType4_3 + item.SMonthType4_4 + item.SMonthType4_5 + item.SMonthType4_6 + item.SMonthType4_7 + item.SMonthType4_8 + item.SMonthType4_9 + item.SMonthType4_10 + item.SMonthType4_11 + item.SMonthType4_12 + item.SMonthType4_13 + item.SMonthType4_14 + item.SMonthType4_15 + item.SMonthType4_16 + item.SMonthType4_17 + item.SMonthType4_18 + item.SMonthType4_19 + item.SMonthType4_20 + item.SMonthType4_21 + item.SMonthType4_22 + item.SMonthType4_23 + item.SMonthType4_24 + item.SMonthType4_25 + item.SMonthType4_26 + item.SMonthType4_27 + item.SMonthType4_28 + item.SMonthType4_29 + item.SMonthType4_30 + item.SMonthType4_31 + item.SMonthType4_32 + item.SMonthType4_33 + item.SMonthType4_34 + item.SMonthType4_35 + item.SMonthType4_35 + item.SMonthType4_36 + item.SMonthType4_37 + item.SMonthType4_38 + item.SMonthType4_39 + item.SMonthType4_40; - sMonthType5 += item.SMonthType5_1 + item.SMonthType5_2 + item.SMonthType5_3 + item.SMonthType5_4 + item.SMonthType5_5 + item.SMonthType5_6; - sMonthType6 += item.SMonthType6_1 + item.SMonthType6_2 + item.SMonthType6_3; - tMonthType1 += item.TMonthType1_1 + item.TMonthType1_2 + item.TMonthType1_3 + item.TMonthType1_4 + item.TMonthType1_5 + item.TMonthType1_6 + item.TMonthType1_7 + item.TMonthType1_8 + item.TMonthType1_9 + item.TMonthType1_10 + item.TMonthType1_11; - //tMonthType2 += item.TMonthType2_1 + item.TMonthType2_2 + item.TMonthType2_3 + item.TMonthType2_4 + item.TMonthType2_5 + item.TMonthType2_6 + item.TMonthType2_7 + item.TMonthType2_8 + item.TMonthType2_9; - } - this.nbMainCost1.Text = sMonthType1.ToString(); - this.nbMainCost2.Text = sMonthType2.ToString(); - this.nbMainCost3.Text = sMonthType3.ToString(); - this.nbMainCost4.Text = sMonthType4.ToString(); - this.nbMainCost5.Text = sMonthType5.ToString(); - this.nbMainCost6.Text = sMonthType6.ToString(); - this.nbMainCost7.Text = tMonthType1.ToString(); - this.nbMainCost.Text = (sMonthType1 + sMonthType2 + sMonthType3 + sMonthType4 + sMonthType5 + sMonthType6 + tMonthType1).ToString(); - } - if (mr != null) - { - this.nbMainProjectCost1.Text = ((mr.MainProjectCost1 ?? 0) + sMonthType1).ToString(); - this.nbMainProjectCost2.Text = ((mr.MainProjectCost2 ?? 0) + sMonthType2).ToString(); - this.nbMainProjectCost3.Text = ((mr.MainProjectCost3 ?? 0) + sMonthType3).ToString(); - this.nbMainProjectCost4.Text = ((mr.MainProjectCost4 ?? 0) + sMonthType4).ToString(); - this.nbMainProjectCost5.Text = ((mr.MainProjectCost5 ?? 0) + sMonthType5).ToString(); - this.nbMainProjectCost6.Text = ((mr.MainProjectCost6 ?? 0) + sMonthType6).ToString(); - this.nbMainProjectCost7.Text = ((mr.MainProjectCost7 ?? 0) + tMonthType1).ToString(); - this.nbMainProjectCost.Text = ((mr.MainProjectCost ?? 0) + (sMonthType1 + sMonthType2 + sMonthType3 + sMonthType4 + sMonthType5 + sMonthType6 + tMonthType1)).ToString(); - } - else + InjuryAccidentId = SQLHelper.GetNewID(typeof(Model.Manager_Month_InjuryAccidentC)), + UnitName = "五环", + AttemptedIncidents = BLL.AccidentHandleService.GetAccidentHandleByAccidentDate(startTime, endTime, this.ProjectId, BLL.Const.UnitId_CWCEC),//未遂事件起数 + FirstAidDressing = null, // + MedicalTreatment = null,// + WorkLimitation = null,// + LossPerson = (from x in reports where x.UnitId==Const.UnitId_CWCEC select x.PeopleNum).Sum(), + LossWorkTime = (from x in reports where x.UnitId == Const.UnitId_CWCEC select x.WorkingHoursLoss).Sum(), + LossEconomy = (from x in reports where x.UnitId == Const.UnitId_CWCEC select x.EconomicLoss).Sum() + (from x in reports where x.UnitId == Const.UnitId_CWCEC select x.EconomicOtherLoss).Sum(), + DeathPerson = (from x in deathReports where x.UnitId == Const.UnitId_CWCEC select x.PeopleNum).Sum(), + DeathWorkTime = (from x in deathReports where x.UnitId == Const.UnitId_CWCEC select x.WorkingHoursLoss).Sum(), + DeathEconomy = (from x in deathReports where x.UnitId == Const.UnitId_CWCEC select x.EconomicLoss).Sum() + (from x in deathReports where x.UnitId == Const.UnitId_CWCEC select x.EconomicOtherLoss).Sum(), + }; + injuryAccidents.Add(injury); + i++; + Model.Manager_Month_InjuryAccidentC injury2 = new Model.Manager_Month_InjuryAccidentC { + InjuryAccidentId = SQLHelper.GetNewID(typeof(Model.Manager_Month_InjuryAccidentC)), + UnitName = "分包商", + AttemptedIncidents = BLL.AccidentHandleService.GetAccidentHandleByAccidentDate(startTime, endTime, this.ProjectId, BLL.Const.UnitId_Con),//未遂事件起数,//未遂事件起数 + FirstAidDressing = null, // + MedicalTreatment = null,// + WorkLimitation = null,// + LossPerson = (from x in reports + join y in Funs.DB.Project_ProjectUnit on x.UnitId equals y.UnitId + where y.UnitType == Const.ProjectUnitType_2 select x.PeopleNum).Sum(), + LossWorkTime = (from x in reports + join y in Funs.DB.Project_ProjectUnit on x.UnitId equals y.UnitId + where y.UnitType == Const.ProjectUnitType_2 + select x.WorkingHoursLoss).Sum(), + LossEconomy = (from x in reports + join y in Funs.DB.Project_ProjectUnit on x.UnitId equals y.UnitId + where y.UnitType == Const.ProjectUnitType_2 + select x.EconomicLoss).Sum() + (from x in reports + join y in Funs.DB.Project_ProjectUnit on x.UnitId equals y.UnitId + where y.UnitType == Const.ProjectUnitType_2 + select x.EconomicOtherLoss).Sum(), + DeathPerson = (from x in deathReports + join y in Funs.DB.Project_ProjectUnit on x.UnitId equals y.UnitId + where y.UnitType == Const.ProjectUnitType_2 + select x.PeopleNum).Sum(), + DeathWorkTime = (from x in deathReports + join y in Funs.DB.Project_ProjectUnit on x.UnitId equals y.UnitId + where y.UnitType == Const.ProjectUnitType_2 + select x.WorkingHoursLoss).Sum(), + DeathEconomy = (from x in deathReports + join y in Funs.DB.Project_ProjectUnit on x.UnitId equals y.UnitId + where y.UnitType == Const.ProjectUnitType_2 + select x.EconomicLoss).Sum() + (from x in deathReports + join y in Funs.DB.Project_ProjectUnit on x.UnitId equals y.UnitId + where y.UnitType == Const.ProjectUnitType_2 + select x.EconomicOtherLoss).Sum(), + }; + injuryAccidents.Add(injury2); - this.nbMainProjectCost1.Text = sMonthType1.ToString(); - this.nbMainProjectCost2.Text = sMonthType2.ToString(); - this.nbMainProjectCost3.Text = sMonthType3.ToString(); - this.nbMainProjectCost4.Text = sMonthType4.ToString(); - this.nbMainProjectCost5.Text = sMonthType5.ToString(); - this.nbMainProjectCost6.Text = sMonthType6.ToString(); - this.nbMainProjectCost7.Text = tMonthType1.ToString(); - this.nbMainProjectCost.Text = (sMonthType1 + sMonthType2 + sMonthType3 + sMonthType4 + sMonthType5 + sMonthType6 + tMonthType1).ToString(); - } + this.gvInjuryAccident.DataSource = injuryAccidents; + this.gvInjuryAccident.DataBind(); - decimal? subMonthType1 = 0, subMonthType2 = 0, subMonthType3 = 0, subMonthType4 = 0, subMonthType5 = 0, subMonthType6 = 0, subMonthType7 = 0; - List subPayRegistrations = BLL.SubPayRegistrationService.GetSubPayRegistrationByPayDate(startTime, endTime, this.ProjectId); - if (subPayRegistrations != null) + OutputSummaryData(); + } + + /// + /// 求和 + /// + private void OutputSummaryData() + { + JObject summary = new JObject(); + + int TotalAttemptedIncidents = 0, TotalFirstAidDressing = 0, TotalMedicalTreatment = 0, TotalWorkLimitation = 0, TotalLossPerson = 0, TotalDeathPerson = 0; + decimal TotalLossWorkTime = 0, TotalLossEconomy = 0, TotalDeathWorkTime = 0, TotalDeathEconomy = 0; + foreach (JObject mergedRow in gvInjuryAccident.GetMergedData()) { - foreach (var item in subPayRegistrations) + JObject values = mergedRow.Value("values"); + if (!string.IsNullOrEmpty(values["AttemptedIncidents"].ToString())) { - subMonthType1 += item.SMainApproveType1 + item.SMainApproveType2 + item.SMainApproveType3 + item.SMainApproveType4 + item.SMainApproveType5; - subMonthType2 += item.SMainApproveType6; - subMonthType3 += item.SMainApproveType7; - subMonthType4 += item.SMainApproveType8 + item.SMainApproveType9 + item.SMainApproveType10 + item.SMainApproveType11 + item.SMainApproveType12 + item.SMainApproveType13 + item.SMainApproveType14 + item.SMainApproveType15 + item.SMainApproveType16 + item.SMainApproveType17 + item.SMainApproveType18 + item.SMainApproveType19 + item.SMainApproveType20 + item.SMainApproveType21; - subMonthType5 += item.SMainApproveType22 + item.SMainApproveType23 + item.SMainApproveType24 + item.SMainApproveType25 + item.SMainApproveType26 + item.SMainApproveType27; - subMonthType6 += item.SMainApproveType28; - subMonthType6 += item.SMainApproveType29; + TotalAttemptedIncidents += values.Value("AttemptedIncidents"); + } + if (!string.IsNullOrEmpty(values["FirstAidDressing"].ToString())) + { + TotalFirstAidDressing += values.Value("FirstAidDressing"); + } + if (!string.IsNullOrEmpty(values["MedicalTreatment"].ToString())) + { + TotalMedicalTreatment += values.Value("MedicalTreatment"); + } + if (!string.IsNullOrEmpty(values["WorkLimitation"].ToString())) + { + TotalWorkLimitation += values.Value("WorkLimitation"); + } + if (!string.IsNullOrEmpty(values["LossPerson"].ToString())) + { + TotalLossPerson += values.Value("LossPerson"); + } + if (!string.IsNullOrEmpty(values["LossWorkTime"].ToString())) + { + TotalLossWorkTime += values.Value("LossWorkTime"); + } + if (!string.IsNullOrEmpty(values["LossEconomy"].ToString())) + { + TotalLossEconomy += values.Value("LossEconomy"); + } + if (!string.IsNullOrEmpty(values["DeathPerson"].ToString())) + { + TotalDeathPerson += values.Value("DeathPerson"); + } + if (!string.IsNullOrEmpty(values["DeathWorkTime"].ToString())) + { + TotalDeathWorkTime += values.Value("DeathWorkTime"); + } + if (!string.IsNullOrEmpty(values["DeathEconomy"].ToString())) + { + TotalDeathEconomy += values.Value("DeathEconomy"); } - this.nbSubCost1.Text = subMonthType1.ToString(); - this.nbSubCost2.Text = subMonthType2.ToString(); - this.nbSubCost3.Text = subMonthType3.ToString(); - this.nbSubCost4.Text = subMonthType4.ToString(); - this.nbSubCost5.Text = subMonthType5.ToString(); - this.nbSubCost6.Text = subMonthType6.ToString(); - this.nbSubCost7.Text = subMonthType7.ToString(); - this.nbSubCost.Text = (subMonthType1 + subMonthType2 + subMonthType3 + subMonthType4 + subMonthType5 + subMonthType6 + subMonthType7).ToString(); - } - if (mr != null) - { - this.nbSubProjectCost1.Text = ((mr.SubProjectCost1 ?? 0) + subMonthType1).ToString(); - this.nbSubProjectCost2.Text = ((mr.SubProjectCost2 ?? 0) + subMonthType2).ToString(); - this.nbSubProjectCost3.Text = ((mr.SubProjectCost3 ?? 0) + subMonthType3).ToString(); - this.nbSubProjectCost4.Text = ((mr.SubProjectCost4 ?? 0) + subMonthType4).ToString(); - this.nbSubProjectCost5.Text = ((mr.SubProjectCost5 ?? 0) + subMonthType5).ToString(); - this.nbSubProjectCost6.Text = ((mr.SubProjectCost6 ?? 0) + subMonthType6).ToString(); - this.nbSubProjectCost7.Text = ((mr.SubProjectCost7 ?? 0) + subMonthType7).ToString(); - this.nbSubProjectCost.Text = ((mr.SubProjectCost ?? 0) + (subMonthType1 + subMonthType2 + subMonthType3 + subMonthType4 + subMonthType5 + subMonthType6 + subMonthType7)).ToString(); - this.nbJianAnProjectCost.Text = (mr.JianAnProjectCost ?? 0).ToString(); - } - else - { - this.nbSubProjectCost1.Text = subMonthType1.ToString(); - this.nbSubProjectCost2.Text = subMonthType2.ToString(); - this.nbSubProjectCost3.Text = subMonthType3.ToString(); - this.nbSubProjectCost4.Text = subMonthType4.ToString(); - this.nbSubProjectCost5.Text = subMonthType5.ToString(); - this.nbSubProjectCost6.Text = subMonthType6.ToString(); - this.nbSubProjectCost7.Text = subMonthType7.ToString(); - this.nbSubProjectCost.Text = (subMonthType1 + subMonthType2 + subMonthType3 + subMonthType4 + subMonthType5 + subMonthType6 + subMonthType7).ToString(); } + summary.Add("UnitName", "项目合计"); + summary.Add("AttemptedIncidents", TotalAttemptedIncidents.ToString("F2")); + summary.Add("FirstAidDressing", TotalFirstAidDressing.ToString("F2")); + summary.Add("MedicalTreatment", TotalMedicalTreatment.ToString("F2")); + summary.Add("WorkLimitation", TotalWorkLimitation.ToString("F2")); + summary.Add("LossPerson", TotalLossPerson.ToString("F2")); + summary.Add("LossWorkTime", TotalLossWorkTime.ToString("F2")); + summary.Add("LossEconomy", TotalLossEconomy.ToString("F2")); + summary.Add("DeathPerson", TotalDeathPerson.ToString("F2")); + summary.Add("DeathWorkTime", TotalDeathWorkTime.ToString("F2")); + summary.Add("DeathEconomy", TotalDeathEconomy.ToString("F2")); + + gvInjuryAccident.SummaryData = summary; } #endregion + #region 本月无伤害事故统计 + /// + /// 本月无伤害事故统计 + /// + private void GetNoInjuryAccident() + { + Model.Manager_Month_NoInjuryAccidentC noInjury = new Model.Manager_Month_NoInjuryAccidentC + { + NoInjuryAccidentId = SQLHelper.GetNewID(typeof(Model.Manager_Month_NoInjuryAccidentC)), + AccidentType = null, + EconomicLosses = null, + WHAccidentCount = null, + SubAccidentCount = null, + }; + noInjuryAccidents.Add(noInjury); + + this.gvNoInjuryAccident.DataSource = noInjuryAccidents; + this.gvNoInjuryAccident.DataBind(); + } + + #endregion + + #region HSE绩效指标 + /// + /// HSE绩效指标 + /// + private void GetPerformanceIndicator() + { + int i = 0; + Model.Manager_Month_PerformanceIndicatorC performanceIndicator = new Model.Manager_Month_PerformanceIndicatorC + { + PerformanceIndicatorId = SQLHelper.GetNewID(typeof(Model.Manager_Month_PerformanceIndicatorC)), + IndicatorType = "指导性指标", + IndicatorName = "不安全行为指数(不安全行为数/审核小时数)", + IndicatorValue = null, + SortIndex = 1, + }; + performanceIndicators.Add(performanceIndicator); + i++; + + var units = from x in Funs.DB.Project_ProjectUnit + where x.ProjectId == this.ProjectId && x.UnitType == "2" + orderby x.UnitType + select x; + if (units.Count() > 0) + { + foreach (Model.Project_ProjectUnit u in units) + { + Model.Manager_Month_PerformanceIndicatorC performanceIndicator2 = new Model.Manager_Month_PerformanceIndicatorC + { + PerformanceIndicatorId = SQLHelper.GetNewID(typeof(Model.Manager_Month_PerformanceIndicatorC)), + IndicatorType = "过程性指标", + IndicatorName = "HSE隐患按时整改率 | " + BLL.UnitService.GetUnitNameByUnitId(u.UnitId), + IndicatorValue = null, + SortIndex = 2, + }; + performanceIndicators.Add(performanceIndicator2); + } + i++; + } + + Model.Manager_Month_PerformanceIndicatorC performanceIndicator3 = new Model.Manager_Month_PerformanceIndicatorC + { + PerformanceIndicatorId = SQLHelper.GetNewID(typeof(Model.Manager_Month_PerformanceIndicatorC)), + IndicatorType = "结果性指标", + IndicatorName = "百万工时总可记录事件率(总可记录事件人数/总工时)*10^6", + IndicatorValue = null, + SortIndex = 3, + }; + performanceIndicators.Add(performanceIndicator3); + i++; + Model.Manager_Month_PerformanceIndicatorC performanceIndicator4 = new Model.Manager_Month_PerformanceIndicatorC + { + PerformanceIndicatorId = SQLHelper.GetNewID(typeof(Model.Manager_Month_PerformanceIndicatorC)), + IndicatorType = "结果性指标", + IndicatorName = "百万工时损失工时率(总损失工时/总工时)*10^6", + IndicatorValue = null, + SortIndex = 4, + }; + performanceIndicators.Add(performanceIndicator4); + i++; + Model.Manager_Month_PerformanceIndicatorC performanceIndicator5 = new Model.Manager_Month_PerformanceIndicatorC + { + PerformanceIndicatorId = SQLHelper.GetNewID(typeof(Model.Manager_Month_PerformanceIndicatorC)), + IndicatorType = "结果性指标", + IndicatorName = "百万工时损失工时伤害事故率(损失工时伤害事故人数/总工时)*10^6", + IndicatorValue = null, + SortIndex = 5, + }; + performanceIndicators.Add(performanceIndicator5); + i++; + Model.Manager_Month_PerformanceIndicatorC performanceIndicator6 = new Model.Manager_Month_PerformanceIndicatorC + { + PerformanceIndicatorId = SQLHelper.GetNewID(typeof(Model.Manager_Month_PerformanceIndicatorC)), + IndicatorType = "结果性指标", + IndicatorName = "百万工时事故发生频率(损失工时伤害事故起数/总工时)*10^6", + IndicatorValue = null, + SortIndex = 6, + }; + performanceIndicators.Add(performanceIndicator6); + i++; + Model.Manager_Month_PerformanceIndicatorC performanceIndicator7 = new Model.Manager_Month_PerformanceIndicatorC + { + PerformanceIndicatorId = SQLHelper.GetNewID(typeof(Model.Manager_Month_PerformanceIndicatorC)), + IndicatorType = "结果性指标", + IndicatorName = "百万工时死亡事故频率(死亡事故起数/总工时)*10^6", + IndicatorValue = null, + SortIndex = 7, + }; + performanceIndicators.Add(performanceIndicator7); + i++; + Model.Manager_Month_PerformanceIndicatorC performanceIndicator8 = new Model.Manager_Month_PerformanceIndicatorC + { + PerformanceIndicatorId = SQLHelper.GetNewID(typeof(Model.Manager_Month_PerformanceIndicatorC)), + IndicatorType = "结果性指标", + IndicatorName = "百万工时事故死亡率(死亡事故人数/总工时)*10^6", + IndicatorValue = null, + SortIndex = 8, + }; + performanceIndicators.Add(performanceIndicator8); + + this.gvPerformanceIndicator.DataSource = performanceIndicators; + this.gvPerformanceIndicator.DataBind(); + } + + #endregion + #endregion + #region 保存按钮 /// /// 保存按钮 @@ -250,42 +427,11 @@ namespace FineUIPro.Web.HSSE.Manager Model.Manager_MonthReportC oldMonthReport = BLL.MonthReportCService.GetMonthReportByMonths(Convert.ToDateTime(Request.Params["months"]), this.CurrUser.LoginProjectId); if (oldMonthReport != null) { - oldMonthReport.MainCost1 = Funs.GetNewDecimalOrZero(this.nbMainCost1.Text.Trim()); - oldMonthReport.MainProjectCost1 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost1.Text.Trim()); - oldMonthReport.SubCost1 = Funs.GetNewDecimalOrZero(this.nbSubCost1.Text.Trim()); - oldMonthReport.SubProjectCost1 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost1.Text.Trim()); - oldMonthReport.MainCost2 = Funs.GetNewDecimalOrZero(this.nbMainCost2.Text.Trim()); - oldMonthReport.MainProjectCost2 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost2.Text.Trim()); - oldMonthReport.SubCost2 = Funs.GetNewDecimalOrZero(this.nbSubCost2.Text.Trim()); - oldMonthReport.SubProjectCost2 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost2.Text.Trim()); - oldMonthReport.MainCost3 = Funs.GetNewDecimalOrZero(this.nbMainCost3.Text.Trim()); - oldMonthReport.MainProjectCost3 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost3.Text.Trim()); - oldMonthReport.SubCost3 = Funs.GetNewDecimalOrZero(this.nbSubCost3.Text.Trim()); - oldMonthReport.SubProjectCost3 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost3.Text.Trim()); - oldMonthReport.MainCost4 = Funs.GetNewDecimalOrZero(this.nbMainCost4.Text.Trim()); - oldMonthReport.MainProjectCost4 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost4.Text.Trim()); - oldMonthReport.SubCost4 = Funs.GetNewDecimalOrZero(this.nbSubCost4.Text.Trim()); - oldMonthReport.SubProjectCost4 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost4.Text.Trim()); - oldMonthReport.MainCost5 = Funs.GetNewDecimalOrZero(this.nbMainCost5.Text.Trim()); - oldMonthReport.MainProjectCost5 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost5.Text.Trim()); - oldMonthReport.SubCost5 = Funs.GetNewDecimalOrZero(this.nbSubCost5.Text.Trim()); - oldMonthReport.SubProjectCost5 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost5.Text.Trim()); - oldMonthReport.MainCost6 = Funs.GetNewDecimalOrZero(this.nbMainCost6.Text.Trim()); - oldMonthReport.MainProjectCost6 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost6.Text.Trim()); - oldMonthReport.SubCost6 = Funs.GetNewDecimalOrZero(this.nbSubCost6.Text.Trim()); - oldMonthReport.SubProjectCost6 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost6.Text.Trim()); - oldMonthReport.MainCost7 = Funs.GetNewDecimalOrZero(this.nbMainCost7.Text.Trim()); - oldMonthReport.MainProjectCost7 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost7.Text.Trim()); - oldMonthReport.SubCost7 = Funs.GetNewDecimalOrZero(this.nbSubCost7.Text.Trim()); - oldMonthReport.SubProjectCost7 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost7.Text.Trim()); - oldMonthReport.MainCost = Funs.GetNewDecimalOrZero(this.nbMainCost.Text.Trim()); - oldMonthReport.MainProjectCost = Funs.GetNewDecimalOrZero(this.nbMainProjectCost.Text.Trim()); - oldMonthReport.SubCost = Funs.GetNewDecimalOrZero(this.nbSubCost.Text.Trim()); - oldMonthReport.SubProjectCost = Funs.GetNewDecimalOrZero(this.nbSubProjectCost.Text.Trim()); - oldMonthReport.JianAnCost = Funs.GetNewDecimalOrZero(this.nbJianAnCost.Text.Trim()); - oldMonthReport.JianAnProjectCost = Funs.GetNewDecimalOrZero(this.nbJianAnProjectCost.Text.Trim()); + oldMonthReport.AccidentDef = this.txtDef.Text.Trim(); BLL.MonthReportCService.UpdateMonthReport(oldMonthReport); - + OperateInjuryAccidentSort(MonthReportId); + OperateNoInjuryAccidentSort(MonthReportId); + OperatePerformanceIndicatorSort(MonthReportId); BLL.LogService.AddSys_Log(this.CurrUser, oldMonthReport.MonthReportCode, oldMonthReport.MonthReportId, BLL.Const.ProjectManagerMonthCMenuId, BLL.Const.BtnModify); } else @@ -299,49 +445,146 @@ namespace FineUIPro.Web.HSSE.Manager monthReport.Months = Funs.GetNewDateTime(Request.Params["months"]); monthReport.ReportMan = this.CurrUser.UserId; monthReport.MonthReportDate = DateTime.Now; - monthReport.MainCost1 = Funs.GetNewDecimalOrZero(this.nbMainCost1.Text.Trim()); - monthReport.MainProjectCost1 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost1.Text.Trim()); - monthReport.SubCost1 = Funs.GetNewDecimalOrZero(this.nbSubCost1.Text.Trim()); - monthReport.SubProjectCost1 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost1.Text.Trim()); - monthReport.MainCost2 = Funs.GetNewDecimalOrZero(this.nbMainCost2.Text.Trim()); - monthReport.MainProjectCost2 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost2.Text.Trim()); - monthReport.SubCost2 = Funs.GetNewDecimalOrZero(this.nbSubCost2.Text.Trim()); - monthReport.SubProjectCost2 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost2.Text.Trim()); - monthReport.MainCost3 = Funs.GetNewDecimalOrZero(this.nbMainCost3.Text.Trim()); - monthReport.MainProjectCost3 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost3.Text.Trim()); - monthReport.SubCost3 = Funs.GetNewDecimalOrZero(this.nbSubCost3.Text.Trim()); - monthReport.SubProjectCost3 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost3.Text.Trim()); - monthReport.MainCost4 = Funs.GetNewDecimalOrZero(this.nbMainCost4.Text.Trim()); - monthReport.MainProjectCost4 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost4.Text.Trim()); - monthReport.SubCost4 = Funs.GetNewDecimalOrZero(this.nbSubCost4.Text.Trim()); - monthReport.SubProjectCost4 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost4.Text.Trim()); - monthReport.MainCost5 = Funs.GetNewDecimalOrZero(this.nbMainCost5.Text.Trim()); - monthReport.MainProjectCost5 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost5.Text.Trim()); - monthReport.SubCost5 = Funs.GetNewDecimalOrZero(this.nbSubCost5.Text.Trim()); - monthReport.SubProjectCost5 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost5.Text.Trim()); - monthReport.MainCost6 = Funs.GetNewDecimalOrZero(this.nbMainCost6.Text.Trim()); - monthReport.MainProjectCost6 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost6.Text.Trim()); - monthReport.SubCost6 = Funs.GetNewDecimalOrZero(this.nbSubCost6.Text.Trim()); - monthReport.SubProjectCost6 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost6.Text.Trim()); - monthReport.MainCost7 = Funs.GetNewDecimalOrZero(this.nbMainCost7.Text.Trim()); - monthReport.MainProjectCost7 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost7.Text.Trim()); - monthReport.SubCost7 = Funs.GetNewDecimalOrZero(this.nbSubCost7.Text.Trim()); - monthReport.SubProjectCost7 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost7.Text.Trim()); - monthReport.MainCost = Funs.GetNewDecimalOrZero(this.nbMainCost.Text.Trim()); - monthReport.MainProjectCost = Funs.GetNewDecimalOrZero(this.nbMainProjectCost.Text.Trim()); - monthReport.SubCost = Funs.GetNewDecimalOrZero(this.nbSubCost.Text.Trim()); - monthReport.SubProjectCost = Funs.GetNewDecimalOrZero(this.nbSubProjectCost.Text.Trim()); - monthReport.JianAnCost = Funs.GetNewDecimalOrZero(this.nbJianAnCost.Text.Trim()); - monthReport.JianAnProjectCost = Funs.GetNewDecimalOrZero(this.nbJianAnProjectCost.Text.Trim()); + monthReport.AccidentDef = this.txtDef.Text.Trim(); BLL.MonthReportCService.AddMonthReport(monthReport); - + OperateInjuryAccidentSort(this.MonthReportId); + OperateNoInjuryAccidentSort(this.MonthReportId); + OperatePerformanceIndicatorSort(this.MonthReportId); BLL.LogService.AddSys_Log(this.CurrUser, monthReport.MonthReportCode, monthReport.MonthReportId, BLL.Const.ProjectManagerMonthCMenuId, BLL.Const.BtnAdd); } ShowNotify("保存成功!", MessageBoxIcon.Success); PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); } + #region 本月伤害事故统计 + /// + /// 本月伤害事故统计 + /// + /// + private void OperateInjuryAccidentSort(string monthReportId) + { + BLL.InjuryAccidentCService.DeleteInjuryAccidengtByMonthReportId(monthReportId); + jerqueSaveInjuryAccidentCList(); + foreach (Model.Manager_Month_InjuryAccidentC injury in injuryAccidents) + { + injury.MonthReportId = monthReportId; + BLL.InjuryAccidentCService.AddInjuryAccidentC(injury); + } + } + /// + /// 检查并保存本月伤害事故统计 + /// + private void jerqueSaveInjuryAccidentCList() + { + injuryAccidents.Clear(); + JArray mergedData = gvInjuryAccident.GetMergedData(); + foreach (JObject mergedRow in mergedData) + { + string status = mergedRow.Value("status"); + JObject values = mergedRow.Value("values"); + int i = mergedRow.Value("index"); + Model.Manager_Month_InjuryAccidentC monthPlanSort = new Model.Manager_Month_InjuryAccidentC + { + InjuryAccidentId = this.gvInjuryAccident.Rows[i].DataKeys[0].ToString(), + UnitName = values.Value("UnitName").ToString(), + AttemptedIncidents = Funs.GetNewInt(values.Value("AttemptedIncidents").ToString()), + FirstAidDressing = Funs.GetNewInt(values.Value("FirstAidDressing").ToString()), + MedicalTreatment = Funs.GetNewInt(values.Value("MedicalTreatment").ToString()), + WorkLimitation = Funs.GetNewInt(values.Value("WorkLimitation").ToString()), + LossPerson = Funs.GetNewInt(values.Value("LossPerson").ToString()), + LossWorkTime = Funs.GetNewDecimal(values.Value("LossWorkTime").ToString()), + LossEconomy = Funs.GetNewDecimal(values.Value("LossEconomy").ToString()), + DeathPerson = Funs.GetNewInt(values.Value("DeathPerson").ToString()), + DeathWorkTime = Funs.GetNewDecimal(values.Value("DeathWorkTime").ToString()), + DeathEconomy = Funs.GetNewDecimal(values.Value("DeathEconomy").ToString()), + }; + injuryAccidents.Add(monthPlanSort); + } + } + #endregion + + #region 本月无伤害事故统计 + /// + /// 本月伤害事故统计 + /// + /// + private void OperateNoInjuryAccidentSort(string monthReportId) + { + BLL.NoInjuryAccidentCService.DeleteNoInjuryAccidentByMonthReportId(monthReportId); + jerqueSaveNoInjuryAccidentCList(); + foreach (Model.Manager_Month_NoInjuryAccidentC noInjury in noInjuryAccidents) + { + noInjury.MonthReportId = monthReportId; + BLL.NoInjuryAccidentCService.AddNoInjuryAccident(noInjury); + } + } + + /// + /// 检查并保存本月无伤害事故统计 + /// + private void jerqueSaveNoInjuryAccidentCList() + { + noInjuryAccidents.Clear(); + JArray mergedData = gvNoInjuryAccident.GetMergedData(); + foreach (JObject mergedRow in mergedData) + { + string status = mergedRow.Value("status"); + JObject values = mergedRow.Value("values"); + int i = mergedRow.Value("index"); + Model.Manager_Month_NoInjuryAccidentC noInjuryAccident = new Model.Manager_Month_NoInjuryAccidentC + { + NoInjuryAccidentId = this.gvNoInjuryAccident.Rows[i].DataKeys[0].ToString(), + AccidentType = values.Value("AccidentType").ToString(), + EconomicLosses = Funs.GetNewDecimal(values.Value("EconomicLosses").ToString()), + WHAccidentCount = Funs.GetNewInt(values.Value("WHAccidentCount").ToString()), + SubAccidentCount = Funs.GetNewInt(values.Value("SubAccidentCount").ToString()), + }; + noInjuryAccidents.Add(noInjuryAccident); + } + } + #endregion + + #region HSE绩效指标 + /// + /// HSE绩效指标 + /// + /// + private void OperatePerformanceIndicatorSort(string monthReportId) + { + BLL.PerformanceIndicatorCService.DeletePerformanceIndicatorByMonthReportId(monthReportId); + jerqueSavePerformanceIndicatorCList(); + foreach (Model.Manager_Month_PerformanceIndicatorC performanceIndicator in performanceIndicators) + { + performanceIndicator.MonthReportId = monthReportId; + BLL.PerformanceIndicatorCService.AddPerformanceIndicator(performanceIndicator); + } + } + + /// + /// 检查并保存HSE绩效指标 + /// + private void jerqueSavePerformanceIndicatorCList() + { + performanceIndicators.Clear(); + JArray mergedData = gvPerformanceIndicator.GetMergedData(); + foreach (JObject mergedRow in mergedData) + { + string status = mergedRow.Value("status"); + JObject values = mergedRow.Value("values"); + int i = mergedRow.Value("index"); + Model.Manager_Month_PerformanceIndicatorC performanceIndicator = new Model.Manager_Month_PerformanceIndicatorC + { + PerformanceIndicatorId = this.gvPerformanceIndicator.Rows[i].DataKeys[0].ToString(), + IndicatorType = values.Value("IndicatorType").ToString(), + IndicatorName = values.Value("IndicatorName").ToString(), + IndicatorValue = values.Value("IndicatorValue").ToString(), + SortIndex = Funs.GetNewInt(values.Value("SortIndex").ToString()), + }; + performanceIndicators.Add(performanceIndicator); + } + } + #endregion #endregion } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit6.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit6.aspx.designer.cs index f173a178..ecb001cf 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit6.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit6.aspx.designer.cs @@ -31,13 +31,238 @@ namespace FineUIPro.Web.HSSE.Manager { protected global::FineUIPro.PageManager PageManager1; /// - /// Panel1 控件。 + /// SimpleForm1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Panel Panel1; + protected global::FineUIPro.Form SimpleForm1; + + /// + /// GroupPanel34 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel34; + + /// + /// GroupPanel37 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel37; + + /// + /// GroupPanel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel1; + + /// + /// gvInjuryAccident 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid gvInjuryAccident; + + /// + /// NumberBox1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox1; + + /// + /// NumberBox2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox2; + + /// + /// NumberBox3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox3; + + /// + /// NumberBox4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox4; + + /// + /// NumberBox5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox5; + + /// + /// NumberBox6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox6; + + /// + /// NumberBox7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox7; + + /// + /// NumberBox8 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox8; + + /// + /// NumberBox9 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox9; + + /// + /// NumberBox10 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox10; + + /// + /// GroupPanel2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel2; + + /// + /// gvNoInjuryAccident 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid gvNoInjuryAccident; + + /// + /// TextBox1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox1; + + /// + /// NumberBox11 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox11; + + /// + /// NumberBox12 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox12; + + /// + /// NumberBox13 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox13; + + /// + /// GroupPanel3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel3; + + /// + /// txtDef 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtDef; + + /// + /// GroupPanel4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel4; + + /// + /// gvPerformanceIndicator 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid gvPerformanceIndicator; + + /// + /// TextBox4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox4; /// /// Toolbar1 控件。 @@ -56,320 +281,5 @@ namespace FineUIPro.Web.HSSE.Manager { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSave; - - /// - /// ContentPanel1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ContentPanel ContentPanel1; - - /// - /// nbMainCost1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbMainCost1; - - /// - /// nbMainProjectCost1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbMainProjectCost1; - - /// - /// nbSubCost1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbSubCost1; - - /// - /// nbSubProjectCost1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbSubProjectCost1; - - /// - /// nbJianAnCost 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbJianAnCost; - - /// - /// nbJianAnProjectCost 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbJianAnProjectCost; - - /// - /// nbMainCost2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbMainCost2; - - /// - /// nbMainProjectCost2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbMainProjectCost2; - - /// - /// nbSubCost2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbSubCost2; - - /// - /// nbSubProjectCost2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbSubProjectCost2; - - /// - /// nbMainCost3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbMainCost3; - - /// - /// nbMainProjectCost3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbMainProjectCost3; - - /// - /// nbSubCost3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbSubCost3; - - /// - /// nbSubProjectCost3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbSubProjectCost3; - - /// - /// nbMainCost4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbMainCost4; - - /// - /// nbMainProjectCost4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbMainProjectCost4; - - /// - /// nbSubCost4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbSubCost4; - - /// - /// nbSubProjectCost4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbSubProjectCost4; - - /// - /// nbMainCost5 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbMainCost5; - - /// - /// nbMainProjectCost5 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbMainProjectCost5; - - /// - /// nbSubCost5 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbSubCost5; - - /// - /// nbSubProjectCost5 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbSubProjectCost5; - - /// - /// nbMainCost6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbMainCost6; - - /// - /// nbMainProjectCost6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbMainProjectCost6; - - /// - /// nbSubCost6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbSubCost6; - - /// - /// nbSubProjectCost6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbSubProjectCost6; - - /// - /// nbMainCost7 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbMainCost7; - - /// - /// nbMainProjectCost7 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbMainProjectCost7; - - /// - /// nbSubCost7 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbSubCost7; - - /// - /// nbSubProjectCost7 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbSubProjectCost7; - - /// - /// nbMainCost 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbMainCost; - - /// - /// nbMainProjectCost 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbMainProjectCost; - - /// - /// nbSubCost 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbSubCost; - - /// - /// nbSubProjectCost 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbSubProjectCost; } } diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit7.aspx b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit7.aspx index 700ca2be..fd59583e 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit7.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit7.aspx @@ -4,102 +4,139 @@ - + 下月HSE工作计划
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit7.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit7.aspx.cs index 0c692eb7..7ea50737 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit7.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit7.aspx.cs @@ -1,11 +1,7 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; -using BLL; +using BLL; using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; namespace FineUIPro.Web.HSSE.Manager { @@ -42,24 +38,16 @@ namespace FineUIPro.Web.HSSE.Manager } } - private static DateTime startTime; - - private static DateTime endTime; - - private static DateTime yearStartTime; - - private static DateTime projectStartTime; - #region 定义集合 /// - /// 7.1 管理绩效数据统计集合(表一) + /// 新增危险源识别及控制 /// - private static List accidentDesciptions = new List(); + private static List hazardCs = new List(); /// - /// 7.2 管理绩效数据统计集合(表二) + /// 其他HSE工作计划 /// - private static List AccidentDesciptionItems = new List(); + private static List otherWorkPlanCs = new List(); #endregion @@ -70,295 +58,173 @@ namespace FineUIPro.Web.HSSE.Manager { if (!IsPostBack) { - accidentDesciptions.Clear(); - AccidentDesciptionItems.Clear(); + hazardCs.Clear(); + otherWorkPlanCs.Clear(); this.MonthReportId = Request.Params["monthReportId"]; this.ProjectId = this.CurrUser.LoginProjectId; DateTime months = Convert.ToDateTime(Request.Params["months"]); - startTime = Convert.ToDateTime(Request.Params["startTime"]); - endTime = Convert.ToDateTime(Request.Params["endTime"]); - yearStartTime = Convert.ToDateTime(Request.Params["yearStartTime"]); Model.Manager_MonthReportC monthReport = BLL.MonthReportCService.GetMonthReportByMonths(months, this.CurrUser.LoginProjectId); - Model.Manager_MonthReportC mr = BLL.MonthReportCService.GetLastMonthReportByDate(endTime, this.ProjectId); - Model.Base_Project project = BLL.ProjectService.GetProjectByProjectId(ProjectId); - if (project.StartDate != null) - { - projectStartTime = Convert.ToDateTime(project.StartDate); - } if (monthReport != null) { this.MonthReportId = monthReport.MonthReportId; this.ProjectId = monthReport.ProjectId; - months = Convert.ToDateTime(monthReport.Months); - Model.SGGLDB db = Funs.DB; - //7.1 管理绩效数据统计(表一) - accidentDesciptions = (from x in db.Manager_Month_AccidentDesciptionC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList(); - if (accidentDesciptions.Count > 0) + //新增危险源识别及控制 + hazardCs = BLL.HazardCService.GetHazardByMonthReportId(this.MonthReportId); + if (hazardCs.Count > 0) { - this.gvAccidentDesciption.DataSource = accidentDesciptions; - this.gvAccidentDesciption.DataBind(); + this.gvHazardC.DataSource = hazardCs; + this.gvHazardC.DataBind(); } - else + //其他HSE工作计划 + otherWorkPlanCs = BLL.OtherWorkPlanCService.GetOtherWorkPlanByMonthReportId(this.MonthReportId); + if (otherWorkPlanCs.Count > 0) { - GetAccidentDesciption();//管理绩效数据统计(表一) + this.gvOtherWorkPlanC.DataSource = otherWorkPlanCs; + this.gvOtherWorkPlanC.DataBind(); } - //7.2 管理绩效数据统计(表二) - AccidentDesciptionItems = (from x in db.Manager_Month_AccidentDesciptionItemC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList(); - if (AccidentDesciptionItems.Count > 0) - { - this.gvAccidentDesciptionItem.DataSource = AccidentDesciptionItems; - this.gvAccidentDesciptionItem.DataBind(); - } - else - { - GetAccidentDesciptionItem();//管理绩效数据统计(表二) - } - this.txtAccidentDes.Text = monthReport.AccidentDes; - } - else - { - GetAccidentDesciption();//管理绩效数据统计(表一) - GetAccidentDesciptionItem();//管理绩效数据统计(表二) } } } #endregion - #region 事故 + #region 下月HSE工作计划 + #region 新增危险源识别及控制 /// - ///加载显示初始值 + /// 新增危险源识别及控制 /// - private void GetAccidentDesciption() + /// + /// + protected void btnNewHazardC_Click(object sender, EventArgs e) { - System.Web.UI.WebControls.ListItem[] list = BLL.AccidentDesciptionCService.GetAccidentDesciptionList(); - var accidentPersonRecords = from x in Funs.DB.Accident_AccidentPersonRecord - where x.ProjectId == this.CurrUser.LoginProjectId && x.AccidentDate >= startTime && x.AccidentDate < endTime - select x; - var yearAccidentPersonRecords = from x in Funs.DB.Accident_AccidentPersonRecord - where x.ProjectId == this.CurrUser.LoginProjectId && x.AccidentDate >= yearStartTime && x.AccidentDate < endTime - select x; - var accidentHandles = from x in Funs.DB.Accident_AccidentHandle - where x.ProjectId == this.CurrUser.LoginProjectId && x.AccidentDate >= startTime && x.AccidentDate < endTime - select x; - var yearAccidentHandles = from x in Funs.DB.Accident_AccidentHandle - where x.ProjectId == this.CurrUser.LoginProjectId && x.AccidentDate >= yearStartTime && x.AccidentDate < endTime - select x; - if (list.Count() > 0) + jerqueSaveHazardCList(); + Model.Manager_Month_HazardC hazardC = new Model.Manager_Month_HazardC { - for (int i = 0; i < list.Count(); i++) - { - Model.Manager_Month_AccidentDesciptionC des = new Model.Manager_Month_AccidentDesciptionC - { - AccidentDesId = SQLHelper.GetNewID(typeof(Model.Manager_Month_AccidentDesciptionC)), - Matter = list[i].Value - }; - if (des.Matter == "百万工时伤害率" || des.Matter == "伤害严重率") - { - //百万工时伤害率:轻重死总累计人数*1000000/累计总人工时(保留2位小数) - //伤害严重率:事故损失工时数/9*1000000/累计总人工时(保留2位小数) - if (accidentHandles.Count() > 0) - { - decimal totalHseManhours = 0; - Model.Manager_MonthReportC monthReport = BLL.MonthReportCService.GetMonthReportByMonths(Convert.ToDateTime(Request.Params["months"]), this.CurrUser.LoginProjectId); - if (monthReport != null) - { - if (monthReport.TotalHseManhours != null) - { - totalHseManhours = monthReport.TotalHseManhours ?? 0; - } - } - else - { - Model.SitePerson_MonthReport mReport = BLL.Funs.DB.SitePerson_MonthReport.FirstOrDefault(x => x.CompileDate == Convert.ToDateTime(Request.Params["months"])); //当月人工时月报 - if (mReport != null) - { - totalHseManhours = (from x in Funs.DB.SitePerson_MonthReportDetail - join y in Funs.DB.SitePerson_MonthReportUnitDetail - on x.MonthReportDetailId equals y.MonthReportDetailId - where x.MonthReportId == mReport.MonthReportId - select y.PersonWorkTime ?? 0).Sum(); - } - } - if (des.Matter == "百万工时伤害率") - { - int a = (from x in accidentHandles - select x.MinorInjuriesPersonNum ?? 0).Sum(); - int b = (from x in accidentHandles - select x.InjuriesPersonNum ?? 0).Sum(); - int c = (from x in accidentHandles - select x.DeathPersonNum ?? 0).Sum(); - if (totalHseManhours != 0) - { - des.MonthDataNum = decimal.Round((Convert.ToDecimal(a + b + c) * 1000000 / totalHseManhours), 2); - } - else - { - des.MonthDataNum = 0; - } - int ya = (from x in yearAccidentHandles - select x.MinorInjuriesPersonNum ?? 0).Sum(); - int yb = (from x in yearAccidentHandles - select x.InjuriesPersonNum ?? 0).Sum(); - int yc = (from x in yearAccidentHandles - select x.DeathPersonNum ?? 0).Sum(); - if (totalHseManhours != 0) - { - des.YearDataNum = decimal.Round((Convert.ToDecimal(ya + yb + yc) * 1000000 / totalHseManhours), 2); - } - else - { - des.YearDataNum = 0; - } - } - else if (des.Matter == "伤害严重率") - { - decimal workHoursLoss = (from x in accidentHandles - select x.WorkHoursLoss ?? 0).Sum(); - if (totalHseManhours != 0) - { - des.MonthDataNum = decimal.Round((Convert.ToDecimal(workHoursLoss) / 9 * 1000000 / totalHseManhours), 2); - } - else - { - des.MonthDataNum = 0; - } - decimal yearWorkHoursLoss = (from x in yearAccidentHandles - select x.WorkHoursLoss ?? 0).Sum(); - if (totalHseManhours != 0) - { - des.YearDataNum = decimal.Round((Convert.ToDecimal(yearWorkHoursLoss) / 9 * 1000000 / totalHseManhours), 2); - } - else - { - des.YearDataNum = 0; - } - } - } - } - else - { - des.MonthDataNum = (from x in accidentPersonRecords - join y in Funs.DB.Base_AccidentType - on x.AccidentTypeId equals y.AccidentTypeId - where y.AccidentTypeName.Contains(des.Matter) - select x).Count(); - des.YearDataNum = (from x in yearAccidentPersonRecords - join y in Funs.DB.Base_AccidentType - on x.AccidentTypeId equals y.AccidentTypeId - where y.AccidentTypeName.Contains(des.Matter) - select x).Count(); - } - accidentDesciptions.Add(des); - } - } - this.gvAccidentDesciption.DataSource = accidentDesciptions; - this.gvAccidentDesciption.DataBind(); + HazardId = SQLHelper.GetNewID(typeof(Model.Manager_Month_HazardC)) + }; + hazardCs.Add(hazardC); + this.gvHazardC.DataSource = hazardCs; + this.gvHazardC.DataBind(); } /// - /// 检查并保存事故(表一)集合 + /// 新增危险源识别及控制行点击事件 /// - private void jerqueSaveAccidentDesciptionList() + /// + /// + protected void gvHazardC_RowCommand(object sender, GridCommandEventArgs e) { - accidentDesciptions.Clear(); - JArray mergedData = gvAccidentDesciption.GetMergedData(); + jerqueSaveHazardCList(); + string rowID = this.gvHazardC.DataKeys[e.RowIndex][0].ToString(); + if (e.CommandName == "Delete") + { + foreach (var item in hazardCs) + { + if (item.HazardId == rowID) + { + hazardCs.Remove(item); + break; + } + } + gvHazardC.DataSource = hazardCs; + gvHazardC.DataBind(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + /// + /// 新增危险源识别及控制 + /// + private void jerqueSaveHazardCList() + { + hazardCs.Clear(); + JArray mergedData = gvHazardC.GetMergedData(); foreach (JObject mergedRow in mergedData) { string status = mergedRow.Value("status"); JObject values = mergedRow.Value("values"); int i = mergedRow.Value("index"); - Model.Manager_Month_AccidentDesciptionC accidentDesciptionSort = new Model.Manager_Month_AccidentDesciptionC + Model.Manager_Month_HazardC hazardC = new Model.Manager_Month_HazardC { - AccidentDesId = this.gvAccidentDesciption.Rows[i].DataKeys[0].ToString(), - SortIndex = i, - Matter = values.Value("Matter").ToString(), - MonthDataNum = Funs.GetNewDecimalOrZero(values.Value("MonthDataNum").ToString()), - YearDataNum = Funs.GetNewDecimalOrZero(values.Value("YearDataNum").ToString()) + HazardId = this.gvHazardC.Rows[i].DataKeys[0].ToString(), + WorkArea = values.Value("WorkArea").ToString(), + EnvironmentalFactors = values.Value("EnvironmentalFactors").ToString(), + Consequence = values.Value("Consequence").ToString(), + ControlMeasures = values.Value("ControlMeasures").ToString() }; - accidentDesciptions.Add(accidentDesciptionSort); - } - } - - /// - /// 加载显示初始值 - /// - private void GetAccidentDesciptionItem() - { - System.Web.UI.WebControls.ListItem[] list = BLL.AccidentDesciptionItemCService.GetMatterList(); - var accidentHandles = from x in Funs.DB.Accident_AccidentHandle - where x.ProjectId == this.CurrUser.LoginProjectId && x.AccidentDate >= startTime && x.AccidentDate < endTime - select x; - if (list.Count() > 0) - { - for (int i = 0; i < list.Count(); i++) + if (!string.IsNullOrEmpty(values.Value("IsMajor").ToString())) { - Model.Manager_Month_AccidentDesciptionItemC item = new Model.Manager_Month_AccidentDesciptionItemC - { - AccidentDesItemId = SQLHelper.GetNewID(typeof(Model.Manager_Month_AccidentDesciptionItemC)), - Matter = list[i].Value - }; - if (accidentHandles.Count() > 0) - { - if (item.Matter == "轻伤人数") - { - item.Datas = (from x in accidentHandles - select x.MinorInjuriesPersonNum ?? 0).Sum().ToString(); - } - else if (item.Matter == "重伤人数") - { - item.Datas = (from x in accidentHandles - select x.InjuriesPersonNum ?? 0).Sum().ToString(); - } - else if (item.Matter == "死亡人数") - { - item.Datas = (from x in accidentHandles - select x.DeathPersonNum ?? 0).Sum().ToString(); - } - else if (item.Matter == "直接经济损失") - { - item.Datas = (from x in accidentHandles - select x.MoneyLoss ?? 0).Sum().ToString(); - } - else if (item.Matter == "事故失时数") - { - item.Datas = (from x in accidentHandles - select x.WorkHoursLoss ?? 0).Sum().ToString(); - } - } - else - { - item.Datas = "无"; - } - AccidentDesciptionItems.Add(item); + hazardC.IsMajor = Convert.ToBoolean(values.Value("IsMajor").ToString()); } + hazardCs.Add(hazardC); } - this.gvAccidentDesciptionItem.DataSource = AccidentDesciptionItems; - this.gvAccidentDesciptionItem.DataBind(); + } + #endregion + + #region 其他HSE工作计划 + /// + /// 增加其他HSE工作计划 + /// + /// + /// + protected void btnOtherWorkPlanC_Click(object sender, EventArgs e) + { + jerqueSaveOtherWorkPlanCList(); + Model.Manager_Month_OtherWorkPlanC otherWorkPlanC = new Model.Manager_Month_OtherWorkPlanC + { + OtherWorkPlanId = SQLHelper.GetNewID(typeof(Model.Manager_Month_OtherWorkPlanC)) + }; + otherWorkPlanCs.Add(otherWorkPlanC); + this.gvOtherWorkPlanC.DataSource = otherWorkPlanCs; + this.gvOtherWorkPlanC.DataBind(); } /// - /// 检查并保存事故(表二)集合 + /// 删除其他HSE工作计划 /// - private void jerqueSaveAccidentDesciptionItemList() + /// + /// + protected void gvOtherWorkPlanC_RowCommand(object sender, GridCommandEventArgs e) { - AccidentDesciptionItems.Clear(); - JArray mergedData = gvAccidentDesciptionItem.GetMergedData(); + jerqueSaveOtherWorkPlanCList(); + string rowID = this.gvOtherWorkPlanC.DataKeys[e.RowIndex][0].ToString(); + if (e.CommandName == "Delete") + { + foreach (var item in otherWorkPlanCs) + { + if (item.OtherWorkPlanId == rowID) + { + otherWorkPlanCs.Remove(item); + break; + } + } + gvOtherWorkPlanC.DataSource = otherWorkPlanCs; + gvOtherWorkPlanC.DataBind(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + + /// + /// 其他HSE工作计划 + /// + private void jerqueSaveOtherWorkPlanCList() + { + otherWorkPlanCs.Clear(); + JArray mergedData = gvOtherWorkPlanC.GetMergedData(); foreach (JObject mergedRow in mergedData) { string status = mergedRow.Value("status"); JObject values = mergedRow.Value("values"); int i = mergedRow.Value("index"); - Model.Manager_Month_AccidentDesciptionItemC accidentDesciptionItemSort = new Model.Manager_Month_AccidentDesciptionItemC + Model.Manager_Month_OtherWorkPlanC otherWorkPlanC = new Model.Manager_Month_OtherWorkPlanC { - AccidentDesItemId = this.gvAccidentDesciptionItem.Rows[i].DataKeys[0].ToString(), + OtherWorkPlanId = this.gvOtherWorkPlanC.Rows[i].DataKeys[0].ToString(), SortIndex = i, - Matter = values.Value("Matter").ToString(), - Datas = values.Value("Datas").ToString() + WorkContent = values.Value("WorkContent").ToString() }; - AccidentDesciptionItems.Add(accidentDesciptionItemSort); + otherWorkPlanCs.Add(otherWorkPlanC); } } #endregion + #endregion #region 保存按钮 /// @@ -371,10 +237,9 @@ namespace FineUIPro.Web.HSSE.Manager Model.Manager_MonthReportC oldMonthReport = BLL.MonthReportCService.GetMonthReportByMonths(Convert.ToDateTime(Request.Params["months"]), this.CurrUser.LoginProjectId); if (oldMonthReport != null) { - oldMonthReport.AccidentDes = this.txtAccidentDes.Text.Trim(); BLL.MonthReportCService.UpdateMonthReport(oldMonthReport); - OperateAccidentDesciptionSort(MonthReportId); - OperateAccidentDesciptionItemSort(MonthReportId); + OperateHazardCSort(MonthReportId); + OperateOtherWorkPlanCSort(MonthReportId); BLL.LogService.AddSys_Log(this.CurrUser, oldMonthReport.MonthReportCode, oldMonthReport.MonthReportId, BLL.Const.ProjectManagerMonthCMenuId, BLL.Const.BtnModify); } else @@ -388,10 +253,9 @@ namespace FineUIPro.Web.HSSE.Manager monthReport.Months = Funs.GetNewDateTime(Request.Params["months"]); monthReport.ReportMan = this.CurrUser.UserId; monthReport.MonthReportDate = DateTime.Now; - monthReport.AccidentDes = this.txtAccidentDes.Text.Trim(); BLL.MonthReportCService.AddMonthReport(monthReport); - OperateAccidentDesciptionSort(MonthReportId); - OperateAccidentDesciptionItemSort(MonthReportId); + OperateHazardCSort(MonthReportId); + OperateOtherWorkPlanCSort(MonthReportId); BLL.LogService.AddSys_Log(this.CurrUser, monthReport.MonthReportCode, monthReport.MonthReportId, BLL.Const.ProjectManagerMonthCMenuId, BLL.Const.BtnAdd); } ShowNotify("保存成功!", MessageBoxIcon.Success); @@ -399,32 +263,32 @@ namespace FineUIPro.Web.HSSE.Manager } /// - /// 7.1 管理绩效数据统计 表一 + /// 新增危险源识别及控制 /// /// - private void OperateAccidentDesciptionSort(string monthReportId) + private void OperateHazardCSort(string monthReportId) { - BLL.AccidentDesciptionCService.DeleteAccidentDesciptionByMonthReportId(monthReportId); - jerqueSaveAccidentDesciptionList(); - foreach (Model.Manager_Month_AccidentDesciptionC des in accidentDesciptions) + BLL.HazardCService.DeleteHazardByMonthReportId(monthReportId); + jerqueSaveHazardCList(); + foreach (Model.Manager_Month_HazardC des in hazardCs) { des.MonthReportId = monthReportId; - BLL.AccidentDesciptionCService.AddAccidentDesciption(des); + BLL.HazardCService.AddHazard(des); } } /// - /// 7.2 管理绩效数据统计 表二 + /// 7.2 其他HSE工作计划 /// /// - private void OperateAccidentDesciptionItemSort(string monthReportId) + private void OperateOtherWorkPlanCSort(string monthReportId) { - BLL.AccidentDesciptionItemCService.DeleteAccidentDesciptionItemByMonthReportId(monthReportId); - jerqueSaveAccidentDesciptionItemList(); - foreach (Model.Manager_Month_AccidentDesciptionItemC item in AccidentDesciptionItems) + BLL.OtherWorkPlanCService.DeleteOtherWorkPlanByMonthReportId(monthReportId); + jerqueSaveOtherWorkPlanCList(); + foreach (Model.Manager_Month_OtherWorkPlanC item in otherWorkPlanCs) { item.MonthReportId = monthReportId; - BLL.AccidentDesciptionItemCService.AddAccidentDesciptionItem(item); + BLL.OtherWorkPlanCService.AddOtherWorkPlan(item); } } #endregion diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit7.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit7.aspx.designer.cs index aec18882..24ae78ef 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit7.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit7.aspx.designer.cs @@ -58,40 +58,76 @@ namespace FineUIPro.Web.HSSE.Manager { protected global::FineUIPro.GroupPanel GroupPanel44; /// - /// gvAccidentDesciption 控件。 + /// gvHazardC 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Grid gvAccidentDesciption; + protected global::FineUIPro.Grid gvHazardC; /// - /// TextBox45 控件。 + /// Toolbar2 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox TextBox45; + protected global::FineUIPro.Toolbar Toolbar2; /// - /// NumberBox4 控件。 + /// btnNewHazardC 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.NumberBox NumberBox4; + protected global::FineUIPro.Button btnNewHazardC; /// - /// NumberBox5 控件。 + /// TextBox1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.NumberBox NumberBox5; + protected global::FineUIPro.TextBox TextBox1; + + /// + /// TextBox2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox2; + + /// + /// TextBox3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox3; + + /// + /// TextBox4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox4; + + /// + /// drpIsMajor 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpIsMajor; /// /// GroupPanel45 控件。 @@ -103,49 +139,40 @@ namespace FineUIPro.Web.HSSE.Manager { protected global::FineUIPro.GroupPanel GroupPanel45; /// - /// gvAccidentDesciptionItem 控件。 + /// gvOtherWorkPlanC 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Grid gvAccidentDesciptionItem; + protected global::FineUIPro.Grid gvOtherWorkPlanC; /// - /// TextBox46 控件。 + /// Toolbar19 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox TextBox46; + protected global::FineUIPro.Toolbar Toolbar19; /// - /// TextBox47 控件。 + /// btnOtherWorkPlanC 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox TextBox47; + protected global::FineUIPro.Button btnOtherWorkPlanC; /// - /// GroupPanel46 控件。 + /// TextBox6 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.GroupPanel GroupPanel46; - - /// - /// txtAccidentDes 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextArea txtAccidentDes; + protected global::FineUIPro.TextBox TextBox6; /// /// Toolbar1 控件。 diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit8.aspx b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit8.aspx index 455d0cf1..e60456dc 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit8.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit8.aspx @@ -4,227 +4,84 @@ - + 8.HSE合规义务识别与评价
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit8.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit8.aspx.cs index a910095b..50e4e11f 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit8.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit8.aspx.cs @@ -1,11 +1,9 @@ -using System; +using BLL; +using Newtonsoft.Json.Linq; +using System; using System.Collections.Generic; using System.Linq; -using System.Web; -using System.Web.UI; using System.Web.UI.WebControls; -using BLL; -using Newtonsoft.Json.Linq; namespace FineUIPro.Web.HSSE.Manager { @@ -41,65 +39,11 @@ namespace FineUIPro.Web.HSSE.Manager ViewState["ProjectId"] = value; } } - - private static DateTime startTime; - - private static DateTime endTime; - - private static DateTime yearStartTime; - - private static DateTime projectStartTime; - #region 定义集合 /// - /// 9.1 危险源动态识别及控制集合 + /// HSE合规义务识别与评价表 /// - private static List hazards = new List(); - - /// - /// 9.2 HSSE培训集合 - /// - private static List trains = new List(); - - /// - /// 9.3 HSSE检查集合 - /// - private static List checks = new List(); - - /// - /// 9.4 HSSE会议集合 - /// - private static List meetings = new List(); - - /// - /// 9.5 HSSE活动集合 - /// - private static List activitiess = new List(); - - /// - /// 9.6.1 应急预案修编集合 - /// - private static List emergencyPlans = new List(); - - /// - /// 9.6.2 应急演练活动集合 - /// - private static List emergencyExercisess = new List(); - - /// - /// 9.7 HSE费用投入计划集合 - /// - private static List costInvestmentPlans = new List(); - - /// - /// 9.8 HSE管理文件/方案修编计划集合 - /// - private static List manageDocPlans = new List(); - - /// - /// 9.9 其他HSE工作计划 - /// - private static List otherWorkPlans = new List(); + private static List complianceObligationsCs = new List(); #endregion @@ -110,316 +54,87 @@ namespace FineUIPro.Web.HSSE.Manager { if (!IsPostBack) { - hazards.Clear(); - trains.Clear(); - checks.Clear(); - meetings.Clear(); - activitiess.Clear(); - emergencyPlans.Clear(); - emergencyExercisess.Clear(); - costInvestmentPlans.Clear(); - manageDocPlans.Clear(); - otherWorkPlans.Clear(); + complianceObligationsCs.Clear(); this.MonthReportId = Request.Params["monthReportId"]; this.ProjectId = this.CurrUser.LoginProjectId; DateTime months = Convert.ToDateTime(Request.Params["months"]); - startTime = Convert.ToDateTime(Request.Params["startTime"]); - endTime = Convert.ToDateTime(Request.Params["endTime"]); - yearStartTime = Convert.ToDateTime(Request.Params["yearStartTime"]); Model.Manager_MonthReportC monthReport = BLL.MonthReportCService.GetMonthReportByMonths(months, this.CurrUser.LoginProjectId); - Model.Manager_MonthReportC mr = BLL.MonthReportCService.GetLastMonthReportByDate(endTime, this.ProjectId); - Model.Base_Project project = BLL.ProjectService.GetProjectByProjectId(ProjectId); - if (project.StartDate != null) - { - projectStartTime = Convert.ToDateTime(project.StartDate); - } + if (monthReport != null) { this.MonthReportId = monthReport.MonthReportId; this.ProjectId = monthReport.ProjectId; months = Convert.ToDateTime(monthReport.Months); - this.txtNextEmergencyResponse.Text = monthReport.NextEmergencyResponse; - Model.SGGLDB db = Funs.DB; - //9.1 危险源动态识别及控制 - hazards = (from x in db.Manager_Month_HazardC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList(); - if (hazards.Count > 0) + + complianceObligationsCs = (from x in Funs.DB.Manager_Month_ComplianceObligationsC where x.MonthReportId == this.MonthReportId select x).ToList(); + if (complianceObligationsCs.Count>0) { - this.gvHazard.DataSource = hazards; - this.gvHazard.DataBind(); - } - //9.3 HSSE检查 - checks = (from x in db.Manager_Month_CheckC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList(); - if (checks.Count > 0) - { - this.gvCheck.DataSource = checks; - this.gvCheck.DataBind(); - } - //9.8 HSE管理文件/方案修编计划 - manageDocPlans = (from x in db.Manager_Month_ManageDocPlanC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList(); - if (manageDocPlans.Count > 0) - { - this.gvManageDocPlan.DataSource = manageDocPlans; - this.gvManageDocPlan.DataBind(); - } - //9.9其他HSE工作计划 - otherWorkPlans = (from x in db.Manager_Month_OtherWorkPlanC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList(); - if (otherWorkPlans.Count > 0) - { - this.gvOtherWorkPlan.DataSource = otherWorkPlans; - this.gvOtherWorkPlan.DataBind(); + this.Grid1.DataSource = complianceObligationsCs; + this.Grid1.DataBind(); } } } } #endregion - #region 危险源动态识别及控制 - /// - /// 增加危险源动态识别及控制 - /// - /// - /// - protected void btnNewHazard_Click(object sender, EventArgs e) + #region HSE合规义务识别与评价 + ///// + ///// 增加HSE合规义务识别与评价 + ///// + ///// + ///// + protected void btnNew_Click(object sender, EventArgs e) { - jerqueSaveMonthHazardList(); - Model.Manager_Month_HazardC hazardSort = new Model.Manager_Month_HazardC + jerqueSaveComplianceObligationsCList(); + Model.Manager_Month_ComplianceObligationsC complianceObligationsC = new Model.Manager_Month_ComplianceObligationsC { - HazardId = SQLHelper.GetNewID(typeof(Model.Manager_Month_HazardC)) + ComplianceObligationsId = SQLHelper.GetNewID(typeof(Model.Manager_Month_ComplianceObligationsC)) }; - hazards.Add(hazardSort); - this.gvHazard.DataSource = hazards; - this.gvHazard.DataBind(); + complianceObligationsCs.Add(complianceObligationsC); + this.Grid1.DataSource = complianceObligationsCs; + this.Grid1.DataBind(); } - /// - /// 检查并保存危险源动态识别及控制集合 - /// - private void jerqueSaveMonthHazardList() + ///// + ///// 检查并保存危险源动态识别及控制集合 + ///// + private void jerqueSaveComplianceObligationsCList() { - hazards.Clear(); - JArray mergedData = gvHazard.GetMergedData(); + complianceObligationsCs.Clear(); + JArray mergedData = Grid1.GetMergedData(); foreach (JObject mergedRow in mergedData) { string status = mergedRow.Value("status"); JObject values = mergedRow.Value("values"); int i = mergedRow.Value("index"); - Model.Manager_Month_HazardC hazardSort = new Model.Manager_Month_HazardC + Model.Manager_Month_ComplianceObligationsC hazardSort = new Model.Manager_Month_ComplianceObligationsC { - HazardId = this.gvHazard.Rows[i].DataKeys[0].ToString(), - SortIndex = i, - WorkArea = values.Value("WorkArea").ToString(), - Subcontractor = values.Value("Subcontractor").ToString(), - DangerousSource = values.Value("DangerousSource").ToString(), - ControlMeasures = values.Value("ControlMeasures").ToString() + ComplianceObligationsId = this.Grid1.Rows[i].DataKeys[0].ToString(), + InformationContent = values.Value("InformationContent").ToString(), + ResponseMeasures = values.Value("ResponseMeasures").ToString(), + ImplementationStatus = values.Value("ImplementationStatus").ToString(), + EvaluationConclusion = values.Value("EvaluationConclusion").ToString() }; - hazards.Add(hazardSort); + complianceObligationsCs.Add(hazardSort); } } - protected void gvHazard_RowCommand(object sender, GridCommandEventArgs e) + protected void Grid1_RowCommand(object sender, GridCommandEventArgs e) { - jerqueSaveMonthHazardList(); - string rowID = this.gvHazard.DataKeys[e.RowIndex][0].ToString(); + jerqueSaveComplianceObligationsCList(); + string rowID = this.Grid1.DataKeys[e.RowIndex][0].ToString(); if (e.CommandName == "Delete") { - foreach (var item in hazards) + foreach (var item in complianceObligationsCs) { - if (item.HazardId == rowID) + if (item.ComplianceObligationsId == rowID) { - hazards.Remove(item); + complianceObligationsCs.Remove(item); break; } } - gvHazard.DataSource = hazards; - gvHazard.DataBind(); - ShowNotify("删除数据成功!", MessageBoxIcon.Success); - } - } - #endregion - - #region HSE检查 - /// - /// 增加HSE检查 - /// - /// - /// - protected void btnNewCheck_Click(object sender, EventArgs e) - { - jerqueSaveMonthCheckList(); - Model.Manager_Month_CheckC checkSort = new Model.Manager_Month_CheckC - { - CheckId = SQLHelper.GetNewID(typeof(Model.Manager_Month_CheckC)) - }; - checks.Add(checkSort); - this.gvCheck.DataSource = checks; - this.gvCheck.DataBind(); - } - - /// - /// 检查并保存HSE检查集合 - /// - private void jerqueSaveMonthCheckList() - { - checks.Clear(); - JArray mergedData = gvCheck.GetMergedData(); - foreach (JObject mergedRow in mergedData) - { - string status = mergedRow.Value("status"); - JObject values = mergedRow.Value("values"); - int i = mergedRow.Value("index"); - Model.Manager_Month_CheckC checkSort = new Model.Manager_Month_CheckC - { - CheckId = this.gvCheck.Rows[i].DataKeys[0].ToString(), - SortIndex = i, - CheckType = values.Value("CheckType").ToString(), - Inspectors = values.Value("Inspectors").ToString(), - CheckDate = values.Value("CheckDate").ToString(), - Remark = values.Value("Remark").ToString() - }; - checks.Add(checkSort); - } - } - - protected void gvCheck_RowCommand(object sender, GridCommandEventArgs e) - { - jerqueSaveMonthCheckList(); - string rowID = this.gvCheck.DataKeys[e.RowIndex][0].ToString(); - if (e.CommandName == "Delete") - { - foreach (var item in checks) - { - if (item.CheckId == rowID) - { - checks.Remove(item); - break; - } - } - gvCheck.DataSource = checks; - gvCheck.DataBind(); - ShowNotify("删除数据成功!", MessageBoxIcon.Success); - } - } - #endregion - - #region HSE管理文件/方案修编计划 - /// - /// 增加HSE管理文件/方案修编计划 - /// - /// - /// - protected void btnNewManageDocPlan_Click(object sender, EventArgs e) - { - jerqueSaveMonthManageDocPlanList(); - Model.Manager_Month_ManageDocPlanC manageDocPlanSort = new Model.Manager_Month_ManageDocPlanC - { - ManageDocPlanId = SQLHelper.GetNewID(typeof(Model.Manager_Month_ManageDocPlanC)) - }; - manageDocPlans.Add(manageDocPlanSort); - this.gvManageDocPlan.DataSource = manageDocPlans; - this.gvManageDocPlan.DataBind(); - } - - /// - /// 检查并保存HSE管理文件/方案修编计划集合 - /// - private void jerqueSaveMonthManageDocPlanList() - { - manageDocPlans.Clear(); - JArray mergedData = gvManageDocPlan.GetMergedData(); - foreach (JObject mergedRow in mergedData) - { - string status = mergedRow.Value("status"); - JObject values = mergedRow.Value("values"); - int i = mergedRow.Value("index"); - Model.Manager_Month_ManageDocPlanC manageDocPlanSort = new Model.Manager_Month_ManageDocPlanC - { - ManageDocPlanId = this.gvManageDocPlan.Rows[i].DataKeys[0].ToString(), - SortIndex = i, - ManageDocPlanName = values.Value("ManageDocPlanName").ToString(), - CompileMan = values.Value("CompileMan").ToString(), - CompileDate = values.Value("CompileDate").ToString() - }; - manageDocPlans.Add(manageDocPlanSort); - } - } - - protected void gvManageDocPlan_RowCommand(object sender, GridCommandEventArgs e) - { - jerqueSaveMonthManageDocPlanList(); - string rowID = this.gvManageDocPlan.DataKeys[e.RowIndex][0].ToString(); - if (e.CommandName == "Delete") - { - foreach (var item in manageDocPlans) - { - if (item.ManageDocPlanId == rowID) - { - manageDocPlans.Remove(item); - break; - } - } - gvManageDocPlan.DataSource = manageDocPlans; - gvManageDocPlan.DataBind(); - ShowNotify("删除数据成功!", MessageBoxIcon.Success); - } - } - #endregion - - #region 其他HSE工作计划 - /// - /// 增加其他HSE工作计划 - /// - /// - /// - protected void btnNewOtherWorkPlan_Click(object sender, EventArgs e) - { - jerqueSaveMonthOtherWorkPlanList(); - Model.Manager_Month_OtherWorkPlanC otherWorkPlanSort = new Model.Manager_Month_OtherWorkPlanC - { - OtherWorkPlanId = SQLHelper.GetNewID(typeof(Model.Manager_Month_OtherWorkPlanC)) - }; - otherWorkPlans.Add(otherWorkPlanSort); - this.gvOtherWorkPlan.DataSource = otherWorkPlans; - this.gvOtherWorkPlan.DataBind(); - } - - /// - /// 检查并保存其他HSE工作计划集合 - /// - private void jerqueSaveMonthOtherWorkPlanList() - { - otherWorkPlans.Clear(); - JArray mergedData = gvOtherWorkPlan.GetMergedData(); - foreach (JObject mergedRow in mergedData) - { - string status = mergedRow.Value("status"); - JObject values = mergedRow.Value("values"); - int i = mergedRow.Value("index"); - Model.Manager_Month_OtherWorkPlanC otherWorkPlanSort = new Model.Manager_Month_OtherWorkPlanC - { - OtherWorkPlanId = this.gvOtherWorkPlan.Rows[i].DataKeys[0].ToString(), - SortIndex = i, - WorkContent = values.Value("WorkContent").ToString() - }; - otherWorkPlans.Add(otherWorkPlanSort); - } - } - - protected void gvOtherWorkPlan_RowCommand(object sender, GridCommandEventArgs e) - { - jerqueSaveMonthOtherWorkPlanList(); - string rowID = this.gvOtherWorkPlan.DataKeys[e.RowIndex][0].ToString(); - if (e.CommandName == "Delete") - { - foreach (var item in otherWorkPlans) - { - if (item.OtherWorkPlanId == rowID) - { - otherWorkPlans.Remove(item); - break; - } - } - gvOtherWorkPlan.DataSource = otherWorkPlans; - gvOtherWorkPlan.DataBind(); + Grid1.DataSource = complianceObligationsCs; + Grid1.DataBind(); ShowNotify("删除数据成功!", MessageBoxIcon.Success); } } @@ -436,12 +151,8 @@ namespace FineUIPro.Web.HSSE.Manager Model.Manager_MonthReportC oldMonthReport = BLL.MonthReportCService.GetMonthReportByMonths(Convert.ToDateTime(Request.Params["months"]), this.CurrUser.LoginProjectId); if (oldMonthReport != null) { - oldMonthReport.NextEmergencyResponse = this.txtNextEmergencyResponse.Text.Trim(); BLL.MonthReportCService.UpdateMonthReport(oldMonthReport); - OperateHazardListSort(MonthReportId); - OperateCheckListSort(MonthReportId); - OperateManageDocPlanSort(MonthReportId); - OperateOtherWorkPlanSort(MonthReportId); + OperateComplianceObligationsCSort(MonthReportId); BLL.LogService.AddSys_Log(this.CurrUser, oldMonthReport.MonthReportCode, oldMonthReport.MonthReportId, BLL.Const.ProjectManagerMonthCMenuId, BLL.Const.BtnModify); } else @@ -455,12 +166,8 @@ namespace FineUIPro.Web.HSSE.Manager monthReport.Months = Funs.GetNewDateTime(Request.Params["months"]); monthReport.ReportMan = this.CurrUser.UserId; monthReport.MonthReportDate = DateTime.Now; - monthReport.NextEmergencyResponse = this.txtNextEmergencyResponse.Text.Trim(); BLL.MonthReportCService.AddMonthReport(monthReport); - OperateHazardListSort(MonthReportId); - OperateCheckListSort(MonthReportId); - OperateManageDocPlanSort(MonthReportId); - OperateOtherWorkPlanSort(MonthReportId); + OperateComplianceObligationsCSort(MonthReportId); BLL.LogService.AddSys_Log(this.CurrUser, monthReport.MonthReportCode, monthReport.MonthReportId, BLL.Const.ProjectManagerMonthCMenuId, BLL.Const.BtnAdd); } ShowNotify("保存成功!", MessageBoxIcon.Success); @@ -468,62 +175,17 @@ namespace FineUIPro.Web.HSSE.Manager } /// - /// 9.1 危险源动态识别及控制 + /// HSE合规义务识别与评价 /// /// - private void OperateHazardListSort(string monthReportId) + private void OperateComplianceObligationsCSort(string monthReportId) { - BLL.HazardCService.DeleteHazardByMonthReportId(monthReportId); - jerqueSaveMonthHazardList(); - foreach (Model.Manager_Month_HazardC hazard in hazards) + BLL.ComplianceObligationsCService.DeleteComplianceObligationsCByMonthReportId(monthReportId); + jerqueSaveComplianceObligationsCList(); + foreach (Model.Manager_Month_ComplianceObligationsC coc in complianceObligationsCs) { - hazard.MonthReportId = monthReportId; - BLL.HazardCService.AddHazard(hazard); - } - } - - /// - /// 9.3 HSSE检查 - /// - /// - private void OperateCheckListSort(string monthReportId) - { - BLL.CheckCService.DeleteCheckByMonthReportId(monthReportId); - jerqueSaveMonthCheckList(); - foreach (Model.Manager_Month_CheckC check in checks) - { - check.MonthReportId = monthReportId; - BLL.CheckCService.AddCheck(check); - } - } - - /// - /// 9.8 HSE管理文件/方案修编计划 - /// - /// - private void OperateManageDocPlanSort(string monthReportId) - { - BLL.ManageDocPlanCService.DeleteManageDocPlanByMonthReportId(monthReportId); - jerqueSaveMonthManageDocPlanList(); - foreach (Model.Manager_Month_ManageDocPlanC item in manageDocPlans) - { - item.MonthReportId = monthReportId; - BLL.ManageDocPlanCService.AddManageDocPlan(item); - } - } - - /// - /// 9.9 其他HSE工作计划 - /// - /// - private void OperateOtherWorkPlanSort(string monthReportId) - { - BLL.OtherWorkPlanCService.DeleteOtherWorkPlanByMonthReportId(monthReportId); - jerqueSaveMonthOtherWorkPlanList(); - foreach (Model.Manager_Month_OtherWorkPlanC item in otherWorkPlans) - { - item.MonthReportId = monthReportId; - BLL.OtherWorkPlanCService.AddOtherWorkPlan(item); + coc.MonthReportId = monthReportId; + BLL.ComplianceObligationsCService.AddComplianceObligationsC(coc); } } #endregion diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit8.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit8.aspx.designer.cs index b5c5517b..f54f3920 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit8.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit8.aspx.designer.cs @@ -49,22 +49,13 @@ namespace FineUIPro.Web.HSSE.Manager { protected global::FineUIPro.GroupPanel GroupPanel48; /// - /// GroupPanel49 控件。 + /// Grid1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.GroupPanel GroupPanel49; - - /// - /// gvHazard 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Grid gvHazard; + protected global::FineUIPro.Grid Grid1; /// /// Toolbar19 控件。 @@ -76,256 +67,58 @@ namespace FineUIPro.Web.HSSE.Manager { protected global::FineUIPro.Toolbar Toolbar19; /// - /// btnNewHazard 控件。 + /// btnNew 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Button btnNewHazard; + protected global::FineUIPro.Button btnNew; /// - /// TextBox49 控件。 + /// TextBox1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox TextBox49; + protected global::FineUIPro.TextBox TextBox1; /// - /// TextBox50 控件。 + /// TextBox2 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox TextBox50; + protected global::FineUIPro.TextBox TextBox2; /// - /// TextBox51 控件。 + /// TextBox3 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox TextBox51; + protected global::FineUIPro.TextBox TextBox3; /// - /// TextBox52 控件。 + /// TextBox4 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox TextBox52; + protected global::FineUIPro.TextBox TextBox4; /// - /// GroupPanel51 控件。 + /// lb111 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.GroupPanel GroupPanel51; - - /// - /// gvCheck 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Grid gvCheck; - - /// - /// Toolbar21 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Toolbar Toolbar21; - - /// - /// btnNewCheck 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnNewCheck; - - /// - /// TextBox58 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TextBox58; - - /// - /// TextBox59 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TextBox59; - - /// - /// TextBox60 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TextBox60; - - /// - /// TextBox62 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TextBox62; - - /// - /// GroupPanel54 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.GroupPanel GroupPanel54; - - /// - /// Form2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Form Form2; - - /// - /// txtNextEmergencyResponse 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextArea txtNextEmergencyResponse; - - /// - /// GroupPanel58 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.GroupPanel GroupPanel58; - - /// - /// gvManageDocPlan 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Grid gvManageDocPlan; - - /// - /// Toolbar26 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Toolbar Toolbar26; - - /// - /// btnNewManageDocPlan 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnNewManageDocPlan; - - /// - /// TextBox78 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TextBox78; - - /// - /// TextBox79 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TextBox79; - - /// - /// TextBox80 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TextBox80; - - /// - /// GroupPanel59 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.GroupPanel GroupPanel59; - - /// - /// gvOtherWorkPlan 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Grid gvOtherWorkPlan; - - /// - /// Toolbar27 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Toolbar Toolbar27; - - /// - /// btnNewOtherWorkPlan 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnNewOtherWorkPlan; - - /// - /// TextBox81 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TextBox81; + protected global::FineUIPro.Label lb111; /// /// Toolbar1 控件。 diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit9.aspx b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit9.aspx index d6da0613..2f34edb7 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit9.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCEdit9.aspx @@ -4,7 +4,7 @@ - + 9.需协调解决的主要问题
@@ -15,7 +15,7 @@ - diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCOut.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCOut.aspx.cs index c3448c25..86a0c7ef 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCOut.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCOut.aspx.cs @@ -299,7 +299,7 @@ namespace FineUIPro.Web.HSSE.Manager } this.txtAccidentDes.Text = monthReport.AccidentDes; //9.1 危险源动态识别及控制 - var hazards = (from x in db.Manager_Month_HazardC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList(); + var hazards = (from x in db.Manager_Month_HazardC where x.MonthReportId == MonthReportId select x).ToList(); if (hazards.Count > 0) { this.gvHazard.DataSource = hazards; diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCView2.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCView2.aspx.cs index 689c5f84..f9d4951a 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCView2.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCView2.aspx.cs @@ -130,7 +130,8 @@ namespace FineUIPro.Web.HSSE.Manager { PersonSortId = SQLHelper.GetNewID(typeof(Model.Manager_PersonSortC)), UnitId = u.UnitId, - SumPersonNum = BLL.PersonService.GetPersonCountByUnitId(u.UnitId, this.CurrUser.LoginProjectId), + SumPersonNum = BLL.PersonService.GetPersonCountByUnitId(u.UnitId, this.CurrUser.LoginProjectId,false),//本部 + SumOutPersonNum = BLL.PersonService.GetPersonCountByUnitId(u.UnitId, this.CurrUser.LoginProjectId, true),//外聘 HSEPersonNum = BLL.PersonService.GetHSEPersonCountByUnitId(u.UnitId, this.CurrUser.LoginProjectId) }; personSorts.Add(personSort); diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCView8.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCView8.aspx.cs index 9f3ee8ef..a97d1fbc 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCView8.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/MonthReportCView8.aspx.cs @@ -130,7 +130,7 @@ namespace FineUIPro.Web.HSSE.Manager this.txtNextEmergencyResponse.Text = monthReport.NextEmergencyResponse; Model.SGGLDB db = Funs.DB; //9.1 危险源动态识别及控制 - hazards = (from x in db.Manager_Month_HazardC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList(); + hazards = (from x in db.Manager_Month_HazardC where x.MonthReportId == MonthReportId select x).ToList(); if (hazards.Count > 0) { this.gvHazard.DataSource = hazards; diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index 8b23f937..d3b6dde9 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -1373,6 +1373,12 @@ namespace Model partial void InsertManager_Month_CheckC(Manager_Month_CheckC instance); partial void UpdateManager_Month_CheckC(Manager_Month_CheckC instance); partial void DeleteManager_Month_CheckC(Manager_Month_CheckC instance); + partial void InsertManager_Month_ComplianceObligations(Manager_Month_ComplianceObligations instance); + partial void UpdateManager_Month_ComplianceObligations(Manager_Month_ComplianceObligations instance); + partial void DeleteManager_Month_ComplianceObligations(Manager_Month_ComplianceObligations instance); + partial void InsertManager_Month_ComplianceObligationsC(Manager_Month_ComplianceObligationsC instance); + partial void UpdateManager_Month_ComplianceObligationsC(Manager_Month_ComplianceObligationsC instance); + partial void DeleteManager_Month_ComplianceObligationsC(Manager_Month_ComplianceObligationsC instance); partial void InsertManager_Month_CostInvestmentPlanC(Manager_Month_CostInvestmentPlanC instance); partial void UpdateManager_Month_CostInvestmentPlanC(Manager_Month_CostInvestmentPlanC instance); partial void DeleteManager_Month_CostInvestmentPlanC(Manager_Month_CostInvestmentPlanC instance); @@ -1391,12 +1397,18 @@ namespace Model partial void InsertManager_Month_HazardC(Manager_Month_HazardC instance); partial void UpdateManager_Month_HazardC(Manager_Month_HazardC instance); partial void DeleteManager_Month_HazardC(Manager_Month_HazardC instance); + partial void InsertManager_Month_InjuryAccidentC(Manager_Month_InjuryAccidentC instance); + partial void UpdateManager_Month_InjuryAccidentC(Manager_Month_InjuryAccidentC instance); + partial void DeleteManager_Month_InjuryAccidentC(Manager_Month_InjuryAccidentC instance); partial void InsertManager_Month_ManageDocPlanC(Manager_Month_ManageDocPlanC instance); partial void UpdateManager_Month_ManageDocPlanC(Manager_Month_ManageDocPlanC instance); partial void DeleteManager_Month_ManageDocPlanC(Manager_Month_ManageDocPlanC instance); partial void InsertManager_Month_MeetingC(Manager_Month_MeetingC instance); partial void UpdateManager_Month_MeetingC(Manager_Month_MeetingC instance); partial void DeleteManager_Month_MeetingC(Manager_Month_MeetingC instance); + partial void InsertManager_Month_NoInjuryAccidentC(Manager_Month_NoInjuryAccidentC instance); + partial void UpdateManager_Month_NoInjuryAccidentC(Manager_Month_NoInjuryAccidentC instance); + partial void DeleteManager_Month_NoInjuryAccidentC(Manager_Month_NoInjuryAccidentC instance); partial void InsertManager_Month_OtherManagementC(Manager_Month_OtherManagementC instance); partial void UpdateManager_Month_OtherManagementC(Manager_Month_OtherManagementC instance); partial void DeleteManager_Month_OtherManagementC(Manager_Month_OtherManagementC instance); @@ -1406,6 +1418,9 @@ namespace Model partial void InsertManager_Month_OtherWorkPlanC(Manager_Month_OtherWorkPlanC instance); partial void UpdateManager_Month_OtherWorkPlanC(Manager_Month_OtherWorkPlanC instance); partial void DeleteManager_Month_OtherWorkPlanC(Manager_Month_OtherWorkPlanC instance); + partial void InsertManager_Month_PerformanceIndicatorC(Manager_Month_PerformanceIndicatorC instance); + partial void UpdateManager_Month_PerformanceIndicatorC(Manager_Month_PerformanceIndicatorC instance); + partial void DeleteManager_Month_PerformanceIndicatorC(Manager_Month_PerformanceIndicatorC instance); partial void InsertManager_Month_PlanC(Manager_Month_PlanC instance); partial void UpdateManager_Month_PlanC(Manager_Month_PlanC instance); partial void DeleteManager_Month_PlanC(Manager_Month_PlanC instance); @@ -1442,6 +1457,9 @@ namespace Model partial void InsertManager_PromotionalActiviteSortC(Manager_PromotionalActiviteSortC instance); partial void UpdateManager_PromotionalActiviteSortC(Manager_PromotionalActiviteSortC instance); partial void DeleteManager_PromotionalActiviteSortC(Manager_PromotionalActiviteSortC instance); + partial void InsertManager_RewardAndPunishSortC(Manager_RewardAndPunishSortC instance); + partial void UpdateManager_RewardAndPunishSortC(Manager_RewardAndPunishSortC instance); + partial void DeleteManager_RewardAndPunishSortC(Manager_RewardAndPunishSortC instance); partial void InsertManager_SafetyDataD(Manager_SafetyDataD instance); partial void UpdateManager_SafetyDataD(Manager_SafetyDataD instance); partial void DeleteManager_SafetyDataD(Manager_SafetyDataD instance); @@ -6011,6 +6029,22 @@ namespace Model } } + public System.Data.Linq.Table Manager_Month_ComplianceObligations + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Manager_Month_ComplianceObligationsC + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Manager_Month_CostInvestmentPlanC { get @@ -6059,6 +6093,14 @@ namespace Model } } + public System.Data.Linq.Table Manager_Month_InjuryAccidentC + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Manager_Month_ManageDocPlanC { get @@ -6075,6 +6117,14 @@ namespace Model } } + public System.Data.Linq.Table Manager_Month_NoInjuryAccidentC + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Manager_Month_OtherManagementC { get @@ -6099,6 +6149,14 @@ namespace Model } } + public System.Data.Linq.Table Manager_Month_PerformanceIndicatorC + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Manager_Month_PlanC { get @@ -6195,6 +6253,14 @@ namespace Model } } + public System.Data.Linq.Table Manager_RewardAndPunishSortC + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Manager_SafetyDataD { get @@ -20504,8 +20570,6 @@ namespace Model private string _CodeRule; - private EntitySet _Doc_DocManage; - #region 可扩展性方法定义 partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); @@ -20522,7 +20586,6 @@ namespace Model public Base_DocType() { - this._Doc_DocManage = new EntitySet(new Action(this.attach_Doc_DocManage), new Action(this.detach_Doc_DocManage)); OnCreated(); } @@ -20606,19 +20669,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManage_Base_DocType", Storage="_Doc_DocManage", ThisKey="DocTypeId", OtherKey="DocTypeId", DeleteRule="NO ACTION")] - public EntitySet Doc_DocManage - { - get - { - return this._Doc_DocManage; - } - set - { - this._Doc_DocManage.Assign(value); - } - } - public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; @@ -20638,18 +20688,6 @@ namespace Model this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } - - private void attach_Doc_DocManage(Doc_DocManage entity) - { - this.SendPropertyChanging(); - entity.Base_DocType = this; - } - - private void detach_Doc_DocManage(Doc_DocManage entity) - { - this.SendPropertyChanging(); - entity.Base_DocType = null; - } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Base_EmergencyType")] @@ -114607,8 +114645,6 @@ namespace Model private EntityRef _Base_CNProfessional; - private EntityRef _Base_DocType; - private EntityRef _Base_Project; private EntityRef _Base_Unit; @@ -114660,7 +114696,6 @@ namespace Model public Doc_DocManage() { this._Base_CNProfessional = default(EntityRef); - this._Base_DocType = default(EntityRef); this._Base_Project = default(EntityRef); this._Base_Unit = default(EntityRef); this._Sys_User = default(EntityRef); @@ -114739,10 +114774,6 @@ namespace Model { if ((this._DocTypeId != value)) { - if (this._Base_DocType.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } this.OnDocTypeIdChanging(value); this.SendPropertyChanging(); this._DocTypeId = value; @@ -115062,40 +115093,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManage_Base_DocType", Storage="_Base_DocType", ThisKey="DocTypeId", OtherKey="DocTypeId", IsForeignKey=true)] - public Base_DocType Base_DocType - { - get - { - return this._Base_DocType.Entity; - } - set - { - Base_DocType previousValue = this._Base_DocType.Entity; - if (((previousValue != value) - || (this._Base_DocType.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._Base_DocType.Entity = null; - previousValue.Doc_DocManage.Remove(this); - } - this._Base_DocType.Entity = value; - if ((value != null)) - { - value.Doc_DocManage.Add(this); - this._DocTypeId = value.DocTypeId; - } - else - { - this._DocTypeId = default(string); - } - this.SendPropertyChanged("Base_DocType"); - } - } - } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManage_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] public Base_Project Base_Project { @@ -115266,8 +115263,6 @@ namespace Model private EntityRef _Doc_DocManage; - private EntityRef _Sys_User; - #region 可扩展性方法定义 partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); @@ -115291,7 +115286,6 @@ namespace Model public Doc_DocManageApprove() { this._Doc_DocManage = default(EntityRef); - this._Sys_User = default(EntityRef); OnCreated(); } @@ -115339,7 +115333,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveMan", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveMan", DbType="NVarChar(500)")] public string ApproveMan { get @@ -115350,10 +115344,6 @@ namespace Model { if ((this._ApproveMan != value)) { - if (this._Sys_User.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } this.OnApproveManChanging(value); this.SendPropertyChanging(); this._ApproveMan = value; @@ -115477,40 +115467,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManageApprove_Sys_User", Storage="_Sys_User", ThisKey="ApproveMan", OtherKey="UserId", IsForeignKey=true)] - public Sys_User Sys_User - { - get - { - return this._Sys_User.Entity; - } - set - { - Sys_User previousValue = this._Sys_User.Entity; - if (((previousValue != value) - || (this._Sys_User.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._Sys_User.Entity = null; - previousValue.Doc_DocManageApprove.Remove(this); - } - this._Sys_User.Entity = value; - if ((value != null)) - { - value.Doc_DocManageApprove.Add(this); - this._ApproveMan = value.UserId; - } - else - { - this._ApproveMan = default(string); - } - this.SendPropertyChanged("Sys_User"); - } - } - } - public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; @@ -222367,6 +222323,452 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Manager_Month_ComplianceObligations")] + public partial class Manager_Month_ComplianceObligations : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ComplianceObligationsId; + + private string _MonthReportId; + + private string _InformationContent; + + private string _ResponseMeasures; + + private string _ImplementationStatus; + + private string _EvaluationConclusion; + + private EntityRef _Manager_MonthReportC; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnComplianceObligationsIdChanging(string value); + partial void OnComplianceObligationsIdChanged(); + partial void OnMonthReportIdChanging(string value); + partial void OnMonthReportIdChanged(); + partial void OnInformationContentChanging(string value); + partial void OnInformationContentChanged(); + partial void OnResponseMeasuresChanging(string value); + partial void OnResponseMeasuresChanged(); + partial void OnImplementationStatusChanging(string value); + partial void OnImplementationStatusChanged(); + partial void OnEvaluationConclusionChanging(string value); + partial void OnEvaluationConclusionChanged(); + #endregion + + public Manager_Month_ComplianceObligations() + { + this._Manager_MonthReportC = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ComplianceObligationsId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string ComplianceObligationsId + { + get + { + return this._ComplianceObligationsId; + } + set + { + if ((this._ComplianceObligationsId != value)) + { + this.OnComplianceObligationsIdChanging(value); + this.SendPropertyChanging(); + this._ComplianceObligationsId = value; + this.SendPropertyChanged("ComplianceObligationsId"); + this.OnComplianceObligationsIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] + public string MonthReportId + { + get + { + return this._MonthReportId; + } + set + { + if ((this._MonthReportId != value)) + { + if (this._Manager_MonthReportC.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnMonthReportIdChanging(value); + this.SendPropertyChanging(); + this._MonthReportId = value; + this.SendPropertyChanged("MonthReportId"); + this.OnMonthReportIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InformationContent", DbType="NVarChar(500)")] + public string InformationContent + { + get + { + return this._InformationContent; + } + set + { + if ((this._InformationContent != value)) + { + this.OnInformationContentChanging(value); + this.SendPropertyChanging(); + this._InformationContent = value; + this.SendPropertyChanged("InformationContent"); + this.OnInformationContentChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResponseMeasures", DbType="NVarChar(500)")] + public string ResponseMeasures + { + get + { + return this._ResponseMeasures; + } + set + { + if ((this._ResponseMeasures != value)) + { + this.OnResponseMeasuresChanging(value); + this.SendPropertyChanging(); + this._ResponseMeasures = value; + this.SendPropertyChanged("ResponseMeasures"); + this.OnResponseMeasuresChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ImplementationStatus", DbType="NVarChar(500)")] + public string ImplementationStatus + { + get + { + return this._ImplementationStatus; + } + set + { + if ((this._ImplementationStatus != value)) + { + this.OnImplementationStatusChanging(value); + this.SendPropertyChanging(); + this._ImplementationStatus = value; + this.SendPropertyChanged("ImplementationStatus"); + this.OnImplementationStatusChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EvaluationConclusion", DbType="NVarChar(50)")] + public string EvaluationConclusion + { + get + { + return this._EvaluationConclusion; + } + set + { + if ((this._EvaluationConclusion != value)) + { + this.OnEvaluationConclusionChanging(value); + this.SendPropertyChanging(); + this._EvaluationConclusion = value; + this.SendPropertyChanged("EvaluationConclusion"); + this.OnEvaluationConclusionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_Month_ComplianceObligations_Manager_MonthReportC", Storage="_Manager_MonthReportC", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] + public Manager_MonthReportC Manager_MonthReportC + { + get + { + return this._Manager_MonthReportC.Entity; + } + set + { + Manager_MonthReportC previousValue = this._Manager_MonthReportC.Entity; + if (((previousValue != value) + || (this._Manager_MonthReportC.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Manager_MonthReportC.Entity = null; + previousValue.Manager_Month_ComplianceObligations.Remove(this); + } + this._Manager_MonthReportC.Entity = value; + if ((value != null)) + { + value.Manager_Month_ComplianceObligations.Add(this); + this._MonthReportId = value.MonthReportId; + } + else + { + this._MonthReportId = default(string); + } + this.SendPropertyChanged("Manager_MonthReportC"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Manager_Month_ComplianceObligationsC")] + public partial class Manager_Month_ComplianceObligationsC : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ComplianceObligationsId; + + private string _MonthReportId; + + private string _InformationContent; + + private string _ResponseMeasures; + + private string _ImplementationStatus; + + private string _EvaluationConclusion; + + private EntityRef _Manager_MonthReportC; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnComplianceObligationsIdChanging(string value); + partial void OnComplianceObligationsIdChanged(); + partial void OnMonthReportIdChanging(string value); + partial void OnMonthReportIdChanged(); + partial void OnInformationContentChanging(string value); + partial void OnInformationContentChanged(); + partial void OnResponseMeasuresChanging(string value); + partial void OnResponseMeasuresChanged(); + partial void OnImplementationStatusChanging(string value); + partial void OnImplementationStatusChanged(); + partial void OnEvaluationConclusionChanging(string value); + partial void OnEvaluationConclusionChanged(); + #endregion + + public Manager_Month_ComplianceObligationsC() + { + this._Manager_MonthReportC = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ComplianceObligationsId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string ComplianceObligationsId + { + get + { + return this._ComplianceObligationsId; + } + set + { + if ((this._ComplianceObligationsId != value)) + { + this.OnComplianceObligationsIdChanging(value); + this.SendPropertyChanging(); + this._ComplianceObligationsId = value; + this.SendPropertyChanged("ComplianceObligationsId"); + this.OnComplianceObligationsIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] + public string MonthReportId + { + get + { + return this._MonthReportId; + } + set + { + if ((this._MonthReportId != value)) + { + if (this._Manager_MonthReportC.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnMonthReportIdChanging(value); + this.SendPropertyChanging(); + this._MonthReportId = value; + this.SendPropertyChanged("MonthReportId"); + this.OnMonthReportIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InformationContent", DbType="NVarChar(500)")] + public string InformationContent + { + get + { + return this._InformationContent; + } + set + { + if ((this._InformationContent != value)) + { + this.OnInformationContentChanging(value); + this.SendPropertyChanging(); + this._InformationContent = value; + this.SendPropertyChanged("InformationContent"); + this.OnInformationContentChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResponseMeasures", DbType="NVarChar(500)")] + public string ResponseMeasures + { + get + { + return this._ResponseMeasures; + } + set + { + if ((this._ResponseMeasures != value)) + { + this.OnResponseMeasuresChanging(value); + this.SendPropertyChanging(); + this._ResponseMeasures = value; + this.SendPropertyChanged("ResponseMeasures"); + this.OnResponseMeasuresChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ImplementationStatus", DbType="NVarChar(500)")] + public string ImplementationStatus + { + get + { + return this._ImplementationStatus; + } + set + { + if ((this._ImplementationStatus != value)) + { + this.OnImplementationStatusChanging(value); + this.SendPropertyChanging(); + this._ImplementationStatus = value; + this.SendPropertyChanged("ImplementationStatus"); + this.OnImplementationStatusChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EvaluationConclusion", DbType="NVarChar(50)")] + public string EvaluationConclusion + { + get + { + return this._EvaluationConclusion; + } + set + { + if ((this._EvaluationConclusion != value)) + { + this.OnEvaluationConclusionChanging(value); + this.SendPropertyChanging(); + this._EvaluationConclusion = value; + this.SendPropertyChanged("EvaluationConclusion"); + this.OnEvaluationConclusionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_Month_ComplianceObligationsC_Manager_MonthReportC", Storage="_Manager_MonthReportC", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] + public Manager_MonthReportC Manager_MonthReportC + { + get + { + return this._Manager_MonthReportC.Entity; + } + set + { + Manager_MonthReportC previousValue = this._Manager_MonthReportC.Entity; + if (((previousValue != value) + || (this._Manager_MonthReportC.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Manager_MonthReportC.Entity = null; + previousValue.Manager_Month_ComplianceObligationsC.Remove(this); + } + this._Manager_MonthReportC.Entity = value; + if ((value != null)) + { + value.Manager_Month_ComplianceObligationsC.Add(this); + this._MonthReportId = value.MonthReportId; + } + else + { + this._MonthReportId = default(string); + } + this.SendPropertyChanged("Manager_MonthReportC"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Manager_Month_CostInvestmentPlanC")] public partial class Manager_Month_CostInvestmentPlanC : INotifyPropertyChanging, INotifyPropertyChanged { @@ -223590,13 +223992,13 @@ namespace Model private string _WorkArea; - private string _Subcontractor; + private string _EnvironmentalFactors; - private string _DangerousSource; + private string _Consequence; private string _ControlMeasures; - private System.Nullable _SortIndex; + private System.Nullable _IsMajor; private EntityRef _Manager_MonthReportC; @@ -223610,14 +224012,14 @@ namespace Model partial void OnMonthReportIdChanged(); partial void OnWorkAreaChanging(string value); partial void OnWorkAreaChanged(); - partial void OnSubcontractorChanging(string value); - partial void OnSubcontractorChanged(); - partial void OnDangerousSourceChanging(string value); - partial void OnDangerousSourceChanged(); + partial void OnEnvironmentalFactorsChanging(string value); + partial void OnEnvironmentalFactorsChanged(); + partial void OnConsequenceChanging(string value); + partial void OnConsequenceChanged(); partial void OnControlMeasuresChanging(string value); partial void OnControlMeasuresChanged(); - partial void OnSortIndexChanging(System.Nullable value); - partial void OnSortIndexChanged(); + partial void OnIsMajorChanging(System.Nullable value); + partial void OnIsMajorChanged(); #endregion public Manager_Month_HazardC() @@ -223690,42 +224092,42 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Subcontractor", DbType="NVarChar(50)")] - public string Subcontractor + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EnvironmentalFactors", DbType="NVarChar(500)")] + public string EnvironmentalFactors { get { - return this._Subcontractor; + return this._EnvironmentalFactors; } set { - if ((this._Subcontractor != value)) + if ((this._EnvironmentalFactors != value)) { - this.OnSubcontractorChanging(value); + this.OnEnvironmentalFactorsChanging(value); this.SendPropertyChanging(); - this._Subcontractor = value; - this.SendPropertyChanged("Subcontractor"); - this.OnSubcontractorChanged(); + this._EnvironmentalFactors = value; + this.SendPropertyChanged("EnvironmentalFactors"); + this.OnEnvironmentalFactorsChanged(); } } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DangerousSource", DbType="NVarChar(50)")] - public string DangerousSource + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Consequence", DbType="NVarChar(500)")] + public string Consequence { get { - return this._DangerousSource; + return this._Consequence; } set { - if ((this._DangerousSource != value)) + if ((this._Consequence != value)) { - this.OnDangerousSourceChanging(value); + this.OnConsequenceChanging(value); this.SendPropertyChanging(); - this._DangerousSource = value; - this.SendPropertyChanged("DangerousSource"); - this.OnDangerousSourceChanged(); + this._Consequence = value; + this.SendPropertyChanged("Consequence"); + this.OnConsequenceChanged(); } } } @@ -223750,22 +224152,22 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SortIndex", DbType="Int")] - public System.Nullable SortIndex + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsMajor", DbType="Bit")] + public System.Nullable IsMajor { get { - return this._SortIndex; + return this._IsMajor; } set { - if ((this._SortIndex != value)) + if ((this._IsMajor != value)) { - this.OnSortIndexChanging(value); + this.OnIsMajorChanging(value); this.SendPropertyChanging(); - this._SortIndex = value; - this.SendPropertyChanged("SortIndex"); - this.OnSortIndexChanged(); + this._IsMajor = value; + this.SendPropertyChanged("IsMajor"); + this.OnIsMajorChanged(); } } } @@ -223825,6 +224227,397 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Manager_Month_InjuryAccidentC")] + public partial class Manager_Month_InjuryAccidentC : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _InjuryAccidentId; + + private string _MonthReportId; + + private string _UnitName; + + private System.Nullable _AttemptedIncidents; + + private System.Nullable _FirstAidDressing; + + private System.Nullable _MedicalTreatment; + + private System.Nullable _WorkLimitation; + + private System.Nullable _LossPerson; + + private System.Nullable _LossWorkTime; + + private System.Nullable _LossEconomy; + + private System.Nullable _DeathPerson; + + private System.Nullable _DeathWorkTime; + + private System.Nullable _DeathEconomy; + + private EntityRef _Manager_MonthReportC; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnInjuryAccidentIdChanging(string value); + partial void OnInjuryAccidentIdChanged(); + partial void OnMonthReportIdChanging(string value); + partial void OnMonthReportIdChanged(); + partial void OnUnitNameChanging(string value); + partial void OnUnitNameChanged(); + partial void OnAttemptedIncidentsChanging(System.Nullable value); + partial void OnAttemptedIncidentsChanged(); + partial void OnFirstAidDressingChanging(System.Nullable value); + partial void OnFirstAidDressingChanged(); + partial void OnMedicalTreatmentChanging(System.Nullable value); + partial void OnMedicalTreatmentChanged(); + partial void OnWorkLimitationChanging(System.Nullable value); + partial void OnWorkLimitationChanged(); + partial void OnLossPersonChanging(System.Nullable value); + partial void OnLossPersonChanged(); + partial void OnLossWorkTimeChanging(System.Nullable value); + partial void OnLossWorkTimeChanged(); + partial void OnLossEconomyChanging(System.Nullable value); + partial void OnLossEconomyChanged(); + partial void OnDeathPersonChanging(System.Nullable value); + partial void OnDeathPersonChanged(); + partial void OnDeathWorkTimeChanging(System.Nullable value); + partial void OnDeathWorkTimeChanged(); + partial void OnDeathEconomyChanging(System.Nullable value); + partial void OnDeathEconomyChanged(); + #endregion + + public Manager_Month_InjuryAccidentC() + { + this._Manager_MonthReportC = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InjuryAccidentId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string InjuryAccidentId + { + get + { + return this._InjuryAccidentId; + } + set + { + if ((this._InjuryAccidentId != value)) + { + this.OnInjuryAccidentIdChanging(value); + this.SendPropertyChanging(); + this._InjuryAccidentId = value; + this.SendPropertyChanged("InjuryAccidentId"); + this.OnInjuryAccidentIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] + public string MonthReportId + { + get + { + return this._MonthReportId; + } + set + { + if ((this._MonthReportId != value)) + { + if (this._Manager_MonthReportC.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnMonthReportIdChanging(value); + this.SendPropertyChanging(); + this._MonthReportId = value; + this.SendPropertyChanged("MonthReportId"); + this.OnMonthReportIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitName", DbType="NVarChar(50)")] + public string UnitName + { + get + { + return this._UnitName; + } + set + { + if ((this._UnitName != value)) + { + this.OnUnitNameChanging(value); + this.SendPropertyChanging(); + this._UnitName = value; + this.SendPropertyChanged("UnitName"); + this.OnUnitNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttemptedIncidents", DbType="Int")] + public System.Nullable AttemptedIncidents + { + get + { + return this._AttemptedIncidents; + } + set + { + if ((this._AttemptedIncidents != value)) + { + this.OnAttemptedIncidentsChanging(value); + this.SendPropertyChanging(); + this._AttemptedIncidents = value; + this.SendPropertyChanged("AttemptedIncidents"); + this.OnAttemptedIncidentsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FirstAidDressing", DbType="Int")] + public System.Nullable FirstAidDressing + { + get + { + return this._FirstAidDressing; + } + set + { + if ((this._FirstAidDressing != value)) + { + this.OnFirstAidDressingChanging(value); + this.SendPropertyChanging(); + this._FirstAidDressing = value; + this.SendPropertyChanged("FirstAidDressing"); + this.OnFirstAidDressingChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MedicalTreatment", DbType="Int")] + public System.Nullable MedicalTreatment + { + get + { + return this._MedicalTreatment; + } + set + { + if ((this._MedicalTreatment != value)) + { + this.OnMedicalTreatmentChanging(value); + this.SendPropertyChanging(); + this._MedicalTreatment = value; + this.SendPropertyChanged("MedicalTreatment"); + this.OnMedicalTreatmentChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkLimitation", DbType="Int")] + public System.Nullable WorkLimitation + { + get + { + return this._WorkLimitation; + } + set + { + if ((this._WorkLimitation != value)) + { + this.OnWorkLimitationChanging(value); + this.SendPropertyChanging(); + this._WorkLimitation = value; + this.SendPropertyChanged("WorkLimitation"); + this.OnWorkLimitationChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LossPerson", DbType="Int")] + public System.Nullable LossPerson + { + get + { + return this._LossPerson; + } + set + { + if ((this._LossPerson != value)) + { + this.OnLossPersonChanging(value); + this.SendPropertyChanging(); + this._LossPerson = value; + this.SendPropertyChanged("LossPerson"); + this.OnLossPersonChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LossWorkTime", DbType="Decimal(18,2)")] + public System.Nullable LossWorkTime + { + get + { + return this._LossWorkTime; + } + set + { + if ((this._LossWorkTime != value)) + { + this.OnLossWorkTimeChanging(value); + this.SendPropertyChanging(); + this._LossWorkTime = value; + this.SendPropertyChanged("LossWorkTime"); + this.OnLossWorkTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LossEconomy", DbType="Decimal(18,2)")] + public System.Nullable LossEconomy + { + get + { + return this._LossEconomy; + } + set + { + if ((this._LossEconomy != value)) + { + this.OnLossEconomyChanging(value); + this.SendPropertyChanging(); + this._LossEconomy = value; + this.SendPropertyChanged("LossEconomy"); + this.OnLossEconomyChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeathPerson", DbType="Int")] + public System.Nullable DeathPerson + { + get + { + return this._DeathPerson; + } + set + { + if ((this._DeathPerson != value)) + { + this.OnDeathPersonChanging(value); + this.SendPropertyChanging(); + this._DeathPerson = value; + this.SendPropertyChanged("DeathPerson"); + this.OnDeathPersonChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeathWorkTime", DbType="Decimal(18,2)")] + public System.Nullable DeathWorkTime + { + get + { + return this._DeathWorkTime; + } + set + { + if ((this._DeathWorkTime != value)) + { + this.OnDeathWorkTimeChanging(value); + this.SendPropertyChanging(); + this._DeathWorkTime = value; + this.SendPropertyChanged("DeathWorkTime"); + this.OnDeathWorkTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeathEconomy", DbType="Decimal(18,2)")] + public System.Nullable DeathEconomy + { + get + { + return this._DeathEconomy; + } + set + { + if ((this._DeathEconomy != value)) + { + this.OnDeathEconomyChanging(value); + this.SendPropertyChanging(); + this._DeathEconomy = value; + this.SendPropertyChanged("DeathEconomy"); + this.OnDeathEconomyChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_Month_InjuryAccidentC_Manager_MonthReportC", Storage="_Manager_MonthReportC", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] + public Manager_MonthReportC Manager_MonthReportC + { + get + { + return this._Manager_MonthReportC.Entity; + } + set + { + Manager_MonthReportC previousValue = this._Manager_MonthReportC.Entity; + if (((previousValue != value) + || (this._Manager_MonthReportC.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Manager_MonthReportC.Entity = null; + previousValue.Manager_Month_InjuryAccidentC.Remove(this); + } + this._Manager_MonthReportC.Entity = value; + if ((value != null)) + { + value.Manager_Month_InjuryAccidentC.Add(this); + this._MonthReportId = value.MonthReportId; + } + else + { + this._MonthReportId = default(string); + } + this.SendPropertyChanged("Manager_MonthReportC"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Manager_Month_ManageDocPlanC")] public partial class Manager_Month_ManageDocPlanC : INotifyPropertyChanging, INotifyPropertyChanged { @@ -224295,6 +225088,229 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Manager_Month_NoInjuryAccidentC")] + public partial class Manager_Month_NoInjuryAccidentC : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _NoInjuryAccidentId; + + private string _MonthReportId; + + private string _AccidentType; + + private System.Nullable _EconomicLosses; + + private System.Nullable _WHAccidentCount; + + private System.Nullable _SubAccidentCount; + + private EntityRef _Manager_MonthReportC; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnNoInjuryAccidentIdChanging(string value); + partial void OnNoInjuryAccidentIdChanged(); + partial void OnMonthReportIdChanging(string value); + partial void OnMonthReportIdChanged(); + partial void OnAccidentTypeChanging(string value); + partial void OnAccidentTypeChanged(); + partial void OnEconomicLossesChanging(System.Nullable value); + partial void OnEconomicLossesChanged(); + partial void OnWHAccidentCountChanging(System.Nullable value); + partial void OnWHAccidentCountChanged(); + partial void OnSubAccidentCountChanging(System.Nullable value); + partial void OnSubAccidentCountChanged(); + #endregion + + public Manager_Month_NoInjuryAccidentC() + { + this._Manager_MonthReportC = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NoInjuryAccidentId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string NoInjuryAccidentId + { + get + { + return this._NoInjuryAccidentId; + } + set + { + if ((this._NoInjuryAccidentId != value)) + { + this.OnNoInjuryAccidentIdChanging(value); + this.SendPropertyChanging(); + this._NoInjuryAccidentId = value; + this.SendPropertyChanged("NoInjuryAccidentId"); + this.OnNoInjuryAccidentIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] + public string MonthReportId + { + get + { + return this._MonthReportId; + } + set + { + if ((this._MonthReportId != value)) + { + if (this._Manager_MonthReportC.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnMonthReportIdChanging(value); + this.SendPropertyChanging(); + this._MonthReportId = value; + this.SendPropertyChanged("MonthReportId"); + this.OnMonthReportIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccidentType", DbType="NVarChar(50)")] + public string AccidentType + { + get + { + return this._AccidentType; + } + set + { + if ((this._AccidentType != value)) + { + this.OnAccidentTypeChanging(value); + this.SendPropertyChanging(); + this._AccidentType = value; + this.SendPropertyChanged("AccidentType"); + this.OnAccidentTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EconomicLosses", DbType="Decimal(18,2)")] + public System.Nullable EconomicLosses + { + get + { + return this._EconomicLosses; + } + set + { + if ((this._EconomicLosses != value)) + { + this.OnEconomicLossesChanging(value); + this.SendPropertyChanging(); + this._EconomicLosses = value; + this.SendPropertyChanged("EconomicLosses"); + this.OnEconomicLossesChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WHAccidentCount", DbType="Int")] + public System.Nullable WHAccidentCount + { + get + { + return this._WHAccidentCount; + } + set + { + if ((this._WHAccidentCount != value)) + { + this.OnWHAccidentCountChanging(value); + this.SendPropertyChanging(); + this._WHAccidentCount = value; + this.SendPropertyChanged("WHAccidentCount"); + this.OnWHAccidentCountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubAccidentCount", DbType="Int")] + public System.Nullable SubAccidentCount + { + get + { + return this._SubAccidentCount; + } + set + { + if ((this._SubAccidentCount != value)) + { + this.OnSubAccidentCountChanging(value); + this.SendPropertyChanging(); + this._SubAccidentCount = value; + this.SendPropertyChanged("SubAccidentCount"); + this.OnSubAccidentCountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_Month_NoInjuryAccidentC_Manager_MonthReportC", Storage="_Manager_MonthReportC", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] + public Manager_MonthReportC Manager_MonthReportC + { + get + { + return this._Manager_MonthReportC.Entity; + } + set + { + Manager_MonthReportC previousValue = this._Manager_MonthReportC.Entity; + if (((previousValue != value) + || (this._Manager_MonthReportC.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Manager_MonthReportC.Entity = null; + previousValue.Manager_Month_NoInjuryAccidentC.Remove(this); + } + this._Manager_MonthReportC.Entity = value; + if ((value != null)) + { + value.Manager_Month_NoInjuryAccidentC.Add(this); + this._MonthReportId = value.MonthReportId; + } + else + { + this._MonthReportId = default(string); + } + this.SendPropertyChanged("Manager_MonthReportC"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Manager_Month_OtherManagementC")] public partial class Manager_Month_OtherManagementC : INotifyPropertyChanging, INotifyPropertyChanged { @@ -224820,6 +225836,229 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Manager_Month_PerformanceIndicatorC")] + public partial class Manager_Month_PerformanceIndicatorC : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _PerformanceIndicatorId; + + private string _MonthReportId; + + private string _IndicatorType; + + private string _IndicatorName; + + private string _IndicatorValue; + + private System.Nullable _SortIndex; + + private EntityRef _Manager_MonthReportC; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnPerformanceIndicatorIdChanging(string value); + partial void OnPerformanceIndicatorIdChanged(); + partial void OnMonthReportIdChanging(string value); + partial void OnMonthReportIdChanged(); + partial void OnIndicatorTypeChanging(string value); + partial void OnIndicatorTypeChanged(); + partial void OnIndicatorNameChanging(string value); + partial void OnIndicatorNameChanged(); + partial void OnIndicatorValueChanging(string value); + partial void OnIndicatorValueChanged(); + partial void OnSortIndexChanging(System.Nullable value); + partial void OnSortIndexChanged(); + #endregion + + public Manager_Month_PerformanceIndicatorC() + { + this._Manager_MonthReportC = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PerformanceIndicatorId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string PerformanceIndicatorId + { + get + { + return this._PerformanceIndicatorId; + } + set + { + if ((this._PerformanceIndicatorId != value)) + { + this.OnPerformanceIndicatorIdChanging(value); + this.SendPropertyChanging(); + this._PerformanceIndicatorId = value; + this.SendPropertyChanged("PerformanceIndicatorId"); + this.OnPerformanceIndicatorIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] + public string MonthReportId + { + get + { + return this._MonthReportId; + } + set + { + if ((this._MonthReportId != value)) + { + if (this._Manager_MonthReportC.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnMonthReportIdChanging(value); + this.SendPropertyChanging(); + this._MonthReportId = value; + this.SendPropertyChanged("MonthReportId"); + this.OnMonthReportIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IndicatorType", DbType="NVarChar(50)")] + public string IndicatorType + { + get + { + return this._IndicatorType; + } + set + { + if ((this._IndicatorType != value)) + { + this.OnIndicatorTypeChanging(value); + this.SendPropertyChanging(); + this._IndicatorType = value; + this.SendPropertyChanged("IndicatorType"); + this.OnIndicatorTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IndicatorName", DbType="NVarChar(200)")] + public string IndicatorName + { + get + { + return this._IndicatorName; + } + set + { + if ((this._IndicatorName != value)) + { + this.OnIndicatorNameChanging(value); + this.SendPropertyChanging(); + this._IndicatorName = value; + this.SendPropertyChanged("IndicatorName"); + this.OnIndicatorNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IndicatorValue", DbType="NVarChar(50)")] + public string IndicatorValue + { + get + { + return this._IndicatorValue; + } + set + { + if ((this._IndicatorValue != value)) + { + this.OnIndicatorValueChanging(value); + this.SendPropertyChanging(); + this._IndicatorValue = value; + this.SendPropertyChanged("IndicatorValue"); + this.OnIndicatorValueChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SortIndex", DbType="Int")] + public System.Nullable SortIndex + { + get + { + return this._SortIndex; + } + set + { + if ((this._SortIndex != value)) + { + this.OnSortIndexChanging(value); + this.SendPropertyChanging(); + this._SortIndex = value; + this.SendPropertyChanged("SortIndex"); + this.OnSortIndexChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_Month_PerformanceIndicatorC_Manager_MonthReportC", Storage="_Manager_MonthReportC", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] + public Manager_MonthReportC Manager_MonthReportC + { + get + { + return this._Manager_MonthReportC.Entity; + } + set + { + Manager_MonthReportC previousValue = this._Manager_MonthReportC.Entity; + if (((previousValue != value) + || (this._Manager_MonthReportC.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Manager_MonthReportC.Entity = null; + previousValue.Manager_Month_PerformanceIndicatorC.Remove(this); + } + this._Manager_MonthReportC.Entity = value; + if ((value != null)) + { + value.Manager_Month_PerformanceIndicatorC.Add(this); + this._MonthReportId = value.MonthReportId; + } + else + { + this._MonthReportId = default(string); + } + this.SendPropertyChanged("Manager_MonthReportC"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Manager_Month_PlanC")] public partial class Manager_Month_PlanC : INotifyPropertyChanging, INotifyPropertyChanged { @@ -225284,6 +226523,12 @@ namespace Model private System.Nullable _SortIndex; + private System.Nullable _ContractAmount; + + private System.Nullable _MonthApprovalAmount; + + private System.Nullable _ProjectApprovalAmount; + private EntityRef _Manager_MonthReportC; #region 可扩展性方法定义 @@ -225302,6 +226547,12 @@ namespace Model partial void OnCostYearChanged(); partial void OnSortIndexChanging(System.Nullable value); partial void OnSortIndexChanged(); + partial void OnContractAmountChanging(System.Nullable value); + partial void OnContractAmountChanged(); + partial void OnMonthApprovalAmountChanging(System.Nullable value); + partial void OnMonthApprovalAmountChanged(); + partial void OnProjectApprovalAmountChanging(System.Nullable value); + partial void OnProjectApprovalAmountChanged(); #endregion public Manager_Month_SubExpenseC() @@ -225434,6 +226685,66 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractAmount", DbType="Decimal(18,2)")] + public System.Nullable ContractAmount + { + get + { + return this._ContractAmount; + } + set + { + if ((this._ContractAmount != value)) + { + this.OnContractAmountChanging(value); + this.SendPropertyChanging(); + this._ContractAmount = value; + this.SendPropertyChanged("ContractAmount"); + this.OnContractAmountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthApprovalAmount", DbType="Decimal(18,2)")] + public System.Nullable MonthApprovalAmount + { + get + { + return this._MonthApprovalAmount; + } + set + { + if ((this._MonthApprovalAmount != value)) + { + this.OnMonthApprovalAmountChanging(value); + this.SendPropertyChanging(); + this._MonthApprovalAmount = value; + this.SendPropertyChanged("MonthApprovalAmount"); + this.OnMonthApprovalAmountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectApprovalAmount", DbType="Decimal(18,2)")] + public System.Nullable ProjectApprovalAmount + { + get + { + return this._ProjectApprovalAmount; + } + set + { + if ((this._ProjectApprovalAmount != value)) + { + this.OnProjectApprovalAmountChanging(value); + this.SendPropertyChanging(); + this._ProjectApprovalAmount = value; + this.SendPropertyChanged("ProjectApprovalAmount"); + this.OnProjectApprovalAmountChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_Month_SubExpenseC_Manager_MonthReportC", Storage="_Manager_MonthReportC", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] public Manager_MonthReportC Manager_MonthReportC { @@ -227404,6 +228715,8 @@ namespace Model private string _PhotoContents; + private string _AccidentDef; + private EntitySet _Manager_AccidentSortC; private EntitySet _Manager_CheckDetailSortC; @@ -227432,6 +228745,10 @@ namespace Model private EntitySet _Manager_Month_CheckC; + private EntitySet _Manager_Month_ComplianceObligations; + + private EntitySet _Manager_Month_ComplianceObligationsC; + private EntitySet _Manager_Month_CostInvestmentPlanC; private EntitySet _Manager_Month_EmergencyExercisesC; @@ -227444,16 +228761,22 @@ namespace Model private EntitySet _Manager_Month_HazardC; + private EntitySet _Manager_Month_InjuryAccidentC; + private EntitySet _Manager_Month_ManageDocPlanC; private EntitySet _Manager_Month_MeetingC; + private EntitySet _Manager_Month_NoInjuryAccidentC; + private EntitySet _Manager_Month_OtherManagementC; private EntitySet _Manager_Month_OtherWorkC; private EntitySet _Manager_Month_OtherWorkPlanC; + private EntitySet _Manager_Month_PerformanceIndicatorC; + private EntitySet _Manager_Month_PlanC; private EntitySet _Manager_Month_ReviewRecordC; @@ -227472,6 +228795,8 @@ namespace Model private EntitySet _Manager_PromotionalActiviteSortC; + private EntitySet _Manager_RewardAndPunishSortC; + private EntitySet _Manager_TrainActivitySortC; private EntitySet _Manager_TrainSortC; @@ -227674,6 +228999,8 @@ namespace Model partial void OnNextEmergencyResponseChanged(); partial void OnPhotoContentsChanging(string value); partial void OnPhotoContentsChanged(); + partial void OnAccidentDefChanging(string value); + partial void OnAccidentDefChanged(); #endregion public Manager_MonthReportC() @@ -227692,17 +229019,22 @@ namespace Model this._Manager_Month_ActivitiesC = new EntitySet(new Action(this.attach_Manager_Month_ActivitiesC), new Action(this.detach_Manager_Month_ActivitiesC)); this._Manager_Month_ActivityDesC = new EntitySet(new Action(this.attach_Manager_Month_ActivityDesC), new Action(this.detach_Manager_Month_ActivityDesC)); this._Manager_Month_CheckC = new EntitySet(new Action(this.attach_Manager_Month_CheckC), new Action(this.detach_Manager_Month_CheckC)); + this._Manager_Month_ComplianceObligations = new EntitySet(new Action(this.attach_Manager_Month_ComplianceObligations), new Action(this.detach_Manager_Month_ComplianceObligations)); + this._Manager_Month_ComplianceObligationsC = new EntitySet(new Action(this.attach_Manager_Month_ComplianceObligationsC), new Action(this.detach_Manager_Month_ComplianceObligationsC)); this._Manager_Month_CostInvestmentPlanC = new EntitySet(new Action(this.attach_Manager_Month_CostInvestmentPlanC), new Action(this.detach_Manager_Month_CostInvestmentPlanC)); this._Manager_Month_EmergencyExercisesC = new EntitySet(new Action(this.attach_Manager_Month_EmergencyExercisesC), new Action(this.detach_Manager_Month_EmergencyExercisesC)); this._Manager_Month_EmergencyPlanC = new EntitySet(new Action(this.attach_Manager_Month_EmergencyPlanC), new Action(this.detach_Manager_Month_EmergencyPlanC)); this._Manager_Month_FileManageC = new EntitySet(new Action(this.attach_Manager_Month_FileManageC), new Action(this.detach_Manager_Month_FileManageC)); this._Manager_Month_FiveExpenseC = new EntitySet(new Action(this.attach_Manager_Month_FiveExpenseC), new Action(this.detach_Manager_Month_FiveExpenseC)); this._Manager_Month_HazardC = new EntitySet(new Action(this.attach_Manager_Month_HazardC), new Action(this.detach_Manager_Month_HazardC)); + this._Manager_Month_InjuryAccidentC = new EntitySet(new Action(this.attach_Manager_Month_InjuryAccidentC), new Action(this.detach_Manager_Month_InjuryAccidentC)); this._Manager_Month_ManageDocPlanC = new EntitySet(new Action(this.attach_Manager_Month_ManageDocPlanC), new Action(this.detach_Manager_Month_ManageDocPlanC)); this._Manager_Month_MeetingC = new EntitySet(new Action(this.attach_Manager_Month_MeetingC), new Action(this.detach_Manager_Month_MeetingC)); + this._Manager_Month_NoInjuryAccidentC = new EntitySet(new Action(this.attach_Manager_Month_NoInjuryAccidentC), new Action(this.detach_Manager_Month_NoInjuryAccidentC)); this._Manager_Month_OtherManagementC = new EntitySet(new Action(this.attach_Manager_Month_OtherManagementC), new Action(this.detach_Manager_Month_OtherManagementC)); this._Manager_Month_OtherWorkC = new EntitySet(new Action(this.attach_Manager_Month_OtherWorkC), new Action(this.detach_Manager_Month_OtherWorkC)); this._Manager_Month_OtherWorkPlanC = new EntitySet(new Action(this.attach_Manager_Month_OtherWorkPlanC), new Action(this.detach_Manager_Month_OtherWorkPlanC)); + this._Manager_Month_PerformanceIndicatorC = new EntitySet(new Action(this.attach_Manager_Month_PerformanceIndicatorC), new Action(this.detach_Manager_Month_PerformanceIndicatorC)); this._Manager_Month_PlanC = new EntitySet(new Action(this.attach_Manager_Month_PlanC), new Action(this.detach_Manager_Month_PlanC)); this._Manager_Month_ReviewRecordC = new EntitySet(new Action(this.attach_Manager_Month_ReviewRecordC), new Action(this.detach_Manager_Month_ReviewRecordC)); this._Manager_Month_SubExpenseC = new EntitySet(new Action(this.attach_Manager_Month_SubExpenseC), new Action(this.detach_Manager_Month_SubExpenseC)); @@ -227712,6 +229044,7 @@ namespace Model this._Manager_OtherActiveSortC = new EntitySet(new Action(this.attach_Manager_OtherActiveSortC), new Action(this.detach_Manager_OtherActiveSortC)); this._Manager_PersonSortC = new EntitySet(new Action(this.attach_Manager_PersonSortC), new Action(this.detach_Manager_PersonSortC)); this._Manager_PromotionalActiviteSortC = new EntitySet(new Action(this.attach_Manager_PromotionalActiviteSortC), new Action(this.detach_Manager_PromotionalActiviteSortC)); + this._Manager_RewardAndPunishSortC = new EntitySet(new Action(this.attach_Manager_RewardAndPunishSortC), new Action(this.detach_Manager_RewardAndPunishSortC)); this._Manager_TrainActivitySortC = new EntitySet(new Action(this.attach_Manager_TrainActivitySortC), new Action(this.detach_Manager_TrainActivitySortC)); this._Manager_TrainSortC = new EntitySet(new Action(this.attach_Manager_TrainSortC), new Action(this.detach_Manager_TrainSortC)); OnCreated(); @@ -229665,6 +230998,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccidentDef", DbType="NVarChar(2000)")] + public string AccidentDef + { + get + { + return this._AccidentDef; + } + set + { + if ((this._AccidentDef != value)) + { + this.OnAccidentDefChanging(value); + this.SendPropertyChanging(); + this._AccidentDef = value; + this.SendPropertyChanged("AccidentDef"); + this.OnAccidentDefChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_AccidentCSort_Manager_MonthReport", Storage="_Manager_AccidentSortC", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] public EntitySet Manager_AccidentSortC { @@ -229847,6 +231200,32 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_Month_ComplianceObligations_Manager_MonthReportC", Storage="_Manager_Month_ComplianceObligations", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] + public EntitySet Manager_Month_ComplianceObligations + { + get + { + return this._Manager_Month_ComplianceObligations; + } + set + { + this._Manager_Month_ComplianceObligations.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_Month_ComplianceObligationsC_Manager_MonthReportC", Storage="_Manager_Month_ComplianceObligationsC", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] + public EntitySet Manager_Month_ComplianceObligationsC + { + get + { + return this._Manager_Month_ComplianceObligationsC; + } + set + { + this._Manager_Month_ComplianceObligationsC.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_Month_CostInvestmentPlanC_Manager_MonthReport", Storage="_Manager_Month_CostInvestmentPlanC", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] public EntitySet Manager_Month_CostInvestmentPlanC { @@ -229925,6 +231304,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_Month_InjuryAccidentC_Manager_MonthReportC", Storage="_Manager_Month_InjuryAccidentC", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] + public EntitySet Manager_Month_InjuryAccidentC + { + get + { + return this._Manager_Month_InjuryAccidentC; + } + set + { + this._Manager_Month_InjuryAccidentC.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_Month_ManageDocPlanC_Manager_MonthReport", Storage="_Manager_Month_ManageDocPlanC", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] public EntitySet Manager_Month_ManageDocPlanC { @@ -229951,6 +231343,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_Month_NoInjuryAccidentC_Manager_MonthReportC", Storage="_Manager_Month_NoInjuryAccidentC", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] + public EntitySet Manager_Month_NoInjuryAccidentC + { + get + { + return this._Manager_Month_NoInjuryAccidentC; + } + set + { + this._Manager_Month_NoInjuryAccidentC.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_Month_OtherManagementC_Manager_MonthReport", Storage="_Manager_Month_OtherManagementC", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] public EntitySet Manager_Month_OtherManagementC { @@ -229990,6 +231395,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_Month_PerformanceIndicatorC_Manager_MonthReportC", Storage="_Manager_Month_PerformanceIndicatorC", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] + public EntitySet Manager_Month_PerformanceIndicatorC + { + get + { + return this._Manager_Month_PerformanceIndicatorC; + } + set + { + this._Manager_Month_PerformanceIndicatorC.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_Month_PlanC_Manager_MonthReport", Storage="_Manager_Month_PlanC", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] public EntitySet Manager_Month_PlanC { @@ -230149,6 +231567,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_RewardAndPunishSortC_Manager_MonthReportC", Storage="_Manager_RewardAndPunishSortC", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] + public EntitySet Manager_RewardAndPunishSortC + { + get + { + return this._Manager_RewardAndPunishSortC; + } + set + { + this._Manager_RewardAndPunishSortC.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_TrainActivitySortC_Manager_MonthReportC", Storage="_Manager_TrainActivitySortC", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] public EntitySet Manager_TrainActivitySortC { @@ -230363,6 +231794,30 @@ namespace Model entity.Manager_MonthReportC = null; } + private void attach_Manager_Month_ComplianceObligations(Manager_Month_ComplianceObligations entity) + { + this.SendPropertyChanging(); + entity.Manager_MonthReportC = this; + } + + private void detach_Manager_Month_ComplianceObligations(Manager_Month_ComplianceObligations entity) + { + this.SendPropertyChanging(); + entity.Manager_MonthReportC = null; + } + + private void attach_Manager_Month_ComplianceObligationsC(Manager_Month_ComplianceObligationsC entity) + { + this.SendPropertyChanging(); + entity.Manager_MonthReportC = this; + } + + private void detach_Manager_Month_ComplianceObligationsC(Manager_Month_ComplianceObligationsC entity) + { + this.SendPropertyChanging(); + entity.Manager_MonthReportC = null; + } + private void attach_Manager_Month_CostInvestmentPlanC(Manager_Month_CostInvestmentPlanC entity) { this.SendPropertyChanging(); @@ -230435,6 +231890,18 @@ namespace Model entity.Manager_MonthReportC = null; } + private void attach_Manager_Month_InjuryAccidentC(Manager_Month_InjuryAccidentC entity) + { + this.SendPropertyChanging(); + entity.Manager_MonthReportC = this; + } + + private void detach_Manager_Month_InjuryAccidentC(Manager_Month_InjuryAccidentC entity) + { + this.SendPropertyChanging(); + entity.Manager_MonthReportC = null; + } + private void attach_Manager_Month_ManageDocPlanC(Manager_Month_ManageDocPlanC entity) { this.SendPropertyChanging(); @@ -230459,6 +231926,18 @@ namespace Model entity.Manager_MonthReportC = null; } + private void attach_Manager_Month_NoInjuryAccidentC(Manager_Month_NoInjuryAccidentC entity) + { + this.SendPropertyChanging(); + entity.Manager_MonthReportC = this; + } + + private void detach_Manager_Month_NoInjuryAccidentC(Manager_Month_NoInjuryAccidentC entity) + { + this.SendPropertyChanging(); + entity.Manager_MonthReportC = null; + } + private void attach_Manager_Month_OtherManagementC(Manager_Month_OtherManagementC entity) { this.SendPropertyChanging(); @@ -230495,6 +231974,18 @@ namespace Model entity.Manager_MonthReportC = null; } + private void attach_Manager_Month_PerformanceIndicatorC(Manager_Month_PerformanceIndicatorC entity) + { + this.SendPropertyChanging(); + entity.Manager_MonthReportC = this; + } + + private void detach_Manager_Month_PerformanceIndicatorC(Manager_Month_PerformanceIndicatorC entity) + { + this.SendPropertyChanging(); + entity.Manager_MonthReportC = null; + } + private void attach_Manager_Month_PlanC(Manager_Month_PlanC entity) { this.SendPropertyChanging(); @@ -230579,6 +232070,18 @@ namespace Model entity.Manager_MonthReportC = null; } + private void attach_Manager_RewardAndPunishSortC(Manager_RewardAndPunishSortC entity) + { + this.SendPropertyChanging(); + entity.Manager_MonthReportC = this; + } + + private void detach_Manager_RewardAndPunishSortC(Manager_RewardAndPunishSortC entity) + { + this.SendPropertyChanging(); + entity.Manager_MonthReportC = null; + } + private void attach_Manager_TrainActivitySortC(Manager_TrainActivitySortC entity) { this.SendPropertyChanging(); @@ -232675,6 +234178,8 @@ namespace Model private string _Remark; + private System.Nullable _SumOutPersonNum; + private EntityRef _Base_Unit; private EntityRef _Manager_MonthReportC; @@ -232697,6 +234202,8 @@ namespace Model partial void OnContractRangeChanged(); partial void OnRemarkChanging(string value); partial void OnRemarkChanged(); + partial void OnSumOutPersonNumChanging(System.Nullable value); + partial void OnSumOutPersonNumChanged(); #endregion public Manager_PersonSortC() @@ -232854,6 +234361,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SumOutPersonNum", DbType="Int")] + public System.Nullable SumOutPersonNum + { + get + { + return this._SumOutPersonNum; + } + set + { + if ((this._SumOutPersonNum != value)) + { + this.OnSumOutPersonNumChanging(value); + this.SendPropertyChanging(); + this._SumOutPersonNum = value; + this.SendPropertyChanged("SumOutPersonNum"); + this.OnSumOutPersonNumChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_PersonCSort_Base_Unit", Storage="_Base_Unit", ThisKey="UnitId", OtherKey="UnitId", IsForeignKey=true)] public Base_Unit Base_Unit { @@ -233190,6 +234717,277 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Manager_RewardAndPunishSortC")] + public partial class Manager_RewardAndPunishSortC : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _RewardAndPunishId; + + private string _MonthReportId; + + private System.Nullable _RewardNum; + + private System.Nullable _RewardMoney; + + private System.Nullable _ProjectRewardMoney; + + private System.Nullable _PunishNum; + + private System.Nullable _PunishMoney; + + private System.Nullable _ProjectPunishMoney; + + private EntityRef _Manager_MonthReportC; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnRewardAndPunishIdChanging(string value); + partial void OnRewardAndPunishIdChanged(); + partial void OnMonthReportIdChanging(string value); + partial void OnMonthReportIdChanged(); + partial void OnRewardNumChanging(System.Nullable value); + partial void OnRewardNumChanged(); + partial void OnRewardMoneyChanging(System.Nullable value); + partial void OnRewardMoneyChanged(); + partial void OnProjectRewardMoneyChanging(System.Nullable value); + partial void OnProjectRewardMoneyChanged(); + partial void OnPunishNumChanging(System.Nullable value); + partial void OnPunishNumChanged(); + partial void OnPunishMoneyChanging(System.Nullable value); + partial void OnPunishMoneyChanged(); + partial void OnProjectPunishMoneyChanging(System.Nullable value); + partial void OnProjectPunishMoneyChanged(); + #endregion + + public Manager_RewardAndPunishSortC() + { + this._Manager_MonthReportC = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RewardAndPunishId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string RewardAndPunishId + { + get + { + return this._RewardAndPunishId; + } + set + { + if ((this._RewardAndPunishId != value)) + { + this.OnRewardAndPunishIdChanging(value); + this.SendPropertyChanging(); + this._RewardAndPunishId = value; + this.SendPropertyChanged("RewardAndPunishId"); + this.OnRewardAndPunishIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] + public string MonthReportId + { + get + { + return this._MonthReportId; + } + set + { + if ((this._MonthReportId != value)) + { + if (this._Manager_MonthReportC.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnMonthReportIdChanging(value); + this.SendPropertyChanging(); + this._MonthReportId = value; + this.SendPropertyChanged("MonthReportId"); + this.OnMonthReportIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RewardNum", DbType="Int")] + public System.Nullable RewardNum + { + get + { + return this._RewardNum; + } + set + { + if ((this._RewardNum != value)) + { + this.OnRewardNumChanging(value); + this.SendPropertyChanging(); + this._RewardNum = value; + this.SendPropertyChanged("RewardNum"); + this.OnRewardNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RewardMoney", DbType="Decimal(18,2)")] + public System.Nullable RewardMoney + { + get + { + return this._RewardMoney; + } + set + { + if ((this._RewardMoney != value)) + { + this.OnRewardMoneyChanging(value); + this.SendPropertyChanging(); + this._RewardMoney = value; + this.SendPropertyChanged("RewardMoney"); + this.OnRewardMoneyChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectRewardMoney", DbType="Decimal(18,2)")] + public System.Nullable ProjectRewardMoney + { + get + { + return this._ProjectRewardMoney; + } + set + { + if ((this._ProjectRewardMoney != value)) + { + this.OnProjectRewardMoneyChanging(value); + this.SendPropertyChanging(); + this._ProjectRewardMoney = value; + this.SendPropertyChanged("ProjectRewardMoney"); + this.OnProjectRewardMoneyChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PunishNum", DbType="Int")] + public System.Nullable PunishNum + { + get + { + return this._PunishNum; + } + set + { + if ((this._PunishNum != value)) + { + this.OnPunishNumChanging(value); + this.SendPropertyChanging(); + this._PunishNum = value; + this.SendPropertyChanged("PunishNum"); + this.OnPunishNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PunishMoney", DbType="Decimal(18,2)")] + public System.Nullable PunishMoney + { + get + { + return this._PunishMoney; + } + set + { + if ((this._PunishMoney != value)) + { + this.OnPunishMoneyChanging(value); + this.SendPropertyChanging(); + this._PunishMoney = value; + this.SendPropertyChanged("PunishMoney"); + this.OnPunishMoneyChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectPunishMoney", DbType="Decimal(18,2)")] + public System.Nullable ProjectPunishMoney + { + get + { + return this._ProjectPunishMoney; + } + set + { + if ((this._ProjectPunishMoney != value)) + { + this.OnProjectPunishMoneyChanging(value); + this.SendPropertyChanging(); + this._ProjectPunishMoney = value; + this.SendPropertyChanged("ProjectPunishMoney"); + this.OnProjectPunishMoneyChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_RewardAndPunishSortC_Manager_MonthReportC", Storage="_Manager_MonthReportC", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] + public Manager_MonthReportC Manager_MonthReportC + { + get + { + return this._Manager_MonthReportC.Entity; + } + set + { + Manager_MonthReportC previousValue = this._Manager_MonthReportC.Entity; + if (((previousValue != value) + || (this._Manager_MonthReportC.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Manager_MonthReportC.Entity = null; + previousValue.Manager_RewardAndPunishSortC.Remove(this); + } + this._Manager_MonthReportC.Entity = value; + if ((value != null)) + { + value.Manager_RewardAndPunishSortC.Add(this); + this._MonthReportId = value.MonthReportId; + } + else + { + this._MonthReportId = default(string); + } + this.SendPropertyChanged("Manager_MonthReportC"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Manager_SafetyDataD")] public partial class Manager_SafetyDataD : INotifyPropertyChanging, INotifyPropertyChanged { @@ -237011,6 +238809,10 @@ namespace Model private System.Nullable _SortIndex; + private string _TrainType; + + private System.Nullable _TotalPersonNum; + private EntityRef _Manager_MonthReportC; #region 可扩展性方法定义 @@ -237033,6 +238835,10 @@ namespace Model partial void OnPersonNumChanged(); partial void OnSortIndexChanging(System.Nullable value); partial void OnSortIndexChanged(); + partial void OnTrainTypeChanging(string value); + partial void OnTrainTypeChanged(); + partial void OnTotalPersonNumChanging(System.Nullable value); + partial void OnTotalPersonNumChanged(); #endregion public Manager_TrainSortC() @@ -237205,6 +239011,46 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainType", DbType="NVarChar(50)")] + public string TrainType + { + get + { + return this._TrainType; + } + set + { + if ((this._TrainType != value)) + { + this.OnTrainTypeChanging(value); + this.SendPropertyChanging(); + this._TrainType = value; + this.SendPropertyChanged("TrainType"); + this.OnTrainTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalPersonNum", DbType="Int")] + public System.Nullable TotalPersonNum + { + get + { + return this._TotalPersonNum; + } + set + { + if ((this._TotalPersonNum != value)) + { + this.OnTotalPersonNumChanging(value); + this.SendPropertyChanging(); + this._TotalPersonNum = value; + this.SendPropertyChanged("TotalPersonNum"); + this.OnTotalPersonNumChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_TrainSortC_Manager_MonthReport", Storage="_Manager_MonthReportC", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] public Manager_MonthReportC Manager_MonthReportC { @@ -323998,8 +325844,6 @@ namespace Model private EntitySet _Doc_DocManage; - private EntitySet _Doc_DocManageApprove; - private EntitySet _Driver_DriverProgress; private EntitySet _Driver_DriverReport; @@ -324695,7 +326539,6 @@ namespace Model this._DataBase_File = new EntitySet(new Action(this.attach_DataBase_File), new Action(this.detach_DataBase_File)); this._DataBase_StartWorkReport = new EntitySet(new Action(this.attach_DataBase_StartWorkReport), new Action(this.detach_DataBase_StartWorkReport)); this._Doc_DocManage = new EntitySet(new Action(this.attach_Doc_DocManage), new Action(this.detach_Doc_DocManage)); - this._Doc_DocManageApprove = new EntitySet(new Action(this.attach_Doc_DocManageApprove), new Action(this.detach_Doc_DocManageApprove)); this._Driver_DriverProgress = new EntitySet(new Action(this.attach_Driver_DriverProgress), new Action(this.detach_Driver_DriverProgress)); this._Driver_DriverReport = new EntitySet(new Action(this.attach_Driver_DriverReport), new Action(this.detach_Driver_DriverReport)); this._Driver_DriverScheme = new EntitySet(new Action(this.attach_Driver_DriverScheme), new Action(this.detach_Driver_DriverScheme)); @@ -327065,19 +328908,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManageApprove_Sys_User", Storage="_Doc_DocManageApprove", ThisKey="UserId", OtherKey="ApproveMan", DeleteRule="NO ACTION")] - public EntitySet Doc_DocManageApprove - { - get - { - return this._Doc_DocManageApprove; - } - set - { - this._Doc_DocManageApprove.Assign(value); - } - } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Driver_DriverProgress_Sys_User", Storage="_Driver_DriverProgress", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")] public EntitySet Driver_DriverProgress { @@ -331441,18 +333271,6 @@ namespace Model entity.Sys_User = null; } - private void attach_Doc_DocManageApprove(Doc_DocManageApprove entity) - { - this.SendPropertyChanging(); - entity.Sys_User = this; - } - - private void detach_Doc_DocManageApprove(Doc_DocManageApprove entity) - { - this.SendPropertyChanging(); - entity.Sys_User = null; - } - private void attach_Driver_DriverProgress(Driver_DriverProgress entity) { this.SendPropertyChanging();