This commit is contained in:
parent
2cba5bad4b
commit
cd7f83a45c
|
@ -32,7 +32,7 @@ namespace BLL.API.CQMS
|
|||
newInspectionManagement.Branch = inspectionManagement.Branch;
|
||||
newInspectionManagement.ControlPointType = inspectionManagement.ControlPointType;
|
||||
newInspectionManagement.AcceptanceSite = inspectionManagement.AcceptanceSite;
|
||||
newInspectionManagement.IsOnceQualified = inspectionManagement.IsOnceQualified == "true" ? true : false;
|
||||
newInspectionManagement.IsOnceQualified = (inspectionManagement.IsOnceQualified == "true"|| inspectionManagement.IsOnceQualified == null) ? true : false;
|
||||
if (!string.IsNullOrEmpty(inspectionManagement.InspectionDate))
|
||||
newInspectionManagement.InspectionDate = DateTime.Parse(inspectionManagement.InspectionDate);
|
||||
newInspectionManagement.AttachUrl = inspectionManagement.AttachUrl;
|
||||
|
|
|
@ -164,7 +164,7 @@ namespace BLL
|
|||
{
|
||||
return (from x in db.ProcessControl_InspectionManagementDetail
|
||||
join y in db.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId
|
||||
where x.InspectionId == InspectionId && y.IsOnceQualified == true
|
||||
where x.InspectionId == InspectionId && (y.IsOnceQualified == null || y.IsOnceQualified == true)
|
||||
select x).ToList();
|
||||
}
|
||||
}
|
||||
|
@ -174,7 +174,7 @@ namespace BLL
|
|||
{
|
||||
return (from x in db.ProcessControl_InspectionManagementDetail
|
||||
join y in db.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId
|
||||
where x.InspectionId == InspectionId && y.IsOnceQualified == true
|
||||
where x.InspectionId == InspectionId && (y.IsOnceQualified == null || y.IsOnceQualified == true)
|
||||
select x).ToList();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -72,7 +72,7 @@ namespace BLL
|
|||
ControlPointType = (from y in db.WBS_BreakdownProject where y.BreakdownProjectId == x.ControlPointType select y.BreakdownName).FirstOrDefault(),//质量控制点
|
||||
Class = (from y in db.WBS_BreakdownProject where y.BreakdownProjectId == x.ControlPointType select y.Class).FirstOrDefault(),//控制等级
|
||||
x.AcceptanceSite,
|
||||
IsOnceQualified = (x.IsOnceQualified == true ? "是" : "否"),
|
||||
IsOnceQualified = ((x.IsOnceQualified == null || x.IsOnceQualified == true) ? "是" : "否"),
|
||||
x.InspectionDate,
|
||||
x.AttachUrl,
|
||||
x.AttachUrl2,
|
||||
|
@ -121,7 +121,7 @@ namespace BLL
|
|||
ControlPointType = (from y in db.WBS_BreakdownProject where y.BreakdownProjectId == x.ControlPointType select y.BreakdownName).FirstOrDefault(),//质量控制点
|
||||
Class = (from y in db.WBS_BreakdownProject where y.BreakdownProjectId == x.ControlPointType select y.Class).FirstOrDefault(),//控制等级
|
||||
x.AcceptanceSite,
|
||||
IsOnceQualified = (x.IsOnceQualified == true ? "是" : "否"),
|
||||
IsOnceQualified = ((x.IsOnceQualified == null || x.IsOnceQualified == true) ? "是" : "否"),
|
||||
x.InspectionDate,
|
||||
x.AttachUrl,
|
||||
x.AttachUrl2,
|
||||
|
@ -322,7 +322,7 @@ namespace BLL
|
|||
}
|
||||
if (isOnceQualified == true)
|
||||
{
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.IsOnceQualified == isOnceQualified select x).ToList();
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.IsOnceQualified == null || x.IsOnceQualified == true select x).ToList();
|
||||
}
|
||||
if (startDate != null && SoptDate != null)
|
||||
{
|
||||
|
@ -345,7 +345,7 @@ namespace BLL
|
|||
}
|
||||
if (isOnceQualified == true)
|
||||
{
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.IsOnceQualified == isOnceQualified select x).ToList();
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.IsOnceQualified == null || x.IsOnceQualified == true select x).ToList();
|
||||
}
|
||||
if (startDate != null && SoptDate != null)
|
||||
{
|
||||
|
@ -363,7 +363,7 @@ namespace BLL
|
|||
}
|
||||
if (isOnceQualified == true)
|
||||
{
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.IsOnceQualified == isOnceQualified select x).ToList();
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.IsOnceQualified == null || x.IsOnceQualified == true select x).ToList();
|
||||
}
|
||||
if (startDate != null && SoptDate != null)
|
||||
{
|
||||
|
@ -386,7 +386,8 @@ namespace BLL
|
|||
/// <summary>
|
||||
/// 根据id修改验收日期和是否一次合格
|
||||
/// </summary>
|
||||
public static void UpdateByInspectionManagementId(Model.ProcessControl_InspectionManagement inspectionManagement) {
|
||||
public static void UpdateByInspectionManagementId(Model.ProcessControl_InspectionManagement inspectionManagement)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
Model.ProcessControl_InspectionManagement newInspectionManagement = db.ProcessControl_InspectionManagement.FirstOrDefault(e => e.InspectionId == inspectionManagement.InspectionId);
|
||||
|
@ -406,7 +407,7 @@ namespace BLL
|
|||
List<Model.ProcessControl_InspectionManagement> InspectionMangementList = (from x in Funs.DB.ProcessControl_InspectionManagement where x.ProjectId == projectId select x).ToList();
|
||||
if (isOnceQualified == true)
|
||||
{
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.IsOnceQualified == isOnceQualified select x).ToList();
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.IsOnceQualified == null || x.IsOnceQualified == true select x).ToList();
|
||||
}
|
||||
if (startDate != null && SoptDate != null)
|
||||
{
|
||||
|
@ -429,7 +430,7 @@ namespace BLL
|
|||
}
|
||||
if (isOnceQualified == true)
|
||||
{
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.IsOnceQualified == isOnceQualified select x).ToList();
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.IsOnceQualified == null || x.IsOnceQualified == true select x).ToList();
|
||||
}
|
||||
if (startDate != null && SoptDate != null)
|
||||
{
|
||||
|
@ -448,7 +449,7 @@ namespace BLL
|
|||
}
|
||||
if (isOnceQualified == true)
|
||||
{
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.IsOnceQualified == isOnceQualified select x).ToList();
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.IsOnceQualified == null || x.IsOnceQualified == true select x).ToList();
|
||||
}
|
||||
if (startDate != null && SoptDate != null)
|
||||
{
|
||||
|
@ -473,7 +474,7 @@ namespace BLL
|
|||
}
|
||||
if (isOnceQualified == true)
|
||||
{
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.IsOnceQualified == isOnceQualified select x).ToList();
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.IsOnceQualified == null || x.IsOnceQualified == true select x).ToList();
|
||||
}
|
||||
if (startDate != null && SoptDate != null)
|
||||
{
|
||||
|
|
|
@ -1527,7 +1527,7 @@ namespace BLL
|
|||
var result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||
join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
||||
where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "1" && z.IsOnceQualified == true && x.CreateDate > Const.DtmarkTime
|
||||
where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "1" && (z.IsOnceQualified == null || z.IsOnceQualified == true) && x.CreateDate > Const.DtmarkTime
|
||||
select new Model.InspectionManagementOutput()
|
||||
{
|
||||
ProjectId = y.ProjectId,
|
||||
|
@ -1589,7 +1589,7 @@ namespace BLL
|
|||
var result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||
join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
||||
where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "2" && z.IsOnceQualified == true && x.CreateDate > Const.DtmarkTime
|
||||
where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "2" && (z.IsOnceQualified == null || z.IsOnceQualified == true) && x.CreateDate > Const.DtmarkTime
|
||||
select new Model.InspectionManagementOutput()
|
||||
{
|
||||
ProjectId = y.ProjectId,
|
||||
|
@ -1650,7 +1650,7 @@ namespace BLL
|
|||
var result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||
join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
||||
where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "3" && z.IsOnceQualified == true && x.CreateDate > Const.DtmarkTime
|
||||
where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "3" && (z.IsOnceQualified == null || z.IsOnceQualified == true) && x.CreateDate > Const.DtmarkTime
|
||||
select new Model.InspectionManagementOutput()
|
||||
{
|
||||
ProjectId = y.ProjectId,
|
||||
|
@ -1713,7 +1713,7 @@ namespace BLL
|
|||
var result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||
join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
||||
where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "4" && z.IsOnceQualified == true && x.CreateDate > Const.DtmarkTime
|
||||
where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "4" && (z.IsOnceQualified == null || z.IsOnceQualified == true) && x.CreateDate > Const.DtmarkTime
|
||||
select new Model.InspectionManagementOutput()
|
||||
{
|
||||
ProjectId = y.ProjectId,
|
||||
|
@ -1776,7 +1776,7 @@ namespace BLL
|
|||
var result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||
join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
||||
where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "5" && z.IsOnceQualified == true && x.CreateDate > Const.DtmarkTime
|
||||
where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "5" && (z.IsOnceQualified == null || z.IsOnceQualified == true) && x.CreateDate > Const.DtmarkTime
|
||||
select new Model.InspectionManagementOutput()
|
||||
{
|
||||
ProjectId = y.ProjectId,
|
||||
|
@ -1839,7 +1839,7 @@ namespace BLL
|
|||
var result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||
join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
||||
where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "5" && z.IsOnceQualified == true && x.CreateDate > Const.DtmarkTime
|
||||
where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "5" && (z.IsOnceQualified == null || z.IsOnceQualified == true) && x.CreateDate > Const.DtmarkTime
|
||||
select new Model.InspectionManagementOutput()
|
||||
{
|
||||
ProjectId = y.ProjectId,
|
||||
|
@ -1901,7 +1901,7 @@ namespace BLL
|
|||
var result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||
join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
||||
where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "6" && z.IsOnceQualified == true && x.CreateDate > Const.DtmarkTime
|
||||
where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "6" && (z.IsOnceQualified == null || z.IsOnceQualified == true) && x.CreateDate > Const.DtmarkTime
|
||||
select new Model.InspectionManagementOutput()
|
||||
{
|
||||
ProjectId = y.ProjectId,
|
||||
|
|
|
@ -743,7 +743,7 @@ namespace BLL
|
|||
int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||
join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
||||
where y.ProjectId == projectid && y.CheckAcceptType == "1" && z.IsOnceQualified == true && x.CreateDate > Const.DtmarkTime
|
||||
where y.ProjectId == projectid && y.CheckAcceptType == "1" && (z.IsOnceQualified == null || z.IsOnceQualified == true) && x.CreateDate > Const.DtmarkTime
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
|
@ -768,7 +768,7 @@ namespace BLL
|
|||
var result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||
join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
||||
where y.ProjectId == projectid && y.CheckAcceptType == "2" && z.IsOnceQualified == true && x.CreateDate > Const.DtmarkTime
|
||||
where y.ProjectId == projectid && y.CheckAcceptType == "2" && (z.IsOnceQualified == null || z.IsOnceQualified == true) && x.CreateDate > Const.DtmarkTime
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
|
@ -793,7 +793,7 @@ namespace BLL
|
|||
int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||
join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
||||
where y.ProjectId == projectid && y.CheckAcceptType == "3" && z.IsOnceQualified == true && x.CreateDate > Const.DtmarkTime
|
||||
where y.ProjectId == projectid && y.CheckAcceptType == "3" && (z.IsOnceQualified == null || z.IsOnceQualified == true) && x.CreateDate > Const.DtmarkTime
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
|
@ -818,7 +818,7 @@ namespace BLL
|
|||
int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||
join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
||||
where y.ProjectId == projectid && y.CheckAcceptType == "4" && z.IsOnceQualified == true && x.CreateDate > Const.DtmarkTime
|
||||
where y.ProjectId == projectid && y.CheckAcceptType == "4" && (z.IsOnceQualified == null || z.IsOnceQualified == true) && x.CreateDate > Const.DtmarkTime
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
|
@ -843,7 +843,7 @@ namespace BLL
|
|||
int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||
join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
||||
where y.ProjectId == projectid && y.CheckAcceptType == "5" && z.IsOnceQualified == true && x.CreateDate > Const.DtmarkTime
|
||||
where y.ProjectId == projectid && y.CheckAcceptType == "5" && (z.IsOnceQualified == null || z.IsOnceQualified == true) && x.CreateDate > Const.DtmarkTime
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
|
@ -868,7 +868,7 @@ namespace BLL
|
|||
int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||
join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
||||
where y.ProjectId == projectid && y.CheckAcceptType == "6" && z.IsOnceQualified == true && x.CreateDate > Const.DtmarkTime
|
||||
where y.ProjectId == projectid && y.CheckAcceptType == "6" && (z.IsOnceQualified == null || z.IsOnceQualified == true) && x.CreateDate > Const.DtmarkTime
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -3179,7 +3179,7 @@ namespace FineUIPro.Web.CQMS.DataBase
|
|||
Ins.UnitWorkId,
|
||||
Ins.ControlPointType,
|
||||
Ins.AcceptanceSite,
|
||||
(CASE WHEN Ins.IsOnceQualified=1 THEN '是' ELSE '否' END) AS IsOnceQualified,
|
||||
(CASE WHEN Ins.IsOnceQualified=0 THEN '否' ELSE '是' END) AS IsOnceQualified,
|
||||
Ins.InspectionDate,
|
||||
Ins.AttachUrl,
|
||||
Ins.CheckDate,
|
||||
|
|
|
@ -48,7 +48,7 @@ namespace FineUIPro.Web.CQMS.Foreign
|
|||
checks.Branch,
|
||||
breakdown.BreakdownName as ControlPointType,
|
||||
checks.AcceptanceSite,
|
||||
(CASE WHEN checks.IsOnceQualified='True' THEN '是' ELSE '否' END) AS IsOnceQualified,
|
||||
(CASE WHEN checks.IsOnceQualified='Flase' THEN '否' ELSE '是' END) AS IsOnceQualified,
|
||||
checks.InspectionDate,
|
||||
checks.AttachUrl,
|
||||
checks.CheckDate,
|
||||
|
|
|
@ -101,8 +101,8 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
workNames.Add(divisionProject.DivisionName);
|
||||
checkStatisc.CheckNum = managementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc.TotalCheckNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null|| x.IsOnceQualified == true));
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
StatisticsList.Add(checkStatisc);
|
||||
}
|
||||
else //更新已有记录
|
||||
|
@ -110,8 +110,8 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
Model.CheckStatisc checkStatisc1 = StatisticsList.FirstOrDefault(x => x.WorkName == divisionProject.DivisionName);
|
||||
checkStatisc1.CheckNum += managementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc1.TotalCheckNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc1.OKNum += managementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc1.TotalOKNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc1.OKNum += managementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc1.TotalOKNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -151,8 +151,8 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
checkStatisc.WorkName = item.ProfessionalName;
|
||||
checkStatisc.CheckNum = managementList.Count();
|
||||
checkStatisc.TotalCheckNum = totalManagementList.Count();
|
||||
checkStatisc.OKNum = managementList.Count(x => x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.IsOnceQualified == true);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.IsOnceQualified == null|| x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.IsOnceQualified == null || x.IsOnceQualified == true);
|
||||
StatisticsList.Add(checkStatisc);
|
||||
i++;
|
||||
}
|
||||
|
@ -251,7 +251,7 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
checkStatisc.CheckNum = managementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc.TotalCheckNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
StatisticsList.Add(checkStatisc);
|
||||
}
|
||||
else //更新已有记录
|
||||
|
@ -259,8 +259,8 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
Model.CheckStatisc checkStatisc1 = StatisticsList.FirstOrDefault(x => x.WorkName == divisionProject.DivisionName);
|
||||
checkStatisc1.CheckNum += managementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc1.TotalCheckNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc1.OKNum += managementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc1.TotalOKNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc1.OKNum += managementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc1.TotalOKNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -535,8 +535,8 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
checkStatisc.WorkName = ins.UnitWorkName;
|
||||
checkStatisc.CheckNum = managementList.Count(x => x.UnitWorkId == item);
|
||||
checkStatisc.TotalCheckNum = totalManagementList.Count(x => x.UnitWorkId == item);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.UnitWorkId == item && x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.UnitWorkId == item && x.IsOnceQualified == true);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.UnitWorkId == item && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.UnitWorkId == item && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
StatisticsList.Add(checkStatisc);
|
||||
}
|
||||
|
||||
|
|
|
@ -250,8 +250,8 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
workNames.Add(ins.UnitWorkName);
|
||||
checkStatisc.CheckNum = managementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc.TotalCheckNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
StatisticsList.Add(checkStatisc);
|
||||
i++;
|
||||
}
|
||||
|
@ -260,8 +260,8 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
Model.CheckStatisc checkStatisc1 = StatisticsList.FirstOrDefault(x => x.WorkName == ins.UnitWorkName);
|
||||
checkStatisc1.CheckNum += managementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc1.TotalCheckNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc1.OKNum += managementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc1.TotalOKNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc1.OKNum += managementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc1.TotalOKNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -286,8 +286,8 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
workNames.Add(divisionProject.DivisionName);
|
||||
checkStatisc.CheckNum = managementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc.TotalCheckNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
StatisticsList.Add(checkStatisc);
|
||||
i++;
|
||||
}
|
||||
|
@ -296,8 +296,8 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
Model.CheckStatisc checkStatisc1 = StatisticsList.FirstOrDefault(x => x.WorkName == divisionProject.DivisionName);
|
||||
checkStatisc1.CheckNum += managementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc1.TotalCheckNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc1.OKNum += managementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc1.TotalOKNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc1.OKNum += managementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc1.TotalOKNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1519,8 +1519,8 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
workNames.Add(ins.UnitWorkName);
|
||||
checkStatisc.CheckNum = managementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc.TotalCheckNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
StatisticsList.Add(checkStatisc);
|
||||
i++;
|
||||
}
|
||||
|
@ -1529,8 +1529,8 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
Model.CheckStatisc checkStatisc1 = StatisticsList.FirstOrDefault(x => x.WorkName == ins.UnitWorkName);
|
||||
checkStatisc1.CheckNum += managementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc1.TotalCheckNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc1.OKNum += managementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc1.TotalOKNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc1.OKNum += managementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc1.TotalOKNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1555,8 +1555,8 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
workNames.Add(divisionProject.DivisionName);
|
||||
checkStatisc.CheckNum = managementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc.TotalCheckNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
StatisticsList.Add(checkStatisc);
|
||||
i++;
|
||||
}
|
||||
|
@ -1565,8 +1565,8 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
Model.CheckStatisc checkStatisc1 = StatisticsList.FirstOrDefault(x => x.WorkName == divisionProject.DivisionName);
|
||||
checkStatisc1.CheckNum += managementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc1.TotalCheckNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc1.OKNum += managementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc1.TotalOKNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc1.OKNum += managementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc1.TotalOKNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -530,8 +530,8 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
checkStatisc.WorkName = ins.UnitWorkName;
|
||||
checkStatisc.CheckNum = managementList.Count(x => x.UnitWorkId == item);
|
||||
checkStatisc.TotalCheckNum = totalManagementList.Count(x => x.UnitWorkId == item);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.UnitWorkId == item && x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.UnitWorkId == item && x.IsOnceQualified == true);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.UnitWorkId == item && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.UnitWorkId == item && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
StatisticsList.Add(checkStatisc);
|
||||
}
|
||||
|
||||
|
|
|
@ -252,8 +252,8 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
workNames.Add(ins.UnitWorkName);
|
||||
checkStatisc.CheckNum = managementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc.TotalCheckNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
StatisticsList.Add(checkStatisc);
|
||||
i++;
|
||||
}
|
||||
|
@ -262,8 +262,8 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
Model.CheckStatisc checkStatisc1 = StatisticsList.FirstOrDefault(x => x.WorkName == ins.UnitWorkName);
|
||||
checkStatisc1.CheckNum += managementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc1.TotalCheckNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc1.OKNum += managementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc1.TotalOKNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc1.OKNum += managementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc1.TotalOKNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -288,8 +288,8 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
workNames.Add(divisionProject.DivisionName);
|
||||
checkStatisc.CheckNum = managementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc.TotalCheckNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
StatisticsList.Add(checkStatisc);
|
||||
i++;
|
||||
}
|
||||
|
@ -298,8 +298,8 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
Model.CheckStatisc checkStatisc1 = StatisticsList.FirstOrDefault(x => x.WorkName == divisionProject.DivisionName);
|
||||
checkStatisc1.CheckNum += managementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc1.TotalCheckNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc1.OKNum += managementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc1.TotalOKNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc1.OKNum += managementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc1.TotalOKNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1523,8 +1523,8 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
workNames.Add(ins.UnitWorkName);
|
||||
checkStatisc.CheckNum = managementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc.TotalCheckNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
StatisticsList.Add(checkStatisc);
|
||||
i++;
|
||||
}
|
||||
|
@ -1533,8 +1533,8 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
Model.CheckStatisc checkStatisc1 = StatisticsList.FirstOrDefault(x => x.WorkName == ins.UnitWorkName);
|
||||
checkStatisc1.CheckNum += managementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc1.TotalCheckNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc1.OKNum += managementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc1.TotalOKNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc1.OKNum += managementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc1.TotalOKNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1559,8 +1559,8 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
workNames.Add(divisionProject.DivisionName);
|
||||
checkStatisc.CheckNum = managementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc.TotalCheckNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
StatisticsList.Add(checkStatisc);
|
||||
i++;
|
||||
}
|
||||
|
@ -1569,8 +1569,8 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
|||
Model.CheckStatisc checkStatisc1 = StatisticsList.FirstOrDefault(x => x.WorkName == divisionProject.DivisionName);
|
||||
checkStatisc1.CheckNum += managementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc1.TotalCheckNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType);
|
||||
checkStatisc1.OKNum += managementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc1.TotalOKNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && x.IsOnceQualified == true);
|
||||
checkStatisc1.OKNum += managementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc1.TotalOKNum += totalManagementList.Count(x => x.ControlPointType == item.ControlPointType && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4170,8 +4170,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
|||
checkStatisc.WorkName = item.UnitName;
|
||||
checkStatisc.CheckNum = monethCount.Count();
|
||||
checkStatisc.TotalCheckNum = AllList.Count();
|
||||
checkStatisc.OKNum = monethCount.Count(x => x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = AllList.Count(x => x.IsOnceQualified == true);
|
||||
checkStatisc.OKNum = monethCount.Count(x => x.IsOnceQualified == null || x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = AllList.Count(x => x.IsOnceQualified == null || x.IsOnceQualified == true);
|
||||
|
||||
if (checkStatisc.CheckNum != 0)//被除数不能为零
|
||||
{
|
||||
|
@ -4302,8 +4302,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
|||
checkStatisc.CheckNum = managementList.Count(x => x.UnitWorkId == item);
|
||||
checkStatisc.TotalCheckNum = totalManagementList.Count(x => x.UnitWorkId == item);
|
||||
|
||||
checkStatisc.OKNum = managementList.Count(x => x.UnitWorkId == item && x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.UnitWorkId == item && x.IsOnceQualified == true);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.UnitWorkId == item && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.UnitWorkId == item && (x.IsOnceQualified == null || x.IsOnceQualified == true)e);
|
||||
|
||||
if (checkStatisc.CheckNum != 0)//被除数不能为零
|
||||
{
|
||||
|
|
|
@ -664,8 +664,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
|||
checkStatisc.WorkName = ins.UnitWorkName;
|
||||
checkStatisc.CheckNum = managementList.Count(x => x.UnitWorkId == item);
|
||||
checkStatisc.TotalCheckNum = totalManagementList.Count(x => x.UnitWorkId == item);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.UnitWorkId == item && x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.UnitWorkId == item && x.IsOnceQualified == true);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.UnitWorkId == item && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.UnitWorkId == item && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
StatisticsList.Add(checkStatisc);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1576,8 +1576,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
|||
checkStatisc.WorkName = ins.UnitWorkName;
|
||||
checkStatisc.CheckNum = managementList.Count(x => x.UnitWorkId == item);
|
||||
checkStatisc.TotalCheckNum = totalManagementList.Count(x => x.UnitWorkId == item);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.UnitWorkId == item && x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.UnitWorkId == item && x.IsOnceQualified == true);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.UnitWorkId == item && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.UnitWorkId == item && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
StatisticsList.Add(checkStatisc);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4139,8 +4139,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
|||
checkStatisc.WorkName = item.UnitName;
|
||||
checkStatisc.CheckNum = monethCount.Count();
|
||||
checkStatisc.TotalCheckNum = AllList.Count();
|
||||
checkStatisc.OKNum = monethCount.Count(x => x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = AllList.Count(x => x.IsOnceQualified == true);
|
||||
checkStatisc.OKNum = monethCount.Count(x => x.IsOnceQualified == null || x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = AllList.Count(x => x.IsOnceQualified == null || x.IsOnceQualified == true);
|
||||
|
||||
if (checkStatisc.CheckNum != 0)//被除数不能为零
|
||||
{
|
||||
|
@ -4266,8 +4266,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
|||
checkStatisc.CheckNum = managementList.Count(x => x.UnitWorkId == item);
|
||||
checkStatisc.TotalCheckNum = totalManagementList.Count(x => x.UnitWorkId == item);
|
||||
|
||||
checkStatisc.OKNum = managementList.Count(x => x.UnitWorkId == item && x.IsOnceQualified == true);
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.UnitWorkId == item && x.IsOnceQualified == true);
|
||||
checkStatisc.OKNum = managementList.Count(x => x.UnitWorkId == item && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.UnitWorkId == item && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
|
||||
if (checkStatisc.CheckNum != 0)//被除数不能为零
|
||||
{
|
||||
|
|
|
@ -259,13 +259,13 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
|||
/// <param name="e"></param>
|
||||
protected void rblIsOnceQualified_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (this.rblIsOnceQualified.SelectedValue == "True")
|
||||
if (this.rblIsOnceQualified.SelectedValue == "Flase")
|
||||
{
|
||||
this.txtUnqualifiedReason.Hidden = true;
|
||||
this.txtUnqualifiedReason.Hidden = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtUnqualifiedReason.Hidden = false;
|
||||
this.txtUnqualifiedReason.Hidden = true;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
|
|
@ -188,7 +188,7 @@ namespace FineUIPro.Web.DataShow
|
|||
{
|
||||
var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||
var datetime2 = Funs.GetNewDateTime(this.txtEndTime.Text);
|
||||
var getT = Funs.DB.ProcessControl_InspectionManagement.Where(x => x.ProjectId == projectId.ToString() && x.IsOnceQualified == true);
|
||||
var getT = Funs.DB.ProcessControl_InspectionManagement.Where(x => x.ProjectId == projectId.ToString() && (x.IsOnceQualified == null|| x.IsOnceQualified == true));
|
||||
if (datetime1.HasValue)
|
||||
{
|
||||
getT = getT.Where(x => x.InspectionDate >= datetime1);
|
||||
|
@ -220,7 +220,7 @@ namespace FineUIPro.Web.DataShow
|
|||
{
|
||||
getALL = getALL.Where(x => x.CheckDate >= datetime1);
|
||||
}
|
||||
var getT = getALL.Where(x => x.ProjectId == projectId.ToString() && x.IsOnceQualified == true);
|
||||
var getT = getALL.Where(x => x.ProjectId == projectId.ToString() && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
int coutall = getALL.Count();
|
||||
int cout0 = getT.Count();
|
||||
if (coutall > 0)
|
||||
|
|
|
@ -53,7 +53,7 @@ namespace FineUIPro.Web.DataShow
|
|||
BP.Class,
|
||||
P.AcceptanceSite,
|
||||
P.AcceptanceCheckMan,
|
||||
(CASE WHEN IsOnceQualified='True' THEN '是' ELSE '否' END)AS IsOnceQualified,
|
||||
(CASE WHEN IsOnceQualified='Flase' THEN '否' ELSE '是' END)AS IsOnceQualified,
|
||||
P.InspectionCode,
|
||||
P.InspectionDate"
|
||||
+ @" FROM ProcessControl_InspectionManagementDetail AS D"
|
||||
|
|
|
@ -162,7 +162,7 @@ namespace FineUIPro.Web.DataShow
|
|||
int cout1 = 0;
|
||||
if (projectId != null)
|
||||
{
|
||||
var getT = getDataItemLists.Where(x => x.ProjectId == projectId.ToString() && x.CheckAcceptType == this.rbType.SelectedValue && x.IsOnceQualified == true);
|
||||
var getT = getDataItemLists.Where(x => x.ProjectId == projectId.ToString() && x.CheckAcceptType == this.rbType.SelectedValue && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
cout1 = getT.Count();
|
||||
}
|
||||
return cout1;
|
||||
|
@ -179,7 +179,7 @@ namespace FineUIPro.Web.DataShow
|
|||
if (projectId != null)
|
||||
{
|
||||
var getT1 = getDataItemLists.Where(x => x.ProjectId == projectId.ToString() && x.CheckAcceptType == this.rbType.SelectedValue);
|
||||
var getT2 = getDataItemLists.Where(x => x.ProjectId == projectId.ToString() && x.CheckAcceptType == this.rbType.SelectedValue && x.IsOnceQualified == true);
|
||||
var getT2 = getDataItemLists.Where(x => x.ProjectId == projectId.ToString() && x.CheckAcceptType == this.rbType.SelectedValue && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
cout1 = getT1.Count() - getT2.Count();
|
||||
}
|
||||
return cout1;
|
||||
|
@ -196,7 +196,7 @@ namespace FineUIPro.Web.DataShow
|
|||
if (projectId != null)
|
||||
{
|
||||
var getT1 = getDataItemLists.Where(x => x.ProjectId == projectId.ToString() && x.CheckAcceptType == this.rbType.SelectedValue);
|
||||
var getT2 = getDataItemLists.Where(x => x.ProjectId == projectId.ToString() && x.CheckAcceptType == this.rbType.SelectedValue && x.IsOnceQualified == true);
|
||||
var getT2 = getDataItemLists.Where(x => x.ProjectId == projectId.ToString() && x.CheckAcceptType == this.rbType.SelectedValue && (x.IsOnceQualified == null || x.IsOnceQualified == true));
|
||||
if (getT1.Count() > 0)
|
||||
{
|
||||
rate = Math.Round(getT2.Count() * 1.0 / getT1.Count() * 100, 2).ToString();
|
||||
|
|
|
@ -185,7 +185,7 @@ namespace FineUIPro.Web.DataShowLocal
|
|||
var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||
var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||
var getD1 = from x in Funs.DB.View_CQMS_InspectionManagementDetail
|
||||
where x.ProjectId == projectId.ToString() && x.IsOnceQualified==true
|
||||
where x.ProjectId == projectId.ToString() && (x.IsOnceQualified == null || x.IsOnceQualified == true)
|
||||
select x;
|
||||
|
||||
if (datetime1.HasValue)
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="现场质量检查" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="ProjectId" DataIDField="ProjectId" AllowSorting="true" SortField="SortIndex"
|
||||
SortDirection="ASC" OnSort="Grid1_Sort" EnableColumnLines="true" AllowColumnLocking="true" EnableSummary="true" SummaryPosition="Flow"
|
||||
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange">
|
||||
SortDirection="ASC" OnSort="Grid1_Sort" EnableColumnLines="true" AllowColumnLocking="true" EnableSummary="true" SummaryPosition="Bottom"
|
||||
AllowPaging="false" IsDatabasePaging="false" PageSize="100" OnPageIndexChange="Grid1_PageIndexChange">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
|
@ -93,10 +93,10 @@
|
|||
</f:GroupField>
|
||||
<f:GroupField HeaderText="质量专项检查" TextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField Width="100px" ColumnID="Value9" DataField="Value9"
|
||||
<f:RenderField Width="110px" ColumnID="Value9" DataField="Value9"
|
||||
FieldType="String" HeaderText="本月检查次数" TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="Value10" DataField="Value10"
|
||||
<f:RenderField Width="110px" ColumnID="Value10" DataField="Value10"
|
||||
FieldType="String" HeaderText="累计检查次数" TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
|
@ -115,7 +115,7 @@
|
|||
<f:RenderField Width="100px" ColumnID="Value14" DataField="Value14"
|
||||
FieldType="String" HeaderText="累计已整改" TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="Value15" DataField="Value15"
|
||||
<f:RenderField Width="110px" ColumnID="Value15" DataField="Value15"
|
||||
FieldType="String" HeaderText="累计完成比例" TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
|
|
|
@ -70,8 +70,8 @@ namespace FineUIPro.Web.ZHGL.CQMSData
|
|||
value1 = managementList.Count();
|
||||
value2 = totalManagementList.Count();
|
||||
|
||||
value3 = managementList.Count(x => x.IsOnceQualified == true);
|
||||
value4 = totalManagementList.Count(x => x.IsOnceQualified == true);
|
||||
value3 = managementList.Count(x => x.IsOnceQualified == null || x.IsOnceQualified == true);
|
||||
value4 = totalManagementList.Count(x => x.IsOnceQualified == null || x.IsOnceQualified == true);
|
||||
|
||||
|
||||
if (value1 != 0)//被除数不能为零
|
||||
|
|
|
@ -92,8 +92,8 @@ namespace FineUIPro.Web.ZHGL.CQMSData
|
|||
value1 = managementList1.Count();
|
||||
value2 = totalManagementList1.Count();
|
||||
|
||||
value3 = managementList1.Count(x => x.IsOnceQualified == true);
|
||||
value4 = totalManagementList1.Count(x => x.IsOnceQualified == true);
|
||||
value3 = managementList1.Count(x => x.IsOnceQualified == null || x.IsOnceQualified == true);
|
||||
value4 = totalManagementList1.Count(x => x.IsOnceQualified == null || x.IsOnceQualified == true);
|
||||
|
||||
if (value1 != 0)//被除数不能为零
|
||||
{
|
||||
|
@ -119,8 +119,8 @@ namespace FineUIPro.Web.ZHGL.CQMSData
|
|||
value7 = managementList2.Count();
|
||||
value8 = totalManagementList2.Count();
|
||||
|
||||
value9 = managementList2.Count(x => x.IsOnceQualified == true);
|
||||
value10 = totalManagementList2.Count(x => x.IsOnceQualified == true);
|
||||
value9 = managementList2.Count(x => x.IsOnceQualified == null || x.IsOnceQualified == true);
|
||||
value10 = totalManagementList2.Count(x => x.IsOnceQualified == null || x.IsOnceQualified == true);
|
||||
|
||||
if (value7 != 0)//被除数不能为零
|
||||
{
|
||||
|
@ -146,8 +146,8 @@ namespace FineUIPro.Web.ZHGL.CQMSData
|
|||
value13 = managementList3.Count();
|
||||
value14 = totalManagementList3.Count();
|
||||
|
||||
value15 = managementList3.Count(x => x.IsOnceQualified == true);
|
||||
value16 = totalManagementList3.Count(x => x.IsOnceQualified == true);
|
||||
value15 = managementList3.Count(x => x.IsOnceQualified == null || x.IsOnceQualified == true);
|
||||
value16 = totalManagementList3.Count(x => x.IsOnceQualified == null || x.IsOnceQualified == true);
|
||||
|
||||
if (value13 != 0)//被除数不能为零
|
||||
{
|
||||
|
@ -173,8 +173,8 @@ namespace FineUIPro.Web.ZHGL.CQMSData
|
|||
value19 = managementList4.Count();
|
||||
value20 = totalManagementList4.Count();
|
||||
|
||||
value21 = managementList4.Count(x => x.IsOnceQualified == true);
|
||||
value22 = totalManagementList4.Count(x => x.IsOnceQualified == true);
|
||||
value21 = managementList4.Count(x => x.IsOnceQualified == null || x.IsOnceQualified == true);
|
||||
value22 = totalManagementList4.Count(x => x.IsOnceQualified == null || x.IsOnceQualified == true);
|
||||
|
||||
if (value19 != 0)//被除数不能为零
|
||||
{
|
||||
|
@ -200,8 +200,8 @@ namespace FineUIPro.Web.ZHGL.CQMSData
|
|||
value25 = managementList5.Count();
|
||||
value26 = totalManagementList5.Count();
|
||||
|
||||
value27 = managementList5.Count(x => x.IsOnceQualified == true);
|
||||
value28 = totalManagementList5.Count(x => x.IsOnceQualified == true);
|
||||
value27 = managementList5.Count(x => x.IsOnceQualified == null || x.IsOnceQualified == true);
|
||||
value28 = totalManagementList5.Count(x => x.IsOnceQualified == null || x.IsOnceQualified == true);
|
||||
|
||||
if (value25 != 0)//被除数不能为零
|
||||
{
|
||||
|
|
|
@ -276,7 +276,7 @@ namespace FineUIPro.Web.ZHGL.InspectionSummary
|
|||
|
||||
//一次共检合格数
|
||||
var list20 = (from x in Funs.DB.ProcessControl_InspectionManagement
|
||||
where x.IsOnceQualified == true
|
||||
where x.IsOnceQualified == null || x.IsOnceQualified == true
|
||||
select new { x.ProjectId,x.InspectionDate,x.IsOnceQualified,x.InspectionId, Isid= x.InspectionId }).ToList();
|
||||
////总数
|
||||
var list21 = (from x in Funs.DB.ProcessControl_InspectionManagement
|
||||
|
|
|
@ -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 == true).ToString();
|
||||
this.divYS.InnerHtml = inspectionManagements.Count(x => x.IsOnceQualified == null || 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 == true).ToString();
|
||||
this.divJGZL.InnerHtml = inspectionManagements.Count(x => x.IsOnceQualified == null || 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 == true).ToString();
|
||||
this.divYS.InnerHtml = inspectionManagementDetails.Count(x => x.IsOnceQualified == null || 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 == true).ToString();
|
||||
this.divJGZL.InnerHtml = inspectionManagementDetails.Count(x => x.IsOnceQualified == null || 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 == true
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && (x.IsOnceQualified == null || 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 == true
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && (x.IsOnceQualified == null || 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 == true
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && (x.IsOnceQualified == null || 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 == true
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && (x.IsOnceQualified == null || 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 == true).ToList();
|
||||
var okChecks = TotalCheckDetailOKLists.Where(x => x.UnitWorkId == unitWork.UnitWorkId && (x.IsOnceQualified == null || 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 == true).ToString();
|
||||
this.divYS.InnerHtml = inspectionManagements.Count(x => x.IsOnceQualified== null || x.IsOnceQualified == true).ToString();
|
||||
//竣工资料
|
||||
this.divJGZL.InnerHtml = inspectionManagements.Count(x => x.IsOnceQualified == true).ToString();
|
||||
this.divJGZL.InnerHtml = inspectionManagements.Count(x => x.IsOnceQualified == null || 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();
|
||||
|
|
Loading…
Reference in New Issue