修改共检统计
This commit is contained in:
parent
cfd069933e
commit
9305995a9e
|
@ -72,9 +72,9 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||||
{
|
{
|
||||||
NextDate = Convert.ToDateTime(StartDate.Year + "-" + StartDate.Month + "-25");
|
NextDate = Convert.ToDateTime(StartDate.Year + "-" + StartDate.Month + "-25");
|
||||||
//统计所给事件段的全部数量
|
//统计所给事件段的全部数量
|
||||||
List<Model.View_CQMS_InspectionManagementDetail> managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NewDate, false);
|
List<Model.View_CQMS_InspectionManagementDetail> managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NextDate, false);
|
||||||
//统计所给事件段的合格数量
|
//统计所给事件段的合格数量
|
||||||
List<Model.View_CQMS_InspectionManagementDetail> managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NewDate, true);
|
List<Model.View_CQMS_InspectionManagementDetail> managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NextDate, true);
|
||||||
|
|
||||||
Statistics.CheckDate += string.Format("{0:yyyy-MM-dd}", NextDate);
|
Statistics.CheckDate += string.Format("{0:yyyy-MM-dd}", NextDate);
|
||||||
Statistics.SunNumber = managementListSunNumber.Count();
|
Statistics.SunNumber = managementListSunNumber.Count();
|
||||||
|
|
|
@ -249,13 +249,13 @@ namespace FineUIPro.Web.ZHGL.InspectionSummary
|
||||||
//一次共检合格数
|
//一次共检合格数
|
||||||
var list20 = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
var list20 = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||||
join y in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId
|
join y in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId
|
||||||
where y.IsOnceQualified == true
|
where y.IsOnceQualified == true && y.InspectionDate != null
|
||||||
select new { y.ProjectId,y.InspectionDate }).ToList();
|
select new { y.ProjectId,y.InspectionDate,y.IsOnceQualified,x.InspectionId, Isid= y.InspectionId }).ToList();
|
||||||
////总数
|
////总数
|
||||||
var list21 = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
var list21 = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||||
join y in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId
|
join y in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId
|
||||||
|
where y.InspectionDate != null
|
||||||
select new { y.ProjectId}).ToList();
|
select new { y.ProjectId, x.InspectionId, Isid = y.InspectionId,y.InspectionDate }).ToList();
|
||||||
|
|
||||||
//关键事项
|
//关键事项
|
||||||
var list22 = (from x in Funs.DB.GJSX
|
var list22 = (from x in Funs.DB.GJSX
|
||||||
|
|
Loading…
Reference in New Issue