1
This commit is contained in:
@@ -55,7 +55,7 @@ namespace FineUIPro.Web.common
|
||||
var inspectionManagements = from x in db.ProcessControl_InspectionManagement where x.ProjectId == this.CurrUser.LoginProjectId && cns.Contains(x.CNProfessionalId) select x;
|
||||
this.divZLGJ.InnerHtml = inspectionManagements.Count().ToString();
|
||||
//验收数据
|
||||
this.divYS.InnerHtml = inspectionManagements.Count(x => x.IsOnceQualified == null || x.IsOnceQualified == true).ToString();
|
||||
this.divYS.InnerHtml = inspectionManagements.Count(x => x.IsOnceQualified == true).ToString();
|
||||
//焊工过期人数统计
|
||||
var welders = from x in db.Comprehensive_InspectionPerson
|
||||
join y in db.Base_Post on x.PostId equals y.PostId
|
||||
@@ -63,7 +63,7 @@ namespace FineUIPro.Web.common
|
||||
select x;
|
||||
this.divHG.InnerHtml = welders.Count().ToString();
|
||||
//竣工资料
|
||||
this.divJGZL.InnerHtml = inspectionManagements.Count(x => x.IsOnceQualified == null || x.IsOnceQualified == true).ToString();
|
||||
this.divJGZL.InnerHtml = inspectionManagements.Count(x => x.IsOnceQualified == true).ToString();
|
||||
//NCR
|
||||
var NCRManagements = from x in db.Comprehensive_NCRManagement where x.ProjectId == this.CurrUser.LoginProjectId && cns.Contains(x.CNProfessionalId) select x;
|
||||
this.divNCR.InnerHtml = NCRManagements.Count().ToString();
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace FineUIPro.Web.common
|
||||
select new { x.InspectionId, y.IsOnceQualified }).Distinct().ToList();
|
||||
this.divZLGJ.InnerHtml = inspectionManagementDetails.Count().ToString();
|
||||
//验收数据
|
||||
this.divYS.InnerHtml = inspectionManagementDetails.Count(x => x.IsOnceQualified == null || x.IsOnceQualified == true).ToString();
|
||||
this.divYS.InnerHtml = inspectionManagementDetails.Count(x => x.IsOnceQualified == true).ToString();
|
||||
//焊工过期人数统计
|
||||
var welders = from x in db.Comprehensive_InspectionPerson
|
||||
join y in db.Base_Post on x.PostId equals y.PostId
|
||||
@@ -92,7 +92,7 @@ namespace FineUIPro.Web.common
|
||||
newWelders = newWelders.Distinct().ToList();
|
||||
this.divHG.InnerHtml = newWelders.Count().ToString();
|
||||
//竣工资料
|
||||
this.divJGZL.InnerHtml = inspectionManagementDetails.Count(x => x.IsOnceQualified == null || x.IsOnceQualified == true).ToString();
|
||||
this.divJGZL.InnerHtml = inspectionManagementDetails.Count(x => x.IsOnceQualified == true).ToString();
|
||||
//NCR
|
||||
var NCRManagements = from x in db.Comprehensive_NCRManagement where x.ProjectId == this.CurrUser.LoginProjectId && cns.Contains(x.CNProfessionalId) select x;
|
||||
List<Model.Comprehensive_NCRManagement> newNCRManagements = new List<Model.Comprehensive_NCRManagement>();
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace FineUIPro.Web
|
||||
{
|
||||
var db = new Model.SGGLDB(Funs.ConnString);
|
||||
List<Model.ProcessControl_InspectionManagement> TotalCheckDetailOKLists = (from x in db.ProcessControl_InspectionManagement
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && (x.IsOnceQualified == null || x.IsOnceQualified == true)
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.IsOnceQualified == true
|
||||
select x).ToList();
|
||||
List<Model.ProcessControl_InspectionManagement> TotalCheckDetailLists = (from x in db.ProcessControl_InspectionManagement
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
@@ -284,7 +284,7 @@ namespace FineUIPro.Web
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
var units = BLL.ProjectUnitService.GetProjectUnitListByProjectIdUnitType(CurrUser.LoginProjectId, BLL.Const.ProjectUnitType_2);
|
||||
List<Model.ProcessControl_InspectionManagement> TotalCheckDetailOKLists = (from x in db.ProcessControl_InspectionManagement
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && (x.IsOnceQualified == null || x.IsOnceQualified == true)
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.IsOnceQualified == true
|
||||
select x).ToList();
|
||||
List<Model.ProcessControl_InspectionManagement> TotalCheckDetailLists = (from x in db.ProcessControl_InspectionManagement
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
@@ -340,7 +340,7 @@ namespace FineUIPro.Web
|
||||
var cns = BLL.CNProfessionalService.GetCnProList();
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
List<Model.ProcessControl_InspectionManagement> TotalCheckDetailOKLists = (from x in db.ProcessControl_InspectionManagement
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && (x.IsOnceQualified == null || x.IsOnceQualified == true)
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.IsOnceQualified == true
|
||||
select x).ToList();
|
||||
List<Model.ProcessControl_InspectionManagement> TotalCheckDetailLists = (from x in db.ProcessControl_InspectionManagement
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
@@ -384,7 +384,7 @@ namespace FineUIPro.Web
|
||||
var cns = BLL.CNProfessionalService.GetList();
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
List<Model.ProcessControl_InspectionManagement> TotalCheckDetailOKLists = (from x in db.ProcessControl_InspectionManagement
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && (x.IsOnceQualified == null || x.IsOnceQualified == true)
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.IsOnceQualified == true
|
||||
select x).ToList();
|
||||
List<Model.ProcessControl_InspectionManagement> TotalCheckDetailLists = (from x in db.ProcessControl_InspectionManagement
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
@@ -452,7 +452,7 @@ namespace FineUIPro.Web
|
||||
foreach (var unitWork in unitWorks)
|
||||
{
|
||||
listCategories.Add(unitWork.UnitWorkName);
|
||||
var okChecks = TotalCheckDetailOKLists.Where(x => x.UnitWorkId == unitWork.UnitWorkId && (x.IsOnceQualified == null || x.IsOnceQualified == true)).ToList();
|
||||
var okChecks = TotalCheckDetailOKLists.Where(x => x.UnitWorkId == unitWork.UnitWorkId && x.IsOnceQualified == true).ToList();
|
||||
var totalChecks = TotalCheckDetailOKLists.Where(x => x.UnitWorkId == unitWork.UnitWorkId).ToList();
|
||||
if (okChecks.Count > 0 && totalChecks.Count > 0)
|
||||
{
|
||||
|
||||
@@ -44,9 +44,9 @@ namespace FineUIPro.Web.common
|
||||
var inspectionManagements = from x in db.ProcessControl_InspectionManagement where x.ProjectId == this.CurrUser.LoginProjectId select x;
|
||||
this.divZLGJ.InnerHtml = inspectionManagements.Count().ToString();
|
||||
//验收数据
|
||||
this.divYS.InnerHtml = inspectionManagements.Count(x => x.IsOnceQualified== null || x.IsOnceQualified == true).ToString();
|
||||
this.divYS.InnerHtml = inspectionManagements.Count(x => x.IsOnceQualified == true).ToString();
|
||||
//竣工资料
|
||||
this.divJGZL.InnerHtml = inspectionManagements.Count(x => x.IsOnceQualified == null || x.IsOnceQualified == true).ToString();
|
||||
this.divJGZL.InnerHtml = inspectionManagements.Count(x => x.IsOnceQualified == true).ToString();
|
||||
//NCR
|
||||
var NCRManagements = from x in db.Comprehensive_NCRManagement where x.ProjectId == this.CurrUser.LoginProjectId select x;
|
||||
this.divNCR.InnerHtml = NCRManagements.Count().ToString();
|
||||
|
||||
@@ -894,7 +894,7 @@ namespace FineUIPro.Web.common
|
||||
select x).Count().ToString();
|
||||
|
||||
var num2 = (from x in db.ProcessControl_InspectionManagement
|
||||
where (x.IsOnceQualified == null || x.IsOnceQualified == true) && x.ProjectId == ProjectId
|
||||
where x.IsOnceQualified == true && x.ProjectId == ProjectId
|
||||
select x).Count();
|
||||
zlgjfinishNumber = num2.ToString();
|
||||
|
||||
|
||||
@@ -792,7 +792,7 @@ namespace FineUIPro.Web.common
|
||||
zlgjallNumber = num1.ToString();
|
||||
|
||||
var num2 = (from x in Funs.DB.ProcessControl_InspectionManagement
|
||||
where (x.IsOnceQualified == null || x.IsOnceQualified == true)
|
||||
where x.IsOnceQualified == true
|
||||
select x).Count();
|
||||
zlgjfinishNumber = num2.ToString();
|
||||
|
||||
@@ -808,7 +808,7 @@ namespace FineUIPro.Web.common
|
||||
zlgjallNumber = num1.ToString();
|
||||
|
||||
var num2 = (from x in Funs.DB.ProcessControl_InspectionManagement
|
||||
where (x.IsOnceQualified == null || x.IsOnceQualified == true) && pids.Contains(x.ProjectId)
|
||||
where x.IsOnceQualified == true && pids.Contains(x.ProjectId)
|
||||
select x).Count();
|
||||
zlgjfinishNumber = num2.ToString();
|
||||
|
||||
|
||||
@@ -411,7 +411,7 @@ namespace FineUIPro.Web.common
|
||||
// BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(
|
||||
// null, null, DateTime.Parse("2001-01-01"), DateTime.Now, true);
|
||||
var num2 = (from x in Funs.DB.ProcessControl_InspectionManagement
|
||||
where (x.IsOnceQualified == null || x.IsOnceQualified == true)
|
||||
where x.IsOnceQualified == true
|
||||
select x).Count();
|
||||
result = num2;
|
||||
|
||||
@@ -425,7 +425,7 @@ namespace FineUIPro.Web.common
|
||||
int result = 0;
|
||||
|
||||
var num2 = (from x in Funs.DB.ProcessControl_InspectionManagement
|
||||
where (x.IsOnceQualified == null || x.IsOnceQualified == true) && pids.Contains(x.ProjectId)
|
||||
where x.IsOnceQualified == true && pids.Contains(x.ProjectId)
|
||||
select x).Count();
|
||||
result = num2;
|
||||
|
||||
@@ -873,7 +873,7 @@ namespace FineUIPro.Web.common
|
||||
where x.CNProfessionalId == item.ControlId
|
||||
select x).Count();
|
||||
num2 = (from x in Funs.DB.ProcessControl_InspectionManagement
|
||||
where x.CNProfessionalId == item.ControlId && (x.IsOnceQualified == null || x.IsOnceQualified == true)
|
||||
where x.CNProfessionalId == item.ControlId && x.IsOnceQualified == true
|
||||
select x).Count();
|
||||
}
|
||||
else
|
||||
@@ -882,7 +882,7 @@ namespace FineUIPro.Web.common
|
||||
where x.CNProfessionalId == item.ControlId && pids.Contains(x.ProjectId)
|
||||
select x).Count();
|
||||
num2 = (from x in Funs.DB.ProcessControl_InspectionManagement
|
||||
where x.CNProfessionalId == item.ControlId && (x.IsOnceQualified == null || x.IsOnceQualified == true) && pids.Contains(x.ProjectId)
|
||||
where x.CNProfessionalId == item.ControlId && x.IsOnceQualified == true && pids.Contains(x.ProjectId)
|
||||
select x).Count();
|
||||
}
|
||||
|
||||
@@ -927,7 +927,7 @@ namespace FineUIPro.Web.common
|
||||
where x.CNProfessionalId == item.CNProfessionalId
|
||||
select x).Count();
|
||||
num2 = (from x in Funs.DB.ProcessControl_InspectionManagement
|
||||
where x.CNProfessionalId == item.CNProfessionalId && (x.IsOnceQualified == null || x.IsOnceQualified == true)
|
||||
where x.CNProfessionalId == item.CNProfessionalId && x.IsOnceQualified == true
|
||||
select x).Count();
|
||||
}
|
||||
else
|
||||
@@ -936,7 +936,7 @@ namespace FineUIPro.Web.common
|
||||
where x.CNProfessionalId == item.CNProfessionalId && pids.Contains(x.ProjectId)
|
||||
select x).Count();
|
||||
num2 = (from x in Funs.DB.ProcessControl_InspectionManagement
|
||||
where x.CNProfessionalId == item.CNProfessionalId && (x.IsOnceQualified == null || x.IsOnceQualified == true) && pids.Contains(x.ProjectId)
|
||||
where x.CNProfessionalId == item.CNProfessionalId && x.IsOnceQualified == true && pids.Contains(x.ProjectId)
|
||||
select x).Count();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user