2023-10-20
This commit is contained in:
@@ -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