20240627 质量月报
This commit is contained in:
@@ -1535,13 +1535,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
string Quantity1Sum = String.Empty;//本月检查合格点数/本月检查点数
|
||||
string Quantity2Sum = String.Empty;//累计检查合格点数/累计检查点数
|
||||
|
||||
|
||||
//加载所有单位
|
||||
//var units = from x in db.Project_ProjectUnit
|
||||
// join y in db.Base_Unit on x.UnitId equals y.UnitId
|
||||
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
||||
// orderby y.UnitCode
|
||||
// select new { x.UnitId, y.UnitName };
|
||||
var inspectionUnits = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||
var cqmsDetail = from c in db.View_CQMS_InspectionManagementDetail
|
||||
join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
||||
@@ -1675,13 +1668,14 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
//int i = 1;
|
||||
string cNProfessionalId = (from x in db.Base_CNProfessional where x.CNProfessionalCode == cNProfessionalCode select x.CNProfessionalId).FirstOrDefault();
|
||||
|
||||
|
||||
List<string> workNames = new List<string>();
|
||||
//专业下所有集合
|
||||
List<Model.View_CQMS_InspectionManagementDetail> totalManagementList = BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, projectStartDate, endDate, false);
|
||||
List<Model.View_MonthReport_InspectionManagement> totalManagementList = BLL.InspectionManagementService.getViewMonthReportInspectionManagementByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, projectStartDate, endDate, false);
|
||||
//专业下当期集合
|
||||
List<Model.View_CQMS_InspectionManagementDetail> managementList = BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, startDate, endDate, false);
|
||||
List<Model.View_MonthReport_InspectionManagement> managementList = BLL.InspectionManagementService.getViewMonthReportInspectionManagementByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, startDate, endDate, false);
|
||||
workNames = totalManagementList.Select(x => x.UnitWorkId).DefaultIfEmpty().Distinct()?.ToList();
|
||||
|
||||
foreach (string item in workNames)
|
||||
{
|
||||
Model.WBS_UnitWork ins = BLL.UnitWorkService.GetUnitWorkByUnitWorkId(item);
|
||||
|
||||
Reference in New Issue
Block a user