1安全生产看板打开报错问题处理
This commit is contained in:
parent
a4b291fecb
commit
b982382a48
|
@ -48,13 +48,13 @@ namespace FineUIPro.Web.common
|
|||
div_qyzbzjrs.InnerHtml = (from x in db.Person_CompanyBranchPerson
|
||||
where x.IsOnJob == true && x.WorkPostId == Const.WorkPost_HSSEDirector && x.UnitId == unitId
|
||||
select x).Count().ToString();
|
||||
|
||||
|
||||
//企业总部专职人数
|
||||
div_qyzbzzrs.InnerHtml = (from x in db.Person_CompanyBranchPerson
|
||||
join y in db.Base_WorkPost on x.WorkPostId equals y.WorkPostId
|
||||
where x.IsOnJob == true && y.IsHsse == true && x.UnitId == unitId
|
||||
select x).Count().ToString();
|
||||
|
||||
|
||||
//分支机构总监人数
|
||||
div_fzjgzjrs.InnerHtml = (from x in db.Person_CompanyBranchPerson
|
||||
where x.IsOnJob == true && x.WorkPostId == Const.WorkPost_HSSEDirector && x.UnitId != unitId
|
||||
|
@ -64,7 +64,7 @@ namespace FineUIPro.Web.common
|
|||
join y in db.Base_WorkPost on x.WorkPostId equals y.WorkPostId
|
||||
where x.IsOnJob == true && y.IsHsse == true && x.UnitId != unitId
|
||||
select x).Count().ToString();
|
||||
|
||||
|
||||
if (pids == null)
|
||||
{
|
||||
//项目总监
|
||||
|
@ -102,7 +102,8 @@ namespace FineUIPro.Web.common
|
|||
|
||||
div_zasrs.InnerHtml = tb.Rows.Count.ToString();
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
//项目总监
|
||||
div_xmrs.InnerHtml = (from x in db.SitePerson_Person
|
||||
where x.WorkPostId == Const.WorkPost_HSSEDirector && x.IsUsed == true
|
||||
|
@ -143,9 +144,9 @@ namespace FineUIPro.Web.common
|
|||
div_qyzbzzrs1.InnerHtml = div_xmzzrs.InnerHtml;
|
||||
div_qyzbcjrs.InnerHtml = div_xmcjrs.InnerHtml;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//项目信息
|
||||
getProjectInfo();
|
||||
|
||||
|
@ -184,8 +185,9 @@ namespace FineUIPro.Web.common
|
|||
//int wHours = Funs.DB.SitePerson_PersonInOutNumber.Max(x => x.WorkHours) ?? 0;
|
||||
this.div_safeworktime.InnerHtml = Count3().ToString().Split('.')[0];
|
||||
}
|
||||
else {
|
||||
var list = db.Base_Project.Where(x=>pids.Contains(x.ProjectId));
|
||||
else
|
||||
{
|
||||
var list = db.Base_Project.Where(x => pids.Contains(x.ProjectId));
|
||||
//在建项目
|
||||
div_zjxm.InnerHtml = list.Where(x => (x.ProjectState == Const.ProjectState_1 || x.ProjectState == null)).Count().ToString();
|
||||
//停工项目
|
||||
|
@ -196,7 +198,7 @@ namespace FineUIPro.Web.common
|
|||
//int wHours = Funs.DB.SitePerson_PersonInOutNumber.Max(x => x.WorkHours) ?? 0;
|
||||
this.div_safeworktime.InnerHtml = Count3().ToString().Split('.')[0];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
#region 安全人工时穿透数据
|
||||
|
@ -242,7 +244,8 @@ namespace FineUIPro.Web.common
|
|||
cout1 = cout1 - getD2.Sum(x => x.WorkingHoursLoss ?? 0);
|
||||
}
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
var getAllPersonInOutList = from x in db.SitePerson_PersonInOutNumber
|
||||
where pids.Contains(x.ProjectId)
|
||||
select x;
|
||||
|
@ -256,7 +259,7 @@ namespace FineUIPro.Web.common
|
|||
|
||||
var getD1 = from x in db.Accident_AccidentHandle
|
||||
join y in db.Base_Project on x.ProjectId equals y.ProjectId
|
||||
where pids.Contains(x.ProjectId)
|
||||
where pids.Contains(x.ProjectId)
|
||||
select x;
|
||||
var getD2 = from x in db.Accident_AccidentReport
|
||||
join y in db.Base_Project on x.ProjectId equals y.ProjectId
|
||||
|
@ -275,7 +278,7 @@ namespace FineUIPro.Web.common
|
|||
cout1 = cout1 - getD2.Sum(x => x.WorkingHoursLoss ?? 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return cout1;
|
||||
}
|
||||
|
||||
|
@ -300,7 +303,8 @@ namespace FineUIPro.Web.common
|
|||
{
|
||||
list = db.Base_Project.Where(x => pids.Contains(x.ProjectId)).ToList();
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
list = db.Base_Project.Where(x => (x.ProjectState == Const.ProjectState_1 || x.ProjectState == null)).ToList();
|
||||
}
|
||||
var hazardRegisters = from x in db.HSSE_Hazard_HazardRegister select x;
|
||||
|
@ -366,17 +370,20 @@ namespace FineUIPro.Web.common
|
|||
div_xmalh.InnerHtml = ((from x in Funs.DB.Meeting_WeekMeeting where x.WeekMeetingDate.Value.Year == date.Year && x.WeekMeetingDate.Value.Month == date.Month && x.WeekMeetingDate.Value.Day == date.Day select x).Count()
|
||||
+ (from x in Funs.DB.Meeting_MonthMeeting where x.MonthMeetingDate.Value.Year == date.Year && x.MonthMeetingDate.Value.Month == date.Month && x.MonthMeetingDate.Value.Day == date.Day select x).Count()).ToString();
|
||||
}
|
||||
else {
|
||||
|
||||
else
|
||||
{
|
||||
|
||||
//项目安全领导小组
|
||||
div_xmaqldxz.InnerHtml = Funs.DB.Meeting_SafetyLeaderGroupMeeting.Where(x => x.CompileDate > Const.DtmarkTime
|
||||
&& pids.Contains(x.ProjectId) ).Count().ToString();
|
||||
&& pids.Contains(x.ProjectId)).Count().ToString();
|
||||
//项目安全例会
|
||||
DateTime date = DateTime.Now;
|
||||
div_xmalh.InnerHtml = ((from x in Funs.DB.Meeting_WeekMeeting where x.WeekMeetingDate.Value.Year == date.Year && x.WeekMeetingDate.Value.Month == date.Month && x.WeekMeetingDate.Value.Day == date.Day
|
||||
div_xmalh.InnerHtml = ((from x in Funs.DB.Meeting_WeekMeeting
|
||||
where x.WeekMeetingDate.Value.Year == date.Year && x.WeekMeetingDate.Value.Month == date.Month && x.WeekMeetingDate.Value.Day == date.Day
|
||||
&& pids.Contains(x.ProjectId)
|
||||
select x).Count()
|
||||
+ (from x in Funs.DB.Meeting_MonthMeeting where x.MonthMeetingDate.Value.Year == date.Year && x.MonthMeetingDate.Value.Month == date.Month && x.MonthMeetingDate.Value.Day == date.Day
|
||||
+ (from x in Funs.DB.Meeting_MonthMeeting
|
||||
where x.MonthMeetingDate.Value.Year == date.Year && x.MonthMeetingDate.Value.Month == date.Month && x.MonthMeetingDate.Value.Day == date.Day
|
||||
&& pids.Contains(x.ProjectId)
|
||||
select x).Count()).ToString();
|
||||
|
||||
|
@ -389,9 +396,9 @@ namespace FineUIPro.Web.common
|
|||
/// 获取费用使用(万元)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetCostUse()
|
||||
public int GetCostUse()
|
||||
{
|
||||
if (pids==null)
|
||||
if (pids == null)
|
||||
{
|
||||
var result = 0;
|
||||
var costs = (from x in Funs.DB.CostGoods_CostSmallDetailItem
|
||||
|
@ -419,7 +426,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取施工机具在用数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetUseEquipmentNum()
|
||||
public int GetUseEquipmentNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -453,7 +460,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取施工机具特种设备数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetSpecialEquipmentNum()
|
||||
public int GetSpecialEquipmentNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -477,7 +484,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取作业许可项数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetLicensesNum()
|
||||
public int GetLicensesNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -500,7 +507,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取作业许可关闭项数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetLicensesCloseNum()
|
||||
public int GetLicensesCloseNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -525,9 +532,9 @@ namespace FineUIPro.Web.common
|
|||
/// 获取一般隐患整改闭环项
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetGeneralClosedNum()
|
||||
public int GetGeneralClosedNum()
|
||||
{
|
||||
if (pids==null)
|
||||
if (pids == null)
|
||||
{
|
||||
var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister
|
||||
where x.Risk_Level == "一般" && x.States == "3" &&
|
||||
|
@ -538,19 +545,19 @@ namespace FineUIPro.Web.common
|
|||
else
|
||||
{
|
||||
var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister
|
||||
where x.Risk_Level == "一般" && x.States == "3" &&
|
||||
where x.Risk_Level == "一般" && x.States == "3" &&
|
||||
x.CheckTime > Const.DtmarkTime && pids.Contains(x.ProjectId)
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一般隐患未整改完成项
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetGeneralNotClosedNum()
|
||||
public int GetGeneralNotClosedNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -574,7 +581,7 @@ namespace FineUIPro.Web.common
|
|||
/// 一般整改率
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string GetGeneralZgl()
|
||||
public string GetGeneralZgl()
|
||||
{
|
||||
var num1 = Math.Round(100.0 * GetGeneralClosedNum() / (GetGeneralClosedNum() + GetGeneralNotClosedNum()), 0).ToString();
|
||||
return num1;
|
||||
|
@ -584,7 +591,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取重大隐患整改闭环项
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetMajorClosedNum()
|
||||
public int GetMajorClosedNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -608,7 +615,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取重大隐患未整改完成项
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetMajorNotClosedNum()
|
||||
public int GetMajorNotClosedNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -632,7 +639,7 @@ namespace FineUIPro.Web.common
|
|||
/// 重大整改率
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string GetMajorZgl()
|
||||
public string GetMajorZgl()
|
||||
{
|
||||
var num1 = Math.Round(100.0 * GetMajorClosedNum() / (GetMajorClosedNum() + GetMajorNotClosedNum()), 0).ToString();
|
||||
if (num1 == "NaN") num1 = "0";
|
||||
|
@ -646,16 +653,17 @@ namespace FineUIPro.Web.common
|
|||
/// 获取企业负责人带班检查次数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetCompanyLeadShiftCheckNum()
|
||||
public int GetCompanyLeadShiftCheckNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
return HSSEData_HSSEService.GetCompanyLeadShiftCheckNum();
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
return HSSEData_HSSEService.GetCompanyLeadShiftCheckNum(pids);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -664,7 +672,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取企业综合检查次数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetCompanyComprehensiveCheckNum()
|
||||
public int GetCompanyComprehensiveCheckNum()
|
||||
{
|
||||
if (pids == null)
|
||||
return HSSEData_HSSEService.GetCompanyComprehensiveCheckNum();
|
||||
|
@ -676,7 +684,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取企业专项检查次数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetCompanySpecialCheckNum()
|
||||
public int GetCompanySpecialCheckNum()
|
||||
{
|
||||
if (pids == null)
|
||||
return HSSEData_HSSEService.GetCompanySpecialCheckNum();
|
||||
|
@ -688,7 +696,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取项目负责人带班检查次数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetProjectLeadShiftCheckNum()
|
||||
public int GetProjectLeadShiftCheckNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -697,21 +705,22 @@ namespace FineUIPro.Web.common
|
|||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
var result = (from x in Funs.DB.Check_ProjectLeaderCheck
|
||||
where x.CompileDate > Const.DtmarkTime
|
||||
&& pids.Contains(x.ProjectId)
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取项目专项检查次数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetProjectSpecialCheckNum()
|
||||
public int GetProjectSpecialCheckNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -720,21 +729,22 @@ namespace FineUIPro.Web.common
|
|||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
var result = (from x in Funs.DB.Check_CheckSpecial
|
||||
where x.CheckTime > Const.DtmarkTime
|
||||
&& pids.Contains(x.ProjectId)
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取项目专业检查次数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetProjectMajorCheckNum()
|
||||
public int GetProjectMajorCheckNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -743,7 +753,8 @@ namespace FineUIPro.Web.common
|
|||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister
|
||||
where x.CheckTime > Const.DtmarkTime
|
||||
&& pids.Contains(x.ProjectId)
|
||||
|
@ -758,7 +769,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取未遂事件数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetNearMissNum()
|
||||
public int GetNearMissNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -768,21 +779,22 @@ namespace FineUIPro.Web.common
|
|||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
var result = (from x in Funs.DB.Accident_AccidentPersonRecord
|
||||
join y in Funs.DB.Base_AccidentType on x.AccidentTypeId equals y.AccidentTypeId
|
||||
where x.IsAttempt == "1" && x.CompileDate > Const.DtmarkTime && pids.Contains(x.ProjectId)
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取可记录事件数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetRecordableEventNum()
|
||||
public int GetRecordableEventNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -792,21 +804,22 @@ namespace FineUIPro.Web.common
|
|||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
var result = (from x in Funs.DB.Accident_AccidentPersonRecord
|
||||
join y in Funs.DB.Base_AccidentType on x.AccidentTypeId equals y.AccidentTypeId
|
||||
where x.CompileDate > Const.DtmarkTime && pids.Contains(x.ProjectId)
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一般事故数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetGeneralAccidentNum()
|
||||
public int GetGeneralAccidentNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -828,7 +841,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取较大事故数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetMajorAccidentNum()
|
||||
public int GetMajorAccidentNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -850,7 +863,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取重大事故数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetSeriousAccidentNum()
|
||||
public int GetSeriousAccidentNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -872,13 +885,14 @@ namespace FineUIPro.Web.common
|
|||
/// 获取特别重大事故数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetSpecialSeriousAccidentNum()
|
||||
public int GetSpecialSeriousAccidentNum()
|
||||
{
|
||||
if (pids == null) {
|
||||
if (pids == null)
|
||||
{
|
||||
var result = (from x in Funs.DB.Accident_AccidentReport
|
||||
where x.AccidentDegree == "4"
|
||||
select x).Count();
|
||||
return result;
|
||||
where x.AccidentDegree == "4"
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -895,7 +909,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取企业级综合预案数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetCompanyComprehensivePlanNum()
|
||||
public int GetCompanyComprehensivePlanNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -928,7 +942,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取企业级专项预案数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetCompanySpecialPlanNum()
|
||||
public int GetCompanySpecialPlanNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -960,7 +974,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取企业级现场处置预案
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetCompanyOnSiteDisposalPlan()
|
||||
public int GetCompanyOnSiteDisposalPlan()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -992,7 +1006,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取企业级演练次数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetCompanyDrillNum()
|
||||
public int GetCompanyDrillNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -1022,7 +1036,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取三级安全教育培训数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetSafeTrainNum()
|
||||
public int GetSafeTrainNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -1049,7 +1063,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取专项培训数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetSpecialTrainNum()
|
||||
public int GetSpecialTrainNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -1075,7 +1089,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取特种作业培训数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetSpecialOperationTrainNum()
|
||||
public int GetSpecialOperationTrainNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -1103,7 +1117,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取一般风险数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetGeneralRiskNum()
|
||||
public int GetGeneralRiskNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -1128,7 +1142,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取低风险数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetLowRiskNum()
|
||||
public int GetLowRiskNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -1153,7 +1167,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取中风险数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetMediumRiskNum()
|
||||
public int GetMediumRiskNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -1178,7 +1192,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取高风险数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetHighRiskNum()
|
||||
public int GetHighRiskNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -1188,7 +1202,8 @@ namespace FineUIPro.Web.common
|
|||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
var result = (from x in Funs.DB.Hazard_HazardSelectedItem
|
||||
join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId
|
||||
where y.RiskLevel == 4 && (x.IsStart == true || x.State == "1")
|
||||
|
@ -1204,7 +1219,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取危大工程审批完成数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetCompletedNum()
|
||||
public int GetCompletedNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -1228,7 +1243,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取危大工程培训人次数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetTrainPersonNum()
|
||||
public int GetTrainPersonNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -1250,7 +1265,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取危大工程施工个数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetConstructionNum()
|
||||
public int GetConstructionNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -1274,7 +1289,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取危大工程完工个数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetFinishedNum()
|
||||
public int GetFinishedNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -1298,7 +1313,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取超危大工程审批完成数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetSuperCompletedNum()
|
||||
public int GetSuperCompletedNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -1322,13 +1337,13 @@ namespace FineUIPro.Web.common
|
|||
/// 获取超危大工程培训人次数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetSuperTrainPersonNum()
|
||||
public int GetSuperTrainPersonNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
var result =
|
||||
(from x in Funs.DB.Solution_LargerHazard
|
||||
where x.IsSuperLargerHazard == true && x.RecordTime > Const.DtmarkTime
|
||||
where x.IsSuperLargerHazard == true && x.TrainPersonNum != null && x.RecordTime > Const.DtmarkTime
|
||||
select x.TrainPersonNum).ToList().Sum(x => x.Value);
|
||||
return result;
|
||||
}
|
||||
|
@ -1336,7 +1351,7 @@ namespace FineUIPro.Web.common
|
|||
{
|
||||
var result =
|
||||
(from x in Funs.DB.Solution_LargerHazard
|
||||
where x.IsSuperLargerHazard == true && x.RecordTime > Const.DtmarkTime && pids.Contains(x.ProjectId)
|
||||
where x.IsSuperLargerHazard == true && x.TrainPersonNum != null && x.RecordTime > Const.DtmarkTime && pids.Contains(x.ProjectId)
|
||||
select x.TrainPersonNum).ToList().Sum(x => x.Value);
|
||||
return result;
|
||||
}
|
||||
|
@ -1346,7 +1361,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取超危大工程施工个数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetSuperConstructionNum()
|
||||
public int GetSuperConstructionNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
@ -1370,7 +1385,7 @@ namespace FineUIPro.Web.common
|
|||
/// 获取超危大工程完工个数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetSuperFinishedNum()
|
||||
public int GetSuperFinishedNum()
|
||||
{
|
||||
if (pids == null)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue