提交代码

This commit is contained in:
2024-04-18 15:04:08 +08:00
parent 15781a6969
commit 6ba17f2d02
18 changed files with 1882 additions and 57 deletions
+31 -18
View File
@@ -57,7 +57,8 @@ namespace FineUIPro.Web.common
unitId = thisUnit.UnitId;
}
int result = (from x in Funs.DB.Person_CompanyBranchPerson
where x.IsOnJob == true && x.UnitId == unitId
join y in Funs.DB.Base_WorkPost on x.WorkPostId equals y.WorkPostId
where x.IsOnJob == true && x.UnitId == unitId && y.IsCQMS == true
select x).Count();
return result;
}
@@ -74,7 +75,8 @@ namespace FineUIPro.Web.common
unitId = thisUnit.UnitId;
}
int result = (from x in Funs.DB.Person_CompanyBranchPerson
where x.IsOnJob == true && x.UnitId != unitId
join y in Funs.DB.Base_WorkPost on x.WorkPostId equals y.WorkPostId
where x.IsOnJob == true && x.UnitId != unitId && y.IsCQMS == true
select x).Count();
return result;
}
@@ -182,10 +184,12 @@ namespace FineUIPro.Web.common
int result = 0;
;
//统计所给时间段的全部数量
List<Model.View_CQMS_InspectionManagementDetail> managementListSunNumber =
BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(
null, null, DateTime.Parse("2001-01-01"), DateTime.Now, false);
result = managementListSunNumber.Count;
//List<Model.View_CQMS_InspectionManagementDetail> managementListSunNumber =
// BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(
// null, null, DateTime.Parse("2001-01-01"), DateTime.Now, false);
var num1 = (from x in Funs.DB.ProcessControl_InspectionManagement
select x).Count();
result = num1;
//int result = (from x in Funs.DB.Check_CheckControl
// where x.CheckDate <= DateTime.Now && x.State == "7"
// select x).Count();
@@ -199,10 +203,13 @@ namespace FineUIPro.Web.common
{
int result = 0;
//统计所给时间段的合格数量
List<Model.View_CQMS_InspectionManagementDetail> managementListOneNumber =
BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(
null, null, DateTime.Parse("2001-01-01"), DateTime.Now, true);
result = managementListOneNumber.Count;
//List<Model.View_CQMS_InspectionManagementDetail> managementListOneNumber =
// 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 == true
select x).Count();
result = num2;
//int result = (from x in Funs.DB.Check_CheckControl
// where x.CheckDate <= DateTime.Now && x.State != "7"
@@ -422,17 +429,23 @@ namespace FineUIPro.Web.common
//获取专业
InspectionManagementZy += "'" + item.ProfessionalName + "',";
//根据专业获取总计
var num1 = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
join y in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId
where y.CNProfessionalId == item.CNProfessionalId
select x).ToList().Count;
//var num1 = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
// join y in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId
// where y.CNProfessionalId == item.CNProfessionalId
// select x).ToList().Count;
var num1 = (from x in Funs.DB.ProcessControl_InspectionManagement
where x.CNProfessionalId == item.CNProfessionalId
select x).Count();
InspectionManagementSumCount += "'"+ num1 + "',";
//根据专业获取合格数
var num2 = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
join y in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId
where y.CNProfessionalId == item.CNProfessionalId && y.IsOnceQualified==true
select x).ToList().Count;
//var num2 = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
// join y in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId
// where y.CNProfessionalId == item.CNProfessionalId && y.IsOnceQualified==true
// select x).ToList().Count;
var num2 = (from x in Funs.DB.ProcessControl_InspectionManagement
where x.CNProfessionalId == item.CNProfessionalId && x.IsOnceQualified == true
select x).Count();
InspectionManagementOkCount += "'" + num2 + "',";
//一次验收合格率