From 2d0bb16490c883313ac61b83d4a22f5d9336d73f Mon Sep 17 00:00:00 2001 From: "754998852@qq.com" <754998852@qq.com> Date: Tue, 27 Aug 2024 17:36:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9hsse=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E6=9C=88=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SGGLDB_WH_V2024-08-26-phf.sql | 88 + .../SGGLDB_WH_V2024-08-27-phf.sql | 2 + .../ManagerMonthC/MonthReportCService.cs | 41 +- .../ManagerMonthC/PersonSortCService.cs | 58 + .../ManagerMonthC/TrainSortCService.cs | 17 +- .../HSSE/Manager/ManagerMonthC.aspx.cs | 2 +- .../HSSE/Manager/ManagerMonthCEdit.aspx | 571 ++++++- .../HSSE/Manager/ManagerMonthCEdit.aspx.cs | 1485 ++++++++++++++++- .../ManagerMonthCEdit.aspx.designer.cs | 961 ++++++++++- .../HSSE/Manager/ManagerMonthCNew.aspx.cs | 81 +- SGGL/Model/Model.cs | 1180 +++++++++++++ 11 files changed, 4320 insertions(+), 166 deletions(-) create mode 100644 DataBase/版本日志/SGGLDB_WH_V2024-08-26-phf.sql create mode 100644 DataBase/版本日志/SGGLDB_WH_V2024-08-27-phf.sql diff --git a/DataBase/版本日志/SGGLDB_WH_V2024-08-26-phf.sql b/DataBase/版本日志/SGGLDB_WH_V2024-08-26-phf.sql new file mode 100644 index 00000000..3fb902bb --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_V2024-08-26-phf.sql @@ -0,0 +1,88 @@ +--Manager_ProjectAssignment±Ŀҵɹ +CREATE TABLE [dbo].[Manager_ProjectAssignment]( + [Id] [nvarchar](50) NOT NULL, + [MonthReportId] [nvarchar](50) NULL, + [FireWorkCount] [int] NULL, + [BreakGroundCount] [int] NULL, + [LimitedSpaceCount] [int] NULL, + [ElectricityCount] [int] NULL, + [HeightWorkCount] [int] NULL, + [RadialWork] [int] NULL, + [LiftingWorkCount] [int] NULL, + [NightWork] [int] NULL, + [MonthCount] [int] NULL, + [YearCount] [int] NULL, + [ProCount] [int] NULL, + CONSTRAINT [PK_Manager_ProjectAssignment] PRIMARY KEY CLUSTERED +( + [Id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY]; + +--Ӿר֤ijΣ󹤳 +alter table Manager_MonthReportC +add MonthExpertCount int null; + +--ӷǾר֤Σ󹤳 +alter table Manager_MonthReportC +add MonthExpertNoCount int null; + +--ӦԤManager_EmergencyPlan +CREATE TABLE [dbo].[Manager_EmergencyPlan]( + [Id] [nvarchar](50) NOT NULL, + [MonthReportId] [nvarchar](50) NULL, + [CaType] [nvarchar](50) NULL, + [MonthCount] [int] NULL, + [YearCount] [int] NULL, + [ProCount] [int] NULL, + [SortIndex] [int] NULL, + CONSTRAINT [PK_Manager_EmergencyPlan] PRIMARY KEY CLUSTERED +( + [Id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY]; + +--Ӧ˵ +CREATE TABLE [dbo].[Manager_DrillRecordList]( + [Id] [nvarchar](50) NOT NULL, + [MonthReportId] [nvarchar](50) NULL, + [Dname] [nvarchar](100) NULL, + [Ddate] [datetime] NULL, + [DrillRecordTypeName] [nvarchar](50) NULL, + [PersonNum] [int] NULL, + [DrillCost] [decimal](18, 2) NULL, + [SortIndex] [int] NULL, + CONSTRAINT [PK_Manager_DrillRecordList] PRIMARY KEY CLUSTERED +( + [Id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +--δ¼ͳ +CREATE TABLE [dbo].[Manager_Attempted]( + [Id] [nvarchar](50) NOT NULL, + [MonthReportId] [nvarchar](50) NULL, + [WhMonthNum] [int] NULL, + [WhYearNum] [int] NULL, + [FbsMonthNum] [int] NULL, + [FbsYearNum] [int] NULL, + [ProNum] [int] NULL, + CONSTRAINT [PK_Manager_Attempted] PRIMARY KEY CLUSTERED +( + [Id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY]; + +--HSEĿʵ 3 +alter table Manager_MonthReportC +add Goalach1 [decimal](18, 2) NULL; + +alter table Manager_MonthReportC +add Goalach2 [decimal](18, 2) NULL; + +alter table Manager_MonthReportC +add Goalach3 [decimal](18, 2) NULL; + +--± 1 +alter table Manager_MonthReportC +add MonthReportType nvarchar(20) NULL; \ No newline at end of file diff --git a/DataBase/版本日志/SGGLDB_WH_V2024-08-27-phf.sql b/DataBase/版本日志/SGGLDB_WH_V2024-08-27-phf.sql new file mode 100644 index 00000000..597b9d89 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_V2024-08-27-phf.sql @@ -0,0 +1,2 @@ +CREATE NONCLUSTERED INDEX EduTrain_TrainRecordDetail_TrainingId_Index +ON [dbo].[EduTrain_TrainRecordDetail] ([TrainingId]); \ No newline at end of file diff --git a/SGGL/BLL/HSSE/Manager/ManagerMonthC/MonthReportCService.cs b/SGGL/BLL/HSSE/Manager/ManagerMonthC/MonthReportCService.cs index 9a910271..faca8a61 100644 --- a/SGGL/BLL/HSSE/Manager/ManagerMonthC/MonthReportCService.cs +++ b/SGGL/BLL/HSSE/Manager/ManagerMonthC/MonthReportCService.cs @@ -234,7 +234,14 @@ namespace BLL EmergencyManagementWorkDef=monthReport.EmergencyManagementWorkDef, MonthHdangerCount=monthReport.MonthHdangerCount, - YearHdangerCount=monthReport.YearHdangerCount + YearHdangerCount=monthReport.YearHdangerCount, + + MonthExpertCount=monthReport.MonthExpertCount, + MonthExpertNoCount=monthReport.MonthExpertNoCount, + Goalach1=monthReport.Goalach1, + Goalach2=monthReport.Goalach2, + Goalach3=monthReport.Goalach3, + MonthReportType=monthReport.MonthReportType }; db.Manager_MonthReportC.InsertOnSubmit(newMonthReport); @@ -313,6 +320,12 @@ namespace BLL newMonthReport.EmergencyManagementWorkDef = monthReport.EmergencyManagementWorkDef; newMonthReport.MonthHdangerCount = monthReport.MonthHdangerCount; newMonthReport.YearHdangerCount = monthReport.YearHdangerCount; + newMonthReport.MonthExpertCount = monthReport.MonthExpertCount; + newMonthReport.MonthExpertNoCount = monthReport.MonthExpertNoCount; + newMonthReport.Goalach1 = monthReport.Goalach1; + newMonthReport.Goalach2 = monthReport.Goalach2; + newMonthReport.Goalach3 = monthReport.Goalach3; + newMonthReport.MonthReportType = monthReport.MonthReportType; db.SubmitChanges(); } @@ -330,5 +343,31 @@ namespace BLL db.Manager_MonthReportC.DeleteOnSubmit(monthReport); db.SubmitChanges(); } + + #region 保存4.6.1应急预案发布情况 + public static void AddManager_EmergencyPlan(Model.Manager_EmergencyPlan model) { + Model.SGGLDB db = Funs.DB; + db.Manager_EmergencyPlan.InsertOnSubmit(model); + db.SubmitChanges(); + } + #endregion + + #region 保存4.6.2 应急演练工作情况说明 + public static void AddManager_DrillRecordList(Model.Manager_DrillRecordList model) + { + Model.SGGLDB db = Funs.DB; + db.Manager_DrillRecordList.InsertOnSubmit(model); + db.SubmitChanges(); + } + #endregion + + #region 保存6.1 未遂事件统计 + public static void AddManager_Attempted(Model.Manager_Attempted model) + { + Model.SGGLDB db = Funs.DB; + db.Manager_Attempted.InsertOnSubmit(model); + db.SubmitChanges(); + } + #endregion } } diff --git a/SGGL/BLL/HSSE/Manager/ManagerMonthC/PersonSortCService.cs b/SGGL/BLL/HSSE/Manager/ManagerMonthC/PersonSortCService.cs index ab639ede..c9a101a8 100644 --- a/SGGL/BLL/HSSE/Manager/ManagerMonthC/PersonSortCService.cs +++ b/SGGL/BLL/HSSE/Manager/ManagerMonthC/PersonSortCService.cs @@ -72,5 +72,63 @@ namespace BLL db.SubmitChanges(); } } + + /// + /// 删除月报项目作业许可管理数据 + /// + /// + public static void DeleteManager_ProjectAssignment(string monthReportId) + { + var q = (from x in db.Manager_ProjectAssignment where x.MonthReportId == monthReportId select x).ToList(); + if (q.Count > 0) + { + db.Manager_ProjectAssignment.DeleteAllOnSubmit(q); + db.SubmitChanges(); + } + } + + /// + /// 删除月报应急预案发布情况 + /// + /// + public static void DeleteManager_EmergencyPlan(string monthReportId) + { + var q = (from x in db.Manager_EmergencyPlan where x.MonthReportId == monthReportId select x).ToList(); + if (q.Count > 0) + { + db.Manager_EmergencyPlan.DeleteAllOnSubmit(q); + db.SubmitChanges(); + } + } + + /// + /// 删除月报应急演练工作情况说明 + /// + /// + public static void DeleteManager_DrillRecordList(string monthReportId) + { + var q = (from x in db.Manager_DrillRecordList where x.MonthReportId == monthReportId select x).ToList(); + if (q.Count > 0) + { + db.Manager_DrillRecordList.DeleteAllOnSubmit(q); + db.SubmitChanges(); + } + } + + /// + /// 删除月报未遂事件 + /// + /// + public static void DeleteManager_Attempted(string monthReportId) + { + var q = (from x in db.Manager_Attempted where x.MonthReportId == monthReportId select x).ToList(); + if (q.Count > 0) + { + db.Manager_Attempted.DeleteAllOnSubmit(q); + db.SubmitChanges(); + } + } + + } } diff --git a/SGGL/BLL/HSSE/Manager/ManagerMonthC/TrainSortCService.cs b/SGGL/BLL/HSSE/Manager/ManagerMonthC/TrainSortCService.cs index 817befa0..c027c866 100644 --- a/SGGL/BLL/HSSE/Manager/ManagerMonthC/TrainSortCService.cs +++ b/SGGL/BLL/HSSE/Manager/ManagerMonthC/TrainSortCService.cs @@ -51,9 +51,20 @@ namespace BLL /// 月报告主键 public static void DeleteTrainSortsByMonthReportId(string monthReportId) { - var q = (from x in db.Manager_TrainSortC where x.MonthReportId == monthReportId select x).ToList(); - db.Manager_TrainSortC.DeleteAllOnSubmit(q); - db.SubmitChanges(); + try + { + var q = (from x in Funs.DB.Manager_TrainSortC where x.MonthReportId == monthReportId select x).ToList(); + if (q.Count > 0) + { + Funs.DB.Manager_TrainSortC.DeleteAllOnSubmit(q); + Funs.DB.SubmitChanges(); + } + } + catch (Exception ex) + { + ErrLogInfo.WriteLog($"删除数据失败,原因:{ex.Message}"); + } + } } } diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthC.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthC.aspx.cs index e43840c0..250240e7 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthC.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthC.aspx.cs @@ -60,7 +60,7 @@ namespace FineUIPro.Web.HSSE.Manager string strSql = @"SELECT MonthReport.MonthReportId,MonthReport.ProjectId,MonthReport.Months,CodeRecords.Code AS MonthReportCode,Users.UserName as ReportManName" + @" FROM Manager_MonthReportC AS MonthReport " + @" LEFT JOIN Sys_User AS Users ON MonthReport.ReportMan=Users.UserId " - + @" LEFT JOIN Sys_CodeRecords AS CodeRecords ON MonthReport.MonthReportId=CodeRecords.DataId WHERE 1=1 "; + + @" LEFT JOIN Sys_CodeRecords AS CodeRecords ON MonthReport.MonthReportId=CodeRecords.DataId WHERE MonthReportType is null "; List listStr = new List(); strSql += " AND MonthReport.ProjectId = @ProjectId"; listStr.Add(new SqlParameter("@ProjectId", this.ProjectId)); diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCEdit.aspx b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCEdit.aspx index da85dd3f..f6d56c14 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCEdit.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCEdit.aspx @@ -70,6 +70,9 @@ + + @@ -115,12 +118,12 @@ 时间段  - - @@ -481,29 +484,88 @@ - + - - - + + + - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -513,19 +575,108 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -593,7 +744,7 @@ - + @@ -647,15 +798,15 @@ - - + + - - + + @@ -665,15 +816,15 @@ - - + + - - + + @@ -694,12 +845,134 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -708,13 +981,39 @@ - + + + + + + + + + + + + + + + + + + + + @@ -729,7 +1028,7 @@ - + @@ -764,7 +1063,7 @@ - + @@ -818,7 +1117,7 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -836,8 +1358,7 @@ - + diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCEdit.aspx.cs index 65e86e06..c58c63af 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCEdit.aspx.cs @@ -63,7 +63,7 @@ namespace FineUIPro.Web.HSSE.Manager private static List trainSorts = new List(); /// - /// 检查情况集合 + /// 4.2检查情况集合 /// private static List checkSorts = new List(); @@ -72,6 +72,21 @@ namespace FineUIPro.Web.HSSE.Manager /// private static List rewardAndPunishSortCs = new List(); + /// + /// 4.5项目本月危大工程管理数据 + /// + private static List monthHazardousList = new List(); + + /// + /// 4.6.1 应急预案发布情况 + /// + private static List emergencyPlanList = new List(); + + /// + /// 4.6.2 应急演练工作情况说明 + /// + private static List drillRecordList = new List(); + /// /// 4.10 HSE现场其他管理情况集合 /// @@ -82,6 +97,11 @@ namespace FineUIPro.Web.HSSE.Manager /// private static List fiveExpenses = new List(); + /// + /// 6.3HSE目标实现情况 + /// + private static List galachList = new List(); + /// /// 7.1 其他HSE工作计划 /// @@ -92,12 +112,42 @@ namespace FineUIPro.Web.HSSE.Manager /// private static List complianceObligationsCs = new List(); + /// + /// 本月伤害事故统计 + /// + private static List injuryAccidents = new List(); + #endregion public List units = new List(); public Model.SGGLDB db = Funs.DB; + #region 实体类 + /// + /// 项目本月危大工程管理数据 + /// + public class MonthHazardous + { + public string Id { get; set; } + + public string Category { get; set; } + + public int ExpertCount { get; set; } + } + + /// + /// 6.3 实体类 + /// + public class Galach + { + public string Id { get; set; } + public string GoName { get; set; } + public decimal GoTarget { get; set; } + public string GoValue { get; set; } + } + #endregion + #region 加载页面 protected void Page_Load(object sender, EventArgs e) { @@ -116,8 +166,12 @@ namespace FineUIPro.Web.HSSE.Manager fiveExpenses.Clear(); otherWorkPlanCs.Clear(); complianceObligationsCs.Clear(); + monthHazardousList.Clear(); + emergencyPlanList.Clear(); + drillRecordList.Clear(); + injuryAccidents.Clear(); + galachList.Clear(); - unitList = db.Base_Unit.ToList(); MonthReportId = Request.Params["MonthReportId"]; var project = BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId); @@ -178,7 +232,7 @@ namespace FineUIPro.Web.HSSE.Manager { JObject summary = new JObject(); summary.Add("TrainType", "培训人数合计:"); - summary.Add("TotalPersonNum", trainSorts.Sum(x=>x.TotalPersonNum)); + summary.Add("TotalPersonNum", trainSorts.Sum(x => x.TotalPersonNum)); this.gvTrainSort.SummaryData = summary; } else @@ -203,6 +257,72 @@ namespace FineUIPro.Web.HSSE.Manager txtYearHdangerCount.Text = model.YearHdangerCount.ToString(); #endregion + #region 4.4 本月项目作业许可管理数据 + var PModel = db.Manager_ProjectAssignment.FirstOrDefault(x => x.MonthReportId == MonthReportId); + if (PModel != null) + { + nbFireWorkCount.Text = PModel.FireWorkCount.ToString(); + nbBreakGroundCount.Text = PModel.BreakGroundCount.ToString(); + nbLimitedSpaceCount.Text = PModel.FireWorkCount.ToString(); + nbElectricityCount.Text = PModel.ElectricityCount.ToString(); + nbHeightWorkCount.Text = PModel.HeightWorkCount.ToString(); + nbRadialWork.Text = PModel.RadialWork.ToString(); + nbLiftingWorkCount.Text = PModel.LiftingWorkCount.ToString(); + nbNightWork.Text = PModel.NightWork.ToString(); + nbMonthCount.Text = PModel.MonthCount.ToString(); + nbYearCount.Text = PModel.YearCount.ToString(); + nbProCount.Text = PModel.ProCount.ToString(); + } + #endregion + + #region 4.5项目本月危大工程管理数据 + if (!string.IsNullOrEmpty(model.MonthExpertNoCount.ToString())) + { + var MonthExpertmodel = new MonthHazardous() + { + Id = Guid.NewGuid().ToString(), + Category = "非经专家论证的危大工程数量", + ExpertCount = Convert.ToInt32(model.MonthExpertNoCount) + }; + monthHazardousList.Add(MonthExpertmodel); + } + if (!string.IsNullOrEmpty(model.MonthExpertCount.ToString())) + { + var MonthExpertmodel = new MonthHazardous() + { + Id = Guid.NewGuid().ToString(), + Category = "经专家论证的危大工程数量", + ExpertCount = Convert.ToInt32(model.MonthExpertCount) + }; + monthHazardousList.Add(MonthExpertmodel); + } + + + if (monthHazardousList.Count > 0) + { + MonthHazardousGrid.DataSource = monthHazardousList; + MonthHazardousGrid.DataBind(); + } + #endregion + + #region 4.6.1 应急预案发布情况 + emergencyPlanList = db.Manager_EmergencyPlan.Where(x => x.MonthReportId == MonthReportId).OrderBy(x => x.SortIndex).ToList(); + if (emergencyPlanList.Count > 0) + { + EmergencyPlanGrid.DataSource = emergencyPlanList; + EmergencyPlanGrid.DataBind(); + } + #endregion + + #region 4.6.2 应急演练工作情况说明 + drillRecordList = db.Manager_DrillRecordList.Where(x => x.MonthReportId == MonthReportId).OrderBy(x => x.Ddate).ToList(); + if (drillRecordList.Count > 0) + { + DrillRecordListGrid.DataSource = drillRecordList; + DrillRecordListGrid.DataBind(); + } + #endregion + #region 4.6.3其他应急管理工作描述 txtEmergencyManagementWorkDef.Text = model.EmergencyManagementWorkDef; #endregion @@ -236,12 +356,78 @@ namespace FineUIPro.Web.HSSE.Manager } #endregion - #region 6 HSE责任事故/事件描述 + #region 6.1未遂事件统计 + var attemptedModel = db.Manager_Attempted.FirstOrDefault(x => x.MonthReportId == MonthReportId); + if (attemptedModel != null) + { + nbWhMonthNum.Text = attemptedModel.WhMonthNum.ToString(); + nbWhYearNum.Text = attemptedModel.WhYearNum.ToString(); + nbFbsMonthNum.Text = attemptedModel.FbsMonthNum.ToString(); + nbFbsYearNum.Text = attemptedModel.FbsYearNum.ToString(); + nbProNum.Text = attemptedModel.ProNum.ToString(); + } + #endregion + + #region 6.1 2 本月伤害事故统计 + injuryAccidents = BLL.InjuryAccidentCService.GetInjuryAccidentCByMonthReportId(this.MonthReportId); + if (injuryAccidents.Count > 0) + { + this.gvInjuryAccident.DataSource = injuryAccidents; + this.gvInjuryAccident.DataBind(); + OutputSummaryData(); + } + #endregion + + #region 6.2 HSE责任事故/事件描述 //6.2 HSE责任事故/事件描述 txtDef.Text = model.AccidentDef; #endregion + #region 6.3 HSE目标实现情况 + if (!string.IsNullOrEmpty(model.Goalach1.ToString())) + { + var GalachModel = new Galach() + { + Id = Guid.NewGuid().ToString(), + GoName = "项目HSE检查计划完成率", + GoTarget = Convert.ToDecimal(model.Goalach1.ToString()), + GoValue = "≥90%" + + }; + galachList.Add(GalachModel); + } + if (!string.IsNullOrEmpty(model.Goalach2.ToString())) + { + var GalachModel = new Galach() + { + Id = Guid.NewGuid().ToString(), + GoName = "百万工时总可记录事件率
(总可记录事件人数 / 总工时)×106", + GoTarget = Convert.ToDecimal(model.Goalach2.ToString()), + GoValue = "≤2" + + }; + galachList.Add(GalachModel); + } + if (!string.IsNullOrEmpty(model.Goalach3.ToString())) + { + var GalachModel = new Galach() + { + Id = Guid.NewGuid().ToString(), + GoName = "百万工时事故发生频率
(损失工时伤害事故起数 / 总工时)×106", + GoTarget = Convert.ToDecimal(model.Goalach3.ToString()), + GoValue = "≤15" + + }; + galachList.Add(GalachModel); + } + if (galachList.Count > 0) + { + GoalachGrid.DataSource = galachList; + GoalachGrid.DataBind(); + } + #endregion + #region 7.1下个月工作计划 otherWorkPlanCs = BLL.OtherWorkPlanCService.GetOtherWorkPlanByMonthReportId(MonthReportId); if (otherWorkPlanCs.Count > 0) @@ -272,14 +458,24 @@ namespace FineUIPro.Web.HSSE.Manager months = Convert.ToDateTime(Request.Params["months"]); this.txtReportMonths.Text = string.Format("{0:yyyy-MM}", months); this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now.AddMonths(-1)); + if (!string.IsNullOrEmpty(Request.Params["startdate"])) + { + txtStartDate.Text = Request.Params["startdate"]; + } + this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); + if (!string.IsNullOrEmpty(Request.Params["enddate"])) + { + txtEndDate.Text = Request.Params["enddate"]; + } + this.txtPeriod.Text = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(BLL.Const.ProjectManagerMonthCMenuId, this.ProjectId, this.CurrUser.UnitId); AddOrUpdate = "add"; startTime = Convert.ToDateTime(txtStartDate.Text); endTime = Convert.ToDateTime(txtEndDate.Text); yearStartTime = Convert.ToDateTime(months.ToString("yyyy-01-01")); - + if (project.StartDate != null) { projectStartTime = Convert.ToDateTime(project.StartDate); @@ -287,9 +483,9 @@ namespace FineUIPro.Web.HSSE.Manager //加载所有grid lodAllGrid("0"); } - + #region 加载1.项目概况 - + var mainUnit = BLL.UnitService.GetThisUnitDropDownList()[0]; this.lbProjectName.Text = project.ProjectName; if (mainUnit != null) @@ -343,7 +539,7 @@ namespace FineUIPro.Web.HSSE.Manager { url = Request.Url.ToString().Substring(0, Request.Url.ToString().LastIndexOf('?')); } - Response.Redirect(url + "?startdate=" + txtStartDate.Text + "&enddate=" + txtEndDate.Text); + Response.Redirect(url + "?months=" + months + "&startdate=" + txtStartDate.Text + "&enddate=" + txtEndDate.Text); } } @@ -362,6 +558,8 @@ namespace FineUIPro.Web.HSSE.Manager protected void btnLoad_Click(object sender, EventArgs e) { + startTime = Convert.ToDateTime(string.Format("{0:yyyy-MM-dd}", txtStartDate.Text)); + endTime = Convert.ToDateTime(string.Format("{0:yyyy-MM-dd}", txtEndDate.Text)); if (AddOrUpdate == "update") { lodAllGrid("1"); @@ -381,7 +579,7 @@ namespace FineUIPro.Web.HSSE.Manager { #region 保存主表 string MonthHSEDay = string.Empty, SumHSEDay = string.Empty, MonthHSEWorkDay = string.Empty, YearHSEWorkDay = string.Empty, SumHSEWorkDay = string.Empty, - HseManhours = string.Empty, SubcontractManHours = string.Empty, TotalHseManhours = string.Empty, TotalYearHseManhours=string.Empty; + HseManhours = string.Empty, SubcontractManHours = string.Empty, TotalHseManhours = string.Empty, TotalYearHseManhours = string.Empty; JArray mergedData = gvHSEDay.GetMergedData(); foreach (JObject mergedRow in mergedData) { @@ -405,7 +603,7 @@ namespace FineUIPro.Web.HSSE.Manager monthReport.Months = Funs.GetNewDateTime(Request.Params["months"]); monthReport.ReportMan = this.CurrUser.UserId; monthReport.MonthReportDate = DateTime.Now; - + monthReport.StartDate = Funs.GetNewDateTime(txtStartDate.Text); monthReport.EndDate = Funs.GetNewDateTime(txtEndDate.Text); @@ -417,20 +615,61 @@ namespace FineUIPro.Web.HSSE.Manager monthReport.HseManhours = Funs.GetNewIntOrZero(HseManhours); monthReport.SubcontractManHours = Funs.GetNewIntOrZero(SubcontractManHours); monthReport.TotalHseManhours = Funs.GetNewIntOrZero(TotalHseManhours); - monthReport.TotalHseManhoursYear= Funs.GetNewIntOrZero(TotalYearHseManhours); + monthReport.TotalHseManhoursYear = Funs.GetNewIntOrZero(TotalYearHseManhours); //4.3隐患 monthReport.MonthHdangerCount = Funs.GetNewIntOrZero(txtMonthHdangerCount.Text); monthReport.YearHdangerCount = Funs.GetNewIntOrZero(txtYearHdangerCount.Text); + #region 4.5项目本月危大工程管理数据 + JArray MonthHazardousmergedData = MonthHazardousGrid.GetMergedData(); + foreach (JObject mergedRow in MonthHazardousmergedData) + { + JObject values = mergedRow.Value("values"); + + var Category = values.Value("Category").ToString(); + if (Category == "经专家论证的危大工程数量") + { + monthReport.MonthExpertCount = Funs.GetNewInt(values.Value("ExpertCount").ToString()); + } + else + { + monthReport.MonthExpertNoCount = Funs.GetNewInt(values.Value("ExpertCount").ToString()); + } + } + #endregion + //4.6.3其他应急管理工作描述 monthReport.EmergencyManagementWorkDef = txtEmergencyManagementWorkDef.Text; //6.2HSE责任事故/事件描述 monthReport.AccidentDef = txtDef.Text; + #region 6.3HSE目标实现情况 + JArray GoalachData = GoalachGrid.GetMergedData(); + foreach (JObject mergedRow in GoalachData) + { + JObject values = mergedRow.Value("values"); + + var GoValue = values.Value("GoValue").ToString(); + if (GoValue == "≥90%") + { + monthReport.Goalach1 = Funs.GetNewDecimalOrZero(values.Value("GoTarget").ToString()); + } + else if (GoValue == "≤2") + { + monthReport.Goalach2 = Funs.GetNewDecimalOrZero(values.Value("GoTarget").ToString()); + } + else + { + monthReport.Goalach3 = Funs.GetNewDecimalOrZero(values.Value("GoTarget").ToString()); + } + } + #endregion + //9.问题 monthReport.Question = txtQuestion.Text; + monthReport.MonthReportType = "1"; if (AddOrUpdate == "add") { @@ -454,6 +693,15 @@ namespace FineUIPro.Web.HSSE.Manager //4.3 OperateManager_HiddenDanger(); + //4.4 + OperateProjectAssignment(); + + //4.6.1 + OperateEmergencyPlan(); + + //4.6.2 + OperateDrillRecordList(); + //4.7 OperateRewardAndPunishSort(); @@ -463,12 +711,20 @@ namespace FineUIPro.Web.HSSE.Manager //5.1 OperateFiveExpenseSort(); + //6.1未遂事件统计 + OperateAttempted(); + + //6.1 2本月伤害事故统计 + OperateInjuryAccidentSort(); + //7.1 OperateOtherWorkPlanCSort(); //8 OperateComplianceObligationsCSort(); + //10 + SaveImages(); #endregion ShowNotify("保存成功!", MessageBoxIcon.Success); @@ -500,31 +756,6 @@ namespace FineUIPro.Web.HSSE.Manager } #endregion - #region 4.3隐患整改 - private void OperateManager_HiddenDanger() { - PersonSortCService.DeleteManager_HiddenDanger(MonthReportId); - JArray mergedData = GridHiddenDanger.GetMergedData(); - foreach (JObject mergedRow in mergedData) - { - string status = mergedRow.Value("status"); - JObject values = mergedRow.Value("values"); - int i = mergedRow.Value("index"); - Model.Manager_HiddenDanger model = new Model.Manager_HiddenDanger - { - Id=Guid.NewGuid().ToString(), - MonthReportId = MonthReportId, - UnitId = this.GridHiddenDanger.Rows[i].DataKeys[1].ToString(), - CommonlyNum = Funs.GetNewIntOrZero(values.Value("CommonlyNum").ToString()), - MajorNum = Funs.GetNewIntOrZero(values.Value("MajorNum").ToString()), - ReRate = values.Value("ReRate").ToString(), - SortIndex = i+1, - }; - db.Manager_HiddenDanger.InsertOnSubmit(model); - db.SubmitChanges(); - } - } - #endregion - #region 4.1保存培训 private void OperateTrainSort() { @@ -600,6 +831,128 @@ namespace FineUIPro.Web.HSSE.Manager } #endregion + #region 4.6.1 应急预案发布情况 + private void OperateEmergencyPlan() + { + PersonSortCService.DeleteManager_EmergencyPlan(MonthReportId); + SaveEmergencyPlanList(); + foreach (Manager_EmergencyPlan item in emergencyPlanList) + { + item.MonthReportId = MonthReportId; + MonthReportCService.AddManager_EmergencyPlan(item); + } + } + + private void SaveEmergencyPlanList() + { + emergencyPlanList.Clear(); + JArray mergedData = EmergencyPlanGrid.GetMergedData(); + foreach (JObject mergedRow in mergedData) + { + JObject values = mergedRow.Value("values"); + int i = mergedRow.Value("index"); + Manager_EmergencyPlan checkSort = new Manager_EmergencyPlan + { + Id = this.EmergencyPlanGrid.Rows[i].DataKeys[0].ToString(), + CaType = values.Value("CaType").ToString(), + MonthCount = Funs.GetNewInt(values.Value("MonthCount").ToString()), + YearCount = Funs.GetNewInt(values.Value("YearCount").ToString()), + ProCount = Funs.GetNewInt(values.Value("ProCount").ToString()), + SortIndex = i, + }; + emergencyPlanList.Add(checkSort); + } + } + #endregion + + #region 4.6.2应急演练工作情况说明 + private void OperateDrillRecordList() + { + PersonSortCService.DeleteManager_DrillRecordList(MonthReportId); + SaveDrillRecordList(); + foreach (Manager_DrillRecordList item in drillRecordList) + { + item.MonthReportId = MonthReportId; + MonthReportCService.AddManager_DrillRecordList(item); + } + } + + private void SaveDrillRecordList() + { + drillRecordList.Clear(); + JArray mergedData = DrillRecordListGrid.GetMergedData(); + foreach (JObject mergedRow in mergedData) + { + JObject values = mergedRow.Value("values"); + int i = mergedRow.Value("index"); + Manager_DrillRecordList checkSort = new Manager_DrillRecordList + { + Id = this.DrillRecordListGrid.Rows[i].DataKeys[0].ToString(), + Dname = values.Value("Dname").ToString(), + Ddate = Convert.ToDateTime(values.Value("Ddate").ToString()), + DrillRecordTypeName = values.Value("DrillRecordTypeName").ToString(), + PersonNum = Funs.GetNewInt(values.Value("PersonNum").ToString()), + DrillCost = Convert.ToDecimal(values.Value("DrillCost").ToString()), + SortIndex = i, + }; + drillRecordList.Add(checkSort); + } + } + #endregion + + #region 4.3隐患整改 + private void OperateManager_HiddenDanger() + { + PersonSortCService.DeleteManager_HiddenDanger(MonthReportId); + JArray mergedData = GridHiddenDanger.GetMergedData(); + foreach (JObject mergedRow in mergedData) + { + string status = mergedRow.Value("status"); + JObject values = mergedRow.Value("values"); + int i = mergedRow.Value("index"); + Model.Manager_HiddenDanger model = new Model.Manager_HiddenDanger + { + Id = Guid.NewGuid().ToString(), + MonthReportId = MonthReportId, + UnitId = this.GridHiddenDanger.Rows[i].DataKeys[1].ToString(), + CommonlyNum = Funs.GetNewIntOrZero(values.Value("CommonlyNum").ToString()), + MajorNum = Funs.GetNewIntOrZero(values.Value("MajorNum").ToString()), + ReRate = values.Value("ReRate").ToString(), + SortIndex = i + 1, + }; + db.Manager_HiddenDanger.InsertOnSubmit(model); + db.SubmitChanges(); + } + } + #endregion + + #region 4.4本月项目作业许可管理数据 + private void OperateProjectAssignment() + { + //删除 + PersonSortCService.DeleteManager_ProjectAssignment(MonthReportId); + var model = new Manager_ProjectAssignment() + { + Id = Guid.NewGuid().ToString(), + MonthReportId = MonthReportId, + FireWorkCount = Funs.GetNewIntOrZero(nbFireWorkCount.Text), + BreakGroundCount = Funs.GetNewIntOrZero(nbBreakGroundCount.Text), + LimitedSpaceCount = Funs.GetNewIntOrZero(nbLimitedSpaceCount.Text), + ElectricityCount = Funs.GetNewIntOrZero(nbElectricityCount.Text), + HeightWorkCount = Funs.GetNewIntOrZero(nbHeightWorkCount.Text), + RadialWork = Funs.GetNewIntOrZero(nbRadialWork.Text), + LiftingWorkCount = Funs.GetNewIntOrZero(nbLiftingWorkCount.Text), + NightWork = Funs.GetNewIntOrZero(nbNightWork.Text), + MonthCount = Funs.GetNewIntOrZero(nbMonthCount.Text), + YearCount = Funs.GetNewIntOrZero(nbYearCount.Text), + ProCount = Funs.GetNewIntOrZero(nbProCount.Text), + }; + db.Manager_ProjectAssignment.InsertOnSubmit(model); + db.SubmitChanges(); + + } + #endregion + #region 4.7保存奖励惩罚 private void OperateRewardAndPunishSort() { @@ -631,7 +984,8 @@ namespace FineUIPro.Web.HSSE.Manager #endregion #region 5.1保存 - private void OperateFiveExpenseSort() { + private void OperateFiveExpenseSort() + { BLL.FiveExpenseCService.DeleteFiveExpenseByMonthReportId(MonthReportId); jerqueSaveFiveExpenseList(); foreach (Model.Manager_Month_FiveExpenseC fiveExpendse in fiveExpenses) @@ -665,6 +1019,66 @@ namespace FineUIPro.Web.HSSE.Manager } #endregion + #region 6.1未遂事件统计 + private void OperateAttempted() + { + PersonSortCService.DeleteManager_Attempted(MonthReportId); + var model = new Manager_Attempted() + { + Id = Guid.NewGuid().ToString(), + MonthReportId = MonthReportId, + WhMonthNum = Convert.ToInt32(nbWhMonthNum.Text), + WhYearNum = Convert.ToInt32(nbWhYearNum.Text), + FbsMonthNum = Convert.ToInt32(nbFbsMonthNum.Text), + FbsYearNum = Convert.ToInt32(nbFbsYearNum.Text), + ProNum = Convert.ToInt32(nbProNum.Text), + }; + db.Manager_Attempted.InsertOnSubmit(model); + db.SubmitChanges(); + } + #endregion + + #region 6.1 2本月伤害事故统计 + private void OperateInjuryAccidentSort() + { + 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(), + 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 7.1保存下个月计划 /// /// 7.2 其他HSE工作计划 @@ -822,6 +1236,402 @@ namespace FineUIPro.Web.HSSE.Manager } #endregion + #region 选择照片事件 + protected void filePhoto_FileSelected1(object sender, EventArgs e) + { + if (filePhoto.HasFile) + { + string fileName = filePhoto.ShortFileName; + if (!ValidateFileType(fileName)) + { + // 清空文件上传控件 + filePhoto.Reset(); + ShowNotify("无效的文件类型!"); + return; + } + fileName = fileName.Replace(":", "_").Replace(" ", "_").Replace("\\", "_").Replace("/", "_"); + fileName = DateTime.Now.Ticks.ToString() + "_" + fileName; + + filePhoto.SaveAs(Server.MapPath("~/upload/" + fileName)); + + imgPhoto.ImageUrl = "~/upload/" + fileName; + + // 清空文件上传组件(上传后要记着清空,否则点击提交表单时会再次上传!!) + filePhoto.Reset(); + } + } + + protected void filePhoto_FileSelected2(object sender, EventArgs e) + { + if (filePhoto2.HasFile) + { + string fileName = filePhoto2.ShortFileName; + if (!ValidateFileType(fileName)) + { + // 清空文件上传控件 + filePhoto2.Reset(); + ShowNotify("无效的文件类型!"); + return; + } + fileName = fileName.Replace(":", "_").Replace(" ", "_").Replace("\\", "_").Replace("/", "_"); + fileName = DateTime.Now.Ticks.ToString() + "_" + fileName; + + filePhoto2.SaveAs(Server.MapPath("~/upload/" + fileName)); + + imgPhoto2.ImageUrl = "~/upload/" + fileName; + + // 清空文件上传组件(上传后要记着清空,否则点击提交表单时会再次上传!!) + filePhoto2.Reset(); + } + } + + protected void filePhoto_FileSelected3(object sender, EventArgs e) + { + if (filePhoto3.HasFile) + { + string fileName = filePhoto3.ShortFileName; + if (!ValidateFileType(fileName)) + { + // 清空文件上传控件 + filePhoto3.Reset(); + ShowNotify("无效的文件类型!"); + return; + } + fileName = fileName.Replace(":", "_").Replace(" ", "_").Replace("\\", "_").Replace("/", "_"); + fileName = DateTime.Now.Ticks.ToString() + "_" + fileName; + + filePhoto3.SaveAs(Server.MapPath("~/upload/" + fileName)); + + imgPhoto3.ImageUrl = "~/upload/" + fileName; + + // 清空文件上传组件(上传后要记着清空,否则点击提交表单时会再次上传!!) + filePhoto3.Reset(); + } + } + + protected void filePhoto_FileSelected4(object sender, EventArgs e) + { + if (filePhoto4.HasFile) + { + string fileName = filePhoto4.ShortFileName; + if (!ValidateFileType(fileName)) + { + // 清空文件上传控件 + filePhoto4.Reset(); + ShowNotify("无效的文件类型!"); + return; + } + fileName = fileName.Replace(":", "_").Replace(" ", "_").Replace("\\", "_").Replace("/", "_"); + fileName = DateTime.Now.Ticks.ToString() + "_" + fileName; + + filePhoto4.SaveAs(Server.MapPath("~/upload/" + fileName)); + + imgPhoto4.ImageUrl = "~/upload/" + fileName; + + // 清空文件上传组件(上传后要记着清空,否则点击提交表单时会再次上传!!) + filePhoto4.Reset(); + } + } + + protected void filePhoto_FileSelected5(object sender, EventArgs e) + { + if (filePhoto5.HasFile) + { + string fileName = filePhoto5.ShortFileName; + if (!ValidateFileType(fileName)) + { + // 清空文件上传控件 + filePhoto5.Reset(); + ShowNotify("无效的文件类型!"); + return; + } + fileName = fileName.Replace(":", "_").Replace(" ", "_").Replace("\\", "_").Replace("/", "_"); + fileName = DateTime.Now.Ticks.ToString() + "_" + fileName; + + filePhoto5.SaveAs(Server.MapPath("~/upload/" + fileName)); + + imgPhoto5.ImageUrl = "~/upload/" + fileName; + + // 清空文件上传组件(上传后要记着清空,否则点击提交表单时会再次上传!!) + filePhoto5.Reset(); + } + } + + protected void filePhoto_FileSelected6(object sender, EventArgs e) + { + if (filePhoto6.HasFile) + { + string fileName = filePhoto6.ShortFileName; + if (!ValidateFileType(fileName)) + { + // 清空文件上传控件 + filePhoto6.Reset(); + ShowNotify("无效的文件类型!"); + return; + } + fileName = fileName.Replace(":", "_").Replace(" ", "_").Replace("\\", "_").Replace("/", "_"); + fileName = DateTime.Now.Ticks.ToString() + "_" + fileName; + + filePhoto6.SaveAs(Server.MapPath("~/upload/" + fileName)); + + imgPhoto6.ImageUrl = "~/upload/" + fileName; + + // 清空文件上传组件(上传后要记着清空,否则点击提交表单时会再次上传!!) + filePhoto6.Reset(); + } + } + + protected void filePhoto_FileSelected7(object sender, EventArgs e) + { + if (filePhoto7.HasFile) + { + string fileName = filePhoto7.ShortFileName; + if (!ValidateFileType(fileName)) + { + // 清空文件上传控件 + filePhoto7.Reset(); + ShowNotify("无效的文件类型!"); + return; + } + fileName = fileName.Replace(":", "_").Replace(" ", "_").Replace("\\", "_").Replace("/", "_"); + fileName = DateTime.Now.Ticks.ToString() + "_" + fileName; + + filePhoto7.SaveAs(Server.MapPath("~/upload/" + fileName)); + + imgPhoto7.ImageUrl = "~/upload/" + fileName; + + // 清空文件上传组件(上传后要记着清空,否则点击提交表单时会再次上传!!) + filePhoto7.Reset(); + } + } + + protected void filePhoto_FileSelected8(object sender, EventArgs e) + { + if (filePhoto8.HasFile) + { + string fileName = filePhoto8.ShortFileName; + if (!ValidateFileType(fileName)) + { + // 清空文件上传控件 + filePhoto8.Reset(); + ShowNotify("无效的文件类型!"); + return; + } + fileName = fileName.Replace(":", "_").Replace(" ", "_").Replace("\\", "_").Replace("/", "_"); + fileName = DateTime.Now.Ticks.ToString() + "_" + fileName; + + filePhoto8.SaveAs(Server.MapPath("~/upload/" + fileName)); + + imgPhoto8.ImageUrl = "~/upload/" + fileName; + + // 清空文件上传组件(上传后要记着清空,否则点击提交表单时会再次上传!!) + filePhoto8.Reset(); + } + } + + protected void filePhoto_FileSelected9(object sender, EventArgs e) + { + if (filePhoto9.HasFile) + { + string fileName = filePhoto9.ShortFileName; + if (!ValidateFileType(fileName)) + { + // 清空文件上传控件 + filePhoto9.Reset(); + ShowNotify("无效的文件类型!"); + return; + } + fileName = fileName.Replace(":", "_").Replace(" ", "_").Replace("\\", "_").Replace("/", "_"); + fileName = DateTime.Now.Ticks.ToString() + "_" + fileName; + + filePhoto9.SaveAs(Server.MapPath("~/upload/" + fileName)); + + imgPhoto9.ImageUrl = "~/upload/" + fileName; + + // 清空文件上传组件(上传后要记着清空,否则点击提交表单时会再次上传!!) + filePhoto9.Reset(); + } + } + + protected void filePhoto_FileSelected10(object sender, EventArgs e) + { + if (filePhoto10.HasFile) + { + string fileName = filePhoto10.ShortFileName; + if (!ValidateFileType(fileName)) + { + // 清空文件上传控件 + filePhoto10.Reset(); + ShowNotify("无效的文件类型!"); + return; + } + fileName = fileName.Replace(":", "_").Replace(" ", "_").Replace("\\", "_").Replace("/", "_"); + fileName = DateTime.Now.Ticks.ToString() + "_" + fileName; + + filePhoto10.SaveAs(Server.MapPath("~/upload/" + fileName)); + + imgPhoto10.ImageUrl = "~/upload/" + fileName; + + // 清空文件上传组件(上传后要记着清空,否则点击提交表单时会再次上传!!) + filePhoto10.Reset(); + } + } + + protected void filePhoto_FileSelected11(object sender, EventArgs e) + { + if (filePhoto11.HasFile) + { + string fileName = filePhoto11.ShortFileName; + if (!ValidateFileType(fileName)) + { + // 清空文件上传控件 + filePhoto11.Reset(); + ShowNotify("无效的文件类型!"); + return; + } + fileName = fileName.Replace(":", "_").Replace(" ", "_").Replace("\\", "_").Replace("/", "_"); + fileName = DateTime.Now.Ticks.ToString() + "_" + fileName; + + filePhoto11.SaveAs(Server.MapPath("~/upload/" + fileName)); + + imgPhoto11.ImageUrl = "~/upload/" + fileName; + + // 清空文件上传组件(上传后要记着清空,否则点击提交表单时会再次上传!!) + filePhoto11.Reset(); + } + } + + protected void filePhoto_FileSelected12(object sender, EventArgs e) + { + if (filePhoto12.HasFile) + { + string fileName = filePhoto12.ShortFileName; + if (!ValidateFileType(fileName)) + { + // 清空文件上传控件 + filePhoto12.Reset(); + ShowNotify("无效的文件类型!"); + return; + } + fileName = fileName.Replace(":", "_").Replace(" ", "_").Replace("\\", "_").Replace("/", "_"); + fileName = DateTime.Now.Ticks.ToString() + "_" + fileName; + + filePhoto12.SaveAs(Server.MapPath("~/upload/" + fileName)); + + imgPhoto12.ImageUrl = "~/upload/" + fileName; + + // 清空文件上传组件(上传后要记着清空,否则点击提交表单时会再次上传!!) + filePhoto12.Reset(); + } + } + #endregion + + #region 保存图片 + private void SaveImages() { + TextBoxContentService.Delete(MonthReportId); + + var ImageLists = new List(); + var imgage1 = new Model.Report_TextBoxContent(); + imgage1.Id = Guid.NewGuid().ToString(); + imgage1.ReportId = MonthReportId; + imgage1.ContentType = "10-1"; + imgage1.ContentText = txtPhotoContent1.Text; + imgage1.ImageUrl = imgPhoto.ImageUrl.Substring(imgPhoto.ImageUrl.IndexOf("/") + 1); + ImageLists.Add(imgage1); + + var imgage2 = new Model.Report_TextBoxContent(); + imgage2.Id = Guid.NewGuid().ToString(); + imgage2.ReportId = MonthReportId; + imgage2.ContentType = "10-2"; + imgage2.ContentText = txtPhotoContent2.Text; + imgage2.ImageUrl = imgPhoto2.ImageUrl.Substring(imgPhoto2.ImageUrl.IndexOf("/") + 1); + ImageLists.Add(imgage2); + + var imgage3 = new Model.Report_TextBoxContent(); + imgage3.Id = Guid.NewGuid().ToString(); + imgage3.ReportId = MonthReportId; + imgage3.ContentType = "10-3"; + imgage3.ContentText = txtPhotoContent3.Text; + imgage3.ImageUrl = imgPhoto3.ImageUrl.Substring(imgPhoto3.ImageUrl.IndexOf("/") + 1); + ImageLists.Add(imgage3); + + var imgage4 = new Model.Report_TextBoxContent(); + imgage4.Id = Guid.NewGuid().ToString(); + imgage4.ReportId = MonthReportId; + imgage4.ContentType = "10-4"; + imgage4.ContentText = txtPhotoContent4.Text; + imgage4.ImageUrl = imgPhoto4.ImageUrl.Substring(imgPhoto4.ImageUrl.IndexOf("/") + 1); + ImageLists.Add(imgage4); + + var imgage5 = new Model.Report_TextBoxContent(); + imgage5.Id = Guid.NewGuid().ToString(); + imgage5.ReportId = MonthReportId; + imgage5.ContentType = "10-5"; + imgage5.ContentText = txtPhotoContent5.Text; + imgage5.ImageUrl = imgPhoto5.ImageUrl.Substring(imgPhoto5.ImageUrl.IndexOf("/") + 1); + ImageLists.Add(imgage5); + + var imgage6 = new Model.Report_TextBoxContent(); + imgage6.Id = Guid.NewGuid().ToString(); + imgage6.ReportId = MonthReportId; + imgage6.ContentType = "10-7"; + imgage6.ContentText = txtPhotoContent7.Text; + imgage6.ImageUrl = imgPhoto7.ImageUrl.Substring(imgPhoto6.ImageUrl.IndexOf("/") + 1); + ImageLists.Add(imgage6); + + imgage6 = new Model.Report_TextBoxContent(); + imgage6.Id = Guid.NewGuid().ToString(); + imgage6.ReportId = MonthReportId; + imgage6.ContentType = "10-6"; + imgage6.ContentText = txtPhotoContent6.Text; + imgage6.ImageUrl = imgPhoto6.ImageUrl.Substring(imgPhoto6.ImageUrl.IndexOf("/") + 1); + ImageLists.Add(imgage6); + + // + imgage6 = new Model.Report_TextBoxContent(); + imgage6.Id = Guid.NewGuid().ToString(); + imgage6.ReportId = MonthReportId; + imgage6.ContentType = "10-8"; + imgage6.ContentText = txtPhotoContent8.Text; + imgage6.ImageUrl = imgPhoto8.ImageUrl.Substring(imgPhoto6.ImageUrl.IndexOf("/") + 1); + ImageLists.Add(imgage6); + + imgage6 = new Model.Report_TextBoxContent(); + imgage6.Id = Guid.NewGuid().ToString(); + imgage6.ReportId = MonthReportId; + imgage6.ContentType = "10-9"; + imgage6.ContentText = txtPhotoContent9.Text; + imgage6.ImageUrl = imgPhoto9.ImageUrl.Substring(imgPhoto6.ImageUrl.IndexOf("/") + 1); + ImageLists.Add(imgage6); + + imgage6 = new Model.Report_TextBoxContent(); + imgage6.Id = Guid.NewGuid().ToString(); + imgage6.ReportId = MonthReportId; + imgage6.ContentType = "10-10"; + imgage6.ContentText = txtPhotoContent10.Text; + imgage6.ImageUrl = imgPhoto10.ImageUrl.Substring(imgPhoto6.ImageUrl.IndexOf("/") + 1); + ImageLists.Add(imgage6); + + imgage6 = new Model.Report_TextBoxContent(); + imgage6.Id = Guid.NewGuid().ToString(); + imgage6.ReportId = MonthReportId; + imgage6.ContentType = "10-11"; + imgage6.ContentText = txtPhotoContent11.Text; + imgage6.ImageUrl = imgPhoto11.ImageUrl.Substring(imgPhoto6.ImageUrl.IndexOf("/") + 1); + ImageLists.Add(imgage6); + + imgage6 = new Model.Report_TextBoxContent(); + imgage6.Id = Guid.NewGuid().ToString(); + imgage6.ReportId = MonthReportId; + imgage6.ContentType = "10-12"; + imgage6.ContentText = txtPhotoContent12.Text; + imgage6.ImageUrl = imgPhoto12.ImageUrl.Substring(imgPhoto6.ImageUrl.IndexOf("/") + 1); + ImageLists.Add(imgage6); + + db.Report_TextBoxContent.InsertAllOnSubmit(ImageLists); + db.SubmitChanges(); + } + #endregion #endregion #region 加载grid @@ -840,12 +1650,33 @@ namespace FineUIPro.Web.HSSE.Manager GetCheckSort(); //4.3本月隐患 GetManager_HiddenDanger(); + + //4.4本月项目作业许可管理数据 + getProjectAssignment(); + + //4.5项目本月危大工程管理数据 + getMonthHazardousGrid(); + + //4.6.1 应急预案发布情况 + GetEmergencyPlan(); + + //4.6.2 应急演练工作情况说明 + GetDrillRecordList(); + //4.7HSE奖励与处罚 GetRewardAndPunishSort(); //5.1本月项目HSE费用投入统计 GetFiveExpenseList(); + //6.1未遂事件统计 + GetAttempted(); + + //6.1 2本月伤害事故统计 + GetInjuryAccident(); + + //6.3 HSE目标实现情况 + GetGalachList(); } else @@ -855,8 +1686,73 @@ namespace FineUIPro.Web.HSSE.Manager //3.本月隐患 GetManager_HiddenDangerEdit(); + + #region 加载照片 + var txtReportList = db.Report_TextBoxContent.Where(x => x.ReportId == MonthReportId).ToList(); + if (txtReportList.FirstOrDefault(x => x.ContentType == "10-1") != null) + { + imgPhoto.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "10-1").ImageUrl; + txtPhotoContent1.Text = txtReportList.FirstOrDefault(x => x.ContentType == "10-1").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "10-2") != null) + { + imgPhoto2.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "10-2").ImageUrl; + txtPhotoContent2.Text = txtReportList.FirstOrDefault(x => x.ContentType == "10-2").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "10-3") != null) + { + imgPhoto3.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "10-3").ImageUrl; + txtPhotoContent3.Text = txtReportList.FirstOrDefault(x => x.ContentType == "10-3").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "10-4") != null) + { + imgPhoto4.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "10-4").ImageUrl; + txtPhotoContent4.Text = txtReportList.FirstOrDefault(x => x.ContentType == "10-4").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "10-5") != null) + { + imgPhoto5.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "10-5").ImageUrl; + txtPhotoContent5.Text = txtReportList.FirstOrDefault(x => x.ContentType == "10-5").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "10-6") != null) + { + imgPhoto6.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "10-6").ImageUrl; + txtPhotoContent6.Text = txtReportList.FirstOrDefault(x => x.ContentType == "10-6").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "10-7") != null) + { + imgPhoto7.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "10-7").ImageUrl; + txtPhotoContent7.Text = txtReportList.FirstOrDefault(x => x.ContentType == "10-7").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "10-8") != null) + { + imgPhoto8.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "10-8").ImageUrl; + txtPhotoContent8.Text = txtReportList.FirstOrDefault(x => x.ContentType == "10-8").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "10-9") != null) + { + imgPhoto9.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "10-9").ImageUrl; + txtPhotoContent9.Text = txtReportList.FirstOrDefault(x => x.ContentType == "10-9").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "10-10") != null) + { + imgPhoto10.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "10-10").ImageUrl; + txtPhotoContent10.Text = txtReportList.FirstOrDefault(x => x.ContentType == "10-10").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "10-11") != null) + { + imgPhoto11.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "10-11").ImageUrl; + txtPhotoContent11.Text = txtReportList.FirstOrDefault(x => x.ContentType == "10-11").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "10-12") != null) + { + imgPhoto12.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "10-12").ImageUrl; + txtPhotoContent12.Text = txtReportList.FirstOrDefault(x => x.ContentType == "10-12").ContentText; + } + #endregion + } - + } #region 2 人力投入情况 @@ -925,7 +1821,7 @@ namespace FineUIPro.Web.HSSE.Manager orderby y.UnitType select x).Distinct().ToList(); List personSorts = new List(); - + foreach (var unit in units) { Model.Manager_PersonSortC personSort = sorts.FirstOrDefault(x => x.UnitId == unit.UnitId); @@ -1135,7 +2031,7 @@ namespace FineUIPro.Web.HSSE.Manager var TotalPersonNum = 0; var list = db.Base_TrainType.ToList(); var listTrain = BLL.EduTrain_TrainRecordService.GetTrainingsByTrainDate(startTime, endTime, this.ProjectId); - var listAllTrain= BLL.EduTrain_TrainRecordService.GetTrainingsByTrainDate(endTime, this.ProjectId); + var listAllTrain = BLL.EduTrain_TrainRecordService.GetTrainingsByTrainDate(endTime, this.ProjectId); foreach (var item in list) { int i = 0; @@ -1150,7 +2046,8 @@ namespace FineUIPro.Web.HSSE.Manager trainSort.TeachHour = listTrain.Where(x => x.TrainTypeId == item.TrainTypeId).Sum(x => x.TeachHour); trainSort.PersonNum = listTrain.Where(x => x.TrainTypeId == item.TrainTypeId).Sum(x => x.TrainPersonNum); } - else { + else + { trainSort.TeachHour = 0; trainSort.PersonNum = 0; } @@ -1159,7 +2056,8 @@ namespace FineUIPro.Web.HSSE.Manager trainSort.TotalPersonNum = listAllTrain.Where(x => x.TrainTypeId == item.TrainTypeId).Sum(x => x.TrainPersonNum); TotalPersonNum += Convert.ToInt32(trainSort.TotalPersonNum); } - else { + else + { trainSort.TotalPersonNum = 0; } i++; @@ -1182,7 +2080,8 @@ namespace FineUIPro.Web.HSSE.Manager #endregion #region 4.2现场HSE会议及检查统计 - private void GetCheckSort() { + private void GetCheckSort() + { int i = 0; #region HSE会议 本月开展次数 @@ -1289,7 +2188,7 @@ namespace FineUIPro.Web.HSSE.Manager }; checkSorts.Add(checkSort7); i++; - + Model.Manager_CheckSortC checkSort11 = new Model.Manager_CheckSortC { CheckSortId = SQLHelper.GetNewID(typeof(Model.Manager_CheckSortC)), @@ -1307,8 +2206,37 @@ namespace FineUIPro.Web.HSSE.Manager } #endregion + #region 4.5项目本月危大工程管理数据 + private void getMonthHazardousGrid() + { + var list = db.Solution_LargerHazard.Where(x => x.ProjectId == ProjectId && x.RecordTime >= startTime && + x.RecordTime <= endTime && x.States == "3").ToList(); + //加载本月非经专家论证的危大工程数量 + var model = new MonthHazardous() + { + Id = Guid.NewGuid().ToString(), + Category = "非经专家论证的危大工程数量", + ExpertCount = list.Where(x => x.IsArgument == false).ToList().Count() + }; + monthHazardousList.Add(model); + //加载本月经专家论证的超危大工程数量 + model = new MonthHazardous() + { + Id = Guid.NewGuid().ToString(), + Category = "经专家论证的危大工程数量", + ExpertCount = list.Where(x => x.IsArgument == true).ToList().Count() + }; + monthHazardousList.Add(model); + MonthHazardousGrid.DataSource = monthHazardousList; + MonthHazardousGrid.DataBind(); + } + + + #endregion + #region 4.3 本月隐患整改情况 - void GetManager_HiddenDangerEdit() { + void GetManager_HiddenDangerEdit() + { var q = from x in db.Manager_HiddenDanger where x.MonthReportId == MonthReportId select x; @@ -1318,9 +2246,9 @@ namespace FineUIPro.Web.HSSE.Manager List sorts = (from x in db.Manager_HiddenDanger join y in db.Project_ProjectUnit on x.UnitId equals y.UnitId - where x.MonthReportId == MonthReportId && y.ProjectId == this.ProjectId - orderby y.UnitType - select x).Distinct().ToList(); + where x.MonthReportId == MonthReportId && y.ProjectId == this.ProjectId + orderby y.UnitType + select x).Distinct().ToList(); List personSorts = new List(); //var units = from x in db.Project_ProjectUnit // where x.ProjectId == this.ProjectId && (x.UnitType == "1" || x.UnitType == "2") @@ -1336,7 +2264,7 @@ namespace FineUIPro.Web.HSSE.Manager } this.GridHiddenDanger.DataSource = personSorts; this.GridHiddenDanger.DataBind(); - + } else { @@ -1345,10 +2273,11 @@ namespace FineUIPro.Web.HSSE.Manager } //保存时根据 HSE巡检、专项检查、综合检查(即周检、月检等)、隐患整改(书面整改单)这四项同时抓取数据 - void GetManager_HiddenDanger() { + void GetManager_HiddenDanger() + { //安全巡检list var HseList = (from x in Funs.DB.View_Hazard_HazardRegister - where x.ProblemTypes == "1" && x.ProjectId == ProjectId && x.CheckTime>=startTime && x.CheckTime<=endTime + where x.ProblemTypes == "1" && x.ProjectId == ProjectId && x.CheckTime >= startTime && x.CheckTime <= endTime select x); //专项检查 var CheckSpecialList = from x in db.Check_CheckSpecialDetail @@ -1364,7 +2293,7 @@ namespace FineUIPro.Web.HSSE.Manager var YhzgdList = from x in db.Check_RectifyNoticesItem join y in db.Check_RectifyNotices on x.RectifyNoticesId equals y.RectifyNoticesId where y.ProjectId == ProjectId && y.CheckedDate >= startTime && y.CheckedDate <= endTime - select new { y.UnitId, x.HiddenHazardType,y.States}; + select new { y.UnitId, x.HiddenHazardType, y.States }; int yhMonthSum = 0, yhYearSum = 0; var list = new List(); @@ -1375,24 +2304,24 @@ namespace FineUIPro.Web.HSSE.Manager { var model = new Manager_HiddenDanger { - Id=Guid.NewGuid().ToString(), + Id = Guid.NewGuid().ToString(), UnitId = u.UnitId, - SortIndex= i + SortIndex = i }; //HSE巡检(一般和重大) //所有数据 - var Commonly1 = HseList.Where(x => x.ResponsibleUnit == u.UnitId && x.Type == 0 && x.Risk_Level=="一般" && x.States == "2").Count(); - var MajorNum1= HseList.Where(x => x.ResponsibleUnit == u.UnitId && x.Type == 0 && x.Risk_Level == "重大" && x.States == "2").Count(); + var Commonly1 = HseList.Where(x => x.ResponsibleUnit == u.UnitId && x.Type == 0 && x.Risk_Level == "一般" && x.States == "2").Count(); + var MajorNum1 = HseList.Where(x => x.ResponsibleUnit == u.UnitId && x.Type == 0 && x.Risk_Level == "重大" && x.States == "2").Count(); //总数,已整改 var Sum1 = HseList.Where(x => x.ResponsibleUnit == u.UnitId && x.Type == 0).Count(); var Yzg1 = HseList.Where(x => x.ResponsibleUnit == u.UnitId && x.Type == 0 && x.States == "2").Count(); //专项检查(一般和重大) - var Commonly2 = CheckSpecialList.Where(x => x.UnitId == u.UnitId && x.HiddenHazardType == "1" && x.CompleteStatus == true).Count(); - var MajorNum2 = CheckSpecialList.Where(x => x.UnitId == u.UnitId && x.HiddenHazardType == "3" && x.CompleteStatus == true).Count(); + var Commonly2 = CheckSpecialList.Where(x => x.UnitId == u.UnitId && x.HiddenHazardType == "1" && x.CompleteStatus == true).Count(); + var MajorNum2 = CheckSpecialList.Where(x => x.UnitId == u.UnitId && x.HiddenHazardType == "3" && x.CompleteStatus == true).Count(); //总数,已整改 var Sum2 = CheckSpecialList.Where(x => x.UnitId == u.UnitId).Count(); - var Yzg2 = CheckSpecialList.Where(x => x.UnitId == u.UnitId && x.CompleteStatus==true).Count(); + var Yzg2 = CheckSpecialList.Where(x => x.UnitId == u.UnitId && x.CompleteStatus == true).Count(); //综合检查(一般和重大) var Commonly3 = CheckColligationList.Where(x => x.UnitId == u.UnitId && x.HiddenHazardType == "一般" && x.CompleteStatus == true).Count(); @@ -1409,15 +2338,16 @@ namespace FineUIPro.Web.HSSE.Manager var Yzg4 = YhzgdList.Where(x => x.UnitId == u.UnitId && x.States == "5").Count(); - model.CommonlyNum = Commonly1+ Commonly2+ Commonly3+ Commonly4; - model.MajorNum = MajorNum1+ MajorNum2+ MajorNum3+ MajorNum4; + model.CommonlyNum = Commonly1 + Commonly2 + Commonly3 + Commonly4; + model.MajorNum = MajorNum1 + MajorNum2 + MajorNum3 + MajorNum4; //整改率=已整改/总数 if ((Sum1 + Sum2 + Sum3 + Sum4) != 0) { model.ReRate = Math.Round((float)(Yzg1 + Yzg2 + Yzg3 + Yzg4) / (float)(Sum1 + Sum2 + Sum3 + Sum4) * 100, 2).ToString(); } - else { + else + { model.ReRate = "0"; } yhMonthSum += Sum1 + Sum2 + Sum3 + Sum4; @@ -1430,36 +2360,227 @@ namespace FineUIPro.Web.HSSE.Manager this.GridHiddenDanger.DataSource = list; this.GridHiddenDanger.DataBind(); #region 本年隐患总数 - + //安全巡检list var HseListYear = (from x in Funs.DB.View_Hazard_HazardRegister - where x.ProblemTypes == "1" && x.ProjectId == ProjectId && x.CheckTime >= yearStartTime && x.CheckTime <= endTime - select x).ToList().Count; + where x.ProblemTypes == "1" && x.ProjectId == ProjectId && x.CheckTime >= yearStartTime && x.CheckTime <= endTime + select x).ToList().Count; //专项检查 var CheckSpecialListYear = (from x in db.Check_CheckSpecialDetail - join y in db.Check_CheckSpecial on x.CheckSpecialId equals y.CheckSpecialId - where y.ProjectId == ProjectId && y.CheckTime >= yearStartTime && y.CheckTime <= endTime - select x).ToList().Count; + join y in db.Check_CheckSpecial on x.CheckSpecialId equals y.CheckSpecialId + where y.ProjectId == ProjectId && y.CheckTime >= yearStartTime && y.CheckTime <= endTime + select x).ToList().Count; //综合检查 var CheckColligationListYear = (from x in db.Check_CheckColligationDetail - join y in db.Check_CheckColligation on x.CheckColligationId equals y.CheckColligationId - where y.ProjectId == ProjectId && y.CheckTime >= yearStartTime && y.CheckTime <= endTime - select x).ToList().Count; + join y in db.Check_CheckColligation on x.CheckColligationId equals y.CheckColligationId + where y.ProjectId == ProjectId && y.CheckTime >= yearStartTime && y.CheckTime <= endTime + select x).ToList().Count; //隐患整改单 var YhzgdListYear = (from x in db.Check_RectifyNoticesItem - join y in db.Check_RectifyNotices on x.RectifyNoticesId equals y.RectifyNoticesId - where y.ProjectId == ProjectId && y.CheckedDate >= yearStartTime && y.CheckedDate <= endTime - select new { y.UnitId, x.HiddenHazardType, y.States }).ToList().Count; + join y in db.Check_RectifyNotices on x.RectifyNoticesId equals y.RectifyNoticesId + where y.ProjectId == ProjectId && y.CheckedDate >= yearStartTime && y.CheckedDate <= endTime + select new { y.UnitId, x.HiddenHazardType, y.States }).ToList().Count; txtYearHdangerCount.Text = (HseListYear + CheckSpecialListYear + CheckColligationListYear + YhzgdListYear).ToString(); #endregion } #endregion + #region 4.4本月项目作业许可管理数据 + private void getProjectAssignment() + { + int num1 = 0, num2 = 0, num3 = 0, num4 = 0, num5 = 0, num6 = 0, num7 = 0, num8 = 0; + //动火 + var firelist = db.License_FireWork.Where(x => x.States == "3" && x.ProjectId == ProjectId); + //动土 + var breaklist = db.License_BreakGround.Where(x => x.States == "3" && x.ProjectId == ProjectId); + //受限空间 + var limitlist = db.License_LimitedSpace.Where(x => x.States == "3" && x.ProjectId == ProjectId); + //临时用电 + var electrilist = db.License_Electricity.Where(x => x.States == "3" && x.ProjectId == ProjectId); + //高处作业 + var heightlist = db.License_HeightWork.Where(x => x.States == "3" && x.ProjectId == ProjectId); + //射线作业 + var radialist = db.License_RadialWork.Where(x => x.States == "3" && x.ProjectId == ProjectId); + //吊装作业 + var liftinglist = db.License_LiftingWork.Where(x => x.States == "3" && x.ProjectId == ProjectId); + //夜间施工 + var nightlist = db.License_NightWork.Where(x => x.States == "3" && x.ProjectId == ProjectId); + //定稿 + var dg = db.License_LicenseManager.Where(x => x.WorkStates == "3" && x.ProjectId == ProjectId); + + //本月 + num1 = firelist.Where(x => x.ApplyDate >= startTime && x.ApplyDate <= endTime).ToList().Count + + dg.Where(x => x.LicenseTypeId == "aa5b3d17-23bb-4c81-a413-bdbfdd64b38a" && x.CompileDate >= startTime && x.CompileDate <= endTime).ToList().Count; + + num2 = breaklist.Where(x => x.ApplyDate >= startTime && x.ApplyDate <= endTime).ToList().Count; + + num3 = limitlist.Where(x => x.ApplyDate >= startTime && x.ApplyDate <= endTime).ToList().Count + + dg.Where(x => x.LicenseTypeId == "9062f7e7-ce35-4e0d-8dbc-760569d2bd1e" && x.CompileDate >= startTime && x.CompileDate <= endTime).ToList().Count; + + num4 = electrilist.Where(x => x.ApplyDate >= startTime && x.ApplyDate <= endTime).ToList().Count + + dg.Where(x => x.LicenseTypeId == "30f9a07e-289d-4a91-9373-2e3bcef1f1e9" && x.CompileDate >= startTime && x.CompileDate <= endTime).ToList().Count; + + num5 = heightlist.Where(x => x.ApplyDate >= startTime && x.ApplyDate <= endTime).ToList().Count + + dg.Where(x => x.LicenseTypeId == "4ec4267c-a2e9-4ad2-a95b-7552425acbd4" && x.CompileDate >= startTime && x.CompileDate <= endTime).ToList().Count; + + num6 = radialist.Where(x => x.ApplyDate >= startTime && x.ApplyDate <= endTime).ToList().Count + + dg.Where(x => x.LicenseTypeId == "4a25f089-ff1d-4a3c-9415-3f4e3d58bb77" && x.CompileDate >= startTime && x.CompileDate <= endTime).ToList().Count; + + num7 = liftinglist.Where(x => x.ApplyDate >= startTime && x.ApplyDate <= endTime).ToList().Count + + dg.Where(x => x.LicenseTypeId == "3835ad67-1ae2-4b38-9a5d-71deb6d972aa" && x.CompileDate >= startTime && x.CompileDate <= endTime).ToList().Count; + + num8 = nightlist.Where(x => x.ApplyDate >= startTime && x.ApplyDate <= endTime).ToList().Count + + dg.Where(x => x.LicenseTypeId == "52a699e6-3d0b-4be4-b37d-bf05c41767dd" && x.CompileDate >= startTime && x.CompileDate <= endTime).ToList().Count; + + nbFireWorkCount.Text = num1.ToString(); + nbBreakGroundCount.Text = num2.ToString(); + nbLimitedSpaceCount.Text = num3.ToString(); + nbElectricityCount.Text = num4.ToString(); + nbHeightWorkCount.Text = num5.ToString(); + nbRadialWork.Text = num6.ToString(); + nbLiftingWorkCount.Text = num7.ToString(); + nbNightWork.Text = num8.ToString(); + + nbMonthCount.Text = (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8).ToString(); + + //年度 + num1 = firelist.Where(x => x.ApplyDate >= yearStartTime && x.ApplyDate <= endTime).ToList().Count + + dg.Where(x => x.LicenseTypeId == "aa5b3d17-23bb-4c81-a413-bdbfdd64b38a" && x.CompileDate >= yearStartTime && x.CompileDate <= endTime).ToList().Count; + + num2 = breaklist.Where(x => x.ApplyDate >= yearStartTime && x.ApplyDate <= endTime).ToList().Count; + + num3 = limitlist.Where(x => x.ApplyDate >= yearStartTime && x.ApplyDate <= endTime).ToList().Count + + dg.Where(x => x.LicenseTypeId == "9062f7e7-ce35-4e0d-8dbc-760569d2bd1e" && x.CompileDate >= yearStartTime && x.CompileDate <= endTime).ToList().Count; + + num4 = electrilist.Where(x => x.ApplyDate >= yearStartTime && x.ApplyDate <= endTime).ToList().Count + + dg.Where(x => x.LicenseTypeId == "30f9a07e-289d-4a91-9373-2e3bcef1f1e9").ToList().Count; + + num5 = heightlist.Where(x => x.ApplyDate >= yearStartTime && x.ApplyDate <= endTime).ToList().Count + + dg.Where(x => x.LicenseTypeId == "4ec4267c-a2e9-4ad2-a95b-7552425acbd4" && x.CompileDate >= yearStartTime && x.CompileDate <= endTime).ToList().Count; + + num6 = radialist.Where(x => x.ApplyDate >= yearStartTime && x.ApplyDate <= endTime).ToList().Count + + dg.Where(x => x.LicenseTypeId == "4a25f089-ff1d-4a3c-9415-3f4e3d58bb77" && x.CompileDate >= yearStartTime && x.CompileDate <= endTime).ToList().Count; + + num7 = liftinglist.Where(x => x.ApplyDate >= yearStartTime && x.ApplyDate <= endTime).ToList().Count + + dg.Where(x => x.LicenseTypeId == "3835ad67-1ae2-4b38-9a5d-71deb6d972aa" && x.CompileDate >= yearStartTime && x.CompileDate <= endTime).ToList().Count; + + num8 = nightlist.Where(x => x.ApplyDate >= yearStartTime && x.ApplyDate <= endTime).ToList().Count + + dg.Where(x => x.LicenseTypeId == "52a699e6-3d0b-4be4-b37d-bf05c41767dd" && x.CompileDate >= yearStartTime && x.CompileDate <= endTime).ToList().Count; + nbYearCount.Text = (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8).ToString(); + + //项目累计 + num1 = firelist.Where(x => x.ApplyDate >= projectStartTime && x.ApplyDate <= endTime).ToList().Count + + dg.Where(x => x.LicenseTypeId == "aa5b3d17-23bb-4c81-a413-bdbfdd64b38a" && x.CompileDate >= projectStartTime && x.CompileDate <= endTime).ToList().Count; + + num2 = breaklist.Where(x => x.ApplyDate >= projectStartTime && x.ApplyDate <= endTime).ToList().Count; + + num3 = limitlist.Where(x => x.ApplyDate >= projectStartTime && x.ApplyDate <= endTime).ToList().Count + + dg.Where(x => x.LicenseTypeId == "9062f7e7-ce35-4e0d-8dbc-760569d2bd1e" && x.CompileDate >= projectStartTime && x.CompileDate <= endTime).ToList().Count; + + num4 = electrilist.Where(x => x.ApplyDate >= projectStartTime && x.ApplyDate <= endTime).ToList().Count + + dg.Where(x => x.LicenseTypeId == "30f9a07e-289d-4a91-9373-2e3bcef1f1e9" && x.CompileDate >= projectStartTime && x.CompileDate <= endTime).ToList().Count; + + num5 = heightlist.Where(x => x.ApplyDate >= projectStartTime && x.ApplyDate <= endTime).ToList().Count + + dg.Where(x => x.LicenseTypeId == "4ec4267c-a2e9-4ad2-a95b-7552425acbd4" && x.CompileDate >= projectStartTime && x.CompileDate <= endTime).ToList().Count; + + num6 = radialist.Where(x => x.ApplyDate >= projectStartTime && x.ApplyDate <= endTime).ToList().Count + + dg.Where(x => x.LicenseTypeId == "4a25f089-ff1d-4a3c-9415-3f4e3d58bb77" && x.CompileDate >= projectStartTime && x.CompileDate <= endTime).ToList().Count; + + num7 = liftinglist.Where(x => x.ApplyDate >= projectStartTime && x.ApplyDate <= endTime).ToList().Count + + dg.Where(x => x.LicenseTypeId == "3835ad67-1ae2-4b38-9a5d-71deb6d972aa" && x.CompileDate >= projectStartTime && x.CompileDate <= endTime).ToList().Count; + + num8 = nightlist.Where(x => x.ApplyDate >= projectStartTime && x.ApplyDate <= endTime).ToList().Count + + dg.Where(x => x.LicenseTypeId == "52a699e6-3d0b-4be4-b37d-bf05c41767dd" && x.CompileDate >= projectStartTime && x.CompileDate <= endTime).ToList().Count; + nbProCount.Text = (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8).ToString(); + } + #endregion + + #region 4.6.1 应急预案发布情况(手动填写) + private void GetEmergencyPlan() + { + int i = 1; + var model = new Manager_EmergencyPlan() + { + Id = SQLHelper.GetNewID(typeof(Model.Manager_CheckSortC)), + SortIndex = i, + CaType = "综合应急预案", + MonthCount = 0, + YearCount = 0, + ProCount = 0 + }; + emergencyPlanList.Add(model); + i++; + + model = new Manager_EmergencyPlan() + { + Id = SQLHelper.GetNewID(typeof(Model.Manager_CheckSortC)), + SortIndex = i, + CaType = "专项应急预案", + MonthCount = 0, + YearCount = 0, + ProCount = 0 + }; + emergencyPlanList.Add(model); + i++; + + model = new Manager_EmergencyPlan() + { + Id = SQLHelper.GetNewID(typeof(Model.Manager_CheckSortC)), + SortIndex = i, + CaType = "现场处置方案", + MonthCount = 0, + YearCount = 0, + ProCount = 0 + }; + emergencyPlanList.Add(model); + i++; + this.EmergencyPlanGrid.DataSource = emergencyPlanList; + this.EmergencyPlanGrid.DataBind(); + + } + #endregion + + #region 4.6.2 应急演练工作情况说明 + private void GetDrillRecordList() + { + var query = (from x in db.Emergency_DrillRecordList + join y in db.Sys_Const on x.DrillRecordType equals y.ConstValue + where y.GroupId == "DrillRecordType" && x.States == "2" && + x.ProjectId == ProjectId && x.DrillRecordDate >= startTime + && x.DrillRecordDate <= endTime + orderby x.DrillRecordDate + select new + { + Id = Guid.NewGuid().ToString(), + Dname = x.DrillRecordName, + Ddate = x.DrillRecordDate, + DrillRecordTypeName = y.ConstText, + PersonNum = x.JointPersonNum, + DrillCost = x.DrillCost + }); + foreach (var item in query) + { + var model = new Manager_DrillRecordList() + { + Id = Guid.NewGuid().ToString(), + Dname = item.Dname, + Ddate = item.Ddate, + DrillRecordTypeName = item.DrillRecordTypeName, + PersonNum = item.PersonNum, + DrillCost = item.DrillCost + }; + drillRecordList.Add(model); + } + this.DrillRecordListGrid.DataSource = drillRecordList; + this.DrillRecordListGrid.DataBind(); + } + #endregion + #region 4.7 HSE奖励与处罚 private void GetRewardAndPunishSort() { - + Model.Manager_RewardAndPunishSortC sortC = new Model.Manager_RewardAndPunishSortC { RewardAndPunishId = SQLHelper.GetNewID(typeof(Model.Manager_RewardAndPunishSortC)), @@ -1566,11 +2687,12 @@ namespace FineUIPro.Web.HSSE.Manager #endregion #region 5.1 - private void GetFiveExpenseList() { + private void GetFiveExpenseList() + { #region 五环(本月) decimal? sMonthType1 = 0, sMonthType2 = 0, sMonthType3 = 0, sMonthType4 = 0, sMonthType5 = 0, sMonthType6 = 0, sMonthType7 = 0, sMonthType8 = 0, sMonthType9 = 0, sMonthType10 = 0; - + var payRegistrations = BLL.HseExpenseService.GetPayRegistrationByPayDate(startTime, endTime, this.ProjectId, BLL.Const.UnitId_CWCEC); if (payRegistrations != null) { @@ -1590,7 +2712,7 @@ namespace FineUIPro.Web.HSSE.Manager #region 五环(项目) decimal? sProjectType1 = 0, sProjectType2 = 0, sProjectType3 = 0, sProjectType4 = 0, sProjectType5 = 0, sProjectType6 = 0, sProjectType7 = 0, sProjectType8 = 0, sProjectType9 = 0, sProjectType10 = 0; - + var payRegistrationsPro = BLL.PayRegistrationService.GetPayRegistrationByPayDate(projectStartTime, endTime, this.ProjectId, BLL.Const.UnitId_CWCEC); if (payRegistrationsPro != null) { @@ -1610,7 +2732,7 @@ namespace FineUIPro.Web.HSSE.Manager #region 施工分包(本月) decimal? sConMonthType1 = 0, sConMonthType2 = 0, sConMonthType3 = 0, sConMonthType4 = 0, sConMonthType5 = 0, sConMonthType6 = 0, sConMonthType7 = 0, sConMonthType8 = 0, sConMonthType9 = 0, sConMonthType10 = 0; - + var payRegistrationsConMonth = BLL.PayRegistrationService.GetConPayRegistrationByPayDate(startTime, endTime, this.ProjectId); if (payRegistrationsConMonth != null) { @@ -1630,7 +2752,7 @@ namespace FineUIPro.Web.HSSE.Manager #region 施工分包(项目) decimal? sConProjectType1 = 0, sConProjectType2 = 0, sConProjectType3 = 0, sConProjectType4 = 0, sConProjectType5 = 0, sConProjectType6 = 0, sConProjectType7 = 0, sConProjectType8 = 0, sConProjectType9 = 0, sConProjectType10 = 0; - + var payRegistrationsConPro = BLL.PayRegistrationService.GetConPayRegistrationByPayDate(projectStartTime, endTime, this.ProjectId); if (payRegistrationsConPro != null) { @@ -1821,6 +2943,207 @@ namespace FineUIPro.Web.HSSE.Manager } #endregion + #region 6.1未遂事件统计 + private void GetAttempted() + { + var list = db.Accident_AccidentHandle.Where(x => x.ProjectId == ProjectId); + //五环本月 + nbWhMonthNum.Text = list.Where(x => x.AccidentDate >= startTime && x.AccidentDate <= endTime && x.UnitId == Const.UnitId_CWCEC).Count() + .ToString(); + //五环本年 + nbWhYearNum.Text = list.Where(x => x.AccidentDate >= yearStartTime && x.AccidentDate <= endTime && x.UnitId == Const.UnitId_CWCEC).Count() + .ToString(); + //分包商本月 + nbFbsMonthNum.Text = list.Where(x => x.AccidentDate >= startTime && x.AccidentDate <= endTime && x.UnitId != Const.UnitId_CWCEC).Count() + .ToString(); + //分包商本年 + nbFbsYearNum.Text = list.Where(x => x.AccidentDate >= yearStartTime && x.AccidentDate <= endTime && x.UnitId != Const.UnitId_CWCEC).Count() + .ToString(); + //项目累计 + nbProNum.Text = list.Where(x => x.AccidentDate >= projectStartTime && x.AccidentDate <= endTime).Count() + .ToString(); + } + #endregion + + #region 6.1 2 本月伤害事故统计 + /// + /// 本月伤害事故统计 + /// + private void GetInjuryAccident() + { + List reports = AccidentReportService.GetAccidentReportsByAccidentTime(startTime, endTime, ProjectId); + List deathReports = AccidentReportService.GetAccidentReportsByAccidentType("1", startTime, endTime, ProjectId); + int i = 0; + Model.Manager_Month_InjuryAccidentC injury = new Model.Manager_Month_InjuryAccidentC + { + InjuryAccidentId = SQLHelper.GetNewID(typeof(Model.Manager_Month_InjuryAccidentC)), + UnitName = "五环", + FirstAidDressing = 0, // + MedicalTreatment = 0,// + WorkLimitation = 0,// + 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 = "分包商", + FirstAidDressing = 0, // + MedicalTreatment = 0,// + WorkLimitation = 0,// + 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.gvInjuryAccident.DataSource = injuryAccidents; + this.gvInjuryAccident.DataBind(); + + 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()) + { + JObject values = mergedRow.Value("values"); + 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"); + } + } + 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 6.3 HSE目标实现情况 + private void GetGalachList() + { + + var GalachModel = new Galach() + { + Id = Guid.NewGuid().ToString(), + GoName = "项目HSE检查计划完成率", + GoTarget = 0, + GoValue = "≥90%" + + }; + galachList.Add(GalachModel); + + + GalachModel = new Galach() + { + Id = Guid.NewGuid().ToString(), + GoName = "百万工时总可记录事件率
(总可记录事件人数 / 总工时)×106", + GoTarget = 0, + GoValue = "≤2" + + }; + galachList.Add(GalachModel); + + GalachModel = new Galach() + { + Id = Guid.NewGuid().ToString(), + GoName = "百万工时事故发生频率
(损失工时伤害事故起数 / 总工时)×106", + GoTarget = 0, + GoValue = "≤15" + + }; + galachList.Add(GalachModel); + + if (galachList.Count > 0) + { + GoalachGrid.DataSource = galachList; + GoalachGrid.DataBind(); + } + } + #endregion + #endregion #region 转换字符串 @@ -1843,6 +3166,6 @@ namespace FineUIPro.Web.HSSE.Manager } #endregion - + } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCEdit.aspx.designer.cs index 2b08c9ea..93eaaa92 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCEdit.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCEdit.aspx.designer.cs @@ -77,6 +77,15 @@ namespace FineUIPro.Web.HSSE.Manager /// protected global::FineUIPro.Button Button2; + /// + /// Button5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button Button5; + /// /// Table5 控件。 /// @@ -618,13 +627,13 @@ namespace FineUIPro.Web.HSSE.Manager protected global::FineUIPro.NumberBox NumberBox9; /// - /// Panel10 控件。 + /// Panel431 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Panel Panel10; + protected global::FineUIPro.Panel Panel431; /// /// txtMonthHdangerCount 控件。 @@ -633,7 +642,7 @@ namespace FineUIPro.Web.HSSE.Manager /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtMonthHdangerCount; + protected global::FineUIPro.NumberBox txtMonthHdangerCount; /// /// txtYearHdangerCount 控件。 @@ -642,7 +651,7 @@ namespace FineUIPro.Web.HSSE.Manager /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtYearHdangerCount; + protected global::FineUIPro.NumberBox txtYearHdangerCount; /// /// Panel44 控件。 @@ -653,6 +662,132 @@ namespace FineUIPro.Web.HSSE.Manager /// protected global::FineUIPro.Panel Panel44; + /// + /// Panel11 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel11; + + /// + /// nbFireWorkCount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox nbFireWorkCount; + + /// + /// nbBreakGroundCount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox nbBreakGroundCount; + + /// + /// nbLimitedSpaceCount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox nbLimitedSpaceCount; + + /// + /// nbElectricityCount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox nbElectricityCount; + + /// + /// Panel12 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel12; + + /// + /// nbHeightWorkCount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox nbHeightWorkCount; + + /// + /// nbRadialWork 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox nbRadialWork; + + /// + /// nbLiftingWorkCount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox nbLiftingWorkCount; + + /// + /// nbNightWork 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox nbNightWork; + + /// + /// Panel13 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel13; + + /// + /// nbMonthCount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox nbMonthCount; + + /// + /// nbYearCount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox nbYearCount; + + /// + /// nbProCount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox nbProCount; + /// /// Panel45 控件。 /// @@ -662,6 +797,24 @@ namespace FineUIPro.Web.HSSE.Manager /// protected global::FineUIPro.Panel Panel45; + /// + /// MonthHazardousGrid 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid MonthHazardousGrid; + + /// + /// NumberBox13 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox13; + /// /// Panel46 控件。 /// @@ -680,6 +833,42 @@ namespace FineUIPro.Web.HSSE.Manager /// protected global::FineUIPro.Panel Panel461; + /// + /// EmergencyPlanGrid 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid EmergencyPlanGrid; + + /// + /// NumberBox11 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox11; + + /// + /// NumberBox12 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox12; + + /// + /// NumberBox14 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox14; + /// /// Panel462 控件。 /// @@ -689,6 +878,51 @@ namespace FineUIPro.Web.HSSE.Manager /// protected global::FineUIPro.Panel Panel462; + /// + /// DrillRecordListGrid 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid DrillRecordListGrid; + + /// + /// DatePicker2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker DatePicker2; + + /// + /// TextBox11 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox11; + + /// + /// NumberBox15 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox15; + + /// + /// NumberBox16 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox16; + /// /// Panel463 控件。 /// @@ -867,7 +1101,7 @@ namespace FineUIPro.Web.HSSE.Manager /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox TextBox2; + protected global::FineUIPro.NumberBox TextBox2; /// /// TextBox3 控件。 @@ -876,7 +1110,7 @@ namespace FineUIPro.Web.HSSE.Manager /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox TextBox3; + protected global::FineUIPro.NumberBox TextBox3; /// /// TextBox4 控件。 @@ -885,7 +1119,7 @@ namespace FineUIPro.Web.HSSE.Manager /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox TextBox4; + protected global::FineUIPro.NumberBox TextBox4; /// /// TextBox5 控件。 @@ -894,7 +1128,7 @@ namespace FineUIPro.Web.HSSE.Manager /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox TextBox5; + protected global::FineUIPro.NumberBox TextBox5; /// /// Panel6 控件。 @@ -923,6 +1157,96 @@ namespace FineUIPro.Web.HSSE.Manager /// protected global::FineUIPro.Panel Panel611; + /// + /// Form2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form2; + + /// + /// GroupPanel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel1; + + /// + /// Panel14 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel14; + + /// + /// nbWhMonthNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox nbWhMonthNum; + + /// + /// nbWhYearNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox nbWhYearNum; + + /// + /// GroupPanel2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel2; + + /// + /// Panel15 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel15; + + /// + /// nbFbsMonthNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox nbFbsMonthNum; + + /// + /// nbFbsYearNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox nbFbsYearNum; + + /// + /// nbProNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox nbProNum; + /// /// Panel612 控件。 /// @@ -932,6 +1256,96 @@ namespace FineUIPro.Web.HSSE.Manager /// protected global::FineUIPro.Panel Panel612; + /// + /// gvInjuryAccident 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid gvInjuryAccident; + + /// + /// NumberBox18 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox18; + + /// + /// NumberBox19 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox19; + + /// + /// NumberBox20 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox20; + + /// + /// NumberBox21 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox21; + + /// + /// NumberBox22 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox22; + + /// + /// NumberBox23 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox23; + + /// + /// NumberBox24 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox24; + + /// + /// NumberBox25 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox25; + + /// + /// NumberBox26 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox26; + /// /// Panel62 控件。 /// @@ -959,6 +1373,24 @@ namespace FineUIPro.Web.HSSE.Manager /// protected global::FineUIPro.Panel Panel63; + /// + /// GoalachGrid 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid GoalachGrid; + + /// + /// NumberBox17 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox17; + /// /// Panel7 控件。 /// @@ -1121,6 +1553,510 @@ namespace FineUIPro.Web.HSSE.Manager /// protected global::FineUIPro.Label Label2; + /// + /// Panel10 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel10; + + /// + /// Form32 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form32; + + /// + /// imgPhoto 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Image imgPhoto; + + /// + /// imgPhoto2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Image imgPhoto2; + + /// + /// filePhoto 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload filePhoto; + + /// + /// filePhoto2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload filePhoto2; + + /// + /// Label6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label6; + + /// + /// txtPhotoContent1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPhotoContent1; + + /// + /// Label10 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label10; + + /// + /// txtPhotoContent2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPhotoContent2; + + /// + /// Label11 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label11; + + /// + /// imgPhoto3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Image imgPhoto3; + + /// + /// imgPhoto4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Image imgPhoto4; + + /// + /// filePhoto3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload filePhoto3; + + /// + /// filePhoto4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload filePhoto4; + + /// + /// Label15 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label15; + + /// + /// txtPhotoContent3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPhotoContent3; + + /// + /// Label16 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label16; + + /// + /// txtPhotoContent4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPhotoContent4; + + /// + /// Label17 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label17; + + /// + /// imgPhoto5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Image imgPhoto5; + + /// + /// imgPhoto6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Image imgPhoto6; + + /// + /// filePhoto5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload filePhoto5; + + /// + /// filePhoto6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload filePhoto6; + + /// + /// Label21 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label21; + + /// + /// txtPhotoContent5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPhotoContent5; + + /// + /// Label22 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label22; + + /// + /// txtPhotoContent6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPhotoContent6; + + /// + /// Label23 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label23; + + /// + /// imgPhoto7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Image imgPhoto7; + + /// + /// imgPhoto8 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Image imgPhoto8; + + /// + /// filePhoto7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload filePhoto7; + + /// + /// filePhoto8 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload filePhoto8; + + /// + /// Label27 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label27; + + /// + /// txtPhotoContent7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPhotoContent7; + + /// + /// Label28 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label28; + + /// + /// txtPhotoContent8 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPhotoContent8; + + /// + /// Label29 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label29; + + /// + /// imgPhoto9 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Image imgPhoto9; + + /// + /// imgPhoto10 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Image imgPhoto10; + + /// + /// filePhoto9 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload filePhoto9; + + /// + /// filePhoto10 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload filePhoto10; + + /// + /// Label33 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label33; + + /// + /// txtPhotoContent9 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPhotoContent9; + + /// + /// Label34 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label34; + + /// + /// txtPhotoContent10 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPhotoContent10; + + /// + /// Label35 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label35; + + /// + /// imgPhoto11 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Image imgPhoto11; + + /// + /// imgPhoto12 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Image imgPhoto12; + + /// + /// filePhoto11 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload filePhoto11; + + /// + /// filePhoto12 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload filePhoto12; + + /// + /// Label39 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label39; + + /// + /// txtPhotoContent11 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPhotoContent11; + + /// + /// Label40 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label40; + + /// + /// txtPhotoContent12 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPhotoContent12; + + /// + /// Label41 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label41; + /// /// Toolbar1 控件。 /// @@ -1157,15 +2093,6 @@ namespace FineUIPro.Web.HSSE.Manager /// protected global::FineUIPro.Button Button1; - /// - /// Button5 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button Button5; - /// /// hdId 控件。 /// diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCNew.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCNew.aspx.cs index 1d042c53..26311833 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCNew.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCNew.aspx.cs @@ -60,7 +60,7 @@ namespace FineUIPro.Web.HSSE.Manager string strSql = @"SELECT MonthReport.MonthReportId,MonthReport.ProjectId,MonthReport.Months,CodeRecords.Code AS MonthReportCode,Users.UserName as ReportManName" + @" FROM Manager_MonthReportC AS MonthReport " + @" LEFT JOIN Sys_User AS Users ON MonthReport.ReportMan=Users.UserId " - + @" LEFT JOIN Sys_CodeRecords AS CodeRecords ON MonthReport.MonthReportId=CodeRecords.DataId WHERE 1=1 "; + + @" LEFT JOIN Sys_CodeRecords AS CodeRecords ON MonthReport.MonthReportId=CodeRecords.DataId WHERE MonthReportType='1' "; List listStr = new List(); strSql += " AND MonthReport.ProjectId = @ProjectId"; listStr.Add(new SqlParameter("@ProjectId", this.ProjectId)); @@ -238,44 +238,49 @@ namespace FineUIPro.Web.HSSE.Manager var mont = BLL.MonthReportCService.GetMonthReportByMonthReportId(rowID); if (mont != null) { + InjuryAccidentCService.DeleteInjuryAccidengtByMonthReportId(rowID); + PersonSortCService.DeleteManager_Attempted(rowID); + PersonSortCService.DeleteManager_DrillRecordList(rowID); + PersonSortCService.DeleteManager_EmergencyPlan(rowID); + PersonSortCService.DeleteManager_ProjectAssignment(rowID); PersonSortCService.DeleteManager_HiddenDanger(rowID); - BLL.ComplianceObligationsCService.DeleteComplianceObligationsCByMonthReportId(rowID); - BLL.RewardAndPunishSortCService.DeleteRewardAndPunishSortCByMonthReportId(rowID); - BLL.PersonSortCService.DeletePersonSortsByMonthReportId(rowID); - BLL.HazardSortCService.DeleteHazardSortsByMonthReportId(rowID); - BLL.AccidentSortCService.DeleteAccidentSortsByMonthReportId(rowID); - BLL.HseCostCService.DeleteHseCostsByMonthReportId(rowID); - BLL.TrainSortCService.DeleteTrainSortsByMonthReportId(rowID); - BLL.TrainActivitySortCService.DeleteTrainActivitySortsByMonthReportId(rowID); - BLL.MeetingSortCService.DeleteMeetingSortsByMonthReportId(rowID); - BLL.CheckSortCService.DeleteCheckSortsByMonthReportId(rowID); - BLL.CheckDetailSortCService.DeleteCheckDetailSortsByMonthReportId(rowID); - BLL.PromotionalActiviteSortCService.DeletePromotionalActiviteSortsByMonthReportId(rowID); - BLL.EmergencySortCService.DeleteEmergencySortsByMonthReportId(rowID); - BLL.DrillSortCService.DeleteDrillSortsByMonthReportId(rowID); - BLL.IncentiveSortCService.DeleteIncentiveSortsByMonthReportId(rowID); - BLL.OtherActiveSortCService.DeleteOtherActiveSortsByMonthReportId(rowID); - BLL.ActivityDesCService.DeleteActivityDesByMonthReportId(rowID); - BLL.OtherManagementCService.DeleteOtherManagementByMonthReportId(rowID); - BLL.PlanCService.DeletePlanByMonthReportId(rowID); - BLL.ReviewRecordCService.DeleteReviewRecordByMonthReportId(rowID); - BLL.FileManageCService.DeleteFileManageByMonthReportId(rowID); - BLL.FiveExpenseCService.DeleteFiveExpenseByMonthReportId(rowID); - BLL.SubExpenseCService.DeleteSubExpenseByMonthReportId(rowID); - BLL.AccidentDesciptionItemCService.DeleteAccidentDesciptionItemByMonthReportId(rowID); - BLL.AccidentDesciptionCService.DeleteAccidentDesciptionByMonthReportId(rowID); - BLL.OtherWorkCService.DeleteOtherWorkByMonthReportId(rowID); - BLL.HazardCService.DeleteHazardByMonthReportId(rowID); - BLL.TrainCService.DeleteTrainByMonthReportId(rowID); - BLL.CheckCService.DeleteCheckByMonthReportId(rowID); - BLL.MeetingCService.DeleteMeetingByMonthReportId(rowID); - BLL.ActivitiesCService.DeleteActivitiesByMonthReportId(rowID); - BLL.EmergencyPlanCService.DeleteEmergencyPlanByMonthReportId(rowID); - BLL.EmergencyExercisesCService.DeleteEmergencyExercisesByMonthReportId(rowID); - BLL.CostInvestmentPlanCService.DeleteCostInvestmentPlanByMonthReportId(rowID); - BLL.ManageDocPlanCService.DeleteManageDocPlanByMonthReportId(rowID); - BLL.OtherWorkPlanCService.DeleteOtherWorkPlanByMonthReportId(rowID); - BLL.MonthReportCService.DeleteMonthReportByMonthReportId(rowID); + ComplianceObligationsCService.DeleteComplianceObligationsCByMonthReportId(rowID); + RewardAndPunishSortCService.DeleteRewardAndPunishSortCByMonthReportId(rowID); + PersonSortCService.DeletePersonSortsByMonthReportId(rowID); + HazardSortCService.DeleteHazardSortsByMonthReportId(rowID); + AccidentSortCService.DeleteAccidentSortsByMonthReportId(rowID); + HseCostCService.DeleteHseCostsByMonthReportId(rowID); + TrainSortCService.DeleteTrainSortsByMonthReportId(rowID); + TrainActivitySortCService.DeleteTrainActivitySortsByMonthReportId(rowID); + MeetingSortCService.DeleteMeetingSortsByMonthReportId(rowID); + CheckSortCService.DeleteCheckSortsByMonthReportId(rowID); + CheckDetailSortCService.DeleteCheckDetailSortsByMonthReportId(rowID); + PromotionalActiviteSortCService.DeletePromotionalActiviteSortsByMonthReportId(rowID); + EmergencySortCService.DeleteEmergencySortsByMonthReportId(rowID); + DrillSortCService.DeleteDrillSortsByMonthReportId(rowID); + IncentiveSortCService.DeleteIncentiveSortsByMonthReportId(rowID); + OtherActiveSortCService.DeleteOtherActiveSortsByMonthReportId(rowID); + ActivityDesCService.DeleteActivityDesByMonthReportId(rowID); + OtherManagementCService.DeleteOtherManagementByMonthReportId(rowID); + PlanCService.DeletePlanByMonthReportId(rowID); + ReviewRecordCService.DeleteReviewRecordByMonthReportId(rowID); + FileManageCService.DeleteFileManageByMonthReportId(rowID); + FiveExpenseCService.DeleteFiveExpenseByMonthReportId(rowID); + SubExpenseCService.DeleteSubExpenseByMonthReportId(rowID); + AccidentDesciptionItemCService.DeleteAccidentDesciptionItemByMonthReportId(rowID); + AccidentDesciptionCService.DeleteAccidentDesciptionByMonthReportId(rowID); + OtherWorkCService.DeleteOtherWorkByMonthReportId(rowID); + HazardCService.DeleteHazardByMonthReportId(rowID); + TrainCService.DeleteTrainByMonthReportId(rowID); + CheckCService.DeleteCheckByMonthReportId(rowID); + MeetingCService.DeleteMeetingByMonthReportId(rowID); + ActivitiesCService.DeleteActivitiesByMonthReportId(rowID); + EmergencyPlanCService.DeleteEmergencyPlanByMonthReportId(rowID); + EmergencyExercisesCService.DeleteEmergencyExercisesByMonthReportId(rowID); + CostInvestmentPlanCService.DeleteCostInvestmentPlanByMonthReportId(rowID); + ManageDocPlanCService.DeleteManageDocPlanByMonthReportId(rowID); + OtherWorkPlanCService.DeleteOtherWorkPlanByMonthReportId(rowID); + MonthReportCService.DeleteMonthReportByMonthReportId(rowID); } } diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index 05943ff1..f1abefa7 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -1427,6 +1427,9 @@ namespace Model partial void InsertManager_AccidentSortC(Manager_AccidentSortC instance); partial void UpdateManager_AccidentSortC(Manager_AccidentSortC instance); partial void DeleteManager_AccidentSortC(Manager_AccidentSortC instance); + partial void InsertManager_Attempted(Manager_Attempted instance); + partial void UpdateManager_Attempted(Manager_Attempted instance); + partial void DeleteManager_Attempted(Manager_Attempted instance); partial void InsertManager_CheckDetailSortC(Manager_CheckDetailSortC instance); partial void UpdateManager_CheckDetailSortC(Manager_CheckDetailSortC instance); partial void DeleteManager_CheckDetailSortC(Manager_CheckDetailSortC instance); @@ -1436,9 +1439,15 @@ namespace Model partial void InsertManager_CompletionReport(Manager_CompletionReport instance); partial void UpdateManager_CompletionReport(Manager_CompletionReport instance); partial void DeleteManager_CompletionReport(Manager_CompletionReport instance); + partial void InsertManager_DrillRecordList(Manager_DrillRecordList instance); + partial void UpdateManager_DrillRecordList(Manager_DrillRecordList instance); + partial void DeleteManager_DrillRecordList(Manager_DrillRecordList instance); partial void InsertManager_DrillSortC(Manager_DrillSortC instance); partial void UpdateManager_DrillSortC(Manager_DrillSortC instance); partial void DeleteManager_DrillSortC(Manager_DrillSortC instance); + partial void InsertManager_EmergencyPlan(Manager_EmergencyPlan instance); + partial void UpdateManager_EmergencyPlan(Manager_EmergencyPlan instance); + partial void DeleteManager_EmergencyPlan(Manager_EmergencyPlan instance); partial void InsertManager_EmergencySortC(Manager_EmergencySortC instance); partial void UpdateManager_EmergencySortC(Manager_EmergencySortC instance); partial void DeleteManager_EmergencySortC(Manager_EmergencySortC instance); @@ -1559,6 +1568,9 @@ namespace Model partial void InsertManager_PersonSortC(Manager_PersonSortC instance); partial void UpdateManager_PersonSortC(Manager_PersonSortC instance); partial void DeleteManager_PersonSortC(Manager_PersonSortC instance); + partial void InsertManager_ProjectAssignment(Manager_ProjectAssignment instance); + partial void UpdateManager_ProjectAssignment(Manager_ProjectAssignment instance); + partial void DeleteManager_ProjectAssignment(Manager_ProjectAssignment instance); partial void InsertManager_PromotionalActiviteSortC(Manager_PromotionalActiviteSortC instance); partial void UpdateManager_PromotionalActiviteSortC(Manager_PromotionalActiviteSortC instance); partial void DeleteManager_PromotionalActiviteSortC(Manager_PromotionalActiviteSortC instance); @@ -6470,6 +6482,14 @@ namespace Model } } + public System.Data.Linq.Table Manager_Attempted + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Manager_CheckDetailSortC { get @@ -6494,6 +6514,14 @@ namespace Model } } + public System.Data.Linq.Table Manager_DrillRecordList + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Manager_DrillSortC { get @@ -6502,6 +6530,14 @@ namespace Model } } + public System.Data.Linq.Table Manager_EmergencyPlan + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Manager_EmergencySortC { get @@ -6822,6 +6858,14 @@ namespace Model } } + public System.Data.Linq.Table Manager_ProjectAssignment + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Manager_PromotionalActiviteSortC { get @@ -232970,6 +233014,212 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Manager_Attempted")] + public partial class Manager_Attempted : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _MonthReportId; + + private System.Nullable _WhMonthNum; + + private System.Nullable _WhYearNum; + + private System.Nullable _FbsMonthNum; + + private System.Nullable _FbsYearNum; + + private System.Nullable _ProNum; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnMonthReportIdChanging(string value); + partial void OnMonthReportIdChanged(); + partial void OnWhMonthNumChanging(System.Nullable value); + partial void OnWhMonthNumChanged(); + partial void OnWhYearNumChanging(System.Nullable value); + partial void OnWhYearNumChanged(); + partial void OnFbsMonthNumChanging(System.Nullable value); + partial void OnFbsMonthNumChanged(); + partial void OnFbsYearNumChanging(System.Nullable value); + partial void OnFbsYearNumChanged(); + partial void OnProNumChanging(System.Nullable value); + partial void OnProNumChanged(); + #endregion + + public Manager_Attempted() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] + public string MonthReportId + { + get + { + return this._MonthReportId; + } + set + { + if ((this._MonthReportId != value)) + { + this.OnMonthReportIdChanging(value); + this.SendPropertyChanging(); + this._MonthReportId = value; + this.SendPropertyChanged("MonthReportId"); + this.OnMonthReportIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WhMonthNum", DbType="Int")] + public System.Nullable WhMonthNum + { + get + { + return this._WhMonthNum; + } + set + { + if ((this._WhMonthNum != value)) + { + this.OnWhMonthNumChanging(value); + this.SendPropertyChanging(); + this._WhMonthNum = value; + this.SendPropertyChanged("WhMonthNum"); + this.OnWhMonthNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WhYearNum", DbType="Int")] + public System.Nullable WhYearNum + { + get + { + return this._WhYearNum; + } + set + { + if ((this._WhYearNum != value)) + { + this.OnWhYearNumChanging(value); + this.SendPropertyChanging(); + this._WhYearNum = value; + this.SendPropertyChanged("WhYearNum"); + this.OnWhYearNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FbsMonthNum", DbType="Int")] + public System.Nullable FbsMonthNum + { + get + { + return this._FbsMonthNum; + } + set + { + if ((this._FbsMonthNum != value)) + { + this.OnFbsMonthNumChanging(value); + this.SendPropertyChanging(); + this._FbsMonthNum = value; + this.SendPropertyChanged("FbsMonthNum"); + this.OnFbsMonthNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FbsYearNum", DbType="Int")] + public System.Nullable FbsYearNum + { + get + { + return this._FbsYearNum; + } + set + { + if ((this._FbsYearNum != value)) + { + this.OnFbsYearNumChanging(value); + this.SendPropertyChanging(); + this._FbsYearNum = value; + this.SendPropertyChanged("FbsYearNum"); + this.OnFbsYearNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProNum", DbType="Int")] + public System.Nullable ProNum + { + get + { + return this._ProNum; + } + set + { + if ((this._ProNum != value)) + { + this.OnProNumChanging(value); + this.SendPropertyChanging(); + this._ProNum = value; + this.SendPropertyChanged("ProNum"); + this.OnProNumChanged(); + } + } + } + + 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_CheckDetailSortC")] public partial class Manager_CheckDetailSortC : INotifyPropertyChanging, INotifyPropertyChanged { @@ -233824,6 +234074,236 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Manager_DrillRecordList")] + public partial class Manager_DrillRecordList : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _MonthReportId; + + private string _Dname; + + private System.Nullable _Ddate; + + private string _DrillRecordTypeName; + + private System.Nullable _PersonNum; + + private System.Nullable _DrillCost; + + private System.Nullable _SortIndex; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnMonthReportIdChanging(string value); + partial void OnMonthReportIdChanged(); + partial void OnDnameChanging(string value); + partial void OnDnameChanged(); + partial void OnDdateChanging(System.Nullable value); + partial void OnDdateChanged(); + partial void OnDrillRecordTypeNameChanging(string value); + partial void OnDrillRecordTypeNameChanged(); + partial void OnPersonNumChanging(System.Nullable value); + partial void OnPersonNumChanged(); + partial void OnDrillCostChanging(System.Nullable value); + partial void OnDrillCostChanged(); + partial void OnSortIndexChanging(System.Nullable value); + partial void OnSortIndexChanged(); + #endregion + + public Manager_DrillRecordList() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] + public string MonthReportId + { + get + { + return this._MonthReportId; + } + set + { + if ((this._MonthReportId != value)) + { + this.OnMonthReportIdChanging(value); + this.SendPropertyChanging(); + this._MonthReportId = value; + this.SendPropertyChanged("MonthReportId"); + this.OnMonthReportIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Dname", DbType="NVarChar(100)")] + public string Dname + { + get + { + return this._Dname; + } + set + { + if ((this._Dname != value)) + { + this.OnDnameChanging(value); + this.SendPropertyChanging(); + this._Dname = value; + this.SendPropertyChanged("Dname"); + this.OnDnameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Ddate", DbType="DateTime")] + public System.Nullable Ddate + { + get + { + return this._Ddate; + } + set + { + if ((this._Ddate != value)) + { + this.OnDdateChanging(value); + this.SendPropertyChanging(); + this._Ddate = value; + this.SendPropertyChanged("Ddate"); + this.OnDdateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DrillRecordTypeName", DbType="NVarChar(50)")] + public string DrillRecordTypeName + { + get + { + return this._DrillRecordTypeName; + } + set + { + if ((this._DrillRecordTypeName != value)) + { + this.OnDrillRecordTypeNameChanging(value); + this.SendPropertyChanging(); + this._DrillRecordTypeName = value; + this.SendPropertyChanged("DrillRecordTypeName"); + this.OnDrillRecordTypeNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PersonNum", DbType="Int")] + public System.Nullable PersonNum + { + get + { + return this._PersonNum; + } + set + { + if ((this._PersonNum != value)) + { + this.OnPersonNumChanging(value); + this.SendPropertyChanging(); + this._PersonNum = value; + this.SendPropertyChanged("PersonNum"); + this.OnPersonNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DrillCost", DbType="Decimal(18,2)")] + public System.Nullable DrillCost + { + get + { + return this._DrillCost; + } + set + { + if ((this._DrillCost != value)) + { + this.OnDrillCostChanging(value); + this.SendPropertyChanging(); + this._DrillCost = value; + this.SendPropertyChanged("DrillCost"); + this.OnDrillCostChanged(); + } + } + } + + [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(); + } + } + } + + 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_DrillSortC")] public partial class Manager_DrillSortC : INotifyPropertyChanging, INotifyPropertyChanged { @@ -234071,6 +234551,212 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Manager_EmergencyPlan")] + public partial class Manager_EmergencyPlan : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _MonthReportId; + + private string _CaType; + + private System.Nullable _MonthCount; + + private System.Nullable _YearCount; + + private System.Nullable _ProCount; + + private System.Nullable _SortIndex; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnMonthReportIdChanging(string value); + partial void OnMonthReportIdChanged(); + partial void OnCaTypeChanging(string value); + partial void OnCaTypeChanged(); + partial void OnMonthCountChanging(System.Nullable value); + partial void OnMonthCountChanged(); + partial void OnYearCountChanging(System.Nullable value); + partial void OnYearCountChanged(); + partial void OnProCountChanging(System.Nullable value); + partial void OnProCountChanged(); + partial void OnSortIndexChanging(System.Nullable value); + partial void OnSortIndexChanged(); + #endregion + + public Manager_EmergencyPlan() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] + public string MonthReportId + { + get + { + return this._MonthReportId; + } + set + { + if ((this._MonthReportId != value)) + { + this.OnMonthReportIdChanging(value); + this.SendPropertyChanging(); + this._MonthReportId = value; + this.SendPropertyChanged("MonthReportId"); + this.OnMonthReportIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CaType", DbType="NVarChar(50)")] + public string CaType + { + get + { + return this._CaType; + } + set + { + if ((this._CaType != value)) + { + this.OnCaTypeChanging(value); + this.SendPropertyChanging(); + this._CaType = value; + this.SendPropertyChanged("CaType"); + this.OnCaTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthCount", DbType="Int")] + public System.Nullable MonthCount + { + get + { + return this._MonthCount; + } + set + { + if ((this._MonthCount != value)) + { + this.OnMonthCountChanging(value); + this.SendPropertyChanging(); + this._MonthCount = value; + this.SendPropertyChanged("MonthCount"); + this.OnMonthCountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_YearCount", DbType="Int")] + public System.Nullable YearCount + { + get + { + return this._YearCount; + } + set + { + if ((this._YearCount != value)) + { + this.OnYearCountChanging(value); + this.SendPropertyChanging(); + this._YearCount = value; + this.SendPropertyChanged("YearCount"); + this.OnYearCountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProCount", DbType="Int")] + public System.Nullable ProCount + { + get + { + return this._ProCount; + } + set + { + if ((this._ProCount != value)) + { + this.OnProCountChanging(value); + this.SendPropertyChanging(); + this._ProCount = value; + this.SendPropertyChanged("ProCount"); + this.OnProCountChanged(); + } + } + } + + [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(); + } + } + } + + 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_EmergencySortC")] public partial class Manager_EmergencySortC : INotifyPropertyChanging, INotifyPropertyChanged { @@ -245298,6 +245984,18 @@ namespace Model private System.Nullable _YearHdangerCount; + private System.Nullable _MonthExpertCount; + + private System.Nullable _MonthExpertNoCount; + + private System.Nullable _Goalach1; + + private System.Nullable _Goalach2; + + private System.Nullable _Goalach3; + + private string _MonthReportType; + private EntitySet _Manager_AccidentSortC; private EntitySet _Manager_CheckDetailSortC; @@ -245590,6 +246288,18 @@ namespace Model partial void OnMonthHdangerCountChanged(); partial void OnYearHdangerCountChanging(System.Nullable value); partial void OnYearHdangerCountChanged(); + partial void OnMonthExpertCountChanging(System.Nullable value); + partial void OnMonthExpertCountChanged(); + partial void OnMonthExpertNoCountChanging(System.Nullable value); + partial void OnMonthExpertNoCountChanged(); + partial void OnGoalach1Changing(System.Nullable value); + partial void OnGoalach1Changed(); + partial void OnGoalach2Changing(System.Nullable value); + partial void OnGoalach2Changed(); + partial void OnGoalach3Changing(System.Nullable value); + partial void OnGoalach3Changed(); + partial void OnMonthReportTypeChanging(string value); + partial void OnMonthReportTypeChanged(); #endregion public Manager_MonthReportC() @@ -247706,6 +248416,126 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthExpertCount", DbType="Int")] + public System.Nullable MonthExpertCount + { + get + { + return this._MonthExpertCount; + } + set + { + if ((this._MonthExpertCount != value)) + { + this.OnMonthExpertCountChanging(value); + this.SendPropertyChanging(); + this._MonthExpertCount = value; + this.SendPropertyChanged("MonthExpertCount"); + this.OnMonthExpertCountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthExpertNoCount", DbType="Int")] + public System.Nullable MonthExpertNoCount + { + get + { + return this._MonthExpertNoCount; + } + set + { + if ((this._MonthExpertNoCount != value)) + { + this.OnMonthExpertNoCountChanging(value); + this.SendPropertyChanging(); + this._MonthExpertNoCount = value; + this.SendPropertyChanged("MonthExpertNoCount"); + this.OnMonthExpertNoCountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Goalach1", DbType="Decimal(18,2)")] + public System.Nullable Goalach1 + { + get + { + return this._Goalach1; + } + set + { + if ((this._Goalach1 != value)) + { + this.OnGoalach1Changing(value); + this.SendPropertyChanging(); + this._Goalach1 = value; + this.SendPropertyChanged("Goalach1"); + this.OnGoalach1Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Goalach2", DbType="Decimal(18,2)")] + public System.Nullable Goalach2 + { + get + { + return this._Goalach2; + } + set + { + if ((this._Goalach2 != value)) + { + this.OnGoalach2Changing(value); + this.SendPropertyChanging(); + this._Goalach2 = value; + this.SendPropertyChanged("Goalach2"); + this.OnGoalach2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Goalach3", DbType="Decimal(18,2)")] + public System.Nullable Goalach3 + { + get + { + return this._Goalach3; + } + set + { + if ((this._Goalach3 != value)) + { + this.OnGoalach3Changing(value); + this.SendPropertyChanging(); + this._Goalach3 = value; + this.SendPropertyChanged("Goalach3"); + this.OnGoalach3Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportType", DbType="NVarChar(20)")] + public string MonthReportType + { + get + { + return this._MonthReportType; + } + set + { + if ((this._MonthReportType != value)) + { + this.OnMonthReportTypeChanging(value); + this.SendPropertyChanging(); + this._MonthReportType = value; + this.SendPropertyChanged("MonthReportType"); + this.OnMonthReportTypeChanged(); + } + } + } + [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 { @@ -251133,6 +251963,356 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Manager_ProjectAssignment")] + public partial class Manager_ProjectAssignment : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _MonthReportId; + + private System.Nullable _FireWorkCount; + + private System.Nullable _BreakGroundCount; + + private System.Nullable _LimitedSpaceCount; + + private System.Nullable _ElectricityCount; + + private System.Nullable _HeightWorkCount; + + private System.Nullable _RadialWork; + + private System.Nullable _LiftingWorkCount; + + private System.Nullable _NightWork; + + private System.Nullable _MonthCount; + + private System.Nullable _YearCount; + + private System.Nullable _ProCount; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnMonthReportIdChanging(string value); + partial void OnMonthReportIdChanged(); + partial void OnFireWorkCountChanging(System.Nullable value); + partial void OnFireWorkCountChanged(); + partial void OnBreakGroundCountChanging(System.Nullable value); + partial void OnBreakGroundCountChanged(); + partial void OnLimitedSpaceCountChanging(System.Nullable value); + partial void OnLimitedSpaceCountChanged(); + partial void OnElectricityCountChanging(System.Nullable value); + partial void OnElectricityCountChanged(); + partial void OnHeightWorkCountChanging(System.Nullable value); + partial void OnHeightWorkCountChanged(); + partial void OnRadialWorkChanging(System.Nullable value); + partial void OnRadialWorkChanged(); + partial void OnLiftingWorkCountChanging(System.Nullable value); + partial void OnLiftingWorkCountChanged(); + partial void OnNightWorkChanging(System.Nullable value); + partial void OnNightWorkChanged(); + partial void OnMonthCountChanging(System.Nullable value); + partial void OnMonthCountChanged(); + partial void OnYearCountChanging(System.Nullable value); + partial void OnYearCountChanged(); + partial void OnProCountChanging(System.Nullable value); + partial void OnProCountChanged(); + #endregion + + public Manager_ProjectAssignment() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] + public string MonthReportId + { + get + { + return this._MonthReportId; + } + set + { + if ((this._MonthReportId != value)) + { + this.OnMonthReportIdChanging(value); + this.SendPropertyChanging(); + this._MonthReportId = value; + this.SendPropertyChanged("MonthReportId"); + this.OnMonthReportIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FireWorkCount", DbType="Int")] + public System.Nullable FireWorkCount + { + get + { + return this._FireWorkCount; + } + set + { + if ((this._FireWorkCount != value)) + { + this.OnFireWorkCountChanging(value); + this.SendPropertyChanging(); + this._FireWorkCount = value; + this.SendPropertyChanged("FireWorkCount"); + this.OnFireWorkCountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BreakGroundCount", DbType="Int")] + public System.Nullable BreakGroundCount + { + get + { + return this._BreakGroundCount; + } + set + { + if ((this._BreakGroundCount != value)) + { + this.OnBreakGroundCountChanging(value); + this.SendPropertyChanging(); + this._BreakGroundCount = value; + this.SendPropertyChanged("BreakGroundCount"); + this.OnBreakGroundCountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LimitedSpaceCount", DbType="Int")] + public System.Nullable LimitedSpaceCount + { + get + { + return this._LimitedSpaceCount; + } + set + { + if ((this._LimitedSpaceCount != value)) + { + this.OnLimitedSpaceCountChanging(value); + this.SendPropertyChanging(); + this._LimitedSpaceCount = value; + this.SendPropertyChanged("LimitedSpaceCount"); + this.OnLimitedSpaceCountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ElectricityCount", DbType="Int")] + public System.Nullable ElectricityCount + { + get + { + return this._ElectricityCount; + } + set + { + if ((this._ElectricityCount != value)) + { + this.OnElectricityCountChanging(value); + this.SendPropertyChanging(); + this._ElectricityCount = value; + this.SendPropertyChanged("ElectricityCount"); + this.OnElectricityCountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HeightWorkCount", DbType="Int")] + public System.Nullable HeightWorkCount + { + get + { + return this._HeightWorkCount; + } + set + { + if ((this._HeightWorkCount != value)) + { + this.OnHeightWorkCountChanging(value); + this.SendPropertyChanging(); + this._HeightWorkCount = value; + this.SendPropertyChanged("HeightWorkCount"); + this.OnHeightWorkCountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RadialWork", DbType="Int")] + public System.Nullable RadialWork + { + get + { + return this._RadialWork; + } + set + { + if ((this._RadialWork != value)) + { + this.OnRadialWorkChanging(value); + this.SendPropertyChanging(); + this._RadialWork = value; + this.SendPropertyChanged("RadialWork"); + this.OnRadialWorkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LiftingWorkCount", DbType="Int")] + public System.Nullable LiftingWorkCount + { + get + { + return this._LiftingWorkCount; + } + set + { + if ((this._LiftingWorkCount != value)) + { + this.OnLiftingWorkCountChanging(value); + this.SendPropertyChanging(); + this._LiftingWorkCount = value; + this.SendPropertyChanged("LiftingWorkCount"); + this.OnLiftingWorkCountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NightWork", DbType="Int")] + public System.Nullable NightWork + { + get + { + return this._NightWork; + } + set + { + if ((this._NightWork != value)) + { + this.OnNightWorkChanging(value); + this.SendPropertyChanging(); + this._NightWork = value; + this.SendPropertyChanged("NightWork"); + this.OnNightWorkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthCount", DbType="Int")] + public System.Nullable MonthCount + { + get + { + return this._MonthCount; + } + set + { + if ((this._MonthCount != value)) + { + this.OnMonthCountChanging(value); + this.SendPropertyChanging(); + this._MonthCount = value; + this.SendPropertyChanged("MonthCount"); + this.OnMonthCountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_YearCount", DbType="Int")] + public System.Nullable YearCount + { + get + { + return this._YearCount; + } + set + { + if ((this._YearCount != value)) + { + this.OnYearCountChanging(value); + this.SendPropertyChanging(); + this._YearCount = value; + this.SendPropertyChanged("YearCount"); + this.OnYearCountChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProCount", DbType="Int")] + public System.Nullable ProCount + { + get + { + return this._ProCount; + } + set + { + if ((this._ProCount != value)) + { + this.OnProCountChanging(value); + this.SendPropertyChanging(); + this._ProCount = value; + this.SendPropertyChanged("ProCount"); + this.OnProCountChanged(); + } + } + } + + 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_PromotionalActiviteSortC")] public partial class Manager_PromotionalActiviteSortC : INotifyPropertyChanging, INotifyPropertyChanged {