2023-10-20
This commit is contained in:
@@ -178,19 +178,19 @@
|
||||
<div class="zyp">
|
||||
<div class="zyp_box">
|
||||
<div class="zyp_label">动火</div>
|
||||
<div class="zyp_number"><%=getWrokCount0() %></div>
|
||||
<div class="zyp_number"><%=getWrokCount0() %>/<%=getALLWrokCount0() %></div>
|
||||
</div>
|
||||
<div class="zyp_box">
|
||||
<div class="zyp_label">高处</div>
|
||||
<div class="zyp_number"><%=getWrokCount1() %></div>
|
||||
<div class="zyp_number"><%=getWrokCount1() %>/<%=getALLWrokCount1() %></div>
|
||||
</div>
|
||||
<div class="zyp_box">
|
||||
<div class="zyp_label">吊装</div>
|
||||
<div class="zyp_number"><%=getWrokCount2() %></div>
|
||||
<div class="zyp_number"><%=getWrokCount2() %>/<%=getALLWrokCount2() %></div>
|
||||
</div>
|
||||
<div class="zyp_box">
|
||||
<div class="zyp_label">其他</div>
|
||||
<div class="zyp_number"><%=getWrokCount3() %></div>
|
||||
<div class="zyp_number"><%=getWrokCount3() %>/<%=getALLWrokCount3() %></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="zyp-lis">
|
||||
|
||||
@@ -65,11 +65,12 @@ namespace FineUIPro.Web.common
|
||||
|
||||
//安全管理人员
|
||||
var allSum = from x in Funs.DB.SitePerson_Person
|
||||
where x.IsUsed == true && x.ProjectId == ProjectId
|
||||
where x.ProjectId == ProjectId && x.IsUsed == true && x.InTime <= DateTime.Now && (!x.OutTime.HasValue || x.OutTime.Value > DateTime.Now)
|
||||
select x;
|
||||
|
||||
var glAllPerson = from x in allSum
|
||||
join y in Funs.DB.Base_WorkPost on x.WorkPostId equals y.WorkPostId
|
||||
where y.IsHsse==true && x.ProjectId == ProjectId //安管人员
|
||||
where y.IsHsse==true && x.ProjectId == ProjectId //安管人员
|
||||
select x;
|
||||
this.divSafeManagePersonNum.InnerHtml = glAllPerson.Count().ToString();
|
||||
|
||||
@@ -511,18 +512,32 @@ namespace FineUIPro.Web.common
|
||||
var result = Funs.DB.View_License_LicenseManager.Where(x => x.ProjectId == ProjectId && x.LicenseTypeName == "动火作业许可证" &&x.WorkStatesStr=="作业中").ToList().Count;
|
||||
return result;
|
||||
}
|
||||
|
||||
protected int getALLWrokCount0()
|
||||
{
|
||||
var result = Funs.DB.View_License_LicenseManager.Where(x => x.ProjectId == ProjectId && x.LicenseTypeName == "动火作业许可证" ).ToList().Count;
|
||||
return result;
|
||||
}
|
||||
protected int getWrokCount1()
|
||||
{
|
||||
var result = Funs.DB.View_License_LicenseManager.Where(x => x.ProjectId == ProjectId && x.LicenseTypeName == "高处作业许可证" && x.WorkStatesStr == "作业中").ToList().Count;
|
||||
return result;
|
||||
}
|
||||
protected int getALLWrokCount1()
|
||||
{
|
||||
var result = Funs.DB.View_License_LicenseManager.Where(x => x.ProjectId == ProjectId && x.LicenseTypeName == "高处作业许可证" ).ToList().Count;
|
||||
return result;
|
||||
}
|
||||
|
||||
protected int getWrokCount2()
|
||||
{
|
||||
var result = Funs.DB.View_License_LicenseManager.Where(x => x.ProjectId == ProjectId && x.LicenseTypeName == "吊装作业许可证" && x.WorkStatesStr == "作业中").ToList().Count;
|
||||
return result;
|
||||
}
|
||||
protected int getALLWrokCount2()
|
||||
{
|
||||
var result = Funs.DB.View_License_LicenseManager.Where(x => x.ProjectId == ProjectId && x.LicenseTypeName == "吊装作业许可证").ToList().Count;
|
||||
return result;
|
||||
}
|
||||
|
||||
protected int getWrokCount3()
|
||||
{
|
||||
@@ -530,6 +545,12 @@ namespace FineUIPro.Web.common
|
||||
&& x.LicenseTypeName != "动火作业许可证" && x.LicenseTypeName != "高处作业许可证" && x.LicenseTypeName != "吊装作业许可证" && x.WorkStatesStr == "作业中").ToList().Count;
|
||||
return result;
|
||||
}
|
||||
protected int getALLWrokCount3()
|
||||
{
|
||||
var result = Funs.DB.View_License_LicenseManager.Where(x => x.ProjectId == ProjectId
|
||||
&& x.LicenseTypeName != "动火作业许可证" && x.LicenseTypeName != "高处作业许可证" && x.LicenseTypeName != "吊装作业许可证" ).ToList().Count;
|
||||
return result;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 质量问题
|
||||
|
||||
Reference in New Issue
Block a user