This commit is contained in:
2025-06-25 11:51:00 +08:00
parent 8816de937f
commit f8b9a0f0ce
2 changed files with 135 additions and 152 deletions
@@ -749,8 +749,8 @@ namespace BLL
/// <returns></returns>
public static int GetKeyProcessNum(string projectid)
{
int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
int result = (from x in Funs.DB.Check_SpotCheckDetail
join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
where y.ProjectId == projectid && y.CheckAcceptType == "1" && x.CreateDate > Const.DtmarkTime
select x).Count();
return result;
@@ -761,10 +761,9 @@ namespace BLL
/// <returns></returns>
public static int GetKeyProcessOkNum(string projectid)
{
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
int result = (from x in Funs.DB.Check_SpotCheckDetail
join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
where y.ProjectId == projectid && y.CheckAcceptType == "1" && x.IsOK == true && x.CreateDate > Const.DtmarkTime
select x).Count();
return result;
}
@@ -774,8 +773,8 @@ namespace BLL
/// <returns></returns>
public static int GetSpecialProcessNum(string projectid)
{
int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
int result = (from x in Funs.DB.Check_SpotCheckDetail
join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
where y.ProjectId == projectid && y.CheckAcceptType == "2" && x.CreateDate > Const.DtmarkTime
select x).Count();
return result;
@@ -786,10 +785,9 @@ namespace BLL
/// <returns></returns>
public static int GetSpecialProcessOkNum(string projectid)
{
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
var result = (from x in Funs.DB.Check_SpotCheckDetail
join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
where y.ProjectId == projectid && y.CheckAcceptType == "2" && x.IsOK == true && x.CreateDate > Const.DtmarkTime
select x).Count();
return result;
}
@@ -799,8 +797,8 @@ namespace BLL
/// <returns></returns>
public static int GetConcealedWorksNum(string projectid)
{
int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
int result = (from x in Funs.DB.Check_SpotCheckDetail
join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
where y.ProjectId == projectid && y.CheckAcceptType == "3" && x.CreateDate > Const.DtmarkTime
select x).Count();
return result;
@@ -811,10 +809,9 @@ namespace BLL
/// <returns></returns>
public static int GetConcealedWorksOkNum(string projectid)
{
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
int result = (from x in Funs.DB.Check_SpotCheckDetail
join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
where y.ProjectId == projectid && y.CheckAcceptType == "3" && x.IsOK == true && x.CreateDate > Const.DtmarkTime
select x).Count();
return result;
}
@@ -824,8 +821,8 @@ namespace BLL
/// <returns></returns>
public static int GetUnitProjectOnesNum(string projectid)
{
int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
int result = (from x in Funs.DB.Check_SpotCheckDetail
join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
where y.ProjectId == projectid && y.CheckAcceptType == "4" && x.CreateDate > Const.DtmarkTime
select x).Count();
return result;
@@ -836,10 +833,9 @@ namespace BLL
/// <returns></returns>
public static int GetUnitProjectOnesOKNum(string projectid)
{
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
int result = (from x in Funs.DB.Check_SpotCheckDetail
join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
where y.ProjectId == projectid && y.CheckAcceptType == "4" && x.IsOK == true && x.CreateDate > Const.DtmarkTime
select x).Count();
return result;
}
@@ -849,8 +845,8 @@ namespace BLL
/// <returns></returns>
public static int GetMaterialInRecheckNum(string projectid)
{
int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
int result = (from x in Funs.DB.Check_SpotCheckDetail
join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
where y.ProjectId == projectid && y.CheckAcceptType == "5" && x.CreateDate > Const.DtmarkTime
select x).Count();
return result;
@@ -861,10 +857,9 @@ namespace BLL
/// <returns></returns>
public static int GetMaterialInRecheckOKNum(string projectid)
{
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
int result = (from x in Funs.DB.Check_SpotCheckDetail
join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
where y.ProjectId == projectid && y.CheckAcceptType == "5" && x.IsOK == true && x.CreateDate > Const.DtmarkTime
select x).Count();
return result;
}
@@ -874,8 +869,8 @@ namespace BLL
/// <returns></returns>
public static int GetSubdivisionalWorksAcceptNum(string projectid)
{
int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
int result = (from x in Funs.DB.Check_SpotCheckDetail
join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
where y.ProjectId == projectid && y.CheckAcceptType == "6" && x.CreateDate > Const.DtmarkTime
select x).Count();
return result;
@@ -886,10 +881,9 @@ namespace BLL
/// <returns></returns>
public static int GetSubdivisionalWorksAcceptOKNum(string projectid)
{
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
int result = (from x in Funs.DB.Check_SpotCheckDetail
join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
where y.ProjectId == projectid && y.CheckAcceptType == "6" && x.IsOK == true && x.CreateDate > Const.DtmarkTime
select x).Count();
return result;
}