From eacb45828c306b20bfb8d722451b567ca0e473ba Mon Sep 17 00:00:00 2001 From: xiaju <1784803958@qq.com> Date: Mon, 15 Jun 2026 19:05:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=97=E4=BD=99=E4=BB=A3=E7=A0=81=E6=B8=85?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/BLL/API/HSSE/APIRectifyNoticesService.cs | 6 +- .../API/HSSE/APISeDinMonthReportService.cs | 2533 ---- .../API/HSSE/APIServerTestRecordService.cs | 30 +- SGGL/BLL/BLL.csproj | 2 - SGGL/BLL/Common/CommonService.cs | 30 +- SGGL/BLL/Common/Const.cs | 4 - SGGL/BLL/Common/PrinterDocService.cs | 1395 +- SGGL/BLL/DigData/HSEDataCollectService.cs | 8442 ------------ SGGL/BLL/HSSE/Check/RectifyNoticesService.cs | 4 +- SGGL/BLL/ProjectData/ProjectService.cs | 8 +- SGGL/BLL/SysManage/UserService.cs | 8 +- .../DigData/HSEDataCollect.aspx.cs | 22 +- SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 16 - .../HSSE/Manager/ManagerMonth_SeDin.aspx | 139 - .../HSSE/Manager/ManagerMonth_SeDin.aspx.cs | 281 - .../ManagerMonth_SeDin.aspx.designer.cs | 195 - .../HSSE/Manager/ManagerMonth_SeDinEdit.aspx | 1299 -- .../Manager/ManagerMonth_SeDinEdit.aspx.cs | 1382 -- .../ManagerMonth_SeDinEdit.aspx.designer.cs | 2526 ---- SGGL/FineUIPro.Web/Person/PersonDutyAdd.aspx | 2 +- .../Person/PersonDutyAdd.aspx.cs | 14 +- .../Person/PersonDutyAdd.aspx.designer.cs | 34 +- SGGL/FineUIPro.Web/Person/PersonDutyEdit.aspx | 2 +- .../Person/PersonDutyEdit.aspx.cs | 4 +- .../Person/PersonDutyEdit.aspx.designer.cs | 40 +- SGGL/FineUIPro.Web/Person/PersonDutyView.aspx | 2 +- .../Person/PersonDutyView.aspx.cs | 4 +- .../Person/PersonDutyView.aspx.designer.cs | 30 +- SGGL/FineUIPro.Web/Person/PersonSet.aspx.cs | 2 +- .../Person/PersonTrainingAdd.aspx.cs | 2 +- .../Person/PersonTrainingEdit.aspx.cs | 2 +- .../Person/PersonTrainingView.aspx.cs | 2 +- SGGL/FineUIPro.Web/Person/Shunt.aspx.cs | 2 +- .../Person/ShuntDetailEdit.aspx.cs | 2 +- SGGL/FineUIPro.Web/Personal/RunLog.aspx.cs | 2 +- .../APIItem/HSSE/SeDinMonthReport10Item.cs | 222 - .../APIItem/HSSE/SeDinMonthReport11Item.cs | 78 - .../APIItem/HSSE/SeDinMonthReport12Item.cs | 190 - .../APIItem/HSSE/SeDinMonthReport1Item.cs | 118 - .../APIItem/HSSE/SeDinMonthReport2Item.cs | 102 - .../APIItem/HSSE/SeDinMonthReport3Item.cs | 118 - .../APIItem/HSSE/SeDinMonthReport4Item.cs | 78 - .../HSSE/SeDinMonthReport4OtherItem.cs | 70 - .../APIItem/HSSE/SeDinMonthReport5Item.cs | 135 - .../APIItem/HSSE/SeDinMonthReport6Item.cs | 182 - .../APIItem/HSSE/SeDinMonthReport7Item.cs | 126 - .../APIItem/HSSE/SeDinMonthReport8Item.cs | 110 - .../APIItem/HSSE/SeDinMonthReport8ItemItem.cs | 62 - .../APIItem/HSSE/SeDinMonthReport9Item.cs | 150 - .../SeDinMonthReport9ItemRectification.cs | 134 - .../HSSE/SeDinMonthReport9ItemSpecial.cs | 62 - .../HSSE/SeDinMonthReport9ItemStoppage.cs | 70 - .../APIItem/HSSE/SeDinMonthReportItem.cs | 224 - SGGL/Model/Model.cs | 10695 ---------------- SGGL/Model/Model.csproj | 18 - .../HSSE/SeDinMonthReportController.cs | 651 - SGGL/WebAPI/WebAPI.csproj | 1 - 57 files changed, 134 insertions(+), 31930 deletions(-) delete mode 100644 SGGL/BLL/API/HSSE/APISeDinMonthReportService.cs delete mode 100644 SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDin.aspx delete mode 100644 SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDin.aspx.cs delete mode 100644 SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDin.aspx.designer.cs delete mode 100644 SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDinEdit.aspx delete mode 100644 SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDinEdit.aspx.cs delete mode 100644 SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDinEdit.aspx.designer.cs delete mode 100644 SGGL/Model/APIItem/HSSE/SeDinMonthReport10Item.cs delete mode 100644 SGGL/Model/APIItem/HSSE/SeDinMonthReport11Item.cs delete mode 100644 SGGL/Model/APIItem/HSSE/SeDinMonthReport12Item.cs delete mode 100644 SGGL/Model/APIItem/HSSE/SeDinMonthReport1Item.cs delete mode 100644 SGGL/Model/APIItem/HSSE/SeDinMonthReport2Item.cs delete mode 100644 SGGL/Model/APIItem/HSSE/SeDinMonthReport3Item.cs delete mode 100644 SGGL/Model/APIItem/HSSE/SeDinMonthReport4Item.cs delete mode 100644 SGGL/Model/APIItem/HSSE/SeDinMonthReport4OtherItem.cs delete mode 100644 SGGL/Model/APIItem/HSSE/SeDinMonthReport5Item.cs delete mode 100644 SGGL/Model/APIItem/HSSE/SeDinMonthReport6Item.cs delete mode 100644 SGGL/Model/APIItem/HSSE/SeDinMonthReport7Item.cs delete mode 100644 SGGL/Model/APIItem/HSSE/SeDinMonthReport8Item.cs delete mode 100644 SGGL/Model/APIItem/HSSE/SeDinMonthReport8ItemItem.cs delete mode 100644 SGGL/Model/APIItem/HSSE/SeDinMonthReport9Item.cs delete mode 100644 SGGL/Model/APIItem/HSSE/SeDinMonthReport9ItemRectification.cs delete mode 100644 SGGL/Model/APIItem/HSSE/SeDinMonthReport9ItemSpecial.cs delete mode 100644 SGGL/Model/APIItem/HSSE/SeDinMonthReport9ItemStoppage.cs delete mode 100644 SGGL/Model/APIItem/HSSE/SeDinMonthReportItem.cs delete mode 100644 SGGL/WebAPI/Controllers/HSSE/SeDinMonthReportController.cs diff --git a/SGGL/BLL/API/HSSE/APIRectifyNoticesService.cs b/SGGL/BLL/API/HSSE/APIRectifyNoticesService.cs index b0ec405b..0d18b0d9 100644 --- a/SGGL/BLL/API/HSSE/APIRectifyNoticesService.cs +++ b/SGGL/BLL/API/HSSE/APIRectifyNoticesService.cs @@ -172,7 +172,7 @@ namespace BLL return getDataLists.ToList(); } #endregion - + #region 保存RectifyNotices /// /// 保存RectifyNotices @@ -193,7 +193,7 @@ namespace BLL CheckManNames = rectifyNotices.CheckManNames, CheckManIds = rectifyNotices.CheckManIds, CheckedDate = Funs.GetNewDateTime(rectifyNotices.CheckedDate), - HiddenHazardType = rectifyNotices.HiddenHazardType, + HiddenHazardType = rectifyNotices.HiddenHazardType, States = rectifyNotices.States, }; if (!string.IsNullOrEmpty(rectifyNotices.WorkAreaId)) @@ -376,7 +376,7 @@ namespace BLL { isUpdate.UnitHeadManId = rectifyNotices.UnitHeadManId; isUpdate.CompleteDate = DateTime.Now; - + } else diff --git a/SGGL/BLL/API/HSSE/APISeDinMonthReportService.cs b/SGGL/BLL/API/HSSE/APISeDinMonthReportService.cs deleted file mode 100644 index 155ee534..00000000 --- a/SGGL/BLL/API/HSSE/APISeDinMonthReportService.cs +++ /dev/null @@ -1,2533 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using System; - -namespace BLL -{ - /// - /// 赛鼎月报 - /// - public static class APISeDinMonthReportService - { - #region 获取赛鼎月报列表信息 - /// - /// 获取赛鼎月报列表信息 - /// - /// - /// - public static List getSeDinMonthReportList(string projectId, string month, string states) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var monthD = Funs.GetNewDateTime(month); - var getSeDinMonthReport = from x in db.SeDin_MonthReport - where x.ProjectId == projectId - select x; - if (!string.IsNullOrEmpty(states)) - { - getSeDinMonthReport = getSeDinMonthReport.Where(x => x.States == states || (states == "0" && (x.States == null || x.States == "0"))); - } - - if (monthD.HasValue) - { - getSeDinMonthReport = getSeDinMonthReport.Where(x => x.ReporMonth.Value.Year == monthD.Value.Year && x.ReporMonth.Value.Month == monthD.Value.Month); - } - var getReport = from x in getSeDinMonthReport - orderby x.ReporMonth descending - select new Model.SeDinMonthReportItem - { - MonthReportId = x.MonthReportId, - ProjectId = x.ProjectId, - DueDate = string.Format("{0:yyyy-MM-dd}", x.DueDate), - StartDate = string.Format("{0:yyyy-MM-dd}", x.StartDate), - EndDate = string.Format("{0:yyyy-MM-dd}", x.EndDate), - ReporMonth = string.Format("{0:yyyy-MM}", x.ReporMonth), - CompileManId = x.CompileManId, - CompileManName = db.Sys_User.First(u => u.UserId == x.CompileManId).UserName, - AuditManId = x.AuditManId, - AuditManName = db.Sys_User.First(u => u.UserId == x.AuditManId).UserName, - ApprovalManId = x.ApprovalManId, - ApprovalManName = db.Sys_User.First(u => u.UserId == x.ApprovalManId).UserName, - ThisSummary = x.ThisSummary, - NextPlan = x.NextPlan, - }; - return getReport.ToList(); - } - } - #endregion - - #region 获取赛鼎月报初始化页面 - #region 获取赛鼎月报初始化页面 --0、封面 - /// - /// 获取赛鼎月报初始化页面 --封面 - /// - /// - /// - public static Model.SeDinMonthReportItem getSeDinMonthReportNullPage0(string projectId, DateTime? date = null) - { - var nowDate = System.DateTime.Now; - if (date.HasValue) - { - nowDate = date.Value.AddMonths(1); - } - Model.SeDinMonthReportItem newItem = new Model.SeDinMonthReportItem - { - ProjectId = projectId, - DueDate = nowDate.Year.ToString() + "-" + nowDate.Month.ToString() + "-05", - StartDate = nowDate.AddMonths(-2).Year.ToString() + "-" + nowDate.AddMonths(-2).Month.ToString() + "-26", - EndDate = nowDate.AddMonths(-1).Year.ToString() + "-" + nowDate.AddMonths(-1).Month.ToString() + "-25", - ReporMonth = nowDate.AddMonths(-1).Year.ToString() + "-" + nowDate.AddMonths(-1).Month.ToString(), - }; - return newItem; - } - #endregion - #region 获取赛鼎月报初始化页面 --1、项目信息 - /// - /// 获取赛鼎月报初始化页面 --1、项目信息 - /// - /// - /// - public static Model.SeDinMonthReport1Item getSeDinMonthReportNullPage1(string projectId) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - ///项目经理 - string projectManagerId = string.Empty; - var m = db.Project_ProjectUser.FirstOrDefault(x => x.ProjectId == projectId && x.RoleId.Contains(Const.ProjectManager)); - if (m != null) - { - projectManagerId = m.UserId; - } - ////安全经理 - string hsseManagerId = string.Empty; - var h = db.Project_ProjectUser.FirstOrDefault(x => x.ProjectId == projectId && x.RoleId.Contains(Const.HSSEManager)); - if (h != null) - { - hsseManagerId = h.UserId; - } - var newItem = from x in db.Base_Project - where x.ProjectId == projectId - select new Model.SeDinMonthReport1Item - { - ProjectCode = x.ProjectCode, - ProjectName = x.ProjectName, - ProjectType = db.Base_ProjectType.First(y => y.ProjectTypeId == x.ProjectType).ProjectTypeName, - StartDate = string.Format("{0:yyyy-MM-dd}", x.StartDate), - EndDate = string.Format("{0:yyyy-MM-dd}", x.EndDate), - ProjectManager = UserService.GetUserNameAndTelByUserId(projectManagerId), - HsseManager = UserService.GetUserNameAndTelByUserId(hsseManagerId), - ProjectAddress = x.ProjectAddress, - ContractNo = x.ContractNo, - }; - - return newItem.FirstOrDefault(); - } - } - #endregion - #region 获取赛鼎月报初始化页面 --2、项目安全工时统计 - /// - /// 获取赛鼎月报初始化页面 --2、项目安全工时统计 - /// - /// - /// - public static Model.SeDinMonthReport2Item getSeDinMonthReportNullPage2(string projectId, string month, string startDate, string endDate) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var newItem = new Model.SeDinMonthReport2Item(); - var monthD = Funs.GetNewDateTime(month); - - var getProject = db.Base_Project.FirstOrDefault(x => x.ProjectId == projectId); - if (getProject != null) - { - #region 从人工时月报 取值 - ////// 人工时月报 - //var getProjectMonthReport = from x in db.SitePerson_MonthReport where x.ProjectId == projectId select x; - //if (getProjectMonthReport.Count() > 0 && monthD.HasValue) - //{ - // ////人工时月报明细 - // var getMonthReportDetail = from x in db.SitePerson_MonthReportDetail - // join y in getProjectMonthReport on x.MonthReportId equals y.MonthReportId - // select x; - // ///// 项目累计安全人工时 - // newItem.ProjectWorkTime = getMonthReportDetail.Sum(x => x.PersonWorkTime) ?? 0; - // var yearMonthReport = from x in getProjectMonthReport - // where x.CompileDate.Value.Year == monthD.Value.Year && x.CompileDate.Value.Month <= monthD.Value.Month - // select x; - // if (yearMonthReport.Count() > 0) - // { - // foreach (var item in yearMonthReport) - // { - // ////年度累计安全人工时 - // newItem.YearWorkTime += getMonthReportDetail.Where(x => x.MonthReportId == item.MonthReportId).Sum(x => x.PersonWorkTime) ?? 0; - // } - // //// 安全生产人工时 - // newItem.SafeWorkTime = newItem.YearWorkTime ?? 0; - // var monthMonthReport = yearMonthReport.FirstOrDefault(x => x.CompileDate.Value.Month == monthD.Value.Month); - // if (monthMonthReport != null) - // { - // ////当月安全人工时 - // newItem.MonthWorkTime += getMonthReportDetail.Where(x => x.MonthReportId == monthMonthReport.MonthReportId).Sum(x => x.PersonWorkTime) ?? 0; - // } - // } - //} - - #endregion - - newItem.StartDate = string.Format("{0:yyyy-MM-dd}", getProject.StartDate); - newItem.EndDate = endDate; - var startDateD = Funs.GetNewDateTime(startDate); - var endDateD = Funs.GetNewDateTime(endDate); - var getAllNum = db.SitePerson_PersonInOutNumber.Where(x => x.ProjectId == projectId); - var getMaxWorkHours = getAllNum.Where(x => x.InOutDate >= startDateD && x.InOutDate < endDateD).Max(x => x.WorkHours); - ///// 项目累计安全人工时 - newItem.ProjectWorkTime = getMaxWorkHours ?? 0; - //// 安全生产人工时 - newItem.SafeWorkTime = getMaxWorkHours ?? 0; - var getLastMonWorkHours = getAllNum.Where(x => x.InOutDate < startDateD).Max(x => x.WorkHours); - ////当月安全人工时 - newItem.MonthWorkTime = newItem.ProjectWorkTime - (getLastMonWorkHours ?? 0); - if (newItem.MonthWorkTime < 0) - { - newItem.MonthWorkTime = 0; - } - var getLastYearWorkHours = getAllNum.Where(x => x.InOutDate.Year == (startDateD.Value.Year - 1)).Max(x => x.WorkHours); - ////年度累计安全人工时 - newItem.YearWorkTime = newItem.ProjectWorkTime - (getLastYearWorkHours ?? 0); - if (newItem.YearWorkTime < 0) - { - newItem.YearWorkTime = 0; - } - } - return newItem; - } - } - #endregion - #region 获取赛鼎月报初始化页面 --3、项目HSE事故、事件统计 - /// - /// 获取赛鼎月报初始化页面 --3、项目HSE事故、事件统计 - /// - /// - /// - public static Model.SeDinMonthReportItem getSeDinMonthReportNullPage3(string projectId, string month, string startDate, string endDate) - { - var nowDate = System.DateTime.Now; - Model.SeDinMonthReportItem newItem = new Model.SeDinMonthReportItem - { - ProjectId = projectId, - SeDinMonthReport3Item = getSeDinMonthReport3ItemNull(projectId, month, startDate, endDate) - }; - return newItem; - } - - /// - /// 获取项目HSE事故、事件统计明细 - /// - /// - public static List getSeDinMonthReport3ItemNull(string projectId, string month, string startDate, string endDate) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var startDateD = Funs.GetNewDateTime(startDate); - var endDateD = Funs.GetNewDateTime(endDate); - List getLists = new List(); - var getAccidentReportTypes = from x in db.Sys_Const - where x.GroupId == ConstValue.Group_AccidentReportRegistration - select x; - var getAccident = from x in db.Accident_AccidentReport - where x.ProjectId == projectId - select x; - var getMonthAccident = from x in getAccident - where x.AccidentDate >= startDateD && x.AccidentDate < endDateD - select x; - foreach (var item in getAccidentReportTypes) - { - var getTAccident = getAccident.Where(x => x.AccidentTypeId == item.ConstValue); - Model.SeDinMonthReport3Item newItem = new Model.SeDinMonthReport3Item(); - if (item.SortIndex <= 4) - { - newItem.BigType = "人身伤害事故"; - } - newItem.AccidentType = item.ConstText; - newItem.SortIndex = item.SortIndex; - - newItem.MonthTimes = getTAccident.Count(); - newItem.TotalTimes = getTAccident.Count(); - newItem.MonthLossTime = getTAccident.Sum(x => x.WorkingHoursLoss) ?? 0; - newItem.TotalLossTime = getTAccident.Sum(x => x.WorkingHoursLoss) ?? 0; - newItem.MonthMoney = getTAccident.Sum(x => x.EconomicLoss) ?? 0; - newItem.TotalMoney = getTAccident.Sum(x => x.EconomicLoss) ?? 0; - newItem.MonthPersons = getTAccident.Sum(x => x.PeopleNum) ?? 0; - newItem.TotalPersons = getTAccident.Sum(x => x.PeopleNum) ?? 0; - getLists.Add(newItem); - } - - return getLists.OrderBy(x => x.SortIndex).ToList(); - } - } - #endregion - #region 获取赛鼎月报初始化页面 --4、本月人员投入情况 - /// - /// 获取赛鼎月报初始化页面 --4、本月人员投入情况 - /// - /// - /// - public static List getSeDinMonthReportNullPage4(string projectId, string month, string startDate, string endDate) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var startDateD = Funs.GetNewDateTime(startDate); - var endDateD = Funs.GetNewDateTime(endDate); - List getLists = new List(); - var getUnits = from x in db.Base_Unit - join y in db.Project_ProjectUnit on x.UnitId equals y.UnitId - where y.ProjectId == projectId - orderby x.UnitName - select x; - var getPersons = (from x in db.SitePerson_Person - where x.ProjectId == projectId && x.InTime <= startDateD && (!x.OutTime.HasValue) - select x).ToList(); - foreach (var item in getUnits) - { - Model.SeDinMonthReport4Item newItem = new Model.SeDinMonthReport4Item - { - UnitName = item.UnitName, - SafeManangerNum = getPersonsNum(getPersons, item.UnitId, "1"), - OtherManangerNum = getPersonsNum(getPersons, item.UnitId, "2"), - SpecialWorkerNum = getPersonsNum(getPersons, item.UnitId, "3"), - GeneralWorkerNum = getPersonsNum(getPersons, item.UnitId, "4"), - TotalNum = getPersonsNum(getPersons, item.UnitId, "5"), - }; - getLists.Add(newItem); - } - - return getLists.ToList(); - } - } - #region 获取人员数量 - /// - /// 获取人员数量 - /// - /// - /// - /// - public static int getPersonsNum(List getPersons, string unitId, string type) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - int num = 0; - var getUnitPersons = getPersons.Where(x => x.UnitId == unitId); - if (getUnitPersons.Count() > 0) - { - if (type == "1") - { - num = (from x in getUnitPersons - join y in db.Base_WorkPost on x.WorkPostId equals y.WorkPostId - where y.IsHsse == true - select x).Count(); - } - else if (type == "2") - { - num = (from x in getUnitPersons - join y in db.Base_WorkPost on x.WorkPostId equals y.WorkPostId - where (y.IsHsse == false || !y.IsHsse.HasValue) && (y.PostType == "1" || y.PostType == "4") - select x).Count(); - } - else if (type == "3") - { - num = (from x in getUnitPersons - join y in db.Base_WorkPost on x.WorkPostId equals y.WorkPostId - where y.PostType == "2" - select x).Count(); - } - else if (type == "4") - { - num = (from x in getUnitPersons - join y in db.Base_WorkPost on x.WorkPostId equals y.WorkPostId - where y.PostType == "3" - select x).Count(); - } - else if (type == "5") - { - num = getUnitPersons.Count(); - } - } - return num; - } - } - #endregion - - /// - /// 获取赛鼎公司人员信息统计 - /// - /// - /// - /// - /// - /// - public static Model.SeDinMonthReport4OtherItem getSeDinMonthReportNullPage4Other(string projectId, string month, string startDate, string endDate) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var startDateD = Funs.GetNewDateTime(startDate); - var endDateD = Funs.GetNewDateTime(endDate); - var getPersons = from x in db.SitePerson_Person - where x.ProjectId == projectId && x.InTime <= startDateD && (!x.OutTime.HasValue) && x.UnitId ==Const.UnitId_XJYJ - select x; - Model.SeDinMonthReport4OtherItem newItem = new Model.SeDinMonthReport4OtherItem - { - FormalNum = getPersons.Where(x=>(x.IsForeign==false || x.IsForeign == null) && (x.IsOutside == false || x.IsOutside == null)).Count(), - ForeignNum = getPersons.Where(x=>x.IsForeign ==true).Count(), - OutsideNum = getPersons.Where(x => x.IsOutside == true).Count(), - //ManagerNum = getPersons.Where(x => x.IsOutside == true).Count(), - TotalNum = getPersons.Count(), - }; - newItem.ManagerNum = (from x in getPersons - join y in db.Base_WorkPost on x.WorkPostId equals y.WorkPostId - where y.IsHsse == true - select x).Count(); - return newItem; - } - } - #endregion - #region 获取赛鼎月报初始化页面 --5、本月大型、特种设备投入情况 - /// - /// 获取赛鼎月报初始化页面 --5、本月大型、特种设备投入情况 - /// - /// - /// - public static List getSeDinMonthReportNullPage5(string projectId, string month, string startDate, string endDate) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var startDateD = Funs.GetNewDateTime(startDate); - var endDateD = Funs.GetNewDateTime(endDate); - List getLists = new List(); - var getUnits = from x in db.Base_Unit - join y in db.Project_ProjectUnit on x.UnitId equals y.UnitId - where y.ProjectId == projectId - orderby x.UnitName - select x; - var getAll = from x in db.QualityAudit_EquipmentQuality - where x.ProjectId == projectId && x.InDate <= endDateD && (!x.OutDate.HasValue || x.OutDate > startDateD) - select x; - foreach (var item in getUnits) - { - var getUAll = from x in getAll - join y in db.Base_SpecialEquipment on x.SpecialEquipmentId equals y.SpecialEquipmentId - where x.UnitId == item.UnitId - select new Model.BaseInfoItem { BaseInfoId = x.EquipmentQualityId, BaseInfoCode = y.SpecialEquipmentCode, BaseInfoName = y.SpecialEquipmentName }; - int T01 = getUAll.Where(x => x.BaseInfoName == "汽车吊").Count(); - int T02 = getUAll.Where(x => x.BaseInfoName == "履带吊").Count(); - int T03 = getUAll.Where(x => x.BaseInfoName == "塔吊").Count(); - int T04 = getUAll.Where(x => x.BaseInfoName == "门式起重机").Count(); - int T05 = getUAll.Where(x => x.BaseInfoName == "升降机").Count(); - int T06 = getUAll.Where(x => x.BaseInfoName == "叉车").Count(); - int D01 = getUAll.Where(x => x.BaseInfoName == "挖掘机").Count(); - int D02 = getUAll.Where(x => x.BaseInfoName == "装载机").Count(); - int D03 = getUAll.Where(x => x.BaseInfoName == "拖板车").Count(); - int D04 = getUAll.Where(x => x.BaseInfoName == "桩机").Count(); - int S01 = getUAll.Where(x => x.BaseInfoName == "吊篮").Count(); - Model.SeDinMonthReport5Item newItem = new Model.SeDinMonthReport5Item - { - UnitName = item.UnitName, - T01 = T01, - T02 = T02, - T03 = T03, - T04 = T04, - T05 = T05, - T06 = T06, - D01 = D01, - D02 = D02, - D03 = D03, - D04 = D04, - S01 = S01, - TotalNum = (T01 + T02 +T03 +T04 +T05 +T06+D01 +D02 +D03 +D04 +S01) - }; - getLists.Add(newItem); - } - - return getLists.ToList(); - } - } - #endregion - #region 获取赛鼎月报初始化页面 --6、安全生产费用投入情况 - /// - /// 获取赛鼎月报初始化页面 --6、安全生产费用投入情况 - /// - /// - /// - public static Model.SeDinMonthReport6Item getSeDinMonthReportNullPage6(string projectId, string month, string startDate, string endDate) - { - var startDateD = Funs.GetNewDateTime(startDate); - var endDateD = Funs.GetNewDateTime(endDate); - var getLists = new Model.SeDinMonthReport6Item - { - SafetyMonth = 0, - SafetyYear = 0, - SafetyTotal = 0, - LaborMonth = 0, - LaborYear = 0, - LaborTotal = 0, - ProgressMonth = 0, - ProgressYear = 0, - ProgressTotal = 0, - EducationMonth = 0, - EducationYear = 0, - EducationTotal = 0, - SumMonth = 0, - SumYear = 0, - SumTotal = 0, - ContractMonth = 0, - ContractYear = 0, - ContractTotal = 0, - ConstructionCost = 0, - }; - return getLists; - } - #endregion - #region 获取赛鼎月报初始化页面 --7、项目HSE培训统计 - /// - /// 获取赛鼎月报初始化页面 --7、项目HSE培训统计 - /// - /// - /// - public static Model.SeDinMonthReport7Item getSeDinMonthReportNullPage7(string projectId, string month, string startDate, string endDate) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var startDateD = Funs.GetNewDateTime(startDate); - var endDateD = Funs.GetNewDateTime(endDate); - var getTrainRecordAll = from x in db.EduTrain_TrainRecord - where x.ProjectId == projectId - select x; - var getAll = getTrainRecordAll.Where(x => x.TrainTypeId == Const.EntryTrainTypeId); - - var getTrainRecordYear = from x in getTrainRecordAll - where x.TrainStartDate.Value.Year == startDateD.Value.Year - select x; - var getYear = getTrainRecordYear.Where(x => x.TrainTypeId == Const.EntryTrainTypeId); - - var getTrainRecordMon = from x in getTrainRecordYear - where startDateD <= x.TrainStartDate && endDateD > x.TrainStartDate - select x; - var getMon = getTrainRecordMon.Where(x => x.TrainTypeId == Const.EntryTrainTypeId); - - Model.SeDinMonthReport7Item newItem = new Model.SeDinMonthReport7Item - { - EmployeeMontNum = getMon.Count(), - EmployeeYearNum = getYear.Count(), - EmployeeTotalNum = getAll.Count(), - EmployeeMontPerson = getMon.Sum(x => x.TrainPersonNum) ?? 0, - EmployeeYearPerson = getYear.Sum(x => x.TrainPersonNum) ?? 0, - EmployeeTotalPerson = getAll.Sum(x => x.TrainPersonNum) ?? 0 - }; - - newItem.SpecialMontNum = getTrainRecordMon.Count() - newItem.EmployeeMontNum; - newItem.SpecialYearNum = getTrainRecordYear.Count() - newItem.EmployeeYearNum; - newItem.SpecialTotalNum = getTrainRecordAll.Count() - newItem.EmployeeTotalNum; - var getmp = getTrainRecordMon.Sum(x => x.TrainPersonNum) ?? 0; - newItem.SpecialMontPerson = getmp - newItem.EmployeeMontPerson; - var getyp = getTrainRecordYear.Sum(x => x.TrainPersonNum) ?? 0; - newItem.SpecialYearPerson = getyp - newItem.EmployeeYearPerson; - var getp = getTrainRecordAll.Sum(x => x.TrainPersonNum) ?? 0; - newItem.SpecialTotalPerson = getp - newItem.EmployeeTotalPerson; - - return newItem; - } - } - #endregion - #region 获取赛鼎月报初始化页面 --8、项目HSE会议统计 - /// - /// 获取赛鼎月报初始化页面 --8、项目HSE会议统计 - /// - /// - /// - public static Model.SeDinMonthReport8Item getSeDinMonthReportNullPage8(string projectId, string month, string startDate, string endDate) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var startDateD = Funs.GetNewDateTime(startDate); - var endDateD = Funs.GetNewDateTime(endDate); - Model.SeDinMonthReport8Item newItem = new Model.SeDinMonthReport8Item(); - //// 周例会 - var getAllWeeks = from x in db.Meeting_WeekMeeting where x.ProjectId == projectId select x; - var getMontWeeks = getAllWeeks.Where(x => x.WeekMeetingDate >= startDateD && x.WeekMeetingDate < endDateD); - newItem.WeekMontNum = getMontWeeks.Count(); - newItem.WeekTotalNum = getAllWeeks.Count(); - newItem.WeekMontPerson = getMontWeeks.Sum(x => x.AttentPersonNum) ?? 0; - /// 月例会 - var getAllMonths = from x in db.Meeting_MonthMeeting where x.ProjectId == projectId select x; - var getMontMonths = getAllMonths.Where(x => x.MonthMeetingDate >= startDateD && x.MonthMeetingDate < endDateD); - newItem.MonthMontNum = getMontMonths.Count(); - newItem.MonthTotalNum = getAllMonths.Count(); - newItem.MonthMontPerson = getMontMonths.Sum(x => x.AttentPersonNum) ?? 0; - /// 专题会议 - var getAllSpecials = from x in db.Meeting_SpecialMeeting where x.ProjectId == projectId select x; - var getMontSpecials = getAllSpecials.Where(x => x.SpecialMeetingDate >= startDateD && x.SpecialMeetingDate < endDateD); - newItem.SpecialMontNum = getMontSpecials.Count(); - newItem.SpecialTotalNum = getAllSpecials.Count(); - newItem.SpecialMontPerson = getMontSpecials.Sum(x => x.AttentPersonNum) ?? 0; - ////班前会 - newItem.SeDinMonthReport8ItemItem = getSeDinMonthReport8ItemNull(projectId, month, startDateD, endDateD); - return newItem; - } - } - - /// - /// 获取项目HSE会议统计明细 - /// - /// - public static List getSeDinMonthReport8ItemNull(string projectId, string month, DateTime? startDateD, DateTime? endDateD) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - List getLists = new List(); - var getUnits = from x in db.Base_Unit - join y in db.Project_ProjectUnit on x.UnitId equals y.UnitId - where y.ProjectId == projectId - orderby x.UnitName - select x; - var getClassMeets = from x in db.Meeting_ClassMeeting - where x.ProjectId == projectId && x.ClassMeetingDate >= startDateD && x.ClassMeetingDate < endDateD - select x; - foreach (var item in getUnits) - { - var getTeamGroups = from x in db.ProjectData_TeamGroup - where x.ProjectId == projectId && x.UnitId == item.UnitId - select x; - var getUnitClassMeets = getClassMeets.Where(x => x.UnitId == item.UnitId); - foreach (var itemT in getTeamGroups) - { - var getTClassMeets = getUnitClassMeets.Where(x => x.TeamGroupId == itemT.TeamGroupId); - Model.SeDinMonthReport8ItemItem newItemT = new Model.SeDinMonthReport8ItemItem - { - UnitName = item.UnitName, - TeamName = itemT.TeamGroupName, - ClassNum = getTClassMeets.Count(), - ClassPersonNum = getTClassMeets.Sum(x => x.AttentPersonNum) ?? 0 - }; - getLists.Add(newItemT); - } - - var getTClassMeetNulls = getUnitClassMeets.Where(x => x.TeamGroupId == null); - if (getTClassMeetNulls.Count() > 0) - { - Model.SeDinMonthReport8ItemItem newItemNT = new Model.SeDinMonthReport8ItemItem - { - UnitName = item.UnitName, - TeamName = "/", - ClassNum = getTClassMeetNulls.Count(), - ClassPersonNum = getTClassMeetNulls.Sum(x => x.AttentPersonNum) ?? 0 - }; - getLists.Add(newItemNT); - } - } - - return getLists.OrderBy(x => x.UnitName).ToList(); - } - } - #endregion - #region 获取赛鼎月报初始化页面 --9、项目HSE检查统计 - /// - /// 获取赛鼎月报初始化页面 --9、项目HSE检查统计 - /// - /// - /// - public static Model.SeDinMonthReport9Item getSeDinMonthReportNullPage9(string projectId, string month, string startDate, string endDate) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var startDateD = Funs.GetNewDateTime(startDate); - var endDateD = Funs.GetNewDateTime(endDate); - var getHazardRegistersAll = from x in db.HSSE_Hazard_HazardRegister - where x.ProjectId == projectId - select x; - var getHazardRegistersYear = from x in getHazardRegistersAll - where x.CheckTime.Value.Year == endDateD.Value.Year - select x; - var getHazardRegistersMon = from x in getHazardRegistersYear - where startDateD <= x.CheckTime && endDateD > x.CheckTime - select x; - - var getCheckSpecialAll = from x in db.Check_CheckSpecial - where x.ProjectId == projectId - select x; - var getCheckSpecialYear = from x in getCheckSpecialAll - where x.CheckTime.Value.Year == endDateD.Value.Year - select x; - var getCheckSpecialMon = from x in getCheckSpecialYear - where startDateD <= x.CheckTime && endDateD > x.CheckTime - select x; - - var getCheckColligationAll = from x in db.Check_CheckColligation - where x.ProjectId == projectId - select x; - var getCheckColligationYear = from x in getCheckColligationAll - where x.CheckTime.Value.Year == endDateD.Value.Year - select x; - var getCheckColligationMon = from x in getCheckColligationYear - where startDateD <= x.CheckTime && endDateD > x.CheckTime - select x; - - Model.SeDinMonthReport9Item newItem = new Model.SeDinMonthReport9Item - { - DailyMonth = getHazardRegistersMon.Count(), - DailyYear = getHazardRegistersYear.Count(), - DailyTotal = getHazardRegistersAll.Count(), - WeekMonth = 0, - WeekYear = 0, - WeekTotal = 0, - SpecialMonth = getCheckSpecialMon.Count(), - SpecialYear = getCheckSpecialYear.Count(), - SpecialTotal = getCheckSpecialAll.Count(), - MonthlyMonth = getCheckColligationMon.Count(), - MonthlyYear = getCheckColligationYear.Count(), - MonthlyTotal = getCheckColligationAll.Count(), - SeDinMonthReport9ItemRectification = getSeDinMonthReport9ItemRectificationNull(projectId, month, startDate, endDate), - SeDinMonthReport9ItemSpecial = getSeDinMonthReport9ItemSpecialNull(getCheckSpecialAll.ToList(), getCheckSpecialYear.ToList(), getCheckSpecialMon.ToList()), - SeDinMonthReport9ItemStoppage = getSeDinMonthReport9ItemStoppageNull(projectId, month, startDate, endDate), - }; - return newItem; - } - } - - /// - /// 获取隐患整改单 - /// - /// - public static List getSeDinMonthReport9ItemRectificationNull(string projectId, string month, string startDate, string endDate) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var startDateD = Funs.GetNewDateTime(startDate); - var endDateD = Funs.GetNewDateTime(endDate); - List getLists = new List(); - var getUnits = from x in db.Base_Unit - join y in db.Project_ProjectUnit on x.UnitId equals y.UnitId - where y.ProjectId == projectId && y.UnitType == Const.ProjectUnitType_2 - orderby x.UnitName - select x; - var getAll = from x in db.Check_RectifyNotices where x.ProjectId == projectId select x; - var getMon = from x in getAll where x.CheckedDate >= startDateD && x.CheckedDate < endDateD select x; - foreach (var item in getUnits) - { - var getUAll = getAll.Where(x => x.UnitId == item.UnitId); - var getUMon = getMon.Where(x => x.UnitId == item.UnitId); - Model.SeDinMonthReport9ItemRectification newItem = new Model.SeDinMonthReport9ItemRectification - { - UnitName = item.UnitName, - IssuedMonth = getUMon.Where(x=>x.HiddenHazardType == "1" || x.HiddenHazardType == null).Count(), - IssuedMonthLarge = getUMon.Where(x => x.HiddenHazardType == "2" ).Count(), - IssuedMonthSerious = getUMon.Where(x => x.HiddenHazardType == "3" ).Count(), - RectificationMoth = getUMon.Where(x => (x.HiddenHazardType == "1" || x.HiddenHazardType == null) && x.States == Const.State_5).Count(), - RectificationMothLarge = getUMon.Where(x => x.HiddenHazardType == "2" && x.States == Const.State_5).Count(), - RectificationMothSerious = getUMon.Where(x => x.HiddenHazardType == "3" && x.States == Const.State_5).Count(), - IssuedTotal = getUAll.Where(x => x.HiddenHazardType == "1" || x.HiddenHazardType == null).Count(), - IssuedTotalLarge = getUAll.Where(x => x.HiddenHazardType == "2").Count(), - IssuedTotalSerious = getUAll.Where(x => x.HiddenHazardType == "3").Count(), - RectificationTotal = getUAll.Where(x => (x.HiddenHazardType == "1" || x.HiddenHazardType == null) && x.States == Const.State_5).Count(), - RectificationTotalLarge = getUAll.Where(x => x.HiddenHazardType == "2" && x.States == Const.State_5).Count(), - RectificationTotalSerious = getUAll.Where(x => x.HiddenHazardType == "3" && x.States == Const.State_5).Count(), - }; - getLists.Add(newItem); - } - return getLists.OrderBy(x => x.UnitName).ToList(); - } - } - - /// - /// 获取专项检查 - /// - /// - public static List getSeDinMonthReport9ItemSpecialNull(List getCheckSpecialAll, List getCheckSpecialYear, List getCheckSpecialMon) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - List getLists = new List(); - var getUnits = APIResourcesService.getCheckItemSetListBySupCheckItemId("0", "2"); - foreach (var item in getUnits) - { - var getUAll = getCheckSpecialAll.Where(x => x.CheckItemSetId == item.ResourcesId); - var getUYear = getCheckSpecialYear.Where(x => x.CheckItemSetId == item.ResourcesId); - var getUMon = getCheckSpecialMon.Where(x => x.CheckItemSetId == item.ResourcesId); - Model.SeDinMonthReport9ItemSpecial newItem = new Model.SeDinMonthReport9ItemSpecial - { - TypeName = item.ResourcesName, - CheckMonth = getUMon.Count(), - CheckYear = getUYear.Count(), - CheckTotal = getUAll.Count(), - }; - getLists.Add(newItem); - } - - return getLists.ToList(); - } - } - - /// - /// 获取停工令 - /// - /// - public static List getSeDinMonthReport9ItemStoppageNull(string projectId, string month, string startDate, string endDate) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var startDateD = Funs.GetNewDateTime(startDate); - var endDateD = Funs.GetNewDateTime(endDate); - List getLists = new List(); - var getUnits = from x in db.Base_Unit - join y in db.Project_ProjectUnit on x.UnitId equals y.UnitId - where y.ProjectId == projectId && y.UnitType == Const.ProjectUnitType_2 - orderby x.UnitName - select x; - var getAll = from x in db.Check_PauseNotice where x.ProjectId == projectId select x; - var getMon = getAll.Where(x => x.PauseTime >= startDateD && x.PauseTime < endDateD); - foreach (var item in getUnits) - { - var getUAll = getAll.Where(x => x.UnitId == item.UnitId); - - Model.SeDinMonthReport9ItemStoppage newItem = new Model.SeDinMonthReport9ItemStoppage - { - UnitName = item.UnitName, - IssuedMonth = getMon.Count(), - StoppageMonth = 0, - IssuedTotal = getAll.Count(), - StoppageTotal = 0, - }; - getLists.Add(newItem); - } - - return getLists.OrderBy(x => x.UnitName).ToList(); - } - } - #endregion - #region 获取赛鼎月报初始化页面 --10、项目奖惩情况统计 - /// - /// 获取赛鼎月报初始化页面 --10、项目奖惩情况统计 - /// - /// - /// - public static Model.SeDinMonthReport10Item getSeDinMonthReportNullPage10(string projectId, string month, string startDate, string endDate) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var startDateD = Funs.GetNewDateTime(startDate); - var endDateD = Funs.GetNewDateTime(endDate); - - var getIncentiveNoticeAll = from x in db.Check_IncentiveNotice where x.ProjectId == projectId select x; - var getIncentiveNoticeAll1 = getIncentiveNoticeAll.Where(x => x.RewardType == "1"); - var getIncentiveNoticeAll2 = getIncentiveNoticeAll.Where(x => x.RewardType == "2"); - var getIncentiveNoticeAll3 = getIncentiveNoticeAll.Where(x => x.RewardType == "3"); - var getIncentiveNoticeMon = getIncentiveNoticeAll.Where(x => x.IncentiveDate >= startDateD && x.IncentiveDate < endDateD); - var getIncentiveNoticeMon1 = getIncentiveNoticeMon.Where(x => x.RewardType == "1"); - var getIncentiveNoticeMon2 = getIncentiveNoticeMon.Where(x => x.RewardType == "2"); - var getIncentiveNoticeMon3 = getIncentiveNoticeMon.Where(x => x.RewardType == "3"); - - var getPunishNoticeAll = from x in db.Check_PunishNotice where x.ProjectId == projectId select x; - var getPunishNoticeAll1 = getPunishNoticeAll.Where(x => x.PunishName == "事故责任处罚"); - var getPunishNoticeAll2 = getPunishNoticeAll.Where(x => x.PunishName == "违章处罚"); - var getPunishNoticeAll3 = getPunishNoticeAll.Where(x => x.PunishName == "安全管理处罚"); - var getPunishNoticeMon = getPunishNoticeAll.Where(x => x.PunishNoticeDate >= startDateD && x.PunishNoticeDate < endDateD); - var getPunishNoticeMon1 = getPunishNoticeMon.Where(x => x.PunishName == "事故责任处罚"); - var getPunishNoticeMon2 = getPunishNoticeMon.Where(x => x.PunishName == "违章处罚"); - var getPunishNoticeMon3 = getPunishNoticeMon.Where(x => x.PunishName == "安全管理处罚"); - - var getLists = new Model.SeDinMonthReport10Item - { - SafeMonthNum = getIncentiveNoticeMon1.Count(), - SafeTotalNum = getIncentiveNoticeAll1.Count(), - SafeMonthMoney = getIncentiveNoticeMon1.Sum(x => x.IncentiveMoney) ?? 0, - SafeTotalMoney = getIncentiveNoticeAll1.Sum(x => x.IncentiveMoney) ?? 0, - HseMonthNum = getIncentiveNoticeMon2.Count(), - HseTotalNum = getIncentiveNoticeAll2.Count(), - HseMonthMoney = getIncentiveNoticeMon2.Sum(x => x.IncentiveMoney) ?? 0, - HseTotalMoney = getIncentiveNoticeAll2.Sum(x => x.IncentiveMoney) ?? 0, - ProduceMonthNum = getIncentiveNoticeMon3.Count(), - ProduceTotalNum = getIncentiveNoticeAll3.Count(), - ProduceMonthMoney = getIncentiveNoticeMon3.Sum(x => x.IncentiveMoney) ?? 0, - ProduceTotalMoney = getIncentiveNoticeAll3.Sum(x => x.IncentiveMoney) ?? 0, - - AccidentMonthNum = getPunishNoticeMon1.Count(), - AccidentTotalNum = getPunishNoticeAll1.Count(), - AccidentMonthMoney = getPunishNoticeMon1.Sum(x => x.PunishMoney) ?? 0, - AccidentTotalMoney = getPunishNoticeAll1.Sum(x => x.PunishMoney) ?? 0, - ViolationMonthNum = getPunishNoticeMon2.Count(), - ViolationTotalNum = getPunishNoticeAll2.Count(), - ViolationMonthMoney = getPunishNoticeMon2.Sum(x => x.PunishMoney) ?? 0, - ViolationTotalMoney = getPunishNoticeAll2.Sum(x => x.PunishMoney) ?? 0, - ManageMonthNum = getPunishNoticeMon3.Count(), - ManageTotalNum = getPunishNoticeAll3.Count(), - ManageMonthMoney = getPunishNoticeMon3.Sum(x => x.PunishMoney) ?? 0, - ManageTotalMoney = getPunishNoticeAll3.Sum(x => x.PunishMoney) ?? 0, - }; - return getLists; - } - } - #endregion - #region 获取赛鼎月报初始化页面 --11、项目危大工程施工情况 - /// - /// 获取赛鼎月报初始化页面 --11、项目危大工程施工情况 - /// - /// - /// - public static Model.SeDinMonthReport11Item getSeDinMonthReportNullPage11(string projectId, string month, string startDate, string endDate) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var startDateD = Funs.GetNewDateTime(startDate); - var endDateD = Funs.GetNewDateTime(endDate); - var getLargerHazardAll = from x in db.Solution_LargerHazard where x.ProjectId == projectId select x; - var getMont = getLargerHazardAll.Where(x => x.ExpectedTime >= startDateD && x.ExpectedTime < endDateD); - - var getAll1 = getLargerHazardAll.Where(x => x.IsArgument == false); - var getMont1 = getMont.Where(x => x.IsArgument == false); - - var getAll2 = getLargerHazardAll.Where(x => x.IsArgument == true); - var getMont2 = getMont.Where(x => x.IsArgument == true); - var getLists = new Model.SeDinMonthReport11Item - { - RiskWorkNum = getMont1.Count(), - RiskFinishedNum = getAll1.Count() - getMont1.Count(), - RiskWorkNext = "", - LargeWorkNum = getMont2.Count(), - LargeFinishedNum = getAll2.Count() - getMont2.Count(), - LargeWorkNext = "", - }; - return getLists; - } - } - #endregion - #region 获取赛鼎月报初始化页面 --12、项目应急演练情况 - /// - /// 获取赛鼎月报初始化页面 --12、项目应急演练情况 - /// - /// - /// - public static Model.SeDinMonthReport12Item getSeDinMonthReportNullPage12(string projectId, string month, string startDate, string endDate) - { - var startDateD = Funs.GetNewDateTime(startDate); - var endDateD = Funs.GetNewDateTime(endDate); - var getLists = new Model.SeDinMonthReport12Item - { - MultipleSiteInput = 0, - MultipleSitePerson = 0, - MultipleSiteNum = 0, - MultipleSiteTotalNum = 0, - MultipleSiteNext = "", - MultipleDesktopInput = 0, - MultipleDesktopPerson = 0, - MultipleDesktopNum = 0, - MultipleDesktopTotalNum = 0, - MultipleDesktopNext = "", - SingleSiteInput = 0, - SingleSitePerson = 0, - SingleSiteNum = 0, - SingleSiteTotalNum = 0, - SingleSiteNext = "", - SingleDesktopInput = 0, - SingleDesktopPerson = 0, - SingleDesktopNum = 0, - SingleDesktopTotalNum = 0, - SingleDesktopNext = "", - }; - return getLists; - } - #endregion - #endregion - - #region 获取赛鼎月报详细 - #region 获取赛鼎月报详细 --0、封面 - /// - /// 获取赛鼎月报详细 - /// - /// - /// - /// - public static Model.SeDinMonthReportItem getSeDinMonthReport0ById(string projectId, string month) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var monthD = Funs.GetNewDateTime(month); - Model.SeDinMonthReportItem getInfo = new Model.SeDinMonthReportItem(); - if (monthD.HasValue) - { - getInfo = (from x in db.SeDin_MonthReport - where x.ProjectId == projectId && x.ReporMonth.Value.Year == monthD.Value.Year && x.ReporMonth.Value.Month == monthD.Value.Month - select new Model.SeDinMonthReportItem - { - MonthReportId = x.MonthReportId, - ProjectId = x.ProjectId, - DueDate = string.Format("{0:yyyy-MM-dd}", x.DueDate), - StartDate = string.Format("{0:yyyy-MM-dd}", x.StartDate), - EndDate = string.Format("{0:yyyy-MM-dd}", x.EndDate), - ReporMonth = string.Format("{0:yyyy-MM}", x.ReporMonth), - CompileManId = x.CompileManId, - CompileManName = db.Sys_User.First(u => u.UserId == x.CompileManId).UserName, - AuditManId = x.AuditManId, - AuditManName = db.Sys_User.First(u => u.UserId == x.AuditManId).UserName, - ApprovalManId = x.ApprovalManId, - ApprovalManName = db.Sys_User.First(u => u.UserId == x.ApprovalManId).UserName, - States = x.States, - NextManId = x.NextManId, - NextManName = db.Sys_User.First(u => u.UserId == x.NextManId).UserName, - //ThisSummary = x.ThisSummary, - //NextPlan = x.NextPlan, - }).FirstOrDefault(); - } - - return getInfo; - } - } - #endregion - #region 获取赛鼎月报详细 --1、项目信息 - /// - /// 获取赛鼎月报详细 --1、项目信息 - /// - /// - /// - /// - public static Model.SeDinMonthReport1Item getSeDinMonthReport1ById(string projectId, string month) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var monthD = Funs.GetNewDateTime(month); - Model.SeDinMonthReport1Item getInfo = new Model.SeDinMonthReport1Item(); - if (monthD.HasValue) - { - getInfo = (from x in db.SeDin_MonthReport1 - join y in db.SeDin_MonthReport on x.MonthReportId equals y.MonthReportId - where y.ProjectId == projectId && y.ReporMonth.Value.Year == monthD.Value.Year && y.ReporMonth.Value.Month == monthD.Value.Month - select new Model.SeDinMonthReport1Item - { - MonthReport1Id = x.MonthReport1Id, - MonthReportId = x.MonthReportId, - ProjectCode = x.ProjectCode, - ProjectName = x.ProjectName, - ProjectType = x.ProjectType, - StartDate = string.Format("{0:yyyy-MM-dd}", x.StartDate), - EndDate = string.Format("{0:yyyy-MM-dd}", x.EndDate), - ProjectManager = x.ProjectManager, - HsseManager = x.HsseManager, - ContractAmount = x.ContractAmount, - ConstructionStage = x.ConstructionStage, - ProjectAddress = x.ProjectAddress, - }).FirstOrDefault(); - } - return getInfo; - } - } - #endregion - #region 获取赛鼎月报详细 --2、项目安全工时统计 - /// - /// 获取赛鼎月报详细 --2、项目安全工时统计 - /// - /// - /// - /// - public static Model.SeDinMonthReport2Item getSeDinMonthReport2ById(string projectId, string month) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var monthD = Funs.GetNewDateTime(month); - Model.SeDinMonthReport2Item getInfo = new Model.SeDinMonthReport2Item(); - if (monthD.HasValue) - { - getInfo = (from x in db.SeDin_MonthReport2 - join y in db.SeDin_MonthReport on x.MonthReportId equals y.MonthReportId - where y.ProjectId == projectId && y.ReporMonth.Value.Year == monthD.Value.Year && y.ReporMonth.Value.Month == monthD.Value.Month - select new Model.SeDinMonthReport2Item - { - MonthReport2Id = x.MonthReport2Id, - MonthReportId = x.MonthReportId, - MonthWorkTime = x.MonthWorkTime, - YearWorkTime = x.YearWorkTime, - ProjectWorkTime = x.ProjectWorkTime, - TotalLostTime = x.TotalLostTime, - MillionLossRate = x.MillionLossRate, - TimeAccuracyRate = x.TimeAccuracyRate, - StartDate = string.Format("{0:yyyy-MM-dd}", x.StartDate), - EndDate = string.Format("{0:yyyy-MM-dd}", x.EndDate), - SafeWorkTime = x.SafeWorkTime, - }).FirstOrDefault(); - } - return getInfo; - } - } - #endregion - #region 获取赛鼎月报详细 --3、项目HSE事故、事件统计 - /// - /// 获取赛鼎月报详细 - /// - /// - /// - /// - public static Model.SeDinMonthReportItem getSeDinMonthReport3ById(string projectId, string month) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var monthD = Funs.GetNewDateTime(month); - Model.SeDinMonthReportItem getInfo = new Model.SeDinMonthReportItem(); - if (monthD.HasValue) - { - getInfo = (from x in db.SeDin_MonthReport - where x.ProjectId == projectId && x.ReporMonth.Value.Year == monthD.Value.Year && x.ReporMonth.Value.Month == monthD.Value.Month - select new Model.SeDinMonthReportItem - { - MonthReportId = x.MonthReportId, - ProjectId = x.ProjectId, - AccidentsSummary = x.AccidentsSummary, - SeDinMonthReport3Item = getSeDinMonthReport3Item(x.MonthReportId), - }).FirstOrDefault(); - } - return getInfo; - } - } - - /// - /// 获取项目HSE事故、事件统计明细 - /// - /// - public static List getSeDinMonthReport3Item(string monthReportId) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var getInfo = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReportId - orderby x.SortIndex - select new Model.SeDinMonthReport3Item - { - BigType = x.BigType, - AccidentType = x.AccidentType, - SortIndex = x.SortIndex, - MonthTimes = x.MonthTimes, - TotalTimes = x.TotalTimes, - MonthLossTime = x.MonthLossTime, - TotalLossTime = x.TotalLossTime, - MonthMoney = x.MonthMoney, - TotalMoney = x.TotalMoney, - MonthPersons = x.MonthPersons, - TotalPersons = x.TotalPersons, - }; - return getInfo.ToList(); - } - } - #endregion - #region 获取赛鼎月报详细 --4、本月人员投入情况 - /// - /// 获取赛鼎月报详细 --4、本月人员投入情况 - /// - /// - /// - /// - public static List getSeDinMonthReport4ById(string projectId, string month) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var monthD = Funs.GetNewDateTime(month); - List getInfo = new List(); - if (monthD.HasValue) - { - getInfo = (from x in db.SeDin_MonthReport4 - join y in db.SeDin_MonthReport on x.MonthReportId equals y.MonthReportId - where y.ProjectId == projectId && y.ReporMonth.Value.Year == monthD.Value.Year && y.ReporMonth.Value.Month == monthD.Value.Month - orderby x.UnitName - select new Model.SeDinMonthReport4Item - { - MonthReport4Id = x.MonthReport4Id, - MonthReportId = x.MonthReportId, - UnitName = x.UnitName, - SafeManangerNum = x.SafeManangerNum ?? 0, - OtherManangerNum = x.OtherManangerNum ?? 0, - SpecialWorkerNum = x.SpecialWorkerNum ?? 0, - GeneralWorkerNum = x.GeneralWorkerNum ?? 0, - TotalNum = x.TotalNum ?? 0, - }).ToList(); - } - return getInfo; - } - } - - /// - /// 获取赛鼎月报详细 --4、赛鼎公司人员信息统计 - /// - /// - /// - /// - public static Model.SeDinMonthReport4OtherItem getSeDinMonthReport4OtherById(string projectId, string month) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var monthD = Funs.GetNewDateTime(month); - if (monthD.HasValue) - { - return (from x in db.SeDin_MonthReport4Other - join y in db.SeDin_MonthReport on x.MonthReportId equals y.MonthReportId - where y.ProjectId == projectId && y.ReporMonth.Value.Year == monthD.Value.Year && y.ReporMonth.Value.Month == monthD.Value.Month - select new Model.SeDinMonthReport4OtherItem - { - MonthReport4OtherId = x.MonthReport4OtherId, - MonthReportId = x.MonthReportId, - FormalNum = x.FormalNum ?? 0, - ForeignNum = x.ForeignNum ?? 0, - OutsideNum = x.OutsideNum ?? 0, - ManagerNum = x.ManagerNum ?? 0, - TotalNum = x.TotalNum ?? 0, - }).FirstOrDefault(); - } - else - { - return null; - } - } - } - #endregion - #region 获取赛鼎月报详细 --5、本月大型、特种设备投入情况 - /// - /// 获取赛鼎月报详细 --5、本月大型、特种设备投入情况 - /// - /// - /// - /// - public static List getSeDinMonthReport5ById(string projectId, string month) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var monthD = Funs.GetNewDateTime(month); - List getInfo = new List(); - if (monthD.HasValue) - { - getInfo = (from x in db.SeDin_MonthReport5 - join y in db.SeDin_MonthReport on x.MonthReportId equals y.MonthReportId - where y.ProjectId == projectId && y.ReporMonth.Value.Year == monthD.Value.Year && y.ReporMonth.Value.Month == monthD.Value.Month - orderby x.UnitName - select new Model.SeDinMonthReport5Item - { - MonthReport5Id = x.MonthReport5Id, - MonthReportId = x.MonthReportId, - UnitName = x.UnitName, - T01 = x.T01 ?? 0, - T02 = x.T02 ?? 0, - T03 = x.T03 ?? 0, - T04 = x.T04 ?? 0, - T05 = x.T05 ?? 0, - T06 = x.T06 ?? 0, - D01 = x.D01 ?? 0, - D02 = x.D02 ?? 0, - D03 = x.D03 ?? 0, - D04 = x.D04 ?? 0, - S01 = x.S01 ?? 0, - TotalNum=(x.T01 + x.T02 + x.T03 + x.T04 + x.T05 + x.T06 - + x.D01 + x.D02 + x.D03 + x.D04 + x.S01 ) - }).ToList(); - } - return getInfo; - } - } - #endregion - #region 获取赛鼎月报详细 --6、安全生产费用投入情况 - /// - /// 获取赛鼎月报详细 --6、安全生产费用投入情况 - /// - /// - /// - /// - public static Model.SeDinMonthReport6Item getSeDinMonthReport6ById(string projectId, string month) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var monthD = Funs.GetNewDateTime(month); - Model.SeDinMonthReport6Item getInfo = new Model.SeDinMonthReport6Item(); - if (monthD.HasValue) - { - getInfo = (from x in db.SeDin_MonthReport6 - join y in db.SeDin_MonthReport on x.MonthReportId equals y.MonthReportId - where y.ProjectId == projectId && y.ReporMonth.Value.Year == monthD.Value.Year && y.ReporMonth.Value.Month == monthD.Value.Month - select new Model.SeDinMonthReport6Item - { - MonthReport6Id = x.MonthReport6Id, - MonthReportId = x.MonthReportId, - SafetyMonth = x.SafetyMonth ?? 0, - SafetyYear = x.SafetyYear ?? 0, - SafetyTotal = x.SafetyTotal ?? 0, - LaborMonth = x.LaborMonth ?? 0, - LaborYear = x.LaborYear ?? 0, - LaborTotal = x.LaborTotal ?? 0, - ProgressMonth = x.ProgressMonth ?? 0, - ProgressYear = x.ProgressYear ?? 0, - ProgressTotal = x.ProgressTotal ?? 0, - EducationMonth = x.EducationMonth ?? 0, - EducationYear = x.EducationYear ?? 0, - EducationTotal = x.EducationTotal ?? 0, - SumMonth = x.SumMonth ?? 0, - SumYear = x.SumYear ?? 0, - SumTotal = x.SumTotal ?? 0, - ContractMonth = x.ContractMonth ?? 0, - ContractYear = x.ContractYear ?? 0, - ContractTotal = x.ContractTotal ?? 0, - ConstructionCost = x.ConstructionCost ?? 0, - }).FirstOrDefault(); - } - return getInfo; - } - } - #endregion - #region 获取赛鼎月报详细 --7、项目HSE培训统计 - /// - /// 获取赛鼎月报详细 --7、项目HSE培训统计 - /// - /// - /// - /// - public static Model.SeDinMonthReport7Item getSeDinMonthReport7ById(string projectId, string month) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var monthD = Funs.GetNewDateTime(month); - Model.SeDinMonthReport7Item getInfo = new Model.SeDinMonthReport7Item(); - if (monthD.HasValue) - { - getInfo = (from x in db.SeDin_MonthReport7 - join y in db.SeDin_MonthReport on x.MonthReportId equals y.MonthReportId - where y.ProjectId == projectId && y.ReporMonth.Value.Year == monthD.Value.Year && y.ReporMonth.Value.Month == monthD.Value.Month - select new Model.SeDinMonthReport7Item - { - MonthReport7Id = x.MonthReport7Id, - MonthReportId = x.MonthReportId, - SpecialMontNum = x.SpecialMontNum ?? 0, - SpecialYearNum = x.SpecialYearNum ?? 0, - SpecialTotalNum = x.SpecialTotalNum ?? 0, - SpecialMontPerson = x.SpecialMontPerson ?? 0, - SpecialYearPerson = x.SpecialYearPerson ?? 0, - SpecialTotalPerson = x.SpecialTotalPerson ?? 0, - EmployeeMontNum = x.EmployeeMontNum ?? 0, - EmployeeYearNum = x.EmployeeYearNum ?? 0, - EmployeeTotalNum = x.EmployeeTotalNum ?? 0, - EmployeeMontPerson = x.EmployeeMontPerson ?? 0, - EmployeeYearPerson = x.EmployeeYearPerson ?? 0, - EmployeeTotalPerson = x.EmployeeTotalPerson ?? 0, - }).FirstOrDefault(); - } - return getInfo; - } - } - #endregion - #region 获取赛鼎月报初始化页面 --8、项目HSE会议统计 - /// - /// 获取赛鼎月报初始化页面 --8、项目HSE会议统计 - /// - /// - /// - public static Model.SeDinMonthReport8Item getSeDinMonthReport8ById(string projectId, string month) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var monthD = Funs.GetNewDateTime(month); - Model.SeDinMonthReport8Item getInfo = new Model.SeDinMonthReport8Item(); - if (monthD.HasValue) - { - getInfo = (from x in db.SeDin_MonthReport8 - join y in db.SeDin_MonthReport on x.MonthReportId equals y.MonthReportId - where y.ProjectId == projectId && y.ReporMonth.Value.Year == monthD.Value.Year && y.ReporMonth.Value.Month == monthD.Value.Month - select new Model.SeDinMonthReport8Item - { - MonthReport8Id = x.MonthReport8Id, - MonthReportId = x.MonthReportId, - WeekMontNum = x.WeekMontNum, - WeekTotalNum = x.WeekTotalNum, - WeekMontPerson = x.WeekMontPerson, - MonthMontNum = x.MonthMontNum, - MonthTotalNum = x.MonthTotalNum, - MonthMontPerson = x.MonthMontPerson, - SpecialMontNum = x.SpecialMontNum, - SpecialTotalNum = x.SpecialTotalNum, - SpecialMontPerson = x.SpecialMontPerson, - SeDinMonthReport8ItemItem = getSeDinMonthReport8Item(x.MonthReportId), - }).FirstOrDefault(); - } - return getInfo; - } - } - - /// - /// 获取项目HSE会议统计明细 - /// - /// - public static List getSeDinMonthReport8Item(string monthReportId) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var getInfo = from x in db.SeDin_MonthReport8Item - where x.MonthReportId == monthReportId - orderby x.UnitName - select new Model.SeDinMonthReport8ItemItem - { - MonthReport8ItemId = x.MonthReport8ItemId, - MonthReportId = x.MonthReportId, - UnitName = x.UnitName, - TeamName = x.TeamName, - ClassNum = x.ClassNum, - ClassPersonNum = x.ClassPersonNum, - }; - return getInfo.ToList(); - } - } - #endregion - #region 获取赛鼎月报初始化页面 --9、项目HSE检查统计 - /// - /// 获取赛鼎月报初始化页面 --9、项目HSE检查统计 - /// - /// - /// - public static Model.SeDinMonthReport9Item getSeDinMonthReport9ById(string projectId, string month) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var monthD = Funs.GetNewDateTime(month); - Model.SeDinMonthReport9Item getInfo = new Model.SeDinMonthReport9Item(); - if (monthD.HasValue) - { - getInfo = (from x in db.SeDin_MonthReport9 - join y in db.SeDin_MonthReport on x.MonthReportId equals y.MonthReportId - where y.ProjectId == projectId && y.ReporMonth.Value.Year == monthD.Value.Year && y.ReporMonth.Value.Month == monthD.Value.Month - select new Model.SeDinMonthReport9Item - { - MonthReport9Id = x.MonthReport9Id, - MonthReportId = x.MonthReportId, - DailyMonth = x.DailyMonth ?? 0, - DailyYear = x.DailyYear ?? 0, - DailyTotal = x.DailyTotal ?? 0, - WeekMonth = x.WeekMonth ?? 0, - WeekYear = x.WeekYear ?? 0, - WeekTotal = x.WeekTotal ?? 0, - SpecialMonth = x.SpecialMonth ?? 0, - SpecialYear = x.SpecialYear ?? 0, - SpecialTotal = x.SpecialTotal ?? 0, - MonthlyMonth = x.MonthlyMonth ?? 0, - MonthlyYear = x.MonthlyYear ?? 0, - MonthlyTotal = x.MonthlyTotal ?? 0, - SeDinMonthReport9ItemRectification = getSeDinMonthReport9ItemRectification(x.MonthReportId), - SeDinMonthReport9ItemSpecial = getSeDinMonthReport9ItemSpecial(x.MonthReportId), - SeDinMonthReport9ItemStoppage = getSeDinMonthReport9ItemStoppage(x.MonthReportId), - }).FirstOrDefault(); - } - return getInfo; - } - } - - /// - /// 获取隐患整改单 - /// - /// - public static List getSeDinMonthReport9ItemRectification(string monthReportId) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var getInfo = from x in db.SeDin_MonthReport9Item_Rectification - where x.MonthReportId == monthReportId - orderby x.UnitName - select new Model.SeDinMonthReport9ItemRectification - { - MonthReport9ItemId = x.MonthReport9ItemId, - MonthReportId = x.MonthReportId, - UnitName = x.UnitName, - IssuedMonth = x.IssuedMonth ?? 0, - IssuedMonthLarge = x.IssuedMonthLarge ?? 0, - IssuedMonthSerious = x.IssuedMonthSerious ?? 0, - RectificationMoth = x.RectificationMoth ?? 0, - RectificationMothLarge = x.RectificationMothLarge ?? 0, - RectificationMothSerious = x.RectificationMothSerious ?? 0, - IssuedTotal = x.IssuedTotal ?? 0, - IssuedTotalLarge = x.IssuedTotalLarge ?? 0, - IssuedTotalSerious = x.IssuedTotalSerious ?? 0, - RectificationTotal = x.RectificationTotal ?? 0, - RectificationTotalLarge = x.RectificationTotalLarge ?? 0, - RectificationTotalSerious = x.RectificationTotalSerious ?? 0, - }; - return getInfo.ToList(); - } - } - /// - /// 获取专项检查 - /// - /// - public static List getSeDinMonthReport9ItemSpecial(string monthReportId) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var getInfo = from x in db.SeDin_MonthReport9Item_Special - where x.MonthReportId == monthReportId - orderby x.TypeName - select new Model.SeDinMonthReport9ItemSpecial - { - MonthReport9ItemId = x.MonthReport9ItemId, - MonthReportId = x.MonthReportId, - TypeName = x.TypeName, - CheckMonth = x.CheckMonth ?? 0, - CheckYear = x.CheckYear ?? 0, - CheckTotal = x.CheckTotal ?? 0, - }; - return getInfo.ToList(); - } - } - /// - /// 获取停工令 - /// - /// - public static List getSeDinMonthReport9ItemStoppage(string monthReportId) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var getInfo = from x in db.SeDin_MonthReport9Item_Stoppage - where x.MonthReportId == monthReportId - orderby x.UnitName - select new Model.SeDinMonthReport9ItemStoppage - { - MonthReport9ItemId = x.MonthReport9ItemId, - MonthReportId = x.MonthReportId, - UnitName = x.UnitName, - IssuedMonth = x.IssuedMonth ?? 0, - StoppageMonth = x.StoppageMonth ?? 0, - IssuedTotal = x.IssuedTotal ?? 0, - StoppageTotal = x.StoppageTotal ?? 0, - }; - return getInfo.ToList(); - } - } - #endregion - #region 获取赛鼎月报详细 --10、项目HSE培训统计 - /// - /// 获取赛鼎月报详细 --10、项目HSE培训统计 - /// - /// - /// - /// - public static Model.SeDinMonthReport10Item getSeDinMonthReport10ById(string projectId, string month) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var monthD = Funs.GetNewDateTime(month); - Model.SeDinMonthReport10Item getInfo = new Model.SeDinMonthReport10Item(); - if (monthD.HasValue) - { - getInfo = (from x in db.SeDin_MonthReport10 - join y in db.SeDin_MonthReport on x.MonthReportId equals y.MonthReportId - where y.ProjectId == projectId && y.ReporMonth.Value.Year == monthD.Value.Year && y.ReporMonth.Value.Month == monthD.Value.Month - select new Model.SeDinMonthReport10Item - { - MonthReport10Id = x.MonthReport10Id, - MonthReportId = x.MonthReportId, - SafeMonthNum = x.SafeMonthNum ?? 0, - SafeTotalNum = x.SafeTotalNum ?? 0, - SafeMonthMoney = x.SafeMonthMoney ?? 0, - SafeTotalMoney = x.SafeTotalMoney ?? 0, - HseMonthNum = x.HseMonthNum ?? 0, - HseTotalNum = x.HseTotalNum ?? 0, - HseMonthMoney = x.HseMonthMoney ?? 0, - HseTotalMoney = x.HseTotalMoney ?? 0, - ProduceMonthNum = x.ProduceMonthNum ?? 0, - ProduceTotalNum = x.ProduceTotalNum ?? 0, - ProduceMonthMoney = x.ProduceMonthMoney ?? 0, - ProduceTotalMoney = x.ProduceTotalMoney ?? 0, - AccidentMonthNum = x.AccidentMonthNum ?? 0, - AccidentTotalNum = x.AccidentTotalNum ?? 0, - AccidentMonthMoney = x.AccidentMonthMoney ?? 0, - AccidentTotalMoney = x.AccidentTotalMoney ?? 0, - ViolationMonthNum = x.ViolationMonthNum ?? 0, - ViolationTotalNum = x.ViolationTotalNum ?? 0, - ViolationMonthMoney = x.ViolationMonthMoney ?? 0, - ViolationTotalMoney = x.ViolationTotalMoney ?? 0, - ManageMonthNum = x.ManageMonthNum ?? 0, - ManageTotalNum = x.ManageTotalNum ?? 0, - ManageMonthMoney = x.ManageMonthMoney ?? 0, - ManageTotalMoney = x.ManageTotalMoney ?? 0, - }).FirstOrDefault(); - } - return getInfo; - } - } - #endregion - #region 获取赛鼎月报详细 --11、项目危大工程施工情况 - /// - /// 获取赛鼎月报详细 --11、项目危大工程施工情况 - /// - /// - /// - /// - public static Model.SeDinMonthReport11Item getSeDinMonthReport11ById(string projectId, string month) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var monthD = Funs.GetNewDateTime(month); - Model.SeDinMonthReport11Item getInfo = new Model.SeDinMonthReport11Item(); - if (monthD.HasValue) - { - getInfo = (from x in db.SeDin_MonthReport11 - join y in db.SeDin_MonthReport on x.MonthReportId equals y.MonthReportId - where y.ProjectId == projectId && y.ReporMonth.Value.Year == monthD.Value.Year && y.ReporMonth.Value.Month == monthD.Value.Month - select new Model.SeDinMonthReport11Item - { - MonthReport11Id = x.MonthReport11Id, - MonthReportId = x.MonthReportId, - RiskWorkNum = x.RiskWorkNum ?? 0, - RiskFinishedNum = x.RiskFinishedNum ?? 0, - RiskWorkNext = x.RiskWorkNext, - LargeWorkNum = x.LargeWorkNum ?? 0, - LargeFinishedNum = x.LargeFinishedNum ?? 0, - LargeWorkNext = x.LargeWorkNext, - }).FirstOrDefault(); - } - return getInfo; - } - } - #endregion - #region 获取赛鼎月报详细 --12、项目应急演练情况 - /// - /// 获取赛鼎月报详细 --12、项目应急演练情况 - /// - /// - /// - /// - public static Model.SeDinMonthReport12Item getSeDinMonthReport12ById(string projectId, string month) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var monthD = Funs.GetNewDateTime(month); - Model.SeDinMonthReport12Item getInfo = new Model.SeDinMonthReport12Item(); - if (monthD.HasValue) - { - getInfo = (from x in db.SeDin_MonthReport12 - join y in db.SeDin_MonthReport on x.MonthReportId equals y.MonthReportId - where y.ProjectId == projectId && y.ReporMonth.Value.Year == monthD.Value.Year && y.ReporMonth.Value.Month == monthD.Value.Month - select new Model.SeDinMonthReport12Item - { - MonthReport12Id = x.MonthReport12Id, - MonthReportId = x.MonthReportId, - MultipleSiteInput = x.MultipleSiteInput ?? 0, - MultipleSitePerson = x.MultipleSitePerson ?? 0, - MultipleSiteNum = x.MultipleSiteNum ?? 0, - MultipleSiteTotalNum = x.MultipleSiteTotalNum ?? 0, - MultipleSiteNext = x.MultipleSiteNext, - MultipleDesktopInput = x.MultipleDesktopInput ?? 0, - MultipleDesktopPerson = x.MultipleDesktopPerson ?? 0, - MultipleDesktopNum = x.MultipleDesktopNum ?? 0, - MultipleDesktopTotalNum = x.MultipleDesktopTotalNum ?? 0, - MultipleDesktopNext = x.MultipleDesktopNext, - SingleSiteInput = x.SingleSiteInput ?? 0, - SingleSitePerson = x.SingleSitePerson ?? 0, - SingleSiteNum = x.SingleSiteNum ?? 0, - SingleSiteTotalNum = x.SingleSiteTotalNum ?? 0, - SingleSiteNext = x.SingleSiteNext, - SingleDesktopInput = x.SingleDesktopInput ?? 0, - SingleDesktopPerson = x.SingleDesktopPerson ?? 0, - SingleDesktopNum = x.SingleDesktopNum ?? 0, - SingleDesktopTotalNum = x.SingleDesktopTotalNum ?? 0, - SingleDesktopNext = x.SingleDesktopNext, - }).FirstOrDefault(); - } - return getInfo; - } - } - #endregion - #region 获取赛鼎月报详细 --13、14、本月HSE活动综述、下月HSE工作计划 - /// - /// 获取赛鼎月报详细 - /// - /// - /// - /// - public static Model.SeDinMonthReportItem getSeDinMonthReport13ById(string projectId, string month) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var monthD = Funs.GetNewDateTime(month); - Model.SeDinMonthReportItem getInfo = new Model.SeDinMonthReportItem(); - if (monthD.HasValue) - { - getInfo = (from x in db.SeDin_MonthReport - where x.ProjectId == projectId && x.ReporMonth.Value.Year == monthD.Value.Year && x.ReporMonth.Value.Month == monthD.Value.Month - select new Model.SeDinMonthReportItem - { - MonthReportId = x.MonthReportId, - ProjectId = x.ProjectId, - ThisSummary = x.ThisSummary, - NextPlan = x.NextPlan, - AccidentsSummary = x.AccidentsSummary, - States = x.States, - NextManId = x.NextManId, - NextManName = db.Sys_User.First(u => u.UserId == x.NextManId).UserName, - }).FirstOrDefault(); - } - return getInfo; - } - } - #endregion - #endregion - - #region 保存 - #region 保存 MonthReport0 封面 - /// - /// 保存SeDin_MonthReport - /// - /// 赛鼎月报 - /// - public static string SaveSeDinMonthReport0(Model.SeDinMonthReportItem newItem) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - Model.SeDin_MonthReport newReport = new Model.SeDin_MonthReport - { - MonthReportId = newItem.MonthReportId, - ProjectId = newItem.ProjectId, - DueDate = Funs.GetNewDateTime(newItem.DueDate), - StartDate = Funs.GetNewDateTime(newItem.StartDate), - EndDate = Funs.GetNewDateTime(newItem.EndDate), - ReporMonth = Funs.GetNewDateTime(newItem.ReporMonth), - States = newItem.States, - }; - - if (!string.IsNullOrEmpty(newItem.CompileManId) && newItem.AuditManId != Const._Null) - { - newReport.CompileManId = newItem.CompileManId; - } - if (!string.IsNullOrEmpty(newItem.AuditManId) && newItem.AuditManId != Const._Null) - { - newReport.AuditManId = newItem.AuditManId; - } - if (!string.IsNullOrEmpty(newItem.ApprovalManId) && newItem.AuditManId != Const._Null) - { - newReport.ApprovalManId = newItem.ApprovalManId; - } - ////下一步办理人 - if (!string.IsNullOrEmpty(newItem.NextManId) && newItem.NextManId != Const._Null) - { - newReport.NextManId = newItem.NextManId; - } - else - { - newReport.NextManId = newReport.CompileManId; - } - if (newItem.States == Const.State_3) - { - newReport.CommitTime = DateTime.Now; - newReport.NextManId = null; - } - - var updateReport = db.SeDin_MonthReport.FirstOrDefault(x => x.MonthReportId == newItem.MonthReportId || (x.ProjectId==newItem.ProjectId && x.ReporMonth ==newReport.ReporMonth)); - if (updateReport == null) - { - newReport.MonthReportId = SQLHelper.GetNewID(); - db.SeDin_MonthReport.InsertOnSubmit(newReport); - } - else - { - newReport.MonthReportId = updateReport.MonthReportId; - updateReport.DueDate = newReport.DueDate; - updateReport.StartDate = newReport.StartDate; - updateReport.EndDate = newReport.EndDate; - updateReport.CompileManId = newReport.CompileManId; - updateReport.AuditManId = newReport.AuditManId; - updateReport.ApprovalManId = newReport.ApprovalManId; - updateReport.States = newReport.States; - updateReport.CommitTime = newReport.CommitTime; - updateReport.NextManId = newReport.NextManId; - //updateReport.ThisSummary = newReport.ThisSummary; - //updateReport.NextPlan = newReport.NextPlan; - } - //// 审核信息 - int maxIndex = (db.SeDin_MonthReportFlowOperate.Where(x => x.DataId == newReport.MonthReportId).Max(x => x.SortIndex) ?? 0) + 1; - Model.SeDin_MonthReportFlowOperate newFlow = new Model.SeDin_MonthReportFlowOperate() - { - FlowOperateId= SQLHelper.GetNewID(), - MenuId=Const.ProjectManagerMonth_SeDinMenuId, - DataId = newReport.MonthReportId, - SortIndex= maxIndex, - StepName=newItem.StepName, - OperaterId = newItem.OperaterId, - OperaterTime=DateTime.Now, - IsAgree=newItem.isAgree, - Opinion=newItem.Opinion, - IsClosed=true, - }; - db.SeDin_MonthReportFlowOperate.InsertOnSubmit(newFlow); - db.SubmitChanges(); - return newReport.MonthReportId; - } - } - #endregion - #region 保存 MonthReport1、项目信息 - /// - /// 保存SeDin_MonthReport - /// - /// 赛鼎月报 - /// - public static string SaveSeDinMonthReport1(Model.SeDinMonthReport1Item newItem) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - Model.SeDin_MonthReport1 newReport = new Model.SeDin_MonthReport1 - { - MonthReportId = newItem.MonthReportId, - MonthReport1Id = newItem.MonthReport1Id, - ProjectCode=newItem.ProjectCode, - ProjectName = newItem.ProjectName, - ProjectType=newItem.ProjectType, - StartDate = Funs.GetNewDateTime(newItem.StartDate), - EndDate = Funs.GetNewDateTime(newItem.EndDate), - ProjectManager = newItem.ProjectManager, - HsseManager = newItem.HsseManager, - ContractAmount = newItem.ContractAmount, - ConstructionStage = newItem.ConstructionStage, - ProjectAddress = newItem.ProjectAddress, - }; - var updateReport = db.SeDin_MonthReport1.FirstOrDefault(x => x.MonthReportId == newItem.MonthReportId ); - if (updateReport == null) - { - newReport.MonthReport1Id = SQLHelper.GetNewID(); - db.SeDin_MonthReport1.InsertOnSubmit(newReport); - } - else - { - newReport.MonthReportId = updateReport.MonthReportId; - updateReport.ProjectCode = newReport.ProjectCode; - updateReport.ProjectName = newReport.ProjectName; - updateReport.ProjectType = newReport.ProjectType; - updateReport.StartDate = newReport.StartDate; - updateReport.EndDate = newReport.EndDate; - updateReport.ProjectManager = newReport.ProjectManager; - updateReport.HsseManager = newReport.HsseManager; - updateReport.ContractAmount = newReport.ContractAmount; - updateReport.ConstructionStage = newReport.ConstructionStage; - updateReport.ProjectAddress = newReport.ProjectAddress; - } - db.SubmitChanges(); - return newReport.MonthReportId; - } - } - #endregion - #region 保存 MonthReport2、项目安全工时统计 - /// - /// 保存SeDin_MonthReport - /// - /// 赛鼎月报 - /// - public static string SaveSeDinMonthReport2(Model.SeDinMonthReport2Item newItem) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - Model.SeDin_MonthReport2 newReport = new Model.SeDin_MonthReport2 - { - MonthReportId = newItem.MonthReportId, - MonthReport2Id = newItem.MonthReport2Id, - MonthWorkTime = newItem.MonthWorkTime, - YearWorkTime = newItem.YearWorkTime, - ProjectWorkTime = newItem.ProjectWorkTime, - TotalLostTime=newItem.TotalLostTime, - MillionLossRate = newItem.MillionLossRate, - TimeAccuracyRate = newItem.TimeAccuracyRate, - StartDate = Funs.GetNewDateTime(newItem.StartDate), - EndDate = Funs.GetNewDateTime(newItem.EndDate), - SafeWorkTime = newItem.SafeWorkTime, - }; - var updateReport = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == newItem.MonthReportId); - if (updateReport == null) - { - newReport.MonthReport2Id = SQLHelper.GetNewID(); - db.SeDin_MonthReport2.InsertOnSubmit(newReport); - } - else - { - newReport.MonthReportId = updateReport.MonthReportId; - updateReport.MonthWorkTime = newReport.MonthWorkTime; - updateReport.YearWorkTime = newReport.YearWorkTime; - updateReport.ProjectWorkTime = newReport.ProjectWorkTime; - updateReport.TotalLostTime = newReport.TotalLostTime; - updateReport.MillionLossRate = newReport.MillionLossRate; - updateReport.TimeAccuracyRate = newReport.TimeAccuracyRate; - updateReport.StartDate = newReport.StartDate; - updateReport.EndDate = newReport.EndDate; - updateReport.SafeWorkTime = newReport.SafeWorkTime; - } - db.SubmitChanges(); - return newReport.MonthReportId; - } - } - #endregion - #region 保存 MonthReport3、项目HSE事故、事件统计 - /// - /// 保存SeDin_MonthReport - /// - /// 赛鼎月报 - /// - public static string SaveSeDinMonthReport3(Model.SeDinMonthReportItem newItem) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var updateReport = db.SeDin_MonthReport.FirstOrDefault(x => x.MonthReportId == newItem.MonthReportId); - if (updateReport != null) - { - ///更新事故综述 - updateReport.AccidentsSummary = newItem.AccidentsSummary; - db.SubmitChanges(); - ////删除明细 - var delMonthReport3s = from x in db.SeDin_MonthReport3 - where x.MonthReportId == newItem.MonthReportId - select x; - if (delMonthReport3s.Count() > 0) - { - db.SeDin_MonthReport3.DeleteAllOnSubmit(delMonthReport3s); - db.SubmitChanges(); - } - ////新增明细 - if (newItem.SeDinMonthReport3Item != null && newItem.SeDinMonthReport3Item.Count() > 0) - { - foreach (var item in newItem.SeDinMonthReport3Item) - { - Model.SeDin_MonthReport3 newItem3 = new Model.SeDin_MonthReport3 - { - MonthReport3Id = SQLHelper.GetNewID(), - MonthReportId = newItem.MonthReportId, - BigType= item.BigType, - AccidentType = item.AccidentType, - SortIndex = item.SortIndex, - MonthTimes = item.MonthTimes, - TotalTimes = item.TotalTimes, - MonthLossTime = item.MonthLossTime, - TotalLossTime = item.TotalLossTime, - MonthMoney = item.MonthMoney, - TotalMoney = item.TotalMoney, - MonthPersons = item.MonthPersons, - TotalPersons = item.TotalPersons, - }; - - db.SeDin_MonthReport3.InsertOnSubmit(newItem3); - db.SubmitChanges(); - } - } - } - - return newItem.MonthReportId; - } - } - #endregion - #region 保存 MonthReport4、本月人员投入情况 - /// - /// 保存SeDin_MonthReport - /// - /// 赛鼎月报 - /// - public static string SaveSeDinMonthReport4(Model.SeDinMonthReportItem newItem) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var updateReport = db.SeDin_MonthReport.FirstOrDefault(x => x.MonthReportId == newItem.MonthReportId); - if (updateReport != null) - { - ////删除明细 - var delMonthReport4s = from x in db.SeDin_MonthReport4 - where x.MonthReportId == newItem.MonthReportId - select x; - if (delMonthReport4s.Count() > 0) - { - db.SeDin_MonthReport4.DeleteAllOnSubmit(delMonthReport4s); - db.SubmitChanges(); - } - ////新增明细 - if (newItem.SeDinMonthReport4Item != null && newItem.SeDinMonthReport4Item.Count() > 0) - { - foreach (var item in newItem.SeDinMonthReport4Item) - { - Model.SeDin_MonthReport4 newReport4Item = new Model.SeDin_MonthReport4 - { - MonthReportId = newItem.MonthReportId, - MonthReport4Id = SQLHelper.GetNewID(), - UnitName = item.UnitName, - SafeManangerNum = item.SafeManangerNum, - OtherManangerNum = item.OtherManangerNum, - SpecialWorkerNum = item.SpecialWorkerNum, - GeneralWorkerNum = item.GeneralWorkerNum, - TotalNum = item.TotalNum, - }; - db.SeDin_MonthReport4.InsertOnSubmit(newReport4Item); - db.SubmitChanges(); - } - } - } - - return newItem.MonthReportId; - } - } - - /// - /// 保存SeDin_MonthReport 赛鼎公司人员信息统计 - /// - /// 赛鼎月报 - /// - public static string SaveSeDinMonthReport4Other(Model.SeDinMonthReport4OtherItem newItem) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - ////删除 - var delMonthReport4s = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == newItem.MonthReportId); - if (delMonthReport4s != null) - { - db.SeDin_MonthReport4Other.DeleteOnSubmit(delMonthReport4s); - db.SubmitChanges(); - } - ////新增 - if (newItem != null) - { - Model.SeDin_MonthReport4Other newReport4Item = new Model.SeDin_MonthReport4Other - { - MonthReportId = newItem.MonthReportId, - MonthReport4OtherId = SQLHelper.GetNewID(), - FormalNum = newItem.FormalNum, - ForeignNum = newItem.ForeignNum, - OutsideNum = newItem.OutsideNum, - ManagerNum = newItem.ManagerNum, - TotalNum = newItem.TotalNum, - }; - db.SeDin_MonthReport4Other.InsertOnSubmit(newReport4Item); - db.SubmitChanges(); - } - return newItem.MonthReportId; - } - } - #endregion - #region 保存 MonthReport5、本月大型、特种设备投入情况 - /// - /// 保存SeDin_MonthReport - /// - /// 赛鼎月报 - /// - public static string SaveSeDinMonthReport5(Model.SeDinMonthReportItem newItem) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - - var updateReport = db.SeDin_MonthReport.FirstOrDefault(x => x.MonthReportId == newItem.MonthReportId); - if (updateReport != null) - { - ////删除明细 - var delMonthReport5s = from x in db.SeDin_MonthReport5 - where x.MonthReportId == newItem.MonthReportId - select x; - if (delMonthReport5s.Count() > 0) - { - db.SeDin_MonthReport5.DeleteAllOnSubmit(delMonthReport5s); - db.SubmitChanges(); - } - ////新增明细 - if (newItem.SeDinMonthReport5Item != null && newItem.SeDinMonthReport5Item.Count() > 0) - { - foreach (var item in newItem.SeDinMonthReport5Item) - { - Model.SeDin_MonthReport5 newReport5Item = new Model.SeDin_MonthReport5 - { - MonthReportId = newItem.MonthReportId, - MonthReport5Id = SQLHelper.GetNewID(), - UnitName = item.UnitName, - T01 = item.T01, - T02 = item.T02, - T03 = item.T03, - T04 = item.T04, - T05 = item.T05, - T06 = item.T06, - D01 = item.D01, - D02 = item.D02, - D03 = item.D03, - D04 = item.D04, - S01 = item.S01, - }; - db.SeDin_MonthReport5.InsertOnSubmit(newReport5Item); - db.SubmitChanges(); - } - } - } - - return newItem.MonthReportId; - } - } - #endregion - #region 保存 MonthReport6、安全生产费用投入情况 - /// - /// 保存SeDin_MonthReport - /// - /// 赛鼎月报 - /// - public static string SaveSeDinMonthReport6(Model.SeDinMonthReport6Item newItem) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var getSeDinMonthReport6 = from x in db.SeDin_MonthReport6 where x.MonthReportId == newItem.MonthReportId select x; - if (getSeDinMonthReport6.Count() > 0) - { - db.SeDin_MonthReport6.DeleteAllOnSubmit(getSeDinMonthReport6); - db.SubmitChanges(); - } - - Model.SeDin_MonthReport6 newReport = new Model.SeDin_MonthReport6 - { - MonthReportId = newItem.MonthReportId, - MonthReport6Id = newItem.MonthReport6Id, - SafetyMonth = newItem.SafetyMonth, - SafetyYear = newItem.SafetyYear, - SafetyTotal = newItem.SafetyTotal, - LaborMonth = newItem.LaborMonth, - LaborYear = newItem.LaborYear, - LaborTotal = newItem.LaborTotal, - ProgressMonth = newItem.ProgressMonth, - ProgressYear = newItem.ProgressYear, - ProgressTotal = newItem.ProgressTotal, - EducationMonth = newItem.EducationMonth, - EducationYear = newItem.EducationYear, - EducationTotal = newItem.EducationTotal, - SumMonth = newItem.SumMonth, - SumYear = newItem.SumYear, - SumTotal = newItem.SumTotal, - ContractMonth = newItem.ContractMonth, - ContractYear = newItem.ContractYear, - ContractTotal = newItem.ContractTotal, - ConstructionCost = newItem.ConstructionCost, - }; - - newReport.MonthReport6Id = SQLHelper.GetNewID(); - db.SeDin_MonthReport6.InsertOnSubmit(newReport); - db.SubmitChanges(); - return newReport.MonthReportId; - } - } - #endregion - #region 保存 MonthReport7、项目HSE培训统计 - /// - /// 保存SeDin_MonthReport - /// - /// 赛鼎月报 - /// - public static string SaveSeDinMonthReport7(Model.SeDinMonthReport7Item newItem) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var getSeDinMonthReport7 = from x in db.SeDin_MonthReport7 where x.MonthReportId == newItem.MonthReportId select x; - if (getSeDinMonthReport7.Count() > 0) - { - db.SeDin_MonthReport7.DeleteAllOnSubmit(getSeDinMonthReport7); - db.SubmitChanges(); - } - Model.SeDin_MonthReport7 newReport = new Model.SeDin_MonthReport7 - { - MonthReportId = newItem.MonthReportId, - MonthReport7Id = newItem.MonthReport7Id, - SpecialMontNum = newItem.SpecialMontNum, - SpecialYearNum = newItem.SpecialYearNum, - SpecialTotalNum = newItem.SpecialTotalNum, - SpecialMontPerson = newItem.SpecialMontPerson, - SpecialYearPerson = newItem.SpecialYearPerson, - SpecialTotalPerson = newItem.SpecialTotalPerson, - EmployeeMontNum = newItem.EmployeeMontNum, - EmployeeYearNum = newItem.EmployeeYearNum, - EmployeeTotalNum = newItem.EmployeeTotalNum, - EmployeeMontPerson = newItem.EmployeeMontPerson, - EmployeeYearPerson = newItem.EmployeeYearPerson, - EmployeeTotalPerson = newItem.EmployeeTotalPerson, - }; - - newReport.MonthReport7Id = SQLHelper.GetNewID(); - db.SeDin_MonthReport7.InsertOnSubmit(newReport); - db.SubmitChanges(); - return newReport.MonthReportId; - } - } - #endregion - #region 保存 MonthReport8、项目HSE会议统计 - /// - /// 保存SeDin_MonthReport - /// - /// 赛鼎月报 - /// - public static string SaveSeDinMonthReport8(Model.SeDinMonthReport8Item newItem) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var getMonthReport8 = from x in db.SeDin_MonthReport8 where x.MonthReportId == newItem.MonthReportId - select x; - if (getMonthReport8.Count() > 0) - { - db.SeDin_MonthReport8.DeleteAllOnSubmit(getMonthReport8); - db.SubmitChanges(); - } - Model.SeDin_MonthReport8 newReport = new Model.SeDin_MonthReport8 - { - MonthReportId = newItem.MonthReportId, - MonthReport8Id = newItem.MonthReport8Id, - WeekMontNum = newItem.WeekMontNum, - WeekTotalNum = newItem.WeekTotalNum, - WeekMontPerson = newItem.WeekMontPerson, - MonthMontNum = newItem.MonthMontNum, - MonthTotalNum = newItem.MonthTotalNum, - MonthMontPerson = newItem.MonthMontPerson, - SpecialMontNum = newItem.SpecialMontNum, - SpecialTotalNum = newItem.SpecialTotalNum, - SpecialMontPerson = newItem.SpecialMontPerson, - }; - newReport.MonthReport8Id = SQLHelper.GetNewID(); - db.SeDin_MonthReport8.InsertOnSubmit(newReport); - db.SubmitChanges(); - - var get8Items = from x in db.SeDin_MonthReport8Item - where x.MonthReportId == newItem.MonthReportId - select x; - if (get8Items.Count() > 0) - { - db.SeDin_MonthReport8Item.DeleteAllOnSubmit(get8Items); - db.SubmitChanges(); - } - if (newItem.SeDinMonthReport8ItemItem != null && newItem.SeDinMonthReport8ItemItem.Count() > 0) - { - foreach (var item in newItem.SeDinMonthReport8ItemItem) - { - Model.SeDin_MonthReport8Item new8Item = new Model.SeDin_MonthReport8Item - { - MonthReport8ItemId = SQLHelper.GetNewID(), - MonthReportId= newItem.MonthReportId, - UnitName=item.UnitName, - TeamName = item.TeamName, - ClassNum = item.ClassNum, - ClassPersonNum = item.ClassPersonNum, - }; - db.SeDin_MonthReport8Item.InsertOnSubmit(new8Item); - db.SubmitChanges(); - } - } - - return newReport.MonthReportId; - } - } - #endregion - #region 保存 MonthReport9、项目HSE检查统计 - /// - /// 保存SeDin_MonthReport - /// - /// 赛鼎月报 - /// - public static string SaveSeDinMonthReport9(Model.SeDinMonthReport9Item newItem) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var getMonthReport9 = from x in db.SeDin_MonthReport9 - where x.MonthReportId == newItem.MonthReportId - select x; - if (getMonthReport9.Count() > 0) - { - db.SeDin_MonthReport9.DeleteAllOnSubmit(getMonthReport9); - db.SubmitChanges(); - } - Model.SeDin_MonthReport9 newReport = new Model.SeDin_MonthReport9 - { - MonthReport9Id = newItem.MonthReport9Id, - MonthReportId = newItem.MonthReportId, - DailyMonth = newItem.DailyMonth, - DailyYear = newItem.DailyYear, - DailyTotal = newItem.DailyTotal, - WeekMonth = newItem.WeekMonth, - WeekYear = newItem.WeekYear, - WeekTotal = newItem.WeekTotal, - SpecialMonth = newItem.SpecialMonth, - SpecialYear = newItem.SpecialYear, - SpecialTotal = newItem.SpecialTotal, - MonthlyMonth = newItem.MonthlyMonth, - MonthlyYear = newItem.MonthlyYear, - MonthlyTotal = newItem.MonthlyTotal, - }; - - newReport.MonthReport9Id = SQLHelper.GetNewID(); - db.SeDin_MonthReport9.InsertOnSubmit(newReport); - db.SubmitChanges(); - ////隐患整改单 - var get9Items = from x in db.SeDin_MonthReport9Item_Rectification - where x.MonthReportId == newItem.MonthReportId - select x; - if (get9Items.Count() > 0) - { - db.SeDin_MonthReport9Item_Rectification.DeleteAllOnSubmit(get9Items); - db.SubmitChanges(); - } - if (newItem.SeDinMonthReport9ItemRectification != null && newItem.SeDinMonthReport9ItemRectification.Count() > 0) - { - foreach (var item in newItem.SeDinMonthReport9ItemRectification) - { - Model.SeDin_MonthReport9Item_Rectification new9Item = new Model.SeDin_MonthReport9Item_Rectification - { - MonthReport9ItemId = SQLHelper.GetNewID(), - MonthReportId = newItem.MonthReportId, - UnitName = item.UnitName, - IssuedMonth = item.IssuedMonth, - IssuedMonthLarge = item.IssuedMonthLarge, - IssuedMonthSerious = item.IssuedMonthSerious, - RectificationMoth = item.RectificationMoth, - RectificationMothLarge = item.RectificationMothLarge, - RectificationMothSerious = item.RectificationMothSerious, - IssuedTotal = item.IssuedTotal, - IssuedTotalLarge = item.IssuedTotalLarge, - IssuedTotalSerious = item.IssuedTotalSerious, - RectificationTotal = item.RectificationTotal, - RectificationTotalLarge = item.RectificationTotalLarge, - RectificationTotalSerious = item.RectificationTotalSerious, - }; - db.SeDin_MonthReport9Item_Rectification.InsertOnSubmit(new9Item); - db.SubmitChanges(); - } - } - ////专项检查 - var get9Specials = from x in db.SeDin_MonthReport9Item_Special - where x.MonthReportId == newItem.MonthReportId - select x; - if (get9Specials.Count() > 0) - { - db.SeDin_MonthReport9Item_Special.DeleteAllOnSubmit(get9Specials); - db.SubmitChanges(); - } - if (newItem.SeDinMonthReport9ItemSpecial != null && newItem.SeDinMonthReport9ItemSpecial.Count() > 0) - { - foreach (var item in newItem.SeDinMonthReport9ItemSpecial) - { - Model.SeDin_MonthReport9Item_Special new9Item = new Model.SeDin_MonthReport9Item_Special - { - MonthReport9ItemId = SQLHelper.GetNewID(), - MonthReportId = newItem.MonthReportId, - TypeName = item.TypeName, - CheckMonth = item.CheckMonth, - CheckYear = item.CheckYear, - CheckTotal = item.CheckTotal, - }; - db.SeDin_MonthReport9Item_Special.InsertOnSubmit(new9Item); - db.SubmitChanges(); - } - } - ////停工令 - var get9Stoppages = from x in db.SeDin_MonthReport9Item_Stoppage - where x.MonthReportId == newItem.MonthReportId - select x; - if (get9Stoppages.Count() > 0) - { - db.SeDin_MonthReport9Item_Stoppage.DeleteAllOnSubmit(get9Stoppages); - db.SubmitChanges(); - } - if (newItem.SeDinMonthReport9ItemStoppage != null && newItem.SeDinMonthReport9ItemStoppage.Count() > 0) - { - foreach (var item in newItem.SeDinMonthReport9ItemStoppage) - { - Model.SeDin_MonthReport9Item_Stoppage new9Item = new Model.SeDin_MonthReport9Item_Stoppage - { - MonthReport9ItemId = SQLHelper.GetNewID(), - MonthReportId = newItem.MonthReportId, - UnitName = item.UnitName, - IssuedMonth = item.IssuedMonth, - StoppageMonth = item.StoppageMonth, - IssuedTotal = item.IssuedTotal, - StoppageTotal = item.StoppageTotal, - }; - db.SeDin_MonthReport9Item_Stoppage.InsertOnSubmit(new9Item); - db.SubmitChanges(); - } - } - return newReport.MonthReportId; - } - } - #endregion - #region 保存 MonthReport10、项目HSE培训统计 - /// - /// 保存SeDin_MonthReport - /// - /// 赛鼎月报 - /// - public static string SaveSeDinMonthReport10(Model.SeDinMonthReport10Item newItem) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var getMonthReport10 = from x in db.SeDin_MonthReport10 - where x.MonthReportId == newItem.MonthReportId - select x; - if (getMonthReport10.Count() > 0) - { - db.SeDin_MonthReport10.DeleteAllOnSubmit(getMonthReport10); - db.SubmitChanges(); - } - Model.SeDin_MonthReport10 newReport = new Model.SeDin_MonthReport10 - { - MonthReportId = newItem.MonthReportId, - MonthReport10Id = newItem.MonthReport10Id, - SafeMonthNum = newItem.SafeMonthNum, - SafeTotalNum = newItem.SafeTotalNum, - SafeMonthMoney = newItem.SafeMonthMoney, - SafeTotalMoney = newItem.SafeTotalMoney, - HseMonthNum = newItem.HseMonthNum, - HseTotalNum = newItem.HseTotalNum, - HseMonthMoney = newItem.HseMonthMoney, - HseTotalMoney = newItem.HseTotalMoney, - ProduceMonthNum = newItem.ProduceMonthNum, - ProduceTotalNum = newItem.ProduceTotalNum, - ProduceMonthMoney = newItem.ProduceMonthMoney, - ProduceTotalMoney = newItem.ProduceTotalMoney, - AccidentMonthNum = newItem.AccidentMonthNum, - AccidentTotalNum = newItem.AccidentTotalNum, - AccidentMonthMoney = newItem.AccidentMonthMoney, - AccidentTotalMoney = newItem.AccidentTotalMoney, - ViolationMonthNum = newItem.ViolationMonthNum, - ViolationTotalNum = newItem.ViolationTotalNum, - ViolationMonthMoney = newItem.ViolationMonthMoney, - ViolationTotalMoney = newItem.ViolationTotalMoney, - ManageMonthNum = newItem.ManageMonthNum, - ManageTotalNum = newItem.ManageTotalNum, - ManageMonthMoney = newItem.ManageMonthMoney, - ManageTotalMoney = newItem.ManageTotalMoney, - }; - newReport.MonthReport10Id = SQLHelper.GetNewID(); - db.SeDin_MonthReport10.InsertOnSubmit(newReport); - db.SubmitChanges(); - return newReport.MonthReportId; - } - } - #endregion - #region 保存 MonthReport11、项目危大工程施工情况 - /// - /// 保存SeDin_MonthReport - /// - /// 赛鼎月报 - /// - public static string SaveSeDinMonthReport11(Model.SeDinMonthReport11Item newItem) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - Model.SeDin_MonthReport11 newReport = new Model.SeDin_MonthReport11 - { - MonthReportId = newItem.MonthReportId, - MonthReport11Id = newItem.MonthReport11Id, - RiskWorkNum = newItem.RiskWorkNum, - RiskFinishedNum = newItem.RiskFinishedNum, - RiskWorkNext = newItem.RiskWorkNext, - LargeWorkNum = newItem.LargeWorkNum, - LargeFinishedNum = newItem.LargeFinishedNum, - LargeWorkNext = newItem.LargeWorkNext, - }; - var updateReport = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == newItem.MonthReportId); - if (updateReport == null) - { - newReport.MonthReport11Id = SQLHelper.GetNewID(); - db.SeDin_MonthReport11.InsertOnSubmit(newReport); - } - else - { - newReport.MonthReportId = updateReport.MonthReportId; - updateReport.RiskWorkNum = newItem.RiskWorkNum; - updateReport.RiskFinishedNum = newItem.RiskFinishedNum; - updateReport.RiskWorkNext = newItem.RiskWorkNext; - updateReport.LargeWorkNum = newItem.LargeWorkNum; - updateReport.LargeFinishedNum = newItem.LargeFinishedNum; - updateReport.LargeWorkNext = newItem.LargeWorkNext; - } - db.SubmitChanges(); - return newReport.MonthReportId; - } - } - #endregion - #region 保存 MonthReport12、项目应急演练情况 - /// - /// 保存SeDin_MonthReport - /// - /// 赛鼎月报 - /// - public static string SaveSeDinMonthReport12(Model.SeDinMonthReport12Item newItem) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - Model.SeDin_MonthReport12 newReport = new Model.SeDin_MonthReport12 - { - MonthReportId = newItem.MonthReportId, - MonthReport12Id = newItem.MonthReport12Id, - MultipleSiteInput = newItem.MultipleSiteInput, - MultipleSitePerson = newItem.MultipleSitePerson, - MultipleSiteNum = newItem.MultipleSiteNum, - MultipleSiteTotalNum = newItem.MultipleSiteTotalNum, - MultipleSiteNext = newItem.MultipleSiteNext, - MultipleDesktopInput = newItem.MultipleDesktopInput, - MultipleDesktopPerson = newItem.MultipleDesktopPerson, - MultipleDesktopNum = newItem.MultipleDesktopNum, - MultipleDesktopTotalNum = newItem.MultipleDesktopTotalNum, - MultipleDesktopNext = newItem.MultipleDesktopNext, - SingleSiteInput = newItem.SingleSiteInput, - SingleSitePerson = newItem.SingleSitePerson, - SingleSiteNum = newItem.SingleSiteNum, - SingleSiteTotalNum = newItem.SingleSiteTotalNum, - SingleSiteNext = newItem.SingleSiteNext, - SingleDesktopInput = newItem.SingleDesktopInput, - SingleDesktopPerson = newItem.SingleDesktopPerson, - SingleDesktopNum = newItem.SingleDesktopNum, - SingleDesktopTotalNum = newItem.SingleDesktopTotalNum, - SingleDesktopNext = newItem.SingleDesktopNext, - }; - var updateReport = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == newItem.MonthReportId); - if (updateReport == null) - { - newReport.MonthReport12Id = SQLHelper.GetNewID(); - db.SeDin_MonthReport12.InsertOnSubmit(newReport); - } - else - { - newReport.MonthReportId = updateReport.MonthReportId; - updateReport.MultipleSiteInput = newReport.MultipleSiteInput; - updateReport.MultipleSitePerson = newReport.MultipleSitePerson; - updateReport.MultipleSiteNum = newReport.MultipleSiteNum; - updateReport.MultipleSiteTotalNum = newReport.MultipleSiteTotalNum; - updateReport.MultipleSiteNext = newReport.MultipleSiteNext; - updateReport.MultipleDesktopInput = newReport.MultipleDesktopInput; - updateReport.MultipleDesktopPerson = newReport.MultipleDesktopPerson; - updateReport.MultipleDesktopNum = newReport.MultipleDesktopNum; - updateReport.MultipleDesktopTotalNum = newReport.MultipleDesktopTotalNum; - updateReport.MultipleDesktopNext = newReport.MultipleDesktopNext; - updateReport.SingleSiteInput = newReport.SingleSiteInput; - updateReport.SingleSitePerson = newReport.SingleSitePerson; - updateReport.SingleSiteNum = newReport.SingleSiteNum; - updateReport.SingleSiteTotalNum = newReport.SingleSiteTotalNum; - updateReport.SingleSiteNext = newReport.SingleSiteNext; - updateReport.SingleDesktopInput = newReport.SingleDesktopInput; - updateReport.SingleDesktopPerson = newReport.SingleDesktopPerson; - updateReport.SingleDesktopNum = newReport.SingleDesktopNum; - updateReport.SingleDesktopTotalNum = newReport.SingleDesktopTotalNum; - updateReport.SingleDesktopNext = newReport.SingleDesktopNext; - } - db.SubmitChanges(); - return newReport.MonthReportId; - } - } - #endregion - #region 保存 MonthReport13、14、本月HSE活动综述、下月HSE工作计划 - /// - /// 保存SeDin_MonthReport - /// - /// 赛鼎月报 - /// - public static string SaveSeDinMonthReport13(Model.SeDinMonthReportItem newItem) - { - using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) - { - var updateReport = db.SeDin_MonthReport.FirstOrDefault(x => x.MonthReportId == newItem.MonthReportId); - if (updateReport != null) - { - ///更新事故综述 - updateReport.ThisSummary = newItem.ThisSummary; - updateReport.NextPlan = newItem.NextPlan; - if (!string.IsNullOrEmpty(newItem.States)) - { - updateReport.States = newItem.States; - } - db.SubmitChanges(); - } - - return newItem.MonthReportId; - } - } - #endregion - #endregion - } -} diff --git a/SGGL/BLL/API/HSSE/APIServerTestRecordService.cs b/SGGL/BLL/API/HSSE/APIServerTestRecordService.cs index ca2f8517..abafb64f 100644 --- a/SGGL/BLL/API/HSSE/APIServerTestRecordService.cs +++ b/SGGL/BLL/API/HSSE/APIServerTestRecordService.cs @@ -30,10 +30,10 @@ namespace BLL newTestRecord.TestPlanName = getTestPlan.PlanName; newTestRecord.TestPlanId = testPlanId; newTestRecord.TestPlanStartTime = string.Format("{0:yyyy-MM-dd HH:mm:ss}", getTestPlan.TestStartTime); - newTestRecord.TestPlanEndTime = string.Format("{0:yyyy-MM-dd HH:mm:ss}", getTestPlan.TestEndTime); - newTestRecord.TestManId = testManId; + newTestRecord.TestPlanEndTime = string.Format("{0:yyyy-MM-dd HH:mm:ss}", getTestPlan.TestEndTime); + newTestRecord.TestManId = testManId; newTestRecord.UserType = userType; - var getUpdateTestRecord = db.Test_TestRecord.FirstOrDefault(x => x.TestPlanId == testPlanId && x.IdentityCard == identityCard); + var getUpdateTestRecord = db.Test_TestRecord.FirstOrDefault(x => x.TestPlanId == testPlanId && x.IdentityCard == identityCard); if (getUpdateTestRecord == null && userType != "2") { getUpdateTestRecord = db.Test_TestRecord.FirstOrDefault(x => x.TestPlanId == testPlanId && x.TestManId == testManId); @@ -41,9 +41,9 @@ namespace BLL if (getUpdateTestRecord != null) { newTestRecord.TestRecordId = getUpdateTestRecord.TestRecordId; - newTestRecord.DepartId = getUpdateTestRecord.DepartId; - newTestRecord.UnitId = getUpdateTestRecord.UnitId; - newTestRecord.ProjectId = getUpdateTestRecord.ProjectId; + newTestRecord.DepartId = getUpdateTestRecord.DepartId; + newTestRecord.UnitId = getUpdateTestRecord.UnitId; + newTestRecord.ProjectId = getUpdateTestRecord.ProjectId; newTestRecord.TestManName = getUpdateTestRecord.TestManName; newTestRecord.Telephone = getUpdateTestRecord.Telephone; newTestRecord.IdentityCard = getUpdateTestRecord.IdentityCard; @@ -91,7 +91,7 @@ namespace BLL else { newTestRecord.IsThiUnit = false; - } + } } return newTestRecord; } @@ -142,11 +142,7 @@ namespace BLL if (string.IsNullOrEmpty(newTestRecord.ManType)) { - if (testRecord.TestManId == Const.sedinId) - { - newTestRecord.ManType = "2"; - } - else if (UserService.GetUserByUserId(testRecord.TestManId) != null) + if (UserService.GetUserByUserId(testRecord.TestManId) != null) { newTestRecord.ManType = "1"; } @@ -157,7 +153,7 @@ namespace BLL } Model.Test_TestRecord getUpdateTestRecord = new Model.Test_TestRecord(); -; getUpdateTestRecord = db.Test_TestRecord.FirstOrDefault(x => x.TestRecordId == testRecord.TestRecordId); + ; getUpdateTestRecord = db.Test_TestRecord.FirstOrDefault(x => x.TestRecordId == testRecord.TestRecordId); if (getUpdateTestRecord == null) { getUpdateTestRecord = db.Test_TestRecord.FirstOrDefault(x => x.TestPlanId == testRecord.TestPlanId && x.IdentityCard == testRecord.IdentityCard); @@ -186,7 +182,7 @@ namespace BLL { if (getTestPlan.TestEndTime > DateTime.Now) { - var getTestPlanTraining = db.Test_TestPlanTraining.Where(x => x.TestPlanId == getTestPlan.TestPlanId && x.UserType == testRecord.UserType ); + var getTestPlanTraining = db.Test_TestPlanTraining.Where(x => x.TestPlanId == getTestPlan.TestPlanId && x.UserType == testRecord.UserType); if (getTestPlanTraining.Count() > 0) { int cout1 = getTestPlanTraining.Sum(x => x.TestType1Count ?? 0); @@ -311,8 +307,8 @@ namespace BLL { var getTestPlan = db.Test_TestPlan.FirstOrDefault(x => x.TestPlanId == testPlanId); var getTestRecord = db.Test_TestRecord.FirstOrDefault(x => x.TestRecordId == testRecordId); - if(getTestPlan != null && getTestRecord != null) - { + if (getTestPlan != null && getTestRecord != null) + { ////是否已经存在试卷 var item = db.Test_TestRecordItem.FirstOrDefault(x => x.TestRecordId == testRecordId); if (item == null) @@ -419,7 +415,7 @@ namespace BLL Score = x.TestType == "1" ? getTestPlan.SValue : (x.TestType == "2" ? getTestPlan.MValue : getTestPlan.JValue), }; - db.Test_TestRecordItem.InsertAllOnSubmit(getItems); + db.Test_TestRecordItem.InsertAllOnSubmit(getItems); getTestRecord.TestStartTime = DateTime.Now; db.SubmitChanges(); } diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj index 32fd538a..1c759f50 100644 --- a/SGGL/BLL/BLL.csproj +++ b/SGGL/BLL/BLL.csproj @@ -241,7 +241,6 @@ - @@ -713,7 +712,6 @@ - diff --git a/SGGL/BLL/Common/CommonService.cs b/SGGL/BLL/Common/CommonService.cs index 30c4125b..55762fb7 100644 --- a/SGGL/BLL/Common/CommonService.cs +++ b/SGGL/BLL/Common/CommonService.cs @@ -26,10 +26,6 @@ namespace BLL { return new List() { Const.Menu_Server, Const.Menu_HSSE, Const.Menu_CQMS, Const.Menu_HJGL }; } - else if (userId == Const.sedinId) - { - return new List() { Const.Menu_CQMS }; - } else { List returnList = new List(); @@ -110,7 +106,7 @@ namespace BLL || x.MenuType == Const.Menu_PZHGL) select x; List menus = new List(); - if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId) + if (userId == Const.sysglyId || userId == Const.hfnbdId) { menus = getMenus.ToList(); } @@ -173,15 +169,7 @@ namespace BLL { ///1、当前用户是管理员 ///2、当前菜单是个人设置 - if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId) - { - returnValue = true; - } - else if (userId == Const.sedinId) - { - returnValue = true; - } - else if (menu.MenuType == Const.Menu_Personal) + if (userId == Const.sysglyId || userId == Const.hfnbdId) { returnValue = true; } @@ -225,10 +213,6 @@ namespace BLL try { List buttons = new List(); - if (userId == Const.sedinId) - { - return buttonList; - } var getMenu = Funs.DB.Sys_Menu.FirstOrDefault(x => x.MenuId == menuId); var user = BLL.UserService.GetUserByUserId(userId); ////用户 @@ -289,11 +273,7 @@ namespace BLL public static bool GetAllButtonPowerList(string projectId, string userId, string menuId, string buttonName) { Model.CNPCDB db = Funs.DB; - bool isPower = false; ////定义是否具备按钮权限 - if (userId == Const.sedinId) - { - return isPower; - } + bool isPower = false; ////定义是否具备按钮权限 if (!isPower && (userId == Const.sysglyId || userId == Const.hfnbdId)) { isPower = true; @@ -382,7 +362,7 @@ namespace BLL public static bool IsThisUnitLeaderOfficeOrManage(string userId) { bool result = false; - if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId) + if (userId == Const.sysglyId || userId == Const.hfnbdId ) { result = true; } @@ -414,7 +394,7 @@ namespace BLL var getUser = db.Sys_User.FirstOrDefault(x => x.UserId == userId); if (getUser != null) { - if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId) + if (userId == Const.sysglyId || userId == Const.hfnbdId ) { isHave = true; } diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs index 5daf84e4..71d44db7 100644 --- a/SGGL/BLL/Common/Const.cs +++ b/SGGL/BLL/Common/Const.cs @@ -3243,10 +3243,6 @@ namespace BLL /// public const string ProjectManagerWeekMenuId = "AE118E9C-C309-43B7-A198-8CA90A8D98EB"; - /// - /// 月报(赛鼎) - /// - public const string ProjectManagerMonth_SeDinMenuId = "D0EC3002-E1FA-457D-AC3B-4C7B2D71DD82"; /// /// HSSE管理月报 /// diff --git a/SGGL/BLL/Common/PrinterDocService.cs b/SGGL/BLL/Common/PrinterDocService.cs index 062d8804..71ba9844 100644 --- a/SGGL/BLL/Common/PrinterDocService.cs +++ b/SGGL/BLL/Common/PrinterDocService.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Data; using System.Text; - using System.Collections; using System.Linq; /// @@ -21,19 +20,7 @@ { System.Web.HttpContext.Current.Response.ClearContent(); string htmlStr = string.Empty; - if (menuId == (Const.ProjectRectifyNoticesMenuId + "#1")) - { - htmlStr = GetRectifyNoticesTableHtml(id); - } - else if (menuId == (Const.ProjectRectifyNoticesMenuId + "#2")) - { - htmlStr = GetRectifyNoticesTableHtml2(id); - } - else if (menuId == Const.ProjectManagerMonth_SeDinMenuId) - { - htmlStr = GetMonthReportHtml(id); - } - else if (menuId == Const.ProjectTestRecordMenuId) + if (menuId == Const.ProjectTestRecordMenuId) { htmlStr = GetTestRecordHtml(id); } @@ -44,7 +31,7 @@ if (!string.IsNullOrEmpty(htmlStr)) { string filename = name + Funs.GetNewFileName(); - System.Web.HttpContext.Current.Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpContext.Current.Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode(filename, Encoding.UTF8) + ".doc"); System.Web.HttpContext.Current.Response.ContentType = "application/word"; System.Web.HttpContext.Current.Response.ContentEncoding = Encoding.UTF8; @@ -53,1346 +40,6 @@ } } - #region 隐患整改通知单 - /// - /// 导出方法 - /// - /// - /// - public static string GetRectifyNoticesTableHtml(string rectifyNoticesId) - { - StringBuilder sb = new StringBuilder(); - var getRectifyNotices = RectifyNoticesService.GetRectifyNoticesById(rectifyNoticesId); - if (getRectifyNotices != null) - { - sb.Append(""); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", "安全隐患整改通知单"); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "项目名称:" + BLL.ProjectService.GetProjectNameByProjectId(getRectifyNotices.ProjectId)); - sb.AppendFormat(" ", "编号:" + getRectifyNotices.RectifyNoticesCode); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "受检单位名称"); - sb.AppendFormat(" ", UnitService.GetUnitNameByUnitId(getRectifyNotices.UnitId)); - sb.AppendFormat(" ", "单位工程名称"); - sb.AppendFormat(" ", UnitWorkService.GetUnitWorkName(getRectifyNotices.WorkAreaId)); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "检查人员"); - sb.AppendFormat(" ", UserService.getUserNamesUserIds(getRectifyNotices.CheckManIds)); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "检查日期"); - sb.AppendFormat(" ", string.Format("{0:yyyy-MM-dd}", getRectifyNotices.CheckedDate)); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "隐患类别"); - if (getRectifyNotices.HiddenHazardType == "3") - { - sb.AppendFormat(" ", "☐一般 ☐较大 √重大"); - } - else if (getRectifyNotices.HiddenHazardType == "2") - { - sb.AppendFormat(" ", "☐一般 √较大 ☐重大"); - } - else - { - sb.AppendFormat(" ", "√一般 ☐较大 ☐重大"); - } - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "贵公司存在的安全隐患及整改要求如下:"); - sb.Append(""); - - var getItem = from x in Funs.DB.Check_RectifyNoticesItem - where x.RectifyNoticesId == rectifyNoticesId - orderby x.RectifyNoticesItemId - select x; - int i = 1; - foreach (var item in getItem) - { - string contStr = "   " + i.ToString() + "." + item.WrongContent + "(详见附图" + i.ToString() + "),整改要求:" + item.Requirement; - if (item.LimitTime.HasValue) - { - contStr += " 整改期限" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", item.LimitTime); - } - - sb.Append(""); - sb.AppendFormat(" ", contStr); - sb.Append(""); - i++; - } - - sb.Append(""); - sb.AppendFormat(" ", ""); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "总包单位项目安全经理:" + UserService.getSignatureName(getRectifyNotices.SignPerson) + "   "); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "日期:" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", getRectifyNotices.SignDate) + "   "); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "抄送:"); - if (string.IsNullOrEmpty(getRectifyNotices.ProfessionalEngineerId)) - { - sb.AppendFormat(" ", "☐专业工程师:"); - sb.AppendFormat(" ", "日期:"); - } - else - { - sb.AppendFormat(" ", "√专业工程师:" + UserService.getSignatureName(getRectifyNotices.ProfessionalEngineerId)); - sb.AppendFormat(" ", "日期:" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", getRectifyNotices.ProfessionalEngineerTime1)); - } - sb.Append(""); - - sb.Append(""); - if (string.IsNullOrEmpty(getRectifyNotices.ConstructionManagerId)) - { - sb.AppendFormat(" ", "☐施工经理:"); - sb.AppendFormat(" ", "日期:"); - } - else - { - sb.AppendFormat(" ", "√施工经理:" + UserService.getSignatureName(getRectifyNotices.ConstructionManagerId)); - sb.AppendFormat(" ", "日期:" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", getRectifyNotices.ConstructionManagerTime1)); - } - sb.Append(""); - - sb.Append(""); - if (string.IsNullOrEmpty(getRectifyNotices.ProjectManagerId)) - { - sb.AppendFormat(" ", "☐项目经理:"); - sb.AppendFormat(" ", "日期:"); - } - else - { - sb.AppendFormat(" ", "√项目经理:" + UserService.getSignatureName(getRectifyNotices.ProjectManagerId)); - sb.AppendFormat(" ", "日期:" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", getRectifyNotices.ProjectManagerTime1)); - } - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "接收人"); - sb.AppendFormat(" ", UserService.getSignatureName(getRectifyNotices.DutyPersonId)); - sb.AppendFormat(" ", "接收日期"); - sb.AppendFormat(" ", string.Format("{0:yyyy-MM-dd HH:mm:ss}", getRectifyNotices.DutyPersonTime)); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "注: 1.本表由总包单位项目安全经理签发,一般隐患抄送专业工程师监督;较大隐患抄送施工经理监督;重大隐患需要由项目经理签字并报公司施工管理部备案。"); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "   2.本表一式2份,签发单位和接收单位各一份。"); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "附图:"); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "整改前的照片"); - sb.Append(""); - - int j = 1; - foreach (var item in getItem) - { - var att = AttachFileService.GetAttachFile(item.RectifyNoticesItemId.ToString() + "#1", BLL.Const.ProjectRectifyNoticesMenuId); - if (att != null && !string.IsNullOrEmpty(att.AttachUrl)) - { - string imgStr = string.Empty; - List listStr = Funs.GetStrListByStr(att.AttachUrl, ','); - foreach (var urlItem in listStr) - { - imgStr += "  "; - } - sb.Append(""); - sb.AppendFormat(" ", imgStr); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", "图 " + j.ToString()); - sb.Append(""); - - j++; - } - } - sb.Append("
{0}
{0}{0}
{0}{0}{0}{0}
{0}{0}
{0}{0}
{0}{0}{0}{0}
{0}
{0}
{0}
{0}
{0}
{0}{0}{0}{0}{0}
{0}{0}{0}{0}
{0}{0}{0}{0}
{0}{0}{0}{0}
{0}
{0}
{0}
{0}
{0}
{0}
"); - } - return sb.ToString(); - } - #endregion - - #region 安全隐患整改反馈单 - /// - /// 导出方法 - /// - /// - /// - public static string GetRectifyNoticesTableHtml2(string rectifyNoticesId) - { - StringBuilder sb = new StringBuilder(); - var getRectifyNotices = RectifyNoticesService.GetRectifyNoticesById(rectifyNoticesId); - if (getRectifyNotices != null) - { - sb.Append(""); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", "安全隐患整改反馈单"); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "项目名称:" + BLL.ProjectService.GetProjectNameByProjectId(getRectifyNotices.ProjectId)); - sb.AppendFormat(" ", "编号:" + getRectifyNotices.RectifyNoticesCode); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "受检单位名称"); - sb.AppendFormat(" ", UnitService.GetUnitNameByUnitId(getRectifyNotices.UnitId)); - sb.AppendFormat(" ", "单位工程名称"); - sb.AppendFormat(" ", UnitWorkService.GetUnitWorkName(getRectifyNotices.WorkAreaId)); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "检查人员"); - sb.AppendFormat(" ", UserService.getUserNamesUserIds(getRectifyNotices.CheckManIds)); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "检查日期"); - sb.AppendFormat(" ", string.Format("{0:yyyy-MM-dd}", getRectifyNotices.CheckedDate)); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "隐患类别"); - if (getRectifyNotices.HiddenHazardType == "3") - { - sb.AppendFormat(" ", "☐一般 ☐较大 √重大"); - } - else if (getRectifyNotices.HiddenHazardType == "2") - { - sb.AppendFormat(" ", "☐一般 √较大 ☐重大"); - } - else - { - sb.AppendFormat(" ", "√一般 ☐较大 ☐重大"); - } - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "   我单位接到编号为 " + getRectifyNotices.RectifyNoticesCode + " 的安全隐患整改通知单后,现已按要求完成了整改,具体整改情况如下:"); - sb.Append(""); - - var getItem = from x in Funs.DB.Check_RectifyNoticesItem - where x.RectifyNoticesId == rectifyNoticesId - orderby x.RectifyNoticesItemId - select x; - int i = 1; - foreach (var item in getItem) - { - string contStr = "   " + i.ToString() + "." + item.RectifyResults + "(详见附图" + i.ToString() + ")。是否合格:" + (item.IsRectify.HasValue ? (item.IsRectify == true ? "合格" : "不合格") : ""); - sb.Append(""); - sb.AppendFormat(" ", contStr); - sb.Append(""); - i++; - } - - sb.Append(""); - sb.AppendFormat(" ", ""); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "施工单位项目安全经理:" + UserService.getSignatureName(getRectifyNotices.DutyPersonId) + "   " - + "日期:" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", getRectifyNotices.CompleteDate) + "   "); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "施工单位项目负责人:" + UserService.getSignatureName(getRectifyNotices.UnitHeadManId) + "   " - + "日期:" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", getRectifyNotices.UnitHeadManDate) + "   "); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "总包单位复查意见:"); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "   " + getRectifyNotices.ReCheckOpinion); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", ""); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "安全经理/安全工程师:" + UserService.getSignatureName(getRectifyNotices.CheckPerson) + "   "); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "日期:" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", getRectifyNotices.ReCheckDate) + "   "); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "抄送:"); - if (string.IsNullOrEmpty(getRectifyNotices.ProfessionalEngineerId)) - { - sb.AppendFormat(" ", "☐专业工程师:"); - sb.AppendFormat(" ", "日期:"); - } - else - { - sb.AppendFormat(" ", "√专业工程师:" + UserService.getSignatureName(getRectifyNotices.ProfessionalEngineerId)); - sb.AppendFormat(" ", "日期:" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", getRectifyNotices.ProfessionalEngineerTime2)); - } - sb.Append(""); - - sb.Append(""); - if (string.IsNullOrEmpty(getRectifyNotices.ConstructionManagerId)) - { - sb.AppendFormat(" ", "☐施工经理:"); - sb.AppendFormat(" ", "日期:"); - } - else - { - sb.AppendFormat(" ", "√施工经理:" + UserService.getSignatureName(getRectifyNotices.ConstructionManagerId)); - sb.AppendFormat(" ", "日期:" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", getRectifyNotices.ConstructionManagerTime2)); - } - sb.Append(""); - - sb.Append(""); - if (string.IsNullOrEmpty(getRectifyNotices.ProjectManagerId)) - { - sb.AppendFormat(" ", "☐项目经理:"); - sb.AppendFormat(" ", "日期:"); - } - else - { - sb.AppendFormat(" ", "√项目经理:" + UserService.getSignatureName(getRectifyNotices.ProjectManagerId)); - sb.AppendFormat(" ", "日期:" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", getRectifyNotices.ProjectManagerTime2)); - } - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "附图:"); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "整改后的照片"); - sb.Append(""); - - int j = 1; - foreach (var item in getItem) - { - var att = AttachFileService.GetAttachFile(item.RectifyNoticesItemId.ToString() + "#2", BLL.Const.ProjectRectifyNoticesMenuId); - if (att != null && !string.IsNullOrEmpty(att.AttachUrl)) - { - string imgStr = string.Empty; - List listStr = Funs.GetStrListByStr(att.AttachUrl, ','); - foreach (var urlItem in listStr) - { - imgStr += "  "; - } - sb.Append(""); - sb.AppendFormat(" ", imgStr); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", "图 " + j.ToString()); - sb.Append(""); - j++; - } - } - - sb.Append("
{0}
{0}{0}
{0}{0}{0}{0}
{0}{0}
{0}{0}
{0}{0}{0}{0}
{0}
{0}
{0}
{0}
{0}
{0}
{0}
{0}
{0}
{0}
{0}{0}{0}{0}{0}
{0}{0}{0}{0}
{0}{0}{0}{0}
{0}
{0}
{0}
{0}
"); - } - return sb.ToString(); - } - #endregion - - #region 安全月报 - /// - /// 导出方法 - /// - /// - /// - public static string GetMonthReportHtml(string monthReportId) - { - StringBuilder sb = new StringBuilder(); - var getMonthReport = Funs.DB.SeDin_MonthReport.FirstOrDefault(x => x.MonthReportId == monthReportId); - if (getMonthReport != null) - { - sb.Append(""); - sb.Append(""); - sb.Append(""); - //sb.AppendFormat(" ", "安全隐患整改反馈单"); - sb.AppendFormat(" " - , ""); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "文件编号:"); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" " - , ProjectService.GetProjectNameByProjectId(getMonthReport.ProjectId)); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" " - , "HSE月报告"); - sb.Append(""); - - sb.Append(""); - string dateStr = "报告期"+string.Format("{0:yyyy-MM-dd}",getMonthReport.StartDate)+" 至 "+ string.Format("{0:yyyy-MM-dd}", getMonthReport.EndDate); - sb.AppendFormat(" " - , dateStr); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" " , ""); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "编制:" + UserService.GetUserNameByUserId(getMonthReport.CompileManId)); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", "审核:" + UserService.GetUserNameByUserId(getMonthReport.AuditManId)); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", "批准:" + UserService.GetUserNameByUserId(getMonthReport.ApprovalManId)); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", ""); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "项目现场HSE月报"); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" " - , "报告截止日期:" + string.Format("{0:yyyy-MM-dd}", getMonthReport.DueDate)); - sb.Append(""); - - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", ""); - sb.Append(""); - #region 2、项目安全工时统计 - var getMonthReport2 = Funs.DB.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReportId); - if (getMonthReport2 != null) - { - sb.Append("
{0}{0}
{0}
{0}
{0}
{0}
{0}
{0}
{0}
{0}
{0}
{0}
{0}
"); - - #region 1、项目信息 - var getMonthReport1 = Funs.DB.SeDin_MonthReport1.FirstOrDefault(x => x.MonthReportId == monthReportId); - if (getMonthReport1 != null) - { - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" " - , "1、项目信息:"); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" " - , "项目编号"); - sb.AppendFormat(" " - , getMonthReport1.ProjectCode); - sb.AppendFormat(" " - , "项目名称"); - sb.AppendFormat(" " - , getMonthReport1.ProjectName); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" " - , "项目类型"); - sb.AppendFormat(" " - , getMonthReport1.ProjectType); - sb.AppendFormat(" " - , "合同工期"); - sb.AppendFormat(" " - , string.Format("{0:yyyy-MM-dd}", getMonthReport1.StartDate)+" 至 " + string.Format("{0:yyyy-MM-dd}", getMonthReport1.EndDate)); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" " - , "项目经理及联系方式"); - sb.AppendFormat(" " - , getMonthReport1.ProjectManager); - sb.AppendFormat(" " - , "安全经理及联系方式"); - sb.AppendFormat(" " - , getMonthReport1.HsseManager); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" " - , "合同额"); - sb.AppendFormat(" " - , getMonthReport1.ContractAmount); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" " - , "所处的施工阶段"); - sb.AppendFormat(" " - , getMonthReport1.ConstructionStage); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" " - , "项目所在地"); - sb.AppendFormat(" " - , getMonthReport1.ProjectAddress); - sb.Append(""); - - sb.Append("
{0}
{0}{0}{0}{0}
{0}{0}{0}{0}
{0}{0}{0}{0}
{0}{0}
{0}{0}
{0}{0}
"); - } - #endregion - - sb.Append("
{0}
"); - sb.Append(""); - sb.AppendFormat(" " - , "2、项目安全工时统计:"); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" " - , "当月安全人工时"); - sb.AppendFormat(" " - , getMonthReport2.MonthWorkTime); - sb.AppendFormat(" " - , "年度累计安全人工时"); - sb.AppendFormat(" " - , getMonthReport2.YearWorkTime); - sb.AppendFormat(" " - , "项目累计安全人工时"); - sb.AppendFormat(" " - , getMonthReport2.ProjectWorkTime); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" " - , "总损失工时"); - sb.AppendFormat(" " - , getMonthReport2.TotalLostTime); - sb.AppendFormat(" " - , "百万工时损失率"); - sb.AppendFormat(" " - , getMonthReport2.MillionLossRate); - sb.AppendFormat(" " - , "工时统计准确率"); - sb.AppendFormat(" " - , getMonthReport2.TimeAccuracyRate); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" " - , "本项目自"+string.Format("{0:yyyy-MM-dd}", getMonthReport2.StartDate)+" 至 " + string.Format("{0:yyyy-MM-dd}", getMonthReport2.EndDate) - +"安全生产"+ getMonthReport2 .SafeWorkTime .ToString()+ "人工时,无可记录事故"); - sb.Append(""); - - sb.Append("
{0}
{0}{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}{0}
{0}
"); - } - #endregion - - sb.Append(""); - sb.AppendFormat("{0} ", ""); - sb.Append(""); - #region 3、项目HSE事故、事件统计 - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" " - , "3、项目HSE事故、事件统计:"); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "事故类型"); - sb.AppendFormat(" ", "次数本月"); - sb.AppendFormat(" ", "次数累计"); - sb.AppendFormat(" ", "损失工时(本月)"); - sb.AppendFormat(" ", "损失工时(累计)"); - sb.AppendFormat(" ", "经济损失(本月)"); - sb.AppendFormat(" ", "经济损失(累计)"); - sb.AppendFormat(" ", "人数当月"); - sb.AppendFormat(" ", "人数累计"); - sb.Append(""); - var getMonthReport3 = from x in Funs.DB.SeDin_MonthReport3 - where x.MonthReportId == monthReportId - orderby x.SortIndex - select x; - if (getMonthReport3.Count() > 0) - { - foreach (var item in getMonthReport3) - { - sb.Append(""); - if (!string.IsNullOrEmpty(item.BigType) && item.SortIndex ==1) - { - sb.AppendFormat(" ", item.BigType); - - } - if (item.SortIndex > 4) - { - sb.AppendFormat(" ", item.AccidentType); - } - else - { - sb.AppendFormat(" ", item.AccidentType); - } - sb.AppendFormat(" ", item.MonthTimes); - sb.AppendFormat(" ", item.TotalTimes); - sb.AppendFormat(" ", item.MonthLossTime); - sb.AppendFormat(" ", item.TotalLossTime); - sb.AppendFormat(" ", item.MonthMoney); - sb.AppendFormat(" ", item.TotalMoney); - sb.AppendFormat(" ", item.MonthPersons); - sb.AppendFormat(" ", item.TotalPersons); - - sb.Append(""); - } - - sb.Append(""); - sb.AppendFormat(" ", "事故综述(含未遂事故、事件)"); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", getMonthReport.AccidentsSummary); - sb.Append(""); - - sb.Append("
{0}
{0}{0}{0}{0}{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}
{0}
{0}
"); - } - #endregion - - sb.Append(""); - sb.AppendFormat("{0} ", ""); - sb.Append(""); - #region 4、本月人员投入情况 - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" " - , "4、本月人员投入情况:"); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "单位名称"); - sb.AppendFormat(" ", "管理人员"); - sb.AppendFormat(" ", "作业人员"); - sb.AppendFormat(" ", "合计"); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "安全管理"); - sb.AppendFormat(" ", "其他管理"); - sb.AppendFormat(" ", "特种作业"); - sb.AppendFormat(" ", "一般作业"); - sb.Append(""); - var getMonthReport4 = from x in Funs.DB.SeDin_MonthReport4 - where x.MonthReportId == monthReportId - orderby x.UnitName - select x; - if (getMonthReport4.Count() > 0) - { - foreach (var item in getMonthReport4) - { - sb.Append(""); - sb.AppendFormat(" ", item.UnitName); - sb.AppendFormat(" ", item.SafeManangerNum); - sb.AppendFormat(" ", item.OtherManangerNum); - sb.AppendFormat(" ", item.SpecialWorkerNum); - sb.AppendFormat(" ", item.GeneralWorkerNum); - sb.AppendFormat(" ", item.TotalNum); - sb.Append(""); - } - - sb.Append(""); - sb.AppendFormat(" ", "合计"); - sb.AppendFormat(" ", getMonthReport4.Sum(x=>x.SafeManangerNum) ?? 0); - sb.AppendFormat(" ", getMonthReport4.Sum(x => x.OtherManangerNum) ?? 0); - sb.AppendFormat(" ", getMonthReport4.Sum(x => x.SpecialWorkerNum) ?? 0); - sb.AppendFormat(" ", getMonthReport4.Sum(x => x.GeneralWorkerNum) ?? 0); - sb.AppendFormat(" ", getMonthReport4.Sum(x => x.TotalNum) ?? 0); - sb.Append(""); - - sb.Append("
{0}
{0}{0}{0}{0}
{0}{0}{0}{0}
{0}{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}{0}
"); - } - #endregion - #region 4、赛鼎公司人员信息统计 - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" " - , "赛鼎公司人员信息统计"); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "项目现场正式员工总数"); - sb.AppendFormat(" ", "项目现场外聘人员总数"); - sb.AppendFormat(" ", "项目现场外籍人员总数"); - sb.AppendFormat(" ", "项目现场HSE管理人员总数"); - sb.AppendFormat(" ", "项目现场员工总数(含外聘)"); - sb.Append(""); - int count1 = 0, count2 = 0, count3 = 0, count4 = 0, count5 = 0; - var getMonthReport4Other = Funs.DB.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReportId); - if (getMonthReport4Other != null) - { - count1 = getMonthReport4Other.FormalNum ?? 0; - count2 = getMonthReport4Other.ForeignNum ?? 0; - count3 = getMonthReport4Other.OutsideNum ?? 0; - count4 = getMonthReport4Other.ManagerNum ?? 0; - count5 = getMonthReport4Other.TotalNum ?? 0; - } - - sb.Append(""); - sb.AppendFormat(" ", count1); - sb.AppendFormat(" ", count2); - sb.AppendFormat(" ", count3); - sb.AppendFormat(" ", count4); - sb.AppendFormat(" ", count5); - sb.Append(""); - - sb.Append("
{0}
{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}
"); - #endregion - - sb.Append(""); - sb.AppendFormat("{0} ", ""); - sb.Append(""); - #region 5、本月大型、特种设备投入情况 - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" " - , "5、本月大型、特种设备投入情况:"); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", "单位名称"); - sb.AppendFormat(" ", "特种设备"); - sb.AppendFormat(" ", "大型机具设备"); - sb.AppendFormat(" ", "特殊机具设备"); - sb.AppendFormat(" ", "合计"); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "汽车吊"); - sb.AppendFormat(" ", "履带吊"); - sb.AppendFormat(" ", "塔吊"); - sb.AppendFormat(" ", "门式起重机"); - sb.AppendFormat(" ", "升降机"); - sb.AppendFormat(" ", "叉车"); - sb.AppendFormat(" ", "挖掘机"); - sb.AppendFormat(" ", "装载机"); - sb.AppendFormat(" ", "拖板车"); - sb.AppendFormat(" ", "桩机"); - sb.AppendFormat(" ", "吊篮"); - sb.Append(""); - var getMonthReport5 = from x in Funs.DB.SeDin_MonthReport5 - where x.MonthReportId == monthReportId - orderby x.UnitName - select x; - if (getMonthReport5.Count() > 0) - { - foreach (var item in getMonthReport5) - { - sb.Append(""); - sb.AppendFormat(" ", item.UnitName); - sb.AppendFormat(" ", item.T01); - sb.AppendFormat(" ", item.T02); - sb.AppendFormat(" ", item.T03); - sb.AppendFormat(" ", item.T04); - sb.AppendFormat(" ", item.T05); - sb.AppendFormat(" ", item.T06); - - sb.AppendFormat(" ", item.D01); - sb.AppendFormat(" ", item.D02); - sb.AppendFormat(" ", item.D03); - sb.AppendFormat(" ", item.D04); - sb.AppendFormat(" ", item.S01); - - sb.AppendFormat(" ", (item.T01 ?? 0) + (item.T02 ?? 0) + (item.T03 ?? 0) + (item.T04 ?? 0) + (item.T05 ?? 0) + (item.T06 ?? 0) - + (item.D01 ?? 0) + (item.D02 ?? 0) + (item.D03 ?? 0) + (item.D04 ?? 0) + (item.S01 ?? 0)); - sb.Append(""); - } - - sb.Append(""); - sb.AppendFormat(" ", "合计"); - int sumt01 = getMonthReport5.Sum(x => x.T01) ?? 0; - int sumt02 = getMonthReport5.Sum(x => x.T02) ?? 0; - int sumt03 = getMonthReport5.Sum(x => x.T03) ?? 0; - int sumt04 = getMonthReport5.Sum(x => x.T04) ?? 0; - int sumt05 = getMonthReport5.Sum(x => x.T05) ?? 0; - int sumt06 = getMonthReport5.Sum(x => x.T06) ?? 0; - int sumd01 = getMonthReport5.Sum(x => x.D01) ?? 0; - int sumd02 = getMonthReport5.Sum(x => x.D02) ?? 0; - int sumd03 = getMonthReport5.Sum(x => x.D03) ?? 0; - int sumd04 = getMonthReport5.Sum(x => x.D04) ?? 0; - int sums01 = getMonthReport5.Sum(x => x.S01) ?? 0; - sb.AppendFormat(" ", sumt01); - sb.AppendFormat(" ", sumt02); - sb.AppendFormat(" ", sumt03); - sb.AppendFormat(" ", sumt04); - sb.AppendFormat(" ", sumt05); - sb.AppendFormat(" ", sumt06); - sb.AppendFormat(" ", sumd01); - sb.AppendFormat(" ", sumd02); - sb.AppendFormat(" ", sumd03); - sb.AppendFormat(" ", sumd04); - sb.AppendFormat(" ", sums01); - sb.AppendFormat(" ", sumt02+ sumt03+ sumt01+ sumt05+ sumt06+ sumd01+ sumd02 + sumd03 + sumd04 + sums01); - sb.Append(""); - - sb.Append("
{0}
{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}
"); - } - #endregion - - sb.Append(""); - sb.AppendFormat("{0} ", ""); - sb.Append(""); - #region 6、安全生产费用投入情况 - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" " - , "6、安全生产费用投入情况:"); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", ""); - sb.AppendFormat(" ", "安全防护投入"); - sb.AppendFormat(" ", "劳动保护及职业健康投入"); - sb.AppendFormat(" ", "安全技术进步投入"); - sb.AppendFormat(" ", "安全教育培训投入"); - sb.AppendFormat(" ", "合计"); - sb.AppendFormat(" ", "完成合同额"); - sb.Append(""); - var getMonthReport6 = Funs.DB.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReportId); - if (getMonthReport6 != null) - { - sb.Append(""); - sb.AppendFormat(" ","本月"); - sb.AppendFormat(" ", getMonthReport6.SafetyMonth); - sb.AppendFormat(" ", getMonthReport6.LaborMonth); - sb.AppendFormat(" ", getMonthReport6.ProgressMonth); - sb.AppendFormat(" ", getMonthReport6.EducationMonth); - sb.AppendFormat(" ", getMonthReport6.SumMonth); - sb.AppendFormat(" ", getMonthReport6.ContractMonth); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", "年度累计"); - sb.AppendFormat(" ", getMonthReport6.SafetyYear); - sb.AppendFormat(" ", getMonthReport6.LaborYear); - sb.AppendFormat(" ", getMonthReport6.ProgressYear); - sb.AppendFormat(" ", getMonthReport6.EducationYear); - sb.AppendFormat(" ", getMonthReport6.SumYear); - sb.AppendFormat(" ", getMonthReport6.ContractYear); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", "项目累计"); - sb.AppendFormat(" ", getMonthReport6.SafetyTotal); - sb.AppendFormat(" ", getMonthReport6.LaborTotal); - sb.AppendFormat(" ", getMonthReport6.ProgressTotal); - sb.AppendFormat(" ", getMonthReport6.EducationTotal); - sb.AppendFormat(" ", getMonthReport6.SumTotal); - sb.AppendFormat(" ", getMonthReport6.ContractTotal); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", "工程造价占比"); - sb.AppendFormat(" ", getMonthReport6.ConstructionCost); - sb.Append(""); - sb.Append("
{0}
{0}{0}{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}{0}{0}
{0}{0}
"); - } - #endregion - - sb.Append(""); - sb.AppendFormat("{0} ", ""); - sb.Append(""); - #region 7、项目HSE培训统计 - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" " - , "7、项目HSE培训统计:"); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", "培训课程类型"); - sb.AppendFormat(" ", "次数"); - sb.AppendFormat(" ", "参加人次"); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", "本月"); - sb.AppendFormat(" ", "本年度"); - sb.AppendFormat(" ", "项目累计"); - sb.AppendFormat(" ", "本月"); - sb.AppendFormat(" ", "本年度"); - sb.AppendFormat(" ", "项目累计"); - sb.Append(""); - - var getMonthReport7 = Funs.DB.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReportId); - if (getMonthReport7 != null) - { - sb.Append(""); - sb.AppendFormat(" ", "专项安全培训"); - sb.AppendFormat(" ", getMonthReport7.SpecialMontNum); - sb.AppendFormat(" ", getMonthReport7.SpecialYearNum); - sb.AppendFormat(" ", getMonthReport7.SpecialTotalNum); - sb.AppendFormat(" ", getMonthReport7.SpecialMontPerson); - sb.AppendFormat(" ", getMonthReport7.SpecialYearPerson); - sb.AppendFormat(" ", getMonthReport7.SpecialTotalPerson); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", "员工入场安全培训"); - sb.AppendFormat(" ", getMonthReport7.EmployeeMontNum); - sb.AppendFormat(" ", getMonthReport7.EmployeeYearNum); - sb.AppendFormat(" ", getMonthReport7.EmployeeTotalNum); - sb.AppendFormat(" ", getMonthReport7.EmployeeMontPerson); - sb.AppendFormat(" ", getMonthReport7.EmployeeYearPerson); - sb.AppendFormat(" ", getMonthReport7.EmployeeTotalPerson); - sb.Append(""); - sb.Append("
{0}
{0}{0}{0}
{0}{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}{0}{0}
"); - } - #endregion - - sb.Append(""); - sb.AppendFormat("{0} ", ""); - sb.Append(""); - #region 8、项目HSE会议统计 - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" " - , "8、项目HSE会议统计:"); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", "会议类型"); - sb.AppendFormat(" ", "次数(本月)"); - sb.AppendFormat(" ", "次数(累计)"); - sb.AppendFormat(" ", "参会人次(本月)"); - sb.Append(""); - var getMonthReport8 = Funs.DB.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReportId); - if (getMonthReport8 != null) - { - sb.Append(""); - sb.AppendFormat(" ", "周例会"); - sb.AppendFormat(" ", getMonthReport8.WeekMontNum); - sb.AppendFormat(" ", getMonthReport8.WeekTotalNum); - sb.AppendFormat(" ", getMonthReport8.WeekMontPerson); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "月例会(安委会)"); - sb.AppendFormat(" ", getMonthReport8.MonthMontNum); - sb.AppendFormat(" ", getMonthReport8.MonthTotalNum); - sb.AppendFormat(" ", getMonthReport8.MonthMontPerson); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "专题会议"); - sb.AppendFormat(" ", getMonthReport8.SpecialMontNum); - sb.AppendFormat(" ", getMonthReport8.SpecialTotalNum); - sb.AppendFormat(" ", getMonthReport8.SpecialMontPerson); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" " - , "班前会"); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "单位名称"); - sb.AppendFormat(" ", "班组名称"); - sb.AppendFormat(" ", "会议次数(本月)"); - sb.AppendFormat(" ", "参会人数累计(本月)"); - sb.Append(""); - var get8Items = from x in Funs.DB.SeDin_MonthReport8Item - where x.MonthReportId == monthReportId - orderby x.UnitName,x.TeamName - select x; - foreach (var item in get8Items) - { - sb.Append(""); - sb.AppendFormat(" ", item.UnitName); - sb.AppendFormat(" ", item.TeamName); - sb.AppendFormat(" ", item.ClassNum); - sb.AppendFormat(" ", item.ClassPersonNum); - sb.Append(""); - } - sb.Append("
{0}
{0}{0}{0}{0}
{0}{0}{0}{0}
{0}{0}{0}{0}
{0}{0}{0}{0}
{0}
{0}{0}{0}{0}
{0}{0}{0}{0}
"); - } - #endregion - - sb.Append(""); - sb.AppendFormat("{0} ", ""); - sb.Append(""); - #region 9、项目HSE检查统计 - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" " - , "9、项目HSE检查统计:"); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", "检查类型"); - sb.AppendFormat(" ", "次数(本月)"); - sb.AppendFormat(" ", "次数(本年度累计)"); - sb.AppendFormat(" ", "次数(项目总累计)"); - sb.Append(""); - var getMonthReport9 = Funs.DB.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReportId); - if (getMonthReport9 != null) - { - sb.Append(""); - sb.AppendFormat(" ", "日常巡检"); - sb.AppendFormat(" ", getMonthReport9.DailyMonth); - sb.AppendFormat(" ", getMonthReport9.DailyYear); - sb.AppendFormat(" ", getMonthReport9.DailyTotal); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "周联合检查"); - sb.AppendFormat(" ", getMonthReport9.WeekMonth); - sb.AppendFormat(" ", getMonthReport9.WeekYear); - sb.AppendFormat(" ", getMonthReport9.WeekTotal); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "专项检查"); - sb.AppendFormat(" ", getMonthReport9.SpecialMonth); - sb.AppendFormat(" ", getMonthReport9.SpecialYear); - sb.AppendFormat(" ", getMonthReport9.SpecialTotal); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "月综合HSE检查"); - sb.AppendFormat(" ", getMonthReport9.MonthlyMonth); - sb.AppendFormat(" ", getMonthReport9.MonthlyYear); - sb.AppendFormat(" ", getMonthReport9.MonthlyTotal); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" " - , "专项检查"); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "类型"); - sb.AppendFormat(" ", "检查次数(本月)"); - sb.AppendFormat(" ", "次数(本年度累计)"); - sb.AppendFormat(" ", "次数(项目总累计)"); - sb.Append(""); - var get9ItemSpecials = from x in Funs.DB.SeDin_MonthReport9Item_Special - where x.MonthReportId == monthReportId - orderby x.TypeName - select x; - foreach (var item in get9ItemSpecials) - { - sb.Append(""); - sb.AppendFormat(" ", item.TypeName); - sb.AppendFormat(" ", item.CheckMonth); - sb.AppendFormat(" ", item.CheckYear); - sb.AppendFormat(" ", item.CheckTotal); - sb.Append(""); - } - - sb.Append(""); - sb.AppendFormat(" " - , "隐患整改单"); - sb.Append(""); - sb.Append(""); - sb.Append(""); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" " - , "停工令"); - sb.Append(""); - sb.Append(""); - sb.Append(""); - sb.Append(""); - - sb.Append("
{0}
{0}{0}{0}{0}
{0}{0}{0}{0}
{0}{0}{0}{0}
{0}{0}{0}{0}
{0}{0}{0}{0}
{0}
{0}{0}{0}{0}
{0}{0}{0}{0}
{0}
"); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", "单位名称"); - sb.AppendFormat(" ", "下发数量(本月)"); - sb.AppendFormat(" ", "整改完成数量(本月)"); - sb.AppendFormat(" ", "下发数量(累计)"); - sb.AppendFormat(" ", "整改完成数量(累计)"); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", "一般"); - sb.AppendFormat(" ", "较大"); - sb.AppendFormat(" ", "重大"); - sb.AppendFormat(" ", "一般"); - sb.AppendFormat(" ", "较大"); - sb.AppendFormat(" ", "重大"); - sb.AppendFormat(" ", "一般"); - sb.AppendFormat(" ", "较大"); - sb.AppendFormat(" ", "重大"); - sb.AppendFormat(" ", "一般"); - sb.AppendFormat(" ", "较大"); - sb.AppendFormat(" ", "重大"); - sb.Append(""); - var get9ItemRectifications = from x in Funs.DB.SeDin_MonthReport9Item_Rectification - where x.MonthReportId == monthReportId - orderby x.UnitName - select x; - foreach (var itemr in get9ItemRectifications) - { - sb.Append(""); - sb.AppendFormat(" ", itemr.UnitName); - sb.AppendFormat(" ", itemr.IssuedMonth ?? 0); - sb.AppendFormat(" ", itemr.IssuedMonthLarge ?? 0); - sb.AppendFormat(" ", itemr.IssuedMonthSerious ?? 0); - sb.AppendFormat(" ", itemr.RectificationMoth ?? 0); - sb.AppendFormat(" ", itemr.RectificationMothLarge ?? 0); - sb.AppendFormat(" ", itemr.RectificationMothSerious ?? 0); - sb.AppendFormat(" ", itemr.IssuedTotal ?? 0); - sb.AppendFormat(" ", itemr.IssuedTotalLarge ?? 0); - sb.AppendFormat(" ", itemr.IssuedTotalSerious ?? 0); - sb.AppendFormat(" ", itemr.RectificationTotal ?? 0); - sb.AppendFormat(" ", itemr.RectificationTotalLarge ?? 0); - sb.AppendFormat(" ", itemr.RectificationTotalSerious ?? 0); - sb.Append(""); - } - sb.Append("
{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}
"); - sb.Append("
{0}
"); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", "单位名称"); - sb.AppendFormat(" ", "下发数量(本月)"); - sb.AppendFormat(" ", "停工天数(本月)"); - sb.AppendFormat(" ", "下发数量(累计)"); - sb.AppendFormat(" ", "停工天数(累计)"); - sb.Append(""); - var get9ItemStoppages = from x in Funs.DB.SeDin_MonthReport9Item_Stoppage - where x.MonthReportId == monthReportId - orderby x.UnitName - select x; - foreach (var items in get9ItemStoppages) - { - sb.Append(""); - sb.AppendFormat(" ", items.UnitName); - sb.AppendFormat(" ", items.IssuedMonth); - sb.AppendFormat(" ", items.StoppageMonth); - sb.AppendFormat(" ", items.IssuedTotal); - sb.AppendFormat(" ", items.StoppageTotal); - sb.Append(""); - } - sb.Append("
{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}
"); - sb.Append("
"); - } - #endregion - - sb.Append(""); - sb.AppendFormat("{0} ", ""); - sb.Append(""); - #region 10、项目奖惩情况统计 - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" " - , "10、项目奖惩情况统计:"); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", "类型"); - sb.AppendFormat(" ", "内容"); - sb.AppendFormat(" ", "次数(本月)"); - sb.AppendFormat(" ", "次数(累计)"); - sb.AppendFormat(" ", "金额(本月)"); - sb.AppendFormat(" ", "金额(累计)"); - sb.Append(""); - var getMonthReport10 = Funs.DB.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReportId); - if (getMonthReport10 != null) - { - sb.Append(""); - sb.AppendFormat(" ", "奖励"); - sb.AppendFormat(" ", "安全工时奖"); - sb.AppendFormat(" ", getMonthReport10.SafeMonthNum); - sb.AppendFormat(" ", getMonthReport10.SafeTotalNum); - sb.AppendFormat(" ", getMonthReport10.SafeMonthMoney); - sb.AppendFormat(" ", getMonthReport10.SafeTotalMoney); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "HSE绩效考核奖励"); - sb.AppendFormat(" ", getMonthReport10.HseMonthNum); - sb.AppendFormat(" ", getMonthReport10.HseTotalNum); - sb.AppendFormat(" ", getMonthReport10.HseMonthMoney); - sb.AppendFormat(" ", getMonthReport10.HseTotalMoney); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "安全生产先进个人奖"); - sb.AppendFormat(" ", getMonthReport10.ProduceMonthNum); - sb.AppendFormat(" ", getMonthReport10.ProduceTotalNum); - sb.AppendFormat(" ", getMonthReport10.ProduceMonthMoney); - sb.AppendFormat(" ", getMonthReport10.ProduceTotalMoney); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "处罚"); - sb.AppendFormat(" ", "事故责任处罚"); - sb.AppendFormat(" ", getMonthReport10.AccidentMonthNum); - sb.AppendFormat(" ", getMonthReport10.AccidentTotalNum); - sb.AppendFormat(" ", getMonthReport10.AccidentMonthMoney); - sb.AppendFormat(" ", getMonthReport10.AccidentTotalMoney); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "违章处罚"); - sb.AppendFormat(" ", getMonthReport10.ViolationMonthNum); - sb.AppendFormat(" ", getMonthReport10.ViolationTotalNum); - sb.AppendFormat(" ", getMonthReport10.ViolationMonthMoney); - sb.AppendFormat(" ", getMonthReport10.ViolationTotalMoney); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "安全管理处罚"); - sb.AppendFormat(" ", getMonthReport10.ManageMonthNum); - sb.AppendFormat(" ", getMonthReport10.ManageTotalNum); - sb.AppendFormat(" ", getMonthReport10.ManageMonthMoney); - sb.AppendFormat(" ", getMonthReport10.ManageTotalMoney); - sb.Append(""); - sb.Append("
{0}
{0}{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}
"); - } - #endregion - - sb.Append(""); - sb.AppendFormat("{0} ", ""); - sb.Append(""); - #region 11、项目危大工程施工情况 - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" " - , "11、项目危大工程施工情况:"); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "类别"); - sb.AppendFormat(" ", "本月正在施工"); - sb.AppendFormat(" ", "已完工"); - sb.AppendFormat(" ", "下月施工计划"); - sb.Append(""); - var getMonthReport11= Funs.DB.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReportId); - if (getMonthReport11 != null) - { - sb.Append(""); - sb.AppendFormat(" ", "危险性较大分部分项工程"); - sb.AppendFormat(" ", getMonthReport11.RiskWorkNum); - sb.AppendFormat(" ", getMonthReport11.RiskFinishedNum); - sb.AppendFormat(" ", getMonthReport11.RiskWorkNext); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "超过一定规模危大工程"); - sb.AppendFormat(" ", getMonthReport11.LargeWorkNum); - sb.AppendFormat(" ", getMonthReport11.LargeFinishedNum); - sb.AppendFormat(" ", getMonthReport11.LargeWorkNext); - sb.Append(""); - sb.Append("
{0}
{0}{0}{0}{0}
{0}{0}{0}{0}
{0}{0}{0}{0}
"); - } - #endregion - - sb.Append(""); - sb.AppendFormat("{0} ", ""); - sb.Append(""); - #region 12、项目应急演练情况 - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" " - , "12、项目应急演练情况:"); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", "类别"); - sb.AppendFormat(" ", "直接投入"); - sb.AppendFormat(" ", "参演人数"); - sb.AppendFormat(" ", "本月次数"); - sb.AppendFormat(" ", "项目累计次数"); - sb.AppendFormat(" ", "下月计划"); - sb.Append(""); - var getMonthReport12 = Funs.DB.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReportId); - if (getMonthReport12 != null) - { - sb.Append(""); - sb.AppendFormat(" ", "综合演练"); - sb.AppendFormat(" ", "现场演练"); - sb.AppendFormat(" ", getMonthReport12.MultipleSiteInput); - sb.AppendFormat(" ", getMonthReport12.MultipleSitePerson); - sb.AppendFormat(" ", getMonthReport12.MultipleSiteNum); - sb.AppendFormat(" ", getMonthReport12.MultipleSiteTotalNum); - sb.AppendFormat(" ", getMonthReport12.MultipleSiteNext); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "桌面演练"); - sb.AppendFormat(" ", getMonthReport12.MultipleDesktopInput); - sb.AppendFormat(" ", getMonthReport12.MultipleDesktopPerson); - sb.AppendFormat(" ", getMonthReport12.MultipleDesktopNum); - sb.AppendFormat(" ", getMonthReport12.MultipleDesktopTotalNum); - sb.AppendFormat(" ", getMonthReport12.MultipleDesktopNext); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "单项演练"); - sb.AppendFormat(" ", "现场演练"); - sb.AppendFormat(" ", getMonthReport12.SingleSiteInput); - sb.AppendFormat(" ", getMonthReport12.SingleSitePerson); - sb.AppendFormat(" ", getMonthReport12.SingleSiteNum); - sb.AppendFormat(" ", getMonthReport12.SingleSiteTotalNum); - sb.AppendFormat(" ", getMonthReport12.SingleSiteNext); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", "桌面演练"); - sb.AppendFormat(" ", getMonthReport12.SingleDesktopInput); - sb.AppendFormat(" ", getMonthReport12.SingleDesktopPerson); - sb.AppendFormat(" ", getMonthReport12.SingleDesktopNum); - sb.AppendFormat(" ", getMonthReport12.SingleDesktopTotalNum); - sb.AppendFormat(" ", getMonthReport12.SingleDesktopNext); - sb.Append(""); - sb.Append("
{0}
{0}{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}{0}{0}
{0}{0}{0}{0}{0}{0}
"); - } - #endregion - - sb.Append(""); - sb.AppendFormat("{0} ", ""); - sb.Append(""); - - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" " - , "13、本月HSE活动综述:"); - sb.Append(""); - - sb.Append(""); - sb.AppendFormat(" ", getMonthReport.ThisSummary ?? ""); - sb.Append(""); - sb.Append("
{0}
{0}
"); - - sb.Append(""); - sb.AppendFormat("{0} ", ""); - sb.Append(""); - - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" " - , "14、下月HSE工作计划:"); - sb.Append(""); - sb.Append(""); - sb.AppendFormat(" ", getMonthReport.NextPlan ?? ""); - sb.Append(""); - sb.Append("
{0}
{0}
"); - - sb.Append(""); - sb.Append(""); - sb.Append(""); - } - return sb.ToString(); - } - #endregion - #region 试卷 /// /// 导出方法 @@ -1407,15 +54,15 @@ if (getTestRecord != null) { var getTestItems = from x in Funs.DB.Training_TestRecordItem - where x.TestRecordId == testRecordId - select x; + where x.TestRecordId == testRecordId + select x; sb.Append(""); sb.Append(""); sb.Append(""); sb.AppendFormat(" ", "中国天辰" + ProjectService.GetProjectNameByProjectId(getTestRecord.ProjectId)); sb.Append(""); sb.Append(""); - var getTrainTypeName = (from x in db.Training_TestPlan + var getTrainTypeName = (from x in db.Training_TestPlan join z in db.Training_Plan on x.PlanId equals z.PlanId join t in db.Base_TrainType on z.TrainTypeId equals t.TrainTypeId where x.TestPlanId == getTestRecord.TestPlanId @@ -1425,7 +72,7 @@ sb.Append("
{0}
"); sb.Append(""); - sb.Append(""); + sb.Append(""); string unitName = ""; string workPostName = ""; string testName = ""; @@ -1438,10 +85,10 @@ testName = person.PersonName; idCard = person.IdentityCard; } - sb.AppendFormat(" ", "单位名称:"+ unitName); - sb.AppendFormat(" ", "工种/职务:"+ workPostName); + sb.AppendFormat(" ", "单位名称:" + unitName); + sb.AppendFormat(" ", "工种/职务:" + workPostName); sb.AppendFormat(" ", "日期:" + string.Format("{0:yyyy-MM-dd}", getTestRecord.TestStartTime)); - + sb.Append(""); sb.Append("
{0}{0}{0}{0}{0}
"); @@ -1458,14 +105,14 @@ sb.Append(""); sb.AppendFormat("{0} ", "一、单项选择题 (每题2分,共50分)"); sb.Append(""); - var getSingleItem = getTestItems.Where(x=> x.TestType == "1").ToList(); + var getSingleItem = getTestItems.Where(x => x.TestType == "1").ToList(); if (getSingleItem.Count > 0) { int num = 1; foreach (var item in getSingleItem) { sb.Append(""); - string Avstracts = item.Abstracts.Replace(" ", "").Replace(" ", "").Replace("(", "(").Replace(")", ")").Replace("()", "(" + item.SelectedItem + ")"); + string Avstracts = item.Abstracts.Replace(" ", "").Replace(" ", "").Replace("(", "(").Replace(")", ")").Replace("()", "(" + item.SelectedItem + ")"); sb.AppendFormat("{0} ", num + "、" + Avstracts); sb.Append(""); @@ -1505,7 +152,7 @@ int num = 1; foreach (var item in getMultipleItem) { - string Avstracts = item.Abstracts.Replace(" ", "").Replace(" ", "").Replace("(", "(").Replace(")", ")").Replace("()", "(" + item.SelectedItem + ")"); + string Avstracts = item.Abstracts.Replace(" ", "").Replace(" ", "").Replace("(", "(").Replace(")", ")").Replace("()", "(" + item.SelectedItem + ")"); sb.AppendFormat("{0} ", num + "、" + Avstracts); sb.Append(""); sb.Append(""); @@ -1585,7 +232,7 @@ else { sb.AppendFormat("{0} ", ""); - } + } sb.Append(""); } @@ -1638,7 +285,7 @@ string qrurl = string.Empty; if (!string.IsNullOrEmpty(getPerson.QRCodeAttachUrl) && CreateQRCodeService.isHaveImage(getPerson.QRCodeAttachUrl)) { - qrurl= getPerson.QRCodeAttachUrl; + qrurl = getPerson.QRCodeAttachUrl; } else { @@ -1654,7 +301,7 @@ workName1 = WorkPostService.getWorkPostNameById(getPerson.WorkPostId); personName1 = getPerson.PersonName; cardNo1 = getPerson.CardNo; - photoUrl1 = getPerson.PhotoUrl; + photoUrl1 = getPerson.PhotoUrl; QRUrl1 = qrurl; } else @@ -1669,7 +316,7 @@ i++; } } - + sb.Append(""); sb.Append(""); sb.Append(""); @@ -1687,13 +334,13 @@ sb.Append("
"); sb.Append(""); sb.AppendFormat(" ", "单位:"); - sb.AppendFormat(" ", unitName1); + sb.AppendFormat(" ", unitName1); string imgStrphotoUrl1 = ""; - sb.AppendFormat(" ", imgStrphotoUrl1); + sb.AppendFormat(" ", imgStrphotoUrl1); sb.Append(""); sb.Append(""); - sb.AppendFormat(" ", "岗位:" ); - sb.AppendFormat(" ", workName1); + sb.AppendFormat(" ", "岗位:"); + sb.AppendFormat(" ", workName1); sb.Append(""); sb.Append(""); sb.AppendFormat(" ", "姓名:"); @@ -1701,7 +348,7 @@ sb.Append(""); sb.Append(""); sb.AppendFormat(" ", "编号:"); - sb.AppendFormat(" ", cardNo1); + sb.AppendFormat(" ", cardNo1); sb.Append(""); sb.Append(""); sb.AppendFormat(" ", ""); diff --git a/SGGL/BLL/DigData/HSEDataCollectService.cs b/SGGL/BLL/DigData/HSEDataCollectService.cs index 456000c8..e7643595 100644 --- a/SGGL/BLL/DigData/HSEDataCollectService.cs +++ b/SGGL/BLL/DigData/HSEDataCollectService.cs @@ -182,8447 +182,5 @@ namespace BLL } } - #region 根据月报信息汇总数据 - /// - /// 根据月报信息汇总数据 - /// - public static void SaveHSEDataCollectItem(Model.SeDin_MonthReport monthReport) - { - Model.CNPCDB db = Funs.DB; - string getHSEDataCollectId = string.Empty; - var getHSEDataCollect = GetHSEDataCollectByYear(monthReport.ReporMonth.Value.Year); - if (getHSEDataCollect != null) - { - getHSEDataCollectId = getHSEDataCollect.HSEDataCollectId; - } - else - { - getHSEDataCollectId = CreateHSEDataCollectByYear(monthReport.ReporMonth.Value.Year); - } - - var getHSEDataCollectItemYear = from x in db.DigData_HSEDataCollectItem - where x.HSEDataCollectId == getHSEDataCollectId - select x; - var getHSEDataCollectISubmissionYear = from x in db.DigData_HSEDataCollectSubmission - where x.HSEDataCollectId == getHSEDataCollectId - select x; - ////一月份 - if (monthReport.ReporMonth.Value.Month == 1) - { - #region 提交情况 - bool isSave = true; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth == null) - { - Model.DigData_HSEDataCollectSubmission newSubmission = new Model.DigData_HSEDataCollectSubmission() - { - HSEDataCollectSubmissionId = SQLHelper.GetNewID(), - HSEDataCollectId = getHSEDataCollectId, - Year = monthReport.ReporMonth.Value.Year, - ProjectId = monthReport.ProjectId, - Month1 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)), - }; - db.DigData_HSEDataCollectSubmission.InsertOnSubmit(newSubmission); - db.SubmitChanges(); - } - else - { - if (!string.IsNullOrEmpty(getSubmissionMonth.Month1)) - { - isSave = false; - } - else - { - getSubmissionMonth.Month1 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)); - db.SubmitChanges(); - } - } - #endregion - #region 一月份 数据汇总 - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month1 = (Funs.GetNewIntOrZero(getItem1.Month1) + getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month1 = (Funs.GetNewIntOrZero(getItem2.Month1) + getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month1 =(Funs.GetNewIntOrZero( getItem3.Month1) + getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month1 = (Funs.GetNewIntOrZero(getItem4.Month1) + getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month1 = (Funs.GetNewIntOrZero(getItem5.Month1) + getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month1 = (Funs.GetNewIntOrZero(getItem6.Month1) +getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month1 = (Funs.GetNewDecimalOrZero(getItem7.Month1) + getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month1 = (Funs.GetNewIntOrZero(getItem8.Month1) + r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month1 = (Funs.GetNewIntOrZero(getItem9.Month1) + r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month1 =(Funs.GetNewIntOrZero(getItem10.Month1)+ r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month1 = (Funs.GetNewIntOrZero(getItem11.Month1) + r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month1 = (Funs.GetNewIntOrZero(getItem12.Month1)+ r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month1 = (Funs.GetNewIntOrZero(getItem13.Month1) + r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month1 = (Funs.GetNewIntOrZero(getItem14.Month1) + r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month1 = (Funs.GetNewIntOrZero(getItem15.Month1) + r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month1 = (Funs.GetNewIntOrZero(getItem16.Month1) + r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month1 = (Funs.GetNewIntOrZero(getItem17.Month1) + r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month1 = (Funs.GetNewIntOrZero(getItem18.Month1) + r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month1 = (Funs.GetNewIntOrZero(getItem19.Month1) + countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month1 = (Funs.GetNewDecimalOrZero(getItem20.Month1) + (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month1 = (Funs.GetNewIntOrZero(getItem21.Month1) + getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month1 = (Funs.GetNewIntOrZero(getItem22.Month1) + getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month1 = (Funs.GetNewIntOrZero(getItem23.Month1) + getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month1 = (Funs.GetNewIntOrZero(getItem24.Month1) + getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month1 = (Funs.GetNewIntOrZero(getItem25.Month1) + getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month1 = (Funs.GetNewIntOrZero(getItem26.Month1) + getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month1 = (Funs.GetNewIntOrZero(getItem27.Month1) + getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month1 = (Funs.GetNewIntOrZero(getItem28.Month1) + getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month1 = (Funs.GetNewIntOrZero(getItem29.Month1) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month1 = (Funs.GetNewIntOrZero(getItem30.Month1) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month1 = (Funs.GetNewIntOrZero(getItem31.Month1) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month1 = (Funs.GetNewIntOrZero(getItem32.Month1) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month1 = (Funs.GetNewIntOrZero(getItem33.Month1) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month1 = (Funs.GetNewIntOrZero(getItem34.Month1) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month1 = (Funs.GetNewIntOrZero(getItem35.Month1) + getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month1 = (Funs.GetNewDecimalOrZero(getItem36.Month1) + (getSeDin_MonthReport10.SafeMonthMoney ?? 0 + getSeDin_MonthReport10.HseMonthMoney ?? 0 + getSeDin_MonthReport10.ProduceMonthMoney ?? 0)/10000).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month1 = (Funs.GetNewDecimalOrZero(getItem37.Month1) + (getSeDin_MonthReport10.AccidentMonthMoney ?? 0 + getSeDin_MonthReport10.ViolationMonthMoney ?? 0 + getSeDin_MonthReport10.ManageMonthMoney ?? 0)/10000).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month1 = (Funs.GetNewIntOrZero(getItem38.Month1) + getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month1 = (Funs.GetNewIntOrZero(getItem39.Month1) + getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month1 = (Funs.GetNewIntOrZero(getItem40.Month1) + getSeDin_MonthReport12.MultipleSiteNum ?? 0 + getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - + getSeDin_MonthReport12.SingleSiteNum ?? 0 + getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - else if (monthReport.ReporMonth.Value.Month == 2) - { - #region 提交情况 - bool isSave = true; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth == null) - { - Model.DigData_HSEDataCollectSubmission newSubmission = new Model.DigData_HSEDataCollectSubmission() - { - HSEDataCollectSubmissionId = SQLHelper.GetNewID(), - HSEDataCollectId = getHSEDataCollectId, - Year = monthReport.ReporMonth.Value.Year, - ProjectId = monthReport.ProjectId, - Month2 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)), - }; - db.DigData_HSEDataCollectSubmission.InsertOnSubmit(newSubmission); - db.SubmitChanges(); - } - else - { - if (!string.IsNullOrEmpty(getSubmissionMonth.Month2)) - { - isSave = false; - } - else - { - getSubmissionMonth.Month2 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)); - db.SubmitChanges(); - } - } - #endregion - #region 二月份 数据汇总 - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month2 = (Funs.GetNewIntOrZero(getItem1.Month2) + getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month2 = (Funs.GetNewIntOrZero(getItem2.Month2) + getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month2 = (Funs.GetNewIntOrZero(getItem3.Month2) + getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month2 = (Funs.GetNewIntOrZero(getItem4.Month2) + getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month2 = (Funs.GetNewIntOrZero(getItem5.Month2) + getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month2 = (Funs.GetNewIntOrZero(getItem6.Month2) + getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month2 = (Funs.GetNewDecimalOrZero(getItem7.Month2) + getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month2 = (Funs.GetNewIntOrZero(getItem8.Month2) + r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month2 = (Funs.GetNewIntOrZero(getItem9.Month2) + r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month2 = (Funs.GetNewIntOrZero(getItem10.Month2) + r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month2 = (Funs.GetNewIntOrZero(getItem11.Month2) + r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month2 = (Funs.GetNewIntOrZero(getItem12.Month2) + r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month2 = (Funs.GetNewIntOrZero(getItem13.Month2) + r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month2 = (Funs.GetNewIntOrZero(getItem14.Month2) + r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month2 = (Funs.GetNewIntOrZero(getItem15.Month2) + r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month2 = (Funs.GetNewIntOrZero(getItem16.Month2) + r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month2 = (Funs.GetNewIntOrZero(getItem17.Month2) + r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month2 = (Funs.GetNewIntOrZero(getItem18.Month2) + r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month2 = (Funs.GetNewIntOrZero(getItem19.Month2) + countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month2 = (Funs.GetNewDecimalOrZero(getItem20.Month2) + (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month2 = (Funs.GetNewIntOrZero(getItem21.Month2) + getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month2 = (Funs.GetNewIntOrZero(getItem22.Month2) + getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month2 = (Funs.GetNewIntOrZero(getItem23.Month2) + getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month2 = (Funs.GetNewIntOrZero(getItem24.Month2) + getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month2 = (Funs.GetNewIntOrZero(getItem25.Month2) + getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month2 = (Funs.GetNewIntOrZero(getItem26.Month2) + getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month2 = (Funs.GetNewIntOrZero(getItem27.Month2) + getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month2 = (Funs.GetNewIntOrZero(getItem28.Month2) + getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month2 = (Funs.GetNewIntOrZero(getItem29.Month2) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month2 = (Funs.GetNewIntOrZero(getItem30.Month2) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month2 = (Funs.GetNewIntOrZero(getItem31.Month2) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month2 = (Funs.GetNewIntOrZero(getItem32.Month2) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month2 = (Funs.GetNewIntOrZero(getItem33.Month2) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month2 = (Funs.GetNewIntOrZero(getItem34.Month2) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month2 = (Funs.GetNewIntOrZero(getItem35.Month2) + getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month2 = (Funs.GetNewDecimalOrZero(getItem36.Month2) + (getSeDin_MonthReport10.SafeMonthMoney ?? 0 + getSeDin_MonthReport10.HseMonthMoney ?? 0 + getSeDin_MonthReport10.ProduceMonthMoney ?? 0)/10000).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month2 = (Funs.GetNewDecimalOrZero(getItem37.Month2) + (getSeDin_MonthReport10.AccidentMonthMoney ?? 0 + getSeDin_MonthReport10.ViolationMonthMoney ?? 0 + getSeDin_MonthReport10.ManageMonthMoney ?? 0)/10000).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month2 = (Funs.GetNewIntOrZero(getItem38.Month2) + getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month2 = (Funs.GetNewIntOrZero(getItem39.Month2) + getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month2 = (Funs.GetNewIntOrZero(getItem40.Month2) + getSeDin_MonthReport12.MultipleSiteNum ?? 0 + getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - + getSeDin_MonthReport12.SingleSiteNum ?? 0 + getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - else if (monthReport.ReporMonth.Value.Month == 3) - { - #region 提交情况 - bool isSave = true; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth == null) - { - Model.DigData_HSEDataCollectSubmission newSubmission = new Model.DigData_HSEDataCollectSubmission() - { - HSEDataCollectSubmissionId = SQLHelper.GetNewID(), - HSEDataCollectId = getHSEDataCollectId, - Year = monthReport.ReporMonth.Value.Year, - ProjectId = monthReport.ProjectId, - Month3 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)), - }; - db.DigData_HSEDataCollectSubmission.InsertOnSubmit(newSubmission); - db.SubmitChanges(); - } - else - { - if (!string.IsNullOrEmpty(getSubmissionMonth.Month3)) - { - isSave = false; - } - else - { - getSubmissionMonth.Month3 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)); - db.SubmitChanges(); - } - } - #endregion - #region 三月份 数据汇总 - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month3 = (Funs.GetNewIntOrZero(getItem1.Month3) + getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month3 = (Funs.GetNewIntOrZero(getItem2.Month3) + getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month3 = (Funs.GetNewIntOrZero(getItem3.Month3) + getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month3 = (Funs.GetNewIntOrZero(getItem4.Month3) + getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month3 = (Funs.GetNewIntOrZero(getItem5.Month3) + getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month3 = (Funs.GetNewIntOrZero(getItem6.Month3) + getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month3 = (Funs.GetNewDecimalOrZero(getItem7.Month3) + getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month3 = (Funs.GetNewIntOrZero(getItem8.Month3) + r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month3 = (Funs.GetNewIntOrZero(getItem9.Month3) + r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month3 = (Funs.GetNewIntOrZero(getItem10.Month3) + r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month3 = (Funs.GetNewIntOrZero(getItem11.Month3) + r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month3 = (Funs.GetNewIntOrZero(getItem12.Month3) + r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month3 = (Funs.GetNewIntOrZero(getItem13.Month3) + r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month3 = (Funs.GetNewIntOrZero(getItem14.Month3) + r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month3 = (Funs.GetNewIntOrZero(getItem15.Month3) + r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month3 = (Funs.GetNewIntOrZero(getItem16.Month3) + r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month3 = (Funs.GetNewIntOrZero(getItem17.Month3) + r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month3 = (Funs.GetNewIntOrZero(getItem18.Month3) + r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month3 = (Funs.GetNewIntOrZero(getItem19.Month3) + countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month3 = (Funs.GetNewDecimalOrZero(getItem20.Month3) + (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month3 = (Funs.GetNewIntOrZero(getItem21.Month3) + getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month3 = (Funs.GetNewIntOrZero(getItem22.Month3) + getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month3 = (Funs.GetNewIntOrZero(getItem23.Month3) + getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month3 = (Funs.GetNewIntOrZero(getItem24.Month3) + getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month3 = (Funs.GetNewIntOrZero(getItem25.Month3) + getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month3 = (Funs.GetNewIntOrZero(getItem26.Month3) + getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month3 = (Funs.GetNewIntOrZero(getItem27.Month3) + getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month3 = (Funs.GetNewIntOrZero(getItem28.Month3) + getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month3 = (Funs.GetNewIntOrZero(getItem29.Month3) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month3 = (Funs.GetNewIntOrZero(getItem30.Month3) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month3 = (Funs.GetNewIntOrZero(getItem31.Month3) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month3 = (Funs.GetNewIntOrZero(getItem32.Month3) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month3 = (Funs.GetNewIntOrZero(getItem33.Month3) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month3 = (Funs.GetNewIntOrZero(getItem34.Month3) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month3 = (Funs.GetNewIntOrZero(getItem35.Month3) + getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month3 = (Funs.GetNewDecimalOrZero(getItem36.Month3) + (getSeDin_MonthReport10.SafeMonthMoney ?? 0 + getSeDin_MonthReport10.HseMonthMoney ?? 0 + getSeDin_MonthReport10.ProduceMonthMoney ?? 0)/10000).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month3 = (Funs.GetNewDecimalOrZero(getItem37.Month3) + (getSeDin_MonthReport10.AccidentMonthMoney ?? 0 + getSeDin_MonthReport10.ViolationMonthMoney ?? 0 + getSeDin_MonthReport10.ManageMonthMoney ?? 0)/10000).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month3 = (Funs.GetNewIntOrZero(getItem38.Month3) + getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month3 = (Funs.GetNewIntOrZero(getItem39.Month3) + getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month3 = (Funs.GetNewIntOrZero(getItem40.Month3) + getSeDin_MonthReport12.MultipleSiteNum ?? 0 + getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - + getSeDin_MonthReport12.SingleSiteNum ?? 0 + getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - else if (monthReport.ReporMonth.Value.Month == 4) - { - #region 提交情况 - bool isSave = true; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth == null) - { - Model.DigData_HSEDataCollectSubmission newSubmission = new Model.DigData_HSEDataCollectSubmission() - { - HSEDataCollectSubmissionId = SQLHelper.GetNewID(), - HSEDataCollectId = getHSEDataCollectId, - Year = monthReport.ReporMonth.Value.Year, - ProjectId = monthReport.ProjectId, - Month4 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)), - }; - db.DigData_HSEDataCollectSubmission.InsertOnSubmit(newSubmission); - db.SubmitChanges(); - } - else - { - if (!string.IsNullOrEmpty(getSubmissionMonth.Month4)) - { - isSave = false; - } - else - { - getSubmissionMonth.Month4 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)); - db.SubmitChanges(); - } - } - #endregion - #region 四月份 数据汇总 - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month4 = (Funs.GetNewIntOrZero(getItem1.Month4) + getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month4 = (Funs.GetNewIntOrZero(getItem2.Month4) + getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month4 = (Funs.GetNewIntOrZero(getItem3.Month4) + getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month4 = (Funs.GetNewIntOrZero(getItem4.Month4) + getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month4 = (Funs.GetNewIntOrZero(getItem5.Month4) + getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month4 = (Funs.GetNewIntOrZero(getItem6.Month4) + getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month4 = (Funs.GetNewDecimalOrZero(getItem7.Month4) + getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month4 = (Funs.GetNewIntOrZero(getItem8.Month4) + r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month4 = (Funs.GetNewIntOrZero(getItem9.Month4) + r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month4 = (Funs.GetNewIntOrZero(getItem10.Month4) + r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month4 = (Funs.GetNewIntOrZero(getItem11.Month4) + r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month4 = (Funs.GetNewIntOrZero(getItem12.Month4) + r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month4 = (Funs.GetNewIntOrZero(getItem13.Month4) + r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month4 = (Funs.GetNewIntOrZero(getItem14.Month4) + r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month4 = (Funs.GetNewIntOrZero(getItem15.Month4) + r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month4 = (Funs.GetNewIntOrZero(getItem16.Month4) + r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month4 = (Funs.GetNewIntOrZero(getItem17.Month4) + r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month4 = (Funs.GetNewIntOrZero(getItem18.Month4) + r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month4 = (Funs.GetNewIntOrZero(getItem19.Month4) + countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month4 = (Funs.GetNewDecimalOrZero(getItem20.Month4) + (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month4 = (Funs.GetNewIntOrZero(getItem21.Month4) + getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month4 = (Funs.GetNewIntOrZero(getItem22.Month4) + getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month4 = (Funs.GetNewIntOrZero(getItem23.Month4) + getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month4 = (Funs.GetNewIntOrZero(getItem24.Month4) + getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month4 = (Funs.GetNewIntOrZero(getItem25.Month4) + getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month4 = (Funs.GetNewIntOrZero(getItem26.Month4) + getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month4 = (Funs.GetNewIntOrZero(getItem27.Month4) + getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month4 = (Funs.GetNewIntOrZero(getItem28.Month4) + getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month4 = (Funs.GetNewIntOrZero(getItem29.Month4) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month4 = (Funs.GetNewIntOrZero(getItem30.Month4) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month4 = (Funs.GetNewIntOrZero(getItem31.Month4) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month4 = (Funs.GetNewIntOrZero(getItem32.Month4) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month4 = (Funs.GetNewIntOrZero(getItem33.Month4) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month4 = (Funs.GetNewIntOrZero(getItem34.Month4) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month4 = (Funs.GetNewIntOrZero(getItem35.Month4) + getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month4 = (Funs.GetNewDecimalOrZero(getItem36.Month4) + (getSeDin_MonthReport10.SafeMonthMoney ?? 0 + getSeDin_MonthReport10.HseMonthMoney ?? 0 + getSeDin_MonthReport10.ProduceMonthMoney ?? 0)/10000).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month4 = (Funs.GetNewDecimalOrZero(getItem37.Month4) + (getSeDin_MonthReport10.AccidentMonthMoney ?? 0 + getSeDin_MonthReport10.ViolationMonthMoney ?? 0 + getSeDin_MonthReport10.ManageMonthMoney ?? 0)/10000).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month4 = (Funs.GetNewIntOrZero(getItem38.Month4) + getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month4 = (Funs.GetNewIntOrZero(getItem39.Month4) + getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month4 = (Funs.GetNewIntOrZero(getItem40.Month4) + getSeDin_MonthReport12.MultipleSiteNum ?? 0 + getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - + getSeDin_MonthReport12.SingleSiteNum ?? 0 + getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - else if (monthReport.ReporMonth.Value.Month == 5) - { - #region 提交情况 - bool isSave = true; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth == null) - { - Model.DigData_HSEDataCollectSubmission newSubmission = new Model.DigData_HSEDataCollectSubmission() - { - HSEDataCollectSubmissionId = SQLHelper.GetNewID(), - HSEDataCollectId = getHSEDataCollectId, - Year = monthReport.ReporMonth.Value.Year, - ProjectId = monthReport.ProjectId, - Month5 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)), - }; - db.DigData_HSEDataCollectSubmission.InsertOnSubmit(newSubmission); - db.SubmitChanges(); - } - else - { - if (!string.IsNullOrEmpty(getSubmissionMonth.Month5)) - { - isSave = false; - } - else - { - getSubmissionMonth.Month5 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)); - db.SubmitChanges(); - } - } - #endregion - #region 五月份 数据汇总 - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month5 = (Funs.GetNewIntOrZero(getItem1.Month5) + getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month5 = (Funs.GetNewIntOrZero(getItem2.Month5) + getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month5 = (Funs.GetNewIntOrZero(getItem3.Month5) + getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month5 = (Funs.GetNewIntOrZero(getItem4.Month5) + getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month5 = (Funs.GetNewIntOrZero(getItem5.Month5) + getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month5 = (Funs.GetNewIntOrZero(getItem6.Month5) + getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month5 = (Funs.GetNewDecimalOrZero(getItem7.Month5) + getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month5 = (Funs.GetNewIntOrZero(getItem8.Month5) + r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month5 = (Funs.GetNewIntOrZero(getItem9.Month5) + r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month5 = (Funs.GetNewIntOrZero(getItem10.Month5) + r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month5 = (Funs.GetNewIntOrZero(getItem11.Month5) + r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month5 = (Funs.GetNewIntOrZero(getItem12.Month5) + r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month5 = (Funs.GetNewIntOrZero(getItem13.Month5) + r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month5 = (Funs.GetNewIntOrZero(getItem14.Month5) + r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month5 = (Funs.GetNewIntOrZero(getItem15.Month5) + r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month5 = (Funs.GetNewIntOrZero(getItem16.Month5) + r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month5 = (Funs.GetNewIntOrZero(getItem17.Month5) + r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month5 = (Funs.GetNewIntOrZero(getItem18.Month5) + r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month5 = (Funs.GetNewIntOrZero(getItem19.Month5) + countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month5 = (Funs.GetNewDecimalOrZero(getItem20.Month5) + (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month5 = (Funs.GetNewIntOrZero(getItem21.Month5) + getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month5 = (Funs.GetNewIntOrZero(getItem22.Month5) + getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month5 = (Funs.GetNewIntOrZero(getItem23.Month5) + getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month5 = (Funs.GetNewIntOrZero(getItem24.Month5) + getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month5 = (Funs.GetNewIntOrZero(getItem25.Month5) + getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month5 = (Funs.GetNewIntOrZero(getItem26.Month5) + getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month5 = (Funs.GetNewIntOrZero(getItem27.Month5) + getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month5 = (Funs.GetNewIntOrZero(getItem28.Month5) + getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month5 = (Funs.GetNewIntOrZero(getItem29.Month5) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month5 = (Funs.GetNewIntOrZero(getItem30.Month5) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month5 = (Funs.GetNewIntOrZero(getItem31.Month5) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month5 = (Funs.GetNewIntOrZero(getItem32.Month5) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month5 = (Funs.GetNewIntOrZero(getItem33.Month5) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month5 = (Funs.GetNewIntOrZero(getItem34.Month5) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month5 = (Funs.GetNewIntOrZero(getItem35.Month5) + getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month5 = (Funs.GetNewDecimalOrZero(getItem36.Month5) + (getSeDin_MonthReport10.SafeMonthMoney ?? 0 + getSeDin_MonthReport10.HseMonthMoney ?? 0 + getSeDin_MonthReport10.ProduceMonthMoney ?? 0)/10000).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month5 = (Funs.GetNewDecimalOrZero(getItem37.Month5) + (getSeDin_MonthReport10.AccidentMonthMoney ?? 0 + getSeDin_MonthReport10.ViolationMonthMoney ?? 0 + getSeDin_MonthReport10.ManageMonthMoney ?? 0)/10000).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month5 = (Funs.GetNewIntOrZero(getItem38.Month5) + getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month5 = (Funs.GetNewIntOrZero(getItem39.Month5) + getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month5 = (Funs.GetNewIntOrZero(getItem40.Month5) + getSeDin_MonthReport12.MultipleSiteNum ?? 0 + getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - + getSeDin_MonthReport12.SingleSiteNum ?? 0 + getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - else if (monthReport.ReporMonth.Value.Month == 6) - { - #region 提交情况 - bool isSave = true; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth == null) - { - Model.DigData_HSEDataCollectSubmission newSubmission = new Model.DigData_HSEDataCollectSubmission() - { - HSEDataCollectSubmissionId = SQLHelper.GetNewID(), - HSEDataCollectId = getHSEDataCollectId, - Year = monthReport.ReporMonth.Value.Year, - ProjectId = monthReport.ProjectId, - Month6 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)), - }; - db.DigData_HSEDataCollectSubmission.InsertOnSubmit(newSubmission); - db.SubmitChanges(); - } - else - { - if (!string.IsNullOrEmpty(getSubmissionMonth.Month6)) - { - isSave = false; - } - else - { - getSubmissionMonth.Month6 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)); - db.SubmitChanges(); - } - } - #endregion - #region 数据汇总 - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month6 = (Funs.GetNewIntOrZero(getItem1.Month6) + getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month6 = (Funs.GetNewIntOrZero(getItem2.Month6) + getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month6 = (Funs.GetNewIntOrZero(getItem3.Month6) + getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month6 = (Funs.GetNewIntOrZero(getItem4.Month6) + getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month6 = (Funs.GetNewIntOrZero(getItem5.Month6) + getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month6 = (Funs.GetNewIntOrZero(getItem6.Month6) + getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month6 = (Funs.GetNewDecimalOrZero(getItem7.Month7) + getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month6 = (Funs.GetNewIntOrZero(getItem8.Month6) + r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month6 = (Funs.GetNewIntOrZero(getItem9.Month6) + r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month6 = (Funs.GetNewIntOrZero(getItem10.Month6) + r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month6 = (Funs.GetNewIntOrZero(getItem11.Month6) + r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month6 = (Funs.GetNewIntOrZero(getItem12.Month6) + r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month6 = (Funs.GetNewIntOrZero(getItem13.Month6) + r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month6 = (Funs.GetNewIntOrZero(getItem14.Month6) + r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month6 = (Funs.GetNewIntOrZero(getItem15.Month6) + r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month6 = (Funs.GetNewIntOrZero(getItem16.Month6) + r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month6 = (Funs.GetNewIntOrZero(getItem17.Month6) + r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month6 = (Funs.GetNewIntOrZero(getItem18.Month6) + r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month6 = (Funs.GetNewIntOrZero(getItem19.Month6) + countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month6 = (Funs.GetNewDecimalOrZero(getItem20.Month6) + (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month6 = (Funs.GetNewIntOrZero(getItem21.Month6) + getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month6 = (Funs.GetNewIntOrZero(getItem22.Month6) + getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month6 = (Funs.GetNewIntOrZero(getItem23.Month6) + getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month6 = (Funs.GetNewIntOrZero(getItem24.Month6) + getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month6 = (Funs.GetNewIntOrZero(getItem25.Month6) + getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month6 = (Funs.GetNewIntOrZero(getItem26.Month6) + getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month6 = (Funs.GetNewIntOrZero(getItem27.Month6) + getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month6 = (Funs.GetNewIntOrZero(getItem28.Month6) + getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month6 = (Funs.GetNewIntOrZero(getItem29.Month6) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month6 = (Funs.GetNewIntOrZero(getItem30.Month6) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month6 = (Funs.GetNewIntOrZero(getItem31.Month6) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month6 = (Funs.GetNewIntOrZero(getItem32.Month6) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month6 = (Funs.GetNewIntOrZero(getItem33.Month6) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month6 = (Funs.GetNewIntOrZero(getItem34.Month6) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month6 = (Funs.GetNewIntOrZero(getItem35.Month6) + getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month6 = (Funs.GetNewDecimalOrZero(getItem36.Month6) + (getSeDin_MonthReport10.SafeMonthMoney ?? 0 + getSeDin_MonthReport10.HseMonthMoney ?? 0 + getSeDin_MonthReport10.ProduceMonthMoney ?? 0)/10000).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month6 = (Funs.GetNewDecimalOrZero(getItem37.Month6) + (getSeDin_MonthReport10.AccidentMonthMoney ?? 0 + getSeDin_MonthReport10.ViolationMonthMoney ?? 0 + getSeDin_MonthReport10.ManageMonthMoney ?? 0)/10000).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month6 = (Funs.GetNewIntOrZero(getItem38.Month6) + getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month6 = (Funs.GetNewIntOrZero(getItem39.Month6) + getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month6 = (Funs.GetNewIntOrZero(getItem40.Month6) + getSeDin_MonthReport12.MultipleSiteNum ?? 0 + getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - + getSeDin_MonthReport12.SingleSiteNum ?? 0 + getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - else if (monthReport.ReporMonth.Value.Month == 7) - { - #region 提交情况 - bool isSave = true; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth == null) - { - Model.DigData_HSEDataCollectSubmission newSubmission = new Model.DigData_HSEDataCollectSubmission() - { - HSEDataCollectSubmissionId = SQLHelper.GetNewID(), - HSEDataCollectId = getHSEDataCollectId, - Year = monthReport.ReporMonth.Value.Year, - ProjectId = monthReport.ProjectId, - Month7 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)), - }; - db.DigData_HSEDataCollectSubmission.InsertOnSubmit(newSubmission); - db.SubmitChanges(); - } - else - { - if (!string.IsNullOrEmpty(getSubmissionMonth.Month7)) - { - isSave = false; - } - else - { - getSubmissionMonth.Month7 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)); - db.SubmitChanges(); - } - } - #endregion - #region 数据汇总 - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month7 = (Funs.GetNewIntOrZero(getItem1.Month7) + getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month7 = (Funs.GetNewIntOrZero(getItem2.Month7) + getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month7 = (Funs.GetNewIntOrZero(getItem3.Month7) + getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month7 = (Funs.GetNewIntOrZero(getItem4.Month7) + getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month7 = (Funs.GetNewIntOrZero(getItem5.Month7) + getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month7 = (Funs.GetNewIntOrZero(getItem6.Month7) + getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month7 = (Funs.GetNewDecimalOrZero(getItem7.Month7) + getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month7 = (Funs.GetNewIntOrZero(getItem8.Month7) + r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month7 = (Funs.GetNewIntOrZero(getItem9.Month7) + r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month7 = (Funs.GetNewIntOrZero(getItem10.Month7) + r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month7 = (Funs.GetNewIntOrZero(getItem11.Month7) + r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month7 = (Funs.GetNewIntOrZero(getItem12.Month7) + r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month7 = (Funs.GetNewIntOrZero(getItem13.Month7) + r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month7 = (Funs.GetNewIntOrZero(getItem14.Month7) + r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month7 = (Funs.GetNewIntOrZero(getItem15.Month7) + r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month7 = (Funs.GetNewIntOrZero(getItem16.Month7) + r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month7 = (Funs.GetNewIntOrZero(getItem17.Month7) + r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month7 = (Funs.GetNewIntOrZero(getItem18.Month7) + r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month7 = (Funs.GetNewIntOrZero(getItem19.Month7) + countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month7 = (Funs.GetNewDecimalOrZero(getItem20.Month7) + (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month7 = (Funs.GetNewIntOrZero(getItem21.Month7) + getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month7 = (Funs.GetNewIntOrZero(getItem22.Month7) + getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month7 = (Funs.GetNewIntOrZero(getItem23.Month7) + getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month7 = (Funs.GetNewIntOrZero(getItem24.Month7) + getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month7 = (Funs.GetNewIntOrZero(getItem25.Month7) + getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month7 = (Funs.GetNewIntOrZero(getItem26.Month7) + getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month7 = (Funs.GetNewIntOrZero(getItem27.Month7) + getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month7 = (Funs.GetNewIntOrZero(getItem28.Month7) + getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month7 = (Funs.GetNewIntOrZero(getItem29.Month7) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month7 = (Funs.GetNewIntOrZero(getItem30.Month7) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month7 = (Funs.GetNewIntOrZero(getItem31.Month7) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month7 = (Funs.GetNewIntOrZero(getItem32.Month7) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month7 = (Funs.GetNewIntOrZero(getItem33.Month7) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month7 = (Funs.GetNewIntOrZero(getItem34.Month7) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month7 = (Funs.GetNewIntOrZero(getItem35.Month7) + getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month7 = (Funs.GetNewDecimalOrZero(getItem36.Month7) + (getSeDin_MonthReport10.SafeMonthMoney ?? 0 + getSeDin_MonthReport10.HseMonthMoney ?? 0 + getSeDin_MonthReport10.ProduceMonthMoney ?? 0)/10000).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month7 = (Funs.GetNewDecimalOrZero(getItem37.Month7) + (getSeDin_MonthReport10.AccidentMonthMoney ?? 0 + getSeDin_MonthReport10.ViolationMonthMoney ?? 0 + getSeDin_MonthReport10.ManageMonthMoney ?? 0)/10000).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month7 = (Funs.GetNewIntOrZero(getItem38.Month7) + getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month7 = (Funs.GetNewIntOrZero(getItem39.Month7) + getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month7 = (Funs.GetNewIntOrZero(getItem40.Month7) + getSeDin_MonthReport12.MultipleSiteNum ?? 0 + getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - + getSeDin_MonthReport12.SingleSiteNum ?? 0 + getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - else if (monthReport.ReporMonth.Value.Month == 8) - { - #region 提交情况 - bool isSave = true; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth == null) - { - Model.DigData_HSEDataCollectSubmission newSubmission = new Model.DigData_HSEDataCollectSubmission() - { - HSEDataCollectSubmissionId = SQLHelper.GetNewID(), - HSEDataCollectId = getHSEDataCollectId, - Year = monthReport.ReporMonth.Value.Year, - ProjectId = monthReport.ProjectId, - Month8 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)), - }; - db.DigData_HSEDataCollectSubmission.InsertOnSubmit(newSubmission); - db.SubmitChanges(); - } - else - { - if (!string.IsNullOrEmpty(getSubmissionMonth.Month8)) - { - isSave = false; - } - else - { - getSubmissionMonth.Month8 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)); - db.SubmitChanges(); - } - } - #endregion - #region 数据汇总 - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month8 = (Funs.GetNewIntOrZero(getItem1.Month8) + getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month8 = (Funs.GetNewIntOrZero(getItem2.Month8) + getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month8 = (Funs.GetNewIntOrZero(getItem3.Month8) + getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month8 = (Funs.GetNewIntOrZero(getItem4.Month8) + getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month8 = (Funs.GetNewIntOrZero(getItem5.Month8) + getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month8 = (Funs.GetNewIntOrZero(getItem6.Month8) + getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month8 = (Funs.GetNewDecimalOrZero(getItem7.Month8) + getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month8 = (Funs.GetNewIntOrZero(getItem8.Month8) + r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month8 = (Funs.GetNewIntOrZero(getItem9.Month8) + r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month8 = (Funs.GetNewIntOrZero(getItem10.Month8) + r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month8 = (Funs.GetNewIntOrZero(getItem11.Month8) + r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month8 = (Funs.GetNewIntOrZero(getItem12.Month8) + r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month8 = (Funs.GetNewIntOrZero(getItem13.Month8) + r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month8 = (Funs.GetNewIntOrZero(getItem14.Month8) + r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month8 = (Funs.GetNewIntOrZero(getItem15.Month8) + r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month8 = (Funs.GetNewIntOrZero(getItem16.Month8) + r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month8 = (Funs.GetNewIntOrZero(getItem17.Month8) + r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month8 = (Funs.GetNewIntOrZero(getItem18.Month8) + r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month8 = (Funs.GetNewIntOrZero(getItem19.Month8) + countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month8 = (Funs.GetNewDecimalOrZero(getItem20.Month8) + (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month8 = (Funs.GetNewIntOrZero(getItem21.Month8) + getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month8 = (Funs.GetNewIntOrZero(getItem22.Month8) + getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month8 = (Funs.GetNewIntOrZero(getItem23.Month8) + getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month8 = (Funs.GetNewIntOrZero(getItem24.Month8) + getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month8 = (Funs.GetNewIntOrZero(getItem25.Month8) + getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month8 = (Funs.GetNewIntOrZero(getItem26.Month8) + getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month8 = (Funs.GetNewIntOrZero(getItem27.Month8) + getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month8 = (Funs.GetNewIntOrZero(getItem28.Month8) + getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month8 = (Funs.GetNewIntOrZero(getItem29.Month8) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month8 = (Funs.GetNewIntOrZero(getItem30.Month8) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month8 = (Funs.GetNewIntOrZero(getItem31.Month8) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month8 = (Funs.GetNewIntOrZero(getItem32.Month8) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month8 = (Funs.GetNewIntOrZero(getItem33.Month8) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month8 = (Funs.GetNewIntOrZero(getItem34.Month8) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month8 = (Funs.GetNewIntOrZero(getItem35.Month8) + getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month8 = (Funs.GetNewDecimalOrZero(getItem36.Month8) + (getSeDin_MonthReport10.SafeMonthMoney ?? 0 + getSeDin_MonthReport10.HseMonthMoney ?? 0 + getSeDin_MonthReport10.ProduceMonthMoney ?? 0)/10000).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month8 = (Funs.GetNewDecimalOrZero(getItem37.Month8) + (getSeDin_MonthReport10.AccidentMonthMoney ?? 0 + getSeDin_MonthReport10.ViolationMonthMoney ?? 0 + getSeDin_MonthReport10.ManageMonthMoney ?? 0)/10000).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month8 = (Funs.GetNewIntOrZero(getItem38.Month8) + getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month8 = (Funs.GetNewIntOrZero(getItem39.Month8) + getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month8 = (Funs.GetNewIntOrZero(getItem40.Month8) + getSeDin_MonthReport12.MultipleSiteNum ?? 0 + getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - + getSeDin_MonthReport12.SingleSiteNum ?? 0 + getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - else if (monthReport.ReporMonth.Value.Month == 9) - { - #region 提交情况 - bool isSave = true; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth == null) - { - Model.DigData_HSEDataCollectSubmission newSubmission = new Model.DigData_HSEDataCollectSubmission() - { - HSEDataCollectSubmissionId = SQLHelper.GetNewID(), - HSEDataCollectId = getHSEDataCollectId, - Year = monthReport.ReporMonth.Value.Year, - ProjectId = monthReport.ProjectId, - Month9 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)), - }; - db.DigData_HSEDataCollectSubmission.InsertOnSubmit(newSubmission); - db.SubmitChanges(); - } - else - { - if (!string.IsNullOrEmpty(getSubmissionMonth.Month9)) - { - isSave = false; - } - else - { - getSubmissionMonth.Month9 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)); - db.SubmitChanges(); - } - } - #endregion - #region 数据汇总 - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month9 = (Funs.GetNewIntOrZero(getItem1.Month9) + getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month9 = (Funs.GetNewIntOrZero(getItem2.Month9) + getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month9 = (Funs.GetNewIntOrZero(getItem3.Month9) + getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month9 = (Funs.GetNewIntOrZero(getItem4.Month9) + getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month9 = (Funs.GetNewIntOrZero(getItem5.Month9) + getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month9 = (Funs.GetNewIntOrZero(getItem6.Month9) + getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month9 = (Funs.GetNewDecimalOrZero(getItem7.Month9) + getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month9 = (Funs.GetNewIntOrZero(getItem8.Month9) + r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month9 = (Funs.GetNewIntOrZero(getItem9.Month9) + r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month9 = (Funs.GetNewIntOrZero(getItem10.Month9) + r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month9 = (Funs.GetNewIntOrZero(getItem11.Month9) + r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month9 = (Funs.GetNewIntOrZero(getItem12.Month9) + r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month9 = (Funs.GetNewIntOrZero(getItem13.Month9) + r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month9 = (Funs.GetNewIntOrZero(getItem14.Month9) + r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month9 = (Funs.GetNewIntOrZero(getItem15.Month9) + r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month9 = (Funs.GetNewIntOrZero(getItem16.Month9) + r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month9 = (Funs.GetNewIntOrZero(getItem17.Month9) + r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month9 = (Funs.GetNewIntOrZero(getItem18.Month9) + r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month9 = (Funs.GetNewIntOrZero(getItem19.Month9) + countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month9 = (Funs.GetNewDecimalOrZero(getItem20.Month9) + (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month9 = (Funs.GetNewIntOrZero(getItem21.Month9) + getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month9 = (Funs.GetNewIntOrZero(getItem22.Month9) + getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month9 = (Funs.GetNewIntOrZero(getItem23.Month9) + getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month9 = (Funs.GetNewIntOrZero(getItem24.Month9) + getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month9 = (Funs.GetNewIntOrZero(getItem25.Month9) + getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month9 = (Funs.GetNewIntOrZero(getItem26.Month9) + getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month9 = (Funs.GetNewIntOrZero(getItem27.Month9) + getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month9 = (Funs.GetNewIntOrZero(getItem28.Month9) + getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month9 = (Funs.GetNewIntOrZero(getItem29.Month9) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month9 = (Funs.GetNewIntOrZero(getItem30.Month9) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month9 = (Funs.GetNewIntOrZero(getItem31.Month9) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month9 = (Funs.GetNewIntOrZero(getItem32.Month9) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month9 = (Funs.GetNewIntOrZero(getItem33.Month9) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month9 = (Funs.GetNewIntOrZero(getItem34.Month9) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month9 = (Funs.GetNewIntOrZero(getItem35.Month9) + getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month9 = (Funs.GetNewDecimalOrZero(getItem36.Month9) + (getSeDin_MonthReport10.SafeMonthMoney ?? 0 + getSeDin_MonthReport10.HseMonthMoney ?? 0 + getSeDin_MonthReport10.ProduceMonthMoney ?? 0)/10000).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month9 = (Funs.GetNewDecimalOrZero(getItem37.Month9) + (getSeDin_MonthReport10.AccidentMonthMoney ?? 0 + getSeDin_MonthReport10.ViolationMonthMoney ?? 0 + getSeDin_MonthReport10.ManageMonthMoney ?? 0)/10000).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month9 = (Funs.GetNewIntOrZero(getItem38.Month9) + getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month9 = (Funs.GetNewIntOrZero(getItem39.Month9) + getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month9 = (Funs.GetNewIntOrZero(getItem40.Month9) + getSeDin_MonthReport12.MultipleSiteNum ?? 0 + getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - + getSeDin_MonthReport12.SingleSiteNum ?? 0 + getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - else if (monthReport.ReporMonth.Value.Month == 10) - { - #region 提交情况 - bool isSave = true; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth == null) - { - Model.DigData_HSEDataCollectSubmission newSubmission = new Model.DigData_HSEDataCollectSubmission() - { - HSEDataCollectSubmissionId = SQLHelper.GetNewID(), - HSEDataCollectId = getHSEDataCollectId, - Year = monthReport.ReporMonth.Value.Year, - ProjectId = monthReport.ProjectId, - Month10 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)), - }; - db.DigData_HSEDataCollectSubmission.InsertOnSubmit(newSubmission); - db.SubmitChanges(); - } - else - { - if (!string.IsNullOrEmpty(getSubmissionMonth.Month10)) - { - isSave = false; - } - else - { - getSubmissionMonth.Month10 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)); - db.SubmitChanges(); - } - } - #endregion - #region 数据汇总 - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month10 = (Funs.GetNewIntOrZero(getItem1.Month10) + getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month10 = (Funs.GetNewIntOrZero(getItem2.Month10) + getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month10 = (Funs.GetNewIntOrZero(getItem3.Month10) + getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month10 = (Funs.GetNewIntOrZero(getItem4.Month10) + getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month10 = (Funs.GetNewIntOrZero(getItem5.Month10) + getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month10 = (Funs.GetNewIntOrZero(getItem6.Month10) + getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month10 = (Funs.GetNewDecimalOrZero(getItem7.Month10) + getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month10 = (Funs.GetNewIntOrZero(getItem8.Month10) + r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month10 = (Funs.GetNewIntOrZero(getItem9.Month10) + r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month10 = (Funs.GetNewIntOrZero(getItem10.Month10) + r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month10 = (Funs.GetNewIntOrZero(getItem11.Month10) + r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month10 = (Funs.GetNewIntOrZero(getItem12.Month10) + r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month10 = (Funs.GetNewIntOrZero(getItem13.Month10) + r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month10 = (Funs.GetNewIntOrZero(getItem14.Month10) + r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month10 = (Funs.GetNewIntOrZero(getItem15.Month10) + r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month10 = (Funs.GetNewIntOrZero(getItem16.Month10) + r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month10 = (Funs.GetNewIntOrZero(getItem17.Month10) + r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month10 = (Funs.GetNewIntOrZero(getItem18.Month10) + r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month10 = (Funs.GetNewIntOrZero(getItem19.Month10) + countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month10 = (Funs.GetNewDecimalOrZero(getItem20.Month10) + (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month10 = (Funs.GetNewIntOrZero(getItem21.Month10) + getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month10 = (Funs.GetNewIntOrZero(getItem22.Month10) + getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month10 = (Funs.GetNewIntOrZero(getItem23.Month10) + getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month10 = (Funs.GetNewIntOrZero(getItem24.Month10) + getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month10 = (Funs.GetNewIntOrZero(getItem25.Month10) + getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month10 = (Funs.GetNewIntOrZero(getItem26.Month10) + getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month10 = (Funs.GetNewIntOrZero(getItem27.Month10) + getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month10 = (Funs.GetNewIntOrZero(getItem28.Month10) + getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month10 = (Funs.GetNewIntOrZero(getItem29.Month10) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month10 = (Funs.GetNewIntOrZero(getItem30.Month10) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month10 = (Funs.GetNewIntOrZero(getItem31.Month10) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month10 = (Funs.GetNewIntOrZero(getItem32.Month10) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month10 = (Funs.GetNewIntOrZero(getItem33.Month10) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month10 = (Funs.GetNewIntOrZero(getItem34.Month10) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month10 = (Funs.GetNewIntOrZero(getItem35.Month10) + getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month10 = (Funs.GetNewDecimalOrZero(getItem36.Month10) + (getSeDin_MonthReport10.SafeMonthMoney ?? 0 + getSeDin_MonthReport10.HseMonthMoney ?? 0 + getSeDin_MonthReport10.ProduceMonthMoney ?? 0)/10000).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month10 = (Funs.GetNewDecimalOrZero(getItem37.Month10) + (getSeDin_MonthReport10.AccidentMonthMoney ?? 0 + getSeDin_MonthReport10.ViolationMonthMoney ?? 0 + getSeDin_MonthReport10.ManageMonthMoney ?? 0)/10000).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month10 = (Funs.GetNewIntOrZero(getItem38.Month10) + getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month10 = (Funs.GetNewIntOrZero(getItem39.Month10) + getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month10 = (Funs.GetNewIntOrZero(getItem40.Month10) + getSeDin_MonthReport12.MultipleSiteNum ?? 0 + getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - + getSeDin_MonthReport12.SingleSiteNum ?? 0 + getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - else if (monthReport.ReporMonth.Value.Month == 11) - { - #region 提交情况 - bool isSave = true; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth == null) - { - Model.DigData_HSEDataCollectSubmission newSubmission = new Model.DigData_HSEDataCollectSubmission() - { - HSEDataCollectSubmissionId = SQLHelper.GetNewID(), - HSEDataCollectId = getHSEDataCollectId, - Year = monthReport.ReporMonth.Value.Year, - ProjectId = monthReport.ProjectId, - Month11 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)), - }; - db.DigData_HSEDataCollectSubmission.InsertOnSubmit(newSubmission); - db.SubmitChanges(); - } - else - { - if (!string.IsNullOrEmpty(getSubmissionMonth.Month11)) - { - isSave = false; - } - else - { - getSubmissionMonth.Month11 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)); - db.SubmitChanges(); - } - } - #endregion - #region 数据汇总 - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month11 = (Funs.GetNewIntOrZero(getItem1.Month11) + getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month11 = (Funs.GetNewIntOrZero(getItem2.Month11) + getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month11 = (Funs.GetNewIntOrZero(getItem3.Month11) + getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month11 = (Funs.GetNewIntOrZero(getItem4.Month11) + getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month11 = (Funs.GetNewIntOrZero(getItem5.Month11) + getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month11 = (Funs.GetNewIntOrZero(getItem6.Month11) + getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month11 = (Funs.GetNewDecimalOrZero(getItem7.Month11) + getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month11 = (Funs.GetNewIntOrZero(getItem8.Month11) + r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month11 = (Funs.GetNewIntOrZero(getItem9.Month11) + r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month11 = (Funs.GetNewIntOrZero(getItem10.Month11) + r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month11 = (Funs.GetNewIntOrZero(getItem11.Month11) + r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month11 = (Funs.GetNewIntOrZero(getItem12.Month11) + r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month11 = (Funs.GetNewIntOrZero(getItem13.Month11) + r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month11 = (Funs.GetNewIntOrZero(getItem14.Month11) + r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month11 = (Funs.GetNewIntOrZero(getItem15.Month11) + r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month11 = (Funs.GetNewIntOrZero(getItem16.Month11) + r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month11 = (Funs.GetNewIntOrZero(getItem17.Month11) + r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month11 = (Funs.GetNewIntOrZero(getItem18.Month11) + r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month11 = (Funs.GetNewIntOrZero(getItem19.Month11) + countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month11 = (Funs.GetNewDecimalOrZero(getItem20.Month11) + (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month11 = (Funs.GetNewIntOrZero(getItem21.Month11) + getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month11 = (Funs.GetNewIntOrZero(getItem22.Month11) + getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month11 = (Funs.GetNewIntOrZero(getItem23.Month11) + getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month11 = (Funs.GetNewIntOrZero(getItem24.Month11) + getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month11 = (Funs.GetNewIntOrZero(getItem25.Month11) + getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month11 = (Funs.GetNewIntOrZero(getItem26.Month11) + getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month11 = (Funs.GetNewIntOrZero(getItem27.Month11) + getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month11 = (Funs.GetNewIntOrZero(getItem28.Month11) + getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month11 = (Funs.GetNewIntOrZero(getItem29.Month11) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month11 = (Funs.GetNewIntOrZero(getItem30.Month11) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month11 = (Funs.GetNewIntOrZero(getItem31.Month11) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month11 = (Funs.GetNewIntOrZero(getItem32.Month11) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month11 = (Funs.GetNewIntOrZero(getItem33.Month11) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month11 = (Funs.GetNewIntOrZero(getItem34.Month11) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month11 = (Funs.GetNewIntOrZero(getItem35.Month11) + getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month11 = (Funs.GetNewDecimalOrZero(getItem36.Month11) + (getSeDin_MonthReport10.SafeMonthMoney ?? 0 + getSeDin_MonthReport10.HseMonthMoney ?? 0 + getSeDin_MonthReport10.ProduceMonthMoney ?? 0)/10000).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month11 = (Funs.GetNewDecimalOrZero(getItem37.Month11) + (getSeDin_MonthReport10.AccidentMonthMoney ?? 0 + getSeDin_MonthReport10.ViolationMonthMoney ?? 0 + getSeDin_MonthReport10.ManageMonthMoney ?? 0)/10000).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month11 = (Funs.GetNewIntOrZero(getItem38.Month11) + getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month11 = (Funs.GetNewIntOrZero(getItem39.Month11) + getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month11 = (Funs.GetNewIntOrZero(getItem40.Month11) + getSeDin_MonthReport12.MultipleSiteNum ?? 0 + getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - + getSeDin_MonthReport12.SingleSiteNum ?? 0 + getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - else if (monthReport.ReporMonth.Value.Month == 12) - { - #region 提交情况 - bool isSave = true; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth == null) - { - Model.DigData_HSEDataCollectSubmission newSubmission = new Model.DigData_HSEDataCollectSubmission() - { - HSEDataCollectSubmissionId = SQLHelper.GetNewID(), - HSEDataCollectId = getHSEDataCollectId, - Year = monthReport.ReporMonth.Value.Year, - ProjectId = monthReport.ProjectId, - Month12 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)), - }; - db.DigData_HSEDataCollectSubmission.InsertOnSubmit(newSubmission); - db.SubmitChanges(); - } - else - { - if (!string.IsNullOrEmpty(getSubmissionMonth.Month12)) - { - isSave = false; - } - else - { - getSubmissionMonth.Month12 = string.Format("{0:yyyy-MM-dd}", (monthReport.CommitTime ?? DateTime.Now)); - db.SubmitChanges(); - } - } - #endregion - #region 数据汇总 - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month12 = (Funs.GetNewIntOrZero(getItem1.Month12) + getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month12 = (Funs.GetNewIntOrZero(getItem2.Month12) + getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month12 = (Funs.GetNewIntOrZero(getItem3.Month12) + getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month12 = (Funs.GetNewIntOrZero(getItem4.Month12) + getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month12 = (Funs.GetNewIntOrZero(getItem5.Month12) + getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month12 = (Funs.GetNewIntOrZero(getItem6.Month12) + getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month12 = (Funs.GetNewDecimalOrZero(getItem7.Month12) + getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month12 = (Funs.GetNewIntOrZero(getItem8.Month12) + r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month12 = (Funs.GetNewIntOrZero(getItem9.Month12) + r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month12 = (Funs.GetNewIntOrZero(getItem10.Month12) + r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month12 = (Funs.GetNewIntOrZero(getItem11.Month12) + r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month12 = (Funs.GetNewIntOrZero(getItem12.Month12) + r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month12 = (Funs.GetNewIntOrZero(getItem13.Month12) + r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month12 = (Funs.GetNewIntOrZero(getItem14.Month12) + r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month12 = (Funs.GetNewIntOrZero(getItem15.Month12) + r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month12 = (Funs.GetNewIntOrZero(getItem16.Month12) + r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month12 = (Funs.GetNewIntOrZero(getItem17.Month12) + r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month12 = (Funs.GetNewIntOrZero(getItem18.Month12) + r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month12 = (Funs.GetNewIntOrZero(getItem19.Month12) + countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month12 = (Funs.GetNewDecimalOrZero(getItem20.Month12) + (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month12 = (Funs.GetNewIntOrZero(getItem21.Month12) + getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month12 = (Funs.GetNewIntOrZero(getItem22.Month12) + getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month12 = (Funs.GetNewIntOrZero(getItem23.Month12) + getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month12 = (Funs.GetNewIntOrZero(getItem24.Month12) + getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month12 = (Funs.GetNewIntOrZero(getItem25.Month12) + getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month12 = (Funs.GetNewIntOrZero(getItem26.Month12) + getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month12 = (Funs.GetNewIntOrZero(getItem27.Month12) + getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month12 = (Funs.GetNewIntOrZero(getItem28.Month12) + getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month12 = (Funs.GetNewIntOrZero(getItem29.Month12) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month12 = (Funs.GetNewIntOrZero(getItem30.Month12) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month12 = (Funs.GetNewIntOrZero(getItem31.Month12) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month12 = (Funs.GetNewIntOrZero(getItem32.Month12) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month12 = (Funs.GetNewIntOrZero(getItem33.Month12) + getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month12 = (Funs.GetNewIntOrZero(getItem34.Month12) + getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month12 = (Funs.GetNewIntOrZero(getItem35.Month12) + getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month12 = (Funs.GetNewDecimalOrZero(getItem36.Month12) + (getSeDin_MonthReport10.SafeMonthMoney ?? 0 + getSeDin_MonthReport10.HseMonthMoney ?? 0 + getSeDin_MonthReport10.ProduceMonthMoney ?? 0)/10000).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month12 = (Funs.GetNewDecimalOrZero(getItem37.Month12) + (getSeDin_MonthReport10.AccidentMonthMoney ?? 0 + getSeDin_MonthReport10.ViolationMonthMoney ?? 0 + getSeDin_MonthReport10.ManageMonthMoney ?? 0)/10000).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month12 = (Funs.GetNewIntOrZero(getItem38.Month12) + getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month12 = (Funs.GetNewIntOrZero(getItem39.Month12) + getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month12 = (Funs.GetNewIntOrZero(getItem40.Month12) + getSeDin_MonthReport12.MultipleSiteNum ?? 0 + getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - + getSeDin_MonthReport12.SingleSiteNum ?? 0 + getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - } - #endregion - - #region 根据月报信息删除汇总数据 - /// - /// 根据月报信息汇总数据 - /// - public static void DeleteHSEDataCollectItem(Model.SeDin_MonthReport monthReport) - { - Model.CNPCDB db = Funs.DB; - string getHSEDataCollectId = string.Empty; - var getHSEDataCollect = GetHSEDataCollectByYear(monthReport.ReporMonth.Value.Year); - if (getHSEDataCollect != null) - { - getHSEDataCollectId = getHSEDataCollect.HSEDataCollectId; - } - else - { - getHSEDataCollectId = CreateHSEDataCollectByYear(monthReport.ReporMonth.Value.Year); - } - - var getHSEDataCollectItemYear = from x in db.DigData_HSEDataCollectItem - where x.HSEDataCollectId == getHSEDataCollectId - select x; - var getHSEDataCollectISubmissionYear = from x in db.DigData_HSEDataCollectSubmission - where x.HSEDataCollectId == getHSEDataCollectId - select x; - ////一月份 - if (monthReport.ReporMonth.Value.Month == 1) - { - #region 数据调整 - bool isSave = false; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth != null && Funs.GetNewDateTime(getSubmissionMonth.Month1).HasValue) - { - isSave = true; - } - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month1 = (Funs.GetNewIntOrZero(getItem1.Month1) - getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month1 = (Funs.GetNewIntOrZero(getItem2.Month1) - getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month1 = (Funs.GetNewIntOrZero(getItem3.Month1) - getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month1 = (Funs.GetNewIntOrZero(getItem4.Month1) - getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month1 = (Funs.GetNewIntOrZero(getItem5.Month1) - getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month1 = (Funs.GetNewIntOrZero(getItem6.Month1) - getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month1 = (Funs.GetNewDecimalOrZero(getItem7.Month1) - getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month1 = (Funs.GetNewIntOrZero(getItem8.Month1) - r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month1 = (Funs.GetNewIntOrZero(getItem9.Month1) - r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month1 = (Funs.GetNewIntOrZero(getItem10.Month1) - r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month1 = (Funs.GetNewIntOrZero(getItem11.Month1) - r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month1 = (Funs.GetNewIntOrZero(getItem12.Month1) - r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month1 = (Funs.GetNewIntOrZero(getItem13.Month1) - r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month1 = (Funs.GetNewIntOrZero(getItem14.Month1) - r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month1 = (Funs.GetNewIntOrZero(getItem15.Month1) - r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month1 = (Funs.GetNewIntOrZero(getItem16.Month1) - r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month1 = (Funs.GetNewIntOrZero(getItem17.Month1) - r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month1 = (Funs.GetNewIntOrZero(getItem18.Month1) - r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month1 = (Funs.GetNewIntOrZero(getItem19.Month1) - countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month1 = (Funs.GetNewDecimalOrZero(getItem20.Month1) - (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month1 = (Funs.GetNewIntOrZero(getItem21.Month1) - getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month1 = (Funs.GetNewIntOrZero(getItem22.Month1) - getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month1 = (Funs.GetNewIntOrZero(getItem23.Month1) - getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month1 = (Funs.GetNewIntOrZero(getItem24.Month1) - getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month1 = (Funs.GetNewIntOrZero(getItem25.Month1) - getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month1 = (Funs.GetNewIntOrZero(getItem26.Month1) - getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month1 = (Funs.GetNewIntOrZero(getItem27.Month1) - getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month1 = (Funs.GetNewIntOrZero(getItem28.Month1) - getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month1 = (Funs.GetNewIntOrZero(getItem29.Month1) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month1 = (Funs.GetNewIntOrZero(getItem30.Month1) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month1 = (Funs.GetNewIntOrZero(getItem31.Month1) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month1 = (Funs.GetNewIntOrZero(getItem32.Month1) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month1 = (Funs.GetNewIntOrZero(getItem33.Month1) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month1 = (Funs.GetNewIntOrZero(getItem34.Month1) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month1 = (Funs.GetNewIntOrZero(getItem35.Month1) - getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month1 = (Funs.GetNewDecimalOrZero(getItem36.Month1) - getSeDin_MonthReport10.SafeMonthMoney ?? 0 - getSeDin_MonthReport10.HseMonthMoney ?? 0 - getSeDin_MonthReport10.ProduceMonthMoney ?? 0).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month1 = (Funs.GetNewDecimalOrZero(getItem37.Month1) - getSeDin_MonthReport10.AccidentMonthMoney ?? 0 - getSeDin_MonthReport10.ViolationMonthMoney ?? 0 - getSeDin_MonthReport10.ManageMonthMoney ?? 0).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month1 = (Funs.GetNewIntOrZero(getItem38.Month1) - getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month1 = (Funs.GetNewIntOrZero(getItem39.Month1) - getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month1 = (Funs.GetNewIntOrZero(getItem40.Month1) - getSeDin_MonthReport12.MultipleSiteNum ?? 0 - getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - - getSeDin_MonthReport12.SingleSiteNum ?? 0 - getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - else if (monthReport.ReporMonth.Value.Month == 2) - { - #region 数据调整 - bool isSave = false; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth != null && Funs.GetNewDateTime(getSubmissionMonth.Month2).HasValue) - { - isSave = true; - } - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month2 = (Funs.GetNewIntOrZero(getItem1.Month2) - getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month2 = (Funs.GetNewIntOrZero(getItem2.Month2) - getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month2 = (Funs.GetNewIntOrZero(getItem3.Month2) - getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month2 = (Funs.GetNewIntOrZero(getItem4.Month2) - getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month2 = (Funs.GetNewIntOrZero(getItem5.Month2) - getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month2 = (Funs.GetNewIntOrZero(getItem6.Month2) - getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month2 = (Funs.GetNewDecimalOrZero(getItem7.Month2) - getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month2 = (Funs.GetNewIntOrZero(getItem8.Month2) - r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month2 = (Funs.GetNewIntOrZero(getItem9.Month2) - r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month2 = (Funs.GetNewIntOrZero(getItem10.Month2) - r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month2 = (Funs.GetNewIntOrZero(getItem11.Month2) - r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month2 = (Funs.GetNewIntOrZero(getItem12.Month2) - r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month2 = (Funs.GetNewIntOrZero(getItem13.Month2) - r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month2 = (Funs.GetNewIntOrZero(getItem14.Month2) - r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month2 = (Funs.GetNewIntOrZero(getItem15.Month2) - r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month2 = (Funs.GetNewIntOrZero(getItem16.Month2) - r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month2 = (Funs.GetNewIntOrZero(getItem17.Month2) - r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month2 = (Funs.GetNewIntOrZero(getItem18.Month2) - r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month2 = (Funs.GetNewIntOrZero(getItem19.Month2) - countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month2 = (Funs.GetNewDecimalOrZero(getItem20.Month2) - (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month2 = (Funs.GetNewIntOrZero(getItem21.Month2) - getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month2 = (Funs.GetNewIntOrZero(getItem22.Month2) - getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month2 = (Funs.GetNewIntOrZero(getItem23.Month2) - getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month2 = (Funs.GetNewIntOrZero(getItem24.Month2) - getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month2 = (Funs.GetNewIntOrZero(getItem25.Month2) - getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month2 = (Funs.GetNewIntOrZero(getItem26.Month2) - getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month2 = (Funs.GetNewIntOrZero(getItem27.Month2) - getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month2 = (Funs.GetNewIntOrZero(getItem28.Month2) - getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month2 = (Funs.GetNewIntOrZero(getItem29.Month2) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month2 = (Funs.GetNewIntOrZero(getItem30.Month2) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month2 = (Funs.GetNewIntOrZero(getItem31.Month2) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month2 = (Funs.GetNewIntOrZero(getItem32.Month2) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month2 = (Funs.GetNewIntOrZero(getItem33.Month2) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month2 = (Funs.GetNewIntOrZero(getItem34.Month2) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month2 = (Funs.GetNewIntOrZero(getItem35.Month2) - getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month2 = (Funs.GetNewDecimalOrZero(getItem36.Month2) - getSeDin_MonthReport10.SafeMonthMoney ?? 0 - getSeDin_MonthReport10.HseMonthMoney ?? 0 - getSeDin_MonthReport10.ProduceMonthMoney ?? 0).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month2 = (Funs.GetNewDecimalOrZero(getItem37.Month2) - getSeDin_MonthReport10.AccidentMonthMoney ?? 0 - getSeDin_MonthReport10.ViolationMonthMoney ?? 0 - getSeDin_MonthReport10.ManageMonthMoney ?? 0).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month2 = (Funs.GetNewIntOrZero(getItem38.Month2) - getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month2 = (Funs.GetNewIntOrZero(getItem39.Month2) - getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month2 = (Funs.GetNewIntOrZero(getItem40.Month2) - getSeDin_MonthReport12.MultipleSiteNum ?? 0 - getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - - getSeDin_MonthReport12.SingleSiteNum ?? 0 - getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - else if (monthReport.ReporMonth.Value.Month == 3) - { - #region 数据调整 - bool isSave = false; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth != null && Funs.GetNewDateTime(getSubmissionMonth.Month3).HasValue) - { - isSave = true; - } - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month3 = (Funs.GetNewIntOrZero(getItem1.Month3) - getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month3 = (Funs.GetNewIntOrZero(getItem2.Month3) - getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month3 = (Funs.GetNewIntOrZero(getItem3.Month3) - getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month3 = (Funs.GetNewIntOrZero(getItem4.Month3) - getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month3 = (Funs.GetNewIntOrZero(getItem5.Month3) - getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month3 = (Funs.GetNewIntOrZero(getItem6.Month3) - getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month3 = (Funs.GetNewDecimalOrZero(getItem7.Month3) - getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month3 = (Funs.GetNewIntOrZero(getItem8.Month3) - r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month3 = (Funs.GetNewIntOrZero(getItem9.Month3) - r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month3 = (Funs.GetNewIntOrZero(getItem10.Month3) - r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month3 = (Funs.GetNewIntOrZero(getItem11.Month3) - r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month3 = (Funs.GetNewIntOrZero(getItem12.Month3) - r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month3 = (Funs.GetNewIntOrZero(getItem13.Month3) - r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month3 = (Funs.GetNewIntOrZero(getItem14.Month3) - r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month3 = (Funs.GetNewIntOrZero(getItem15.Month3) - r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month3 = (Funs.GetNewIntOrZero(getItem16.Month3) - r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month3 = (Funs.GetNewIntOrZero(getItem17.Month3) - r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month3 = (Funs.GetNewIntOrZero(getItem18.Month3) - r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month3 = (Funs.GetNewIntOrZero(getItem19.Month3) - countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month3 = (Funs.GetNewDecimalOrZero(getItem20.Month3) - (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month3 = (Funs.GetNewIntOrZero(getItem21.Month3) - getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month3 = (Funs.GetNewIntOrZero(getItem22.Month3) - getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month3 = (Funs.GetNewIntOrZero(getItem23.Month3) - getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month3 = (Funs.GetNewIntOrZero(getItem24.Month3) - getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month3 = (Funs.GetNewIntOrZero(getItem25.Month3) - getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month3 = (Funs.GetNewIntOrZero(getItem26.Month3) - getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month3 = (Funs.GetNewIntOrZero(getItem27.Month3) - getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month3 = (Funs.GetNewIntOrZero(getItem28.Month3) - getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month3 = (Funs.GetNewIntOrZero(getItem29.Month3) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month3 = (Funs.GetNewIntOrZero(getItem30.Month3) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month3 = (Funs.GetNewIntOrZero(getItem31.Month3) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month3 = (Funs.GetNewIntOrZero(getItem32.Month3) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month3 = (Funs.GetNewIntOrZero(getItem33.Month3) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month3 = (Funs.GetNewIntOrZero(getItem34.Month3) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month3 = (Funs.GetNewIntOrZero(getItem35.Month3) - getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month3 = (Funs.GetNewDecimalOrZero(getItem36.Month3) - getSeDin_MonthReport10.SafeMonthMoney ?? 0 - getSeDin_MonthReport10.HseMonthMoney ?? 0 - getSeDin_MonthReport10.ProduceMonthMoney ?? 0).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month3 = (Funs.GetNewDecimalOrZero(getItem37.Month3) - getSeDin_MonthReport10.AccidentMonthMoney ?? 0 - getSeDin_MonthReport10.ViolationMonthMoney ?? 0 - getSeDin_MonthReport10.ManageMonthMoney ?? 0).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month3 = (Funs.GetNewIntOrZero(getItem38.Month3) - getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month3 = (Funs.GetNewIntOrZero(getItem39.Month3) - getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month3 = (Funs.GetNewIntOrZero(getItem40.Month3) - getSeDin_MonthReport12.MultipleSiteNum ?? 0 - getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - - getSeDin_MonthReport12.SingleSiteNum ?? 0 - getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - else if (monthReport.ReporMonth.Value.Month == 4) - { - #region 数据调整 - bool isSave = false; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth != null && Funs.GetNewDateTime(getSubmissionMonth.Month4).HasValue) - { - isSave = true; - } - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month4 = (Funs.GetNewIntOrZero(getItem1.Month4) - getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month4 = (Funs.GetNewIntOrZero(getItem2.Month4) - getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month4 = (Funs.GetNewIntOrZero(getItem3.Month4) - getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month4 = (Funs.GetNewIntOrZero(getItem4.Month4) - getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month4 = (Funs.GetNewIntOrZero(getItem5.Month4) - getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month4 = (Funs.GetNewIntOrZero(getItem6.Month4) - getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month4 = (Funs.GetNewDecimalOrZero(getItem7.Month4) - getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month4 = (Funs.GetNewIntOrZero(getItem8.Month4) - r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month4 = (Funs.GetNewIntOrZero(getItem9.Month4) - r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month4 = (Funs.GetNewIntOrZero(getItem10.Month4) - r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month4 = (Funs.GetNewIntOrZero(getItem11.Month4) - r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month4 = (Funs.GetNewIntOrZero(getItem12.Month4) - r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month4 = (Funs.GetNewIntOrZero(getItem13.Month4) - r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month4 = (Funs.GetNewIntOrZero(getItem14.Month4) - r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month4 = (Funs.GetNewIntOrZero(getItem15.Month4) - r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month4 = (Funs.GetNewIntOrZero(getItem16.Month4) - r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month4 = (Funs.GetNewIntOrZero(getItem17.Month4) - r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month4 = (Funs.GetNewIntOrZero(getItem18.Month4) - r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month4 = (Funs.GetNewIntOrZero(getItem19.Month4) - countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month4 = (Funs.GetNewDecimalOrZero(getItem20.Month4) - (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month4 = (Funs.GetNewIntOrZero(getItem21.Month4) - getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month4 = (Funs.GetNewIntOrZero(getItem22.Month4) - getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month4 = (Funs.GetNewIntOrZero(getItem23.Month4) - getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month4 = (Funs.GetNewIntOrZero(getItem24.Month4) - getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month4 = (Funs.GetNewIntOrZero(getItem25.Month4) - getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month4 = (Funs.GetNewIntOrZero(getItem26.Month4) - getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month4 = (Funs.GetNewIntOrZero(getItem27.Month4) - getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month4 = (Funs.GetNewIntOrZero(getItem28.Month4) - getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month4 = (Funs.GetNewIntOrZero(getItem29.Month4) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month4 = (Funs.GetNewIntOrZero(getItem30.Month4) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month4 = (Funs.GetNewIntOrZero(getItem31.Month4) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month4 = (Funs.GetNewIntOrZero(getItem32.Month4) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month4 = (Funs.GetNewIntOrZero(getItem33.Month4) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month4 = (Funs.GetNewIntOrZero(getItem34.Month4) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month4 = (Funs.GetNewIntOrZero(getItem35.Month4) - getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month4 = (Funs.GetNewDecimalOrZero(getItem36.Month4) - getSeDin_MonthReport10.SafeMonthMoney ?? 0 - getSeDin_MonthReport10.HseMonthMoney ?? 0 - getSeDin_MonthReport10.ProduceMonthMoney ?? 0).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month4 = (Funs.GetNewDecimalOrZero(getItem37.Month4) - getSeDin_MonthReport10.AccidentMonthMoney ?? 0 - getSeDin_MonthReport10.ViolationMonthMoney ?? 0 - getSeDin_MonthReport10.ManageMonthMoney ?? 0).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month4 = (Funs.GetNewIntOrZero(getItem38.Month4) - getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month4 = (Funs.GetNewIntOrZero(getItem39.Month4) - getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month4 = (Funs.GetNewIntOrZero(getItem40.Month4) - getSeDin_MonthReport12.MultipleSiteNum ?? 0 - getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - - getSeDin_MonthReport12.SingleSiteNum ?? 0 - getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - else if (monthReport.ReporMonth.Value.Month == 5) - { - #region 数据调整 - bool isSave = false; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth != null && Funs.GetNewDateTime(getSubmissionMonth.Month5).HasValue) - { - isSave = true; - } - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month5 = (Funs.GetNewIntOrZero(getItem1.Month5) - getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month5 = (Funs.GetNewIntOrZero(getItem2.Month5) - getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month5 = (Funs.GetNewIntOrZero(getItem3.Month5) - getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month5 = (Funs.GetNewIntOrZero(getItem4.Month5) - getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month5 = (Funs.GetNewIntOrZero(getItem5.Month5) - getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month5 = (Funs.GetNewIntOrZero(getItem6.Month5) - getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month5 = (Funs.GetNewDecimalOrZero(getItem7.Month5) - getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month5 = (Funs.GetNewIntOrZero(getItem8.Month5) - r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month5 = (Funs.GetNewIntOrZero(getItem9.Month5) - r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month5 = (Funs.GetNewIntOrZero(getItem10.Month5) - r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month5 = (Funs.GetNewIntOrZero(getItem11.Month5) - r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month5 = (Funs.GetNewIntOrZero(getItem12.Month5) - r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month5 = (Funs.GetNewIntOrZero(getItem13.Month5) - r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month5 = (Funs.GetNewIntOrZero(getItem14.Month5) - r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month5 = (Funs.GetNewIntOrZero(getItem15.Month5) - r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month5 = (Funs.GetNewIntOrZero(getItem16.Month5) - r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month5 = (Funs.GetNewIntOrZero(getItem17.Month5) - r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month5 = (Funs.GetNewIntOrZero(getItem18.Month5) - r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month5 = (Funs.GetNewIntOrZero(getItem19.Month5) - countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month5 = (Funs.GetNewDecimalOrZero(getItem20.Month5) - (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month5 = (Funs.GetNewIntOrZero(getItem21.Month5) - getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month5 = (Funs.GetNewIntOrZero(getItem22.Month5) - getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month5 = (Funs.GetNewIntOrZero(getItem23.Month5) - getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month5 = (Funs.GetNewIntOrZero(getItem24.Month5) - getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month5 = (Funs.GetNewIntOrZero(getItem25.Month5) - getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month5 = (Funs.GetNewIntOrZero(getItem26.Month5) - getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month5 = (Funs.GetNewIntOrZero(getItem27.Month5) - getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month5 = (Funs.GetNewIntOrZero(getItem28.Month5) - getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month5 = (Funs.GetNewIntOrZero(getItem29.Month5) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month5 = (Funs.GetNewIntOrZero(getItem30.Month5) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month5 = (Funs.GetNewIntOrZero(getItem31.Month5) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month5 = (Funs.GetNewIntOrZero(getItem32.Month5) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month5 = (Funs.GetNewIntOrZero(getItem33.Month5) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month5 = (Funs.GetNewIntOrZero(getItem34.Month5) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month5 = (Funs.GetNewIntOrZero(getItem35.Month5) - getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month5 = (Funs.GetNewDecimalOrZero(getItem36.Month5) - getSeDin_MonthReport10.SafeMonthMoney ?? 0 - getSeDin_MonthReport10.HseMonthMoney ?? 0 - getSeDin_MonthReport10.ProduceMonthMoney ?? 0).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month5 = (Funs.GetNewDecimalOrZero(getItem37.Month5) - getSeDin_MonthReport10.AccidentMonthMoney ?? 0 - getSeDin_MonthReport10.ViolationMonthMoney ?? 0 - getSeDin_MonthReport10.ManageMonthMoney ?? 0).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month5 = (Funs.GetNewIntOrZero(getItem38.Month5) - getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month5 = (Funs.GetNewIntOrZero(getItem39.Month5) - getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month5 = (Funs.GetNewIntOrZero(getItem40.Month5) - getSeDin_MonthReport12.MultipleSiteNum ?? 0 - getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - - getSeDin_MonthReport12.SingleSiteNum ?? 0 - getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - else if (monthReport.ReporMonth.Value.Month == 6) - { - #region 数据调整 - bool isSave = false; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth != null && Funs.GetNewDateTime(getSubmissionMonth.Month6).HasValue) - { - isSave = true; - } - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month6 = (Funs.GetNewIntOrZero(getItem1.Month6) - getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month6 = (Funs.GetNewIntOrZero(getItem2.Month6) - getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month6 = (Funs.GetNewIntOrZero(getItem3.Month6) - getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month6 = (Funs.GetNewIntOrZero(getItem4.Month6) - getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month6 = (Funs.GetNewIntOrZero(getItem5.Month6) - getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month6 = (Funs.GetNewIntOrZero(getItem6.Month6) - getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month6 = (Funs.GetNewDecimalOrZero(getItem7.Month6) - getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month6 = (Funs.GetNewIntOrZero(getItem8.Month6) - r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month6 = (Funs.GetNewIntOrZero(getItem9.Month6) - r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month6 = (Funs.GetNewIntOrZero(getItem10.Month6) - r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month6 = (Funs.GetNewIntOrZero(getItem11.Month6) - r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month6 = (Funs.GetNewIntOrZero(getItem12.Month6) - r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month6 = (Funs.GetNewIntOrZero(getItem13.Month6) - r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month6 = (Funs.GetNewIntOrZero(getItem14.Month6) - r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month6 = (Funs.GetNewIntOrZero(getItem15.Month6) - r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month6 = (Funs.GetNewIntOrZero(getItem16.Month6) - r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month6 = (Funs.GetNewIntOrZero(getItem17.Month6) - r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month6 = (Funs.GetNewIntOrZero(getItem18.Month6) - r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month6 = (Funs.GetNewIntOrZero(getItem19.Month6) - countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month6 = (Funs.GetNewDecimalOrZero(getItem20.Month6) - (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month6 = (Funs.GetNewIntOrZero(getItem21.Month6) - getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month6 = (Funs.GetNewIntOrZero(getItem22.Month6) - getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month6 = (Funs.GetNewIntOrZero(getItem23.Month6) - getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month6 = (Funs.GetNewIntOrZero(getItem24.Month6) - getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month6 = (Funs.GetNewIntOrZero(getItem25.Month6) - getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month6 = (Funs.GetNewIntOrZero(getItem26.Month6) - getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month6 = (Funs.GetNewIntOrZero(getItem27.Month6) - getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month6 = (Funs.GetNewIntOrZero(getItem28.Month6) - getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month6 = (Funs.GetNewIntOrZero(getItem29.Month6) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month6 = (Funs.GetNewIntOrZero(getItem30.Month6) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month6 = (Funs.GetNewIntOrZero(getItem31.Month6) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month6 = (Funs.GetNewIntOrZero(getItem32.Month6) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month6 = (Funs.GetNewIntOrZero(getItem33.Month6) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month6 = (Funs.GetNewIntOrZero(getItem34.Month6) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month6 = (Funs.GetNewIntOrZero(getItem35.Month6) - getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month6 = (Funs.GetNewDecimalOrZero(getItem36.Month6) - getSeDin_MonthReport10.SafeMonthMoney ?? 0 - getSeDin_MonthReport10.HseMonthMoney ?? 0 - getSeDin_MonthReport10.ProduceMonthMoney ?? 0).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month6 = (Funs.GetNewDecimalOrZero(getItem37.Month6) - getSeDin_MonthReport10.AccidentMonthMoney ?? 0 - getSeDin_MonthReport10.ViolationMonthMoney ?? 0 - getSeDin_MonthReport10.ManageMonthMoney ?? 0).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month6 = (Funs.GetNewIntOrZero(getItem38.Month6) - getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month6 = (Funs.GetNewIntOrZero(getItem39.Month6) - getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month6 = (Funs.GetNewIntOrZero(getItem40.Month6) - getSeDin_MonthReport12.MultipleSiteNum ?? 0 - getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - - getSeDin_MonthReport12.SingleSiteNum ?? 0 - getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - else if (monthReport.ReporMonth.Value.Month == 7) - { - #region 数据调整 - bool isSave = false; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth != null && Funs.GetNewDateTime(getSubmissionMonth.Month7).HasValue) - { - isSave = true; - } - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month7 = (Funs.GetNewIntOrZero(getItem1.Month7) - getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month7 = (Funs.GetNewIntOrZero(getItem2.Month7) - getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month7 = (Funs.GetNewIntOrZero(getItem3.Month7) - getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month7 = (Funs.GetNewIntOrZero(getItem4.Month7) - getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month7 = (Funs.GetNewIntOrZero(getItem5.Month7) - getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month7 = (Funs.GetNewIntOrZero(getItem6.Month7) - getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month7 = (Funs.GetNewDecimalOrZero(getItem7.Month7) - getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month7 = (Funs.GetNewIntOrZero(getItem8.Month7) - r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month7 = (Funs.GetNewIntOrZero(getItem9.Month7) - r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month7 = (Funs.GetNewIntOrZero(getItem10.Month7) - r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month7 = (Funs.GetNewIntOrZero(getItem11.Month7) - r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month7 = (Funs.GetNewIntOrZero(getItem12.Month7) - r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month7 = (Funs.GetNewIntOrZero(getItem13.Month7) - r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month7 = (Funs.GetNewIntOrZero(getItem14.Month7) - r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month7 = (Funs.GetNewIntOrZero(getItem15.Month7) - r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month7 = (Funs.GetNewIntOrZero(getItem16.Month7) - r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month7 = (Funs.GetNewIntOrZero(getItem17.Month7) - r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month7 = (Funs.GetNewIntOrZero(getItem18.Month7) - r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month7 = (Funs.GetNewIntOrZero(getItem19.Month7) - countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month7 = (Funs.GetNewDecimalOrZero(getItem20.Month7) - (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month7 = (Funs.GetNewIntOrZero(getItem21.Month7) - getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month7 = (Funs.GetNewIntOrZero(getItem22.Month7) - getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month7 = (Funs.GetNewIntOrZero(getItem23.Month7) - getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month7 = (Funs.GetNewIntOrZero(getItem24.Month7) - getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month7 = (Funs.GetNewIntOrZero(getItem25.Month7) - getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month7 = (Funs.GetNewIntOrZero(getItem26.Month7) - getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month7 = (Funs.GetNewIntOrZero(getItem27.Month7) - getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month7 = (Funs.GetNewIntOrZero(getItem28.Month7) - getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month7 = (Funs.GetNewIntOrZero(getItem29.Month7) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month7 = (Funs.GetNewIntOrZero(getItem30.Month7) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month7 = (Funs.GetNewIntOrZero(getItem31.Month7) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month7 = (Funs.GetNewIntOrZero(getItem32.Month7) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month7 = (Funs.GetNewIntOrZero(getItem33.Month7) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month7 = (Funs.GetNewIntOrZero(getItem34.Month7) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month7 = (Funs.GetNewIntOrZero(getItem35.Month7) - getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month7 = (Funs.GetNewDecimalOrZero(getItem36.Month7) - getSeDin_MonthReport10.SafeMonthMoney ?? 0 - getSeDin_MonthReport10.HseMonthMoney ?? 0 - getSeDin_MonthReport10.ProduceMonthMoney ?? 0).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month7 = (Funs.GetNewDecimalOrZero(getItem37.Month7) - getSeDin_MonthReport10.AccidentMonthMoney ?? 0 - getSeDin_MonthReport10.ViolationMonthMoney ?? 0 - getSeDin_MonthReport10.ManageMonthMoney ?? 0).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month7 = (Funs.GetNewIntOrZero(getItem38.Month7) - getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month7 = (Funs.GetNewIntOrZero(getItem39.Month7) - getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month7 = (Funs.GetNewIntOrZero(getItem40.Month7) - getSeDin_MonthReport12.MultipleSiteNum ?? 0 - getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - - getSeDin_MonthReport12.SingleSiteNum ?? 0 - getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - else if (monthReport.ReporMonth.Value.Month == 8) - { - #region 数据调整 - bool isSave = false; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth != null && Funs.GetNewDateTime(getSubmissionMonth.Month8).HasValue) - { - isSave = true; - } - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month8 = (Funs.GetNewIntOrZero(getItem1.Month8) - getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month8 = (Funs.GetNewIntOrZero(getItem2.Month8) - getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month8 = (Funs.GetNewIntOrZero(getItem3.Month8) - getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month8 = (Funs.GetNewIntOrZero(getItem4.Month8) - getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month8 = (Funs.GetNewIntOrZero(getItem5.Month8) - getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month8 = (Funs.GetNewIntOrZero(getItem6.Month8) - getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month8 = (Funs.GetNewDecimalOrZero(getItem7.Month8) - getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month8 = (Funs.GetNewIntOrZero(getItem8.Month8) - r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month8 = (Funs.GetNewIntOrZero(getItem9.Month8) - r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month8 = (Funs.GetNewIntOrZero(getItem10.Month8) - r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month8 = (Funs.GetNewIntOrZero(getItem11.Month8) - r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month8 = (Funs.GetNewIntOrZero(getItem12.Month8) - r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month8 = (Funs.GetNewIntOrZero(getItem13.Month8) - r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month8 = (Funs.GetNewIntOrZero(getItem14.Month8) - r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month8 = (Funs.GetNewIntOrZero(getItem15.Month8) - r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month8 = (Funs.GetNewIntOrZero(getItem16.Month8) - r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month8 = (Funs.GetNewIntOrZero(getItem17.Month8) - r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month8 = (Funs.GetNewIntOrZero(getItem18.Month8) - r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month8 = (Funs.GetNewIntOrZero(getItem19.Month8) - countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month8 = (Funs.GetNewDecimalOrZero(getItem20.Month8) - (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month8 = (Funs.GetNewIntOrZero(getItem21.Month8) - getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month8 = (Funs.GetNewIntOrZero(getItem22.Month8) - getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month8 = (Funs.GetNewIntOrZero(getItem23.Month8) - getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month8 = (Funs.GetNewIntOrZero(getItem24.Month8) - getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month8 = (Funs.GetNewIntOrZero(getItem25.Month8) - getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month8 = (Funs.GetNewIntOrZero(getItem26.Month8) - getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month8 = (Funs.GetNewIntOrZero(getItem27.Month8) - getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month8 = (Funs.GetNewIntOrZero(getItem28.Month8) - getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month8 = (Funs.GetNewIntOrZero(getItem29.Month8) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month8 = (Funs.GetNewIntOrZero(getItem30.Month8) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month8 = (Funs.GetNewIntOrZero(getItem31.Month8) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month8 = (Funs.GetNewIntOrZero(getItem32.Month8) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month8 = (Funs.GetNewIntOrZero(getItem33.Month8) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month8 = (Funs.GetNewIntOrZero(getItem34.Month8) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month8 = (Funs.GetNewIntOrZero(getItem35.Month8) - getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month8 = (Funs.GetNewDecimalOrZero(getItem36.Month8) - getSeDin_MonthReport10.SafeMonthMoney ?? 0 - getSeDin_MonthReport10.HseMonthMoney ?? 0 - getSeDin_MonthReport10.ProduceMonthMoney ?? 0).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month8 = (Funs.GetNewDecimalOrZero(getItem37.Month8) - getSeDin_MonthReport10.AccidentMonthMoney ?? 0 - getSeDin_MonthReport10.ViolationMonthMoney ?? 0 - getSeDin_MonthReport10.ManageMonthMoney ?? 0).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month8 = (Funs.GetNewIntOrZero(getItem38.Month8) - getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month8 = (Funs.GetNewIntOrZero(getItem39.Month8) - getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month8 = (Funs.GetNewIntOrZero(getItem40.Month8) - getSeDin_MonthReport12.MultipleSiteNum ?? 0 - getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - - getSeDin_MonthReport12.SingleSiteNum ?? 0 - getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - else if (monthReport.ReporMonth.Value.Month == 9) - { - #region 数据调整 - bool isSave = false; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth != null && Funs.GetNewDateTime(getSubmissionMonth.Month9).HasValue) - { - isSave = true; - } - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month9 = (Funs.GetNewIntOrZero(getItem1.Month9) - getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month9 = (Funs.GetNewIntOrZero(getItem2.Month9) - getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month9 = (Funs.GetNewIntOrZero(getItem3.Month9) - getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month9 = (Funs.GetNewIntOrZero(getItem4.Month9) - getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month9 = (Funs.GetNewIntOrZero(getItem5.Month9) - getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month9 = (Funs.GetNewIntOrZero(getItem6.Month9) - getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month9 = (Funs.GetNewDecimalOrZero(getItem7.Month9) - getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month9 = (Funs.GetNewIntOrZero(getItem8.Month9) - r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month9 = (Funs.GetNewIntOrZero(getItem9.Month9) - r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month9 = (Funs.GetNewIntOrZero(getItem10.Month9) - r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month9 = (Funs.GetNewIntOrZero(getItem11.Month9) - r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month9 = (Funs.GetNewIntOrZero(getItem12.Month9) - r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month9 = (Funs.GetNewIntOrZero(getItem13.Month9) - r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month9 = (Funs.GetNewIntOrZero(getItem14.Month9) - r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month9 = (Funs.GetNewIntOrZero(getItem15.Month9) - r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month9 = (Funs.GetNewIntOrZero(getItem16.Month9) - r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month9 = (Funs.GetNewIntOrZero(getItem17.Month9) - r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month9 = (Funs.GetNewIntOrZero(getItem18.Month9) - r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month9 = (Funs.GetNewIntOrZero(getItem19.Month9) - countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month9 = (Funs.GetNewDecimalOrZero(getItem20.Month9) - (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month9 = (Funs.GetNewIntOrZero(getItem21.Month9) - getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month9 = (Funs.GetNewIntOrZero(getItem22.Month9) - getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month9 = (Funs.GetNewIntOrZero(getItem23.Month9) - getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month9 = (Funs.GetNewIntOrZero(getItem24.Month9) - getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month9 = (Funs.GetNewIntOrZero(getItem25.Month9) - getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month9 = (Funs.GetNewIntOrZero(getItem26.Month9) - getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month9 = (Funs.GetNewIntOrZero(getItem27.Month9) - getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month9 = (Funs.GetNewIntOrZero(getItem28.Month9) - getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month9 = (Funs.GetNewIntOrZero(getItem29.Month9) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month9 = (Funs.GetNewIntOrZero(getItem30.Month9) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month9 = (Funs.GetNewIntOrZero(getItem31.Month9) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month9 = (Funs.GetNewIntOrZero(getItem32.Month9) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month9 = (Funs.GetNewIntOrZero(getItem33.Month9) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month9 = (Funs.GetNewIntOrZero(getItem34.Month9) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month9 = (Funs.GetNewIntOrZero(getItem35.Month9) - getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month9 = (Funs.GetNewDecimalOrZero(getItem36.Month9) - getSeDin_MonthReport10.SafeMonthMoney ?? 0 - getSeDin_MonthReport10.HseMonthMoney ?? 0 - getSeDin_MonthReport10.ProduceMonthMoney ?? 0).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month9 = (Funs.GetNewDecimalOrZero(getItem37.Month9) - getSeDin_MonthReport10.AccidentMonthMoney ?? 0 - getSeDin_MonthReport10.ViolationMonthMoney ?? 0 - getSeDin_MonthReport10.ManageMonthMoney ?? 0).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month9 = (Funs.GetNewIntOrZero(getItem38.Month9) - getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month9 = (Funs.GetNewIntOrZero(getItem39.Month9) - getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month9 = (Funs.GetNewIntOrZero(getItem40.Month9) - getSeDin_MonthReport12.MultipleSiteNum ?? 0 - getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - - getSeDin_MonthReport12.SingleSiteNum ?? 0 - getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - else if (monthReport.ReporMonth.Value.Month == 10) - { - #region 数据调整 - bool isSave = false; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth != null && Funs.GetNewDateTime(getSubmissionMonth.Month10).HasValue) - { - isSave = true; - } - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month10 = (Funs.GetNewIntOrZero(getItem1.Month10) - getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month10 = (Funs.GetNewIntOrZero(getItem2.Month10) - getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month10 = (Funs.GetNewIntOrZero(getItem3.Month10) - getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month10 = (Funs.GetNewIntOrZero(getItem4.Month10) - getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month10 = (Funs.GetNewIntOrZero(getItem5.Month10) - getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month10 = (Funs.GetNewIntOrZero(getItem6.Month10) - getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month10 = (Funs.GetNewDecimalOrZero(getItem7.Month10) - getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month10 = (Funs.GetNewIntOrZero(getItem8.Month10) - r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month10 = (Funs.GetNewIntOrZero(getItem9.Month10) - r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month10 = (Funs.GetNewIntOrZero(getItem10.Month10) - r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month10 = (Funs.GetNewIntOrZero(getItem11.Month10) - r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month10 = (Funs.GetNewIntOrZero(getItem12.Month10) - r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month10 = (Funs.GetNewIntOrZero(getItem13.Month10) - r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month10 = (Funs.GetNewIntOrZero(getItem14.Month10) - r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month10 = (Funs.GetNewIntOrZero(getItem15.Month10) - r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month10 = (Funs.GetNewIntOrZero(getItem16.Month10) - r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month10 = (Funs.GetNewIntOrZero(getItem17.Month10) - r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month10 = (Funs.GetNewIntOrZero(getItem18.Month10) - r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month10 = (Funs.GetNewIntOrZero(getItem19.Month10) - countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month10 = (Funs.GetNewDecimalOrZero(getItem20.Month10) - (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month10 = (Funs.GetNewIntOrZero(getItem21.Month10) - getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month10 = (Funs.GetNewIntOrZero(getItem22.Month10) - getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month10 = (Funs.GetNewIntOrZero(getItem23.Month10) - getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month10 = (Funs.GetNewIntOrZero(getItem24.Month10) - getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month10 = (Funs.GetNewIntOrZero(getItem25.Month10) - getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month10 = (Funs.GetNewIntOrZero(getItem26.Month10) - getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month10 = (Funs.GetNewIntOrZero(getItem27.Month10) - getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month10 = (Funs.GetNewIntOrZero(getItem28.Month10) - getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month10 = (Funs.GetNewIntOrZero(getItem29.Month10) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month10 = (Funs.GetNewIntOrZero(getItem30.Month10) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month10 = (Funs.GetNewIntOrZero(getItem31.Month10) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month10 = (Funs.GetNewIntOrZero(getItem32.Month10) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month10 = (Funs.GetNewIntOrZero(getItem33.Month10) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month10 = (Funs.GetNewIntOrZero(getItem34.Month10) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month10 = (Funs.GetNewIntOrZero(getItem35.Month10) - getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month10 = (Funs.GetNewDecimalOrZero(getItem36.Month10) - getSeDin_MonthReport10.SafeMonthMoney ?? 0 - getSeDin_MonthReport10.HseMonthMoney ?? 0 - getSeDin_MonthReport10.ProduceMonthMoney ?? 0).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month10 = (Funs.GetNewDecimalOrZero(getItem37.Month10) - getSeDin_MonthReport10.AccidentMonthMoney ?? 0 - getSeDin_MonthReport10.ViolationMonthMoney ?? 0 - getSeDin_MonthReport10.ManageMonthMoney ?? 0).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month10 = (Funs.GetNewIntOrZero(getItem38.Month10) - getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month10 = (Funs.GetNewIntOrZero(getItem39.Month10) - getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month10 = (Funs.GetNewIntOrZero(getItem40.Month10) - getSeDin_MonthReport12.MultipleSiteNum ?? 0 - getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - - getSeDin_MonthReport12.SingleSiteNum ?? 0 - getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - else if (monthReport.ReporMonth.Value.Month == 11) - { - #region 数据调整 - bool isSave = false; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth != null && Funs.GetNewDateTime(getSubmissionMonth.Month11).HasValue) - { - isSave = true; - } - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month11 = (Funs.GetNewIntOrZero(getItem1.Month11) - getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month11 = (Funs.GetNewIntOrZero(getItem2.Month11) - getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month11 = (Funs.GetNewIntOrZero(getItem3.Month11) - getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month11 = (Funs.GetNewIntOrZero(getItem4.Month11) - getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month11 = (Funs.GetNewIntOrZero(getItem5.Month11) - getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month11 = (Funs.GetNewIntOrZero(getItem6.Month11) - getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month11 = (Funs.GetNewDecimalOrZero(getItem7.Month11) - getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month11 = (Funs.GetNewIntOrZero(getItem8.Month11) - r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month11 = (Funs.GetNewIntOrZero(getItem9.Month11) - r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month11 = (Funs.GetNewIntOrZero(getItem10.Month11) - r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month11 = (Funs.GetNewIntOrZero(getItem11.Month11) - r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month11 = (Funs.GetNewIntOrZero(getItem12.Month11) - r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month11 = (Funs.GetNewIntOrZero(getItem13.Month11) - r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month11 = (Funs.GetNewIntOrZero(getItem14.Month11) - r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month11 = (Funs.GetNewIntOrZero(getItem15.Month11) - r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month11 = (Funs.GetNewIntOrZero(getItem16.Month11) - r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month11 = (Funs.GetNewIntOrZero(getItem17.Month11) - r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month11 = (Funs.GetNewIntOrZero(getItem18.Month11) - r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month11 = (Funs.GetNewIntOrZero(getItem19.Month11) - countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month11 = (Funs.GetNewDecimalOrZero(getItem20.Month11) - (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month11 = (Funs.GetNewIntOrZero(getItem21.Month11) - getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month11 = (Funs.GetNewIntOrZero(getItem22.Month11) - getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month11 = (Funs.GetNewIntOrZero(getItem23.Month11) - getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month11 = (Funs.GetNewIntOrZero(getItem24.Month11) - getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month11 = (Funs.GetNewIntOrZero(getItem25.Month11) - getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month11 = (Funs.GetNewIntOrZero(getItem26.Month11) - getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month11 = (Funs.GetNewIntOrZero(getItem27.Month11) - getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month11 = (Funs.GetNewIntOrZero(getItem28.Month11) - getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month11 = (Funs.GetNewIntOrZero(getItem29.Month11) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month11 = (Funs.GetNewIntOrZero(getItem30.Month11) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month11 = (Funs.GetNewIntOrZero(getItem31.Month11) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month11 = (Funs.GetNewIntOrZero(getItem32.Month11) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month11 = (Funs.GetNewIntOrZero(getItem33.Month11) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month11 = (Funs.GetNewIntOrZero(getItem34.Month11) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month11 = (Funs.GetNewIntOrZero(getItem35.Month11) - getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month11 = (Funs.GetNewDecimalOrZero(getItem36.Month11) - getSeDin_MonthReport10.SafeMonthMoney ?? 0 - getSeDin_MonthReport10.HseMonthMoney ?? 0 - getSeDin_MonthReport10.ProduceMonthMoney ?? 0).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month11 = (Funs.GetNewDecimalOrZero(getItem37.Month11) - getSeDin_MonthReport10.AccidentMonthMoney ?? 0 - getSeDin_MonthReport10.ViolationMonthMoney ?? 0 - getSeDin_MonthReport10.ManageMonthMoney ?? 0).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month11 = (Funs.GetNewIntOrZero(getItem38.Month11) - getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month11 = (Funs.GetNewIntOrZero(getItem39.Month11) - getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month11 = (Funs.GetNewIntOrZero(getItem40.Month11) - getSeDin_MonthReport12.MultipleSiteNum ?? 0 - getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - - getSeDin_MonthReport12.SingleSiteNum ?? 0 - getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - else if (monthReport.ReporMonth.Value.Month == 12) - { - #region 数据调整 - bool isSave = false; - var getSubmissionMonth = getHSEDataCollectISubmissionYear.FirstOrDefault(x => x.ProjectId == monthReport.ProjectId); - if (getSubmissionMonth != null && Funs.GetNewDateTime(getSubmissionMonth.Month12).HasValue) - { - isSave = true; - } - if (isSave) - { - ////员工 - var getSeDin_MonthReport4Other = db.SeDin_MonthReport4Other.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport4Other != null) - { - var getItem1 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 1); - if (getItem1 != null) - { - getItem1.Month12 = (Funs.GetNewIntOrZero(getItem1.Month12) - getSeDin_MonthReport4Other.TotalNum ?? 0).ToString(); - } - var getItem2 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 2); - if (getItem2 != null) - { - getItem2.Month12 = (Funs.GetNewIntOrZero(getItem2.Month12) - getSeDin_MonthReport4Other.OutsideNum ?? 0).ToString(); - } - var getItem3 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 3); - if (getItem3 != null) - { - getItem3.Month12 = (Funs.GetNewIntOrZero(getItem3.Month12) - getSeDin_MonthReport4Other.ForeignNum ?? 0).ToString(); - } - var getItem4 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 4); - if (getItem4 != null) - { - getItem4.Month12 = (Funs.GetNewIntOrZero(getItem4.Month12) - getSeDin_MonthReport4Other.ManagerNum ?? 0).ToString(); - } - } - ////分包人数 - var getSeDin_MonthReport4 = from x in db.SeDin_MonthReport4 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport4.Count() > 0) - { - var getItem5 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 5); - if (getItem5 != null) - { - getItem5.Month12 = (Funs.GetNewIntOrZero(getItem5.Month12) - getSeDin_MonthReport4.Sum(x => x.TotalNum ?? 0)).ToString(); - } - var getItem6 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 6); - if (getItem6 != null) - { - getItem6.Month12 = (Funs.GetNewIntOrZero(getItem6.Month12) - getSeDin_MonthReport4.Sum(x => x.SafeManangerNum ?? 0)).ToString(); - } - } - ///安全人工时 - var getSeDin_MonthReport2 = db.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport2 != null) - { - var getItem7 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 7); - if (getItem7 != null) - { - getItem7.Month12 = (Funs.GetNewDecimalOrZero(getItem7.Month12) - getSeDin_MonthReport2.MonthWorkTime ?? 0).ToString(); - } - } - ////事故 - var getSeDin_MonthReport3 = from x in db.SeDin_MonthReport3 - where x.MonthReportId == monthReport.MonthReportId - select x; - if (getSeDin_MonthReport3.Count() > 0) - { - var getItem8 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 8); - if (getItem8 != null) - { - var r1 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 1); - if (r1 != null) - { - getItem8.Month12 = (Funs.GetNewIntOrZero(getItem8.Month12) - r1.MonthPersons ?? 0).ToString(); - } - } - var getItem9 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 9); - if (getItem9 != null) - { - var r2 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 2); - if (r2 != null) - { - getItem9.Month12 = (Funs.GetNewIntOrZero(getItem9.Month12) - r2.MonthPersons ?? 0).ToString(); - } - } - var getItem10 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 10); - if (getItem10 != null) - { - var r3 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 3); - if (r3 != null) - { - getItem10.Month12 = (Funs.GetNewIntOrZero(getItem10.Month12) - r3.MonthPersons ?? 0).ToString(); - } - } - var getItem11 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 11); - if (getItem11 != null) - { - var r4 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 4); - if (r4 != null) - { - getItem11.Month12 = (Funs.GetNewIntOrZero(getItem11.Month12) - r4.MonthPersons ?? 0).ToString(); - } - } - - var getItem12 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 12); - if (getItem12 != null) - { - var r5 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 5); - if (r5 != null) - { - getItem12.Month12 = (Funs.GetNewIntOrZero(getItem12.Month12) - r5.MonthTimes ?? 0).ToString(); - } - } - var getItem13 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 13); - if (getItem13 != null) - { - var r6 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 6); - if (r6 != null) - { - getItem13.Month12 = (Funs.GetNewIntOrZero(getItem13.Month12) - r6.MonthTimes ?? 0).ToString(); - } - } - var getItem14 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 14); - if (getItem14 != null) - { - var r7 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 7); - if (r7 != null) - { - getItem14.Month12 = (Funs.GetNewIntOrZero(getItem14.Month12) - r7.MonthTimes ?? 0).ToString(); - } - } - var getItem15 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 15); - if (getItem15 != null) - { - var r8 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 8); - if (r8 != null) - { - getItem15.Month12 = (Funs.GetNewIntOrZero(getItem15.Month12) - r8.MonthTimes ?? 0).ToString(); - } - } - var getItem16 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 16); - if (getItem16 != null) - { - var r9 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 9); - if (r9 != null) - { - getItem16.Month12 = (Funs.GetNewIntOrZero(getItem16.Month12) - r9.MonthTimes ?? 0).ToString(); - } - } - var getItem17 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 17); - if (getItem17 != null) - { - var r10 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 10); - if (r10 != null) - { - getItem17.Month12 = (Funs.GetNewIntOrZero(getItem17.Month12) - r10.MonthTimes ?? 0).ToString(); - } - } - var getItem18 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 18); - if (getItem18 != null) - { - var r11 = getSeDin_MonthReport3.FirstOrDefault(x => x.SortIndex == 11); - if (r11 != null) - { - getItem18.Month12 = (Funs.GetNewIntOrZero(getItem18.Month12) - r11.MonthTimes ?? 0).ToString(); - } - } - } - ////大型、特种设备 - var getSeDin_MonthReport5 = from x in db.SeDin_MonthReport5 - where x.MonthReportId == monthReport.MonthReportId - select x; - var getItem19 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 19); - if (getSeDin_MonthReport5.Count() > 0 && getItem19 != null) - { - int countSumR5 = getSeDin_MonthReport5.Sum(x => x.T01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.T04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T05 ?? 0) + getSeDin_MonthReport5.Sum(x => x.T06 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D01 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D02 ?? 0) + getSeDin_MonthReport5.Sum(x => x.D03 ?? 0) - + getSeDin_MonthReport5.Sum(x => x.D04 ?? 0) + getSeDin_MonthReport5.Sum(x => x.S01 ?? 0); - getItem19.Month12 = (Funs.GetNewIntOrZero(getItem19.Month12) - countSumR5).ToString(); - } - ////安全生产费用 - var getSeDin_MonthReport6 = db.SeDin_MonthReport6.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport6 != null) - { - var getItem20 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 20); - if (getItem20 != null) - { - getItem20.Month12 = (Funs.GetNewDecimalOrZero(getItem20.Month12) - (getSeDin_MonthReport6.SumMonth ?? 0)/10000).ToString(); - } - } - ////项目现场员工入场安全培训人数 - var getSeDin_MonthReport7 = db.SeDin_MonthReport7.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport7 != null) - { - var getItem21 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 21); - if (getItem21 != null) - { - getItem21.Month12 = (Funs.GetNewIntOrZero(getItem21.Month12) - getSeDin_MonthReport7.EmployeeMontPerson ?? 0).ToString(); - } - } - ////项目会次 - var getSeDin_MonthReport8 = db.SeDin_MonthReport8.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport8 != null) - { - var getItem22 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 22); - if (getItem22 != null) - { - getItem22.Month12 = (Funs.GetNewIntOrZero(getItem22.Month12) - getSeDin_MonthReport8.MonthMontNum ?? 0).ToString(); - } - var getItem23 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 23); - if (getItem23 != null) - { - getItem23.Month12 = (Funs.GetNewIntOrZero(getItem23.Month12) - getSeDin_MonthReport8.WeekMontNum ?? 0).ToString(); - } - var getItem24 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 24); - if (getItem24 != null) - { - getItem24.Month12 = (Funs.GetNewIntOrZero(getItem24.Month12) - getSeDin_MonthReport8.SpecialMontPerson ?? 0).ToString(); - } - } - /// 安全检查 - var getSeDin_MonthReport9 = db.SeDin_MonthReport9.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport9 != null) - { - var getItem25 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 25); - if (getItem25 != null) - { - getItem25.Month12 = (Funs.GetNewIntOrZero(getItem25.Month12) - getSeDin_MonthReport9.DailyMonth ?? 0).ToString(); - } - var getItem26 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 26); - if (getItem26 != null) - { - getItem26.Month12 = (Funs.GetNewIntOrZero(getItem26.Month12) - getSeDin_MonthReport9.WeekMonth ?? 0).ToString(); - } - var getItem27 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 27); - if (getItem27 != null) - { - getItem27.Month12 = (Funs.GetNewIntOrZero(getItem27.Month12) - getSeDin_MonthReport9.SpecialMonth ?? 0).ToString(); - } - var getItem28 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 28); - if (getItem28 != null) - { - getItem28.Month12 = (Funs.GetNewIntOrZero(getItem28.Month12) - getSeDin_MonthReport9.MonthlyMonth ?? 0).ToString(); - } - } - /////隐患整改单 - var getSeDin_MonthReport9Rectification = from x in db.SeDin_MonthReport9Item_Rectification where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Rectification.Count() > 0) - { - var getItem29 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 29); - if (getItem29 != null) - { - getItem29.Month12 = (Funs.GetNewIntOrZero(getItem29.Month12) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - var getItem30 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 30); - if (getItem30 != null) - { - getItem30.Month12 = (Funs.GetNewIntOrZero(getItem30.Month12) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMoth ?? 0)).ToString(); - } - var getItem31 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 31); - if (getItem31 != null) - { - getItem31.Month12 = (Funs.GetNewIntOrZero(getItem31.Month12) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthLarge ?? 0)).ToString(); - } - var getItem32 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 32); - if (getItem32 != null) - { - getItem32.Month12 = (Funs.GetNewIntOrZero(getItem32.Month12) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothLarge ?? 0)).ToString(); - } - var getItem33 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 33); - if (getItem33 != null) - { - getItem33.Month12 = (Funs.GetNewIntOrZero(getItem33.Month12) - getSeDin_MonthReport9Rectification.Sum(x => x.IssuedMonthSerious ?? 0)).ToString(); - } - var getItem34 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 34); - if (getItem34 != null) - { - getItem34.Month12 = (Funs.GetNewIntOrZero(getItem34.Month12) - getSeDin_MonthReport9Rectification.Sum(x => x.RectificationMothSerious ?? 0)).ToString(); - } - } - /////停工令 - var getSeDin_MonthReport9Stoppage = from x in db.SeDin_MonthReport9Item_Stoppage where x.MonthReportId == monthReport.MonthReportId select x; - if (getSeDin_MonthReport9Stoppage.Count() > 0) - { - var getItem35 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 35); - if (getItem35 != null) - { - getItem35.Month12 = (Funs.GetNewIntOrZero(getItem35.Month12) - getSeDin_MonthReport9Stoppage.Sum(x => x.IssuedMonth ?? 0)).ToString(); - } - } - ////奖惩 - var getSeDin_MonthReport10 = db.SeDin_MonthReport10.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport10 != null) - { - var getItem36 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 36); - if (getItem36 != null) - { - getItem36.Month12 = (Funs.GetNewDecimalOrZero(getItem36.Month12) - getSeDin_MonthReport10.SafeMonthMoney ?? 0 - getSeDin_MonthReport10.HseMonthMoney ?? 0 - getSeDin_MonthReport10.ProduceMonthMoney ?? 0).ToString(); - } - var getItem37 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 37); - if (getItem37 != null) - { - getItem37.Month12 = (Funs.GetNewDecimalOrZero(getItem37.Month12) - getSeDin_MonthReport10.AccidentMonthMoney ?? 0 - getSeDin_MonthReport10.ViolationMonthMoney ?? 0 - getSeDin_MonthReport10.ManageMonthMoney ?? 0).ToString(); - } - } - ////危大工程 - var getSeDin_MonthReport11 = db.SeDin_MonthReport11.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport11 != null) - { - var getItem38 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 38); - if (getItem38 != null) - { - getItem38.Month12 = (Funs.GetNewIntOrZero(getItem38.Month12) - getSeDin_MonthReport11.RiskWorkNum ?? 0).ToString(); - } - var getItem39 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 39); - if (getItem39 != null) - { - getItem39.Month12 = (Funs.GetNewIntOrZero(getItem39.Month12) - getSeDin_MonthReport11.LargeWorkNum ?? 0).ToString(); - } - } - ////应急 - var getSeDin_MonthReport12 = db.SeDin_MonthReport12.FirstOrDefault(x => x.MonthReportId == monthReport.MonthReportId); - if (getSeDin_MonthReport12 != null) - { - var getItem40 = getHSEDataCollectItemYear.FirstOrDefault(x => x.SortIndex == 40); - if (getItem40 != null) - { - getItem40.Month12 = (Funs.GetNewIntOrZero(getItem40.Month12) - getSeDin_MonthReport12.MultipleSiteNum ?? 0 - getSeDin_MonthReport12.MultipleDesktopNum ?? 0 - - getSeDin_MonthReport12.SingleSiteNum ?? 0 - getSeDin_MonthReport12.SingleDesktopNum ?? 0).ToString(); - } - } - db.SubmitChanges(); - } - #endregion - } - } - #endregion } } \ No newline at end of file diff --git a/SGGL/BLL/HSSE/Check/RectifyNoticesService.cs b/SGGL/BLL/HSSE/Check/RectifyNoticesService.cs index 19321296..988fafb1 100644 --- a/SGGL/BLL/HSSE/Check/RectifyNoticesService.cs +++ b/SGGL/BLL/HSSE/Check/RectifyNoticesService.cs @@ -64,8 +64,8 @@ namespace BLL }; db.Check_RectifyNotices.InsertOnSubmit(newRectifyNotices); db.SubmitChanges(); - ////增加一条编码记录 - CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectRectifyNoticesMenuId, rectifyNotice.ProjectId, rectifyNotice.UnitId, rectifyNotice.RectifyNoticesId, rectifyNotice.CheckedDate); + //////增加一条编码记录 + //CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectRectifyNoticesMenuId, rectifyNotice.ProjectId, rectifyNotice.UnitId, rectifyNotice.RectifyNoticesId, rectifyNotice.CheckedDate); } /// diff --git a/SGGL/BLL/ProjectData/ProjectService.cs b/SGGL/BLL/ProjectData/ProjectService.cs index 07beec47..b5c3252f 100644 --- a/SGGL/BLL/ProjectData/ProjectService.cs +++ b/SGGL/BLL/ProjectData/ProjectService.cs @@ -275,7 +275,7 @@ /// public static List GetProjectByUserIdDropDownList(string userId) { - if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId) + if (userId == Const.sysglyId || userId == Const.hfnbdId ) { return (from x in Funs.DB.Base_Project orderby x.ProjectCode descending @@ -308,7 +308,7 @@ } public static List GetUnEndProjectByUserIdDropDownList(string userId, string needProjectId) { - if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId) + if (userId == Const.sysglyId || userId == Const.hfnbdId ) { return (from x in Funs.DB.Base_Project orderby x.ProjectCode descending @@ -349,7 +349,7 @@ } public static List GetShiYeProjectByUserIdDropDownList(string userId, string needProjectId) { - if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId) + if (userId == Const.sysglyId || userId == Const.hfnbdId ) { return (from x in Funs.DB.Base_Project where x.ProjectAttribute == "SHIYE" @@ -385,7 +385,7 @@ public static List GetUnEndProjectByUserIdDropDownList(string userId, string needProjectId, string ProjectAttribute, string projectState, string projectName = null) { IQueryable projects = null; - if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId) + if (userId == Const.sysglyId || userId == Const.hfnbdId ) { projects = from x in Funs.DB.Base_Project where x.ProjectAttribute.Contains(ProjectAttribute) && (x.IsDelete == null || x.IsDelete == false) diff --git a/SGGL/BLL/SysManage/UserService.cs b/SGGL/BLL/SysManage/UserService.cs index 4bc1253e..8876ba3c 100644 --- a/SGGL/BLL/SysManage/UserService.cs +++ b/SGGL/BLL/SysManage/UserService.cs @@ -505,7 +505,7 @@ namespace BLL using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) { var users = (from x in db.Sys_User - where x.IsPost == true && x.UserId != Const.hfnbdId && x.UserId != Const.sedinId + where x.IsPost == true && x.UserId != Const.hfnbdId orderby x.UserName select x).ToList(); if (!string.IsNullOrEmpty(projectId)) @@ -530,7 +530,7 @@ namespace BLL using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString)) { var users = (from x in db.Sys_User - where x.IsPost == true && x.UserId != Const.hfnbdId && x.UserId != Const.sedinId + where x.IsPost == true && x.UserId != Const.hfnbdId orderby x.UserName select x).ToList(); if (!string.IsNullOrEmpty(projectId)) @@ -584,7 +584,7 @@ namespace BLL else { list = (from x in db.Sys_User - where x.UserId != BLL.Const.hfnbdId && x.UserId != Const.sedinId + where x.UserId != BLL.Const.hfnbdId orderby x.UserName select x).ToList(); @@ -632,7 +632,7 @@ namespace BLL else { list = (from x in db.Sys_User - where x.UnitId == unitId && x.UserId != BLL.Const.hfnbdId && x.UserId != Const.sedinId + where x.UnitId == unitId && x.UserId != BLL.Const.hfnbdId orderby x.UserName select x).ToList(); diff --git a/SGGL/FineUIPro.Web/DigData/HSEDataCollect.aspx.cs b/SGGL/FineUIPro.Web/DigData/HSEDataCollect.aspx.cs index 711b3f0d..ee1b17a8 100644 --- a/SGGL/FineUIPro.Web/DigData/HSEDataCollect.aspx.cs +++ b/SGGL/FineUIPro.Web/DigData/HSEDataCollect.aspx.cs @@ -122,16 +122,6 @@ namespace FineUIPro.Web.DigData protected void btnRefresh_Click(object sender, EventArgs e) { int year = Funs.GetNewInt(this.drpYear.SelectedValue) ?? DateTime.Now.Year; - var getSeDin_MonthReports = from x in Funs.DB.SeDin_MonthReport - where x.States == Const.State_3 && x.ReporMonth.Value.Year == year - select x; - if (getSeDin_MonthReports.Count() > 0) - { - foreach (var item in getSeDin_MonthReports) - { - BLL.HSEDataCollectService.SaveHSEDataCollectItem(item); - } - } this.BindGrid(); this.BindGrid2(); ShowNotify("刷新完成!", MessageBoxIcon.Success); @@ -146,12 +136,12 @@ namespace FineUIPro.Web.DigData var getSubmission = Funs.DB.DigData_HSEDataCollectSubmission.FirstOrDefault(x => x.HSEDataCollectSubmissionId == e.RowID); if (getSubmission != null) { - var getMont = Funs.DB.SeDin_MonthReport.FirstOrDefault(x => x.ReporMonth.Value.Year == year.Value && x.ReporMonth.Value.Month == month.Value && x.ProjectId == getSubmission.ProjectId); - if (getMont != null) - { - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../HSSE/Manager/ManagerMonth_SeDinEdit.aspx?MonthReportId={0}&projectId={1}", getMont.MonthReportId, getMont.ProjectId, "查看 - "))); - //PrinterDocService.PrinterDocMethod(Const.ProjectManagerMonth_SeDinMenuId, getMont.MonthReportId, "安全月报"); - } + //var getMont = Funs.DB.SeDin_MonthReport.FirstOrDefault(x => x.ReporMonth.Value.Year == year.Value && x.ReporMonth.Value.Month == month.Value && x.ProjectId == getSubmission.ProjectId); + //if (getMont != null) + //{ + // PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../HSSE/Manager/ManagerMonth_SeDinEdit.aspx?MonthReportId={0}&projectId={1}", getMont.MonthReportId, getMont.ProjectId, "查看 - "))); + // //PrinterDocService.PrinterDocMethod(Const.ProjectManagerMonth_SeDinMenuId, getMont.MonthReportId, "安全月报"); + //} } } else diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 2f817c95..9a501d63 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -2150,8 +2150,6 @@ - - @@ -14792,20 +14790,6 @@ ManagerMonthC.aspx - - ManagerMonth_SeDin.aspx - ASPXCodeBehind - - - ManagerMonth_SeDin.aspx - - - ManagerMonth_SeDinEdit.aspx - ASPXCodeBehind - - - ManagerMonth_SeDinEdit.aspx - ManagerWeek.aspx ASPXCodeBehind diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDin.aspx b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDin.aspx deleted file mode 100644 index b873f65b..00000000 --- a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDin.aspx +++ /dev/null @@ -1,139 +0,0 @@ -<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ManagerMonth_SeDin.aspx.cs" Inherits="FineUIPro.Web.HSSE.Manager.ManagerMonth_SeDin" %> - - - - - 月报 - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <%-- - --%> - <%-- - --%> - - - - - - - - - - - - - - <%-- --%> - - - - - - - - - - - - - - - - - diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDin.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDin.aspx.cs deleted file mode 100644 index 8c421f4f..00000000 --- a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDin.aspx.cs +++ /dev/null @@ -1,281 +0,0 @@ -using BLL; -using System; -using System.Collections.Generic; -using System.Data; -using System.Data.SqlClient; -using System.Linq; - -namespace FineUIPro.Web.HSSE.Manager -{ - public partial class ManagerMonth_SeDin : PageBase - { - #region 项目主键 - /// - /// 项目主键 - /// - public string ProjectId - { - get - { - return (string)ViewState["ProjectId"]; - } - set - { - ViewState["ProjectId"] = value; - } - } - #endregion - - #region 加载页面 - /// - /// 加载页面 - /// - /// - /// - protected void Page_Load(object sender, EventArgs e) - { - if (!IsPostBack) - { - Funs.DropDownPageSize(this.ddlPageSize); - this.ProjectId = this.CurrUser.LoginProjectId; - if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId) - { - this.ProjectId = Request.Params["projectId"]; - } - ////权限按钮方法 - this.GetButtonPower(); - this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); - // 绑定表格 - this.BindGrid(); - } - } - - /// - /// 绑定数据 - /// - private void BindGrid() - { - string strSql = @"SELECT mr.MonthReportId,mr.ProjectId,mr.DueDate,mr.StartDate,mr.EndDate,mr.ReporMonth,mr.CompileManId,CompileMan.UserName AS CompileManName,mr.AuditManId - ,AuditMan.UserName AS AuditManName,mr.ApprovalManId,mr.AuditManId,ApprovalMan.UserName AS ApprovalManName,mr.ThisSummary,mr.NextPlan,mr.States - ,(CASE WHEN mr.States='0' THEN '待['+ (CASE WHEN nextMan.UserName IS NULL THEN CompileMan.UserName ELSE nextMan.UserName END) +']提交' - WHEN mr.States='1' OR mr.States='2' THEN '待['+nextMan.UserName+']审核' - WHEN mr.States='3' THEN '已完成' - ELSE '待['+(CASE WHEN nextMan.UserName IS NULL THEN CompileMan.UserName ELSE nextMan.UserName END)+']提交' END) AS StateName - FROM dbo.SeDin_MonthReport AS mr - LEFT JOIN Sys_User AS CompileMan on mr.CompileManId = CompileMan.UserId - LEFT JOIN Sys_User AS AuditMan on mr.AuditManId = AuditMan.UserId - LEFT JOIN Sys_User AS ApprovalMan on mr.ApprovalManId = ApprovalMan.UserId - LEFT JOIN Sys_User AS nextMan on mr.NextManId = nextMan.UserId - WHERE 1=1 "; - List listStr = new List(); - strSql += " AND mr.ProjectId = @ProjectId"; - listStr.Add(new SqlParameter("@ProjectId", this.ProjectId)); - - if (!string.IsNullOrEmpty(this.txtReporMonth.Text.Trim())) - { - strSql += " AND mr.ReporMonth LIKE @ReporMonth"; - listStr.Add(new SqlParameter("@ReporMonth", "%" + this.txtReporMonth.Text.Trim() + "%")); - } - SqlParameter[] parameter = listStr.ToArray(); - DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); - Grid1.RecordCount = tb.Rows.Count; - var table = this.GetPagedDataTable(Grid1, tb); - Grid1.DataSource = table; - Grid1.DataBind(); - } - #endregion - - #region 查询 - /// - /// 查询 - /// - /// - /// - protected void TextBox_TextChanged(object sender, EventArgs e) - { - this.BindGrid(); - } - #endregion - - #region 表排序、分页、关闭窗口 - /// - /// 分页 - /// - /// - /// - protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) - { - BindGrid(); - } - - /// - /// 排序 - /// - /// - /// - protected void Grid1_Sort(object sender, GridSortEventArgs e) - { - BindGrid(); - } - - /// - /// 分页显示条数下拉框 - /// - /// - /// - protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) - { - BindGrid(); - } - - /// - /// 关闭弹出窗 - /// - /// - /// - protected void Window1_Close(object sender, WindowCloseEventArgs e) - { - BindGrid(); - } - #endregion - - #region Grid双击事件 - /// - /// Grid行双击事件 - /// - /// - /// - protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) - { - btnMenuModify_Click(null, null); - } - #endregion - - #region 编辑 - /// - /// 编辑按钮 - /// - /// - /// - protected void btnMenuModify_Click(object sender, EventArgs e) - { - if (Grid1.SelectedRowIndexArray.Length == 0) - { - Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); - return; - } - string MonthReportId = Grid1.SelectedRowID; - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ManagerMonth_SeDinEdit.aspx?MonthReportId={0}", MonthReportId, "编辑 - "))); - } - #endregion - - #region 删除 - /// - /// 批量删除 - /// - /// - /// - protected void btnMenuDel_Click(object sender, EventArgs e) - { - if (Grid1.SelectedRowIndexArray.Length > 0) - { - foreach (int rowIndex in Grid1.SelectedRowIndexArray) - { - string rowID = Grid1.DataKeys[rowIndex][0].ToString(); - var mont = ManagerMonth_SeDinService.GetMonthReportByMonthReportId(rowID); - if (mont != null) - { - BLL.HSEDataCollectService.DeleteHSEDataCollectItem(mont); - LogService.AddSys_Log(this.CurrUser, mont.ReporMonth.ToString(), mont.MonthReportId, BLL.Const.ProjectManagerMonth_SeDinMenuId, BLL.Const.BtnDelete); - ManagerMonth_SeDinService.DeleteMonthReportByMonthReportId(rowID); - } - } - BindGrid(); - ShowNotify("删除数据成功!(表格数据已重新绑定)"); - } - } - #endregion - - #region 新增 - /// - /// 新增 - /// - /// - /// - protected void btnNew_Click(object sender, EventArgs e) - { - if (string.IsNullOrWhiteSpace(txtMonth.Text.Trim())) { - Alert.ShowInTop("请输入您要添加的月份!", MessageBoxIcon.Warning); - return; - } - if (ManagerMonth_SeDinService.GetMonthReportByDate(Convert.ToDateTime(txtMonth.Text.Trim()), this.ProjectId)) - { - Alert.ShowInTop("当前月份的月报已存在!", MessageBoxIcon.Warning); - return; - } - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ManagerMonth_SeDinEdit.aspx?Month={0}", txtMonth.Text.Trim()), "添加月报表")); - } - #endregion - - #region 获取按钮权限 - /// - /// 获取按钮权限 - /// - /// - /// - private void GetButtonPower() - { - if (Request.Params["value"] == "0") - { - return; - } - var buttonList = CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ProjectManagerMonth_SeDinMenuId); - if (buttonList.Count() > 0) - { - if (buttonList.Contains(Const.BtnAdd)) - { - this.btnNew.Hidden = false; - } - if (buttonList.Contains(Const.BtnModify)) - { - this.btnMenuModify.Hidden = false; - } - if (buttonList.Contains(Const.BtnDelete)) - { - this.btnMenuDel.Hidden = false; - } - } - } - #endregion - - #region 导出按钮 - /// 导出按钮 - ///
- /// - /// - protected void btnOut_Click(object sender, EventArgs e) - { - Response.ClearContent(); - string filename = Funs.GetNewFileName(); - Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("管理月报" + filename, System.Text.Encoding.UTF8) + ".xls"); - Response.ContentType = "application/excel"; - Response.ContentEncoding = System.Text.Encoding.UTF8; - this.Grid1.PageSize = this.Grid1.RecordCount; - this.BindGrid(); - Response.Write(GetGridTableHtml(Grid1)); - Response.End(); - } - #endregion - - protected void btnPrinter_Click(object sender, EventArgs e) - { - if (Grid1.SelectedRowIndexArray.Length == 0) - { - Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); - return; - } - - PrinterDocService.PrinterDocMethod(Const.ProjectManagerMonth_SeDinMenuId, Grid1.SelectedRowID, "安全月报"); - } - } -} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDin.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDin.aspx.designer.cs deleted file mode 100644 index 2f68e28c..00000000 --- a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDin.aspx.designer.cs +++ /dev/null @@ -1,195 +0,0 @@ -//------------------------------------------------------------------------------ -// <自动生成> -// 此代码由工具生成。 -// -// 对此文件的更改可能导致不正确的行为,如果 -// 重新生成代码,则所做更改将丢失。 -// -//------------------------------------------------------------------------------ - -namespace FineUIPro.Web.HSSE.Manager { - - - public partial class ManagerMonth_SeDin { - - /// - /// form1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlForm form1; - - /// - /// PageManager1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.PageManager PageManager1; - - /// - /// Panel1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Panel Panel1; - - /// - /// Grid1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Grid Grid1; - - /// - /// Toolbar2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Toolbar Toolbar2; - - /// - /// txtReporMonth 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtReporMonth; - - /// - /// ToolbarFill1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ToolbarFill ToolbarFill1; - - /// - /// txtMonth 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DatePicker txtMonth; - - /// - /// btnNew 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnNew; - - /// - /// btnOut 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnOut; - - /// - /// lblNumber 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.WebControls.Label lblNumber; - - /// - /// ToolbarSeparator1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - - /// - /// ToolbarText1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ToolbarText ToolbarText1; - - /// - /// ddlPageSize 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList ddlPageSize; - - /// - /// ToolbarFill2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ToolbarFill ToolbarFill2; - - /// - /// Window1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Window Window1; - - /// - /// Menu1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Menu Menu1; - - /// - /// btnMenuModify 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuButton btnMenuModify; - - /// - /// btnPrinter 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuButton btnPrinter; - - /// - /// btnMenuDel 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuButton btnMenuDel; - } -} diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDinEdit.aspx b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDinEdit.aspx deleted file mode 100644 index 94f9d007..00000000 --- a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDinEdit.aspx +++ /dev/null @@ -1,1299 +0,0 @@ -<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ManagerMonth_SeDinEdit.aspx.cs" - Inherits="FineUIPro.Web.HSSE.Manager.ManagerMonth_SeDinEdit" %> - - - - - 编辑管理月报 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{0}{0}{0}{0}{0}
{0}{0}{0}{0}
{0}
{0}{0}{0}
{0}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
事故类型 - 本月次数 - 次数累计 - 损失工时(本月) - 损失工时(累计) - 经济损失(本月) - 经济损失(累计) - 人数当月 - 人数累计 -
- - - - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -
事故综述(含未遂事故、事件)
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
项目现场正式员工总数项目现场外聘人员总数项目现场外籍人员总数项目现场HSE管理人员总数项目现场员工总数(含外聘)
- - - - - - - - - -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
安全防护投入劳动保护及职业健康投入安全技术进步投入安全教育培训投入合计完成合同额
本月 - - - - - -
年度累计 - - - - - -
项目累计 - - - - - -
工程造价占比 -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
培训课程类型次数参加人次
本月本年度项目累计本月本年度项目累计
专项安全培训 - - - - - -
员工入场安全培训 - - - - - -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
会议类型次数(本月)次数(累计)参会人次(本月)
周例会 - - -
月例会(安委会) - - -
专题会议 - - -
- - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
检查类型次数(本月)次数(本年度累计)次数(项目总累计)
日常巡检 - - -
周联合检查 - - -
专项检查 - - -
月综合HSE检查 - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
类型内容次数(本月)次数(累计)金额(本月)金额(累计)
奖励安全工时奖 - - - -
HSE绩效考核奖励 - - - -
安全生产先进个人奖 - - - -
处罚事故责任处罚 - - - -
违章处罚 - - - -
安全管理处罚 - - - -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - -
类别本月正在施工已完工下月施工计划
危险性较大分部分项工程 - - -
超过一定规模危大工程 - - -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
类别直接投入参演人数本月次数项目累计次数下月计划
综合演练现场演练 - - - - - -
桌面演练 - - - - - -
单项演练现场演练 - - - - - -
桌面演练 - - - - - -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDinEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDinEdit.aspx.cs deleted file mode 100644 index d3efc36b..00000000 --- a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDinEdit.aspx.cs +++ /dev/null @@ -1,1382 +0,0 @@ -using BLL; -using Model; -using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.Data; -using System.Linq; -using System.Web.UI.HtmlControls; - -namespace FineUIPro.Web.HSSE.Manager -{ - public partial class ManagerMonth_SeDinEdit : PageBase - { - #region 定义项 - /// - /// 月报告查主键 - /// - public string MonthReportId - { - get - { - return (string)ViewState["MonthReportId"]; - } - set - { - ViewState["MonthReportId"] = value; - } - } - - /// - /// 项目主键 - /// - public string ProjectId - { - get - { - return (string)ViewState["ProjectId"]; - } - set - { - ViewState["ProjectId"] = value; - } - } - /// - /// 状态 - /// - public string States - { - get - { - return (string)ViewState["States"]; - } - set - { - ViewState["States"] = value; - } - } - #endregion - - /// - /// 页面加载时 - /// - /// - /// - protected void Page_Load(object sender, EventArgs e) - { - if (!IsPostBack) - { - btnClose.OnClientClick = ActiveWindow.GetHideReference(); - this.ProjectId = this.CurrUser.LoginProjectId; - if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.ProjectId) - { - this.ProjectId = Request.Params["projectId"]; - } - this.States = Const.State_0; - ////权限按钮方法 - this.GetButtonPower(); - if (!string.IsNullOrEmpty(Request.Params["MonthReportId"])) - { - MonthReportId = Request.Params["MonthReportId"]; - } - BLL.UserService.InitFlowOperateControlUserDropDownList(this.CompileManId, this.CurrUser.LoginProjectId, Const.UnitId_XJYJ, false); - this.CompileManId.SelectedValue = this.CurrUser.UserId; - BLL.UserService.InitFlowOperateControlUserDropDownList(this.AuditManId, this.CurrUser.LoginProjectId, Const.UnitId_XJYJ, false); - BLL.UserService.InitFlowOperateControlUserDropDownList(this.ApprovalManId, this.CurrUser.LoginProjectId, Const.UnitId_XJYJ, false); - string montvalues = ReporMonth.Text; - var getMont = Funs.DB.SeDin_MonthReport.FirstOrDefault(x => x.MonthReportId == this.MonthReportId); - if (getMont != null) - { - this.CompileManId.SelectedValue = getMont.CompileManId; - this.AuditManId.SelectedValue = getMont.AuditManId; - this.ApprovalManId.SelectedValue = getMont.ApprovalManId; - montvalues = string.Format("{0:yyyy-MM-dd}", getMont.ReporMonth); - this.States = getMont.States; - if (string.IsNullOrEmpty(getMont.NextManId)) - { - getMont.NextManId = getMont.CompileManId; - } - if (this.CurrUser.UserId != getMont.NextManId) - { - this.btnSave.Hidden = true; - this.btnSysSubmit.Hidden = true; - this.Toolbar2.Hidden = true; - } - else - { - if (this.States != Const.State_3) - { - this.btnSave.Hidden = false; - this.btnSysSubmit.Hidden = false; - this.Toolbar2.Hidden = false; - } - } - } - else - { - CompileManId.SelectedValue = CurrUser.UserId; - AuditManId.SelectedIndex = 0; - ApprovalManId.SelectedIndex = 0; - montvalues = Request.Params["Month"]; - } - - for (int i = 0; i < 14; i++) - { - getInfo(ProjectId, montvalues, StartDate.Text, EndDate.Text, i.ToString()); - } - - this.drpStep.DataTextField = "Text"; - this.drpStep.DataValueField = "Value"; - this.drpStep.DataSource = BLL.DropListService.GetMonthReportStepList(this.States); - this.drpStep.DataBind(); - - UserService.InitUserProjectIdUnitIdDropDownList(this.drpAudit, this.CurrUser.LoginProjectId, Const.UnitId_XJYJ, true); - if (this.States == Const.State_0 || string.IsNullOrEmpty(this.States)) ///待提交 - { - this.txtOpinion.Hidden = true; - this.rbIsAgree.Hidden = true; - } - else if (this.States == Const.State_1) /// 待安全 - { - this.btnSave.Hidden = true; - } - else if (this.States == Const.State_2) - { - this.btnSave.Hidden = true; - this.drpAudit.Hidden = true; - } - else - { - this.btnSave.Hidden = true; - this.btnSysSubmit.Hidden = true; - this.Toolbar2.Hidden = true; - } - } - } - - /// - /// - /// - /// - /// - /// - private void display(int j, List bigType, int i) - { - HtmlGenericControl myLabel = (HtmlGenericControl)ContentPanel2.FindControl("AccidentType" + (j + 1)); - HtmlInputText monthTimes = (HtmlInputText)ContentPanel2.FindControl("MonthTimes" + (j + 1)); - HtmlInputText totalTimes = (HtmlInputText)ContentPanel2.FindControl("TotalTimes" + (j + 1)); - HtmlInputText monthLossTime = (HtmlInputText)ContentPanel2.FindControl("MonthLossTime" + (j + 1)); - HtmlInputText totalLossTime = (HtmlInputText)ContentPanel2.FindControl("TotalLossTime" + (j + 1)); - HtmlInputText MonthMoney = (HtmlInputText)ContentPanel2.FindControl("MonthMoney" + (j + 1)); - HtmlInputText totalMoney = (HtmlInputText)ContentPanel2.FindControl("TotalMoney" + (j + 1)); - HtmlInputText monthPersons = (HtmlInputText)ContentPanel2.FindControl("MonthPersons" + (j + 1)); - HtmlInputText totalPersons = (HtmlInputText)ContentPanel2.FindControl("TotalPersons" + (j + 1)); - if (myLabel != null) - { - myLabel.InnerText = bigType[i].AccidentType; - } - if (monthTimes != null) - { - monthTimes.Value = bigType[i].MonthTimes.ToString(); - } - if (totalTimes != null) - { - totalTimes.Value = bigType[i].TotalTimes.ToString(); - } - if (monthLossTime != null) - { - monthLossTime.Value = bigType[i].MonthLossTime.ToString(); - } - if (totalLossTime != null) - { - totalLossTime.Value = bigType[i].TotalLossTime.ToString(); - } - if (MonthMoney != null) - { - MonthMoney.Value = bigType[i].MonthMoney.ToString(); - } - if (totalMoney != null) - { - totalMoney.Value = bigType[i].TotalMoney.ToString(); - } - if (monthPersons != null) - { - monthPersons.Value = bigType[i].MonthPersons.ToString(); - } - if (totalPersons != null) - { - totalPersons.Value = bigType[i].TotalPersons.ToString(); - } - } - - #region 获取页面信息 - /// - /// 获取页面信息 - /// - /// - /// - /// - /// - /// - protected void getInfo(string projectId, string month, string startDate, string endDate, string pageNum) - { - if (pageNum == "0") ////封面 - { - var getReport = APISeDinMonthReportService.getSeDinMonthReport0ById(projectId, month); - if (getReport == null || string.IsNullOrEmpty(getReport.MonthReportId)) - { - getReport = APISeDinMonthReportService.getSeDinMonthReportNullPage0(projectId, Funs.GetNewDateTimeOrNow(month)); - } - ReporMonth.Text = getReport.ReporMonth; - DueDate.Text = getReport.DueDate; - StartDate.Text = getReport.StartDate; - EndDate.Text = getReport.EndDate; - if (!string.IsNullOrEmpty(getReport.CompileManId)) - { - CompileManId.SelectedValue = getReport.CompileManId; - } - if (!string.IsNullOrEmpty(getReport.AuditManId)) - { - AuditManId.SelectedValue = getReport.AuditManId; - } - if (!string.IsNullOrEmpty(getReport.ApprovalManId)) - { - ApprovalManId.SelectedValue = getReport.ApprovalManId; - } - } - else if (pageNum == "1") ////1、项目信息 - { - var getInfo = APISeDinMonthReportService.getSeDinMonthReport1ById(projectId, month); - if (this.States == Const.State_0 && (getInfo == null || string.IsNullOrEmpty(getInfo.MonthReportId))) - { - getInfo = APISeDinMonthReportService.getSeDinMonthReportNullPage1(projectId); - } - projectName.Text = getInfo.ProjectName; - projectCode.Text = getInfo.ProjectCode; - projectType.Text = getInfo.ProjectType; - string[] str1 = getInfo.ProjectManager.Split(';'); - ProjectManager.Text = str1[0]; - if (str1.Length > 1) - { - ProjectManagerPhone.Text = str1[1]; - } - string[] str2 = getInfo.HsseManager.Split(';'); - HsseManager.Text = str2[0]; - if (str2.Length > 1) - { - HsseManagerPhone.Text = str2[1]; - } - ConstructionStage.Text = getInfo.ConstructionStage; - ContractAmount.Text = getInfo.ContractAmount; - ProjectAddress.Text = getInfo.ProjectAddress; - pStartDate.Text = getInfo.StartDate; - pEndDate.Text = getInfo.EndDate; - ProjectAddress.Text = getInfo.ProjectAddress; - } - else if (pageNum == "2") ////2、项目安全工时统计 - { - var getInfo = APISeDinMonthReportService.getSeDinMonthReport2ById(projectId, month); - if (this.States == Const.State_0 && (getInfo == null || string.IsNullOrEmpty(getInfo.MonthReportId))) - { - getInfo = APISeDinMonthReportService.getSeDinMonthReportNullPage2(projectId, month, startDate, endDate); - } - MillionLossRate.Text = getInfo.MillionLossRate; - if (getInfo.MonthWorkTime != null) - { - MonthWorkTime.Text = getInfo.MonthWorkTime.ToString(); - } - if (getInfo.ProjectWorkTime != null) - { - ProjectWorkTime.Text = getInfo.ProjectWorkTime.ToString(); - } - if (getInfo.SafeWorkTime != null) - { - SafeWorkTime.Text = getInfo.SafeWorkTime.ToString(); - } - PsafeStartDate.Text = getInfo.StartDate; - PsafeEndDate.Text = getInfo.EndDate; - TimeAccuracyRate.Text = getInfo.TimeAccuracyRate; - if (getInfo.TotalLostTime != null) - { - TotalLostTime.Text = getInfo.TotalLostTime.ToString(); - } - if (getInfo.YearWorkTime != null) - { - YearWorkTime.Text = getInfo.YearWorkTime.ToString(); - } - } - else if (pageNum == "3") ////3、项目HSE事故、事件统计 - { - var getInfo = APISeDinMonthReportService.getSeDinMonthReport3ById(projectId, month); - if (this.States == Const.State_0 && (getInfo == null || getInfo.SeDinMonthReport3Item == null || getInfo.SeDinMonthReport3Item.Count() == 0)) - { - getInfo = APISeDinMonthReportService.getSeDinMonthReportNullPage3(projectId, month, startDate, endDate); - } - - if (getInfo.SeDinMonthReport3Item.Count > 0) - { - var count = getInfo.SeDinMonthReport3Item.Count; - var bigType = getInfo.SeDinMonthReport3Item.Where(p => p.BigType != null).ToList(); - var bType = getInfo.SeDinMonthReport3Item.Where(p => p.BigType == null).ToList(); - BigType.InnerText = bigType[0].BigType; - for (int i = 0; i < bigType.Count; i++) - { - int j = i; - display(j, bigType, i); - } - int jc = 3; - for (int i = 0; i < bType.Count; i++) - { - jc++; - display(jc, bType, i); - } - } - } - else if (pageNum == "4") ////4、人员 - { - var getLists = APISeDinMonthReportService.getSeDinMonthReport4ById(projectId, month); - if (this.States == Const.State_0 && getLists.Count() == 0) - { - getLists = APISeDinMonthReportService.getSeDinMonthReportNullPage4(projectId, month, startDate, endDate); - } - GvSeDinMonthReport4Item.DataSource = getLists; - GvSeDinMonthReport4Item.DataBind(); - int sumSafeManangerNum = getLists.Sum(x => x.SafeManangerNum) ?? 0; - int sumOtherManangerNum = getLists.Sum(x => x.OtherManangerNum) ?? 0; - int sumSpecialWorkerNum = getLists.Sum(x => x.SpecialWorkerNum) ?? 0; - int sumGeneralWorkerNum = getLists.Sum(x => x.GeneralWorkerNum) ?? 0; - int sumALL = sumSafeManangerNum + sumOtherManangerNum + sumSpecialWorkerNum + sumGeneralWorkerNum; - if (this.GvSeDinMonthReport4Item.Rows.Count > 0) - { - JObject summary = new JObject - { - { "UnitName", "合计" }, - { "SafeManangerNum", sumSafeManangerNum }, - { "OtherManangerNum", sumOtherManangerNum }, - { "SpecialWorkerNum", sumSpecialWorkerNum }, - { "GeneralWorkerNum", sumGeneralWorkerNum }, - { "TotalNum", sumALL } - }; - GvSeDinMonthReport4Item.SummaryData = summary; - } - else - { - GvSeDinMonthReport4Item.SummaryData = null; - } - - var getOtherLists = APISeDinMonthReportService.getSeDinMonthReport4OtherById(projectId, month); - if (this.States == Const.State_0 && getOtherLists == null) - { - getOtherLists = APISeDinMonthReportService.getSeDinMonthReportNullPage4Other(projectId, month, startDate, endDate); - } - if (getOtherLists != null) - { - this.txtFormalNum.Value = getOtherLists.FormalNum.ToString(); - this.txtForeignNum.Value = getOtherLists.ForeignNum.ToString(); - this.txtOutsideNum.Value = getOtherLists.OutsideNum.ToString(); - this.txtManagerNum.Value = getOtherLists.ManagerNum.ToString(); - this.txtTotalNum.Value = getOtherLists.TotalNum.ToString(); - } - } - else if (pageNum == "5") ////5、本月大型、特种设备投入情况 - { - var getLists = APISeDinMonthReportService.getSeDinMonthReport5ById(projectId, month); - if (this.States == Const.State_0 && getLists.Count == 0) - { - getLists = APISeDinMonthReportService.getSeDinMonthReportNullPage5(projectId, month, startDate, endDate); - } - GvSeDinMonthReport5Item.DataSource = getLists; - GvSeDinMonthReport5Item.DataBind(); - - int sumT01 = getLists.Sum(x => x.T01) ?? 0; - int sumT02 = getLists.Sum(x => x.T02) ?? 0; - int sumT03 = getLists.Sum(x => x.T03) ?? 0; - int sumT04 = getLists.Sum(x => x.T04) ?? 0; - int sumT05 = getLists.Sum(x => x.T05) ?? 0; - int sumT06 = getLists.Sum(x => x.T06) ?? 0; - int sumD01 = getLists.Sum(x => x.D01) ?? 0; - int sumD02 = getLists.Sum(x => x.D02) ?? 0; - int sumD03 = getLists.Sum(x => x.D03) ?? 0; - int sumD04 = getLists.Sum(x => x.D04) ?? 0; - int sumS01 = getLists.Sum(x => x.S01) ?? 0; - if (this.GvSeDinMonthReport4Item.Rows.Count > 0) - { - JObject summary = new JObject - { - { "UnitName", "合计" }, - { "T01", sumT01 }, - { "T02", sumT02 }, - { "T03", sumT03 }, - { "T04", sumT04 }, - { "T05", sumT05 }, - { "T06", sumT06 }, - { "D01", sumD01 }, - { "D02", sumD02 }, - { "D03", sumD03 }, - { "D04", sumD04 }, - { "S01", sumS01 }, - { "TotalNum", sumS01+sumT02+sumT03+sumT04+sumT05+sumT06+sumD01+sumD02+sumD03+sumD04+sumS01 } - }; - GvSeDinMonthReport5Item.SummaryData = summary; - } - else - { - GvSeDinMonthReport5Item.SummaryData = null; - } - - } - else if (pageNum == "6") ////6、安全生产费用投入情况 - { - var getInfo = APISeDinMonthReportService.getSeDinMonthReport6ById(projectId, month); - if (this.States == Const.State_0 && (getInfo == null || string.IsNullOrEmpty(getInfo.MonthReportId))) - { - getInfo = APISeDinMonthReportService.getSeDinMonthReportNullPage6(projectId, month, startDate, endDate); - } - SafetyMonth.Value = getInfo.SafetyMonth.ToString(); - SafetyYear.Value = getInfo.SafetyYear.ToString(); - SafetyTotal.Value = getInfo.SafetyTotal.ToString(); - LaborMonth.Value = getInfo.LaborMonth.ToString(); - LaborYear.Value = getInfo.LaborYear.ToString(); - LaborTotal.Value = getInfo.LaborTotal.ToString(); - ProgressMonth.Value = getInfo.ProgressMonth.ToString(); - ProgressYear.Value = getInfo.ProgressYear.ToString(); - ProgressTotal.Value = getInfo.ProgressTotal.ToString(); - EducationMonth.Value = getInfo.EducationMonth.ToString(); - EducationYear.Value = getInfo.EducationYear.ToString(); - EducationTotal.Value = getInfo.EducationTotal.ToString(); - SumMonth.Value = getInfo.SumMonth.ToString(); - SumYear.Value = getInfo.SumYear.ToString(); - SumTotal.Value = getInfo.SumTotal.ToString(); - ContractMonth.Value = getInfo.ContractMonth.ToString(); - ContractYear.Value = getInfo.ContractYear.ToString(); - ContractTotal.Value = getInfo.ContractTotal.ToString(); - ConstructionCost.Value = getInfo.ConstructionCost.ToString(); - - } - else if (pageNum == "7") ////7、项目HSE培训统计 - { - var getInfo = APISeDinMonthReportService.getSeDinMonthReport7ById(projectId, month); - if (this.States == Const.State_0 && (getInfo == null || string.IsNullOrEmpty(getInfo.MonthReportId))) - { - getInfo = APISeDinMonthReportService.getSeDinMonthReportNullPage7(projectId, month, startDate, endDate); - } - - EmployeeMontNum.Value = getInfo.EmployeeMontNum.ToString(); - EmployeeYearNum.Value = getInfo.EmployeeYearNum.ToString(); - EmployeeTotalNum.Value = getInfo.EmployeeTotalNum.ToString(); - EmployeeMontPerson.Value = getInfo.EmployeeMontPerson.ToString(); - EmployeeYearPerson.Value = getInfo.EmployeeYearPerson.ToString(); - EmployeeTotalPerson.Value = getInfo.EmployeeTotalPerson.ToString(); - SpecialMontNum.Value = getInfo.SpecialMontNum.ToString(); - SpecialYearNum.Value = getInfo.SpecialYearNum.ToString(); - SpecialTotalNum.Value = getInfo.SpecialTotalNum.ToString(); - SpecialMontPerson.Value = getInfo.SpecialMontPerson.ToString(); - SpecialYearPerson.Value = getInfo.SpecialYearPerson.ToString(); - SpecialTotalPerson.Value = getInfo.SpecialTotalPerson.ToString(); - } - else if (pageNum == "8") ////8、项目HSE会议统计 - { - var getInfo = APISeDinMonthReportService.getSeDinMonthReport8ById(projectId, month); - if (this.States == Const.State_0 && (getInfo == null || string.IsNullOrEmpty(getInfo.MonthReportId))) - { - getInfo = APISeDinMonthReportService.getSeDinMonthReportNullPage8(projectId, month, startDate, endDate); - } - Report8WeekMontNum.Value = getInfo.WeekMontNum.ToString(); - Report8WeekTotalNum.Value = getInfo.WeekTotalNum.ToString(); - Report8WeekMontPerson.Value = getInfo.WeekMontPerson.ToString(); - Report8MonthMontNum.Value = getInfo.MonthMontNum.ToString(); - Report8MonthTotalNum.Value = getInfo.MonthTotalNum.ToString(); - Report8MonthMontPerson.Value = getInfo.MonthMontPerson.ToString(); - Report8SpecialMontNum.Value = getInfo.SpecialMontNum.ToString(); - Report8SpecialTotalNum.Value = getInfo.SpecialTotalNum.ToString(); - Report8SpecialMontPerson.Value = getInfo.SpecialMontPerson.ToString(); - GvSeDinMonthReport8Item.DataSource = getInfo.SeDinMonthReport8ItemItem; - GvSeDinMonthReport8Item.DataBind(); - } - else if (pageNum == "9") ////9、项目HSE检查统计 - { - var getInfo = APISeDinMonthReportService.getSeDinMonthReport9ById(projectId, month); - if (this.States == Const.State_0 && (getInfo == null || string.IsNullOrEmpty(getInfo.MonthReportId))) - { - getInfo = APISeDinMonthReportService.getSeDinMonthReportNullPage9(projectId, month, startDate, endDate); - } - DailyMonth.Value = getInfo.DailyMonth.ToString(); - DailyYear.Value = getInfo.DailyYear.ToString(); - DailyTotal.Value = getInfo.DailyTotal.ToString(); - WeekMonth.Value = getInfo.WeekMonth.ToString(); - WeekYear.Value = getInfo.WeekYear.ToString(); - WeekTotal.Value = getInfo.WeekTotal.ToString(); - SpecialMonth.Value = getInfo.SpecialMonth.ToString(); - SpecialYear.Value = getInfo.SpecialYear.ToString(); - SpecialTotal.Value = getInfo.SpecialTotal.ToString(); - MonthlyMonth.Value = getInfo.MonthlyMonth.ToString(); - MonthlyYear.Value = getInfo.MonthlyYear.ToString(); - MonthlyTotal.Value = getInfo.MonthlyTotal.ToString(); - GvSeDinMonthReport9ItemRect.DataSource = getInfo.SeDinMonthReport9ItemRectification; - GvSeDinMonthReport9ItemRect.DataBind(); - GvSeDinMonthReport9ItemSpecial.DataSource = getInfo.SeDinMonthReport9ItemSpecial; - GvSeDinMonthReport9ItemSpecial.DataBind(); - GvSeDinMonthReport9ItemStoppage.DataSource = getInfo.SeDinMonthReport9ItemStoppage; - GvSeDinMonthReport9ItemStoppage.DataBind(); - } - else if (pageNum == "10") ////10、项目奖惩情况统计 - { - var getInfo = APISeDinMonthReportService.getSeDinMonthReport10ById(projectId, month); - if (this.States == Const.State_0 && (getInfo == null || string.IsNullOrEmpty(getInfo.MonthReportId))) - { - getInfo = APISeDinMonthReportService.getSeDinMonthReportNullPage10(projectId, month, startDate, endDate); - } - SafeMonthNum.Value = getInfo.SafeMonthNum.ToString(); - SafeTotalNum.Value = getInfo.SafeTotalNum.ToString(); - SafeMonthMoney.Value = getInfo.SafeMonthMoney.ToString(); - SafeTotalMoney.Value = getInfo.SafeTotalMoney.ToString(); - HseMonthNum.Value = getInfo.HseMonthNum.ToString(); - HseTotalNum.Value = getInfo.HseTotalNum.ToString(); - HseMonthMoney.Value = getInfo.HseMonthMoney.ToString(); - HseTotalMoney.Value = getInfo.HseTotalMoney.ToString(); - ProduceMonthNum.Value = getInfo.ProduceMonthNum.ToString(); - ProduceTotalNum.Value = getInfo.ProduceTotalNum.ToString(); - ProduceMonthMoney.Value = getInfo.ProduceMonthMoney.ToString(); - ProduceTotalMoney.Value = getInfo.ProduceTotalMoney.ToString(); - AccidentMonthNum.Value = getInfo.AccidentMonthNum.ToString(); - AccidentTotalNum.Value = getInfo.AccidentTotalNum.ToString(); - AccidentMonthMoney.Value = getInfo.AccidentMonthMoney.ToString(); - AccidentTotalMoney.Value = getInfo.AccidentTotalMoney.ToString(); - ViolationMonthNum.Value = getInfo.ViolationMonthNum.ToString(); - ViolationTotalNum.Value = getInfo.ViolationTotalNum.ToString(); - ViolationMonthMoney.Value = getInfo.ViolationMonthMoney.ToString(); - ViolationTotalMoney.Value = getInfo.ViolationTotalMoney.ToString(); - ManageMonthNum.Value = getInfo.ManageMonthNum.ToString(); - ManageTotalNum.Value = getInfo.ManageTotalNum.ToString(); - ManageMonthMoney.Value = getInfo.ManageMonthMoney.ToString(); - ManageTotalMoney.Value = getInfo.ManageTotalMoney.ToString(); - } - else if (pageNum == "11") ////11、项目危大工程施工情况 - { - var getInfo = APISeDinMonthReportService.getSeDinMonthReport11ById(projectId, month); - if (this.States == Const.State_0 && (getInfo == null || string.IsNullOrEmpty(getInfo.MonthReportId))) - { - getInfo = APISeDinMonthReportService.getSeDinMonthReportNullPage11(projectId, month, startDate, endDate); - } - RiskWorkNum.Value = getInfo.RiskWorkNum.ToString(); - RiskFinishedNum.Value = getInfo.RiskFinishedNum.ToString(); - RiskWorkNext.Value = getInfo.RiskWorkNext.ToString(); - LargeWorkNum.Value = getInfo.LargeWorkNum.ToString(); - LargeFinishedNum.Value = getInfo.LargeFinishedNum.ToString(); - LargeWorkNext.Value = getInfo.LargeWorkNext.ToString(); - - } - else if (pageNum == "12") ////12、项目应急演练情况 - { - var getInfo = APISeDinMonthReportService.getSeDinMonthReport12ById(projectId, month); - if (this.States == Const.State_0 && (getInfo == null || string.IsNullOrEmpty(getInfo.MonthReportId))) - { - getInfo = APISeDinMonthReportService.getSeDinMonthReportNullPage12(projectId, month, startDate, endDate); - } - - MultipleSiteInput.Value = getInfo.MultipleSiteInput.ToString(); - MultipleSitePerson.Value = getInfo.MultipleSitePerson.ToString(); - MultipleSiteNum.Value = getInfo.MultipleSiteNum.ToString(); - MultipleSiteTotalNum.Value = getInfo.MultipleSiteTotalNum.ToString(); - if (!string.IsNullOrWhiteSpace(getInfo.MultipleSiteNext)) - { - MultipleSiteNext.Value = getInfo.MultipleSiteNext.ToString(); - } - MultipleDesktopInput.Value = getInfo.MultipleDesktopInput.ToString(); - MultipleDesktopPerson.Value = getInfo.MultipleDesktopPerson.ToString(); - MultipleDesktopNum.Value = getInfo.MultipleDesktopNum.ToString(); - MultipleDesktopTotalNum.Value = getInfo.MultipleDesktopTotalNum.ToString(); - if (!string.IsNullOrWhiteSpace(getInfo.MultipleDesktopNext)) - { - MultipleDesktopNext.Value = getInfo.MultipleDesktopNext.ToString(); - } - SingleSiteInput.Value = getInfo.SingleSiteInput.ToString(); - SingleSitePerson.Value = getInfo.SingleSitePerson.ToString(); - SingleSiteNum.Value = getInfo.SingleSiteNum.ToString(); - SingleSiteTotalNum.Value = getInfo.SingleSiteTotalNum.ToString(); - if (!string.IsNullOrWhiteSpace(getInfo.SingleSiteNext)) - { - SingleSiteNext.Value = getInfo.SingleSiteNext.ToString(); - } - SingleDesktopInput.Value = getInfo.SingleDesktopInput.ToString(); - SingleDesktopPerson.Value = getInfo.SingleDesktopPerson.ToString(); - SingleDesktopNum.Value = getInfo.SingleDesktopNum.ToString(); - SingleDesktopTotalNum.Value = getInfo.SingleDesktopTotalNum.ToString(); - if (!string.IsNullOrWhiteSpace(getInfo.SingleDesktopNext)) - { - SingleDesktopNext.Value = getInfo.SingleDesktopNext.ToString(); - } - - } - else ////13、14、本月HSE活动综述、下月HSE工作计划 - { - var getReport = APISeDinMonthReportService.getSeDinMonthReport0ById(projectId, month); - if (getReport != null) - { - ThisSummary.Text = getReport.ThisSummary; - NextPlan.Text = getReport.NextPlan; - AccidentsSummary.Value = getReport.AccidentsSummary; - } - } - } - #endregion - - #region 保存页面信息方法 - #region 保存 MonthReport0 封面 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - public string SaveSeDinMonthReport0(string type) - { - SeDinMonthReportItem newItem = new SeDinMonthReportItem - { - ProjectId = ProjectId, - DueDate = DueDate.Text, - StartDate = StartDate.Text, - EndDate = EndDate.Text, - ReporMonth = ReporMonth.Text, - CompileManId = CompileManId.SelectedValue, - AuditManId = AuditManId.SelectedValue, - ApprovalManId = ApprovalManId.SelectedValue, - }; - if (!string.IsNullOrWhiteSpace(MonthReportId)) - { - newItem.MonthReportId = MonthReportId; - } - newItem.States = Const.State_0; - newItem.OperaterId = this.CurrUser.UserId; - newItem.StepName = "报告人保存。"; - newItem.isAgree = true; - newItem.Opinion = this.txtOpinion.Text.Trim(); - ////提交 - if (type ==Const.BtnSubmit) - { - newItem.States = this.drpStep.SelectedValue; - newItem.NextManId = this.drpAudit.SelectedValue; - newItem.isAgree = true; - if (this.rbIsAgree.SelectedValue == "0") - { - newItem.States =Const.State_0; - newItem.NextManId = newItem.CompileManId; - newItem.isAgree = false; - } - if (this.drpStep.SelectedValue == Const.State_1) - { - newItem.StepName = "报告人提交。"; - } - else if (this.drpStep.SelectedValue == Const.State_2) - { - newItem.StepName = "安全总监审核。"; - } - else if (this.drpStep.SelectedValue == Const.State_3) - { - newItem.StepName = "项目经理批准。"; - } - } - MonthReportId = APISeDinMonthReportService.SaveSeDinMonthReport0(newItem); - return MonthReportId; - } - #endregion - #region 保存 MonthReport1、项目信息 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - public void SaveSeDinMonthReport1() - { - SeDinMonthReport1Item newItem = new SeDinMonthReport1Item - { - MonthReportId = MonthReportId, - ProjectCode = projectCode.Text, - ProjectName = projectName.Text, - ProjectType = projectType.Text, - StartDate = pStartDate.Text, - EndDate = pEndDate.Text, - ProjectManager = ProjectManager.Text + ";" + ProjectManagerPhone.Text, - HsseManager = HsseManager.Text + ";" + HsseManagerPhone.Text, - ContractAmount = ContractAmount.Text, - ConstructionStage = ConstructionStage.Text, - ProjectAddress = ProjectAddress.Text - }; - APISeDinMonthReportService.SaveSeDinMonthReport1(newItem); - } - #endregion - #region 保存 MonthReport2、项目安全工时统计 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - - public void SaveSeDinMonthReport2() - { - SeDinMonthReport2Item newItem = new SeDinMonthReport2Item(); - newItem.MonthReportId = MonthReportId; - newItem.MonthWorkTime = Funs.GetNewDecimalOrZero(MonthWorkTime.Text); - newItem.YearWorkTime = Funs.GetNewDecimalOrZero(YearWorkTime.Text); - newItem.YearWorkTime = Funs.GetNewDecimalOrZero(YearWorkTime.Text); - newItem.TotalLostTime = Funs.GetNewDecimalOrZero(TotalLostTime.Text); - newItem.MillionLossRate = MillionLossRate.Text; - newItem.ProjectWorkTime = Funs.GetNewDecimalOrZero(ProjectWorkTime.Text); - newItem.TimeAccuracyRate = TimeAccuracyRate.Text; - newItem.StartDate = StartDate.Text; - newItem.EndDate = EndDate.Text; - newItem.SafeWorkTime = Funs.GetNewDecimalOrZero(SafeWorkTime.Text); - APISeDinMonthReportService.SaveSeDinMonthReport2(newItem); - } - #endregion - #region 保存 MonthReport3、项目HSE事故、事件统计 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - public void SaveSeDinMonthReport3() - { - List listMonthReport3 = new List(); - for (int i = 1; i < 12; i++) - { - HtmlGenericControl myLabel = (HtmlGenericControl)ContentPanel2.FindControl("AccidentType" + (i)); - HtmlInputText monthTimes = (HtmlInputText)ContentPanel2.FindControl("MonthTimes" + (i)); - HtmlInputText totalTimes = (HtmlInputText)ContentPanel2.FindControl("TotalTimes" + (i)); - HtmlInputText monthLossTime = (HtmlInputText)ContentPanel2.FindControl("MonthLossTime" + (i)); - HtmlInputText totalLossTime = (HtmlInputText)ContentPanel2.FindControl("TotalLossTime" + (i)); - HtmlInputText MonthMoney = (HtmlInputText)ContentPanel2.FindControl("MonthMoney" + (i)); - HtmlInputText totalMoney = (HtmlInputText)ContentPanel2.FindControl("TotalMoney" + (i)); - HtmlInputText monthPersons = (HtmlInputText)ContentPanel2.FindControl("MonthPersons" + (i)); - HtmlInputText totalPersons = (HtmlInputText)ContentPanel2.FindControl("TotalPersons" + (i)); - SeDinMonthReport3Item mo = new SeDinMonthReport3Item(); - mo.MonthReportId = MonthReportId; - if (i < 5) - { - mo.BigType = BigType.InnerText; - } - mo.AccidentType = myLabel.InnerText; - mo.SortIndex = i; - if (!string.IsNullOrWhiteSpace(monthTimes.Value)) - { - mo.MonthTimes = Funs.GetNewInt(monthTimes.Value); - } - if (!string.IsNullOrWhiteSpace(totalTimes.Value)) - { - mo.TotalTimes = Funs.GetNewInt(totalTimes.Value); - } - if (!string.IsNullOrWhiteSpace(monthLossTime.Value)) - { - mo.MonthLossTime = Funs.GetNewDecimalOrZero(monthLossTime.Value); - } - if (!string.IsNullOrWhiteSpace(totalLossTime.Value)) - { - mo.TotalLossTime = Funs.GetNewDecimalOrZero(totalLossTime.Value); - } - if (!string.IsNullOrWhiteSpace(MonthMoney.Value)) - { - mo.MonthMoney = Funs.GetNewDecimalOrZero(MonthMoney.Value); - } - if (!string.IsNullOrWhiteSpace(totalMoney.Value)) - { - mo.TotalMoney = Funs.GetNewDecimalOrZero(totalMoney.Value); - } - if (!string.IsNullOrWhiteSpace(monthPersons.Value)) - { - mo.MonthPersons = Funs.GetNewInt(monthPersons.Value); - } - if (!string.IsNullOrWhiteSpace(totalPersons.Value)) - { - mo.TotalPersons = Funs.GetNewInt(totalPersons.Value); - } - listMonthReport3.Add(mo); - } - var newItem = new SeDinMonthReportItem - { - SeDinMonthReport3Item = listMonthReport3, - MonthReportId = MonthReportId, - AccidentsSummary = AccidentsSummary.Value - }; - APISeDinMonthReportService.SaveSeDinMonthReport3(newItem); - } - #endregion - #region 保存 MonthReport4、本月人员投入情况 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - - public void SaveSeDinMonthReport4() - { - Model.SeDinMonthReportItem newItem = new SeDinMonthReportItem - { - MonthReportId = MonthReportId - }; - List listSeDinMonthReport4Item = new List(); - foreach (JObject mergedRow in GvSeDinMonthReport4Item.GetMergedData()) - { - int i = mergedRow.Value("index"); - JObject values = mergedRow.Value("values"); - var safeManangerNum = values.Value("SafeManangerNum"); - var unitName = GvSeDinMonthReport4Item.Rows[i].Values[0].ToString(); - var OoherManangerNum = values.Value("OtherManangerNum"); - var specialWorkerNum = values.Value("SpecialWorkerNum"); - var generalWorkerNum = values.Value("GeneralWorkerNum"); - Model.SeDinMonthReport4Item newReport4Item = new Model.SeDinMonthReport4Item - { - MonthReportId = MonthReportId, - UnitName = unitName, - SafeManangerNum = Funs.GetNewIntOrZero(safeManangerNum), - OtherManangerNum = Funs.GetNewIntOrZero(OoherManangerNum), - SpecialWorkerNum = Funs.GetNewIntOrZero(specialWorkerNum), - GeneralWorkerNum = Funs.GetNewIntOrZero(generalWorkerNum) - }; - newReport4Item.TotalNum = newReport4Item.SafeManangerNum + newReport4Item.OtherManangerNum - + newReport4Item.SpecialWorkerNum + newReport4Item.GeneralWorkerNum; - listSeDinMonthReport4Item.Add(newReport4Item); - } - newItem.SeDinMonthReport4Item = listSeDinMonthReport4Item; - APISeDinMonthReportService.SaveSeDinMonthReport4(newItem); - - Model.SeDinMonthReport4OtherItem newItemOher = new SeDinMonthReport4OtherItem() - { - MonthReportId = MonthReportId, - FormalNum =Funs.GetNewIntOrZero(this.txtFormalNum.Value), - ForeignNum = Funs.GetNewIntOrZero(this.txtForeignNum.Value), - OutsideNum = Funs.GetNewIntOrZero(this.txtOutsideNum.Value), - ManagerNum = Funs.GetNewIntOrZero(this.txtManagerNum.Value), - TotalNum = Funs.GetNewIntOrZero(this.txtTotalNum.Value), - }; - APISeDinMonthReportService.SaveSeDinMonthReport4Other(newItemOher); - } - #endregion - #region 保存 MonthReport5、本月大型、特种设备投入情况 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - public void SaveSeDinMonthReport5() - { - Model.SeDinMonthReportItem newItem = new SeDinMonthReportItem - { - MonthReportId = MonthReportId - }; - List listSeDinMonthReport5Item = new List(); - foreach (JObject mergedRow in GvSeDinMonthReport5Item.GetMergedData()) - { - int i = mergedRow.Value("index"); - JObject values = mergedRow.Value("values"); - var unitName = GvSeDinMonthReport5Item.Rows[i].Values[0].ToString(); - var t01 = values.Value("T01"); - var t02 = values.Value("T02"); - var t03 = values.Value("T03"); - var t04 = values.Value("T04"); - var t05 = values.Value("T05"); - var t06 = values.Value("T06"); - var d01 = values.Value("D01"); - var d02 = values.Value("D02"); - var d03 = values.Value("D03"); - var d04 = values.Value("D04"); - var s01 = values.Value("S01"); - Model.SeDinMonthReport5Item newReport5Item = new Model.SeDinMonthReport5Item(); - newReport5Item.UnitName = unitName; - newReport5Item.T01 = Funs.GetNewInt(t01); - newReport5Item.T02 = Funs.GetNewInt(t02); - newReport5Item.T03 = Funs.GetNewInt(t03); - newReport5Item.T04 = Funs.GetNewInt(t04); - newReport5Item.T05 = Funs.GetNewInt(t05); - newReport5Item.T06 = Funs.GetNewInt(t06); - newReport5Item.D01 = Funs.GetNewInt(d01); - newReport5Item.D02 = Funs.GetNewInt(d02); - newReport5Item.D03 = Funs.GetNewInt(d03); - newReport5Item.D04 = Funs.GetNewInt(d04); - newReport5Item.S01 = Funs.GetNewInt(s01); - listSeDinMonthReport5Item.Add(newReport5Item); - } - newItem.SeDinMonthReport5Item = listSeDinMonthReport5Item; - APISeDinMonthReportService.SaveSeDinMonthReport5(newItem); - } - #endregion - #region 保存 MonthReport6、安全生产费用投入情况 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - public void SaveSeDinMonthReport6() - { - SeDinMonthReport6Item monthReport6Item = new SeDinMonthReport6Item - { - MonthReportId = MonthReportId, - SafetyMonth = Funs.GetNewDecimalOrZero(SafetyMonth.Value), - SafetyYear = Funs.GetNewDecimalOrZero(SafetyYear.Value), - SafetyTotal = Funs.GetNewDecimalOrZero(SafetyTotal.Value), - LaborMonth = Funs.GetNewDecimalOrZero(LaborMonth.Value), - LaborYear = Funs.GetNewDecimalOrZero(LaborYear.Value), - LaborTotal = Funs.GetNewDecimalOrZero(LaborTotal.Value), - ProgressMonth = Funs.GetNewDecimalOrZero(ProgressMonth.Value), - ProgressYear = Funs.GetNewDecimalOrZero(ProgressYear.Value), - ProgressTotal = Funs.GetNewDecimalOrZero(ProgressTotal.Value), - EducationMonth = Funs.GetNewDecimalOrZero(EducationMonth.Value), - EducationYear = Funs.GetNewDecimalOrZero(EducationYear.Value), - EducationTotal = Funs.GetNewDecimalOrZero(EducationTotal.Value), - SumMonth = Funs.GetNewDecimalOrZero(SumMonth.Value), - SumYear = Funs.GetNewDecimalOrZero(SumYear.Value), - SumTotal = Funs.GetNewDecimalOrZero(SumTotal.Value), - ContractMonth = Funs.GetNewDecimalOrZero(ContractMonth.Value), - ContractYear = Funs.GetNewDecimalOrZero(ContractYear.Value), - ContractTotal = Funs.GetNewDecimalOrZero(ContractTotal.Value), - ConstructionCost = Funs.GetNewDecimalOrZero(ConstructionCost.Value) - }; - APISeDinMonthReportService.SaveSeDinMonthReport6(monthReport6Item); - } - #endregion - #region 保存 MonthReport7、项目HSE培训统计 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - public void SaveSeDinMonthReport7() - { - var newItem = new SeDinMonthReport7Item - { - MonthReportId = MonthReportId, - SpecialMontNum = Funs.GetNewInt(SpecialMontNum.Value), - SpecialYearNum = Funs.GetNewInt(SpecialYearNum.Value), - SpecialTotalNum = Funs.GetNewInt(SpecialTotalNum.Value), - SpecialMontPerson = Funs.GetNewInt(SpecialMontPerson.Value), - SpecialYearPerson = Funs.GetNewInt(SpecialYearPerson.Value), - SpecialTotalPerson = Funs.GetNewInt(SpecialTotalPerson.Value), - EmployeeMontNum = Funs.GetNewInt(EmployeeMontNum.Value), - EmployeeYearNum = Funs.GetNewInt(EmployeeYearNum.Value), - EmployeeTotalNum = Funs.GetNewInt(EmployeeTotalNum.Value), - EmployeeMontPerson = Funs.GetNewInt(EmployeeMontPerson.Value), - EmployeeYearPerson = Funs.GetNewInt(EmployeeYearPerson.Value), - EmployeeTotalPerson = Funs.GetNewInt(EmployeeTotalPerson.Value) - }; - APISeDinMonthReportService.SaveSeDinMonthReport7(newItem); - } - #endregion - #region 保存 MonthReport8、项目HSE会议统计 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - public void SaveSeDinMonthReport8() - { - Model.SeDinMonthReport8Item newItem = new SeDinMonthReport8Item - { - MonthReportId = MonthReportId, - WeekMontNum = Funs.GetNewInt(Report8WeekMontNum.Value), - WeekTotalNum = Funs.GetNewInt(Report8WeekTotalNum.Value), - WeekMontPerson = Funs.GetNewInt(Report8WeekMontPerson.Value), - MonthMontNum = Funs.GetNewInt(Report8MonthMontNum.Value), - MonthTotalNum = Funs.GetNewInt(Report8MonthTotalNum.Value), - MonthMontPerson = Funs.GetNewInt(Report8MonthMontPerson.Value), - SpecialMontNum = Funs.GetNewInt(Report8SpecialMontNum.Value), - SpecialTotalNum = Funs.GetNewInt(Report8SpecialTotalNum.Value), - SpecialMontPerson = Funs.GetNewInt(Report8SpecialMontPerson.Value) - }; - List listSeDin_MonthReport8Item = new List(); - foreach (JObject mergedRow in GvSeDinMonthReport8Item.GetMergedData()) - { - int i = mergedRow.Value("index"); - JObject values = mergedRow.Value("values"); - var unitName = GvSeDinMonthReport8Item.Rows[i].Values[0].ToString(); - var teamName = GvSeDinMonthReport8Item.Rows[i].Values[1].ToString(); - var classNum = GvSeDinMonthReport8Item.Rows[i].Values[2].ToString(); - var classPersonNum = values.Value("ClassPersonNum"); - Model.SeDinMonthReport8ItemItem report8Item = new Model.SeDinMonthReport8ItemItem - { - MonthReportId = MonthReportId, - UnitName = unitName, - TeamName = teamName, - ClassNum = Funs.GetNewInt(classNum), - ClassPersonNum = Funs.GetNewInt(classPersonNum) - }; - listSeDin_MonthReport8Item.Add(report8Item); - } - newItem.SeDinMonthReport8ItemItem = listSeDin_MonthReport8Item; - APISeDinMonthReportService.SaveSeDinMonthReport8(newItem); - } - #endregion - #region 保存 MonthReport9、项目HSE检查统计 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - - public void SaveSeDinMonthReport9() - { - SeDinMonthReport9Item newItem = new SeDinMonthReport9Item - { - MonthReportId = MonthReportId, - DailyMonth = Funs.GetNewInt(DailyMonth.Value), - DailyYear = Funs.GetNewInt(DailyYear.Value), - DailyTotal = Funs.GetNewInt(DailyTotal.Value), - WeekMonth = Funs.GetNewInt(WeekMonth.Value), - WeekYear = Funs.GetNewInt(WeekYear.Value), - WeekTotal = Funs.GetNewInt(WeekTotal.Value), - SpecialMonth = Funs.GetNewInt(SpecialMonth.Value), - SpecialYear = Funs.GetNewInt(SpecialYear.Value), - SpecialTotal = Funs.GetNewInt(SpecialTotal.Value), - MonthlyMonth = Funs.GetNewInt(MonthlyMonth.Value), - MonthlyYear = Funs.GetNewInt(MonthlyYear.Value), - MonthlyTotal = Funs.GetNewInt(MonthlyTotal.Value) - }; - #region 整改单 - List listReport9ItemRectification = new List(); - var Report9ItemRects = GvSeDinMonthReport9ItemRect.GetMergedData(); - if (Report9ItemRects != null) - { - foreach (JObject mergedRow in GvSeDinMonthReport9ItemRect.GetMergedData()) - { - int i = mergedRow.Value("index"); - JObject values = mergedRow.Value("values"); - var unitName = GvSeDinMonthReport9ItemRect.Rows[i].Values[0].ToString(); - SeDinMonthReport9ItemRectification report9ItemRectification = new SeDinMonthReport9ItemRectification - { - MonthReportId = MonthReportId, - UnitName = unitName, - IssuedMonth = Funs.GetNewInt(values.Value("IssuedMonth")), - IssuedMonthLarge = Funs.GetNewInt(values.Value("IssuedMonthLarge")), - IssuedMonthSerious = Funs.GetNewInt(values.Value("IssuedMonthSerious")), - RectificationMoth = Funs.GetNewInt(values.Value("RectificationMoth")), - RectificationMothLarge = Funs.GetNewInt(values.Value("RectificationMothLarge")), - RectificationMothSerious = Funs.GetNewInt(values.Value("RectificationMothSerious")), - IssuedTotal = Funs.GetNewInt(values.Value("IssuedTotal")), - IssuedTotalLarge = Funs.GetNewInt(values.Value("IssuedTotalLarge")), - IssuedTotalSerious = Funs.GetNewInt(values.Value("IssuedTotalSerious")), - RectificationTotal = Funs.GetNewInt(values.Value("RectificationTotal")), - RectificationTotalLarge = Funs.GetNewInt(values.Value("RectificationTotalLarge")), - RectificationTotalSerious = Funs.GetNewInt(values.Value("RectificationTotalSerious")), - }; - - listReport9ItemRectification.Add(report9ItemRectification); - } - } - newItem.SeDinMonthReport9ItemRectification = listReport9ItemRectification; - #endregion - #region 专项检查 - List listReport9ItemSpecial = new List(); - var special = GvSeDinMonthReport9ItemSpecial.GetMergedData(); - if (special != null) - { - foreach (JObject mergedRow in GvSeDinMonthReport9ItemSpecial.GetMergedData()) - { - int i = mergedRow.Value("index"); - JObject values = mergedRow.Value("values"); - var typeName = GvSeDinMonthReport9ItemSpecial.Rows[i].Values[0].ToString(); - var checkMonth = values.Value("CheckMonth"); - var checkYear = values.Value("CheckYear"); - var checkTotal = values.Value("CheckTotal"); - SeDinMonthReport9ItemSpecial report9ItemSpecial = new SeDinMonthReport9ItemSpecial(); - report9ItemSpecial.MonthReportId = MonthReportId; - report9ItemSpecial.TypeName = typeName; - report9ItemSpecial.CheckMonth = Funs.GetNewInt(checkMonth); - report9ItemSpecial.CheckYear = Funs.GetNewInt(checkYear); - report9ItemSpecial.CheckTotal = Funs.GetNewInt(checkTotal); - listReport9ItemSpecial.Add(report9ItemSpecial); - } - } - newItem.SeDinMonthReport9ItemSpecial = listReport9ItemSpecial; - #endregion - #region 暂停令 - List listReport9ItemStoppage = new List(); - var GetMergedData = GvSeDinMonthReport9ItemStoppage.GetMergedData(); - if (GetMergedData != null) - { - foreach (JObject mergedRow in GvSeDinMonthReport9ItemStoppage.GetMergedData()) - { - int i = mergedRow.Value("index"); - JObject values = mergedRow.Value("values"); - var unitName = GvSeDinMonthReport9ItemStoppage.Rows[i].Values[0].ToString(); - var issuedMonth = values.Value("IssuedMonth"); - var stoppageMonth = values.Value("StoppageMonth"); - var issuedTotal = values.Value("IssuedTotal"); - var stoppageTotal = values.Value("StoppageTotal"); - SeDinMonthReport9ItemStoppage report9ItemStoppage = new SeDinMonthReport9ItemStoppage(); - report9ItemStoppage.MonthReportId = MonthReportId; - report9ItemStoppage.UnitName = unitName; - report9ItemStoppage.IssuedMonth = Funs.GetNewInt(issuedMonth); - report9ItemStoppage.StoppageMonth = Funs.GetNewInt(stoppageMonth); - report9ItemStoppage.IssuedTotal = Funs.GetNewInt(issuedTotal); - report9ItemStoppage.StoppageTotal = Funs.GetNewInt(stoppageTotal); - listReport9ItemStoppage.Add(report9ItemStoppage); - } - } - newItem.SeDinMonthReport9ItemStoppage = listReport9ItemStoppage; - #endregion - APISeDinMonthReportService.SaveSeDinMonthReport9(newItem); - } - #endregion - #region 保存 MonthReport10、项目奖惩情况统计 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - public void SaveSeDinMonthReport10() - { - SeDinMonthReport10Item newItem = new SeDinMonthReport10Item - { - MonthReportId = MonthReportId, - SafeMonthNum = Funs.GetNewInt(SafeMonthNum.Value), - SafeTotalNum = Funs.GetNewInt(SafeTotalNum.Value), - SafeMonthMoney = Funs.GetNewDecimalOrZero(SafeMonthMoney.Value), - SafeTotalMoney = Funs.GetNewDecimalOrZero(SafeTotalMoney.Value), - HseMonthNum = Funs.GetNewInt(HseMonthNum.Value), - HseTotalNum = Funs.GetNewInt(HseTotalNum.Value), - HseMonthMoney = Funs.GetNewDecimalOrZero(HseMonthMoney.Value), - HseTotalMoney = Funs.GetNewDecimalOrZero(HseTotalMoney.Value), - ProduceMonthNum = Funs.GetNewInt(ProduceMonthNum.Value), - ProduceTotalNum = Funs.GetNewInt(ProduceTotalNum.Value), - ProduceMonthMoney = Funs.GetNewDecimalOrZero(ProduceMonthMoney.Value), - ProduceTotalMoney = Funs.GetNewDecimalOrZero(ProduceTotalMoney.Value), - AccidentMonthNum = Funs.GetNewInt(AccidentMonthNum.Value), - AccidentTotalNum = Funs.GetNewInt(AccidentTotalNum.Value), - AccidentMonthMoney = Funs.GetNewDecimalOrZero(AccidentMonthMoney.Value), - AccidentTotalMoney = Funs.GetNewDecimalOrZero(AccidentTotalMoney.Value), - ViolationMonthNum = Funs.GetNewInt(ViolationMonthNum.Value), - ViolationTotalNum = Funs.GetNewInt(ViolationTotalNum.Value), - ViolationMonthMoney = Funs.GetNewDecimalOrZero(ViolationMonthMoney.Value), - ViolationTotalMoney = Funs.GetNewDecimalOrZero(ViolationTotalMoney.Value), - ManageMonthNum = Funs.GetNewInt(ManageMonthNum.Value), - ManageTotalNum = Funs.GetNewInt(ManageTotalNum.Value), - ManageMonthMoney = Funs.GetNewDecimalOrZero(ManageMonthMoney.Value), - ManageTotalMoney = Funs.GetNewDecimalOrZero(ManageTotalMoney.Value) - }; - APISeDinMonthReportService.SaveSeDinMonthReport10(newItem); - } - #endregion - #region 保存 MonthReport11、项目危大工程施工情况 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - public void SaveSeDinMonthReport11() - { - SeDinMonthReport11Item newItem = new SeDinMonthReport11Item - { - MonthReportId = MonthReportId, - RiskWorkNum = Funs.GetNewInt(RiskWorkNum.Value), - RiskFinishedNum = Funs.GetNewInt(RiskFinishedNum.Value), - RiskWorkNext = RiskWorkNext.Value, - LargeWorkNum = Funs.GetNewInt(LargeWorkNum.Value), - LargeFinishedNum = Funs.GetNewInt(LargeFinishedNum.Value), - LargeWorkNext = LargeWorkNext.Value - }; - APISeDinMonthReportService.SaveSeDinMonthReport11(newItem); - } - #endregion - #region 保存 MonthReport12、项目应急演练情况 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - - public void SaveSeDinMonthReport12() - { - SeDinMonthReport12Item newItem = new SeDinMonthReport12Item - { - MonthReportId = MonthReportId, - MultipleSiteInput = Funs.GetNewDecimalOrZero(MultipleSiteInput.Value), - MultipleSitePerson = Funs.GetNewInt(MultipleSitePerson.Value), - MultipleSiteNum = Funs.GetNewInt(MultipleSiteNum.Value), - MultipleSiteTotalNum = Funs.GetNewInt(MultipleSiteTotalNum.Value) - }; - if (!string.IsNullOrWhiteSpace(MultipleSiteNext.Value)) - { - newItem.MultipleSiteNext = MultipleSiteNext.Value; - } - newItem.MultipleDesktopInput = Funs.GetNewDecimalOrZero(MultipleDesktopInput.Value); - newItem.MultipleDesktopPerson = Funs.GetNewInt(MultipleDesktopPerson.Value); - newItem.MultipleDesktopNum = Funs.GetNewInt(MultipleDesktopNum.Value); - newItem.MultipleDesktopTotalNum = Funs.GetNewInt(MultipleDesktopTotalNum.Value); - - if (!string.IsNullOrWhiteSpace(MultipleDesktopNext.Value)) - { - newItem.MultipleDesktopNext = MultipleDesktopNext.Value; - } - newItem.SingleSiteInput = Funs.GetNewDecimalOrZero(SingleSiteInput.Value); - newItem.SingleSitePerson = Funs.GetNewInt(SingleSitePerson.Value); - newItem.SingleSiteNum = Funs.GetNewInt(SingleSiteNum.Value); - newItem.SingleSiteTotalNum = Funs.GetNewInt(SingleSiteTotalNum.Value); - newItem.SingleSiteNext = SingleSiteNext.Value; - newItem.SingleDesktopInput = Funs.GetNewDecimalOrZero(SingleDesktopInput.Value); - newItem.SingleDesktopPerson = Funs.GetNewInt(SingleDesktopPerson.Value); - newItem.SingleDesktopNum = Funs.GetNewInt(SingleDesktopNum.Value); - newItem.SingleDesktopTotalNum = Funs.GetNewInt(SingleDesktopTotalNum.Value); - if (!string.IsNullOrWhiteSpace(SingleDesktopNext.Value)) - { - newItem.SingleDesktopNext = SingleDesktopNext.Value; - } - APISeDinMonthReportService.SaveSeDinMonthReport12(newItem); - } - #endregion - #region 保存 MonthReport13、14、本月HSE活动综述、下月HSE工作计划 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - public void SaveSeDinMonthReport13() - { - SeDinMonthReportItem newItem = new SeDinMonthReportItem - { - MonthReportId = MonthReportId, - ThisSummary = ThisSummary.Text.Trim(), - NextPlan = NextPlan.Text.Trim(), - AccidentsSummary = AccidentsSummary.Value - }; - APISeDinMonthReportService.SaveSeDinMonthReport13(newItem); - } - #endregion - #region 保存按钮 - /// - /// 保存 - /// - /// - /// - protected void btnSave_Click(object sender, EventArgs e) - { - if (string.IsNullOrEmpty(this.CompileManId.SelectedValue)) - { - Alert.ShowInTop("请选择下一步报告人!", MessageBoxIcon.Warning); - return; - } - if (!string.IsNullOrEmpty(SaveSeDinMonthReport0(Const.BtnSave))) - { - SaveData(); - } - PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); - } - #endregion - - #region 提交按钮 - /// - /// 提交 - /// - /// - /// - protected void btnSysSubmit_Click(object sender, EventArgs e) - { - if (string.IsNullOrEmpty(this.CompileManId.SelectedValue)) - { - Alert.ShowInTop("请选择下一步报告人!", MessageBoxIcon.Warning); - return; - } - if (this.States != Const.State_2 && (this.drpAudit.SelectedValue == Const._Null || string.IsNullOrEmpty(this.drpAudit.SelectedValue))) - { - Alert.ShowInTop("请选择下一步办理人!", MessageBoxIcon.Warning); - return; - } - if (!string.IsNullOrEmpty(SaveSeDinMonthReport0(Const.BtnSubmit))) - { - SaveData(); - } - PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); - } - #endregion - - #region 保存数据 - /// - /// 保存数据 - /// - protected void SaveData() - { - var getSeDin_MonthReport = ManagerMonth_SeDinService.GetMonthReportByMonthReportId(MonthReportId); - if (getSeDin_MonthReport == null) - { - Alert.ShowInTop("请先保存月报主表信息!", MessageBoxIcon.Warning); - return; - } - else - { - SaveSeDinMonthReport1(); - SaveSeDinMonthReport2(); - SaveSeDinMonthReport3(); - SaveSeDinMonthReport4(); - SaveSeDinMonthReport5(); - SaveSeDinMonthReport6(); - SaveSeDinMonthReport7(); - SaveSeDinMonthReport8(); - SaveSeDinMonthReport9(); - SaveSeDinMonthReport10(); - SaveSeDinMonthReport11(); - SaveSeDinMonthReport12(); - SaveSeDinMonthReport13(); - - ////如果月报审核完成 月报信息写入到汇总 - if (getSeDin_MonthReport.States == Const.State_3 && getSeDin_MonthReport.ReporMonth.HasValue) - { - HSEDataCollectService.SaveHSEDataCollectItem(getSeDin_MonthReport); - } - } - } - #endregion - #endregion - - #region 获取按钮权限 - /// - /// 获取按钮权限 - /// - /// - /// - private void GetButtonPower() - { - if (Request.Params["value"] == "0") - { - return; - } - var buttonList = CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ProjectManagerMonth_SeDinMenuId); - if (buttonList.Count() > 0) - { - if (buttonList.Contains(Const.BtnSave)) - { - this.btnSave.Hidden = false; - this.btnSysSubmit.Hidden = false; - } - } - } - #endregion - - #region 是否同意 - /// - /// 是否同意 - /// - /// - /// - protected void rbIsAgree_SelectedIndexChanged(object sender, EventArgs e) - { - if (this.rbIsAgree.SelectedValue == "0") - { - this.drpStep.Hidden = true; - this.drpAudit.SelectedValue = this.CompileManId.SelectedValue; - this.txtOpinion.Text = "不同意。"; - this.drpAudit.Label = "打回"; - if (this.States == Const.State_2) - { - this.drpAudit.Hidden = false; - } - } - else - { - this.drpStep.Hidden = false; - if (this.States == Const.State_2) - { - this.drpAudit.Hidden = true; - } - this.drpAudit.SelectedValue = Const._Null; - this.txtOpinion.Text = "同意。"; - } - } -#endregion - } -} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDinEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDinEdit.aspx.designer.cs deleted file mode 100644 index b9947ffa..00000000 --- a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDinEdit.aspx.designer.cs +++ /dev/null @@ -1,2526 +0,0 @@ -//------------------------------------------------------------------------------ -// <自动生成> -// 此代码由工具生成。 -// -// 对此文件的更改可能导致不正确的行为,如果 -// 重新生成代码,则所做更改将丢失。 -// -//------------------------------------------------------------------------------ - -namespace FineUIPro.Web.HSSE.Manager { - - - public partial class ManagerMonth_SeDinEdit { - - /// - /// form1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlForm form1; - - /// - /// PageManager1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.PageManager PageManager1; - - /// - /// SimpleForm1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Form SimpleForm1; - - /// - /// ContentPanel7 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ContentPanel ContentPanel7; - - /// - /// Panel1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Panel Panel1; - - /// - /// ReporMonth 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DatePicker ReporMonth; - - /// - /// StartDate 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DatePicker StartDate; - - /// - /// EndDate 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DatePicker EndDate; - - /// - /// Panel2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Panel Panel2; - - /// - /// CompileManId 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList CompileManId; - - /// - /// AuditManId 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList AuditManId; - - /// - /// ApprovalManId 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList ApprovalManId; - - /// - /// DueDate 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DatePicker DueDate; - - /// - /// pan 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Panel pan; - - /// - /// projectCode 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox projectCode; - - /// - /// projectName 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Label projectName; - - /// - /// projectType 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox projectType; - - /// - /// ContractAmount 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox ContractAmount; - - /// - /// ConstructionStage 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox ConstructionStage; - - /// - /// ProjectAddress 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox ProjectAddress; - - /// - /// ProjectManager 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox ProjectManager; - - /// - /// ProjectManagerPhone 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox ProjectManagerPhone; - - /// - /// HsseManager 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox HsseManager; - - /// - /// HsseManagerPhone 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox HsseManagerPhone; - - /// - /// pStartDate 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DatePicker pStartDate; - - /// - /// pEndDate 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DatePicker pEndDate; - - /// - /// SeDinMonthReport3Item 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Panel SeDinMonthReport3Item; - - /// - /// MonthWorkTime 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox MonthWorkTime; - - /// - /// YearWorkTime 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox YearWorkTime; - - /// - /// ProjectWorkTime 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox ProjectWorkTime; - - /// - /// TotalLostTime 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TotalLostTime; - - /// - /// MillionLossRate 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox MillionLossRate; - - /// - /// TimeAccuracyRate 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox TimeAccuracyRate; - - /// - /// PsafeStartDate 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DatePicker PsafeStartDate; - - /// - /// PsafeEndDate 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DatePicker PsafeEndDate; - - /// - /// SafeWorkTime 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox SafeWorkTime; - - /// - /// ContentPanel2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ContentPanel ContentPanel2; - - /// - /// BigType 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl BigType; - - /// - /// AccidentType1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl AccidentType1; - - /// - /// MonthTimes1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthTimes1; - - /// - /// TotalTimes1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalTimes1; - - /// - /// MonthLossTime1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthLossTime1; - - /// - /// TotalLossTime1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalLossTime1; - - /// - /// MonthMoney1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthMoney1; - - /// - /// TotalMoney1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalMoney1; - - /// - /// MonthPersons1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthPersons1; - - /// - /// TotalPersons1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalPersons1; - - /// - /// AccidentType2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl AccidentType2; - - /// - /// MonthTimes2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthTimes2; - - /// - /// TotalTimes2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalTimes2; - - /// - /// MonthLossTime2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthLossTime2; - - /// - /// TotalLossTime2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalLossTime2; - - /// - /// MonthMoney2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthMoney2; - - /// - /// TotalMoney2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalMoney2; - - /// - /// MonthPersons2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthPersons2; - - /// - /// TotalPersons2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalPersons2; - - /// - /// AccidentType3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl AccidentType3; - - /// - /// MonthTimes3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthTimes3; - - /// - /// TotalTimes3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalTimes3; - - /// - /// MonthLossTime3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthLossTime3; - - /// - /// TotalLossTime3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalLossTime3; - - /// - /// MonthMoney3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthMoney3; - - /// - /// TotalMoney3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalMoney3; - - /// - /// MonthPersons3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthPersons3; - - /// - /// TotalPersons3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalPersons3; - - /// - /// AccidentType4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl AccidentType4; - - /// - /// MonthTimes4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthTimes4; - - /// - /// TotalTimes4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalTimes4; - - /// - /// MonthLossTime4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthLossTime4; - - /// - /// TotalLossTime4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalLossTime4; - - /// - /// MonthMoney4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthMoney4; - - /// - /// TotalMoney4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalMoney4; - - /// - /// MonthPersons4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthPersons4; - - /// - /// TotalPersons4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalPersons4; - - /// - /// AccidentType5 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl AccidentType5; - - /// - /// MonthTimes5 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthTimes5; - - /// - /// TotalTimes5 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalTimes5; - - /// - /// MonthLossTime5 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthLossTime5; - - /// - /// TotalLossTime5 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalLossTime5; - - /// - /// MonthMoney5 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthMoney5; - - /// - /// TotalMoney5 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalMoney5; - - /// - /// MonthPersons5 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthPersons5; - - /// - /// TotalPersons5 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalPersons5; - - /// - /// AccidentType6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl AccidentType6; - - /// - /// MonthTimes6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthTimes6; - - /// - /// TotalTimes6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalTimes6; - - /// - /// MonthLossTime6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthLossTime6; - - /// - /// TotalLossTime6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalLossTime6; - - /// - /// MonthMoney6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthMoney6; - - /// - /// TotalMoney6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalMoney6; - - /// - /// MonthPersons6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthPersons6; - - /// - /// TotalPersons6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalPersons6; - - /// - /// AccidentType7 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl AccidentType7; - - /// - /// MonthTimes7 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthTimes7; - - /// - /// TotalTimes7 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalTimes7; - - /// - /// MonthLossTime7 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthLossTime7; - - /// - /// TotalLossTime7 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalLossTime7; - - /// - /// MonthMoney7 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthMoney7; - - /// - /// TotalMoney7 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalMoney7; - - /// - /// MonthPersons7 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthPersons7; - - /// - /// TotalPersons7 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalPersons7; - - /// - /// AccidentType8 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl AccidentType8; - - /// - /// MonthTimes8 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthTimes8; - - /// - /// TotalTimes8 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalTimes8; - - /// - /// MonthLossTime8 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthLossTime8; - - /// - /// TotalLossTime8 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalLossTime8; - - /// - /// MonthMoney8 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthMoney8; - - /// - /// TotalMoney8 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalMoney8; - - /// - /// MonthPersons8 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthPersons8; - - /// - /// TotalPersons8 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalPersons8; - - /// - /// AccidentType9 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl AccidentType9; - - /// - /// MonthTimes9 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthTimes9; - - /// - /// TotalTimes9 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalTimes9; - - /// - /// MonthLossTime9 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthLossTime9; - - /// - /// TotalLossTime9 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalLossTime9; - - /// - /// MonthMoney9 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthMoney9; - - /// - /// TotalMoney9 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalMoney9; - - /// - /// MonthPersons9 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthPersons9; - - /// - /// TotalPersons9 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalPersons9; - - /// - /// AccidentType10 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl AccidentType10; - - /// - /// MonthTimes10 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthTimes10; - - /// - /// TotalTimes10 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalTimes10; - - /// - /// MonthLossTime10 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthLossTime10; - - /// - /// TotalLossTime10 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalLossTime10; - - /// - /// MonthMoney10 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthMoney10; - - /// - /// TotalMoney10 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalMoney10; - - /// - /// MonthPersons10 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthPersons10; - - /// - /// TotalPersons10 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalPersons10; - - /// - /// AccidentType11 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl AccidentType11; - - /// - /// MonthTimes11 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthTimes11; - - /// - /// TotalTimes11 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalTimes11; - - /// - /// MonthLossTime11 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthLossTime11; - - /// - /// TotalLossTime11 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalLossTime11; - - /// - /// MonthMoney11 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthMoney11; - - /// - /// TotalMoney11 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalMoney11; - - /// - /// MonthPersons11 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthPersons11; - - /// - /// TotalPersons11 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText TotalPersons11; - - /// - /// AccidentsSummary 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlTextArea AccidentsSummary; - - /// - /// ContentPanel3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ContentPanel ContentPanel3; - - /// - /// GvSeDinMonthReport4Item 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Grid GvSeDinMonthReport4Item; - - /// - /// Toolbar 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Toolbar Toolbar; - - /// - /// ContentPanel1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ContentPanel ContentPanel1; - - /// - /// txtFormalNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText txtFormalNum; - - /// - /// txtForeignNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText txtForeignNum; - - /// - /// txtOutsideNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText txtOutsideNum; - - /// - /// txtManagerNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText txtManagerNum; - - /// - /// txtTotalNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText txtTotalNum; - - /// - /// SafeMananger 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox SafeMananger; - - /// - /// OtherMananger 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox OtherMananger; - - /// - /// nbSpecialWorkerNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbSpecialWorkerNum; - - /// - /// nbGeneralWorkerNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox nbGeneralWorkerNum; - - /// - /// ContentPanel4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ContentPanel ContentPanel4; - - /// - /// GvSeDinMonthReport5Item 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Grid GvSeDinMonthReport5Item; - - /// - /// ContentPanel5 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ContentPanel ContentPanel5; - - /// - /// SafetyMonth 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SafetyMonth; - - /// - /// LaborMonth 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText LaborMonth; - - /// - /// ProgressMonth 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText ProgressMonth; - - /// - /// EducationMonth 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText EducationMonth; - - /// - /// SumMonth 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SumMonth; - - /// - /// ContractMonth 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText ContractMonth; - - /// - /// SafetyYear 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SafetyYear; - - /// - /// LaborYear 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText LaborYear; - - /// - /// ProgressYear 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText ProgressYear; - - /// - /// EducationYear 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText EducationYear; - - /// - /// SumYear 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SumYear; - - /// - /// ContractYear 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText ContractYear; - - /// - /// SafetyTotal 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SafetyTotal; - - /// - /// LaborTotal 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText LaborTotal; - - /// - /// ProgressTotal 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText ProgressTotal; - - /// - /// EducationTotal 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText EducationTotal; - - /// - /// SumTotal 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SumTotal; - - /// - /// ContractTotal 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText ContractTotal; - - /// - /// ConstructionCost 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText ConstructionCost; - - /// - /// ContentPanel6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ContentPanel ContentPanel6; - - /// - /// SpecialMontNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SpecialMontNum; - - /// - /// SpecialYearNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SpecialYearNum; - - /// - /// SpecialTotalNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SpecialTotalNum; - - /// - /// SpecialMontPerson 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SpecialMontPerson; - - /// - /// SpecialYearPerson 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SpecialYearPerson; - - /// - /// SpecialTotalPerson 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SpecialTotalPerson; - - /// - /// EmployeeMontNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText EmployeeMontNum; - - /// - /// EmployeeYearNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText EmployeeYearNum; - - /// - /// EmployeeTotalNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText EmployeeTotalNum; - - /// - /// EmployeeMontPerson 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText EmployeeMontPerson; - - /// - /// EmployeeYearPerson 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText EmployeeYearPerson; - - /// - /// EmployeeTotalPerson 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText EmployeeTotalPerson; - - /// - /// CpReport8 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ContentPanel CpReport8; - - /// - /// Report8WeekMontNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText Report8WeekMontNum; - - /// - /// Report8WeekTotalNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText Report8WeekTotalNum; - - /// - /// Report8WeekMontPerson 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText Report8WeekMontPerson; - - /// - /// Report8MonthMontNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText Report8MonthMontNum; - - /// - /// Report8MonthTotalNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText Report8MonthTotalNum; - - /// - /// Report8MonthMontPerson 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText Report8MonthMontPerson; - - /// - /// Report8SpecialMontNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText Report8SpecialMontNum; - - /// - /// Report8SpecialTotalNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText Report8SpecialTotalNum; - - /// - /// Report8SpecialMontPerson 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText Report8SpecialMontPerson; - - /// - /// GvSeDinMonthReport8Item 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Grid GvSeDinMonthReport8Item; - - /// - /// CpSeDinMonthReport9Item 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ContentPanel CpSeDinMonthReport9Item; - - /// - /// DailyMonth 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText DailyMonth; - - /// - /// DailyYear 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText DailyYear; - - /// - /// DailyTotal 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText DailyTotal; - - /// - /// WeekMonth 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText WeekMonth; - - /// - /// WeekYear 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText WeekYear; - - /// - /// WeekTotal 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText WeekTotal; - - /// - /// SpecialMonth 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SpecialMonth; - - /// - /// SpecialYear 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SpecialYear; - - /// - /// SpecialTotal 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SpecialTotal; - - /// - /// MonthlyMonth 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthlyMonth; - - /// - /// MonthlyYear 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthlyYear; - - /// - /// MonthlyTotal 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MonthlyTotal; - - /// - /// GvSeDinMonthReport9ItemSpecial 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Grid GvSeDinMonthReport9ItemSpecial; - - /// - /// GvSeDinMonthReport9ItemRect 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Grid GvSeDinMonthReport9ItemRect; - - /// - /// GvSeDinMonthReport9ItemStoppage 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Grid GvSeDinMonthReport9ItemStoppage; - - /// - /// ContentPanel9 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ContentPanel ContentPanel9; - - /// - /// SafeMonthNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SafeMonthNum; - - /// - /// SafeTotalNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SafeTotalNum; - - /// - /// SafeMonthMoney 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SafeMonthMoney; - - /// - /// SafeTotalMoney 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SafeTotalMoney; - - /// - /// HseMonthNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText HseMonthNum; - - /// - /// HseTotalNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText HseTotalNum; - - /// - /// HseMonthMoney 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText HseMonthMoney; - - /// - /// HseTotalMoney 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText HseTotalMoney; - - /// - /// ProduceMonthNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText ProduceMonthNum; - - /// - /// ProduceTotalNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText ProduceTotalNum; - - /// - /// ProduceMonthMoney 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText ProduceMonthMoney; - - /// - /// ProduceTotalMoney 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText ProduceTotalMoney; - - /// - /// AccidentMonthNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText AccidentMonthNum; - - /// - /// AccidentTotalNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText AccidentTotalNum; - - /// - /// AccidentMonthMoney 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText AccidentMonthMoney; - - /// - /// AccidentTotalMoney 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText AccidentTotalMoney; - - /// - /// ViolationMonthNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText ViolationMonthNum; - - /// - /// ViolationTotalNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText ViolationTotalNum; - - /// - /// ViolationMonthMoney 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText ViolationMonthMoney; - - /// - /// ViolationTotalMoney 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText ViolationTotalMoney; - - /// - /// ManageMonthNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText ManageMonthNum; - - /// - /// ManageTotalNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText ManageTotalNum; - - /// - /// ManageMonthMoney 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText ManageMonthMoney; - - /// - /// ManageTotalMoney 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText ManageTotalMoney; - - /// - /// ContentPanel10 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ContentPanel ContentPanel10; - - /// - /// RiskWorkNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText RiskWorkNum; - - /// - /// RiskFinishedNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText RiskFinishedNum; - - /// - /// RiskWorkNext 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText RiskWorkNext; - - /// - /// LargeWorkNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText LargeWorkNum; - - /// - /// LargeFinishedNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText LargeFinishedNum; - - /// - /// LargeWorkNext 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText LargeWorkNext; - - /// - /// ContentPanel11 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ContentPanel ContentPanel11; - - /// - /// MultipleSiteInput 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MultipleSiteInput; - - /// - /// MultipleSitePerson 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MultipleSitePerson; - - /// - /// MultipleSiteNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MultipleSiteNum; - - /// - /// MultipleSiteTotalNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MultipleSiteTotalNum; - - /// - /// MultipleSiteNext 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlTextArea MultipleSiteNext; - - /// - /// MultipleDesktopInput 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MultipleDesktopInput; - - /// - /// MultipleDesktopPerson 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MultipleDesktopPerson; - - /// - /// MultipleDesktopNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MultipleDesktopNum; - - /// - /// MultipleDesktopTotalNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText MultipleDesktopTotalNum; - - /// - /// MultipleDesktopNext 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlTextArea MultipleDesktopNext; - - /// - /// SingleSiteInput 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SingleSiteInput; - - /// - /// SingleSitePerson 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SingleSitePerson; - - /// - /// SingleSiteNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SingleSiteNum; - - /// - /// SingleSiteTotalNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SingleSiteTotalNum; - - /// - /// SingleSiteNext 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlTextArea SingleSiteNext; - - /// - /// SingleDesktopInput 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SingleDesktopInput; - - /// - /// SingleDesktopPerson 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SingleDesktopPerson; - - /// - /// SingleDesktopNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SingleDesktopNum; - - /// - /// SingleDesktopTotalNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText SingleDesktopTotalNum; - - /// - /// SingleDesktopNext 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlTextArea SingleDesktopNext; - - /// - /// ContentPanel12 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ContentPanel ContentPanel12; - - /// - /// ThisSummary 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextArea ThisSummary; - - /// - /// NextPlan 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextArea NextPlan; - - /// - /// Toolbar2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Toolbar Toolbar2; - - /// - /// rbIsAgree 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.RadioButtonList rbIsAgree; - - /// - /// txtOpinion 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtOpinion; - - /// - /// drpStep 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList drpStep; - - /// - /// drpAudit 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList drpAudit; - - /// - /// Toolbar1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Toolbar Toolbar1; - - /// - /// ToolbarFill1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ToolbarFill ToolbarFill1; - - /// - /// btnSave 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnSave; - - /// - /// btnSysSubmit 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnSysSubmit; - - /// - /// btnClose 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnClose; - } -} diff --git a/SGGL/FineUIPro.Web/Person/PersonDutyAdd.aspx b/SGGL/FineUIPro.Web/Person/PersonDutyAdd.aspx index d59512e2..176c3a87 100644 --- a/SGGL/FineUIPro.Web/Person/PersonDutyAdd.aspx +++ b/SGGL/FineUIPro.Web/Person/PersonDutyAdd.aspx @@ -16,7 +16,7 @@ - diff --git a/SGGL/FineUIPro.Web/Person/PersonDutyAdd.aspx.cs b/SGGL/FineUIPro.Web/Person/PersonDutyAdd.aspx.cs index 17372512..e075b829 100644 --- a/SGGL/FineUIPro.Web/Person/PersonDutyAdd.aspx.cs +++ b/SGGL/FineUIPro.Web/Person/PersonDutyAdd.aspx.cs @@ -30,14 +30,14 @@ namespace FineUIPro.Web.Person if (!IsPostBack) { this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); - BLL.UserService.InitUserUnitIdDropDownList(drpSEDINUser, Const.UnitId_XJYJ, true); + BLL.UserService.InitUserUnitIdDropDownList(drpUser, Const.UnitId_XJYJ, true); WorkPostService.InitMainWorkPostDropDownList(drpWorkPost, true); this.DutyId = Request.Params["DutyId"]; if (!string.IsNullOrEmpty(this.DutyId)) { var PersonDuty = BLL.Person_DutyService.GetPersonDutyById(this.DutyId); if (PersonDuty != null) { if (!string.IsNullOrEmpty(PersonDuty.DutyPersonId)) { - this.drpSEDINUser.SelectedValue=PersonDuty.DutyPersonId; + this.drpUser.SelectedValue=PersonDuty.DutyPersonId; } if (!string.IsNullOrEmpty(PersonDuty.WorkPostId)) { this.drpWorkPost.SelectedValue = PersonDuty.WorkPostId; @@ -69,7 +69,7 @@ namespace FineUIPro.Web.Person private void SaveData(string type) { - if (this.drpSEDINUser.SelectedValue == BLL.Const._Null) + if (this.drpUser.SelectedValue == BLL.Const._Null) { Alert.ShowInTop("请选择员工", MessageBoxIcon.Warning); return; @@ -85,7 +85,7 @@ namespace FineUIPro.Web.Person } Model.Person_Duty PersonDuty = new Model.Person_Duty { - DutyPersonId = this.drpSEDINUser.SelectedValue, + DutyPersonId = this.drpUser.SelectedValue, CompilePersonId = CurrUser.UserId, CompileTime = DateTime.Now, WorkPostId=this.drpWorkPost.SelectedValue, @@ -124,10 +124,10 @@ namespace FineUIPro.Web.Person PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); } - protected void drpSEDINUser_SelectedIndexChanged(object sender, EventArgs e) + protected void drpUser_SelectedIndexChanged(object sender, EventArgs e) { - if (drpSEDINUser.SelectedValue != BLL.Const._Null) { - var getUser = BLL.UserService.GetUserByUserId(drpSEDINUser.SelectedValue); + if (drpUser.SelectedValue != BLL.Const._Null) { + var getUser = BLL.UserService.GetUserByUserId(drpUser.SelectedValue); if (getUser != null) { this.drpWorkPost.SelectedValue = getUser.WorkPostId; if (this.drpWorkPost.SelectedValue != null) { diff --git a/SGGL/FineUIPro.Web/Person/PersonDutyAdd.aspx.designer.cs b/SGGL/FineUIPro.Web/Person/PersonDutyAdd.aspx.designer.cs index d765b051..c3db9be7 100644 --- a/SGGL/FineUIPro.Web/Person/PersonDutyAdd.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/Person/PersonDutyAdd.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.Person { - - - public partial class PersonDutyAdd { - +namespace FineUIPro.Web.Person +{ + + + public partial class PersonDutyAdd + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// SimpleForm1 控件。 /// @@ -38,16 +40,16 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form SimpleForm1; - + /// - /// drpSEDINUser 控件。 + /// drpUser 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.DropDownList drpSEDINUser; - + protected global::FineUIPro.DropDownList drpUser; + /// /// drpWorkPost 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpWorkPost; - + /// /// txtTemplate 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.HtmlEditor txtTemplate; - + /// /// Toolbar1 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; - + /// /// btnSave 控件。 /// @@ -83,7 +85,7 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSave; - + /// /// btnSubmit 控件。 /// @@ -92,7 +94,7 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSubmit; - + /// /// btnClose 控件。 /// diff --git a/SGGL/FineUIPro.Web/Person/PersonDutyEdit.aspx b/SGGL/FineUIPro.Web/Person/PersonDutyEdit.aspx index 27006930..ad3e1048 100644 --- a/SGGL/FineUIPro.Web/Person/PersonDutyEdit.aspx +++ b/SGGL/FineUIPro.Web/Person/PersonDutyEdit.aspx @@ -16,7 +16,7 @@ - diff --git a/SGGL/FineUIPro.Web/Person/PersonDutyEdit.aspx.cs b/SGGL/FineUIPro.Web/Person/PersonDutyEdit.aspx.cs index 1e0ccd3f..b04078e4 100644 --- a/SGGL/FineUIPro.Web/Person/PersonDutyEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/Person/PersonDutyEdit.aspx.cs @@ -30,7 +30,7 @@ namespace FineUIPro.Web.Person if (!IsPostBack) { this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); - BLL.UserService.InitUserUnitIdDropDownList(drpSEDINUser, Const.UnitId_XJYJ, true); + BLL.UserService.InitUserUnitIdDropDownList(drpUser, Const.UnitId_XJYJ, true); WorkPostService.InitMainWorkPostDropDownList(drpWorkPost, true); BLL.UserService.InitUserUnitIdDepartIdDropDownList(drpHandleMan, Const.UnitId_XJYJ, Const.Depart_constructionId,true); this.DutyId = Request.Params["DutyId"]; @@ -38,7 +38,7 @@ namespace FineUIPro.Web.Person var PersonDuty = BLL.Person_DutyService.GetPersonDutyById(this.DutyId); if (PersonDuty != null) { if (!string.IsNullOrEmpty(PersonDuty.DutyPersonId)) { - this.drpSEDINUser.SelectedValue=PersonDuty.DutyPersonId; + this.drpUser.SelectedValue=PersonDuty.DutyPersonId; } if (!string.IsNullOrEmpty(PersonDuty.WorkPostId)) { this.drpWorkPost.SelectedValue = PersonDuty.WorkPostId; diff --git a/SGGL/FineUIPro.Web/Person/PersonDutyEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/Person/PersonDutyEdit.aspx.designer.cs index 94690911..215ed32f 100644 --- a/SGGL/FineUIPro.Web/Person/PersonDutyEdit.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/Person/PersonDutyEdit.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.Person { - - - public partial class PersonDutyEdit { - +namespace FineUIPro.Web.Person +{ + + + public partial class PersonDutyEdit + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// SimpleForm1 控件。 /// @@ -38,16 +40,16 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form SimpleForm1; - + /// - /// drpSEDINUser 控件。 + /// drpUser 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.DropDownList drpSEDINUser; - + protected global::FineUIPro.DropDownList drpUser; + /// /// drpWorkPost 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpWorkPost; - + /// /// txtTemplate 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.HtmlEditor txtTemplate; - + /// /// IsAgree 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.FormRow IsAgree; - + /// /// rdbIsAgree 控件。 /// @@ -83,7 +85,7 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.RadioButtonList rdbIsAgree; - + /// /// BackMan 控件。 /// @@ -92,7 +94,7 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.FormRow BackMan; - + /// /// drpHandleMan 控件。 /// @@ -101,7 +103,7 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpHandleMan; - + /// /// Toolbar1 控件。 /// @@ -110,7 +112,7 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; - + /// /// btnSubmit 控件。 /// @@ -119,7 +121,7 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSubmit; - + /// /// btnClose 控件。 /// diff --git a/SGGL/FineUIPro.Web/Person/PersonDutyView.aspx b/SGGL/FineUIPro.Web/Person/PersonDutyView.aspx index f0a40b13..cc4fb013 100644 --- a/SGGL/FineUIPro.Web/Person/PersonDutyView.aspx +++ b/SGGL/FineUIPro.Web/Person/PersonDutyView.aspx @@ -15,7 +15,7 @@ - diff --git a/SGGL/FineUIPro.Web/Person/PersonDutyView.aspx.cs b/SGGL/FineUIPro.Web/Person/PersonDutyView.aspx.cs index 8cd81331..1b570af7 100644 --- a/SGGL/FineUIPro.Web/Person/PersonDutyView.aspx.cs +++ b/SGGL/FineUIPro.Web/Person/PersonDutyView.aspx.cs @@ -14,7 +14,7 @@ namespace FineUIPro.Web.Person if (!IsPostBack) { this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); - BLL.UserService.InitUserUnitIdDropDownList(drpSEDINUser, Const.UnitId_XJYJ, true); + BLL.UserService.InitUserUnitIdDropDownList(drpUser, Const.UnitId_XJYJ, true); WorkPostService.InitMainWorkPostDropDownList(drpWorkPost, true); string DutyId = Request.Params["DutyId"]; if (!string.IsNullOrEmpty(DutyId)) @@ -24,7 +24,7 @@ namespace FineUIPro.Web.Person { if (!string.IsNullOrEmpty(PersonDuty.DutyPersonId)) { - this.drpSEDINUser.SelectedValue = PersonDuty.DutyPersonId; + this.drpUser.SelectedValue = PersonDuty.DutyPersonId; } if (!string.IsNullOrEmpty(PersonDuty.WorkPostId)) { diff --git a/SGGL/FineUIPro.Web/Person/PersonDutyView.aspx.designer.cs b/SGGL/FineUIPro.Web/Person/PersonDutyView.aspx.designer.cs index 31e802df..1048879d 100644 --- a/SGGL/FineUIPro.Web/Person/PersonDutyView.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/Person/PersonDutyView.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.Person { - - - public partial class PersonDutyView { - +namespace FineUIPro.Web.Person +{ + + + public partial class PersonDutyView + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// SimpleForm1 控件。 /// @@ -38,16 +40,16 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form SimpleForm1; - + /// - /// drpSEDINUser 控件。 + /// drpUser 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.DropDownList drpSEDINUser; - + protected global::FineUIPro.DropDownList drpUser; + /// /// drpWorkPost 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpWorkPost; - + /// /// txtTemplate 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.HtmlEditor txtTemplate; - + /// /// Toolbar1 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.Person { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; - + /// /// btnClose 控件。 /// diff --git a/SGGL/FineUIPro.Web/Person/PersonSet.aspx.cs b/SGGL/FineUIPro.Web/Person/PersonSet.aspx.cs index 13963e58..0522255a 100644 --- a/SGGL/FineUIPro.Web/Person/PersonSet.aspx.cs +++ b/SGGL/FineUIPro.Web/Person/PersonSet.aspx.cs @@ -51,7 +51,7 @@ namespace FineUIPro.Web.Person + @" LEFT JOIN Base_PostTitle AS PostTitle ON PostTitle.PostTitleId=Users.PostTitleId" + @" LEFT JOIN Base_PracticeCertificate AS pc ON pc.PracticeCertificateId=Users.CertificateId" + @" LEFT JOIN Base_Project AS project ON project.projectId=Users.ProjectId" - + @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.UserId !='" + Const.hfnbdId + "' AND Users.UserId !='" + Const.sedinId + "' AND Unit.UnitId='" + Const.UnitId_XJYJ + "' AND Users.DepartId='" + Const.Depart_constructionId + "' "; + + @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.UserId !='" + Const.hfnbdId + "' AND Unit.UnitId='" + Const.UnitId_XJYJ + "' AND Users.DepartId='" + Const.Depart_constructionId + "' "; List listStr = new List(); if (!string.IsNullOrEmpty(this.txtUserName.Text.Trim())) diff --git a/SGGL/FineUIPro.Web/Person/PersonTrainingAdd.aspx.cs b/SGGL/FineUIPro.Web/Person/PersonTrainingAdd.aspx.cs index 0468da2c..0dd33383 100644 --- a/SGGL/FineUIPro.Web/Person/PersonTrainingAdd.aspx.cs +++ b/SGGL/FineUIPro.Web/Person/PersonTrainingAdd.aspx.cs @@ -90,7 +90,7 @@ namespace FineUIPro.Web.Person + @" LEFT JOIN Base_PostTitle AS PostTitle ON PostTitle.PostTitleId=Users.PostTitleId" + @" LEFT JOIN Base_PracticeCertificate AS pc ON pc.PracticeCertificateId=Users.CertificateId" + @" LEFT JOIN Base_Project AS project ON project.projectId=Users.ProjectId" - + @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.UserId !='" + Const.hfnbdId + "' AND Users.UserId !='" + Const.sedinId + "' AND Unit.UnitId='" + Const.UnitId_XJYJ + "' AND Users.DepartId='" + Const.Depart_constructionId + "' AND Users.IsPost =1 "; + + @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.UserId !='" + Const.hfnbdId + "' AND Unit.UnitId='" + Const.UnitId_XJYJ + "' AND Users.DepartId='" + Const.Depart_constructionId + "' AND Users.IsPost =1 "; List listStr = new List(); if (this.drpWorkPost.SelectedValue != BLL.Const._Null) { diff --git a/SGGL/FineUIPro.Web/Person/PersonTrainingEdit.aspx.cs b/SGGL/FineUIPro.Web/Person/PersonTrainingEdit.aspx.cs index d977cc4b..29711376 100644 --- a/SGGL/FineUIPro.Web/Person/PersonTrainingEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/Person/PersonTrainingEdit.aspx.cs @@ -82,7 +82,7 @@ namespace FineUIPro.Web.Person + @" LEFT JOIN Base_PostTitle AS PostTitle ON PostTitle.PostTitleId=Users.PostTitleId" + @" LEFT JOIN Base_PracticeCertificate AS pc ON pc.PracticeCertificateId=Users.CertificateId" + @" LEFT JOIN Base_Project AS project ON project.projectId=Users.ProjectId" - + @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.UserId !='" + Const.hfnbdId + "' AND Users.UserId !='" + Const.sedinId + "' AND Unit.UnitId='" + Const.UnitId_XJYJ + "' AND Users.DepartId='" + Const.Depart_constructionId + "' AND Users.IsPost =1 "; + + @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.UserId !='" + Const.hfnbdId + "' AND Unit.UnitId='" + Const.UnitId_XJYJ + "' AND Users.DepartId='" + Const.Depart_constructionId + "' AND Users.IsPost =1 "; List listStr = new List(); var personIds = from x in Funs.DB.View_Person_TrainingPerson where x.TrainingPlanId == this.TrainingPlanId select x.TrainingUserId; if (personIds.Count() > 0) diff --git a/SGGL/FineUIPro.Web/Person/PersonTrainingView.aspx.cs b/SGGL/FineUIPro.Web/Person/PersonTrainingView.aspx.cs index 03951e15..d33f0ed6 100644 --- a/SGGL/FineUIPro.Web/Person/PersonTrainingView.aspx.cs +++ b/SGGL/FineUIPro.Web/Person/PersonTrainingView.aspx.cs @@ -83,7 +83,7 @@ namespace FineUIPro.Web.Person + @" LEFT JOIN Base_PostTitle AS PostTitle ON PostTitle.PostTitleId=Users.PostTitleId" + @" LEFT JOIN Base_PracticeCertificate AS pc ON pc.PracticeCertificateId=Users.CertificateId" + @" LEFT JOIN Base_Project AS project ON project.projectId=Users.ProjectId" - + @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.UserId !='" + Const.hfnbdId + "' AND Users.UserId !='" + Const.sedinId + "' AND Unit.UnitId='" + Const.UnitId_XJYJ + "' AND Users.DepartId='" + Const.Depart_constructionId + "' AND Users.IsPost =1 "; + + @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.UserId !='" + Const.hfnbdId + "' AND Unit.UnitId='" + Const.UnitId_XJYJ + "' AND Users.DepartId='" + Const.Depart_constructionId + "' AND Users.IsPost =1 "; List listStr = new List(); var personIds = from x in Funs.DB.View_Person_TrainingPerson where x.TrainingPlanId == this.TrainingPlanId select x.TrainingUserId; if (personIds.Count() > 0) diff --git a/SGGL/FineUIPro.Web/Person/Shunt.aspx.cs b/SGGL/FineUIPro.Web/Person/Shunt.aspx.cs index ad2a8dfe..a17dacfa 100644 --- a/SGGL/FineUIPro.Web/Person/Shunt.aspx.cs +++ b/SGGL/FineUIPro.Web/Person/Shunt.aspx.cs @@ -57,7 +57,7 @@ namespace FineUIPro.Web.Person + @" LEFT JOIN Base_PostTitle AS PostTitle ON PostTitle.PostTitleId=Users.PostTitleId" + @" LEFT JOIN Base_PracticeCertificate AS pc ON pc.PracticeCertificateId=Users.CertificateId" + @" LEFT JOIN Base_Project AS project ON project.projectId=Users.ProjectId" - + @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.UserId !='" + Const.hfnbdId + "' AND Users.UserId !='" + Const.sedinId + "' AND Unit.UnitId='" + Const.UnitId_XJYJ + "' AND Users.DepartId='" + Const.Depart_constructionId + "' AND Users.IsPost =1 "; + + @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.UserId !='" + Const.hfnbdId + "' AND Unit.UnitId='" + Const.UnitId_XJYJ + "' AND Users.DepartId='" + Const.Depart_constructionId + "' AND Users.IsPost =1 "; List listStr = new List(); if (this.drpWorkPost.SelectedValue != BLL.Const._Null) { diff --git a/SGGL/FineUIPro.Web/Person/ShuntDetailEdit.aspx.cs b/SGGL/FineUIPro.Web/Person/ShuntDetailEdit.aspx.cs index 91809370..b9585ac3 100644 --- a/SGGL/FineUIPro.Web/Person/ShuntDetailEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/Person/ShuntDetailEdit.aspx.cs @@ -56,7 +56,7 @@ namespace FineUIPro.Web.Person + @" From dbo.Sys_User AS Users" + @" LEFT JOIN Base_Unit AS Unit ON Unit.UnitId=Users.UnitId" + @" LEFT JOIN Base_PostTitle AS PostTitle ON PostTitle.PostTitleId=Users.PostTitleId" - + @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.IsPost =1 AND Users.UserId !='" + Const.hfnbdId + "' AND Users.UserId !='" + Const.sedinId + "' AND Unit.UnitId='" + Const.UnitId_XJYJ + "' AND Users.DepartId='" + Const.Depart_constructionId + "' "; + + @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.IsPost =1 AND Users.UserId !='" + Const.hfnbdId + "' AND Unit.UnitId='" + Const.UnitId_XJYJ + "' AND Users.DepartId='" + Const.Depart_constructionId + "' "; List listStr = new List(); if (this.drpWorkPost.SelectedValue != BLL.Const._Null) { diff --git a/SGGL/FineUIPro.Web/Personal/RunLog.aspx.cs b/SGGL/FineUIPro.Web/Personal/RunLog.aspx.cs index f8c983b5..0fd824cb 100644 --- a/SGGL/FineUIPro.Web/Personal/RunLog.aspx.cs +++ b/SGGL/FineUIPro.Web/Personal/RunLog.aspx.cs @@ -53,7 +53,7 @@ namespace FineUIPro.Web.Personal + @" LEFT JOIN Base_Unit as units on users.UnitId=units.UnitId" + @" LEFT JOIN Project_ProjectUser as ProjectUser on ProjectUser.UserId=sysLog.UserId and ProjectUser.ProjectId=sysLog.ProjectId" + @" LEFT JOIN Base_Project as Project on sysLog.ProjectId=Project.ProjectId" - + @" WHERE sysLog.UserId != '" + Const.hfnbdId + "' AND sysLog.UserId !='" + Const.sedinId + "'"; + + @" WHERE sysLog.UserId != '" + Const.hfnbdId + "'"; List listStr = new List(); //if (this.CurrUser.UserId != BLL.Const.sysglyId) //{ diff --git a/SGGL/Model/APIItem/HSSE/SeDinMonthReport10Item.cs b/SGGL/Model/APIItem/HSSE/SeDinMonthReport10Item.cs deleted file mode 100644 index 80290dfc..00000000 --- a/SGGL/Model/APIItem/HSSE/SeDinMonthReport10Item.cs +++ /dev/null @@ -1,222 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Model -{ - /// - /// 赛鼎月报信息项 --10、项目奖惩情况统计 - /// - public class SeDinMonthReport10Item - { - /// - /// ID - /// - public string MonthReport10Id - { - get; - set; - } - /// - /// 月报ID - /// - public string MonthReportId - { - get; - set; - } - /// - /// 安全工时奖次数(本月) - /// - public int? SafeMonthNum - { - get; - set; - } - /// - /// 安全工时奖次数(累计) - /// - public int? SafeTotalNum - { - get; - set; - } - /// - /// 安全工时奖金额(本月) - /// - public decimal? SafeMonthMoney - { - get; - set; - } - /// - /// 安全工时奖金额(累计) - /// - public decimal? SafeTotalMoney - { - get; - set; - } - /// - /// HSE绩效考核奖励次数(本月) - /// - public int? HseMonthNum - { - get; - set; - } - /// - /// HSE绩效考核奖励次数(累计) - /// - public int? HseTotalNum - { - get; - set; - } - /// - /// HSE绩效考核奖励金额(本月) - /// - public decimal? HseMonthMoney - { - get; - set; - } - /// - /// HSE绩效考核奖励金额(累计) - /// - public decimal? HseTotalMoney - { - get; - set; - } - /// - /// 安全生产先进个人奖次数(本月) - /// - public int? ProduceMonthNum - { - get; - set; - } - /// - /// 安全生产先进个人奖次数(累计) - /// - public int? ProduceTotalNum - { - get; - set; - } - /// - /// 安全生产先进个人奖金额(本月) - /// - public decimal? ProduceMonthMoney - { - get; - set; - } - /// - /// 安全生产先进个人奖金额(累计) - /// - public decimal? ProduceTotalMoney - { - get; - set; - } - /// - /// 事故责任处罚次数(本月) - /// - public int? AccidentMonthNum - { - get; - set; - } - /// - /// 事故责任处罚次数(累计) - /// - public int? AccidentTotalNum - { - get; - set; - } - /// - /// 事故责任处罚金额(本月) - /// - public decimal? AccidentMonthMoney - { - get; - set; - } - /// - /// 事故责任处罚金额(累计) - /// - public decimal? AccidentTotalMoney - { - get; - set; - } - /// - /// 违章处罚次数(本月) - /// - public int? ViolationMonthNum - { - get; - set; - } - /// - /// 违章处罚次数(累计) - /// - public int? ViolationTotalNum - { - get; - set; - } - /// - /// 违章处罚金额(本月) - /// - public decimal? ViolationMonthMoney - { - get; - set; - } - /// - /// 违章处罚金额(累计) - /// - public decimal? ViolationTotalMoney - { - get; - set; - } - /// - /// 安全管理处罚次数(本月) - /// - public int? ManageMonthNum - { - get; - set; - } - /// - /// 安全管理处罚次数(累计) - /// - public int? ManageTotalNum - { - get; - set; - } - /// - /// 安全管理处罚金额(本月) - /// - public decimal? ManageMonthMoney - { - get; - set; - } - /// - /// 安全管理处罚金额(累计) - /// - public decimal? ManageTotalMoney - { - get; - set; - } - } -} diff --git a/SGGL/Model/APIItem/HSSE/SeDinMonthReport11Item.cs b/SGGL/Model/APIItem/HSSE/SeDinMonthReport11Item.cs deleted file mode 100644 index 4a9848b4..00000000 --- a/SGGL/Model/APIItem/HSSE/SeDinMonthReport11Item.cs +++ /dev/null @@ -1,78 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Model -{ - /// - /// 赛鼎月报信息项 --11、项目危大工程施工情况 - /// - public class SeDinMonthReport11Item - { - /// - /// ID - /// - public string MonthReport11Id - { - get; - set; - } - /// - /// 月报ID - /// - public string MonthReportId - { - get; - set; - } - /// - /// 危险性较大分部分项工程本月正在施工 - /// - public int? RiskWorkNum - { - get; - set; - } - /// - /// 危险性较大分部分项工程已完工 - /// - public int? RiskFinishedNum - { - get; - set; - } - /// - /// 危险性较大分部分项工程下月施工计划 - /// - public string RiskWorkNext - { - get; - set; - } - /// - /// 超过一定规模危大工程本月正在施工 - /// - public int? LargeWorkNum - { - get; - set; - } - /// - /// 超过一定规模危大工程已完工 - /// - public int? LargeFinishedNum - { - get; - set; - } - /// - /// 超过一定规模危大工程下月施工计划 - /// - public string LargeWorkNext - { - get; - set; - } - } -} diff --git a/SGGL/Model/APIItem/HSSE/SeDinMonthReport12Item.cs b/SGGL/Model/APIItem/HSSE/SeDinMonthReport12Item.cs deleted file mode 100644 index 6c51b98f..00000000 --- a/SGGL/Model/APIItem/HSSE/SeDinMonthReport12Item.cs +++ /dev/null @@ -1,190 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Model -{ - /// - /// 赛鼎月报信息项 --12、项目应急演练情况 - /// - public class SeDinMonthReport12Item - { - /// - /// ID - /// - public string MonthReport12Id - { - get; - set; - } - /// - /// 月报ID - /// - public string MonthReportId - { - get; - set; - } - /// - /// 综合演练现场直接投入 - /// - public decimal? MultipleSiteInput - { - get; - set; - } - /// - /// 综合演练现场参演人数 - /// - public int? MultipleSitePerson - { - get; - set; - } - /// - /// 综合演练现场本月次数 - /// - public int? MultipleSiteNum - { - get; - set; - } - /// - /// 综合演练现场项目累计次数 - /// - public int? MultipleSiteTotalNum - { - get; - set; - } - /// - /// 综合演练现场下月计划 - /// - public string MultipleSiteNext - { - get; - set; - } - /// - /// 综合演练桌面直接投入 - /// - public decimal? MultipleDesktopInput - { - get; - set; - } - /// - /// 综合演练桌面参演人数 - /// - public int? MultipleDesktopPerson - { - get; - set; - } - /// - /// 综合演练桌面本月次数 - /// - public int? MultipleDesktopNum - { - get; - set; - } - /// - /// 综合演练桌面项目累计次数 - /// - public int? MultipleDesktopTotalNum - { - get; - set; - } - /// - /// 综合演练桌面下月计划 - /// - public string MultipleDesktopNext - { - get; - set; - } - /// - /// 单项演练现场直接投入 - /// - public decimal? SingleSiteInput - { - get; - set; - } - /// - /// 单项演练现场参演人数 - /// - public int? SingleSitePerson - { - get; - set; - } - /// - /// 单项演练现场本月次数 - /// - public int? SingleSiteNum - { - get; - set; - } - /// - /// 单项演练现场项目累计次数 - /// - public int? SingleSiteTotalNum - { - get; - set; - } - /// - /// 单项演练现场下月计划 - /// - public string SingleSiteNext - { - get; - set; - } - /// - /// 单项演练桌面直接投入 - /// - public decimal? SingleDesktopInput - { - get; - set; - } - /// - /// 单项演练桌面参演人数 - /// - public int? SingleDesktopPerson - { - get; - set; - } - /// - /// 单项演练桌面本月次数 - /// - public int? SingleDesktopNum - { - get; - set; - } - /// - /// 单项演练桌面项目累计次数 - /// - public int? SingleDesktopTotalNum - { - get; - set; - } - /// - /// 单项演练桌面下月计划 - /// - public string SingleDesktopNext - { - get; - set; - } - } -} diff --git a/SGGL/Model/APIItem/HSSE/SeDinMonthReport1Item.cs b/SGGL/Model/APIItem/HSSE/SeDinMonthReport1Item.cs deleted file mode 100644 index 04d119df..00000000 --- a/SGGL/Model/APIItem/HSSE/SeDinMonthReport1Item.cs +++ /dev/null @@ -1,118 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Model -{ - /// - /// 赛鼎月报信息项 --1、项目信息 - /// - public class SeDinMonthReport1Item - { - /// - /// ID - /// - public string MonthReport1Id - { - get; - set; - } - /// - /// 月报ID - /// - public string MonthReportId - { - get; - set; - } - /// - /// 项目编号 - /// - public string ProjectCode - { - get; - set; - } - /// - /// 项目名称 - /// - public string ProjectName - { - get; - set; - } - /// - /// 项目类型 - /// - public string ProjectType - { - get; - set; - } - /// - /// 合同开始日期 - /// - public string StartDate - { - get; - set; - } - /// - /// 合同结束日期 - /// - public string EndDate - { - get; - set; - } - /// - /// 项目经理及联系方式 - /// - public string ProjectManager - { - get; - set; - } - /// - /// 安全经理及联系方式 - /// - public string HsseManager - { - get; - set; - } - /// - /// 合同号 - /// - public string ContractNo - { - get; - set; - } - /// - /// 合同额 - /// - public string ContractAmount - { - get; - set; - } - /// - /// 所处的施工阶段 - /// - public string ConstructionStage - { - get; - set; - } - /// - /// 项目所在地 - /// - public string ProjectAddress - { - get; - set; - } - } -} diff --git a/SGGL/Model/APIItem/HSSE/SeDinMonthReport2Item.cs b/SGGL/Model/APIItem/HSSE/SeDinMonthReport2Item.cs deleted file mode 100644 index a53a4ce8..00000000 --- a/SGGL/Model/APIItem/HSSE/SeDinMonthReport2Item.cs +++ /dev/null @@ -1,102 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Model -{ - /// - /// 赛鼎月报信息项 --2、项目安全工时统计 - /// - public class SeDinMonthReport2Item - { - /// - /// ID - /// - public string MonthReport2Id - { - get; - set; - } - /// - /// 月报ID - /// - public string MonthReportId - { - get; - set; - } - /// - /// 当月安全人工时 - /// - public decimal? MonthWorkTime - { - get; - set; - } - /// - /// 年度累计安全人工时 - /// - public decimal? YearWorkTime - { - get; - set; - } - /// - /// 项目累计安全人工时 - /// - public decimal? ProjectWorkTime - { - get; - set; - } - /// - /// 总损失工时 - /// - public decimal? TotalLostTime - { - get; - set; - } - /// - /// 百万工时损失率 - /// - public string MillionLossRate - { - get; - set; - } - /// - /// 工时统计准确率 - /// - public string TimeAccuracyRate - { - get; - set; - } - /// - /// 开始日期 - /// - public string StartDate - { - get; - set; - } - /// - /// 结束日期 - /// - public string EndDate - { - get; - set; - } - /// - /// 安全生产 人工时 - /// - public decimal? SafeWorkTime - { - get; - set; - } - } -} diff --git a/SGGL/Model/APIItem/HSSE/SeDinMonthReport3Item.cs b/SGGL/Model/APIItem/HSSE/SeDinMonthReport3Item.cs deleted file mode 100644 index c1486168..00000000 --- a/SGGL/Model/APIItem/HSSE/SeDinMonthReport3Item.cs +++ /dev/null @@ -1,118 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Model -{ - /// - /// 赛鼎月报信息项 --3、项目HSE事故、事件统计 - /// - public class SeDinMonthReport3Item - { - /// - /// ID - /// - public string MonthReport3Id - { - get; - set; - } - /// - /// 月报ID - /// - public string MonthReportId - { - get; - set; - } - /// - /// 排序 - /// - public int? SortIndex - { - get; - set; - } - /// - /// 类型 - /// - public string BigType - { - get; - set; - } - /// - /// 事故类型 - /// - public string AccidentType - { - get; - set; - } - /// - /// 本月次数 - /// - public int? MonthTimes - { - get; - set; - } - /// - /// 累计次数 - /// - public int? TotalTimes - { - get; - set; - } - /// - /// 本月损失工时 - /// - public decimal? MonthLossTime - { - get; - set; - } - /// - /// 累计损失工时 - /// - public decimal? TotalLossTime - { - get; - set; - } - /// - /// 本月经济损失 - /// - public decimal? MonthMoney - { - get; - set; - } - /// - /// 累计经济损失 - /// - public decimal? TotalMoney - { - get; - set; - } - /// - /// 本月人数 - /// - public int? MonthPersons - { - get; - set; - } - /// - /// 累计人数 - /// - public int? TotalPersons - { - get; - set; - } - } -} diff --git a/SGGL/Model/APIItem/HSSE/SeDinMonthReport4Item.cs b/SGGL/Model/APIItem/HSSE/SeDinMonthReport4Item.cs deleted file mode 100644 index 2a16a53e..00000000 --- a/SGGL/Model/APIItem/HSSE/SeDinMonthReport4Item.cs +++ /dev/null @@ -1,78 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Model -{ - /// - /// 赛鼎月报信息项 --4、本月人员投入情况 - /// - public class SeDinMonthReport4Item - { - /// - /// ID - /// - public string MonthReport4Id - { - get; - set; - } - /// - /// 月报ID - /// - public string MonthReportId - { - get; - set; - } - /// - /// 单位名称 - /// - public string UnitName - { - get; - set; - } - /// - /// 安全管理人员 - /// - public int? SafeManangerNum - { - get; - set; - } - /// - /// 其他管理人员 - /// - public int? OtherManangerNum - { - get; - set; - } - /// - /// 特种作业人员 - /// - public int? SpecialWorkerNum - { - get; - set; - } - /// - /// 一般作业人员 - /// - public int? GeneralWorkerNum - { - get; - set; - } - /// - /// 合计人数 - /// - public int? TotalNum - { - get; - set; - } - } -} diff --git a/SGGL/Model/APIItem/HSSE/SeDinMonthReport4OtherItem.cs b/SGGL/Model/APIItem/HSSE/SeDinMonthReport4OtherItem.cs deleted file mode 100644 index 7be60d2e..00000000 --- a/SGGL/Model/APIItem/HSSE/SeDinMonthReport4OtherItem.cs +++ /dev/null @@ -1,70 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Model -{ - /// - /// 赛鼎月报信息项 --4、赛鼎公司人员信息统计表 - /// - public class SeDinMonthReport4OtherItem - { - /// - /// ID - /// - public string MonthReport4OtherId - { - get; - set; - } - /// - /// 月报ID - /// - public string MonthReportId - { - get; - set; - } - /// - /// 项目现场正式员工总数 - /// - public int? FormalNum - { - get; - set; - } - /// - /// 项目现场外籍人员总数 - /// - public int? ForeignNum - { - get; - set; - } - /// - /// 项目现场外聘人员总数 - /// - public int? OutsideNum - { - get; - set; - } - /// - /// 项目现场HSE管理人员总数 - /// - public int? ManagerNum - { - get; - set; - } - /// - /// 项目现场员工总数(含外聘) - /// - public int? TotalNum - { - get; - set; - } - } -} diff --git a/SGGL/Model/APIItem/HSSE/SeDinMonthReport5Item.cs b/SGGL/Model/APIItem/HSSE/SeDinMonthReport5Item.cs deleted file mode 100644 index 122c512c..00000000 --- a/SGGL/Model/APIItem/HSSE/SeDinMonthReport5Item.cs +++ /dev/null @@ -1,135 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Model -{ - /// - /// 赛鼎月报信息项 --5、本月大型、特种设备投入情况 - /// - public class SeDinMonthReport5Item - { - /// - /// ID - /// - public string MonthReport5Id - { - get; - set; - } - /// - /// 月报ID - /// - public string MonthReportId - { - get; - set; - } - /// - /// 单位名称 - /// - public string UnitName - { - get; - set; - } - /// - /// 特种设备-汽车吊 - /// - public int? T01 - { - get; - set; - } - /// - /// 特种设备-履带吊 - /// - public int? T02 - { - get; - set; - } - /// - /// 特种设备-塔吊 - /// - public int? T03 - { - get; - set; - } - /// - /// 特种设备-门式起重机 - /// - public int? T04 - { - get; - set; - } - /// - /// 特种设备-升降机 - /// - public int? T05 - { - get; - set; - } - /// - /// 特种设备-叉车 - /// - public int? T06 - { - get; - set; - } - /// - /// 大型机具设备-挖掘机 - /// - public int? D01 - { - get; - set; - } - /// - /// 大型机具设备-装载机 - /// - public int? D02 - { - get; - set; - } - /// - /// 大型机具设备-拖板车 - /// - public int? D03 - { - get; - set; - } - /// - /// 大型机具设备-桩机 - /// - public int? D04 - { - get; - set; - } - /// - /// 特殊机具设备-吊篮 - /// - public int? S01 - { - get; - set; - } - - /// - /// 合计 - /// - public int? TotalNum - { - get; - set; - } - } -} diff --git a/SGGL/Model/APIItem/HSSE/SeDinMonthReport6Item.cs b/SGGL/Model/APIItem/HSSE/SeDinMonthReport6Item.cs deleted file mode 100644 index 0791b497..00000000 --- a/SGGL/Model/APIItem/HSSE/SeDinMonthReport6Item.cs +++ /dev/null @@ -1,182 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Model -{ - /// - /// 赛鼎月报信息项 --6、安全生产费用投入情况 - /// - public class SeDinMonthReport6Item - { - /// - /// ID - /// - public string MonthReport6Id - { - get; - set; - } - /// - /// 月报ID - /// - public string MonthReportId - { - get; - set; - } - /// - /// 安全防护投入-月 - /// - public decimal? SafetyMonth - { - get; - set; - } - /// - /// 安全防护投入-年 - /// - public decimal? SafetyYear - { - get; - set; - } - /// - /// 安全防护投入-总 - /// - public decimal? SafetyTotal - { - get; - set; - } - /// - /// 劳动保护及职业健康投入-月 - /// - public decimal? LaborMonth - { - get; - set; - } - /// - /// 劳动保护及职业健康投入-年 - /// - public decimal? LaborYear - { - get; - set; - } - /// - /// 劳动保护及职业健康投入-总 - /// - public decimal? LaborTotal - { - get; - set; - } - /// - /// 安全技术进步投入-月 - /// - public decimal? ProgressMonth - { - get; - set; - } - /// - /// 安全技术进步投入-年 - /// - public decimal? ProgressYear - { - get; - set; - } - /// - /// 安全技术进步投入-总 - /// - public decimal? ProgressTotal - { - get; - set; - } - /// - /// 安全教育培训投入-月 - /// - public decimal? EducationMonth - { - get; - set; - } - /// - /// 安全教育培训投入-年 - /// - public decimal? EducationYear - { - get; - set; - } - /// - /// 安全教育培训投入-总 - /// - public decimal? EducationTotal - { - get; - set; - } - /// - /// 合计-月 - /// - public decimal? SumMonth - { - get; - set; - } - /// - /// 合计-年 - /// - public decimal? SumYear - { - get; - set; - } - /// - /// 合计-总 - /// - public decimal? SumTotal - { - get; - set; - } - /// - /// 完成合同额-月 - /// - public decimal? ContractMonth - { - get; - set; - } - /// - /// 完成合同额-年度 - /// - public decimal? ContractYear - { - get; - set; - } - /// - /// 完成合同额-累计 - /// - public decimal? ContractTotal - { - get; - set; - } - /// - /// 工程造价占比 - /// - public decimal? ConstructionCost - { - get; - set; - } - } -} diff --git a/SGGL/Model/APIItem/HSSE/SeDinMonthReport7Item.cs b/SGGL/Model/APIItem/HSSE/SeDinMonthReport7Item.cs deleted file mode 100644 index c4473602..00000000 --- a/SGGL/Model/APIItem/HSSE/SeDinMonthReport7Item.cs +++ /dev/null @@ -1,126 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Model -{ - /// - /// 赛鼎月报信息项 --7、项目HSE培训统计 - /// - public class SeDinMonthReport7Item - { - /// - /// ID - /// - public string MonthReport7Id - { - get; - set; - } - /// - /// 月报ID - /// - public string MonthReportId - { - get; - set; - } - /// - /// 专项安全培训-月次 - /// - public int? SpecialMontNum - { - get; - set; - } - /// - /// 专项安全培训-年次 - /// - public int? SpecialYearNum - { - get; - set; - } - /// - /// 专项安全培训-项目累计次 - /// - public int? SpecialTotalNum - { - get; - set; - } - /// - /// 专项安全培训-月人 - /// - public int? SpecialMontPerson - { - get; - set; - } - /// - /// 专项安全培训-年人 - /// - public int? SpecialYearPerson - { - get; - set; - } - /// - /// 专项安全培训-项目累计人 - /// - public int? SpecialTotalPerson - { - get; - set; - } - /// - /// 员工入场安全培训-月次 - /// - public int? EmployeeMontNum - { - get; - set; - } - /// - /// 员工入场安全培训-年次 - /// - public int? EmployeeYearNum - { - get; - set; - } - /// - /// 员工入场安全培训-项目累计次 - /// - public int? EmployeeTotalNum - { - get; - set; - } - /// - /// 员工入场安全培训-月人 - /// - public int? EmployeeMontPerson - { - get; - set; - } - /// - /// 员工入场安全培训-年人 - /// - public int? EmployeeYearPerson - { - get; - set; - } - /// - /// 员工入场安全培训-项目累计人 - /// - public int? EmployeeTotalPerson - { - get; - set; - } - } -} diff --git a/SGGL/Model/APIItem/HSSE/SeDinMonthReport8Item.cs b/SGGL/Model/APIItem/HSSE/SeDinMonthReport8Item.cs deleted file mode 100644 index 9296b701..00000000 --- a/SGGL/Model/APIItem/HSSE/SeDinMonthReport8Item.cs +++ /dev/null @@ -1,110 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Model -{ - /// - /// 赛鼎月报信息项 --8、项目HSE会议统计 - /// - public class SeDinMonthReport8Item - { - /// - /// ID - /// - public string MonthReport8Id - { - get; - set; - } - /// - /// 月报ID - /// - public string MonthReportId - { - get; - set; - } - /// - /// 周例会-月次 - /// - public int? WeekMontNum - { - get; - set; - } - /// - /// 周例会-项目累计次 - /// - public int? WeekTotalNum - { - get; - set; - } - /// - /// 周例会-月人 - /// - public int? WeekMontPerson - { - get; - set; - } - /// - /// 月例会-月次 - /// - public int? MonthMontNum - { - get; - set; - } - /// - /// 月例会-项目累计次 - /// - public int? MonthTotalNum - { - get; - set; - } - /// - /// 月例会-月人 - /// - public int? MonthMontPerson - { - get; - set; - } - /// - /// 专题例会-月次 - /// - public int? SpecialMontNum - { - get; - set; - } - /// - /// 专题例会-项目累计次 - /// - public int? SpecialTotalNum - { - get; - set; - } - /// - /// 专题例会-月人 - /// - public int? SpecialMontPerson - { - get; - set; - } - /// - /// 班组会议-明细表 - /// - public List SeDinMonthReport8ItemItem - { - get; - set; - } - } -} diff --git a/SGGL/Model/APIItem/HSSE/SeDinMonthReport8ItemItem.cs b/SGGL/Model/APIItem/HSSE/SeDinMonthReport8ItemItem.cs deleted file mode 100644 index dae929bf..00000000 --- a/SGGL/Model/APIItem/HSSE/SeDinMonthReport8ItemItem.cs +++ /dev/null @@ -1,62 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Model -{ - /// - /// 赛鼎月报信息项 --8、项目HSE会议统计(班前会) - /// - public class SeDinMonthReport8ItemItem - { - /// - /// ID - /// - public string MonthReport8ItemId - { - get; - set; - } - /// - /// 月报ID - /// - public string MonthReportId - { - get; - set; - } - /// - /// 单位名称 - /// - public string UnitName - { - get; - set; - } - /// - /// 班组名称 - /// - public string TeamName - { - get; - set; - } - /// - /// 班前会-月次 - /// - public int? ClassNum - { - get; - set; - } - /// - /// 班前会-人次 - /// - public int? ClassPersonNum - { - get; - set; - } - } -} diff --git a/SGGL/Model/APIItem/HSSE/SeDinMonthReport9Item.cs b/SGGL/Model/APIItem/HSSE/SeDinMonthReport9Item.cs deleted file mode 100644 index c057cc44..00000000 --- a/SGGL/Model/APIItem/HSSE/SeDinMonthReport9Item.cs +++ /dev/null @@ -1,150 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Model -{ - /// - /// 赛鼎月报信息项 --9、项目HSE检查统计 - /// - public class SeDinMonthReport9Item - { - /// - /// ID - /// - public string MonthReport9Id - { - get; - set; - } - /// - /// 月报ID - /// - public string MonthReportId - { - get; - set; - } - /// - /// 日常巡检-月次 - /// - public int? DailyMonth - { - get; - set; - } - /// - /// 日常巡检-年次 - /// - public int? DailyYear - { - get; - set; - } - /// - /// 日常巡检-总累计 - /// - public int? DailyTotal - { - get; - set; - } - /// - /// 周联合检查-月次 - /// - public int? WeekMonth - { - get; - set; - } - /// - /// 周联合检查-年次 - /// - public int? WeekYear - { - get; - set; - } - /// - /// 周联合检查-总累计 - /// - public int? WeekTotal - { - get; - set; - } - /// - /// 专项检查-月次 - /// - public int? SpecialMonth - { - get; - set; - } - /// - /// 专项检查-年次 - /// - public int? SpecialYear - { - get; - set; - } - /// - /// 专项检查-总累计 - /// - public int? SpecialTotal - { - get; - set; - } - /// - /// 月综合HSE检查-月次 - /// - public int? MonthlyMonth - { - get; - set; - } - /// - /// 月综合HSE检查-年次 - /// - public int? MonthlyYear - { - get; - set; - } - /// - /// 月综合HSE检查-总累计 - /// - public int? MonthlyTotal - { - get; - set; - } - /// - /// 隐患整改单 - /// - public List SeDinMonthReport9ItemRectification - { - get; - set; - } - /// - /// 专项检查 - /// - public List SeDinMonthReport9ItemSpecial - { - get; - set; - } - /// - /// 停工令 - /// - public List SeDinMonthReport9ItemStoppage - { - get; - set; - } - } -} diff --git a/SGGL/Model/APIItem/HSSE/SeDinMonthReport9ItemRectification.cs b/SGGL/Model/APIItem/HSSE/SeDinMonthReport9ItemRectification.cs deleted file mode 100644 index 8521cba3..00000000 --- a/SGGL/Model/APIItem/HSSE/SeDinMonthReport9ItemRectification.cs +++ /dev/null @@ -1,134 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Model -{ - /// - /// 赛鼎月报信息项 --9、项目HSE检查统计-隐患整改单 - /// - public class SeDinMonthReport9ItemRectification - { - /// - /// ID - /// - public string MonthReport9ItemId - { - get; - set; - } - /// - /// 月报ID - /// - public string MonthReportId - { - get; - set; - } - /// - /// 单位名称 - /// - public string UnitName - { - get; - set; - } - /// - /// 下发数量(本月) - /// - public int? IssuedMonth - { - get; - set; - } - /// - /// 下发数量(本月)较大 - /// - public int? IssuedMonthLarge - { - get; - set; - } - /// - /// 下发数量(本月)重大 - /// - public int? IssuedMonthSerious - { - get; - set; - } - /// - /// 整改完成数量(本月) - /// - public int? RectificationMoth - { - get; - set; - } - /// - /// 整改完成数量(本月)较大 - /// - public int? RectificationMothLarge - { - get; - set; - } - /// - /// 整改完成数量(本月)重大 - /// - public int? RectificationMothSerious - { - get; - set; - } - /// - /// 下发数量(累计) - /// - public int? IssuedTotal - { - get; - set; - } - /// - /// 下发数量(累计)较大 - /// - public int? IssuedTotalLarge - { - get; - set; - } - /// - /// 下发数量(累计)重大 - /// - public int? IssuedTotalSerious - { - get; - set; - } - /// - /// 整改完成数量(累计) - /// - public int? RectificationTotal - { - get; - set; - } - /// - /// 整改完成数量(累计)较大 - /// - public int? RectificationTotalLarge - { - get; - set; - } - /// - /// 整改完成数量(累计)重大 - /// - public int? RectificationTotalSerious - { - get; - set; - } - } -} diff --git a/SGGL/Model/APIItem/HSSE/SeDinMonthReport9ItemSpecial.cs b/SGGL/Model/APIItem/HSSE/SeDinMonthReport9ItemSpecial.cs deleted file mode 100644 index 22820a76..00000000 --- a/SGGL/Model/APIItem/HSSE/SeDinMonthReport9ItemSpecial.cs +++ /dev/null @@ -1,62 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Model -{ - /// - /// 赛鼎月报信息项 --9、项目HSE检查统计-专项检查 - /// - public class SeDinMonthReport9ItemSpecial - { - /// - /// ID - /// - public string MonthReport9ItemId - { - get; - set; - } - /// - /// 月报ID - /// - public string MonthReportId - { - get; - set; - } - /// - /// 类型 - /// - public string TypeName - { - get; - set; - } - /// - /// 检查次数(本月) - /// - public int? CheckMonth - { - get; - set; - } - /// - /// 次数(本年度累计) - /// - public int? CheckYear - { - get; - set; - } - /// - /// 次数(项目总累计) - /// - public int? CheckTotal - { - get; - set; - } - } -} diff --git a/SGGL/Model/APIItem/HSSE/SeDinMonthReport9ItemStoppage.cs b/SGGL/Model/APIItem/HSSE/SeDinMonthReport9ItemStoppage.cs deleted file mode 100644 index 621abe29..00000000 --- a/SGGL/Model/APIItem/HSSE/SeDinMonthReport9ItemStoppage.cs +++ /dev/null @@ -1,70 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Model -{ - /// - /// 赛鼎月报信息项 --9、项目HSE检查统计-停工令 - /// - public class SeDinMonthReport9ItemStoppage - { - /// - /// ID - /// - public string MonthReport9ItemId - { - get; - set; - } - /// - /// 月报ID - /// - public string MonthReportId - { - get; - set; - } - /// - /// 单位名称 - /// - public string UnitName - { - get; - set; - } - /// - /// 下发数量(本月) - /// - public int? IssuedMonth - { - get; - set; - } - /// - /// 停工天数(本月) - /// - public int? StoppageMonth - { - get; - set; - } - /// - /// 下发数量(累计) - /// - public int? IssuedTotal - { - get; - set; - } - /// - /// 停工天数(累计) - /// - public int? StoppageTotal - { - get; - set; - } - } -} diff --git a/SGGL/Model/APIItem/HSSE/SeDinMonthReportItem.cs b/SGGL/Model/APIItem/HSSE/SeDinMonthReportItem.cs deleted file mode 100644 index 2b9c7f7c..00000000 --- a/SGGL/Model/APIItem/HSSE/SeDinMonthReportItem.cs +++ /dev/null @@ -1,224 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Model -{ - /// - /// 赛鼎月报信息项 - /// - public class SeDinMonthReportItem - { - /// - /// ID - /// - public string MonthReportId - { - get; - set; - } - /// - /// 项目ID - /// - public string ProjectId - { - get; - set; - } - /// - /// 月份 - /// - public string ReporMonth - { - get; - set; - } - /// - /// 截止日期 - /// - public string DueDate - { - get; - set; - } - /// - /// 开始日期 - /// - public string StartDate - { - get; - set; - } - /// - /// 结束日期 - /// - public string EndDate - { - get; - set; - } - /// - /// 编制人ID - /// - public string CompileManId - { - get; - set; - } - /// - /// 编制人姓名 - /// - public string CompileManName - { - get; - set; - } - /// - /// 审核人ID - /// - public string AuditManId - { - get; - set; - } - /// - /// 审核人姓名 - /// - public string AuditManName - { - get; - set; - } - /// - /// 批准人ID - /// - public string ApprovalManId - { - get; - set; - } - /// - /// 批准人姓名 - /// - public string ApprovalManName - { - get; - set; - } - - /// - /// 本月HSE活动综述 - /// - public string ThisSummary - { - get; - set; - } - /// - /// 下月HSE工作计划 - /// - public string NextPlan - { - get; - set; - } - /// - /// 状态(0-待提交;1-已提交) - /// - public string States - { - get; - set; - } - - /// - /// 办理人 - /// - public string OperaterId - { - get; - set; - } - /// - /// 下一步办理人 - /// - public string NextManId - { - get; - set; - } - /// - /// 下一步办理人 - /// - public string NextManName - { - get; - set; - } - /// - /// 提交时间 - /// - public DateTime? CommitTime - { - get; - set; - } - /// - /// 办理步骤 - /// - public string StepName - { - get; - set; - } - /// - /// 是否同意 - /// - public bool isAgree - { - get; - set; - } - /// - /// 意见 - /// - public string Opinion - { - get; - set; - } - /// - /// 事故综述 - /// - public string AccidentsSummary - { - get; - set; - } - /// - /// 3、项目HSE事故、事件统计 - /// - public List SeDinMonthReport3Item - { - get; - set; - } - /// - /// 4、本月人员投入情况 - /// - public List SeDinMonthReport4Item - { - get; - set; - } - /// - /// 5、本月大型、特种设备投入情况 - /// - public List SeDinMonthReport5Item - { - get; - set; - } - } -} diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index d021a0af..a9a8b595 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -2132,63 +2132,6 @@ namespace Model partial void InsertSecuritySystem_SafetyOrganization(SecuritySystem_SafetyOrganization instance); partial void UpdateSecuritySystem_SafetyOrganization(SecuritySystem_SafetyOrganization instance); partial void DeleteSecuritySystem_SafetyOrganization(SecuritySystem_SafetyOrganization instance); - partial void InsertSeDin_MonthReport(SeDin_MonthReport instance); - partial void UpdateSeDin_MonthReport(SeDin_MonthReport instance); - partial void DeleteSeDin_MonthReport(SeDin_MonthReport instance); - partial void InsertSeDin_MonthReport1(SeDin_MonthReport1 instance); - partial void UpdateSeDin_MonthReport1(SeDin_MonthReport1 instance); - partial void DeleteSeDin_MonthReport1(SeDin_MonthReport1 instance); - partial void InsertSeDin_MonthReport10(SeDin_MonthReport10 instance); - partial void UpdateSeDin_MonthReport10(SeDin_MonthReport10 instance); - partial void DeleteSeDin_MonthReport10(SeDin_MonthReport10 instance); - partial void InsertSeDin_MonthReport11(SeDin_MonthReport11 instance); - partial void UpdateSeDin_MonthReport11(SeDin_MonthReport11 instance); - partial void DeleteSeDin_MonthReport11(SeDin_MonthReport11 instance); - partial void InsertSeDin_MonthReport12(SeDin_MonthReport12 instance); - partial void UpdateSeDin_MonthReport12(SeDin_MonthReport12 instance); - partial void DeleteSeDin_MonthReport12(SeDin_MonthReport12 instance); - partial void InsertSeDin_MonthReport2(SeDin_MonthReport2 instance); - partial void UpdateSeDin_MonthReport2(SeDin_MonthReport2 instance); - partial void DeleteSeDin_MonthReport2(SeDin_MonthReport2 instance); - partial void InsertSeDin_MonthReport3(SeDin_MonthReport3 instance); - partial void UpdateSeDin_MonthReport3(SeDin_MonthReport3 instance); - partial void DeleteSeDin_MonthReport3(SeDin_MonthReport3 instance); - partial void InsertSeDin_MonthReport4(SeDin_MonthReport4 instance); - partial void UpdateSeDin_MonthReport4(SeDin_MonthReport4 instance); - partial void DeleteSeDin_MonthReport4(SeDin_MonthReport4 instance); - partial void InsertSeDin_MonthReport4Other(SeDin_MonthReport4Other instance); - partial void UpdateSeDin_MonthReport4Other(SeDin_MonthReport4Other instance); - partial void DeleteSeDin_MonthReport4Other(SeDin_MonthReport4Other instance); - partial void InsertSeDin_MonthReport5(SeDin_MonthReport5 instance); - partial void UpdateSeDin_MonthReport5(SeDin_MonthReport5 instance); - partial void DeleteSeDin_MonthReport5(SeDin_MonthReport5 instance); - partial void InsertSeDin_MonthReport6(SeDin_MonthReport6 instance); - partial void UpdateSeDin_MonthReport6(SeDin_MonthReport6 instance); - partial void DeleteSeDin_MonthReport6(SeDin_MonthReport6 instance); - partial void InsertSeDin_MonthReport7(SeDin_MonthReport7 instance); - partial void UpdateSeDin_MonthReport7(SeDin_MonthReport7 instance); - partial void DeleteSeDin_MonthReport7(SeDin_MonthReport7 instance); - partial void InsertSeDin_MonthReport8(SeDin_MonthReport8 instance); - partial void UpdateSeDin_MonthReport8(SeDin_MonthReport8 instance); - partial void DeleteSeDin_MonthReport8(SeDin_MonthReport8 instance); - partial void InsertSeDin_MonthReport8Item(SeDin_MonthReport8Item instance); - partial void UpdateSeDin_MonthReport8Item(SeDin_MonthReport8Item instance); - partial void DeleteSeDin_MonthReport8Item(SeDin_MonthReport8Item instance); - partial void InsertSeDin_MonthReport9(SeDin_MonthReport9 instance); - partial void UpdateSeDin_MonthReport9(SeDin_MonthReport9 instance); - partial void DeleteSeDin_MonthReport9(SeDin_MonthReport9 instance); - partial void InsertSeDin_MonthReport9Item_Rectification(SeDin_MonthReport9Item_Rectification instance); - partial void UpdateSeDin_MonthReport9Item_Rectification(SeDin_MonthReport9Item_Rectification instance); - partial void DeleteSeDin_MonthReport9Item_Rectification(SeDin_MonthReport9Item_Rectification instance); - partial void InsertSeDin_MonthReport9Item_Special(SeDin_MonthReport9Item_Special instance); - partial void UpdateSeDin_MonthReport9Item_Special(SeDin_MonthReport9Item_Special instance); - partial void DeleteSeDin_MonthReport9Item_Special(SeDin_MonthReport9Item_Special instance); - partial void InsertSeDin_MonthReport9Item_Stoppage(SeDin_MonthReport9Item_Stoppage instance); - partial void UpdateSeDin_MonthReport9Item_Stoppage(SeDin_MonthReport9Item_Stoppage instance); - partial void DeleteSeDin_MonthReport9Item_Stoppage(SeDin_MonthReport9Item_Stoppage instance); - partial void InsertSeDin_MonthReportFlowOperate(SeDin_MonthReportFlowOperate instance); - partial void UpdateSeDin_MonthReportFlowOperate(SeDin_MonthReportFlowOperate instance); - partial void DeleteSeDin_MonthReportFlowOperate(SeDin_MonthReportFlowOperate instance); partial void InsertSitePerson_AskForLeave(SitePerson_AskForLeave instance); partial void UpdateSitePerson_AskForLeave(SitePerson_AskForLeave instance); partial void DeleteSitePerson_AskForLeave(SitePerson_AskForLeave instance); @@ -2414,21 +2357,12 @@ namespace Model partial void InsertSys_Menu(Sys_Menu instance); partial void UpdateSys_Menu(Sys_Menu instance); partial void DeleteSys_Menu(Sys_Menu instance); - partial void InsertSys_Menu_0501(Sys_Menu_0501 instance); - partial void UpdateSys_Menu_0501(Sys_Menu_0501 instance); - partial void DeleteSys_Menu_0501(Sys_Menu_0501 instance); - partial void InsertSys_Menu_0501t(Sys_Menu_0501t instance); - partial void UpdateSys_Menu_0501t(Sys_Menu_0501t instance); - partial void DeleteSys_Menu_0501t(Sys_Menu_0501t instance); partial void InsertSys_MenuFlowOperate(Sys_MenuFlowOperate instance); partial void UpdateSys_MenuFlowOperate(Sys_MenuFlowOperate instance); partial void DeleteSys_MenuFlowOperate(Sys_MenuFlowOperate instance); partial void InsertSys_MenuTemp(Sys_MenuTemp instance); partial void UpdateSys_MenuTemp(Sys_MenuTemp instance); partial void DeleteSys_MenuTemp(Sys_MenuTemp instance); - partial void InsertSys_MenuTemp1(Sys_MenuTemp1 instance); - partial void UpdateSys_MenuTemp1(Sys_MenuTemp1 instance); - partial void DeleteSys_MenuTemp1(Sys_MenuTemp1 instance); partial void InsertSys_OutputValue(Sys_OutputValue instance); partial void UpdateSys_OutputValue(Sys_OutputValue instance); partial void DeleteSys_OutputValue(Sys_OutputValue instance); @@ -8417,158 +8351,6 @@ namespace Model } } - public System.Data.Linq.Table SeDin_MonthReport - { - get - { - return this.GetTable(); - } - } - - public System.Data.Linq.Table SeDin_MonthReport1 - { - get - { - return this.GetTable(); - } - } - - public System.Data.Linq.Table SeDin_MonthReport10 - { - get - { - return this.GetTable(); - } - } - - public System.Data.Linq.Table SeDin_MonthReport11 - { - get - { - return this.GetTable(); - } - } - - public System.Data.Linq.Table SeDin_MonthReport12 - { - get - { - return this.GetTable(); - } - } - - public System.Data.Linq.Table SeDin_MonthReport2 - { - get - { - return this.GetTable(); - } - } - - public System.Data.Linq.Table SeDin_MonthReport3 - { - get - { - return this.GetTable(); - } - } - - public System.Data.Linq.Table SeDin_MonthReport4 - { - get - { - return this.GetTable(); - } - } - - public System.Data.Linq.Table SeDin_MonthReport4Other - { - get - { - return this.GetTable(); - } - } - - public System.Data.Linq.Table SeDin_MonthReport5 - { - get - { - return this.GetTable(); - } - } - - public System.Data.Linq.Table SeDin_MonthReport6 - { - get - { - return this.GetTable(); - } - } - - public System.Data.Linq.Table SeDin_MonthReport7 - { - get - { - return this.GetTable(); - } - } - - public System.Data.Linq.Table SeDin_MonthReport8 - { - get - { - return this.GetTable(); - } - } - - public System.Data.Linq.Table SeDin_MonthReport8Item - { - get - { - return this.GetTable(); - } - } - - public System.Data.Linq.Table SeDin_MonthReport9 - { - get - { - return this.GetTable(); - } - } - - public System.Data.Linq.Table SeDin_MonthReport9Item_Rectification - { - get - { - return this.GetTable(); - } - } - - public System.Data.Linq.Table SeDin_MonthReport9Item_Special - { - get - { - return this.GetTable(); - } - } - - public System.Data.Linq.Table SeDin_MonthReport9Item_Stoppage - { - get - { - return this.GetTable(); - } - } - - public System.Data.Linq.Table SeDin_MonthReportFlowOperate - { - get - { - return this.GetTable(); - } - } - public System.Data.Linq.Table SitePerson_AskForLeave { get @@ -9177,22 +8959,6 @@ namespace Model } } - public System.Data.Linq.Table Sys_Menu_0501 - { - get - { - return this.GetTable(); - } - } - - public System.Data.Linq.Table Sys_Menu_0501t - { - get - { - return this.GetTable(); - } - } - public System.Data.Linq.Table Sys_MenuFlowOperate { get @@ -9209,14 +8975,6 @@ namespace Model } } - public System.Data.Linq.Table Sys_MenuTemp1 - { - get - { - return this.GetTable(); - } - } - public System.Data.Linq.Table Sys_OutputValue { get @@ -9737,14 +9495,6 @@ namespace Model } } - public System.Data.Linq.Table V_SeDin_MonthReport3 - { - get - { - return this.GetTable(); - } - } - public System.Data.Linq.Table V_shiti { get @@ -29545,8 +29295,6 @@ namespace Model private EntitySet _SecuritySystem_SafetyOrganization; - private EntitySet _SeDin_MonthReport; - private EntitySet _SitePerson_Checking; private EntitySet _SitePerson_DayReport_Bak; @@ -29973,7 +29721,6 @@ namespace Model this._SafetyData_SafetyDataItem = new EntitySet(new Action(this.attach_SafetyData_SafetyDataItem), new Action(this.detach_SafetyData_SafetyDataItem)); this._SafetyData_SafetyDataPlan = new EntitySet(new Action(this.attach_SafetyData_SafetyDataPlan), new Action(this.detach_SafetyData_SafetyDataPlan)); this._SecuritySystem_SafetyOrganization = new EntitySet(new Action(this.attach_SecuritySystem_SafetyOrganization), new Action(this.detach_SecuritySystem_SafetyOrganization)); - this._SeDin_MonthReport = new EntitySet(new Action(this.attach_SeDin_MonthReport), new Action(this.detach_SeDin_MonthReport)); this._SitePerson_Checking = new EntitySet(new Action(this.attach_SitePerson_Checking), new Action(this.detach_SitePerson_Checking)); this._SitePerson_DayReport_Bak = new EntitySet(new Action(this.attach_SitePerson_DayReport_Bak), new Action(this.detach_SitePerson_DayReport_Bak)); this._SitePerson_DayReport = new EntitySet(new Action(this.attach_SitePerson_DayReport), new Action(this.detach_SitePerson_DayReport)); @@ -34145,19 +33892,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport_Base_Project", Storage="_SeDin_MonthReport", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] - public EntitySet SeDin_MonthReport - { - get - { - return this._SeDin_MonthReport; - } - set - { - this._SeDin_MonthReport.Assign(value); - } - } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SitePerson_Checking_Base_Project", Storage="_SitePerson_Checking", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] public EntitySet SitePerson_Checking { @@ -37822,18 +37556,6 @@ namespace Model entity.Base_Project = null; } - private void attach_SeDin_MonthReport(SeDin_MonthReport entity) - { - this.SendPropertyChanging(); - entity.Base_Project = this; - } - - private void detach_SeDin_MonthReport(SeDin_MonthReport entity) - { - this.SendPropertyChanging(); - entity.Base_Project = null; - } - private void attach_SitePerson_Checking(SitePerson_Checking entity) { this.SendPropertyChanging(); @@ -337595,7866 +337317,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.SeDin_MonthReport")] - public partial class SeDin_MonthReport : INotifyPropertyChanging, INotifyPropertyChanged - { - - private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - - private string _MonthReportId; - - private string _ProjectId; - - private System.Nullable _DueDate; - - private System.Nullable _StartDate; - - private System.Nullable _EndDate; - - private System.Nullable _ReporMonth; - - private string _CompileManId; - - private string _AuditManId; - - private string _ApprovalManId; - - private string _ThisSummary; - - private string _NextPlan; - - private string _States; - - private string _AccidentsSummary; - - private System.Nullable _CommitTime; - - private string _NextManId; - - private EntityRef _Base_Project; - - private EntityRef _Sys_User; - - private EntityRef _AuditMan; - - private EntityRef _ApprovalMan; - - private EntitySet _SeDin_MonthReport1; - - private EntitySet _SeDin_MonthReport10; - - private EntitySet _SeDin_MonthReport11; - - private EntitySet _SeDin_MonthReport12; - - private EntitySet _SeDin_MonthReport2; - - private EntitySet _SeDin_MonthReport3; - - private EntitySet _SeDin_MonthReport4; - - private EntitySet _SeDin_MonthReport4Other; - - private EntitySet _SeDin_MonthReport5; - - private EntitySet _SeDin_MonthReport6; - - private EntitySet _SeDin_MonthReport7; - - private EntitySet _SeDin_MonthReport8; - - private EntitySet _SeDin_MonthReport8Item; - - private EntitySet _SeDin_MonthReport9; - - private EntitySet _SeDin_MonthReport9Item_Rectification; - - private EntitySet _SeDin_MonthReport9Item_Special; - - private EntitySet _SeDin_MonthReport9Item_Stoppage; - - #region 可扩展性方法定义 - partial void OnLoaded(); - partial void OnValidate(System.Data.Linq.ChangeAction action); - partial void OnCreated(); - partial void OnMonthReportIdChanging(string value); - partial void OnMonthReportIdChanged(); - partial void OnProjectIdChanging(string value); - partial void OnProjectIdChanged(); - partial void OnDueDateChanging(System.Nullable value); - partial void OnDueDateChanged(); - partial void OnStartDateChanging(System.Nullable value); - partial void OnStartDateChanged(); - partial void OnEndDateChanging(System.Nullable value); - partial void OnEndDateChanged(); - partial void OnReporMonthChanging(System.Nullable value); - partial void OnReporMonthChanged(); - partial void OnCompileManIdChanging(string value); - partial void OnCompileManIdChanged(); - partial void OnAuditManIdChanging(string value); - partial void OnAuditManIdChanged(); - partial void OnApprovalManIdChanging(string value); - partial void OnApprovalManIdChanged(); - partial void OnThisSummaryChanging(string value); - partial void OnThisSummaryChanged(); - partial void OnNextPlanChanging(string value); - partial void OnNextPlanChanged(); - partial void OnStatesChanging(string value); - partial void OnStatesChanged(); - partial void OnAccidentsSummaryChanging(string value); - partial void OnAccidentsSummaryChanged(); - partial void OnCommitTimeChanging(System.Nullable value); - partial void OnCommitTimeChanged(); - partial void OnNextManIdChanging(string value); - partial void OnNextManIdChanged(); - #endregion - - public SeDin_MonthReport() - { - this._Base_Project = default(EntityRef); - this._Sys_User = default(EntityRef); - this._AuditMan = default(EntityRef); - this._ApprovalMan = default(EntityRef); - this._SeDin_MonthReport1 = new EntitySet(new Action(this.attach_SeDin_MonthReport1), new Action(this.detach_SeDin_MonthReport1)); - this._SeDin_MonthReport10 = new EntitySet(new Action(this.attach_SeDin_MonthReport10), new Action(this.detach_SeDin_MonthReport10)); - this._SeDin_MonthReport11 = new EntitySet(new Action(this.attach_SeDin_MonthReport11), new Action(this.detach_SeDin_MonthReport11)); - this._SeDin_MonthReport12 = new EntitySet(new Action(this.attach_SeDin_MonthReport12), new Action(this.detach_SeDin_MonthReport12)); - this._SeDin_MonthReport2 = new EntitySet(new Action(this.attach_SeDin_MonthReport2), new Action(this.detach_SeDin_MonthReport2)); - this._SeDin_MonthReport3 = new EntitySet(new Action(this.attach_SeDin_MonthReport3), new Action(this.detach_SeDin_MonthReport3)); - this._SeDin_MonthReport4 = new EntitySet(new Action(this.attach_SeDin_MonthReport4), new Action(this.detach_SeDin_MonthReport4)); - this._SeDin_MonthReport4Other = new EntitySet(new Action(this.attach_SeDin_MonthReport4Other), new Action(this.detach_SeDin_MonthReport4Other)); - this._SeDin_MonthReport5 = new EntitySet(new Action(this.attach_SeDin_MonthReport5), new Action(this.detach_SeDin_MonthReport5)); - this._SeDin_MonthReport6 = new EntitySet(new Action(this.attach_SeDin_MonthReport6), new Action(this.detach_SeDin_MonthReport6)); - this._SeDin_MonthReport7 = new EntitySet(new Action(this.attach_SeDin_MonthReport7), new Action(this.detach_SeDin_MonthReport7)); - this._SeDin_MonthReport8 = new EntitySet(new Action(this.attach_SeDin_MonthReport8), new Action(this.detach_SeDin_MonthReport8)); - this._SeDin_MonthReport8Item = new EntitySet(new Action(this.attach_SeDin_MonthReport8Item), new Action(this.detach_SeDin_MonthReport8Item)); - this._SeDin_MonthReport9 = new EntitySet(new Action(this.attach_SeDin_MonthReport9), new Action(this.detach_SeDin_MonthReport9)); - this._SeDin_MonthReport9Item_Rectification = new EntitySet(new Action(this.attach_SeDin_MonthReport9Item_Rectification), new Action(this.detach_SeDin_MonthReport9Item_Rectification)); - this._SeDin_MonthReport9Item_Special = new EntitySet(new Action(this.attach_SeDin_MonthReport9Item_Special), new Action(this.detach_SeDin_MonthReport9Item_Special)); - this._SeDin_MonthReport9Item_Stoppage = new EntitySet(new Action(this.attach_SeDin_MonthReport9Item_Stoppage), new Action(this.detach_SeDin_MonthReport9Item_Stoppage)); - OnCreated(); - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - 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="_ProjectId", DbType="NVarChar(50)")] - public string ProjectId - { - get - { - return this._ProjectId; - } - set - { - if ((this._ProjectId != value)) - { - if (this._Base_Project.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } - this.OnProjectIdChanging(value); - this.SendPropertyChanging(); - this._ProjectId = value; - this.SendPropertyChanged("ProjectId"); - this.OnProjectIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DueDate", DbType="DateTime")] - public System.Nullable DueDate - { - get - { - return this._DueDate; - } - set - { - if ((this._DueDate != value)) - { - this.OnDueDateChanging(value); - this.SendPropertyChanging(); - this._DueDate = value; - this.SendPropertyChanged("DueDate"); - this.OnDueDateChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StartDate", DbType="DateTime")] - public System.Nullable StartDate - { - get - { - return this._StartDate; - } - set - { - if ((this._StartDate != value)) - { - this.OnStartDateChanging(value); - this.SendPropertyChanging(); - this._StartDate = value; - this.SendPropertyChanged("StartDate"); - this.OnStartDateChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EndDate", DbType="DateTime")] - public System.Nullable EndDate - { - get - { - return this._EndDate; - } - set - { - if ((this._EndDate != value)) - { - this.OnEndDateChanging(value); - this.SendPropertyChanging(); - this._EndDate = value; - this.SendPropertyChanged("EndDate"); - this.OnEndDateChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReporMonth", DbType="DateTime")] - public System.Nullable ReporMonth - { - get - { - return this._ReporMonth; - } - set - { - if ((this._ReporMonth != value)) - { - this.OnReporMonthChanging(value); - this.SendPropertyChanging(); - this._ReporMonth = value; - this.SendPropertyChanged("ReporMonth"); - this.OnReporMonthChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileManId", DbType="NVarChar(50)")] - public string CompileManId - { - get - { - return this._CompileManId; - } - set - { - if ((this._CompileManId != value)) - { - if (this._Sys_User.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } - this.OnCompileManIdChanging(value); - this.SendPropertyChanging(); - this._CompileManId = value; - this.SendPropertyChanged("CompileManId"); - this.OnCompileManIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AuditManId", DbType="NVarChar(50)")] - public string AuditManId - { - get - { - return this._AuditManId; - } - set - { - if ((this._AuditManId != value)) - { - if (this._AuditMan.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } - this.OnAuditManIdChanging(value); - this.SendPropertyChanging(); - this._AuditManId = value; - this.SendPropertyChanged("AuditManId"); - this.OnAuditManIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApprovalManId", DbType="NVarChar(50)")] - public string ApprovalManId - { - get - { - return this._ApprovalManId; - } - set - { - if ((this._ApprovalManId != value)) - { - if (this._ApprovalMan.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } - this.OnApprovalManIdChanging(value); - this.SendPropertyChanging(); - this._ApprovalManId = value; - this.SendPropertyChanged("ApprovalManId"); - this.OnApprovalManIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ThisSummary", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] - public string ThisSummary - { - get - { - return this._ThisSummary; - } - set - { - if ((this._ThisSummary != value)) - { - this.OnThisSummaryChanging(value); - this.SendPropertyChanging(); - this._ThisSummary = value; - this.SendPropertyChanged("ThisSummary"); - this.OnThisSummaryChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NextPlan", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] - public string NextPlan - { - get - { - return this._NextPlan; - } - set - { - if ((this._NextPlan != value)) - { - this.OnNextPlanChanging(value); - this.SendPropertyChanging(); - this._NextPlan = value; - this.SendPropertyChanged("NextPlan"); - this.OnNextPlanChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_States", DbType="VarChar(2)")] - public string States - { - get - { - return this._States; - } - set - { - if ((this._States != value)) - { - this.OnStatesChanging(value); - this.SendPropertyChanging(); - this._States = value; - this.SendPropertyChanged("States"); - this.OnStatesChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccidentsSummary", DbType="NVarChar(2000)")] - public string AccidentsSummary - { - get - { - return this._AccidentsSummary; - } - set - { - if ((this._AccidentsSummary != value)) - { - this.OnAccidentsSummaryChanging(value); - this.SendPropertyChanging(); - this._AccidentsSummary = value; - this.SendPropertyChanged("AccidentsSummary"); - this.OnAccidentsSummaryChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CommitTime", DbType="DateTime")] - public System.Nullable CommitTime - { - get - { - return this._CommitTime; - } - set - { - if ((this._CommitTime != value)) - { - this.OnCommitTimeChanging(value); - this.SendPropertyChanging(); - this._CommitTime = value; - this.SendPropertyChanged("CommitTime"); - this.OnCommitTimeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NextManId", DbType="NVarChar(50)")] - public string NextManId - { - get - { - return this._NextManId; - } - set - { - if ((this._NextManId != value)) - { - this.OnNextManIdChanging(value); - this.SendPropertyChanging(); - this._NextManId = value; - this.SendPropertyChanged("NextManId"); - this.OnNextManIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] - public Base_Project Base_Project - { - get - { - return this._Base_Project.Entity; - } - set - { - Base_Project previousValue = this._Base_Project.Entity; - if (((previousValue != value) - || (this._Base_Project.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._Base_Project.Entity = null; - previousValue.SeDin_MonthReport.Remove(this); - } - this._Base_Project.Entity = value; - if ((value != null)) - { - value.SeDin_MonthReport.Add(this); - this._ProjectId = value.ProjectId; - } - else - { - this._ProjectId = default(string); - } - this.SendPropertyChanged("Base_Project"); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport_Sys_User", Storage="_Sys_User", ThisKey="CompileManId", OtherKey="UserId", IsForeignKey=true)] - public Sys_User Sys_User - { - get - { - return this._Sys_User.Entity; - } - set - { - Sys_User previousValue = this._Sys_User.Entity; - if (((previousValue != value) - || (this._Sys_User.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._Sys_User.Entity = null; - previousValue.SeDin_MonthReport.Remove(this); - } - this._Sys_User.Entity = value; - if ((value != null)) - { - value.SeDin_MonthReport.Add(this); - this._CompileManId = value.UserId; - } - else - { - this._CompileManId = default(string); - } - this.SendPropertyChanged("Sys_User"); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport_Sys_User1", Storage="_AuditMan", ThisKey="AuditManId", OtherKey="UserId", IsForeignKey=true)] - public Sys_User AuditMan - { - get - { - return this._AuditMan.Entity; - } - set - { - Sys_User previousValue = this._AuditMan.Entity; - if (((previousValue != value) - || (this._AuditMan.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._AuditMan.Entity = null; - previousValue.SeDin_MonthReport_Sys_User1.Remove(this); - } - this._AuditMan.Entity = value; - if ((value != null)) - { - value.SeDin_MonthReport_Sys_User1.Add(this); - this._AuditManId = value.UserId; - } - else - { - this._AuditManId = default(string); - } - this.SendPropertyChanged("AuditMan"); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport_Sys_User2", Storage="_ApprovalMan", ThisKey="ApprovalManId", OtherKey="UserId", IsForeignKey=true)] - public Sys_User ApprovalMan - { - get - { - return this._ApprovalMan.Entity; - } - set - { - Sys_User previousValue = this._ApprovalMan.Entity; - if (((previousValue != value) - || (this._ApprovalMan.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._ApprovalMan.Entity = null; - previousValue.SeDin_MonthReport_Sys_User2.Remove(this); - } - this._ApprovalMan.Entity = value; - if ((value != null)) - { - value.SeDin_MonthReport_Sys_User2.Add(this); - this._ApprovalManId = value.UserId; - } - else - { - this._ApprovalManId = default(string); - } - this.SendPropertyChanged("ApprovalMan"); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport1_SeDin_MonthReport1", Storage="_SeDin_MonthReport1", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] - public EntitySet SeDin_MonthReport1 - { - get - { - return this._SeDin_MonthReport1; - } - set - { - this._SeDin_MonthReport1.Assign(value); - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport10_SeDin_MonthReport10", Storage="_SeDin_MonthReport10", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] - public EntitySet SeDin_MonthReport10 - { - get - { - return this._SeDin_MonthReport10; - } - set - { - this._SeDin_MonthReport10.Assign(value); - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport11_SeDin_MonthReport11", Storage="_SeDin_MonthReport11", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] - public EntitySet SeDin_MonthReport11 - { - get - { - return this._SeDin_MonthReport11; - } - set - { - this._SeDin_MonthReport11.Assign(value); - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport12_SeDin_MonthReport12", Storage="_SeDin_MonthReport12", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] - public EntitySet SeDin_MonthReport12 - { - get - { - return this._SeDin_MonthReport12; - } - set - { - this._SeDin_MonthReport12.Assign(value); - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport2_SeDin_MonthReport2", Storage="_SeDin_MonthReport2", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] - public EntitySet SeDin_MonthReport2 - { - get - { - return this._SeDin_MonthReport2; - } - set - { - this._SeDin_MonthReport2.Assign(value); - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport3_SeDin_MonthReport3", Storage="_SeDin_MonthReport3", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] - public EntitySet SeDin_MonthReport3 - { - get - { - return this._SeDin_MonthReport3; - } - set - { - this._SeDin_MonthReport3.Assign(value); - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport4_SeDin_MonthReport4", Storage="_SeDin_MonthReport4", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] - public EntitySet SeDin_MonthReport4 - { - get - { - return this._SeDin_MonthReport4; - } - set - { - this._SeDin_MonthReport4.Assign(value); - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport4Other_SeDin_MonthReport4Other", Storage="_SeDin_MonthReport4Other", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] - public EntitySet SeDin_MonthReport4Other - { - get - { - return this._SeDin_MonthReport4Other; - } - set - { - this._SeDin_MonthReport4Other.Assign(value); - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport5_SeDin_MonthReport5", Storage="_SeDin_MonthReport5", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] - public EntitySet SeDin_MonthReport5 - { - get - { - return this._SeDin_MonthReport5; - } - set - { - this._SeDin_MonthReport5.Assign(value); - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport6_SeDin_MonthReport6", Storage="_SeDin_MonthReport6", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] - public EntitySet SeDin_MonthReport6 - { - get - { - return this._SeDin_MonthReport6; - } - set - { - this._SeDin_MonthReport6.Assign(value); - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport7_SeDin_MonthReport7", Storage="_SeDin_MonthReport7", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] - public EntitySet SeDin_MonthReport7 - { - get - { - return this._SeDin_MonthReport7; - } - set - { - this._SeDin_MonthReport7.Assign(value); - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport8_SeDin_MonthReport8", Storage="_SeDin_MonthReport8", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] - public EntitySet SeDin_MonthReport8 - { - get - { - return this._SeDin_MonthReport8; - } - set - { - this._SeDin_MonthReport8.Assign(value); - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport8Item_SeDin_MonthReport8Item", Storage="_SeDin_MonthReport8Item", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] - public EntitySet SeDin_MonthReport8Item - { - get - { - return this._SeDin_MonthReport8Item; - } - set - { - this._SeDin_MonthReport8Item.Assign(value); - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport9_SeDin_MonthReport9", Storage="_SeDin_MonthReport9", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] - public EntitySet SeDin_MonthReport9 - { - get - { - return this._SeDin_MonthReport9; - } - set - { - this._SeDin_MonthReport9.Assign(value); - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport9Item_Rectification_SeDin_MonthReport9Item_Rectification", Storage="_SeDin_MonthReport9Item_Rectification", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] - public EntitySet SeDin_MonthReport9Item_Rectification - { - get - { - return this._SeDin_MonthReport9Item_Rectification; - } - set - { - this._SeDin_MonthReport9Item_Rectification.Assign(value); - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport9Item_Special_SeDin_MonthReport9Item_Special", Storage="_SeDin_MonthReport9Item_Special", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] - public EntitySet SeDin_MonthReport9Item_Special - { - get - { - return this._SeDin_MonthReport9Item_Special; - } - set - { - this._SeDin_MonthReport9Item_Special.Assign(value); - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport9Item_Stoppage_SeDin_MonthReport9Item_Stoppage", Storage="_SeDin_MonthReport9Item_Stoppage", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] - public EntitySet SeDin_MonthReport9Item_Stoppage - { - get - { - return this._SeDin_MonthReport9Item_Stoppage; - } - set - { - this._SeDin_MonthReport9Item_Stoppage.Assign(value); - } - } - - 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)); - } - } - - private void attach_SeDin_MonthReport1(SeDin_MonthReport1 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = this; - } - - private void detach_SeDin_MonthReport1(SeDin_MonthReport1 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = null; - } - - private void attach_SeDin_MonthReport10(SeDin_MonthReport10 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = this; - } - - private void detach_SeDin_MonthReport10(SeDin_MonthReport10 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = null; - } - - private void attach_SeDin_MonthReport11(SeDin_MonthReport11 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = this; - } - - private void detach_SeDin_MonthReport11(SeDin_MonthReport11 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = null; - } - - private void attach_SeDin_MonthReport12(SeDin_MonthReport12 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = this; - } - - private void detach_SeDin_MonthReport12(SeDin_MonthReport12 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = null; - } - - private void attach_SeDin_MonthReport2(SeDin_MonthReport2 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = this; - } - - private void detach_SeDin_MonthReport2(SeDin_MonthReport2 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = null; - } - - private void attach_SeDin_MonthReport3(SeDin_MonthReport3 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = this; - } - - private void detach_SeDin_MonthReport3(SeDin_MonthReport3 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = null; - } - - private void attach_SeDin_MonthReport4(SeDin_MonthReport4 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = this; - } - - private void detach_SeDin_MonthReport4(SeDin_MonthReport4 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = null; - } - - private void attach_SeDin_MonthReport4Other(SeDin_MonthReport4Other entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = this; - } - - private void detach_SeDin_MonthReport4Other(SeDin_MonthReport4Other entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = null; - } - - private void attach_SeDin_MonthReport5(SeDin_MonthReport5 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = this; - } - - private void detach_SeDin_MonthReport5(SeDin_MonthReport5 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = null; - } - - private void attach_SeDin_MonthReport6(SeDin_MonthReport6 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = this; - } - - private void detach_SeDin_MonthReport6(SeDin_MonthReport6 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = null; - } - - private void attach_SeDin_MonthReport7(SeDin_MonthReport7 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = this; - } - - private void detach_SeDin_MonthReport7(SeDin_MonthReport7 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = null; - } - - private void attach_SeDin_MonthReport8(SeDin_MonthReport8 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = this; - } - - private void detach_SeDin_MonthReport8(SeDin_MonthReport8 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = null; - } - - private void attach_SeDin_MonthReport8Item(SeDin_MonthReport8Item entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = this; - } - - private void detach_SeDin_MonthReport8Item(SeDin_MonthReport8Item entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = null; - } - - private void attach_SeDin_MonthReport9(SeDin_MonthReport9 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = this; - } - - private void detach_SeDin_MonthReport9(SeDin_MonthReport9 entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = null; - } - - private void attach_SeDin_MonthReport9Item_Rectification(SeDin_MonthReport9Item_Rectification entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = this; - } - - private void detach_SeDin_MonthReport9Item_Rectification(SeDin_MonthReport9Item_Rectification entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = null; - } - - private void attach_SeDin_MonthReport9Item_Special(SeDin_MonthReport9Item_Special entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = this; - } - - private void detach_SeDin_MonthReport9Item_Special(SeDin_MonthReport9Item_Special entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = null; - } - - private void attach_SeDin_MonthReport9Item_Stoppage(SeDin_MonthReport9Item_Stoppage entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = this; - } - - private void detach_SeDin_MonthReport9Item_Stoppage(SeDin_MonthReport9Item_Stoppage entity) - { - this.SendPropertyChanging(); - entity.SeDin_MonthReport = null; - } - } - - [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.SeDin_MonthReport1")] - public partial class SeDin_MonthReport1 : INotifyPropertyChanging, INotifyPropertyChanged - { - - private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - - private string _MonthReport1Id; - - private string _MonthReportId; - - private string _ProjectCode; - - private string _ProjectName; - - private string _ProjectType; - - private System.Nullable _StartDate; - - private System.Nullable _EndDate; - - private string _ProjectManager; - - private string _HsseManager; - - private string _ContractAmount; - - private string _ConstructionStage; - - private string _ProjectAddress; - - private EntityRef _SeDin_MonthReport; - - #region 可扩展性方法定义 - partial void OnLoaded(); - partial void OnValidate(System.Data.Linq.ChangeAction action); - partial void OnCreated(); - partial void OnMonthReport1IdChanging(string value); - partial void OnMonthReport1IdChanged(); - partial void OnMonthReportIdChanging(string value); - partial void OnMonthReportIdChanged(); - partial void OnProjectCodeChanging(string value); - partial void OnProjectCodeChanged(); - partial void OnProjectNameChanging(string value); - partial void OnProjectNameChanged(); - partial void OnProjectTypeChanging(string value); - partial void OnProjectTypeChanged(); - partial void OnStartDateChanging(System.Nullable value); - partial void OnStartDateChanged(); - partial void OnEndDateChanging(System.Nullable value); - partial void OnEndDateChanged(); - partial void OnProjectManagerChanging(string value); - partial void OnProjectManagerChanged(); - partial void OnHsseManagerChanging(string value); - partial void OnHsseManagerChanged(); - partial void OnContractAmountChanging(string value); - partial void OnContractAmountChanged(); - partial void OnConstructionStageChanging(string value); - partial void OnConstructionStageChanged(); - partial void OnProjectAddressChanging(string value); - partial void OnProjectAddressChanged(); - #endregion - - public SeDin_MonthReport1() - { - this._SeDin_MonthReport = default(EntityRef); - OnCreated(); - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReport1Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string MonthReport1Id - { - get - { - return this._MonthReport1Id; - } - set - { - if ((this._MonthReport1Id != value)) - { - this.OnMonthReport1IdChanging(value); - this.SendPropertyChanging(); - this._MonthReport1Id = value; - this.SendPropertyChanged("MonthReport1Id"); - this.OnMonthReport1IdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] - public string MonthReportId - { - get - { - return this._MonthReportId; - } - set - { - if ((this._MonthReportId != value)) - { - if (this._SeDin_MonthReport.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } - this.OnMonthReportIdChanging(value); - this.SendPropertyChanging(); - this._MonthReportId = value; - this.SendPropertyChanged("MonthReportId"); - this.OnMonthReportIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectCode", DbType="NVarChar(100)")] - public string ProjectCode - { - get - { - return this._ProjectCode; - } - set - { - if ((this._ProjectCode != value)) - { - this.OnProjectCodeChanging(value); - this.SendPropertyChanging(); - this._ProjectCode = value; - this.SendPropertyChanged("ProjectCode"); - this.OnProjectCodeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectName", DbType="NVarChar(100)")] - public string ProjectName - { - get - { - return this._ProjectName; - } - set - { - if ((this._ProjectName != value)) - { - this.OnProjectNameChanging(value); - this.SendPropertyChanging(); - this._ProjectName = value; - this.SendPropertyChanged("ProjectName"); - this.OnProjectNameChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectType", DbType="NVarChar(100)")] - public string ProjectType - { - get - { - return this._ProjectType; - } - set - { - if ((this._ProjectType != value)) - { - this.OnProjectTypeChanging(value); - this.SendPropertyChanging(); - this._ProjectType = value; - this.SendPropertyChanged("ProjectType"); - this.OnProjectTypeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StartDate", DbType="DateTime")] - public System.Nullable StartDate - { - get - { - return this._StartDate; - } - set - { - if ((this._StartDate != value)) - { - this.OnStartDateChanging(value); - this.SendPropertyChanging(); - this._StartDate = value; - this.SendPropertyChanged("StartDate"); - this.OnStartDateChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EndDate", DbType="DateTime")] - public System.Nullable EndDate - { - get - { - return this._EndDate; - } - set - { - if ((this._EndDate != value)) - { - this.OnEndDateChanging(value); - this.SendPropertyChanging(); - this._EndDate = value; - this.SendPropertyChanged("EndDate"); - this.OnEndDateChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectManager", DbType="NVarChar(500)")] - public string ProjectManager - { - get - { - return this._ProjectManager; - } - set - { - if ((this._ProjectManager != value)) - { - this.OnProjectManagerChanging(value); - this.SendPropertyChanging(); - this._ProjectManager = value; - this.SendPropertyChanged("ProjectManager"); - this.OnProjectManagerChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HsseManager", DbType="NVarChar(500)")] - public string HsseManager - { - get - { - return this._HsseManager; - } - set - { - if ((this._HsseManager != value)) - { - this.OnHsseManagerChanging(value); - this.SendPropertyChanging(); - this._HsseManager = value; - this.SendPropertyChanged("HsseManager"); - this.OnHsseManagerChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractAmount", DbType="NVarChar(50)")] - public string ContractAmount - { - get - { - return this._ContractAmount; - } - set - { - if ((this._ContractAmount != value)) - { - this.OnContractAmountChanging(value); - this.SendPropertyChanging(); - this._ContractAmount = value; - this.SendPropertyChanged("ContractAmount"); - this.OnContractAmountChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionStage", DbType="NVarChar(800)")] - public string ConstructionStage - { - get - { - return this._ConstructionStage; - } - set - { - if ((this._ConstructionStage != value)) - { - this.OnConstructionStageChanging(value); - this.SendPropertyChanging(); - this._ConstructionStage = value; - this.SendPropertyChanged("ConstructionStage"); - this.OnConstructionStageChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectAddress", DbType="NVarChar(500)")] - public string ProjectAddress - { - get - { - return this._ProjectAddress; - } - set - { - if ((this._ProjectAddress != value)) - { - this.OnProjectAddressChanging(value); - this.SendPropertyChanging(); - this._ProjectAddress = value; - this.SendPropertyChanged("ProjectAddress"); - this.OnProjectAddressChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport1_SeDin_MonthReport1", Storage="_SeDin_MonthReport", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] - public SeDin_MonthReport SeDin_MonthReport - { - get - { - return this._SeDin_MonthReport.Entity; - } - set - { - SeDin_MonthReport previousValue = this._SeDin_MonthReport.Entity; - if (((previousValue != value) - || (this._SeDin_MonthReport.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._SeDin_MonthReport.Entity = null; - previousValue.SeDin_MonthReport1.Remove(this); - } - this._SeDin_MonthReport.Entity = value; - if ((value != null)) - { - value.SeDin_MonthReport1.Add(this); - this._MonthReportId = value.MonthReportId; - } - else - { - this._MonthReportId = default(string); - } - this.SendPropertyChanged("SeDin_MonthReport"); - } - } - } - - 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.SeDin_MonthReport10")] - public partial class SeDin_MonthReport10 : INotifyPropertyChanging, INotifyPropertyChanged - { - - private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - - private string _MonthReport10Id; - - private string _MonthReportId; - - private System.Nullable _SafeMonthNum; - - private System.Nullable _SafeTotalNum; - - private System.Nullable _SafeMonthMoney; - - private System.Nullable _SafeTotalMoney; - - private System.Nullable _HseMonthNum; - - private System.Nullable _HseTotalNum; - - private System.Nullable _HseMonthMoney; - - private System.Nullable _HseTotalMoney; - - private System.Nullable _ProduceMonthNum; - - private System.Nullable _ProduceTotalNum; - - private System.Nullable _ProduceMonthMoney; - - private System.Nullable _ProduceTotalMoney; - - private System.Nullable _AccidentMonthNum; - - private System.Nullable _AccidentTotalNum; - - private System.Nullable _AccidentMonthMoney; - - private System.Nullable _AccidentTotalMoney; - - private System.Nullable _ViolationMonthNum; - - private System.Nullable _ViolationTotalNum; - - private System.Nullable _ViolationMonthMoney; - - private System.Nullable _ViolationTotalMoney; - - private System.Nullable _ManageMonthNum; - - private System.Nullable _ManageTotalNum; - - private System.Nullable _ManageMonthMoney; - - private System.Nullable _ManageTotalMoney; - - private EntityRef _SeDin_MonthReport; - - #region 可扩展性方法定义 - partial void OnLoaded(); - partial void OnValidate(System.Data.Linq.ChangeAction action); - partial void OnCreated(); - partial void OnMonthReport10IdChanging(string value); - partial void OnMonthReport10IdChanged(); - partial void OnMonthReportIdChanging(string value); - partial void OnMonthReportIdChanged(); - partial void OnSafeMonthNumChanging(System.Nullable value); - partial void OnSafeMonthNumChanged(); - partial void OnSafeTotalNumChanging(System.Nullable value); - partial void OnSafeTotalNumChanged(); - partial void OnSafeMonthMoneyChanging(System.Nullable value); - partial void OnSafeMonthMoneyChanged(); - partial void OnSafeTotalMoneyChanging(System.Nullable value); - partial void OnSafeTotalMoneyChanged(); - partial void OnHseMonthNumChanging(System.Nullable value); - partial void OnHseMonthNumChanged(); - partial void OnHseTotalNumChanging(System.Nullable value); - partial void OnHseTotalNumChanged(); - partial void OnHseMonthMoneyChanging(System.Nullable value); - partial void OnHseMonthMoneyChanged(); - partial void OnHseTotalMoneyChanging(System.Nullable value); - partial void OnHseTotalMoneyChanged(); - partial void OnProduceMonthNumChanging(System.Nullable value); - partial void OnProduceMonthNumChanged(); - partial void OnProduceTotalNumChanging(System.Nullable value); - partial void OnProduceTotalNumChanged(); - partial void OnProduceMonthMoneyChanging(System.Nullable value); - partial void OnProduceMonthMoneyChanged(); - partial void OnProduceTotalMoneyChanging(System.Nullable value); - partial void OnProduceTotalMoneyChanged(); - partial void OnAccidentMonthNumChanging(System.Nullable value); - partial void OnAccidentMonthNumChanged(); - partial void OnAccidentTotalNumChanging(System.Nullable value); - partial void OnAccidentTotalNumChanged(); - partial void OnAccidentMonthMoneyChanging(System.Nullable value); - partial void OnAccidentMonthMoneyChanged(); - partial void OnAccidentTotalMoneyChanging(System.Nullable value); - partial void OnAccidentTotalMoneyChanged(); - partial void OnViolationMonthNumChanging(System.Nullable value); - partial void OnViolationMonthNumChanged(); - partial void OnViolationTotalNumChanging(System.Nullable value); - partial void OnViolationTotalNumChanged(); - partial void OnViolationMonthMoneyChanging(System.Nullable value); - partial void OnViolationMonthMoneyChanged(); - partial void OnViolationTotalMoneyChanging(System.Nullable value); - partial void OnViolationTotalMoneyChanged(); - partial void OnManageMonthNumChanging(System.Nullable value); - partial void OnManageMonthNumChanged(); - partial void OnManageTotalNumChanging(System.Nullable value); - partial void OnManageTotalNumChanged(); - partial void OnManageMonthMoneyChanging(System.Nullable value); - partial void OnManageMonthMoneyChanged(); - partial void OnManageTotalMoneyChanging(System.Nullable value); - partial void OnManageTotalMoneyChanged(); - #endregion - - public SeDin_MonthReport10() - { - this._SeDin_MonthReport = default(EntityRef); - OnCreated(); - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReport10Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string MonthReport10Id - { - get - { - return this._MonthReport10Id; - } - set - { - if ((this._MonthReport10Id != value)) - { - this.OnMonthReport10IdChanging(value); - this.SendPropertyChanging(); - this._MonthReport10Id = value; - this.SendPropertyChanged("MonthReport10Id"); - this.OnMonthReport10IdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] - public string MonthReportId - { - get - { - return this._MonthReportId; - } - set - { - if ((this._MonthReportId != value)) - { - if (this._SeDin_MonthReport.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } - this.OnMonthReportIdChanging(value); - this.SendPropertyChanging(); - this._MonthReportId = value; - this.SendPropertyChanged("MonthReportId"); - this.OnMonthReportIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafeMonthNum", DbType="Int")] - public System.Nullable SafeMonthNum - { - get - { - return this._SafeMonthNum; - } - set - { - if ((this._SafeMonthNum != value)) - { - this.OnSafeMonthNumChanging(value); - this.SendPropertyChanging(); - this._SafeMonthNum = value; - this.SendPropertyChanged("SafeMonthNum"); - this.OnSafeMonthNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafeTotalNum", DbType="Int")] - public System.Nullable SafeTotalNum - { - get - { - return this._SafeTotalNum; - } - set - { - if ((this._SafeTotalNum != value)) - { - this.OnSafeTotalNumChanging(value); - this.SendPropertyChanging(); - this._SafeTotalNum = value; - this.SendPropertyChanged("SafeTotalNum"); - this.OnSafeTotalNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafeMonthMoney", DbType="Decimal(18,2)")] - public System.Nullable SafeMonthMoney - { - get - { - return this._SafeMonthMoney; - } - set - { - if ((this._SafeMonthMoney != value)) - { - this.OnSafeMonthMoneyChanging(value); - this.SendPropertyChanging(); - this._SafeMonthMoney = value; - this.SendPropertyChanged("SafeMonthMoney"); - this.OnSafeMonthMoneyChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafeTotalMoney", DbType="Decimal(18,2)")] - public System.Nullable SafeTotalMoney - { - get - { - return this._SafeTotalMoney; - } - set - { - if ((this._SafeTotalMoney != value)) - { - this.OnSafeTotalMoneyChanging(value); - this.SendPropertyChanging(); - this._SafeTotalMoney = value; - this.SendPropertyChanged("SafeTotalMoney"); - this.OnSafeTotalMoneyChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HseMonthNum", DbType="Int")] - public System.Nullable HseMonthNum - { - get - { - return this._HseMonthNum; - } - set - { - if ((this._HseMonthNum != value)) - { - this.OnHseMonthNumChanging(value); - this.SendPropertyChanging(); - this._HseMonthNum = value; - this.SendPropertyChanged("HseMonthNum"); - this.OnHseMonthNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HseTotalNum", DbType="Int")] - public System.Nullable HseTotalNum - { - get - { - return this._HseTotalNum; - } - set - { - if ((this._HseTotalNum != value)) - { - this.OnHseTotalNumChanging(value); - this.SendPropertyChanging(); - this._HseTotalNum = value; - this.SendPropertyChanged("HseTotalNum"); - this.OnHseTotalNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HseMonthMoney", DbType="Decimal(18,2)")] - public System.Nullable HseMonthMoney - { - get - { - return this._HseMonthMoney; - } - set - { - if ((this._HseMonthMoney != value)) - { - this.OnHseMonthMoneyChanging(value); - this.SendPropertyChanging(); - this._HseMonthMoney = value; - this.SendPropertyChanged("HseMonthMoney"); - this.OnHseMonthMoneyChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HseTotalMoney", DbType="Decimal(18,2)")] - public System.Nullable HseTotalMoney - { - get - { - return this._HseTotalMoney; - } - set - { - if ((this._HseTotalMoney != value)) - { - this.OnHseTotalMoneyChanging(value); - this.SendPropertyChanging(); - this._HseTotalMoney = value; - this.SendPropertyChanged("HseTotalMoney"); - this.OnHseTotalMoneyChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProduceMonthNum", DbType="Int")] - public System.Nullable ProduceMonthNum - { - get - { - return this._ProduceMonthNum; - } - set - { - if ((this._ProduceMonthNum != value)) - { - this.OnProduceMonthNumChanging(value); - this.SendPropertyChanging(); - this._ProduceMonthNum = value; - this.SendPropertyChanged("ProduceMonthNum"); - this.OnProduceMonthNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProduceTotalNum", DbType="Int")] - public System.Nullable ProduceTotalNum - { - get - { - return this._ProduceTotalNum; - } - set - { - if ((this._ProduceTotalNum != value)) - { - this.OnProduceTotalNumChanging(value); - this.SendPropertyChanging(); - this._ProduceTotalNum = value; - this.SendPropertyChanged("ProduceTotalNum"); - this.OnProduceTotalNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProduceMonthMoney", DbType="Decimal(18,2)")] - public System.Nullable ProduceMonthMoney - { - get - { - return this._ProduceMonthMoney; - } - set - { - if ((this._ProduceMonthMoney != value)) - { - this.OnProduceMonthMoneyChanging(value); - this.SendPropertyChanging(); - this._ProduceMonthMoney = value; - this.SendPropertyChanged("ProduceMonthMoney"); - this.OnProduceMonthMoneyChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProduceTotalMoney", DbType="Decimal(18,2)")] - public System.Nullable ProduceTotalMoney - { - get - { - return this._ProduceTotalMoney; - } - set - { - if ((this._ProduceTotalMoney != value)) - { - this.OnProduceTotalMoneyChanging(value); - this.SendPropertyChanging(); - this._ProduceTotalMoney = value; - this.SendPropertyChanged("ProduceTotalMoney"); - this.OnProduceTotalMoneyChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccidentMonthNum", DbType="Int")] - public System.Nullable AccidentMonthNum - { - get - { - return this._AccidentMonthNum; - } - set - { - if ((this._AccidentMonthNum != value)) - { - this.OnAccidentMonthNumChanging(value); - this.SendPropertyChanging(); - this._AccidentMonthNum = value; - this.SendPropertyChanged("AccidentMonthNum"); - this.OnAccidentMonthNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccidentTotalNum", DbType="Int")] - public System.Nullable AccidentTotalNum - { - get - { - return this._AccidentTotalNum; - } - set - { - if ((this._AccidentTotalNum != value)) - { - this.OnAccidentTotalNumChanging(value); - this.SendPropertyChanging(); - this._AccidentTotalNum = value; - this.SendPropertyChanged("AccidentTotalNum"); - this.OnAccidentTotalNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccidentMonthMoney", DbType="Decimal(18,2)")] - public System.Nullable AccidentMonthMoney - { - get - { - return this._AccidentMonthMoney; - } - set - { - if ((this._AccidentMonthMoney != value)) - { - this.OnAccidentMonthMoneyChanging(value); - this.SendPropertyChanging(); - this._AccidentMonthMoney = value; - this.SendPropertyChanged("AccidentMonthMoney"); - this.OnAccidentMonthMoneyChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccidentTotalMoney", DbType="Decimal(18,2)")] - public System.Nullable AccidentTotalMoney - { - get - { - return this._AccidentTotalMoney; - } - set - { - if ((this._AccidentTotalMoney != value)) - { - this.OnAccidentTotalMoneyChanging(value); - this.SendPropertyChanging(); - this._AccidentTotalMoney = value; - this.SendPropertyChanged("AccidentTotalMoney"); - this.OnAccidentTotalMoneyChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViolationMonthNum", DbType="Int")] - public System.Nullable ViolationMonthNum - { - get - { - return this._ViolationMonthNum; - } - set - { - if ((this._ViolationMonthNum != value)) - { - this.OnViolationMonthNumChanging(value); - this.SendPropertyChanging(); - this._ViolationMonthNum = value; - this.SendPropertyChanged("ViolationMonthNum"); - this.OnViolationMonthNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViolationTotalNum", DbType="Int")] - public System.Nullable ViolationTotalNum - { - get - { - return this._ViolationTotalNum; - } - set - { - if ((this._ViolationTotalNum != value)) - { - this.OnViolationTotalNumChanging(value); - this.SendPropertyChanging(); - this._ViolationTotalNum = value; - this.SendPropertyChanged("ViolationTotalNum"); - this.OnViolationTotalNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViolationMonthMoney", DbType="Decimal(18,2)")] - public System.Nullable ViolationMonthMoney - { - get - { - return this._ViolationMonthMoney; - } - set - { - if ((this._ViolationMonthMoney != value)) - { - this.OnViolationMonthMoneyChanging(value); - this.SendPropertyChanging(); - this._ViolationMonthMoney = value; - this.SendPropertyChanged("ViolationMonthMoney"); - this.OnViolationMonthMoneyChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViolationTotalMoney", DbType="Decimal(18,2)")] - public System.Nullable ViolationTotalMoney - { - get - { - return this._ViolationTotalMoney; - } - set - { - if ((this._ViolationTotalMoney != value)) - { - this.OnViolationTotalMoneyChanging(value); - this.SendPropertyChanging(); - this._ViolationTotalMoney = value; - this.SendPropertyChanged("ViolationTotalMoney"); - this.OnViolationTotalMoneyChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ManageMonthNum", DbType="Int")] - public System.Nullable ManageMonthNum - { - get - { - return this._ManageMonthNum; - } - set - { - if ((this._ManageMonthNum != value)) - { - this.OnManageMonthNumChanging(value); - this.SendPropertyChanging(); - this._ManageMonthNum = value; - this.SendPropertyChanged("ManageMonthNum"); - this.OnManageMonthNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ManageTotalNum", DbType="Int")] - public System.Nullable ManageTotalNum - { - get - { - return this._ManageTotalNum; - } - set - { - if ((this._ManageTotalNum != value)) - { - this.OnManageTotalNumChanging(value); - this.SendPropertyChanging(); - this._ManageTotalNum = value; - this.SendPropertyChanged("ManageTotalNum"); - this.OnManageTotalNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ManageMonthMoney", DbType="Decimal(18,2)")] - public System.Nullable ManageMonthMoney - { - get - { - return this._ManageMonthMoney; - } - set - { - if ((this._ManageMonthMoney != value)) - { - this.OnManageMonthMoneyChanging(value); - this.SendPropertyChanging(); - this._ManageMonthMoney = value; - this.SendPropertyChanged("ManageMonthMoney"); - this.OnManageMonthMoneyChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ManageTotalMoney", DbType="Decimal(18,2)")] - public System.Nullable ManageTotalMoney - { - get - { - return this._ManageTotalMoney; - } - set - { - if ((this._ManageTotalMoney != value)) - { - this.OnManageTotalMoneyChanging(value); - this.SendPropertyChanging(); - this._ManageTotalMoney = value; - this.SendPropertyChanged("ManageTotalMoney"); - this.OnManageTotalMoneyChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport10_SeDin_MonthReport10", Storage="_SeDin_MonthReport", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] - public SeDin_MonthReport SeDin_MonthReport - { - get - { - return this._SeDin_MonthReport.Entity; - } - set - { - SeDin_MonthReport previousValue = this._SeDin_MonthReport.Entity; - if (((previousValue != value) - || (this._SeDin_MonthReport.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._SeDin_MonthReport.Entity = null; - previousValue.SeDin_MonthReport10.Remove(this); - } - this._SeDin_MonthReport.Entity = value; - if ((value != null)) - { - value.SeDin_MonthReport10.Add(this); - this._MonthReportId = value.MonthReportId; - } - else - { - this._MonthReportId = default(string); - } - this.SendPropertyChanged("SeDin_MonthReport"); - } - } - } - - 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.SeDin_MonthReport11")] - public partial class SeDin_MonthReport11 : INotifyPropertyChanging, INotifyPropertyChanged - { - - private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - - private string _MonthReport11Id; - - private string _MonthReportId; - - private System.Nullable _RiskWorkNum; - - private System.Nullable _RiskFinishedNum; - - private string _RiskWorkNext; - - private System.Nullable _LargeWorkNum; - - private System.Nullable _LargeFinishedNum; - - private string _LargeWorkNext; - - private EntityRef _SeDin_MonthReport; - - #region 可扩展性方法定义 - partial void OnLoaded(); - partial void OnValidate(System.Data.Linq.ChangeAction action); - partial void OnCreated(); - partial void OnMonthReport11IdChanging(string value); - partial void OnMonthReport11IdChanged(); - partial void OnMonthReportIdChanging(string value); - partial void OnMonthReportIdChanged(); - partial void OnRiskWorkNumChanging(System.Nullable value); - partial void OnRiskWorkNumChanged(); - partial void OnRiskFinishedNumChanging(System.Nullable value); - partial void OnRiskFinishedNumChanged(); - partial void OnRiskWorkNextChanging(string value); - partial void OnRiskWorkNextChanged(); - partial void OnLargeWorkNumChanging(System.Nullable value); - partial void OnLargeWorkNumChanged(); - partial void OnLargeFinishedNumChanging(System.Nullable value); - partial void OnLargeFinishedNumChanged(); - partial void OnLargeWorkNextChanging(string value); - partial void OnLargeWorkNextChanged(); - #endregion - - public SeDin_MonthReport11() - { - this._SeDin_MonthReport = default(EntityRef); - OnCreated(); - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReport11Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string MonthReport11Id - { - get - { - return this._MonthReport11Id; - } - set - { - if ((this._MonthReport11Id != value)) - { - this.OnMonthReport11IdChanging(value); - this.SendPropertyChanging(); - this._MonthReport11Id = value; - this.SendPropertyChanged("MonthReport11Id"); - this.OnMonthReport11IdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] - public string MonthReportId - { - get - { - return this._MonthReportId; - } - set - { - if ((this._MonthReportId != value)) - { - if (this._SeDin_MonthReport.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } - this.OnMonthReportIdChanging(value); - this.SendPropertyChanging(); - this._MonthReportId = value; - this.SendPropertyChanged("MonthReportId"); - this.OnMonthReportIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RiskWorkNum", DbType="Int")] - public System.Nullable RiskWorkNum - { - get - { - return this._RiskWorkNum; - } - set - { - if ((this._RiskWorkNum != value)) - { - this.OnRiskWorkNumChanging(value); - this.SendPropertyChanging(); - this._RiskWorkNum = value; - this.SendPropertyChanged("RiskWorkNum"); - this.OnRiskWorkNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RiskFinishedNum", DbType="Int")] - public System.Nullable RiskFinishedNum - { - get - { - return this._RiskFinishedNum; - } - set - { - if ((this._RiskFinishedNum != value)) - { - this.OnRiskFinishedNumChanging(value); - this.SendPropertyChanging(); - this._RiskFinishedNum = value; - this.SendPropertyChanged("RiskFinishedNum"); - this.OnRiskFinishedNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RiskWorkNext", DbType="NVarChar(500)")] - public string RiskWorkNext - { - get - { - return this._RiskWorkNext; - } - set - { - if ((this._RiskWorkNext != value)) - { - this.OnRiskWorkNextChanging(value); - this.SendPropertyChanging(); - this._RiskWorkNext = value; - this.SendPropertyChanged("RiskWorkNext"); - this.OnRiskWorkNextChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LargeWorkNum", DbType="Int")] - public System.Nullable LargeWorkNum - { - get - { - return this._LargeWorkNum; - } - set - { - if ((this._LargeWorkNum != value)) - { - this.OnLargeWorkNumChanging(value); - this.SendPropertyChanging(); - this._LargeWorkNum = value; - this.SendPropertyChanged("LargeWorkNum"); - this.OnLargeWorkNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LargeFinishedNum", DbType="Int")] - public System.Nullable LargeFinishedNum - { - get - { - return this._LargeFinishedNum; - } - set - { - if ((this._LargeFinishedNum != value)) - { - this.OnLargeFinishedNumChanging(value); - this.SendPropertyChanging(); - this._LargeFinishedNum = value; - this.SendPropertyChanged("LargeFinishedNum"); - this.OnLargeFinishedNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LargeWorkNext", DbType="NVarChar(500)")] - public string LargeWorkNext - { - get - { - return this._LargeWorkNext; - } - set - { - if ((this._LargeWorkNext != value)) - { - this.OnLargeWorkNextChanging(value); - this.SendPropertyChanging(); - this._LargeWorkNext = value; - this.SendPropertyChanged("LargeWorkNext"); - this.OnLargeWorkNextChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport11_SeDin_MonthReport11", Storage="_SeDin_MonthReport", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] - public SeDin_MonthReport SeDin_MonthReport - { - get - { - return this._SeDin_MonthReport.Entity; - } - set - { - SeDin_MonthReport previousValue = this._SeDin_MonthReport.Entity; - if (((previousValue != value) - || (this._SeDin_MonthReport.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._SeDin_MonthReport.Entity = null; - previousValue.SeDin_MonthReport11.Remove(this); - } - this._SeDin_MonthReport.Entity = value; - if ((value != null)) - { - value.SeDin_MonthReport11.Add(this); - this._MonthReportId = value.MonthReportId; - } - else - { - this._MonthReportId = default(string); - } - this.SendPropertyChanged("SeDin_MonthReport"); - } - } - } - - 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.SeDin_MonthReport12")] - public partial class SeDin_MonthReport12 : INotifyPropertyChanging, INotifyPropertyChanged - { - - private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - - private string _MonthReport12Id; - - private string _MonthReportId; - - private System.Nullable _MultipleSiteInput; - - private System.Nullable _MultipleSitePerson; - - private System.Nullable _MultipleSiteNum; - - private System.Nullable _MultipleSiteTotalNum; - - private string _MultipleSiteNext; - - private System.Nullable _MultipleDesktopInput; - - private System.Nullable _MultipleDesktopPerson; - - private System.Nullable _MultipleDesktopNum; - - private System.Nullable _MultipleDesktopTotalNum; - - private string _MultipleDesktopNext; - - private System.Nullable _SingleSiteInput; - - private System.Nullable _SingleSitePerson; - - private System.Nullable _SingleSiteNum; - - private System.Nullable _SingleSiteTotalNum; - - private string _SingleSiteNext; - - private System.Nullable _SingleDesktopInput; - - private System.Nullable _SingleDesktopPerson; - - private System.Nullable _SingleDesktopNum; - - private System.Nullable _SingleDesktopTotalNum; - - private string _SingleDesktopNext; - - private EntityRef _SeDin_MonthReport; - - #region 可扩展性方法定义 - partial void OnLoaded(); - partial void OnValidate(System.Data.Linq.ChangeAction action); - partial void OnCreated(); - partial void OnMonthReport12IdChanging(string value); - partial void OnMonthReport12IdChanged(); - partial void OnMonthReportIdChanging(string value); - partial void OnMonthReportIdChanged(); - partial void OnMultipleSiteInputChanging(System.Nullable value); - partial void OnMultipleSiteInputChanged(); - partial void OnMultipleSitePersonChanging(System.Nullable value); - partial void OnMultipleSitePersonChanged(); - partial void OnMultipleSiteNumChanging(System.Nullable value); - partial void OnMultipleSiteNumChanged(); - partial void OnMultipleSiteTotalNumChanging(System.Nullable value); - partial void OnMultipleSiteTotalNumChanged(); - partial void OnMultipleSiteNextChanging(string value); - partial void OnMultipleSiteNextChanged(); - partial void OnMultipleDesktopInputChanging(System.Nullable value); - partial void OnMultipleDesktopInputChanged(); - partial void OnMultipleDesktopPersonChanging(System.Nullable value); - partial void OnMultipleDesktopPersonChanged(); - partial void OnMultipleDesktopNumChanging(System.Nullable value); - partial void OnMultipleDesktopNumChanged(); - partial void OnMultipleDesktopTotalNumChanging(System.Nullable value); - partial void OnMultipleDesktopTotalNumChanged(); - partial void OnMultipleDesktopNextChanging(string value); - partial void OnMultipleDesktopNextChanged(); - partial void OnSingleSiteInputChanging(System.Nullable value); - partial void OnSingleSiteInputChanged(); - partial void OnSingleSitePersonChanging(System.Nullable value); - partial void OnSingleSitePersonChanged(); - partial void OnSingleSiteNumChanging(System.Nullable value); - partial void OnSingleSiteNumChanged(); - partial void OnSingleSiteTotalNumChanging(System.Nullable value); - partial void OnSingleSiteTotalNumChanged(); - partial void OnSingleSiteNextChanging(string value); - partial void OnSingleSiteNextChanged(); - partial void OnSingleDesktopInputChanging(System.Nullable value); - partial void OnSingleDesktopInputChanged(); - partial void OnSingleDesktopPersonChanging(System.Nullable value); - partial void OnSingleDesktopPersonChanged(); - partial void OnSingleDesktopNumChanging(System.Nullable value); - partial void OnSingleDesktopNumChanged(); - partial void OnSingleDesktopTotalNumChanging(System.Nullable value); - partial void OnSingleDesktopTotalNumChanged(); - partial void OnSingleDesktopNextChanging(string value); - partial void OnSingleDesktopNextChanged(); - #endregion - - public SeDin_MonthReport12() - { - this._SeDin_MonthReport = default(EntityRef); - OnCreated(); - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReport12Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string MonthReport12Id - { - get - { - return this._MonthReport12Id; - } - set - { - if ((this._MonthReport12Id != value)) - { - this.OnMonthReport12IdChanging(value); - this.SendPropertyChanging(); - this._MonthReport12Id = value; - this.SendPropertyChanged("MonthReport12Id"); - this.OnMonthReport12IdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] - public string MonthReportId - { - get - { - return this._MonthReportId; - } - set - { - if ((this._MonthReportId != value)) - { - if (this._SeDin_MonthReport.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } - this.OnMonthReportIdChanging(value); - this.SendPropertyChanging(); - this._MonthReportId = value; - this.SendPropertyChanged("MonthReportId"); - this.OnMonthReportIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MultipleSiteInput", DbType="Decimal(18,2)")] - public System.Nullable MultipleSiteInput - { - get - { - return this._MultipleSiteInput; - } - set - { - if ((this._MultipleSiteInput != value)) - { - this.OnMultipleSiteInputChanging(value); - this.SendPropertyChanging(); - this._MultipleSiteInput = value; - this.SendPropertyChanged("MultipleSiteInput"); - this.OnMultipleSiteInputChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MultipleSitePerson", DbType="Int")] - public System.Nullable MultipleSitePerson - { - get - { - return this._MultipleSitePerson; - } - set - { - if ((this._MultipleSitePerson != value)) - { - this.OnMultipleSitePersonChanging(value); - this.SendPropertyChanging(); - this._MultipleSitePerson = value; - this.SendPropertyChanged("MultipleSitePerson"); - this.OnMultipleSitePersonChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MultipleSiteNum", DbType="Int")] - public System.Nullable MultipleSiteNum - { - get - { - return this._MultipleSiteNum; - } - set - { - if ((this._MultipleSiteNum != value)) - { - this.OnMultipleSiteNumChanging(value); - this.SendPropertyChanging(); - this._MultipleSiteNum = value; - this.SendPropertyChanged("MultipleSiteNum"); - this.OnMultipleSiteNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MultipleSiteTotalNum", DbType="Int")] - public System.Nullable MultipleSiteTotalNum - { - get - { - return this._MultipleSiteTotalNum; - } - set - { - if ((this._MultipleSiteTotalNum != value)) - { - this.OnMultipleSiteTotalNumChanging(value); - this.SendPropertyChanging(); - this._MultipleSiteTotalNum = value; - this.SendPropertyChanged("MultipleSiteTotalNum"); - this.OnMultipleSiteTotalNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MultipleSiteNext", DbType="NVarChar(500)")] - public string MultipleSiteNext - { - get - { - return this._MultipleSiteNext; - } - set - { - if ((this._MultipleSiteNext != value)) - { - this.OnMultipleSiteNextChanging(value); - this.SendPropertyChanging(); - this._MultipleSiteNext = value; - this.SendPropertyChanged("MultipleSiteNext"); - this.OnMultipleSiteNextChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MultipleDesktopInput", DbType="Decimal(18,2)")] - public System.Nullable MultipleDesktopInput - { - get - { - return this._MultipleDesktopInput; - } - set - { - if ((this._MultipleDesktopInput != value)) - { - this.OnMultipleDesktopInputChanging(value); - this.SendPropertyChanging(); - this._MultipleDesktopInput = value; - this.SendPropertyChanged("MultipleDesktopInput"); - this.OnMultipleDesktopInputChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MultipleDesktopPerson", DbType="Int")] - public System.Nullable MultipleDesktopPerson - { - get - { - return this._MultipleDesktopPerson; - } - set - { - if ((this._MultipleDesktopPerson != value)) - { - this.OnMultipleDesktopPersonChanging(value); - this.SendPropertyChanging(); - this._MultipleDesktopPerson = value; - this.SendPropertyChanged("MultipleDesktopPerson"); - this.OnMultipleDesktopPersonChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MultipleDesktopNum", DbType="Int")] - public System.Nullable MultipleDesktopNum - { - get - { - return this._MultipleDesktopNum; - } - set - { - if ((this._MultipleDesktopNum != value)) - { - this.OnMultipleDesktopNumChanging(value); - this.SendPropertyChanging(); - this._MultipleDesktopNum = value; - this.SendPropertyChanged("MultipleDesktopNum"); - this.OnMultipleDesktopNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MultipleDesktopTotalNum", DbType="Int")] - public System.Nullable MultipleDesktopTotalNum - { - get - { - return this._MultipleDesktopTotalNum; - } - set - { - if ((this._MultipleDesktopTotalNum != value)) - { - this.OnMultipleDesktopTotalNumChanging(value); - this.SendPropertyChanging(); - this._MultipleDesktopTotalNum = value; - this.SendPropertyChanged("MultipleDesktopTotalNum"); - this.OnMultipleDesktopTotalNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MultipleDesktopNext", DbType="NVarChar(500)")] - public string MultipleDesktopNext - { - get - { - return this._MultipleDesktopNext; - } - set - { - if ((this._MultipleDesktopNext != value)) - { - this.OnMultipleDesktopNextChanging(value); - this.SendPropertyChanging(); - this._MultipleDesktopNext = value; - this.SendPropertyChanged("MultipleDesktopNext"); - this.OnMultipleDesktopNextChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleSiteInput", DbType="Decimal(18,2)")] - public System.Nullable SingleSiteInput - { - get - { - return this._SingleSiteInput; - } - set - { - if ((this._SingleSiteInput != value)) - { - this.OnSingleSiteInputChanging(value); - this.SendPropertyChanging(); - this._SingleSiteInput = value; - this.SendPropertyChanged("SingleSiteInput"); - this.OnSingleSiteInputChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleSitePerson", DbType="Int")] - public System.Nullable SingleSitePerson - { - get - { - return this._SingleSitePerson; - } - set - { - if ((this._SingleSitePerson != value)) - { - this.OnSingleSitePersonChanging(value); - this.SendPropertyChanging(); - this._SingleSitePerson = value; - this.SendPropertyChanged("SingleSitePerson"); - this.OnSingleSitePersonChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleSiteNum", DbType="Int")] - public System.Nullable SingleSiteNum - { - get - { - return this._SingleSiteNum; - } - set - { - if ((this._SingleSiteNum != value)) - { - this.OnSingleSiteNumChanging(value); - this.SendPropertyChanging(); - this._SingleSiteNum = value; - this.SendPropertyChanged("SingleSiteNum"); - this.OnSingleSiteNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleSiteTotalNum", DbType="Int")] - public System.Nullable SingleSiteTotalNum - { - get - { - return this._SingleSiteTotalNum; - } - set - { - if ((this._SingleSiteTotalNum != value)) - { - this.OnSingleSiteTotalNumChanging(value); - this.SendPropertyChanging(); - this._SingleSiteTotalNum = value; - this.SendPropertyChanged("SingleSiteTotalNum"); - this.OnSingleSiteTotalNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleSiteNext", DbType="NVarChar(500)")] - public string SingleSiteNext - { - get - { - return this._SingleSiteNext; - } - set - { - if ((this._SingleSiteNext != value)) - { - this.OnSingleSiteNextChanging(value); - this.SendPropertyChanging(); - this._SingleSiteNext = value; - this.SendPropertyChanged("SingleSiteNext"); - this.OnSingleSiteNextChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleDesktopInput", DbType="Decimal(18,2)")] - public System.Nullable SingleDesktopInput - { - get - { - return this._SingleDesktopInput; - } - set - { - if ((this._SingleDesktopInput != value)) - { - this.OnSingleDesktopInputChanging(value); - this.SendPropertyChanging(); - this._SingleDesktopInput = value; - this.SendPropertyChanged("SingleDesktopInput"); - this.OnSingleDesktopInputChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleDesktopPerson", DbType="Int")] - public System.Nullable SingleDesktopPerson - { - get - { - return this._SingleDesktopPerson; - } - set - { - if ((this._SingleDesktopPerson != value)) - { - this.OnSingleDesktopPersonChanging(value); - this.SendPropertyChanging(); - this._SingleDesktopPerson = value; - this.SendPropertyChanged("SingleDesktopPerson"); - this.OnSingleDesktopPersonChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleDesktopNum", DbType="Int")] - public System.Nullable SingleDesktopNum - { - get - { - return this._SingleDesktopNum; - } - set - { - if ((this._SingleDesktopNum != value)) - { - this.OnSingleDesktopNumChanging(value); - this.SendPropertyChanging(); - this._SingleDesktopNum = value; - this.SendPropertyChanged("SingleDesktopNum"); - this.OnSingleDesktopNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleDesktopTotalNum", DbType="Int")] - public System.Nullable SingleDesktopTotalNum - { - get - { - return this._SingleDesktopTotalNum; - } - set - { - if ((this._SingleDesktopTotalNum != value)) - { - this.OnSingleDesktopTotalNumChanging(value); - this.SendPropertyChanging(); - this._SingleDesktopTotalNum = value; - this.SendPropertyChanged("SingleDesktopTotalNum"); - this.OnSingleDesktopTotalNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleDesktopNext", DbType="NVarChar(500)")] - public string SingleDesktopNext - { - get - { - return this._SingleDesktopNext; - } - set - { - if ((this._SingleDesktopNext != value)) - { - this.OnSingleDesktopNextChanging(value); - this.SendPropertyChanging(); - this._SingleDesktopNext = value; - this.SendPropertyChanged("SingleDesktopNext"); - this.OnSingleDesktopNextChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport12_SeDin_MonthReport12", Storage="_SeDin_MonthReport", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] - public SeDin_MonthReport SeDin_MonthReport - { - get - { - return this._SeDin_MonthReport.Entity; - } - set - { - SeDin_MonthReport previousValue = this._SeDin_MonthReport.Entity; - if (((previousValue != value) - || (this._SeDin_MonthReport.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._SeDin_MonthReport.Entity = null; - previousValue.SeDin_MonthReport12.Remove(this); - } - this._SeDin_MonthReport.Entity = value; - if ((value != null)) - { - value.SeDin_MonthReport12.Add(this); - this._MonthReportId = value.MonthReportId; - } - else - { - this._MonthReportId = default(string); - } - this.SendPropertyChanged("SeDin_MonthReport"); - } - } - } - - 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.SeDin_MonthReport2")] - public partial class SeDin_MonthReport2 : INotifyPropertyChanging, INotifyPropertyChanged - { - - private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - - private string _MonthReport2Id; - - private string _MonthReportId; - - private System.Nullable _MonthWorkTime; - - private System.Nullable _YearWorkTime; - - private System.Nullable _ProjectWorkTime; - - private System.Nullable _TotalLostTime; - - private string _MillionLossRate; - - private string _TimeAccuracyRate; - - private System.Nullable _StartDate; - - private System.Nullable _EndDate; - - private System.Nullable _SafeWorkTime; - - private EntityRef _SeDin_MonthReport; - - #region 可扩展性方法定义 - partial void OnLoaded(); - partial void OnValidate(System.Data.Linq.ChangeAction action); - partial void OnCreated(); - partial void OnMonthReport2IdChanging(string value); - partial void OnMonthReport2IdChanged(); - partial void OnMonthReportIdChanging(string value); - partial void OnMonthReportIdChanged(); - partial void OnMonthWorkTimeChanging(System.Nullable value); - partial void OnMonthWorkTimeChanged(); - partial void OnYearWorkTimeChanging(System.Nullable value); - partial void OnYearWorkTimeChanged(); - partial void OnProjectWorkTimeChanging(System.Nullable value); - partial void OnProjectWorkTimeChanged(); - partial void OnTotalLostTimeChanging(System.Nullable value); - partial void OnTotalLostTimeChanged(); - partial void OnMillionLossRateChanging(string value); - partial void OnMillionLossRateChanged(); - partial void OnTimeAccuracyRateChanging(string value); - partial void OnTimeAccuracyRateChanged(); - partial void OnStartDateChanging(System.Nullable value); - partial void OnStartDateChanged(); - partial void OnEndDateChanging(System.Nullable value); - partial void OnEndDateChanged(); - partial void OnSafeWorkTimeChanging(System.Nullable value); - partial void OnSafeWorkTimeChanged(); - #endregion - - public SeDin_MonthReport2() - { - this._SeDin_MonthReport = default(EntityRef); - OnCreated(); - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReport2Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string MonthReport2Id - { - get - { - return this._MonthReport2Id; - } - set - { - if ((this._MonthReport2Id != value)) - { - this.OnMonthReport2IdChanging(value); - this.SendPropertyChanging(); - this._MonthReport2Id = value; - this.SendPropertyChanged("MonthReport2Id"); - this.OnMonthReport2IdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] - public string MonthReportId - { - get - { - return this._MonthReportId; - } - set - { - if ((this._MonthReportId != value)) - { - if (this._SeDin_MonthReport.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } - this.OnMonthReportIdChanging(value); - this.SendPropertyChanging(); - this._MonthReportId = value; - this.SendPropertyChanged("MonthReportId"); - this.OnMonthReportIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthWorkTime", DbType="Decimal(18,2)")] - public System.Nullable MonthWorkTime - { - get - { - return this._MonthWorkTime; - } - set - { - if ((this._MonthWorkTime != value)) - { - this.OnMonthWorkTimeChanging(value); - this.SendPropertyChanging(); - this._MonthWorkTime = value; - this.SendPropertyChanged("MonthWorkTime"); - this.OnMonthWorkTimeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_YearWorkTime", DbType="Decimal(18,2)")] - public System.Nullable YearWorkTime - { - get - { - return this._YearWorkTime; - } - set - { - if ((this._YearWorkTime != value)) - { - this.OnYearWorkTimeChanging(value); - this.SendPropertyChanging(); - this._YearWorkTime = value; - this.SendPropertyChanged("YearWorkTime"); - this.OnYearWorkTimeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectWorkTime", DbType="Decimal(18,2)")] - public System.Nullable ProjectWorkTime - { - get - { - return this._ProjectWorkTime; - } - set - { - if ((this._ProjectWorkTime != value)) - { - this.OnProjectWorkTimeChanging(value); - this.SendPropertyChanging(); - this._ProjectWorkTime = value; - this.SendPropertyChanged("ProjectWorkTime"); - this.OnProjectWorkTimeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalLostTime", DbType="Decimal(18,2)")] - public System.Nullable TotalLostTime - { - get - { - return this._TotalLostTime; - } - set - { - if ((this._TotalLostTime != value)) - { - this.OnTotalLostTimeChanging(value); - this.SendPropertyChanging(); - this._TotalLostTime = value; - this.SendPropertyChanged("TotalLostTime"); - this.OnTotalLostTimeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MillionLossRate", DbType="NVarChar(50)")] - public string MillionLossRate - { - get - { - return this._MillionLossRate; - } - set - { - if ((this._MillionLossRate != value)) - { - this.OnMillionLossRateChanging(value); - this.SendPropertyChanging(); - this._MillionLossRate = value; - this.SendPropertyChanged("MillionLossRate"); - this.OnMillionLossRateChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TimeAccuracyRate", DbType="NVarChar(50)")] - public string TimeAccuracyRate - { - get - { - return this._TimeAccuracyRate; - } - set - { - if ((this._TimeAccuracyRate != value)) - { - this.OnTimeAccuracyRateChanging(value); - this.SendPropertyChanging(); - this._TimeAccuracyRate = value; - this.SendPropertyChanged("TimeAccuracyRate"); - this.OnTimeAccuracyRateChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StartDate", DbType="DateTime")] - public System.Nullable StartDate - { - get - { - return this._StartDate; - } - set - { - if ((this._StartDate != value)) - { - this.OnStartDateChanging(value); - this.SendPropertyChanging(); - this._StartDate = value; - this.SendPropertyChanged("StartDate"); - this.OnStartDateChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EndDate", DbType="DateTime")] - public System.Nullable EndDate - { - get - { - return this._EndDate; - } - set - { - if ((this._EndDate != value)) - { - this.OnEndDateChanging(value); - this.SendPropertyChanging(); - this._EndDate = value; - this.SendPropertyChanged("EndDate"); - this.OnEndDateChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafeWorkTime", DbType="Decimal(18,2)")] - public System.Nullable SafeWorkTime - { - get - { - return this._SafeWorkTime; - } - set - { - if ((this._SafeWorkTime != value)) - { - this.OnSafeWorkTimeChanging(value); - this.SendPropertyChanging(); - this._SafeWorkTime = value; - this.SendPropertyChanged("SafeWorkTime"); - this.OnSafeWorkTimeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport2_SeDin_MonthReport2", Storage="_SeDin_MonthReport", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] - public SeDin_MonthReport SeDin_MonthReport - { - get - { - return this._SeDin_MonthReport.Entity; - } - set - { - SeDin_MonthReport previousValue = this._SeDin_MonthReport.Entity; - if (((previousValue != value) - || (this._SeDin_MonthReport.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._SeDin_MonthReport.Entity = null; - previousValue.SeDin_MonthReport2.Remove(this); - } - this._SeDin_MonthReport.Entity = value; - if ((value != null)) - { - value.SeDin_MonthReport2.Add(this); - this._MonthReportId = value.MonthReportId; - } - else - { - this._MonthReportId = default(string); - } - this.SendPropertyChanged("SeDin_MonthReport"); - } - } - } - - 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.SeDin_MonthReport3")] - public partial class SeDin_MonthReport3 : INotifyPropertyChanging, INotifyPropertyChanged - { - - private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - - private string _MonthReport3Id; - - private string _MonthReportId; - - private string _BigType; - - private string _AccidentType; - - private System.Nullable _SortIndex; - - private System.Nullable _MonthTimes; - - private System.Nullable _TotalTimes; - - private System.Nullable _MonthLossTime; - - private System.Nullable _TotalLossTime; - - private System.Nullable _MonthMoney; - - private System.Nullable _TotalMoney; - - private System.Nullable _MonthPersons; - - private System.Nullable _TotalPersons; - - private EntityRef _SeDin_MonthReport; - - #region 可扩展性方法定义 - partial void OnLoaded(); - partial void OnValidate(System.Data.Linq.ChangeAction action); - partial void OnCreated(); - partial void OnMonthReport3IdChanging(string value); - partial void OnMonthReport3IdChanged(); - partial void OnMonthReportIdChanging(string value); - partial void OnMonthReportIdChanged(); - partial void OnBigTypeChanging(string value); - partial void OnBigTypeChanged(); - partial void OnAccidentTypeChanging(string value); - partial void OnAccidentTypeChanged(); - partial void OnSortIndexChanging(System.Nullable value); - partial void OnSortIndexChanged(); - partial void OnMonthTimesChanging(System.Nullable value); - partial void OnMonthTimesChanged(); - partial void OnTotalTimesChanging(System.Nullable value); - partial void OnTotalTimesChanged(); - partial void OnMonthLossTimeChanging(System.Nullable value); - partial void OnMonthLossTimeChanged(); - partial void OnTotalLossTimeChanging(System.Nullable value); - partial void OnTotalLossTimeChanged(); - partial void OnMonthMoneyChanging(System.Nullable value); - partial void OnMonthMoneyChanged(); - partial void OnTotalMoneyChanging(System.Nullable value); - partial void OnTotalMoneyChanged(); - partial void OnMonthPersonsChanging(System.Nullable value); - partial void OnMonthPersonsChanged(); - partial void OnTotalPersonsChanging(System.Nullable value); - partial void OnTotalPersonsChanged(); - #endregion - - public SeDin_MonthReport3() - { - this._SeDin_MonthReport = default(EntityRef); - OnCreated(); - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReport3Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string MonthReport3Id - { - get - { - return this._MonthReport3Id; - } - set - { - if ((this._MonthReport3Id != value)) - { - this.OnMonthReport3IdChanging(value); - this.SendPropertyChanging(); - this._MonthReport3Id = value; - this.SendPropertyChanged("MonthReport3Id"); - this.OnMonthReport3IdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] - public string MonthReportId - { - get - { - return this._MonthReportId; - } - set - { - if ((this._MonthReportId != value)) - { - if (this._SeDin_MonthReport.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } - this.OnMonthReportIdChanging(value); - this.SendPropertyChanging(); - this._MonthReportId = value; - this.SendPropertyChanged("MonthReportId"); - this.OnMonthReportIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BigType", DbType="NVarChar(50)")] - public string BigType - { - get - { - return this._BigType; - } - set - { - if ((this._BigType != value)) - { - this.OnBigTypeChanging(value); - this.SendPropertyChanging(); - this._BigType = value; - this.SendPropertyChanged("BigType"); - this.OnBigTypeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccidentType", DbType="NVarChar(50)")] - public string AccidentType - { - get - { - return this._AccidentType; - } - set - { - if ((this._AccidentType != value)) - { - this.OnAccidentTypeChanging(value); - this.SendPropertyChanging(); - this._AccidentType = value; - this.SendPropertyChanged("AccidentType"); - this.OnAccidentTypeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SortIndex", DbType="Int")] - public System.Nullable SortIndex - { - get - { - return this._SortIndex; - } - set - { - if ((this._SortIndex != value)) - { - this.OnSortIndexChanging(value); - this.SendPropertyChanging(); - this._SortIndex = value; - this.SendPropertyChanged("SortIndex"); - this.OnSortIndexChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthTimes", DbType="Int")] - public System.Nullable MonthTimes - { - get - { - return this._MonthTimes; - } - set - { - if ((this._MonthTimes != value)) - { - this.OnMonthTimesChanging(value); - this.SendPropertyChanging(); - this._MonthTimes = value; - this.SendPropertyChanged("MonthTimes"); - this.OnMonthTimesChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalTimes", DbType="Int")] - public System.Nullable TotalTimes - { - get - { - return this._TotalTimes; - } - set - { - if ((this._TotalTimes != value)) - { - this.OnTotalTimesChanging(value); - this.SendPropertyChanging(); - this._TotalTimes = value; - this.SendPropertyChanged("TotalTimes"); - this.OnTotalTimesChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthLossTime", DbType="Decimal(18,2)")] - public System.Nullable MonthLossTime - { - get - { - return this._MonthLossTime; - } - set - { - if ((this._MonthLossTime != value)) - { - this.OnMonthLossTimeChanging(value); - this.SendPropertyChanging(); - this._MonthLossTime = value; - this.SendPropertyChanged("MonthLossTime"); - this.OnMonthLossTimeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalLossTime", DbType="Decimal(18,2)")] - public System.Nullable TotalLossTime - { - get - { - return this._TotalLossTime; - } - set - { - if ((this._TotalLossTime != value)) - { - this.OnTotalLossTimeChanging(value); - this.SendPropertyChanging(); - this._TotalLossTime = value; - this.SendPropertyChanged("TotalLossTime"); - this.OnTotalLossTimeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthMoney", DbType="Decimal(18,2)")] - public System.Nullable MonthMoney - { - get - { - return this._MonthMoney; - } - set - { - if ((this._MonthMoney != value)) - { - this.OnMonthMoneyChanging(value); - this.SendPropertyChanging(); - this._MonthMoney = value; - this.SendPropertyChanged("MonthMoney"); - this.OnMonthMoneyChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalMoney", DbType="Decimal(18,2)")] - public System.Nullable TotalMoney - { - get - { - return this._TotalMoney; - } - set - { - if ((this._TotalMoney != value)) - { - this.OnTotalMoneyChanging(value); - this.SendPropertyChanging(); - this._TotalMoney = value; - this.SendPropertyChanged("TotalMoney"); - this.OnTotalMoneyChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthPersons", DbType="Int")] - public System.Nullable MonthPersons - { - get - { - return this._MonthPersons; - } - set - { - if ((this._MonthPersons != value)) - { - this.OnMonthPersonsChanging(value); - this.SendPropertyChanging(); - this._MonthPersons = value; - this.SendPropertyChanged("MonthPersons"); - this.OnMonthPersonsChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalPersons", DbType="Int")] - public System.Nullable TotalPersons - { - get - { - return this._TotalPersons; - } - set - { - if ((this._TotalPersons != value)) - { - this.OnTotalPersonsChanging(value); - this.SendPropertyChanging(); - this._TotalPersons = value; - this.SendPropertyChanged("TotalPersons"); - this.OnTotalPersonsChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport3_SeDin_MonthReport3", Storage="_SeDin_MonthReport", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] - public SeDin_MonthReport SeDin_MonthReport - { - get - { - return this._SeDin_MonthReport.Entity; - } - set - { - SeDin_MonthReport previousValue = this._SeDin_MonthReport.Entity; - if (((previousValue != value) - || (this._SeDin_MonthReport.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._SeDin_MonthReport.Entity = null; - previousValue.SeDin_MonthReport3.Remove(this); - } - this._SeDin_MonthReport.Entity = value; - if ((value != null)) - { - value.SeDin_MonthReport3.Add(this); - this._MonthReportId = value.MonthReportId; - } - else - { - this._MonthReportId = default(string); - } - this.SendPropertyChanged("SeDin_MonthReport"); - } - } - } - - 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.SeDin_MonthReport4")] - public partial class SeDin_MonthReport4 : INotifyPropertyChanging, INotifyPropertyChanged - { - - private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - - private string _MonthReport4Id; - - private string _MonthReportId; - - private string _UnitName; - - private System.Nullable _SafeManangerNum; - - private System.Nullable _OtherManangerNum; - - private System.Nullable _SpecialWorkerNum; - - private System.Nullable _GeneralWorkerNum; - - private System.Nullable _TotalNum; - - private EntityRef _SeDin_MonthReport; - - #region 可扩展性方法定义 - partial void OnLoaded(); - partial void OnValidate(System.Data.Linq.ChangeAction action); - partial void OnCreated(); - partial void OnMonthReport4IdChanging(string value); - partial void OnMonthReport4IdChanged(); - partial void OnMonthReportIdChanging(string value); - partial void OnMonthReportIdChanged(); - partial void OnUnitNameChanging(string value); - partial void OnUnitNameChanged(); - partial void OnSafeManangerNumChanging(System.Nullable value); - partial void OnSafeManangerNumChanged(); - partial void OnOtherManangerNumChanging(System.Nullable value); - partial void OnOtherManangerNumChanged(); - partial void OnSpecialWorkerNumChanging(System.Nullable value); - partial void OnSpecialWorkerNumChanged(); - partial void OnGeneralWorkerNumChanging(System.Nullable value); - partial void OnGeneralWorkerNumChanged(); - partial void OnTotalNumChanging(System.Nullable value); - partial void OnTotalNumChanged(); - #endregion - - public SeDin_MonthReport4() - { - this._SeDin_MonthReport = default(EntityRef); - OnCreated(); - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReport4Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string MonthReport4Id - { - get - { - return this._MonthReport4Id; - } - set - { - if ((this._MonthReport4Id != value)) - { - this.OnMonthReport4IdChanging(value); - this.SendPropertyChanging(); - this._MonthReport4Id = value; - this.SendPropertyChanged("MonthReport4Id"); - this.OnMonthReport4IdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] - public string MonthReportId - { - get - { - return this._MonthReportId; - } - set - { - if ((this._MonthReportId != value)) - { - if (this._SeDin_MonthReport.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } - this.OnMonthReportIdChanging(value); - this.SendPropertyChanging(); - this._MonthReportId = value; - this.SendPropertyChanged("MonthReportId"); - this.OnMonthReportIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitName", DbType="NVarChar(50)")] - public string UnitName - { - get - { - return this._UnitName; - } - set - { - if ((this._UnitName != value)) - { - this.OnUnitNameChanging(value); - this.SendPropertyChanging(); - this._UnitName = value; - this.SendPropertyChanged("UnitName"); - this.OnUnitNameChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafeManangerNum", DbType="Int")] - public System.Nullable SafeManangerNum - { - get - { - return this._SafeManangerNum; - } - set - { - if ((this._SafeManangerNum != value)) - { - this.OnSafeManangerNumChanging(value); - this.SendPropertyChanging(); - this._SafeManangerNum = value; - this.SendPropertyChanged("SafeManangerNum"); - this.OnSafeManangerNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OtherManangerNum", DbType="Int")] - public System.Nullable OtherManangerNum - { - get - { - return this._OtherManangerNum; - } - set - { - if ((this._OtherManangerNum != value)) - { - this.OnOtherManangerNumChanging(value); - this.SendPropertyChanging(); - this._OtherManangerNum = value; - this.SendPropertyChanged("OtherManangerNum"); - this.OnOtherManangerNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialWorkerNum", DbType="Int")] - public System.Nullable SpecialWorkerNum - { - get - { - return this._SpecialWorkerNum; - } - set - { - if ((this._SpecialWorkerNum != value)) - { - this.OnSpecialWorkerNumChanging(value); - this.SendPropertyChanging(); - this._SpecialWorkerNum = value; - this.SendPropertyChanged("SpecialWorkerNum"); - this.OnSpecialWorkerNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GeneralWorkerNum", DbType="Int")] - public System.Nullable GeneralWorkerNum - { - get - { - return this._GeneralWorkerNum; - } - set - { - if ((this._GeneralWorkerNum != value)) - { - this.OnGeneralWorkerNumChanging(value); - this.SendPropertyChanging(); - this._GeneralWorkerNum = value; - this.SendPropertyChanged("GeneralWorkerNum"); - this.OnGeneralWorkerNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalNum", DbType="Int")] - public System.Nullable TotalNum - { - get - { - return this._TotalNum; - } - set - { - if ((this._TotalNum != value)) - { - this.OnTotalNumChanging(value); - this.SendPropertyChanging(); - this._TotalNum = value; - this.SendPropertyChanged("TotalNum"); - this.OnTotalNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport4_SeDin_MonthReport4", Storage="_SeDin_MonthReport", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] - public SeDin_MonthReport SeDin_MonthReport - { - get - { - return this._SeDin_MonthReport.Entity; - } - set - { - SeDin_MonthReport previousValue = this._SeDin_MonthReport.Entity; - if (((previousValue != value) - || (this._SeDin_MonthReport.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._SeDin_MonthReport.Entity = null; - previousValue.SeDin_MonthReport4.Remove(this); - } - this._SeDin_MonthReport.Entity = value; - if ((value != null)) - { - value.SeDin_MonthReport4.Add(this); - this._MonthReportId = value.MonthReportId; - } - else - { - this._MonthReportId = default(string); - } - this.SendPropertyChanged("SeDin_MonthReport"); - } - } - } - - 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.SeDin_MonthReport4Other")] - public partial class SeDin_MonthReport4Other : INotifyPropertyChanging, INotifyPropertyChanged - { - - private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - - private string _MonthReport4OtherId; - - private string _MonthReportId; - - private System.Nullable _FormalNum; - - private System.Nullable _ForeignNum; - - private System.Nullable _OutsideNum; - - private System.Nullable _ManagerNum; - - private System.Nullable _TotalNum; - - private EntityRef _SeDin_MonthReport; - - #region 可扩展性方法定义 - partial void OnLoaded(); - partial void OnValidate(System.Data.Linq.ChangeAction action); - partial void OnCreated(); - partial void OnMonthReport4OtherIdChanging(string value); - partial void OnMonthReport4OtherIdChanged(); - partial void OnMonthReportIdChanging(string value); - partial void OnMonthReportIdChanged(); - partial void OnFormalNumChanging(System.Nullable value); - partial void OnFormalNumChanged(); - partial void OnForeignNumChanging(System.Nullable value); - partial void OnForeignNumChanged(); - partial void OnOutsideNumChanging(System.Nullable value); - partial void OnOutsideNumChanged(); - partial void OnManagerNumChanging(System.Nullable value); - partial void OnManagerNumChanged(); - partial void OnTotalNumChanging(System.Nullable value); - partial void OnTotalNumChanged(); - #endregion - - public SeDin_MonthReport4Other() - { - this._SeDin_MonthReport = default(EntityRef); - OnCreated(); - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReport4OtherId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string MonthReport4OtherId - { - get - { - return this._MonthReport4OtherId; - } - set - { - if ((this._MonthReport4OtherId != value)) - { - this.OnMonthReport4OtherIdChanging(value); - this.SendPropertyChanging(); - this._MonthReport4OtherId = value; - this.SendPropertyChanged("MonthReport4OtherId"); - this.OnMonthReport4OtherIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] - public string MonthReportId - { - get - { - return this._MonthReportId; - } - set - { - if ((this._MonthReportId != value)) - { - if (this._SeDin_MonthReport.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } - this.OnMonthReportIdChanging(value); - this.SendPropertyChanging(); - this._MonthReportId = value; - this.SendPropertyChanged("MonthReportId"); - this.OnMonthReportIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FormalNum", DbType="Int")] - public System.Nullable FormalNum - { - get - { - return this._FormalNum; - } - set - { - if ((this._FormalNum != value)) - { - this.OnFormalNumChanging(value); - this.SendPropertyChanging(); - this._FormalNum = value; - this.SendPropertyChanged("FormalNum"); - this.OnFormalNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ForeignNum", DbType="Int")] - public System.Nullable ForeignNum - { - get - { - return this._ForeignNum; - } - set - { - if ((this._ForeignNum != value)) - { - this.OnForeignNumChanging(value); - this.SendPropertyChanging(); - this._ForeignNum = value; - this.SendPropertyChanged("ForeignNum"); - this.OnForeignNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OutsideNum", DbType="Int")] - public System.Nullable OutsideNum - { - get - { - return this._OutsideNum; - } - set - { - if ((this._OutsideNum != value)) - { - this.OnOutsideNumChanging(value); - this.SendPropertyChanging(); - this._OutsideNum = value; - this.SendPropertyChanged("OutsideNum"); - this.OnOutsideNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ManagerNum", DbType="Int")] - public System.Nullable ManagerNum - { - get - { - return this._ManagerNum; - } - set - { - if ((this._ManagerNum != value)) - { - this.OnManagerNumChanging(value); - this.SendPropertyChanging(); - this._ManagerNum = value; - this.SendPropertyChanged("ManagerNum"); - this.OnManagerNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalNum", DbType="Int")] - public System.Nullable TotalNum - { - get - { - return this._TotalNum; - } - set - { - if ((this._TotalNum != value)) - { - this.OnTotalNumChanging(value); - this.SendPropertyChanging(); - this._TotalNum = value; - this.SendPropertyChanged("TotalNum"); - this.OnTotalNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport4Other_SeDin_MonthReport4Other", Storage="_SeDin_MonthReport", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] - public SeDin_MonthReport SeDin_MonthReport - { - get - { - return this._SeDin_MonthReport.Entity; - } - set - { - SeDin_MonthReport previousValue = this._SeDin_MonthReport.Entity; - if (((previousValue != value) - || (this._SeDin_MonthReport.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._SeDin_MonthReport.Entity = null; - previousValue.SeDin_MonthReport4Other.Remove(this); - } - this._SeDin_MonthReport.Entity = value; - if ((value != null)) - { - value.SeDin_MonthReport4Other.Add(this); - this._MonthReportId = value.MonthReportId; - } - else - { - this._MonthReportId = default(string); - } - this.SendPropertyChanged("SeDin_MonthReport"); - } - } - } - - 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.SeDin_MonthReport5")] - public partial class SeDin_MonthReport5 : INotifyPropertyChanging, INotifyPropertyChanged - { - - private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - - private string _MonthReport5Id; - - private string _MonthReportId; - - private string _UnitName; - - private System.Nullable _T01; - - private System.Nullable _T02; - - private System.Nullable _T03; - - private System.Nullable _T04; - - private System.Nullable _T05; - - private System.Nullable _T06; - - private System.Nullable _D01; - - private System.Nullable _D02; - - private System.Nullable _D03; - - private System.Nullable _D04; - - private System.Nullable _S01; - - private EntityRef _SeDin_MonthReport; - - #region 可扩展性方法定义 - partial void OnLoaded(); - partial void OnValidate(System.Data.Linq.ChangeAction action); - partial void OnCreated(); - partial void OnMonthReport5IdChanging(string value); - partial void OnMonthReport5IdChanged(); - partial void OnMonthReportIdChanging(string value); - partial void OnMonthReportIdChanged(); - partial void OnUnitNameChanging(string value); - partial void OnUnitNameChanged(); - partial void OnT01Changing(System.Nullable value); - partial void OnT01Changed(); - partial void OnT02Changing(System.Nullable value); - partial void OnT02Changed(); - partial void OnT03Changing(System.Nullable value); - partial void OnT03Changed(); - partial void OnT04Changing(System.Nullable value); - partial void OnT04Changed(); - partial void OnT05Changing(System.Nullable value); - partial void OnT05Changed(); - partial void OnT06Changing(System.Nullable value); - partial void OnT06Changed(); - partial void OnD01Changing(System.Nullable value); - partial void OnD01Changed(); - partial void OnD02Changing(System.Nullable value); - partial void OnD02Changed(); - partial void OnD03Changing(System.Nullable value); - partial void OnD03Changed(); - partial void OnD04Changing(System.Nullable value); - partial void OnD04Changed(); - partial void OnS01Changing(System.Nullable value); - partial void OnS01Changed(); - #endregion - - public SeDin_MonthReport5() - { - this._SeDin_MonthReport = default(EntityRef); - OnCreated(); - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReport5Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string MonthReport5Id - { - get - { - return this._MonthReport5Id; - } - set - { - if ((this._MonthReport5Id != value)) - { - this.OnMonthReport5IdChanging(value); - this.SendPropertyChanging(); - this._MonthReport5Id = value; - this.SendPropertyChanged("MonthReport5Id"); - this.OnMonthReport5IdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] - public string MonthReportId - { - get - { - return this._MonthReportId; - } - set - { - if ((this._MonthReportId != value)) - { - if (this._SeDin_MonthReport.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } - this.OnMonthReportIdChanging(value); - this.SendPropertyChanging(); - this._MonthReportId = value; - this.SendPropertyChanged("MonthReportId"); - this.OnMonthReportIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitName", DbType="NVarChar(50)")] - public string UnitName - { - get - { - return this._UnitName; - } - set - { - if ((this._UnitName != value)) - { - this.OnUnitNameChanging(value); - this.SendPropertyChanging(); - this._UnitName = value; - this.SendPropertyChanged("UnitName"); - this.OnUnitNameChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_T01", DbType="Int")] - public System.Nullable T01 - { - get - { - return this._T01; - } - set - { - if ((this._T01 != value)) - { - this.OnT01Changing(value); - this.SendPropertyChanging(); - this._T01 = value; - this.SendPropertyChanged("T01"); - this.OnT01Changed(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_T02", DbType="Int")] - public System.Nullable T02 - { - get - { - return this._T02; - } - set - { - if ((this._T02 != value)) - { - this.OnT02Changing(value); - this.SendPropertyChanging(); - this._T02 = value; - this.SendPropertyChanged("T02"); - this.OnT02Changed(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_T03", DbType="Int")] - public System.Nullable T03 - { - get - { - return this._T03; - } - set - { - if ((this._T03 != value)) - { - this.OnT03Changing(value); - this.SendPropertyChanging(); - this._T03 = value; - this.SendPropertyChanged("T03"); - this.OnT03Changed(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_T04", DbType="Int")] - public System.Nullable T04 - { - get - { - return this._T04; - } - set - { - if ((this._T04 != value)) - { - this.OnT04Changing(value); - this.SendPropertyChanging(); - this._T04 = value; - this.SendPropertyChanged("T04"); - this.OnT04Changed(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_T05", DbType="Int")] - public System.Nullable T05 - { - get - { - return this._T05; - } - set - { - if ((this._T05 != value)) - { - this.OnT05Changing(value); - this.SendPropertyChanging(); - this._T05 = value; - this.SendPropertyChanged("T05"); - this.OnT05Changed(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_T06", DbType="Int")] - public System.Nullable T06 - { - get - { - return this._T06; - } - set - { - if ((this._T06 != value)) - { - this.OnT06Changing(value); - this.SendPropertyChanging(); - this._T06 = value; - this.SendPropertyChanged("T06"); - this.OnT06Changed(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_D01", DbType="Int")] - public System.Nullable D01 - { - get - { - return this._D01; - } - set - { - if ((this._D01 != value)) - { - this.OnD01Changing(value); - this.SendPropertyChanging(); - this._D01 = value; - this.SendPropertyChanged("D01"); - this.OnD01Changed(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_D02", DbType="Int")] - public System.Nullable D02 - { - get - { - return this._D02; - } - set - { - if ((this._D02 != value)) - { - this.OnD02Changing(value); - this.SendPropertyChanging(); - this._D02 = value; - this.SendPropertyChanged("D02"); - this.OnD02Changed(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_D03", DbType="Int")] - public System.Nullable D03 - { - get - { - return this._D03; - } - set - { - if ((this._D03 != value)) - { - this.OnD03Changing(value); - this.SendPropertyChanging(); - this._D03 = value; - this.SendPropertyChanged("D03"); - this.OnD03Changed(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_D04", DbType="Int")] - public System.Nullable D04 - { - get - { - return this._D04; - } - set - { - if ((this._D04 != value)) - { - this.OnD04Changing(value); - this.SendPropertyChanging(); - this._D04 = value; - this.SendPropertyChanged("D04"); - this.OnD04Changed(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_S01", DbType="Int")] - public System.Nullable S01 - { - get - { - return this._S01; - } - set - { - if ((this._S01 != value)) - { - this.OnS01Changing(value); - this.SendPropertyChanging(); - this._S01 = value; - this.SendPropertyChanged("S01"); - this.OnS01Changed(); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport5_SeDin_MonthReport5", Storage="_SeDin_MonthReport", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] - public SeDin_MonthReport SeDin_MonthReport - { - get - { - return this._SeDin_MonthReport.Entity; - } - set - { - SeDin_MonthReport previousValue = this._SeDin_MonthReport.Entity; - if (((previousValue != value) - || (this._SeDin_MonthReport.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._SeDin_MonthReport.Entity = null; - previousValue.SeDin_MonthReport5.Remove(this); - } - this._SeDin_MonthReport.Entity = value; - if ((value != null)) - { - value.SeDin_MonthReport5.Add(this); - this._MonthReportId = value.MonthReportId; - } - else - { - this._MonthReportId = default(string); - } - this.SendPropertyChanged("SeDin_MonthReport"); - } - } - } - - 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.SeDin_MonthReport6")] - public partial class SeDin_MonthReport6 : INotifyPropertyChanging, INotifyPropertyChanged - { - - private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - - private string _MonthReport6Id; - - private string _MonthReportId; - - private System.Nullable _SafetyMonth; - - private System.Nullable _SafetyYear; - - private System.Nullable _SafetyTotal; - - private System.Nullable _LaborMonth; - - private System.Nullable _LaborYear; - - private System.Nullable _LaborTotal; - - private System.Nullable _ProgressMonth; - - private System.Nullable _ProgressYear; - - private System.Nullable _ProgressTotal; - - private System.Nullable _EducationMonth; - - private System.Nullable _EducationYear; - - private System.Nullable _EducationTotal; - - private System.Nullable _SumMonth; - - private System.Nullable _SumYear; - - private System.Nullable _SumTotal; - - private System.Nullable _ContractMonth; - - private System.Nullable _ContractYear; - - private System.Nullable _ContractTotal; - - private System.Nullable _ConstructionCost; - - private EntityRef _SeDin_MonthReport; - - #region 可扩展性方法定义 - partial void OnLoaded(); - partial void OnValidate(System.Data.Linq.ChangeAction action); - partial void OnCreated(); - partial void OnMonthReport6IdChanging(string value); - partial void OnMonthReport6IdChanged(); - partial void OnMonthReportIdChanging(string value); - partial void OnMonthReportIdChanged(); - partial void OnSafetyMonthChanging(System.Nullable value); - partial void OnSafetyMonthChanged(); - partial void OnSafetyYearChanging(System.Nullable value); - partial void OnSafetyYearChanged(); - partial void OnSafetyTotalChanging(System.Nullable value); - partial void OnSafetyTotalChanged(); - partial void OnLaborMonthChanging(System.Nullable value); - partial void OnLaborMonthChanged(); - partial void OnLaborYearChanging(System.Nullable value); - partial void OnLaborYearChanged(); - partial void OnLaborTotalChanging(System.Nullable value); - partial void OnLaborTotalChanged(); - partial void OnProgressMonthChanging(System.Nullable value); - partial void OnProgressMonthChanged(); - partial void OnProgressYearChanging(System.Nullable value); - partial void OnProgressYearChanged(); - partial void OnProgressTotalChanging(System.Nullable value); - partial void OnProgressTotalChanged(); - partial void OnEducationMonthChanging(System.Nullable value); - partial void OnEducationMonthChanged(); - partial void OnEducationYearChanging(System.Nullable value); - partial void OnEducationYearChanged(); - partial void OnEducationTotalChanging(System.Nullable value); - partial void OnEducationTotalChanged(); - partial void OnSumMonthChanging(System.Nullable value); - partial void OnSumMonthChanged(); - partial void OnSumYearChanging(System.Nullable value); - partial void OnSumYearChanged(); - partial void OnSumTotalChanging(System.Nullable value); - partial void OnSumTotalChanged(); - partial void OnContractMonthChanging(System.Nullable value); - partial void OnContractMonthChanged(); - partial void OnContractYearChanging(System.Nullable value); - partial void OnContractYearChanged(); - partial void OnContractTotalChanging(System.Nullable value); - partial void OnContractTotalChanged(); - partial void OnConstructionCostChanging(System.Nullable value); - partial void OnConstructionCostChanged(); - #endregion - - public SeDin_MonthReport6() - { - this._SeDin_MonthReport = default(EntityRef); - OnCreated(); - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReport6Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string MonthReport6Id - { - get - { - return this._MonthReport6Id; - } - set - { - if ((this._MonthReport6Id != value)) - { - this.OnMonthReport6IdChanging(value); - this.SendPropertyChanging(); - this._MonthReport6Id = value; - this.SendPropertyChanged("MonthReport6Id"); - this.OnMonthReport6IdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] - public string MonthReportId - { - get - { - return this._MonthReportId; - } - set - { - if ((this._MonthReportId != value)) - { - if (this._SeDin_MonthReport.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } - this.OnMonthReportIdChanging(value); - this.SendPropertyChanging(); - this._MonthReportId = value; - this.SendPropertyChanged("MonthReportId"); - this.OnMonthReportIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafetyMonth", DbType="Decimal(18,2)")] - public System.Nullable SafetyMonth - { - get - { - return this._SafetyMonth; - } - set - { - if ((this._SafetyMonth != value)) - { - this.OnSafetyMonthChanging(value); - this.SendPropertyChanging(); - this._SafetyMonth = value; - this.SendPropertyChanged("SafetyMonth"); - this.OnSafetyMonthChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafetyYear", DbType="Decimal(18,2)")] - public System.Nullable SafetyYear - { - get - { - return this._SafetyYear; - } - set - { - if ((this._SafetyYear != value)) - { - this.OnSafetyYearChanging(value); - this.SendPropertyChanging(); - this._SafetyYear = value; - this.SendPropertyChanged("SafetyYear"); - this.OnSafetyYearChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafetyTotal", DbType="Decimal(18,2)")] - public System.Nullable SafetyTotal - { - get - { - return this._SafetyTotal; - } - set - { - if ((this._SafetyTotal != value)) - { - this.OnSafetyTotalChanging(value); - this.SendPropertyChanging(); - this._SafetyTotal = value; - this.SendPropertyChanged("SafetyTotal"); - this.OnSafetyTotalChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LaborMonth", DbType="Decimal(18,2)")] - public System.Nullable LaborMonth - { - get - { - return this._LaborMonth; - } - set - { - if ((this._LaborMonth != value)) - { - this.OnLaborMonthChanging(value); - this.SendPropertyChanging(); - this._LaborMonth = value; - this.SendPropertyChanged("LaborMonth"); - this.OnLaborMonthChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LaborYear", DbType="Decimal(18,2)")] - public System.Nullable LaborYear - { - get - { - return this._LaborYear; - } - set - { - if ((this._LaborYear != value)) - { - this.OnLaborYearChanging(value); - this.SendPropertyChanging(); - this._LaborYear = value; - this.SendPropertyChanged("LaborYear"); - this.OnLaborYearChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LaborTotal", DbType="Decimal(18,2)")] - public System.Nullable LaborTotal - { - get - { - return this._LaborTotal; - } - set - { - if ((this._LaborTotal != value)) - { - this.OnLaborTotalChanging(value); - this.SendPropertyChanging(); - this._LaborTotal = value; - this.SendPropertyChanged("LaborTotal"); - this.OnLaborTotalChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProgressMonth", DbType="Decimal(18,2)")] - public System.Nullable ProgressMonth - { - get - { - return this._ProgressMonth; - } - set - { - if ((this._ProgressMonth != value)) - { - this.OnProgressMonthChanging(value); - this.SendPropertyChanging(); - this._ProgressMonth = value; - this.SendPropertyChanged("ProgressMonth"); - this.OnProgressMonthChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProgressYear", DbType="Decimal(18,2)")] - public System.Nullable ProgressYear - { - get - { - return this._ProgressYear; - } - set - { - if ((this._ProgressYear != value)) - { - this.OnProgressYearChanging(value); - this.SendPropertyChanging(); - this._ProgressYear = value; - this.SendPropertyChanged("ProgressYear"); - this.OnProgressYearChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProgressTotal", DbType="Decimal(18,2)")] - public System.Nullable ProgressTotal - { - get - { - return this._ProgressTotal; - } - set - { - if ((this._ProgressTotal != value)) - { - this.OnProgressTotalChanging(value); - this.SendPropertyChanging(); - this._ProgressTotal = value; - this.SendPropertyChanged("ProgressTotal"); - this.OnProgressTotalChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EducationMonth", DbType="Decimal(18,2)")] - public System.Nullable EducationMonth - { - get - { - return this._EducationMonth; - } - set - { - if ((this._EducationMonth != value)) - { - this.OnEducationMonthChanging(value); - this.SendPropertyChanging(); - this._EducationMonth = value; - this.SendPropertyChanged("EducationMonth"); - this.OnEducationMonthChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EducationYear", DbType="Decimal(18,2)")] - public System.Nullable EducationYear - { - get - { - return this._EducationYear; - } - set - { - if ((this._EducationYear != value)) - { - this.OnEducationYearChanging(value); - this.SendPropertyChanging(); - this._EducationYear = value; - this.SendPropertyChanged("EducationYear"); - this.OnEducationYearChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EducationTotal", DbType="Decimal(18,2)")] - public System.Nullable EducationTotal - { - get - { - return this._EducationTotal; - } - set - { - if ((this._EducationTotal != value)) - { - this.OnEducationTotalChanging(value); - this.SendPropertyChanging(); - this._EducationTotal = value; - this.SendPropertyChanged("EducationTotal"); - this.OnEducationTotalChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SumMonth", DbType="Decimal(18,2)")] - public System.Nullable SumMonth - { - get - { - return this._SumMonth; - } - set - { - if ((this._SumMonth != value)) - { - this.OnSumMonthChanging(value); - this.SendPropertyChanging(); - this._SumMonth = value; - this.SendPropertyChanged("SumMonth"); - this.OnSumMonthChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SumYear", DbType="Decimal(18,2)")] - public System.Nullable SumYear - { - get - { - return this._SumYear; - } - set - { - if ((this._SumYear != value)) - { - this.OnSumYearChanging(value); - this.SendPropertyChanging(); - this._SumYear = value; - this.SendPropertyChanged("SumYear"); - this.OnSumYearChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SumTotal", DbType="Decimal(18,2)")] - public System.Nullable SumTotal - { - get - { - return this._SumTotal; - } - set - { - if ((this._SumTotal != value)) - { - this.OnSumTotalChanging(value); - this.SendPropertyChanging(); - this._SumTotal = value; - this.SendPropertyChanged("SumTotal"); - this.OnSumTotalChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractMonth", DbType="Decimal(18,2)")] - public System.Nullable ContractMonth - { - get - { - return this._ContractMonth; - } - set - { - if ((this._ContractMonth != value)) - { - this.OnContractMonthChanging(value); - this.SendPropertyChanging(); - this._ContractMonth = value; - this.SendPropertyChanged("ContractMonth"); - this.OnContractMonthChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractYear", DbType="Decimal(18,2)")] - public System.Nullable ContractYear - { - get - { - return this._ContractYear; - } - set - { - if ((this._ContractYear != value)) - { - this.OnContractYearChanging(value); - this.SendPropertyChanging(); - this._ContractYear = value; - this.SendPropertyChanged("ContractYear"); - this.OnContractYearChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractTotal", DbType="Decimal(18,2)")] - public System.Nullable ContractTotal - { - get - { - return this._ContractTotal; - } - set - { - if ((this._ContractTotal != value)) - { - this.OnContractTotalChanging(value); - this.SendPropertyChanging(); - this._ContractTotal = value; - this.SendPropertyChanged("ContractTotal"); - this.OnContractTotalChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionCost", DbType="Decimal(18,2)")] - public System.Nullable ConstructionCost - { - get - { - return this._ConstructionCost; - } - set - { - if ((this._ConstructionCost != value)) - { - this.OnConstructionCostChanging(value); - this.SendPropertyChanging(); - this._ConstructionCost = value; - this.SendPropertyChanged("ConstructionCost"); - this.OnConstructionCostChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport6_SeDin_MonthReport6", Storage="_SeDin_MonthReport", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] - public SeDin_MonthReport SeDin_MonthReport - { - get - { - return this._SeDin_MonthReport.Entity; - } - set - { - SeDin_MonthReport previousValue = this._SeDin_MonthReport.Entity; - if (((previousValue != value) - || (this._SeDin_MonthReport.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._SeDin_MonthReport.Entity = null; - previousValue.SeDin_MonthReport6.Remove(this); - } - this._SeDin_MonthReport.Entity = value; - if ((value != null)) - { - value.SeDin_MonthReport6.Add(this); - this._MonthReportId = value.MonthReportId; - } - else - { - this._MonthReportId = default(string); - } - this.SendPropertyChanged("SeDin_MonthReport"); - } - } - } - - 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.SeDin_MonthReport7")] - public partial class SeDin_MonthReport7 : INotifyPropertyChanging, INotifyPropertyChanged - { - - private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - - private string _MonthReport7Id; - - private string _MonthReportId; - - private System.Nullable _SpecialMontNum; - - private System.Nullable _SpecialYearNum; - - private System.Nullable _SpecialTotalNum; - - private System.Nullable _SpecialMontPerson; - - private System.Nullable _SpecialYearPerson; - - private System.Nullable _SpecialTotalPerson; - - private System.Nullable _EmployeeMontNum; - - private System.Nullable _EmployeeYearNum; - - private System.Nullable _EmployeeTotalNum; - - private System.Nullable _EmployeeMontPerson; - - private System.Nullable _EmployeeYearPerson; - - private System.Nullable _EmployeeTotalPerson; - - private EntityRef _SeDin_MonthReport; - - #region 可扩展性方法定义 - partial void OnLoaded(); - partial void OnValidate(System.Data.Linq.ChangeAction action); - partial void OnCreated(); - partial void OnMonthReport7IdChanging(string value); - partial void OnMonthReport7IdChanged(); - partial void OnMonthReportIdChanging(string value); - partial void OnMonthReportIdChanged(); - partial void OnSpecialMontNumChanging(System.Nullable value); - partial void OnSpecialMontNumChanged(); - partial void OnSpecialYearNumChanging(System.Nullable value); - partial void OnSpecialYearNumChanged(); - partial void OnSpecialTotalNumChanging(System.Nullable value); - partial void OnSpecialTotalNumChanged(); - partial void OnSpecialMontPersonChanging(System.Nullable value); - partial void OnSpecialMontPersonChanged(); - partial void OnSpecialYearPersonChanging(System.Nullable value); - partial void OnSpecialYearPersonChanged(); - partial void OnSpecialTotalPersonChanging(System.Nullable value); - partial void OnSpecialTotalPersonChanged(); - partial void OnEmployeeMontNumChanging(System.Nullable value); - partial void OnEmployeeMontNumChanged(); - partial void OnEmployeeYearNumChanging(System.Nullable value); - partial void OnEmployeeYearNumChanged(); - partial void OnEmployeeTotalNumChanging(System.Nullable value); - partial void OnEmployeeTotalNumChanged(); - partial void OnEmployeeMontPersonChanging(System.Nullable value); - partial void OnEmployeeMontPersonChanged(); - partial void OnEmployeeYearPersonChanging(System.Nullable value); - partial void OnEmployeeYearPersonChanged(); - partial void OnEmployeeTotalPersonChanging(System.Nullable value); - partial void OnEmployeeTotalPersonChanged(); - #endregion - - public SeDin_MonthReport7() - { - this._SeDin_MonthReport = default(EntityRef); - OnCreated(); - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReport7Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string MonthReport7Id - { - get - { - return this._MonthReport7Id; - } - set - { - if ((this._MonthReport7Id != value)) - { - this.OnMonthReport7IdChanging(value); - this.SendPropertyChanging(); - this._MonthReport7Id = value; - this.SendPropertyChanged("MonthReport7Id"); - this.OnMonthReport7IdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] - public string MonthReportId - { - get - { - return this._MonthReportId; - } - set - { - if ((this._MonthReportId != value)) - { - if (this._SeDin_MonthReport.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } - this.OnMonthReportIdChanging(value); - this.SendPropertyChanging(); - this._MonthReportId = value; - this.SendPropertyChanged("MonthReportId"); - this.OnMonthReportIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialMontNum", DbType="Int")] - public System.Nullable SpecialMontNum - { - get - { - return this._SpecialMontNum; - } - set - { - if ((this._SpecialMontNum != value)) - { - this.OnSpecialMontNumChanging(value); - this.SendPropertyChanging(); - this._SpecialMontNum = value; - this.SendPropertyChanged("SpecialMontNum"); - this.OnSpecialMontNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialYearNum", DbType="Int")] - public System.Nullable SpecialYearNum - { - get - { - return this._SpecialYearNum; - } - set - { - if ((this._SpecialYearNum != value)) - { - this.OnSpecialYearNumChanging(value); - this.SendPropertyChanging(); - this._SpecialYearNum = value; - this.SendPropertyChanged("SpecialYearNum"); - this.OnSpecialYearNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialTotalNum", DbType="Int")] - public System.Nullable SpecialTotalNum - { - get - { - return this._SpecialTotalNum; - } - set - { - if ((this._SpecialTotalNum != value)) - { - this.OnSpecialTotalNumChanging(value); - this.SendPropertyChanging(); - this._SpecialTotalNum = value; - this.SendPropertyChanged("SpecialTotalNum"); - this.OnSpecialTotalNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialMontPerson", DbType="Int")] - public System.Nullable SpecialMontPerson - { - get - { - return this._SpecialMontPerson; - } - set - { - if ((this._SpecialMontPerson != value)) - { - this.OnSpecialMontPersonChanging(value); - this.SendPropertyChanging(); - this._SpecialMontPerson = value; - this.SendPropertyChanged("SpecialMontPerson"); - this.OnSpecialMontPersonChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialYearPerson", DbType="Int")] - public System.Nullable SpecialYearPerson - { - get - { - return this._SpecialYearPerson; - } - set - { - if ((this._SpecialYearPerson != value)) - { - this.OnSpecialYearPersonChanging(value); - this.SendPropertyChanging(); - this._SpecialYearPerson = value; - this.SendPropertyChanged("SpecialYearPerson"); - this.OnSpecialYearPersonChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialTotalPerson", DbType="Int")] - public System.Nullable SpecialTotalPerson - { - get - { - return this._SpecialTotalPerson; - } - set - { - if ((this._SpecialTotalPerson != value)) - { - this.OnSpecialTotalPersonChanging(value); - this.SendPropertyChanging(); - this._SpecialTotalPerson = value; - this.SendPropertyChanged("SpecialTotalPerson"); - this.OnSpecialTotalPersonChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmployeeMontNum", DbType="Int")] - public System.Nullable EmployeeMontNum - { - get - { - return this._EmployeeMontNum; - } - set - { - if ((this._EmployeeMontNum != value)) - { - this.OnEmployeeMontNumChanging(value); - this.SendPropertyChanging(); - this._EmployeeMontNum = value; - this.SendPropertyChanged("EmployeeMontNum"); - this.OnEmployeeMontNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmployeeYearNum", DbType="Int")] - public System.Nullable EmployeeYearNum - { - get - { - return this._EmployeeYearNum; - } - set - { - if ((this._EmployeeYearNum != value)) - { - this.OnEmployeeYearNumChanging(value); - this.SendPropertyChanging(); - this._EmployeeYearNum = value; - this.SendPropertyChanged("EmployeeYearNum"); - this.OnEmployeeYearNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmployeeTotalNum", DbType="Int")] - public System.Nullable EmployeeTotalNum - { - get - { - return this._EmployeeTotalNum; - } - set - { - if ((this._EmployeeTotalNum != value)) - { - this.OnEmployeeTotalNumChanging(value); - this.SendPropertyChanging(); - this._EmployeeTotalNum = value; - this.SendPropertyChanged("EmployeeTotalNum"); - this.OnEmployeeTotalNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmployeeMontPerson", DbType="Int")] - public System.Nullable EmployeeMontPerson - { - get - { - return this._EmployeeMontPerson; - } - set - { - if ((this._EmployeeMontPerson != value)) - { - this.OnEmployeeMontPersonChanging(value); - this.SendPropertyChanging(); - this._EmployeeMontPerson = value; - this.SendPropertyChanged("EmployeeMontPerson"); - this.OnEmployeeMontPersonChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmployeeYearPerson", DbType="Int")] - public System.Nullable EmployeeYearPerson - { - get - { - return this._EmployeeYearPerson; - } - set - { - if ((this._EmployeeYearPerson != value)) - { - this.OnEmployeeYearPersonChanging(value); - this.SendPropertyChanging(); - this._EmployeeYearPerson = value; - this.SendPropertyChanged("EmployeeYearPerson"); - this.OnEmployeeYearPersonChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmployeeTotalPerson", DbType="Int")] - public System.Nullable EmployeeTotalPerson - { - get - { - return this._EmployeeTotalPerson; - } - set - { - if ((this._EmployeeTotalPerson != value)) - { - this.OnEmployeeTotalPersonChanging(value); - this.SendPropertyChanging(); - this._EmployeeTotalPerson = value; - this.SendPropertyChanged("EmployeeTotalPerson"); - this.OnEmployeeTotalPersonChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport7_SeDin_MonthReport7", Storage="_SeDin_MonthReport", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] - public SeDin_MonthReport SeDin_MonthReport - { - get - { - return this._SeDin_MonthReport.Entity; - } - set - { - SeDin_MonthReport previousValue = this._SeDin_MonthReport.Entity; - if (((previousValue != value) - || (this._SeDin_MonthReport.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._SeDin_MonthReport.Entity = null; - previousValue.SeDin_MonthReport7.Remove(this); - } - this._SeDin_MonthReport.Entity = value; - if ((value != null)) - { - value.SeDin_MonthReport7.Add(this); - this._MonthReportId = value.MonthReportId; - } - else - { - this._MonthReportId = default(string); - } - this.SendPropertyChanged("SeDin_MonthReport"); - } - } - } - - 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.SeDin_MonthReport8")] - public partial class SeDin_MonthReport8 : INotifyPropertyChanging, INotifyPropertyChanged - { - - private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - - private string _MonthReport8Id; - - private string _MonthReportId; - - private System.Nullable _WeekMontNum; - - private System.Nullable _WeekTotalNum; - - private System.Nullable _WeekMontPerson; - - private System.Nullable _MonthMontNum; - - private System.Nullable _MonthTotalNum; - - private System.Nullable _MonthMontPerson; - - private System.Nullable _SpecialMontNum; - - private System.Nullable _SpecialTotalNum; - - private System.Nullable _SpecialMontPerson; - - private EntityRef _SeDin_MonthReport; - - #region 可扩展性方法定义 - partial void OnLoaded(); - partial void OnValidate(System.Data.Linq.ChangeAction action); - partial void OnCreated(); - partial void OnMonthReport8IdChanging(string value); - partial void OnMonthReport8IdChanged(); - partial void OnMonthReportIdChanging(string value); - partial void OnMonthReportIdChanged(); - partial void OnWeekMontNumChanging(System.Nullable value); - partial void OnWeekMontNumChanged(); - partial void OnWeekTotalNumChanging(System.Nullable value); - partial void OnWeekTotalNumChanged(); - partial void OnWeekMontPersonChanging(System.Nullable value); - partial void OnWeekMontPersonChanged(); - partial void OnMonthMontNumChanging(System.Nullable value); - partial void OnMonthMontNumChanged(); - partial void OnMonthTotalNumChanging(System.Nullable value); - partial void OnMonthTotalNumChanged(); - partial void OnMonthMontPersonChanging(System.Nullable value); - partial void OnMonthMontPersonChanged(); - partial void OnSpecialMontNumChanging(System.Nullable value); - partial void OnSpecialMontNumChanged(); - partial void OnSpecialTotalNumChanging(System.Nullable value); - partial void OnSpecialTotalNumChanged(); - partial void OnSpecialMontPersonChanging(System.Nullable value); - partial void OnSpecialMontPersonChanged(); - #endregion - - public SeDin_MonthReport8() - { - this._SeDin_MonthReport = default(EntityRef); - OnCreated(); - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReport8Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string MonthReport8Id - { - get - { - return this._MonthReport8Id; - } - set - { - if ((this._MonthReport8Id != value)) - { - this.OnMonthReport8IdChanging(value); - this.SendPropertyChanging(); - this._MonthReport8Id = value; - this.SendPropertyChanged("MonthReport8Id"); - this.OnMonthReport8IdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] - public string MonthReportId - { - get - { - return this._MonthReportId; - } - set - { - if ((this._MonthReportId != value)) - { - if (this._SeDin_MonthReport.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } - this.OnMonthReportIdChanging(value); - this.SendPropertyChanging(); - this._MonthReportId = value; - this.SendPropertyChanged("MonthReportId"); - this.OnMonthReportIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeekMontNum", DbType="Int")] - public System.Nullable WeekMontNum - { - get - { - return this._WeekMontNum; - } - set - { - if ((this._WeekMontNum != value)) - { - this.OnWeekMontNumChanging(value); - this.SendPropertyChanging(); - this._WeekMontNum = value; - this.SendPropertyChanged("WeekMontNum"); - this.OnWeekMontNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeekTotalNum", DbType="Int")] - public System.Nullable WeekTotalNum - { - get - { - return this._WeekTotalNum; - } - set - { - if ((this._WeekTotalNum != value)) - { - this.OnWeekTotalNumChanging(value); - this.SendPropertyChanging(); - this._WeekTotalNum = value; - this.SendPropertyChanged("WeekTotalNum"); - this.OnWeekTotalNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeekMontPerson", DbType="Int")] - public System.Nullable WeekMontPerson - { - get - { - return this._WeekMontPerson; - } - set - { - if ((this._WeekMontPerson != value)) - { - this.OnWeekMontPersonChanging(value); - this.SendPropertyChanging(); - this._WeekMontPerson = value; - this.SendPropertyChanged("WeekMontPerson"); - this.OnWeekMontPersonChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthMontNum", DbType="Int")] - public System.Nullable MonthMontNum - { - get - { - return this._MonthMontNum; - } - set - { - if ((this._MonthMontNum != value)) - { - this.OnMonthMontNumChanging(value); - this.SendPropertyChanging(); - this._MonthMontNum = value; - this.SendPropertyChanged("MonthMontNum"); - this.OnMonthMontNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthTotalNum", DbType="Int")] - public System.Nullable MonthTotalNum - { - get - { - return this._MonthTotalNum; - } - set - { - if ((this._MonthTotalNum != value)) - { - this.OnMonthTotalNumChanging(value); - this.SendPropertyChanging(); - this._MonthTotalNum = value; - this.SendPropertyChanged("MonthTotalNum"); - this.OnMonthTotalNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthMontPerson", DbType="Int")] - public System.Nullable MonthMontPerson - { - get - { - return this._MonthMontPerson; - } - set - { - if ((this._MonthMontPerson != value)) - { - this.OnMonthMontPersonChanging(value); - this.SendPropertyChanging(); - this._MonthMontPerson = value; - this.SendPropertyChanged("MonthMontPerson"); - this.OnMonthMontPersonChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialMontNum", DbType="Int")] - public System.Nullable SpecialMontNum - { - get - { - return this._SpecialMontNum; - } - set - { - if ((this._SpecialMontNum != value)) - { - this.OnSpecialMontNumChanging(value); - this.SendPropertyChanging(); - this._SpecialMontNum = value; - this.SendPropertyChanged("SpecialMontNum"); - this.OnSpecialMontNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialTotalNum", DbType="Int")] - public System.Nullable SpecialTotalNum - { - get - { - return this._SpecialTotalNum; - } - set - { - if ((this._SpecialTotalNum != value)) - { - this.OnSpecialTotalNumChanging(value); - this.SendPropertyChanging(); - this._SpecialTotalNum = value; - this.SendPropertyChanged("SpecialTotalNum"); - this.OnSpecialTotalNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialMontPerson", DbType="Int")] - public System.Nullable SpecialMontPerson - { - get - { - return this._SpecialMontPerson; - } - set - { - if ((this._SpecialMontPerson != value)) - { - this.OnSpecialMontPersonChanging(value); - this.SendPropertyChanging(); - this._SpecialMontPerson = value; - this.SendPropertyChanged("SpecialMontPerson"); - this.OnSpecialMontPersonChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport8_SeDin_MonthReport8", Storage="_SeDin_MonthReport", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] - public SeDin_MonthReport SeDin_MonthReport - { - get - { - return this._SeDin_MonthReport.Entity; - } - set - { - SeDin_MonthReport previousValue = this._SeDin_MonthReport.Entity; - if (((previousValue != value) - || (this._SeDin_MonthReport.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._SeDin_MonthReport.Entity = null; - previousValue.SeDin_MonthReport8.Remove(this); - } - this._SeDin_MonthReport.Entity = value; - if ((value != null)) - { - value.SeDin_MonthReport8.Add(this); - this._MonthReportId = value.MonthReportId; - } - else - { - this._MonthReportId = default(string); - } - this.SendPropertyChanged("SeDin_MonthReport"); - } - } - } - - 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.SeDin_MonthReport8Item")] - public partial class SeDin_MonthReport8Item : INotifyPropertyChanging, INotifyPropertyChanged - { - - private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - - private string _MonthReport8ItemId; - - private string _MonthReportId; - - private string _UnitName; - - private string _TeamName; - - private System.Nullable _ClassNum; - - private System.Nullable _ClassPersonNum; - - private EntityRef _SeDin_MonthReport; - - #region 可扩展性方法定义 - partial void OnLoaded(); - partial void OnValidate(System.Data.Linq.ChangeAction action); - partial void OnCreated(); - partial void OnMonthReport8ItemIdChanging(string value); - partial void OnMonthReport8ItemIdChanged(); - partial void OnMonthReportIdChanging(string value); - partial void OnMonthReportIdChanged(); - partial void OnUnitNameChanging(string value); - partial void OnUnitNameChanged(); - partial void OnTeamNameChanging(string value); - partial void OnTeamNameChanged(); - partial void OnClassNumChanging(System.Nullable value); - partial void OnClassNumChanged(); - partial void OnClassPersonNumChanging(System.Nullable value); - partial void OnClassPersonNumChanged(); - #endregion - - public SeDin_MonthReport8Item() - { - this._SeDin_MonthReport = default(EntityRef); - OnCreated(); - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReport8ItemId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string MonthReport8ItemId - { - get - { - return this._MonthReport8ItemId; - } - set - { - if ((this._MonthReport8ItemId != value)) - { - this.OnMonthReport8ItemIdChanging(value); - this.SendPropertyChanging(); - this._MonthReport8ItemId = value; - this.SendPropertyChanged("MonthReport8ItemId"); - this.OnMonthReport8ItemIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] - public string MonthReportId - { - get - { - return this._MonthReportId; - } - set - { - if ((this._MonthReportId != value)) - { - if (this._SeDin_MonthReport.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } - this.OnMonthReportIdChanging(value); - this.SendPropertyChanging(); - this._MonthReportId = value; - this.SendPropertyChanged("MonthReportId"); - this.OnMonthReportIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitName", DbType="NVarChar(50)")] - public string UnitName - { - get - { - return this._UnitName; - } - set - { - if ((this._UnitName != value)) - { - this.OnUnitNameChanging(value); - this.SendPropertyChanging(); - this._UnitName = value; - this.SendPropertyChanged("UnitName"); - this.OnUnitNameChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TeamName", DbType="NVarChar(50)")] - public string TeamName - { - get - { - return this._TeamName; - } - set - { - if ((this._TeamName != value)) - { - this.OnTeamNameChanging(value); - this.SendPropertyChanging(); - this._TeamName = value; - this.SendPropertyChanged("TeamName"); - this.OnTeamNameChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ClassNum", DbType="Int")] - public System.Nullable ClassNum - { - get - { - return this._ClassNum; - } - set - { - if ((this._ClassNum != value)) - { - this.OnClassNumChanging(value); - this.SendPropertyChanging(); - this._ClassNum = value; - this.SendPropertyChanged("ClassNum"); - this.OnClassNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ClassPersonNum", DbType="Int")] - public System.Nullable ClassPersonNum - { - get - { - return this._ClassPersonNum; - } - set - { - if ((this._ClassPersonNum != value)) - { - this.OnClassPersonNumChanging(value); - this.SendPropertyChanging(); - this._ClassPersonNum = value; - this.SendPropertyChanged("ClassPersonNum"); - this.OnClassPersonNumChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport8Item_SeDin_MonthReport8Item", Storage="_SeDin_MonthReport", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] - public SeDin_MonthReport SeDin_MonthReport - { - get - { - return this._SeDin_MonthReport.Entity; - } - set - { - SeDin_MonthReport previousValue = this._SeDin_MonthReport.Entity; - if (((previousValue != value) - || (this._SeDin_MonthReport.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._SeDin_MonthReport.Entity = null; - previousValue.SeDin_MonthReport8Item.Remove(this); - } - this._SeDin_MonthReport.Entity = value; - if ((value != null)) - { - value.SeDin_MonthReport8Item.Add(this); - this._MonthReportId = value.MonthReportId; - } - else - { - this._MonthReportId = default(string); - } - this.SendPropertyChanged("SeDin_MonthReport"); - } - } - } - - 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.SeDin_MonthReport9")] - public partial class SeDin_MonthReport9 : INotifyPropertyChanging, INotifyPropertyChanged - { - - private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - - private string _MonthReport9Id; - - private string _MonthReportId; - - private System.Nullable _DailyMonth; - - private System.Nullable _DailyYear; - - private System.Nullable _DailyTotal; - - private System.Nullable _WeekMonth; - - private System.Nullable _WeekYear; - - private System.Nullable _WeekTotal; - - private System.Nullable _SpecialMonth; - - private System.Nullable _SpecialYear; - - private System.Nullable _SpecialTotal; - - private System.Nullable _MonthlyMonth; - - private System.Nullable _MonthlyYear; - - private System.Nullable _MonthlyTotal; - - private EntityRef _SeDin_MonthReport; - - #region 可扩展性方法定义 - partial void OnLoaded(); - partial void OnValidate(System.Data.Linq.ChangeAction action); - partial void OnCreated(); - partial void OnMonthReport9IdChanging(string value); - partial void OnMonthReport9IdChanged(); - partial void OnMonthReportIdChanging(string value); - partial void OnMonthReportIdChanged(); - partial void OnDailyMonthChanging(System.Nullable value); - partial void OnDailyMonthChanged(); - partial void OnDailyYearChanging(System.Nullable value); - partial void OnDailyYearChanged(); - partial void OnDailyTotalChanging(System.Nullable value); - partial void OnDailyTotalChanged(); - partial void OnWeekMonthChanging(System.Nullable value); - partial void OnWeekMonthChanged(); - partial void OnWeekYearChanging(System.Nullable value); - partial void OnWeekYearChanged(); - partial void OnWeekTotalChanging(System.Nullable value); - partial void OnWeekTotalChanged(); - partial void OnSpecialMonthChanging(System.Nullable value); - partial void OnSpecialMonthChanged(); - partial void OnSpecialYearChanging(System.Nullable value); - partial void OnSpecialYearChanged(); - partial void OnSpecialTotalChanging(System.Nullable value); - partial void OnSpecialTotalChanged(); - partial void OnMonthlyMonthChanging(System.Nullable value); - partial void OnMonthlyMonthChanged(); - partial void OnMonthlyYearChanging(System.Nullable value); - partial void OnMonthlyYearChanged(); - partial void OnMonthlyTotalChanging(System.Nullable value); - partial void OnMonthlyTotalChanged(); - #endregion - - public SeDin_MonthReport9() - { - this._SeDin_MonthReport = default(EntityRef); - OnCreated(); - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReport9Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string MonthReport9Id - { - get - { - return this._MonthReport9Id; - } - set - { - if ((this._MonthReport9Id != value)) - { - this.OnMonthReport9IdChanging(value); - this.SendPropertyChanging(); - this._MonthReport9Id = value; - this.SendPropertyChanged("MonthReport9Id"); - this.OnMonthReport9IdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] - public string MonthReportId - { - get - { - return this._MonthReportId; - } - set - { - if ((this._MonthReportId != value)) - { - if (this._SeDin_MonthReport.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } - this.OnMonthReportIdChanging(value); - this.SendPropertyChanging(); - this._MonthReportId = value; - this.SendPropertyChanged("MonthReportId"); - this.OnMonthReportIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DailyMonth", DbType="Int")] - public System.Nullable DailyMonth - { - get - { - return this._DailyMonth; - } - set - { - if ((this._DailyMonth != value)) - { - this.OnDailyMonthChanging(value); - this.SendPropertyChanging(); - this._DailyMonth = value; - this.SendPropertyChanged("DailyMonth"); - this.OnDailyMonthChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DailyYear", DbType="Int")] - public System.Nullable DailyYear - { - get - { - return this._DailyYear; - } - set - { - if ((this._DailyYear != value)) - { - this.OnDailyYearChanging(value); - this.SendPropertyChanging(); - this._DailyYear = value; - this.SendPropertyChanged("DailyYear"); - this.OnDailyYearChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DailyTotal", DbType="Int")] - public System.Nullable DailyTotal - { - get - { - return this._DailyTotal; - } - set - { - if ((this._DailyTotal != value)) - { - this.OnDailyTotalChanging(value); - this.SendPropertyChanging(); - this._DailyTotal = value; - this.SendPropertyChanged("DailyTotal"); - this.OnDailyTotalChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeekMonth", DbType="Int")] - public System.Nullable WeekMonth - { - get - { - return this._WeekMonth; - } - set - { - if ((this._WeekMonth != value)) - { - this.OnWeekMonthChanging(value); - this.SendPropertyChanging(); - this._WeekMonth = value; - this.SendPropertyChanged("WeekMonth"); - this.OnWeekMonthChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeekYear", DbType="Int")] - public System.Nullable WeekYear - { - get - { - return this._WeekYear; - } - set - { - if ((this._WeekYear != value)) - { - this.OnWeekYearChanging(value); - this.SendPropertyChanging(); - this._WeekYear = value; - this.SendPropertyChanged("WeekYear"); - this.OnWeekYearChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeekTotal", DbType="Int")] - public System.Nullable WeekTotal - { - get - { - return this._WeekTotal; - } - set - { - if ((this._WeekTotal != value)) - { - this.OnWeekTotalChanging(value); - this.SendPropertyChanging(); - this._WeekTotal = value; - this.SendPropertyChanged("WeekTotal"); - this.OnWeekTotalChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialMonth", DbType="Int")] - public System.Nullable SpecialMonth - { - get - { - return this._SpecialMonth; - } - set - { - if ((this._SpecialMonth != value)) - { - this.OnSpecialMonthChanging(value); - this.SendPropertyChanging(); - this._SpecialMonth = value; - this.SendPropertyChanged("SpecialMonth"); - this.OnSpecialMonthChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialYear", DbType="Int")] - public System.Nullable SpecialYear - { - get - { - return this._SpecialYear; - } - set - { - if ((this._SpecialYear != value)) - { - this.OnSpecialYearChanging(value); - this.SendPropertyChanging(); - this._SpecialYear = value; - this.SendPropertyChanged("SpecialYear"); - this.OnSpecialYearChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialTotal", DbType="Int")] - public System.Nullable SpecialTotal - { - get - { - return this._SpecialTotal; - } - set - { - if ((this._SpecialTotal != value)) - { - this.OnSpecialTotalChanging(value); - this.SendPropertyChanging(); - this._SpecialTotal = value; - this.SendPropertyChanged("SpecialTotal"); - this.OnSpecialTotalChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthlyMonth", DbType="Int")] - public System.Nullable MonthlyMonth - { - get - { - return this._MonthlyMonth; - } - set - { - if ((this._MonthlyMonth != value)) - { - this.OnMonthlyMonthChanging(value); - this.SendPropertyChanging(); - this._MonthlyMonth = value; - this.SendPropertyChanged("MonthlyMonth"); - this.OnMonthlyMonthChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthlyYear", DbType="Int")] - public System.Nullable MonthlyYear - { - get - { - return this._MonthlyYear; - } - set - { - if ((this._MonthlyYear != value)) - { - this.OnMonthlyYearChanging(value); - this.SendPropertyChanging(); - this._MonthlyYear = value; - this.SendPropertyChanged("MonthlyYear"); - this.OnMonthlyYearChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthlyTotal", DbType="Int")] - public System.Nullable MonthlyTotal - { - get - { - return this._MonthlyTotal; - } - set - { - if ((this._MonthlyTotal != value)) - { - this.OnMonthlyTotalChanging(value); - this.SendPropertyChanging(); - this._MonthlyTotal = value; - this.SendPropertyChanged("MonthlyTotal"); - this.OnMonthlyTotalChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport9_SeDin_MonthReport9", Storage="_SeDin_MonthReport", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] - public SeDin_MonthReport SeDin_MonthReport - { - get - { - return this._SeDin_MonthReport.Entity; - } - set - { - SeDin_MonthReport previousValue = this._SeDin_MonthReport.Entity; - if (((previousValue != value) - || (this._SeDin_MonthReport.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._SeDin_MonthReport.Entity = null; - previousValue.SeDin_MonthReport9.Remove(this); - } - this._SeDin_MonthReport.Entity = value; - if ((value != null)) - { - value.SeDin_MonthReport9.Add(this); - this._MonthReportId = value.MonthReportId; - } - else - { - this._MonthReportId = default(string); - } - this.SendPropertyChanged("SeDin_MonthReport"); - } - } - } - - 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.SeDin_MonthReport9Item_Rectification")] - public partial class SeDin_MonthReport9Item_Rectification : INotifyPropertyChanging, INotifyPropertyChanged - { - - private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - - private string _MonthReport9ItemId; - - private string _MonthReportId; - - private string _UnitName; - - private System.Nullable _IssuedMonth; - - private System.Nullable _RectificationMoth; - - private System.Nullable _IssuedTotal; - - private System.Nullable _RectificationTotal; - - private System.Nullable _IssuedMonthLarge; - - private System.Nullable _IssuedMonthSerious; - - private System.Nullable _RectificationMothLarge; - - private System.Nullable _RectificationMothSerious; - - private System.Nullable _IssuedTotalLarge; - - private System.Nullable _IssuedTotalSerious; - - private System.Nullable _RectificationTotalLarge; - - private System.Nullable _RectificationTotalSerious; - - private EntityRef _SeDin_MonthReport; - - #region 可扩展性方法定义 - partial void OnLoaded(); - partial void OnValidate(System.Data.Linq.ChangeAction action); - partial void OnCreated(); - partial void OnMonthReport9ItemIdChanging(string value); - partial void OnMonthReport9ItemIdChanged(); - partial void OnMonthReportIdChanging(string value); - partial void OnMonthReportIdChanged(); - partial void OnUnitNameChanging(string value); - partial void OnUnitNameChanged(); - partial void OnIssuedMonthChanging(System.Nullable value); - partial void OnIssuedMonthChanged(); - partial void OnRectificationMothChanging(System.Nullable value); - partial void OnRectificationMothChanged(); - partial void OnIssuedTotalChanging(System.Nullable value); - partial void OnIssuedTotalChanged(); - partial void OnRectificationTotalChanging(System.Nullable value); - partial void OnRectificationTotalChanged(); - partial void OnIssuedMonthLargeChanging(System.Nullable value); - partial void OnIssuedMonthLargeChanged(); - partial void OnIssuedMonthSeriousChanging(System.Nullable value); - partial void OnIssuedMonthSeriousChanged(); - partial void OnRectificationMothLargeChanging(System.Nullable value); - partial void OnRectificationMothLargeChanged(); - partial void OnRectificationMothSeriousChanging(System.Nullable value); - partial void OnRectificationMothSeriousChanged(); - partial void OnIssuedTotalLargeChanging(System.Nullable value); - partial void OnIssuedTotalLargeChanged(); - partial void OnIssuedTotalSeriousChanging(System.Nullable value); - partial void OnIssuedTotalSeriousChanged(); - partial void OnRectificationTotalLargeChanging(System.Nullable value); - partial void OnRectificationTotalLargeChanged(); - partial void OnRectificationTotalSeriousChanging(System.Nullable value); - partial void OnRectificationTotalSeriousChanged(); - #endregion - - public SeDin_MonthReport9Item_Rectification() - { - this._SeDin_MonthReport = default(EntityRef); - OnCreated(); - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReport9ItemId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string MonthReport9ItemId - { - get - { - return this._MonthReport9ItemId; - } - set - { - if ((this._MonthReport9ItemId != value)) - { - this.OnMonthReport9ItemIdChanging(value); - this.SendPropertyChanging(); - this._MonthReport9ItemId = value; - this.SendPropertyChanged("MonthReport9ItemId"); - this.OnMonthReport9ItemIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] - public string MonthReportId - { - get - { - return this._MonthReportId; - } - set - { - if ((this._MonthReportId != value)) - { - if (this._SeDin_MonthReport.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } - this.OnMonthReportIdChanging(value); - this.SendPropertyChanging(); - this._MonthReportId = value; - this.SendPropertyChanged("MonthReportId"); - this.OnMonthReportIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitName", DbType="NVarChar(50)")] - public string UnitName - { - get - { - return this._UnitName; - } - set - { - if ((this._UnitName != value)) - { - this.OnUnitNameChanging(value); - this.SendPropertyChanging(); - this._UnitName = value; - this.SendPropertyChanged("UnitName"); - this.OnUnitNameChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IssuedMonth", DbType="Int")] - public System.Nullable IssuedMonth - { - get - { - return this._IssuedMonth; - } - set - { - if ((this._IssuedMonth != value)) - { - this.OnIssuedMonthChanging(value); - this.SendPropertyChanging(); - this._IssuedMonth = value; - this.SendPropertyChanged("IssuedMonth"); - this.OnIssuedMonthChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RectificationMoth", DbType="Int")] - public System.Nullable RectificationMoth - { - get - { - return this._RectificationMoth; - } - set - { - if ((this._RectificationMoth != value)) - { - this.OnRectificationMothChanging(value); - this.SendPropertyChanging(); - this._RectificationMoth = value; - this.SendPropertyChanged("RectificationMoth"); - this.OnRectificationMothChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IssuedTotal", DbType="Int")] - public System.Nullable IssuedTotal - { - get - { - return this._IssuedTotal; - } - set - { - if ((this._IssuedTotal != value)) - { - this.OnIssuedTotalChanging(value); - this.SendPropertyChanging(); - this._IssuedTotal = value; - this.SendPropertyChanged("IssuedTotal"); - this.OnIssuedTotalChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RectificationTotal", DbType="Int")] - public System.Nullable RectificationTotal - { - get - { - return this._RectificationTotal; - } - set - { - if ((this._RectificationTotal != value)) - { - this.OnRectificationTotalChanging(value); - this.SendPropertyChanging(); - this._RectificationTotal = value; - this.SendPropertyChanged("RectificationTotal"); - this.OnRectificationTotalChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IssuedMonthLarge", DbType="Int")] - public System.Nullable IssuedMonthLarge - { - get - { - return this._IssuedMonthLarge; - } - set - { - if ((this._IssuedMonthLarge != value)) - { - this.OnIssuedMonthLargeChanging(value); - this.SendPropertyChanging(); - this._IssuedMonthLarge = value; - this.SendPropertyChanged("IssuedMonthLarge"); - this.OnIssuedMonthLargeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IssuedMonthSerious", DbType="Int")] - public System.Nullable IssuedMonthSerious - { - get - { - return this._IssuedMonthSerious; - } - set - { - if ((this._IssuedMonthSerious != value)) - { - this.OnIssuedMonthSeriousChanging(value); - this.SendPropertyChanging(); - this._IssuedMonthSerious = value; - this.SendPropertyChanged("IssuedMonthSerious"); - this.OnIssuedMonthSeriousChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RectificationMothLarge", DbType="Int")] - public System.Nullable RectificationMothLarge - { - get - { - return this._RectificationMothLarge; - } - set - { - if ((this._RectificationMothLarge != value)) - { - this.OnRectificationMothLargeChanging(value); - this.SendPropertyChanging(); - this._RectificationMothLarge = value; - this.SendPropertyChanged("RectificationMothLarge"); - this.OnRectificationMothLargeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RectificationMothSerious", DbType="Int")] - public System.Nullable RectificationMothSerious - { - get - { - return this._RectificationMothSerious; - } - set - { - if ((this._RectificationMothSerious != value)) - { - this.OnRectificationMothSeriousChanging(value); - this.SendPropertyChanging(); - this._RectificationMothSerious = value; - this.SendPropertyChanged("RectificationMothSerious"); - this.OnRectificationMothSeriousChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IssuedTotalLarge", DbType="Int")] - public System.Nullable IssuedTotalLarge - { - get - { - return this._IssuedTotalLarge; - } - set - { - if ((this._IssuedTotalLarge != value)) - { - this.OnIssuedTotalLargeChanging(value); - this.SendPropertyChanging(); - this._IssuedTotalLarge = value; - this.SendPropertyChanged("IssuedTotalLarge"); - this.OnIssuedTotalLargeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IssuedTotalSerious", DbType="Int")] - public System.Nullable IssuedTotalSerious - { - get - { - return this._IssuedTotalSerious; - } - set - { - if ((this._IssuedTotalSerious != value)) - { - this.OnIssuedTotalSeriousChanging(value); - this.SendPropertyChanging(); - this._IssuedTotalSerious = value; - this.SendPropertyChanged("IssuedTotalSerious"); - this.OnIssuedTotalSeriousChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RectificationTotalLarge", DbType="Int")] - public System.Nullable RectificationTotalLarge - { - get - { - return this._RectificationTotalLarge; - } - set - { - if ((this._RectificationTotalLarge != value)) - { - this.OnRectificationTotalLargeChanging(value); - this.SendPropertyChanging(); - this._RectificationTotalLarge = value; - this.SendPropertyChanged("RectificationTotalLarge"); - this.OnRectificationTotalLargeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RectificationTotalSerious", DbType="Int")] - public System.Nullable RectificationTotalSerious - { - get - { - return this._RectificationTotalSerious; - } - set - { - if ((this._RectificationTotalSerious != value)) - { - this.OnRectificationTotalSeriousChanging(value); - this.SendPropertyChanging(); - this._RectificationTotalSerious = value; - this.SendPropertyChanged("RectificationTotalSerious"); - this.OnRectificationTotalSeriousChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport9Item_Rectification_SeDin_MonthReport9Item_Rectification", Storage="_SeDin_MonthReport", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] - public SeDin_MonthReport SeDin_MonthReport - { - get - { - return this._SeDin_MonthReport.Entity; - } - set - { - SeDin_MonthReport previousValue = this._SeDin_MonthReport.Entity; - if (((previousValue != value) - || (this._SeDin_MonthReport.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._SeDin_MonthReport.Entity = null; - previousValue.SeDin_MonthReport9Item_Rectification.Remove(this); - } - this._SeDin_MonthReport.Entity = value; - if ((value != null)) - { - value.SeDin_MonthReport9Item_Rectification.Add(this); - this._MonthReportId = value.MonthReportId; - } - else - { - this._MonthReportId = default(string); - } - this.SendPropertyChanged("SeDin_MonthReport"); - } - } - } - - 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.SeDin_MonthReport9Item_Special")] - public partial class SeDin_MonthReport9Item_Special : INotifyPropertyChanging, INotifyPropertyChanged - { - - private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - - private string _MonthReport9ItemId; - - private string _MonthReportId; - - private string _TypeName; - - private System.Nullable _CheckMonth; - - private System.Nullable _CheckYear; - - private System.Nullable _CheckTotal; - - private EntityRef _SeDin_MonthReport; - - #region 可扩展性方法定义 - partial void OnLoaded(); - partial void OnValidate(System.Data.Linq.ChangeAction action); - partial void OnCreated(); - partial void OnMonthReport9ItemIdChanging(string value); - partial void OnMonthReport9ItemIdChanged(); - partial void OnMonthReportIdChanging(string value); - partial void OnMonthReportIdChanged(); - partial void OnTypeNameChanging(string value); - partial void OnTypeNameChanged(); - partial void OnCheckMonthChanging(System.Nullable value); - partial void OnCheckMonthChanged(); - partial void OnCheckYearChanging(System.Nullable value); - partial void OnCheckYearChanged(); - partial void OnCheckTotalChanging(System.Nullable value); - partial void OnCheckTotalChanged(); - #endregion - - public SeDin_MonthReport9Item_Special() - { - this._SeDin_MonthReport = default(EntityRef); - OnCreated(); - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReport9ItemId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string MonthReport9ItemId - { - get - { - return this._MonthReport9ItemId; - } - set - { - if ((this._MonthReport9ItemId != value)) - { - this.OnMonthReport9ItemIdChanging(value); - this.SendPropertyChanging(); - this._MonthReport9ItemId = value; - this.SendPropertyChanged("MonthReport9ItemId"); - this.OnMonthReport9ItemIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] - public string MonthReportId - { - get - { - return this._MonthReportId; - } - set - { - if ((this._MonthReportId != value)) - { - if (this._SeDin_MonthReport.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } - this.OnMonthReportIdChanging(value); - this.SendPropertyChanging(); - this._MonthReportId = value; - this.SendPropertyChanged("MonthReportId"); - this.OnMonthReportIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TypeName", DbType="NVarChar(50)")] - public string TypeName - { - get - { - return this._TypeName; - } - set - { - if ((this._TypeName != value)) - { - this.OnTypeNameChanging(value); - this.SendPropertyChanging(); - this._TypeName = value; - this.SendPropertyChanged("TypeName"); - this.OnTypeNameChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckMonth", DbType="Int")] - public System.Nullable CheckMonth - { - get - { - return this._CheckMonth; - } - set - { - if ((this._CheckMonth != value)) - { - this.OnCheckMonthChanging(value); - this.SendPropertyChanging(); - this._CheckMonth = value; - this.SendPropertyChanged("CheckMonth"); - this.OnCheckMonthChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckYear", DbType="Int")] - public System.Nullable CheckYear - { - get - { - return this._CheckYear; - } - set - { - if ((this._CheckYear != value)) - { - this.OnCheckYearChanging(value); - this.SendPropertyChanging(); - this._CheckYear = value; - this.SendPropertyChanged("CheckYear"); - this.OnCheckYearChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckTotal", DbType="Int")] - public System.Nullable CheckTotal - { - get - { - return this._CheckTotal; - } - set - { - if ((this._CheckTotal != value)) - { - this.OnCheckTotalChanging(value); - this.SendPropertyChanging(); - this._CheckTotal = value; - this.SendPropertyChanged("CheckTotal"); - this.OnCheckTotalChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport9Item_Special_SeDin_MonthReport9Item_Special", Storage="_SeDin_MonthReport", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] - public SeDin_MonthReport SeDin_MonthReport - { - get - { - return this._SeDin_MonthReport.Entity; - } - set - { - SeDin_MonthReport previousValue = this._SeDin_MonthReport.Entity; - if (((previousValue != value) - || (this._SeDin_MonthReport.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._SeDin_MonthReport.Entity = null; - previousValue.SeDin_MonthReport9Item_Special.Remove(this); - } - this._SeDin_MonthReport.Entity = value; - if ((value != null)) - { - value.SeDin_MonthReport9Item_Special.Add(this); - this._MonthReportId = value.MonthReportId; - } - else - { - this._MonthReportId = default(string); - } - this.SendPropertyChanged("SeDin_MonthReport"); - } - } - } - - 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.SeDin_MonthReport9Item_Stoppage")] - public partial class SeDin_MonthReport9Item_Stoppage : INotifyPropertyChanging, INotifyPropertyChanged - { - - private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - - private string _MonthReport9ItemId; - - private string _MonthReportId; - - private string _UnitName; - - private System.Nullable _IssuedMonth; - - private System.Nullable _StoppageMonth; - - private System.Nullable _IssuedTotal; - - private System.Nullable _StoppageTotal; - - private EntityRef _SeDin_MonthReport; - - #region 可扩展性方法定义 - partial void OnLoaded(); - partial void OnValidate(System.Data.Linq.ChangeAction action); - partial void OnCreated(); - partial void OnMonthReport9ItemIdChanging(string value); - partial void OnMonthReport9ItemIdChanged(); - partial void OnMonthReportIdChanging(string value); - partial void OnMonthReportIdChanged(); - partial void OnUnitNameChanging(string value); - partial void OnUnitNameChanged(); - partial void OnIssuedMonthChanging(System.Nullable value); - partial void OnIssuedMonthChanged(); - partial void OnStoppageMonthChanging(System.Nullable value); - partial void OnStoppageMonthChanged(); - partial void OnIssuedTotalChanging(System.Nullable value); - partial void OnIssuedTotalChanged(); - partial void OnStoppageTotalChanging(System.Nullable value); - partial void OnStoppageTotalChanged(); - #endregion - - public SeDin_MonthReport9Item_Stoppage() - { - this._SeDin_MonthReport = default(EntityRef); - OnCreated(); - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReport9ItemId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string MonthReport9ItemId - { - get - { - return this._MonthReport9ItemId; - } - set - { - if ((this._MonthReport9ItemId != value)) - { - this.OnMonthReport9ItemIdChanging(value); - this.SendPropertyChanging(); - this._MonthReport9ItemId = value; - this.SendPropertyChanged("MonthReport9ItemId"); - this.OnMonthReport9ItemIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] - public string MonthReportId - { - get - { - return this._MonthReportId; - } - set - { - if ((this._MonthReportId != value)) - { - if (this._SeDin_MonthReport.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } - this.OnMonthReportIdChanging(value); - this.SendPropertyChanging(); - this._MonthReportId = value; - this.SendPropertyChanged("MonthReportId"); - this.OnMonthReportIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitName", DbType="NVarChar(50)")] - public string UnitName - { - get - { - return this._UnitName; - } - set - { - if ((this._UnitName != value)) - { - this.OnUnitNameChanging(value); - this.SendPropertyChanging(); - this._UnitName = value; - this.SendPropertyChanged("UnitName"); - this.OnUnitNameChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IssuedMonth", DbType="Int")] - public System.Nullable IssuedMonth - { - get - { - return this._IssuedMonth; - } - set - { - if ((this._IssuedMonth != value)) - { - this.OnIssuedMonthChanging(value); - this.SendPropertyChanging(); - this._IssuedMonth = value; - this.SendPropertyChanged("IssuedMonth"); - this.OnIssuedMonthChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StoppageMonth", DbType="Int")] - public System.Nullable StoppageMonth - { - get - { - return this._StoppageMonth; - } - set - { - if ((this._StoppageMonth != value)) - { - this.OnStoppageMonthChanging(value); - this.SendPropertyChanging(); - this._StoppageMonth = value; - this.SendPropertyChanged("StoppageMonth"); - this.OnStoppageMonthChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IssuedTotal", DbType="Int")] - public System.Nullable IssuedTotal - { - get - { - return this._IssuedTotal; - } - set - { - if ((this._IssuedTotal != value)) - { - this.OnIssuedTotalChanging(value); - this.SendPropertyChanging(); - this._IssuedTotal = value; - this.SendPropertyChanged("IssuedTotal"); - this.OnIssuedTotalChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StoppageTotal", DbType="Int")] - public System.Nullable StoppageTotal - { - get - { - return this._StoppageTotal; - } - set - { - if ((this._StoppageTotal != value)) - { - this.OnStoppageTotalChanging(value); - this.SendPropertyChanging(); - this._StoppageTotal = value; - this.SendPropertyChanged("StoppageTotal"); - this.OnStoppageTotalChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport9Item_Stoppage_SeDin_MonthReport9Item_Stoppage", Storage="_SeDin_MonthReport", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] - public SeDin_MonthReport SeDin_MonthReport - { - get - { - return this._SeDin_MonthReport.Entity; - } - set - { - SeDin_MonthReport previousValue = this._SeDin_MonthReport.Entity; - if (((previousValue != value) - || (this._SeDin_MonthReport.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._SeDin_MonthReport.Entity = null; - previousValue.SeDin_MonthReport9Item_Stoppage.Remove(this); - } - this._SeDin_MonthReport.Entity = value; - if ((value != null)) - { - value.SeDin_MonthReport9Item_Stoppage.Add(this); - this._MonthReportId = value.MonthReportId; - } - else - { - this._MonthReportId = default(string); - } - this.SendPropertyChanged("SeDin_MonthReport"); - } - } - } - - 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.SeDin_MonthReportFlowOperate")] - public partial class SeDin_MonthReportFlowOperate : INotifyPropertyChanging, INotifyPropertyChanged - { - - private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - - private string _FlowOperateId; - - private string _MenuId; - - private string _DataId; - - private System.Nullable _SortIndex; - - private string _StepName; - - private string _OperaterId; - - private System.Nullable _OperaterTime; - - private System.Nullable _IsAgree; - - private string _Opinion; - - private System.Nullable _IsClosed; - - private EntityRef _Sys_User; - - #region 可扩展性方法定义 - partial void OnLoaded(); - partial void OnValidate(System.Data.Linq.ChangeAction action); - partial void OnCreated(); - partial void OnFlowOperateIdChanging(string value); - partial void OnFlowOperateIdChanged(); - partial void OnMenuIdChanging(string value); - partial void OnMenuIdChanged(); - partial void OnDataIdChanging(string value); - partial void OnDataIdChanged(); - partial void OnSortIndexChanging(System.Nullable value); - partial void OnSortIndexChanged(); - partial void OnStepNameChanging(string value); - partial void OnStepNameChanged(); - partial void OnOperaterIdChanging(string value); - partial void OnOperaterIdChanged(); - partial void OnOperaterTimeChanging(System.Nullable value); - partial void OnOperaterTimeChanged(); - partial void OnIsAgreeChanging(System.Nullable value); - partial void OnIsAgreeChanged(); - partial void OnOpinionChanging(string value); - partial void OnOpinionChanged(); - partial void OnIsClosedChanging(System.Nullable value); - partial void OnIsClosedChanged(); - #endregion - - public SeDin_MonthReportFlowOperate() - { - this._Sys_User = default(EntityRef); - OnCreated(); - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FlowOperateId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string FlowOperateId - { - get - { - return this._FlowOperateId; - } - set - { - if ((this._FlowOperateId != value)) - { - this.OnFlowOperateIdChanging(value); - this.SendPropertyChanging(); - this._FlowOperateId = value; - this.SendPropertyChanged("FlowOperateId"); - this.OnFlowOperateIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MenuId", DbType="NVarChar(50)")] - public string MenuId - { - get - { - return this._MenuId; - } - set - { - if ((this._MenuId != value)) - { - this.OnMenuIdChanging(value); - this.SendPropertyChanging(); - this._MenuId = value; - this.SendPropertyChanged("MenuId"); - this.OnMenuIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DataId", DbType="NVarChar(50)")] - public string DataId - { - get - { - return this._DataId; - } - set - { - if ((this._DataId != value)) - { - this.OnDataIdChanging(value); - this.SendPropertyChanging(); - this._DataId = value; - this.SendPropertyChanged("DataId"); - this.OnDataIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SortIndex", DbType="Int")] - public System.Nullable SortIndex - { - get - { - return this._SortIndex; - } - set - { - if ((this._SortIndex != value)) - { - this.OnSortIndexChanging(value); - this.SendPropertyChanging(); - this._SortIndex = value; - this.SendPropertyChanged("SortIndex"); - this.OnSortIndexChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StepName", DbType="NVarChar(50)")] - public string StepName - { - get - { - return this._StepName; - } - set - { - if ((this._StepName != value)) - { - this.OnStepNameChanging(value); - this.SendPropertyChanging(); - this._StepName = value; - this.SendPropertyChanged("StepName"); - this.OnStepNameChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OperaterId", DbType="NVarChar(50)")] - public string OperaterId - { - get - { - return this._OperaterId; - } - set - { - if ((this._OperaterId != value)) - { - if (this._Sys_User.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } - this.OnOperaterIdChanging(value); - this.SendPropertyChanging(); - this._OperaterId = value; - this.SendPropertyChanged("OperaterId"); - this.OnOperaterIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OperaterTime", DbType="DateTime")] - public System.Nullable OperaterTime - { - get - { - return this._OperaterTime; - } - set - { - if ((this._OperaterTime != value)) - { - this.OnOperaterTimeChanging(value); - this.SendPropertyChanging(); - this._OperaterTime = value; - this.SendPropertyChanged("OperaterTime"); - this.OnOperaterTimeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsAgree", DbType="Bit")] - public System.Nullable IsAgree - { - get - { - return this._IsAgree; - } - set - { - if ((this._IsAgree != value)) - { - this.OnIsAgreeChanging(value); - this.SendPropertyChanging(); - this._IsAgree = value; - this.SendPropertyChanged("IsAgree"); - this.OnIsAgreeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Opinion", DbType="NVarChar(1000)")] - public string Opinion - { - get - { - return this._Opinion; - } - set - { - if ((this._Opinion != value)) - { - this.OnOpinionChanging(value); - this.SendPropertyChanging(); - this._Opinion = value; - this.SendPropertyChanged("Opinion"); - this.OnOpinionChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsClosed", DbType="Bit")] - public System.Nullable IsClosed - { - get - { - return this._IsClosed; - } - set - { - if ((this._IsClosed != value)) - { - this.OnIsClosedChanging(value); - this.SendPropertyChanging(); - this._IsClosed = value; - this.SendPropertyChanged("IsClosed"); - this.OnIsClosedChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReportFlowOperate_Sys_User", Storage="_Sys_User", ThisKey="OperaterId", OtherKey="UserId", IsForeignKey=true)] - public Sys_User Sys_User - { - get - { - return this._Sys_User.Entity; - } - set - { - Sys_User previousValue = this._Sys_User.Entity; - if (((previousValue != value) - || (this._Sys_User.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._Sys_User.Entity = null; - previousValue.SeDin_MonthReportFlowOperate.Remove(this); - } - this._Sys_User.Entity = value; - if ((value != null)) - { - value.SeDin_MonthReportFlowOperate.Add(this); - this._OperaterId = value.UserId; - } - else - { - this._OperaterId = default(string); - } - this.SendPropertyChanged("Sys_User"); - } - } - } - - public event PropertyChangingEventHandler PropertyChanging; - - public event PropertyChangedEventHandler PropertyChanged; - - protected virtual void SendPropertyChanging() - { - if ((this.PropertyChanging != null)) - { - this.PropertyChanging(this, emptyChangingEventArgs); - } - } - - protected virtual void SendPropertyChanged(String propertyName) - { - if ((this.PropertyChanged != null)) - { - this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); - } - } - } - [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.SitePerson_AskForLeave")] public partial class SitePerson_AskForLeave : INotifyPropertyChanging, INotifyPropertyChanged { @@ -376247,562 +368109,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Sys_Menu_0501")] - public partial class Sys_Menu_0501 : INotifyPropertyChanging, INotifyPropertyChanged - { - - private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - - private string _MenuId; - - private string _MenuName; - - private string _Icon; - - private string _Url; - - private System.Nullable _SortIndex; - - private string _SuperMenu; - - private string _MenuType; - - private System.Nullable _IsOffice; - - private System.Nullable _IsEnd; - - private System.Nullable _IsUsed; - - #region 可扩展性方法定义 - partial void OnLoaded(); - partial void OnValidate(System.Data.Linq.ChangeAction action); - partial void OnCreated(); - partial void OnMenuIdChanging(string value); - partial void OnMenuIdChanged(); - partial void OnMenuNameChanging(string value); - partial void OnMenuNameChanged(); - partial void OnIconChanging(string value); - partial void OnIconChanged(); - partial void OnUrlChanging(string value); - partial void OnUrlChanged(); - partial void OnSortIndexChanging(System.Nullable value); - partial void OnSortIndexChanged(); - partial void OnSuperMenuChanging(string value); - partial void OnSuperMenuChanged(); - partial void OnMenuTypeChanging(string value); - partial void OnMenuTypeChanged(); - partial void OnIsOfficeChanging(System.Nullable value); - partial void OnIsOfficeChanged(); - partial void OnIsEndChanging(System.Nullable value); - partial void OnIsEndChanged(); - partial void OnIsUsedChanging(System.Nullable value); - partial void OnIsUsedChanged(); - #endregion - - public Sys_Menu_0501() - { - OnCreated(); - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MenuId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string MenuId - { - get - { - return this._MenuId; - } - set - { - if ((this._MenuId != value)) - { - this.OnMenuIdChanging(value); - this.SendPropertyChanging(); - this._MenuId = value; - this.SendPropertyChanged("MenuId"); - this.OnMenuIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MenuName", DbType="NVarChar(50)")] - public string MenuName - { - get - { - return this._MenuName; - } - set - { - if ((this._MenuName != value)) - { - this.OnMenuNameChanging(value); - this.SendPropertyChanging(); - this._MenuName = value; - this.SendPropertyChanged("MenuName"); - this.OnMenuNameChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Icon", DbType="NVarChar(50)")] - public string Icon - { - get - { - return this._Icon; - } - set - { - if ((this._Icon != value)) - { - this.OnIconChanging(value); - this.SendPropertyChanging(); - this._Icon = value; - this.SendPropertyChanged("Icon"); - this.OnIconChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Url", DbType="NVarChar(200)")] - public string Url - { - get - { - return this._Url; - } - set - { - if ((this._Url != value)) - { - this.OnUrlChanging(value); - this.SendPropertyChanging(); - this._Url = value; - this.SendPropertyChanged("Url"); - this.OnUrlChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SortIndex", DbType="Int")] - public System.Nullable SortIndex - { - get - { - return this._SortIndex; - } - set - { - if ((this._SortIndex != value)) - { - this.OnSortIndexChanging(value); - this.SendPropertyChanging(); - this._SortIndex = value; - this.SendPropertyChanged("SortIndex"); - this.OnSortIndexChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SuperMenu", DbType="NVarChar(50)")] - public string SuperMenu - { - get - { - return this._SuperMenu; - } - set - { - if ((this._SuperMenu != value)) - { - this.OnSuperMenuChanging(value); - this.SendPropertyChanging(); - this._SuperMenu = value; - this.SendPropertyChanged("SuperMenu"); - this.OnSuperMenuChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MenuType", DbType="NVarChar(50)")] - public string MenuType - { - get - { - return this._MenuType; - } - set - { - if ((this._MenuType != value)) - { - this.OnMenuTypeChanging(value); - this.SendPropertyChanging(); - this._MenuType = value; - this.SendPropertyChanged("MenuType"); - this.OnMenuTypeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOffice", DbType="Bit")] - public System.Nullable IsOffice - { - get - { - return this._IsOffice; - } - set - { - if ((this._IsOffice != value)) - { - this.OnIsOfficeChanging(value); - this.SendPropertyChanging(); - this._IsOffice = value; - this.SendPropertyChanged("IsOffice"); - this.OnIsOfficeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsEnd", DbType="Bit")] - public System.Nullable IsEnd - { - get - { - return this._IsEnd; - } - set - { - if ((this._IsEnd != value)) - { - this.OnIsEndChanging(value); - this.SendPropertyChanging(); - this._IsEnd = value; - this.SendPropertyChanged("IsEnd"); - this.OnIsEndChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsUsed", DbType="Bit")] - public System.Nullable IsUsed - { - get - { - return this._IsUsed; - } - set - { - if ((this._IsUsed != value)) - { - this.OnIsUsedChanging(value); - this.SendPropertyChanging(); - this._IsUsed = value; - this.SendPropertyChanged("IsUsed"); - this.OnIsUsedChanged(); - } - } - } - - 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.Sys_Menu_0501t")] - public partial class Sys_Menu_0501t : INotifyPropertyChanging, INotifyPropertyChanged - { - - private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - - private string _MenuId; - - private string _MenuName; - - private string _Icon; - - private string _Url; - - private System.Nullable _SortIndex; - - private string _SuperMenu; - - private string _MenuType; - - private System.Nullable _IsOffice; - - private System.Nullable _IsEnd; - - private System.Nullable _IsUsed; - - #region 可扩展性方法定义 - partial void OnLoaded(); - partial void OnValidate(System.Data.Linq.ChangeAction action); - partial void OnCreated(); - partial void OnMenuIdChanging(string value); - partial void OnMenuIdChanged(); - partial void OnMenuNameChanging(string value); - partial void OnMenuNameChanged(); - partial void OnIconChanging(string value); - partial void OnIconChanged(); - partial void OnUrlChanging(string value); - partial void OnUrlChanged(); - partial void OnSortIndexChanging(System.Nullable value); - partial void OnSortIndexChanged(); - partial void OnSuperMenuChanging(string value); - partial void OnSuperMenuChanged(); - partial void OnMenuTypeChanging(string value); - partial void OnMenuTypeChanged(); - partial void OnIsOfficeChanging(System.Nullable value); - partial void OnIsOfficeChanged(); - partial void OnIsEndChanging(System.Nullable value); - partial void OnIsEndChanged(); - partial void OnIsUsedChanging(System.Nullable value); - partial void OnIsUsedChanged(); - #endregion - - public Sys_Menu_0501t() - { - OnCreated(); - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MenuId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string MenuId - { - get - { - return this._MenuId; - } - set - { - if ((this._MenuId != value)) - { - this.OnMenuIdChanging(value); - this.SendPropertyChanging(); - this._MenuId = value; - this.SendPropertyChanged("MenuId"); - this.OnMenuIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MenuName", DbType="NVarChar(50)")] - public string MenuName - { - get - { - return this._MenuName; - } - set - { - if ((this._MenuName != value)) - { - this.OnMenuNameChanging(value); - this.SendPropertyChanging(); - this._MenuName = value; - this.SendPropertyChanged("MenuName"); - this.OnMenuNameChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Icon", DbType="NVarChar(50)")] - public string Icon - { - get - { - return this._Icon; - } - set - { - if ((this._Icon != value)) - { - this.OnIconChanging(value); - this.SendPropertyChanging(); - this._Icon = value; - this.SendPropertyChanged("Icon"); - this.OnIconChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Url", DbType="NVarChar(200)")] - public string Url - { - get - { - return this._Url; - } - set - { - if ((this._Url != value)) - { - this.OnUrlChanging(value); - this.SendPropertyChanging(); - this._Url = value; - this.SendPropertyChanged("Url"); - this.OnUrlChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SortIndex", DbType="Int")] - public System.Nullable SortIndex - { - get - { - return this._SortIndex; - } - set - { - if ((this._SortIndex != value)) - { - this.OnSortIndexChanging(value); - this.SendPropertyChanging(); - this._SortIndex = value; - this.SendPropertyChanged("SortIndex"); - this.OnSortIndexChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SuperMenu", DbType="NVarChar(50)")] - public string SuperMenu - { - get - { - return this._SuperMenu; - } - set - { - if ((this._SuperMenu != value)) - { - this.OnSuperMenuChanging(value); - this.SendPropertyChanging(); - this._SuperMenu = value; - this.SendPropertyChanged("SuperMenu"); - this.OnSuperMenuChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MenuType", DbType="NVarChar(50)")] - public string MenuType - { - get - { - return this._MenuType; - } - set - { - if ((this._MenuType != value)) - { - this.OnMenuTypeChanging(value); - this.SendPropertyChanging(); - this._MenuType = value; - this.SendPropertyChanged("MenuType"); - this.OnMenuTypeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOffice", DbType="Bit")] - public System.Nullable IsOffice - { - get - { - return this._IsOffice; - } - set - { - if ((this._IsOffice != value)) - { - this.OnIsOfficeChanging(value); - this.SendPropertyChanging(); - this._IsOffice = value; - this.SendPropertyChanged("IsOffice"); - this.OnIsOfficeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsEnd", DbType="Bit")] - public System.Nullable IsEnd - { - get - { - return this._IsEnd; - } - set - { - if ((this._IsEnd != value)) - { - this.OnIsEndChanging(value); - this.SendPropertyChanging(); - this._IsEnd = value; - this.SendPropertyChanged("IsEnd"); - this.OnIsEndChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsUsed", DbType="Bit")] - public System.Nullable IsUsed - { - get - { - return this._IsUsed; - } - set - { - if ((this._IsUsed != value)) - { - this.OnIsUsedChanging(value); - this.SendPropertyChanging(); - this._IsUsed = value; - this.SendPropertyChanged("IsUsed"); - this.OnIsUsedChanged(); - } - } - } - - 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.Sys_MenuFlowOperate")] public partial class Sys_MenuFlowOperate : INotifyPropertyChanging, INotifyPropertyChanged { @@ -377359,284 +368665,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Sys_MenuTemp1")] - public partial class Sys_MenuTemp1 : INotifyPropertyChanging, INotifyPropertyChanged - { - - private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - - private string _MenuId; - - private string _MenuName; - - private string _Icon; - - private string _Url; - - private System.Nullable _SortIndex; - - private string _SuperMenu; - - private string _MenuType; - - private System.Nullable _IsOffice; - - private System.Nullable _IsEnd; - - private System.Nullable _IsUsed; - - #region 可扩展性方法定义 - partial void OnLoaded(); - partial void OnValidate(System.Data.Linq.ChangeAction action); - partial void OnCreated(); - partial void OnMenuIdChanging(string value); - partial void OnMenuIdChanged(); - partial void OnMenuNameChanging(string value); - partial void OnMenuNameChanged(); - partial void OnIconChanging(string value); - partial void OnIconChanged(); - partial void OnUrlChanging(string value); - partial void OnUrlChanged(); - partial void OnSortIndexChanging(System.Nullable value); - partial void OnSortIndexChanged(); - partial void OnSuperMenuChanging(string value); - partial void OnSuperMenuChanged(); - partial void OnMenuTypeChanging(string value); - partial void OnMenuTypeChanged(); - partial void OnIsOfficeChanging(System.Nullable value); - partial void OnIsOfficeChanged(); - partial void OnIsEndChanging(System.Nullable value); - partial void OnIsEndChanged(); - partial void OnIsUsedChanging(System.Nullable value); - partial void OnIsUsedChanged(); - #endregion - - public Sys_MenuTemp1() - { - OnCreated(); - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MenuId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string MenuId - { - get - { - return this._MenuId; - } - set - { - if ((this._MenuId != value)) - { - this.OnMenuIdChanging(value); - this.SendPropertyChanging(); - this._MenuId = value; - this.SendPropertyChanged("MenuId"); - this.OnMenuIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MenuName", DbType="NVarChar(50)")] - public string MenuName - { - get - { - return this._MenuName; - } - set - { - if ((this._MenuName != value)) - { - this.OnMenuNameChanging(value); - this.SendPropertyChanging(); - this._MenuName = value; - this.SendPropertyChanged("MenuName"); - this.OnMenuNameChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Icon", DbType="NVarChar(50)")] - public string Icon - { - get - { - return this._Icon; - } - set - { - if ((this._Icon != value)) - { - this.OnIconChanging(value); - this.SendPropertyChanging(); - this._Icon = value; - this.SendPropertyChanged("Icon"); - this.OnIconChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Url", DbType="NVarChar(200)")] - public string Url - { - get - { - return this._Url; - } - set - { - if ((this._Url != value)) - { - this.OnUrlChanging(value); - this.SendPropertyChanging(); - this._Url = value; - this.SendPropertyChanged("Url"); - this.OnUrlChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SortIndex", DbType="Int")] - public System.Nullable SortIndex - { - get - { - return this._SortIndex; - } - set - { - if ((this._SortIndex != value)) - { - this.OnSortIndexChanging(value); - this.SendPropertyChanging(); - this._SortIndex = value; - this.SendPropertyChanged("SortIndex"); - this.OnSortIndexChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SuperMenu", DbType="NVarChar(50)")] - public string SuperMenu - { - get - { - return this._SuperMenu; - } - set - { - if ((this._SuperMenu != value)) - { - this.OnSuperMenuChanging(value); - this.SendPropertyChanging(); - this._SuperMenu = value; - this.SendPropertyChanged("SuperMenu"); - this.OnSuperMenuChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MenuType", DbType="NVarChar(50)")] - public string MenuType - { - get - { - return this._MenuType; - } - set - { - if ((this._MenuType != value)) - { - this.OnMenuTypeChanging(value); - this.SendPropertyChanging(); - this._MenuType = value; - this.SendPropertyChanged("MenuType"); - this.OnMenuTypeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOffice", DbType="Bit")] - public System.Nullable IsOffice - { - get - { - return this._IsOffice; - } - set - { - if ((this._IsOffice != value)) - { - this.OnIsOfficeChanging(value); - this.SendPropertyChanging(); - this._IsOffice = value; - this.SendPropertyChanged("IsOffice"); - this.OnIsOfficeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsEnd", DbType="Bit")] - public System.Nullable IsEnd - { - get - { - return this._IsEnd; - } - set - { - if ((this._IsEnd != value)) - { - this.OnIsEndChanging(value); - this.SendPropertyChanging(); - this._IsEnd = value; - this.SendPropertyChanged("IsEnd"); - this.OnIsEndChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsUsed", DbType="Bit")] - public System.Nullable IsUsed - { - get - { - return this._IsUsed; - } - set - { - if ((this._IsUsed != value)) - { - this.OnIsUsedChanging(value); - this.SendPropertyChanging(); - this._IsUsed = value; - this.SendPropertyChanged("IsUsed"); - this.OnIsUsedChanged(); - } - } - } - - 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.Sys_OutputValue")] public partial class Sys_OutputValue : INotifyPropertyChanging, INotifyPropertyChanged { @@ -380154,14 +371182,6 @@ namespace Model private EntitySet _SafetyData_SafetyDataItem; - private EntitySet _SeDin_MonthReport; - - private EntitySet _SeDin_MonthReport_Sys_User1; - - private EntitySet _SeDin_MonthReport_Sys_User2; - - private EntitySet _SeDin_MonthReportFlowOperate; - private EntitySet _SitePerson_DayReport_Bak; private EntitySet _SitePerson_DayReport; @@ -380670,10 +371690,6 @@ namespace Model this._QualityAudit_SafePersonQuality_Sys_User_AuditorId = new EntitySet(new Action(this.attach_QualityAudit_SafePersonQuality_Sys_User_AuditorId), new Action(this.detach_QualityAudit_SafePersonQuality_Sys_User_AuditorId)); this._QualityAudit_SubUnitQualityAuditDetail = new EntitySet(new Action(this.attach_QualityAudit_SubUnitQualityAuditDetail), new Action(this.detach_QualityAudit_SubUnitQualityAuditDetail)); this._SafetyData_SafetyDataItem = new EntitySet(new Action(this.attach_SafetyData_SafetyDataItem), new Action(this.detach_SafetyData_SafetyDataItem)); - this._SeDin_MonthReport = new EntitySet(new Action(this.attach_SeDin_MonthReport), new Action(this.detach_SeDin_MonthReport)); - this._SeDin_MonthReport_Sys_User1 = new EntitySet(new Action(this.attach_SeDin_MonthReport_Sys_User1), new Action(this.detach_SeDin_MonthReport_Sys_User1)); - this._SeDin_MonthReport_Sys_User2 = new EntitySet(new Action(this.attach_SeDin_MonthReport_Sys_User2), new Action(this.detach_SeDin_MonthReport_Sys_User2)); - this._SeDin_MonthReportFlowOperate = new EntitySet(new Action(this.attach_SeDin_MonthReportFlowOperate), new Action(this.detach_SeDin_MonthReportFlowOperate)); this._SitePerson_DayReport_Bak = new EntitySet(new Action(this.attach_SitePerson_DayReport_Bak), new Action(this.detach_SitePerson_DayReport_Bak)); this._SitePerson_DayReport = new EntitySet(new Action(this.attach_SitePerson_DayReport), new Action(this.detach_SitePerson_DayReport)); this._SitePerson_MonthReport = new EntitySet(new Action(this.attach_SitePerson_MonthReport), new Action(this.detach_SitePerson_MonthReport)); @@ -385626,58 +376642,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport_Sys_User", Storage="_SeDin_MonthReport", ThisKey="UserId", OtherKey="CompileManId", DeleteRule="NO ACTION")] - public EntitySet SeDin_MonthReport - { - get - { - return this._SeDin_MonthReport; - } - set - { - this._SeDin_MonthReport.Assign(value); - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport_Sys_User1", Storage="_SeDin_MonthReport_Sys_User1", ThisKey="UserId", OtherKey="AuditManId", DeleteRule="NO ACTION")] - public EntitySet SeDin_MonthReport_Sys_User1 - { - get - { - return this._SeDin_MonthReport_Sys_User1; - } - set - { - this._SeDin_MonthReport_Sys_User1.Assign(value); - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReport_Sys_User2", Storage="_SeDin_MonthReport_Sys_User2", ThisKey="UserId", OtherKey="ApprovalManId", DeleteRule="NO ACTION")] - public EntitySet SeDin_MonthReport_Sys_User2 - { - get - { - return this._SeDin_MonthReport_Sys_User2; - } - set - { - this._SeDin_MonthReport_Sys_User2.Assign(value); - } - } - - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SeDin_MonthReportFlowOperate_Sys_User", Storage="_SeDin_MonthReportFlowOperate", ThisKey="UserId", OtherKey="OperaterId", DeleteRule="NO ACTION")] - public EntitySet SeDin_MonthReportFlowOperate - { - get - { - return this._SeDin_MonthReportFlowOperate; - } - set - { - this._SeDin_MonthReportFlowOperate.Assign(value); - } - } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SitePerson_DayReport_Bak_Sys_User", Storage="_SitePerson_DayReport_Bak", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")] public EntitySet SitePerson_DayReport_Bak { @@ -389875,54 +380839,6 @@ namespace Model entity.Sys_User = null; } - private void attach_SeDin_MonthReport(SeDin_MonthReport entity) - { - this.SendPropertyChanging(); - entity.Sys_User = this; - } - - private void detach_SeDin_MonthReport(SeDin_MonthReport entity) - { - this.SendPropertyChanging(); - entity.Sys_User = null; - } - - private void attach_SeDin_MonthReport_Sys_User1(SeDin_MonthReport entity) - { - this.SendPropertyChanging(); - entity.AuditMan = this; - } - - private void detach_SeDin_MonthReport_Sys_User1(SeDin_MonthReport entity) - { - this.SendPropertyChanging(); - entity.AuditMan = null; - } - - private void attach_SeDin_MonthReport_Sys_User2(SeDin_MonthReport entity) - { - this.SendPropertyChanging(); - entity.ApprovalMan = this; - } - - private void detach_SeDin_MonthReport_Sys_User2(SeDin_MonthReport entity) - { - this.SendPropertyChanging(); - entity.ApprovalMan = null; - } - - private void attach_SeDin_MonthReportFlowOperate(SeDin_MonthReportFlowOperate entity) - { - this.SendPropertyChanging(); - entity.Sys_User = this; - } - - private void detach_SeDin_MonthReportFlowOperate(SeDin_MonthReportFlowOperate entity) - { - this.SendPropertyChanging(); - entity.Sys_User = null; - } - private void attach_SitePerson_DayReport_Bak(SitePerson_DayReport_Bak entity) { this.SendPropertyChanging(); @@ -415456,1617 +406372,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.V_SeDin_MonthReport3")] - public partial class V_SeDin_MonthReport3 - { - - private string _MonthReportId; - - private System.Nullable _MonthTimes1; - - private System.Nullable _TotalTimes1; - - private System.Nullable _MonthLossTime1; - - private System.Nullable _TotalLossTime1; - - private System.Nullable _MonthMoney1; - - private System.Nullable _TotalMoney1; - - private System.Nullable _MonthPersons1; - - private System.Nullable _TotalPersons1; - - private System.Nullable _MonthTimes2; - - private System.Nullable _TotalTimes2; - - private System.Nullable _MonthLossTime2; - - private System.Nullable _TotalLossTime2; - - private System.Nullable _MonthMoney2; - - private System.Nullable _TotalMoney2; - - private System.Nullable _MonthPersons2; - - private System.Nullable _TotalPersons2; - - private System.Nullable _MonthTimes3; - - private System.Nullable _TotalTimes3; - - private System.Nullable _MonthLossTime3; - - private System.Nullable _TotalLossTime3; - - private System.Nullable _MonthMoney3; - - private System.Nullable _TotalMoney3; - - private System.Nullable _MonthPersons3; - - private System.Nullable _TotalPersons3; - - private System.Nullable _MonthTimes4; - - private System.Nullable _TotalTimes4; - - private System.Nullable _MonthLossTime4; - - private System.Nullable _TotalLossTime4; - - private System.Nullable _MonthMoney4; - - private System.Nullable _TotalMoney4; - - private System.Nullable _MonthPersons4; - - private System.Nullable _TotalPersons4; - - private System.Nullable _MonthTimes5; - - private System.Nullable _TotalTimes5; - - private System.Nullable _MonthLossTime5; - - private System.Nullable _TotalLossTime5; - - private System.Nullable _MonthMoney5; - - private System.Nullable _TotalMoney5; - - private System.Nullable _MonthPersons5; - - private System.Nullable _TotalPersons5; - - private System.Nullable _MonthTimes6; - - private System.Nullable _TotalTimes6; - - private System.Nullable _MonthLossTime6; - - private System.Nullable _TotalLossTime6; - - private System.Nullable _MonthMoney6; - - private System.Nullable _TotalMoney6; - - private System.Nullable _MonthPersons6; - - private System.Nullable _TotalPersons6; - - private System.Nullable _MonthTimes7; - - private System.Nullable _TotalTimes7; - - private System.Nullable _MonthLossTime7; - - private System.Nullable _TotalLossTime7; - - private System.Nullable _MonthMoney7; - - private System.Nullable _TotalMoney7; - - private System.Nullable _MonthPersons7; - - private System.Nullable _TotalPersons7; - - private System.Nullable _MonthTimes8; - - private System.Nullable _TotalTimes8; - - private System.Nullable _MonthLossTime8; - - private System.Nullable _TotalLossTime8; - - private System.Nullable _MonthMoney8; - - private System.Nullable _TotalMoney8; - - private System.Nullable _MonthPersons8; - - private System.Nullable _TotalPersons8; - - private System.Nullable _MonthTimes9; - - private System.Nullable _TotalTimes9; - - private System.Nullable _MonthLossTime9; - - private System.Nullable _TotalLossTime9; - - private System.Nullable _MonthMoney9; - - private System.Nullable _TotalMoney9; - - private System.Nullable _MonthPersons9; - - private System.Nullable _TotalPersons9; - - private System.Nullable _MonthTimes10; - - private System.Nullable _TotalTimes10; - - private System.Nullable _MonthLossTime10; - - private System.Nullable _TotalLossTime10; - - private System.Nullable _MonthMoney10; - - private System.Nullable _TotalMoney10; - - private System.Nullable _MonthPersons10; - - private System.Nullable _TotalPersons10; - - private System.Nullable _MonthTimes11; - - private System.Nullable _TotalTimes11; - - private System.Nullable _MonthLossTime11; - - private System.Nullable _TotalLossTime11; - - private System.Nullable _MonthMoney11; - - private System.Nullable _TotalMoney11; - - private System.Nullable _MonthPersons11; - - private System.Nullable _TotalPersons11; - - public V_SeDin_MonthReport3() - { - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] - public string MonthReportId - { - get - { - return this._MonthReportId; - } - set - { - if ((this._MonthReportId != value)) - { - this._MonthReportId = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthTimes1", DbType="Int")] - public System.Nullable MonthTimes1 - { - get - { - return this._MonthTimes1; - } - set - { - if ((this._MonthTimes1 != value)) - { - this._MonthTimes1 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalTimes1", DbType="Int")] - public System.Nullable TotalTimes1 - { - get - { - return this._TotalTimes1; - } - set - { - if ((this._TotalTimes1 != value)) - { - this._TotalTimes1 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthLossTime1", DbType="Decimal(18,2)")] - public System.Nullable MonthLossTime1 - { - get - { - return this._MonthLossTime1; - } - set - { - if ((this._MonthLossTime1 != value)) - { - this._MonthLossTime1 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalLossTime1", DbType="Decimal(18,2)")] - public System.Nullable TotalLossTime1 - { - get - { - return this._TotalLossTime1; - } - set - { - if ((this._TotalLossTime1 != value)) - { - this._TotalLossTime1 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthMoney1", DbType="Decimal(18,2)")] - public System.Nullable MonthMoney1 - { - get - { - return this._MonthMoney1; - } - set - { - if ((this._MonthMoney1 != value)) - { - this._MonthMoney1 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalMoney1", DbType="Decimal(18,2)")] - public System.Nullable TotalMoney1 - { - get - { - return this._TotalMoney1; - } - set - { - if ((this._TotalMoney1 != value)) - { - this._TotalMoney1 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthPersons1", DbType="Int")] - public System.Nullable MonthPersons1 - { - get - { - return this._MonthPersons1; - } - set - { - if ((this._MonthPersons1 != value)) - { - this._MonthPersons1 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalPersons1", DbType="Int")] - public System.Nullable TotalPersons1 - { - get - { - return this._TotalPersons1; - } - set - { - if ((this._TotalPersons1 != value)) - { - this._TotalPersons1 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthTimes2", DbType="Int")] - public System.Nullable MonthTimes2 - { - get - { - return this._MonthTimes2; - } - set - { - if ((this._MonthTimes2 != value)) - { - this._MonthTimes2 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalTimes2", DbType="Int")] - public System.Nullable TotalTimes2 - { - get - { - return this._TotalTimes2; - } - set - { - if ((this._TotalTimes2 != value)) - { - this._TotalTimes2 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthLossTime2", DbType="Decimal(18,2)")] - public System.Nullable MonthLossTime2 - { - get - { - return this._MonthLossTime2; - } - set - { - if ((this._MonthLossTime2 != value)) - { - this._MonthLossTime2 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalLossTime2", DbType="Decimal(18,2)")] - public System.Nullable TotalLossTime2 - { - get - { - return this._TotalLossTime2; - } - set - { - if ((this._TotalLossTime2 != value)) - { - this._TotalLossTime2 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthMoney2", DbType="Decimal(18,2)")] - public System.Nullable MonthMoney2 - { - get - { - return this._MonthMoney2; - } - set - { - if ((this._MonthMoney2 != value)) - { - this._MonthMoney2 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalMoney2", DbType="Decimal(18,2)")] - public System.Nullable TotalMoney2 - { - get - { - return this._TotalMoney2; - } - set - { - if ((this._TotalMoney2 != value)) - { - this._TotalMoney2 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthPersons2", DbType="Int")] - public System.Nullable MonthPersons2 - { - get - { - return this._MonthPersons2; - } - set - { - if ((this._MonthPersons2 != value)) - { - this._MonthPersons2 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalPersons2", DbType="Int")] - public System.Nullable TotalPersons2 - { - get - { - return this._TotalPersons2; - } - set - { - if ((this._TotalPersons2 != value)) - { - this._TotalPersons2 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthTimes3", DbType="Int")] - public System.Nullable MonthTimes3 - { - get - { - return this._MonthTimes3; - } - set - { - if ((this._MonthTimes3 != value)) - { - this._MonthTimes3 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalTimes3", DbType="Int")] - public System.Nullable TotalTimes3 - { - get - { - return this._TotalTimes3; - } - set - { - if ((this._TotalTimes3 != value)) - { - this._TotalTimes3 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthLossTime3", DbType="Decimal(18,2)")] - public System.Nullable MonthLossTime3 - { - get - { - return this._MonthLossTime3; - } - set - { - if ((this._MonthLossTime3 != value)) - { - this._MonthLossTime3 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalLossTime3", DbType="Decimal(18,2)")] - public System.Nullable TotalLossTime3 - { - get - { - return this._TotalLossTime3; - } - set - { - if ((this._TotalLossTime3 != value)) - { - this._TotalLossTime3 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthMoney3", DbType="Decimal(18,2)")] - public System.Nullable MonthMoney3 - { - get - { - return this._MonthMoney3; - } - set - { - if ((this._MonthMoney3 != value)) - { - this._MonthMoney3 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalMoney3", DbType="Decimal(18,2)")] - public System.Nullable TotalMoney3 - { - get - { - return this._TotalMoney3; - } - set - { - if ((this._TotalMoney3 != value)) - { - this._TotalMoney3 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthPersons3", DbType="Int")] - public System.Nullable MonthPersons3 - { - get - { - return this._MonthPersons3; - } - set - { - if ((this._MonthPersons3 != value)) - { - this._MonthPersons3 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalPersons3", DbType="Int")] - public System.Nullable TotalPersons3 - { - get - { - return this._TotalPersons3; - } - set - { - if ((this._TotalPersons3 != value)) - { - this._TotalPersons3 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthTimes4", DbType="Int")] - public System.Nullable MonthTimes4 - { - get - { - return this._MonthTimes4; - } - set - { - if ((this._MonthTimes4 != value)) - { - this._MonthTimes4 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalTimes4", DbType="Int")] - public System.Nullable TotalTimes4 - { - get - { - return this._TotalTimes4; - } - set - { - if ((this._TotalTimes4 != value)) - { - this._TotalTimes4 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthLossTime4", DbType="Decimal(18,2)")] - public System.Nullable MonthLossTime4 - { - get - { - return this._MonthLossTime4; - } - set - { - if ((this._MonthLossTime4 != value)) - { - this._MonthLossTime4 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalLossTime4", DbType="Decimal(18,2)")] - public System.Nullable TotalLossTime4 - { - get - { - return this._TotalLossTime4; - } - set - { - if ((this._TotalLossTime4 != value)) - { - this._TotalLossTime4 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthMoney4", DbType="Decimal(18,2)")] - public System.Nullable MonthMoney4 - { - get - { - return this._MonthMoney4; - } - set - { - if ((this._MonthMoney4 != value)) - { - this._MonthMoney4 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalMoney4", DbType="Decimal(18,2)")] - public System.Nullable TotalMoney4 - { - get - { - return this._TotalMoney4; - } - set - { - if ((this._TotalMoney4 != value)) - { - this._TotalMoney4 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthPersons4", DbType="Int")] - public System.Nullable MonthPersons4 - { - get - { - return this._MonthPersons4; - } - set - { - if ((this._MonthPersons4 != value)) - { - this._MonthPersons4 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalPersons4", DbType="Int")] - public System.Nullable TotalPersons4 - { - get - { - return this._TotalPersons4; - } - set - { - if ((this._TotalPersons4 != value)) - { - this._TotalPersons4 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthTimes5", DbType="Int")] - public System.Nullable MonthTimes5 - { - get - { - return this._MonthTimes5; - } - set - { - if ((this._MonthTimes5 != value)) - { - this._MonthTimes5 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalTimes5", DbType="Int")] - public System.Nullable TotalTimes5 - { - get - { - return this._TotalTimes5; - } - set - { - if ((this._TotalTimes5 != value)) - { - this._TotalTimes5 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthLossTime5", DbType="Decimal(18,2)")] - public System.Nullable MonthLossTime5 - { - get - { - return this._MonthLossTime5; - } - set - { - if ((this._MonthLossTime5 != value)) - { - this._MonthLossTime5 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalLossTime5", DbType="Decimal(18,2)")] - public System.Nullable TotalLossTime5 - { - get - { - return this._TotalLossTime5; - } - set - { - if ((this._TotalLossTime5 != value)) - { - this._TotalLossTime5 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthMoney5", DbType="Decimal(18,2)")] - public System.Nullable MonthMoney5 - { - get - { - return this._MonthMoney5; - } - set - { - if ((this._MonthMoney5 != value)) - { - this._MonthMoney5 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalMoney5", DbType="Decimal(18,2)")] - public System.Nullable TotalMoney5 - { - get - { - return this._TotalMoney5; - } - set - { - if ((this._TotalMoney5 != value)) - { - this._TotalMoney5 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthPersons5", DbType="Int")] - public System.Nullable MonthPersons5 - { - get - { - return this._MonthPersons5; - } - set - { - if ((this._MonthPersons5 != value)) - { - this._MonthPersons5 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalPersons5", DbType="Int")] - public System.Nullable TotalPersons5 - { - get - { - return this._TotalPersons5; - } - set - { - if ((this._TotalPersons5 != value)) - { - this._TotalPersons5 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthTimes6", DbType="Int")] - public System.Nullable MonthTimes6 - { - get - { - return this._MonthTimes6; - } - set - { - if ((this._MonthTimes6 != value)) - { - this._MonthTimes6 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalTimes6", DbType="Int")] - public System.Nullable TotalTimes6 - { - get - { - return this._TotalTimes6; - } - set - { - if ((this._TotalTimes6 != value)) - { - this._TotalTimes6 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthLossTime6", DbType="Decimal(18,2)")] - public System.Nullable MonthLossTime6 - { - get - { - return this._MonthLossTime6; - } - set - { - if ((this._MonthLossTime6 != value)) - { - this._MonthLossTime6 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalLossTime6", DbType="Decimal(18,2)")] - public System.Nullable TotalLossTime6 - { - get - { - return this._TotalLossTime6; - } - set - { - if ((this._TotalLossTime6 != value)) - { - this._TotalLossTime6 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthMoney6", DbType="Decimal(18,2)")] - public System.Nullable MonthMoney6 - { - get - { - return this._MonthMoney6; - } - set - { - if ((this._MonthMoney6 != value)) - { - this._MonthMoney6 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalMoney6", DbType="Decimal(18,2)")] - public System.Nullable TotalMoney6 - { - get - { - return this._TotalMoney6; - } - set - { - if ((this._TotalMoney6 != value)) - { - this._TotalMoney6 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthPersons6", DbType="Int")] - public System.Nullable MonthPersons6 - { - get - { - return this._MonthPersons6; - } - set - { - if ((this._MonthPersons6 != value)) - { - this._MonthPersons6 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalPersons6", DbType="Int")] - public System.Nullable TotalPersons6 - { - get - { - return this._TotalPersons6; - } - set - { - if ((this._TotalPersons6 != value)) - { - this._TotalPersons6 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthTimes7", DbType="Int")] - public System.Nullable MonthTimes7 - { - get - { - return this._MonthTimes7; - } - set - { - if ((this._MonthTimes7 != value)) - { - this._MonthTimes7 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalTimes7", DbType="Int")] - public System.Nullable TotalTimes7 - { - get - { - return this._TotalTimes7; - } - set - { - if ((this._TotalTimes7 != value)) - { - this._TotalTimes7 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthLossTime7", DbType="Decimal(18,2)")] - public System.Nullable MonthLossTime7 - { - get - { - return this._MonthLossTime7; - } - set - { - if ((this._MonthLossTime7 != value)) - { - this._MonthLossTime7 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalLossTime7", DbType="Decimal(18,2)")] - public System.Nullable TotalLossTime7 - { - get - { - return this._TotalLossTime7; - } - set - { - if ((this._TotalLossTime7 != value)) - { - this._TotalLossTime7 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthMoney7", DbType="Decimal(18,2)")] - public System.Nullable MonthMoney7 - { - get - { - return this._MonthMoney7; - } - set - { - if ((this._MonthMoney7 != value)) - { - this._MonthMoney7 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalMoney7", DbType="Decimal(18,2)")] - public System.Nullable TotalMoney7 - { - get - { - return this._TotalMoney7; - } - set - { - if ((this._TotalMoney7 != value)) - { - this._TotalMoney7 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthPersons7", DbType="Int")] - public System.Nullable MonthPersons7 - { - get - { - return this._MonthPersons7; - } - set - { - if ((this._MonthPersons7 != value)) - { - this._MonthPersons7 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalPersons7", DbType="Int")] - public System.Nullable TotalPersons7 - { - get - { - return this._TotalPersons7; - } - set - { - if ((this._TotalPersons7 != value)) - { - this._TotalPersons7 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthTimes8", DbType="Int")] - public System.Nullable MonthTimes8 - { - get - { - return this._MonthTimes8; - } - set - { - if ((this._MonthTimes8 != value)) - { - this._MonthTimes8 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalTimes8", DbType="Int")] - public System.Nullable TotalTimes8 - { - get - { - return this._TotalTimes8; - } - set - { - if ((this._TotalTimes8 != value)) - { - this._TotalTimes8 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthLossTime8", DbType="Decimal(18,2)")] - public System.Nullable MonthLossTime8 - { - get - { - return this._MonthLossTime8; - } - set - { - if ((this._MonthLossTime8 != value)) - { - this._MonthLossTime8 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalLossTime8", DbType="Decimal(18,2)")] - public System.Nullable TotalLossTime8 - { - get - { - return this._TotalLossTime8; - } - set - { - if ((this._TotalLossTime8 != value)) - { - this._TotalLossTime8 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthMoney8", DbType="Decimal(18,2)")] - public System.Nullable MonthMoney8 - { - get - { - return this._MonthMoney8; - } - set - { - if ((this._MonthMoney8 != value)) - { - this._MonthMoney8 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalMoney8", DbType="Decimal(18,2)")] - public System.Nullable TotalMoney8 - { - get - { - return this._TotalMoney8; - } - set - { - if ((this._TotalMoney8 != value)) - { - this._TotalMoney8 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthPersons8", DbType="Int")] - public System.Nullable MonthPersons8 - { - get - { - return this._MonthPersons8; - } - set - { - if ((this._MonthPersons8 != value)) - { - this._MonthPersons8 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalPersons8", DbType="Int")] - public System.Nullable TotalPersons8 - { - get - { - return this._TotalPersons8; - } - set - { - if ((this._TotalPersons8 != value)) - { - this._TotalPersons8 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthTimes9", DbType="Int")] - public System.Nullable MonthTimes9 - { - get - { - return this._MonthTimes9; - } - set - { - if ((this._MonthTimes9 != value)) - { - this._MonthTimes9 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalTimes9", DbType="Int")] - public System.Nullable TotalTimes9 - { - get - { - return this._TotalTimes9; - } - set - { - if ((this._TotalTimes9 != value)) - { - this._TotalTimes9 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthLossTime9", DbType="Decimal(18,2)")] - public System.Nullable MonthLossTime9 - { - get - { - return this._MonthLossTime9; - } - set - { - if ((this._MonthLossTime9 != value)) - { - this._MonthLossTime9 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalLossTime9", DbType="Decimal(18,2)")] - public System.Nullable TotalLossTime9 - { - get - { - return this._TotalLossTime9; - } - set - { - if ((this._TotalLossTime9 != value)) - { - this._TotalLossTime9 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthMoney9", DbType="Decimal(18,2)")] - public System.Nullable MonthMoney9 - { - get - { - return this._MonthMoney9; - } - set - { - if ((this._MonthMoney9 != value)) - { - this._MonthMoney9 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalMoney9", DbType="Decimal(18,2)")] - public System.Nullable TotalMoney9 - { - get - { - return this._TotalMoney9; - } - set - { - if ((this._TotalMoney9 != value)) - { - this._TotalMoney9 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthPersons9", DbType="Int")] - public System.Nullable MonthPersons9 - { - get - { - return this._MonthPersons9; - } - set - { - if ((this._MonthPersons9 != value)) - { - this._MonthPersons9 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalPersons9", DbType="Int")] - public System.Nullable TotalPersons9 - { - get - { - return this._TotalPersons9; - } - set - { - if ((this._TotalPersons9 != value)) - { - this._TotalPersons9 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthTimes10", DbType="Int")] - public System.Nullable MonthTimes10 - { - get - { - return this._MonthTimes10; - } - set - { - if ((this._MonthTimes10 != value)) - { - this._MonthTimes10 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalTimes10", DbType="Int")] - public System.Nullable TotalTimes10 - { - get - { - return this._TotalTimes10; - } - set - { - if ((this._TotalTimes10 != value)) - { - this._TotalTimes10 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthLossTime10", DbType="Decimal(18,2)")] - public System.Nullable MonthLossTime10 - { - get - { - return this._MonthLossTime10; - } - set - { - if ((this._MonthLossTime10 != value)) - { - this._MonthLossTime10 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalLossTime10", DbType="Decimal(18,2)")] - public System.Nullable TotalLossTime10 - { - get - { - return this._TotalLossTime10; - } - set - { - if ((this._TotalLossTime10 != value)) - { - this._TotalLossTime10 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthMoney10", DbType="Decimal(18,2)")] - public System.Nullable MonthMoney10 - { - get - { - return this._MonthMoney10; - } - set - { - if ((this._MonthMoney10 != value)) - { - this._MonthMoney10 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalMoney10", DbType="Decimal(18,2)")] - public System.Nullable TotalMoney10 - { - get - { - return this._TotalMoney10; - } - set - { - if ((this._TotalMoney10 != value)) - { - this._TotalMoney10 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthPersons10", DbType="Int")] - public System.Nullable MonthPersons10 - { - get - { - return this._MonthPersons10; - } - set - { - if ((this._MonthPersons10 != value)) - { - this._MonthPersons10 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalPersons10", DbType="Int")] - public System.Nullable TotalPersons10 - { - get - { - return this._TotalPersons10; - } - set - { - if ((this._TotalPersons10 != value)) - { - this._TotalPersons10 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthTimes11", DbType="Int")] - public System.Nullable MonthTimes11 - { - get - { - return this._MonthTimes11; - } - set - { - if ((this._MonthTimes11 != value)) - { - this._MonthTimes11 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalTimes11", DbType="Int")] - public System.Nullable TotalTimes11 - { - get - { - return this._TotalTimes11; - } - set - { - if ((this._TotalTimes11 != value)) - { - this._TotalTimes11 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthLossTime11", DbType="Decimal(18,2)")] - public System.Nullable MonthLossTime11 - { - get - { - return this._MonthLossTime11; - } - set - { - if ((this._MonthLossTime11 != value)) - { - this._MonthLossTime11 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalLossTime11", DbType="Decimal(18,2)")] - public System.Nullable TotalLossTime11 - { - get - { - return this._TotalLossTime11; - } - set - { - if ((this._TotalLossTime11 != value)) - { - this._TotalLossTime11 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthMoney11", DbType="Decimal(18,2)")] - public System.Nullable MonthMoney11 - { - get - { - return this._MonthMoney11; - } - set - { - if ((this._MonthMoney11 != value)) - { - this._MonthMoney11 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalMoney11", DbType="Decimal(18,2)")] - public System.Nullable TotalMoney11 - { - get - { - return this._TotalMoney11; - } - set - { - if ((this._TotalMoney11 != value)) - { - this._TotalMoney11 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthPersons11", DbType="Int")] - public System.Nullable MonthPersons11 - { - get - { - return this._MonthPersons11; - } - set - { - if ((this._MonthPersons11 != value)) - { - this._MonthPersons11 = value; - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalPersons11", DbType="Int")] - public System.Nullable TotalPersons11 - { - get - { - return this._TotalPersons11; - } - set - { - if ((this._TotalPersons11 != value)) - { - this._TotalPersons11 = value; - } - } - } - } - [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.V_shiti")] public partial class V_shiti { diff --git a/SGGL/Model/Model.csproj b/SGGL/Model/Model.csproj index 8a0a4fc7..f516a96e 100644 --- a/SGGL/Model/Model.csproj +++ b/SGGL/Model/Model.csproj @@ -131,7 +131,6 @@ - @@ -144,23 +143,6 @@ - - - - - - - - - - - - - - - - - diff --git a/SGGL/WebAPI/Controllers/HSSE/SeDinMonthReportController.cs b/SGGL/WebAPI/Controllers/HSSE/SeDinMonthReportController.cs deleted file mode 100644 index d092e091..00000000 --- a/SGGL/WebAPI/Controllers/HSSE/SeDinMonthReportController.cs +++ /dev/null @@ -1,651 +0,0 @@ -using BLL; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web.Http; - -namespace WebAPI.Controllers -{ - /// - /// 赛鼎月报 - /// - public class SeDinMonthReportController : ApiController - { - #region 获取赛鼎月报列表信息 - /// - /// 获取赛鼎月报列表信息 - /// - /// 项目ID - /// 月份 - /// 状态0-待提交;1-已提交 - /// 页码 - /// - public Model.ResponeData getSeDinMonthReportList(string projectId,string month, string states, int pageIndex) - { - var responeData = new Model.ResponeData(); - try - { - var getDataList = APISeDinMonthReportService.getSeDinMonthReportList(projectId, month, states); - int pageCount = getDataList.Count(); - if (pageCount > 0 && pageIndex > 0) - { - getDataList = getDataList.Skip(Funs.PageSize * (pageIndex - 1)).Take(Funs.PageSize).ToList(); - } - responeData.data = new { pageCount, getDataList }; - } - catch (Exception ex) - { - responeData.code = 0; - responeData.message = ex.Message; - } - return responeData; - } - #endregion - - #region 获取赛鼎月报详细信息 - /// - /// 根据主键ID获取赛鼎月报 - /// - /// 项目ID - /// 月份 - /// 开始时间 - /// 结束时间 - /// 页数 - /// - public Model.ResponeData getSeDinMonthReportInfo(string projectId, string month, string startDate, string endDate, string pageNum) - { - var responeData = new Model.ResponeData(); - try - { - if (pageNum == "0") ////封面 - { - var getInfo = APISeDinMonthReportService.getSeDinMonthReport0ById(projectId, month); - if (getInfo == null || string.IsNullOrEmpty(getInfo.MonthReportId)) - { - getInfo = APISeDinMonthReportService.getSeDinMonthReportNullPage0(projectId); - } - responeData.data = getInfo; - } - else if (pageNum == "1") ////1、项目信息 - { - var getInfo = APISeDinMonthReportService.getSeDinMonthReport1ById(projectId, month); - if (getInfo == null || string.IsNullOrEmpty(getInfo.MonthReportId)) - { - getInfo = APISeDinMonthReportService.getSeDinMonthReportNullPage1(projectId); - } - responeData.data = getInfo; - } - else if (pageNum == "2") ////2、项目安全工时统计 - { - var getInfo = APISeDinMonthReportService.getSeDinMonthReport2ById(projectId, month); - if (getInfo == null || string.IsNullOrEmpty(getInfo.MonthReportId)) - { - getInfo = APISeDinMonthReportService.getSeDinMonthReportNullPage2(projectId, month, startDate, endDate); - } - responeData.data = getInfo; - } - else if (pageNum == "3") ////3、项目HSE事故、事件统计 - { - var getInfo = APISeDinMonthReportService.getSeDinMonthReport3ById(projectId, month); - if (getInfo == null || getInfo.SeDinMonthReport3Item == null || getInfo.SeDinMonthReport3Item.Count() == 0) - { - getInfo = APISeDinMonthReportService.getSeDinMonthReportNullPage3(projectId, month, startDate, endDate); - } - - responeData.data = getInfo; - } - else if (pageNum == "4") ////4、人员 - { - var getLists = APISeDinMonthReportService.getSeDinMonthReport4ById(projectId, month); - if (getLists.Count() == 0) - { - getLists = APISeDinMonthReportService.getSeDinMonthReportNullPage4(projectId, month, startDate, endDate); - } - responeData.data = getLists; - } - else if (pageNum == "5") ////5、本月大型、特种设备投入情况 - { - var getLists = APISeDinMonthReportService.getSeDinMonthReport5ById(projectId, month); - if (getLists.Count == 0) - { - getLists = APISeDinMonthReportService.getSeDinMonthReportNullPage5(projectId, month, startDate, endDate); - } - responeData.data = getLists; - } - else if (pageNum == "6") ////6、安全生产费用投入情况 - { - var getInfo = APISeDinMonthReportService.getSeDinMonthReport6ById(projectId, month); - if (getInfo == null || string.IsNullOrEmpty(getInfo.MonthReportId)) - { - getInfo = APISeDinMonthReportService.getSeDinMonthReportNullPage6(projectId, month, startDate, endDate); - } - - responeData.data = getInfo; - } - else if (pageNum == "7") ////7、项目HSE培训统计 - { - var getInfo = APISeDinMonthReportService.getSeDinMonthReport7ById(projectId, month); - if (getInfo == null || string.IsNullOrEmpty(getInfo.MonthReportId)) - { - getInfo = APISeDinMonthReportService.getSeDinMonthReportNullPage7(projectId, month, startDate, endDate); - } - - responeData.data = getInfo; - } - else if (pageNum == "8") ////8、项目HSE会议统计 - { - var getInfo = APISeDinMonthReportService.getSeDinMonthReport8ById(projectId, month); - if (getInfo == null || string.IsNullOrEmpty(getInfo.MonthReportId)) - { - getInfo = APISeDinMonthReportService.getSeDinMonthReportNullPage8(projectId, month, startDate, endDate); - } - - responeData.data = getInfo; - } - else if (pageNum == "9") ////9、项目HSE检查统计 - { - var getInfo = APISeDinMonthReportService.getSeDinMonthReport9ById(projectId, month); - if (getInfo == null || string.IsNullOrEmpty(getInfo.MonthReportId)) - { - getInfo = APISeDinMonthReportService.getSeDinMonthReportNullPage9(projectId, month, startDate, endDate); - } - - responeData.data = getInfo; - } - else if (pageNum == "10") ////10、项目奖惩情况统计 - { - var getInfo = APISeDinMonthReportService.getSeDinMonthReport10ById(projectId, month); - if (getInfo == null || string.IsNullOrEmpty(getInfo.MonthReportId)) - { - getInfo = APISeDinMonthReportService.getSeDinMonthReportNullPage10(projectId, month, startDate, endDate); - } - - responeData.data = getInfo; - } - else if (pageNum == "11") ////11、项目危大工程施工情况 - { - var getInfo = APISeDinMonthReportService.getSeDinMonthReport11ById(projectId, month); - if (getInfo == null || string.IsNullOrEmpty(getInfo.MonthReportId)) - { - getInfo = APISeDinMonthReportService.getSeDinMonthReportNullPage11(projectId, month, startDate, endDate); - } - - responeData.data = getInfo; - } - else if (pageNum == "12") ////12、项目应急演练情况 - { - var getInfo = APISeDinMonthReportService.getSeDinMonthReport12ById(projectId, month); - if (getInfo == null || string.IsNullOrEmpty(getInfo.MonthReportId)) - { - getInfo = APISeDinMonthReportService.getSeDinMonthReportNullPage12(projectId, month, startDate, endDate); - } - - responeData.data = getInfo; - } - else ////13、14、本月HSE活动综述、下月HSE工作计划 - { - responeData.data = APISeDinMonthReportService.getSeDinMonthReport13ById(projectId, month); ; - } - } - catch (Exception ex) - { - responeData.code = 0; - responeData.message = ex.Message; - } - - return responeData; - } - #endregion - - #region 保存赛鼎月报信息 - #region 保存 MonthReport0 封面 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - [HttpPost] - public Model.ResponeData SaveSeDinMonthReport0([FromBody] Model.SeDinMonthReportItem newItem) - { - var responeData = new Model.ResponeData(); - try - { - responeData.data = APISeDinMonthReportService.SaveSeDinMonthReport0(newItem); - } - catch (Exception ex) - { - responeData.code = 0; - responeData.message = ex.Message; - } - - return responeData; - } - #endregion - #region 保存 MonthReport1、项目信息 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - [HttpPost] - public Model.ResponeData SaveSeDinMonthReport1([FromBody] Model.SeDinMonthReport1Item newItem) - { - var responeData = new Model.ResponeData(); - try - { - if (!string.IsNullOrEmpty(newItem.MonthReportId)) - { - responeData.data = APISeDinMonthReportService.SaveSeDinMonthReport1(newItem); - } - else - { - responeData.code = 1; - responeData.message = "请先保存月报主表信息!"; - } - } - catch (Exception ex) - { - responeData.code = 0; - responeData.message = ex.Message; - } - - return responeData; - } - #endregion - #region 保存 MonthReport2、项目安全工时统计 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - [HttpPost] - public Model.ResponeData SaveSeDinMonthReport2([FromBody] Model.SeDinMonthReport2Item newItem) - { - var responeData = new Model.ResponeData(); - try - { - if (!string.IsNullOrEmpty(newItem.MonthReportId)) - { - responeData.data = APISeDinMonthReportService.SaveSeDinMonthReport2(newItem); - } - else - { - responeData.code = 1; - responeData.message = "请先保存月报主表信息!"; - } - } - catch (Exception ex) - { - responeData.code = 0; - responeData.message = ex.Message; - } - - return responeData; - } - #endregion - #region 保存 MonthReport3、项目HSE事故、事件统计 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - [HttpPost] - public Model.ResponeData SaveSeDinMonthReport3([FromBody] Model.SeDinMonthReportItem newItem) - { - var responeData = new Model.ResponeData(); - try - { - if (!string.IsNullOrEmpty(newItem.MonthReportId)) - { - responeData.data = APISeDinMonthReportService.SaveSeDinMonthReport3(newItem); - } - else - { - responeData.code = 1; - responeData.message = "请先保存月报主表信息!"; - } - } - catch (Exception ex) - { - responeData.code = 0; - responeData.message = ex.Message; - } - - return responeData; - } - #endregion - #region 保存 MonthReport4、本月人员投入情况 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - [HttpPost] - public Model.ResponeData SaveSeDinMonthReport4([FromBody] Model.SeDinMonthReportItem newItem) - { - var responeData = new Model.ResponeData(); - try - { - if (!string.IsNullOrEmpty(newItem.MonthReportId)) - { - responeData.data = APISeDinMonthReportService.SaveSeDinMonthReport4(newItem); - } - else - { - responeData.code = 1; - responeData.message = "请先保存月报主表信息!"; - } - } - catch (Exception ex) - { - responeData.code = 0; - responeData.message = ex.Message; - } - - return responeData; - } - #endregion - #region 保存 MonthReport5、本月大型、特种设备投入情况 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - [HttpPost] - public Model.ResponeData SaveSeDinMonthReport5([FromBody] Model.SeDinMonthReportItem newItem) - { - var responeData = new Model.ResponeData(); - try - { - if (!string.IsNullOrEmpty(newItem.MonthReportId)) - { - responeData.data = APISeDinMonthReportService.SaveSeDinMonthReport5(newItem); - } - else - { - responeData.code = 1; - responeData.message = "请先保存月报主表信息!"; - } - } - catch (Exception ex) - { - responeData.code = 0; - responeData.message = ex.Message; - } - - return responeData; - } - #endregion - #region 保存 MonthReport6、安全生产费用投入情况 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - [HttpPost] - public Model.ResponeData SaveSeDinMonthReport6([FromBody] Model.SeDinMonthReport6Item newItem) - { - var responeData = new Model.ResponeData(); - try - { - if (!string.IsNullOrEmpty(newItem.MonthReportId)) - { - responeData.data = APISeDinMonthReportService.SaveSeDinMonthReport6(newItem); - } - else - { - responeData.code = 1; - responeData.message = "请先保存月报主表信息!"; - } - } - catch (Exception ex) - { - responeData.code = 0; - responeData.message = ex.Message; - } - - return responeData; - } - #endregion - #region 保存 MonthReport7、项目HSE培训统计 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - [HttpPost] - public Model.ResponeData SaveSeDinMonthReport7([FromBody] Model.SeDinMonthReport7Item newItem) - { - var responeData = new Model.ResponeData(); - try - { - if (!string.IsNullOrEmpty(newItem.MonthReportId)) - { - responeData.data = APISeDinMonthReportService.SaveSeDinMonthReport7(newItem); - } - else - { - responeData.code = 1; - responeData.message = "请先保存月报主表信息!"; - } - } - catch (Exception ex) - { - responeData.code = 0; - responeData.message = ex.Message; - } - - return responeData; - } - #endregion - #region 保存 MonthReport8、项目HSE会议统计 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - [HttpPost] - public Model.ResponeData SaveSeDinMonthReport8([FromBody] Model.SeDinMonthReport8Item newItem) - { - var responeData = new Model.ResponeData(); - try - { - if (!string.IsNullOrEmpty(newItem.MonthReportId)) - { - responeData.data = APISeDinMonthReportService.SaveSeDinMonthReport8(newItem); - } - else - { - responeData.code = 1; - responeData.message = "请先保存月报主表信息!"; - } - } - catch (Exception ex) - { - responeData.code = 0; - responeData.message = ex.Message; - } - - return responeData; - } - #endregion - #region 保存 MonthReport9、项目HSE检查统计 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - [HttpPost] - public Model.ResponeData SaveSeDinMonthReport9([FromBody] Model.SeDinMonthReport9Item newItem) - { - var responeData = new Model.ResponeData(); - try - { - if (!string.IsNullOrEmpty(newItem.MonthReportId)) - { - responeData.data = APISeDinMonthReportService.SaveSeDinMonthReport9(newItem); - } - else - { - responeData.code = 1; - responeData.message = "请先保存月报主表信息!"; - } - } - catch (Exception ex) - { - responeData.code = 0; - responeData.message = ex.Message; - } - - return responeData; - } - #endregion - #region 保存 MonthReport10、项目奖惩情况统计 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - [HttpPost] - public Model.ResponeData SaveSeDinMonthReport10([FromBody] Model.SeDinMonthReport10Item newItem) - { - var responeData = new Model.ResponeData(); - try - { - if (!string.IsNullOrEmpty(newItem.MonthReportId)) - { - responeData.data = APISeDinMonthReportService.SaveSeDinMonthReport10(newItem); - } - else - { - responeData.code = 1; - responeData.message = "请先保存月报主表信息!"; - } - } - catch (Exception ex) - { - responeData.code = 0; - responeData.message = ex.Message; - } - - return responeData; - } - #endregion - #region 保存 MonthReport11、项目危大工程施工情况 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - [HttpPost] - public Model.ResponeData SaveSeDinMonthReport11([FromBody] Model.SeDinMonthReport11Item newItem) - { - var responeData = new Model.ResponeData(); - try - { - if (!string.IsNullOrEmpty(newItem.MonthReportId)) - { - responeData.data = APISeDinMonthReportService.SaveSeDinMonthReport11(newItem); - } - else - { - responeData.code = 1; - responeData.message = "请先保存月报主表信息!"; - } - } - catch (Exception ex) - { - responeData.code = 0; - responeData.message = ex.Message; - } - - return responeData; - } - #endregion - #region 保存 MonthReport12、项目应急演练情况 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - [HttpPost] - public Model.ResponeData SaveSeDinMonthReport12([FromBody] Model.SeDinMonthReport12Item newItem) - { - var responeData = new Model.ResponeData(); - try - { - if (!string.IsNullOrEmpty(newItem.MonthReportId)) - { - responeData.data = APISeDinMonthReportService.SaveSeDinMonthReport12(newItem); - } - else - { - responeData.code = 1; - responeData.message = "请先保存月报主表信息!"; - } - } - catch (Exception ex) - { - responeData.code = 0; - responeData.message = ex.Message; - } - - return responeData; - } - #endregion - #region 保存 MonthReport13、14、本月HSE活动综述、下月HSE工作计划 - /// - /// 保存赛鼎月报 - /// - /// 赛鼎月报 - /// - [HttpPost] - public Model.ResponeData SaveSeDinMonthReport13([FromBody] Model.SeDinMonthReportItem newItem) - { - var responeData = new Model.ResponeData(); - try - { - responeData.data = APISeDinMonthReportService.SaveSeDinMonthReport13(newItem); - } - catch (Exception ex) - { - responeData.code = 0; - responeData.message = ex.Message; - } - - return responeData; - } - #endregion - #endregion - - #region 汇总到HSE数据 - /// - /// 汇总到HSE数据 - /// - /// 赛鼎月报 - /// - [HttpPost] - public Model.ResponeData SaveSeDinMonthHSEDataCollect([FromBody] Model.SeDinMonthReportItem newItem) - { - var responeData = new Model.ResponeData(); - try - { - ////如果月报审核完成 月报信息写入到汇总 - var getSeDin_MonthReport = ManagerMonth_SeDinService.GetMonthReportByMonthReportId(newItem.MonthReportId); - if (getSeDin_MonthReport != null && getSeDin_MonthReport.States == Const.State_3 && getSeDin_MonthReport.ReporMonth.HasValue) - { - HSEDataCollectService.SaveHSEDataCollectItem(getSeDin_MonthReport); - } - responeData.data = newItem.MonthReportId; - } - catch (Exception ex) - { - responeData.code = 0; - responeData.message = ex.Message; - } - - return responeData; - } - #endregion - } -} diff --git a/SGGL/WebAPI/WebAPI.csproj b/SGGL/WebAPI/WebAPI.csproj index 58e274a2..b20aa9db 100644 --- a/SGGL/WebAPI/WebAPI.csproj +++ b/SGGL/WebAPI/WebAPI.csproj @@ -247,7 +247,6 @@ -