diff --git a/SGGL/BLL/ZHGL/DataSync/CQMSDataService.cs b/SGGL/BLL/ZHGL/DataSync/CQMSDataService.cs
index 11abdd9f..c1b6f1ea 100644
--- a/SGGL/BLL/ZHGL/DataSync/CQMSDataService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/CQMSDataService.cs
@@ -1557,19 +1557,19 @@ namespace BLL
///
public static List GetKeyProcessNum()
{
- var result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
- join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
+ var result = (from x in Funs.DB.Check_SpotCheckDetail
+ join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "1" && x.CreateDate > Const.DtmarkTime
select new Model.InspectionManagementOutput()
{
ProjectId = y.ProjectId,
//ProjectName = p.ProjectName,
//UnitName = UnitService.getUnitNamesUnitIds(x.UnitIds),
- Id = x.InspectionDetailId,
- BreakdownCode = y.BreakdownCode,
- BreakdownName = y.BreakdownName,
- Basis = y.Basis,
- CheckPoints = y.CheckPoints,
+ Id = x.SpotCheckDetailId,
+ BreakdownCode = y.ControlItemAndCycleCode,
+ BreakdownName = y.ControlItemContent,
+ Basis = y.HGForms,
+ CheckPoints = y.ControlItemDef,
}).ToList();
return result;
}
@@ -1588,20 +1588,19 @@ namespace BLL
///
public static List GetKeyProcessOkNum()
{
- 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
+ var result = (from x in Funs.DB.Check_SpotCheckDetail
+ join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
+ where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "1" && x.IsOK == true && x.CreateDate > Const.DtmarkTime
select new Model.InspectionManagementOutput()
{
ProjectId = y.ProjectId,
//ProjectName = p.ProjectName,
//UnitName = UnitService.getUnitNamesUnitIds(x.UnitIds),
- Id = x.InspectionDetailId,
- BreakdownCode = y.BreakdownCode,
- BreakdownName = y.BreakdownName,
- Basis = y.Basis,
- CheckPoints = y.CheckPoints,
+ Id = x.SpotCheckDetailId,
+ BreakdownCode = y.ControlItemAndCycleCode,
+ BreakdownName = y.ControlItemContent,
+ Basis = y.HGForms,
+ CheckPoints = y.ControlItemDef,
}).ToList();
return result;
}
@@ -1620,19 +1619,19 @@ namespace BLL
///
public static List GetSpecialProcessNum()
{
- var result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
- join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
+ var result = (from x in Funs.DB.Check_SpotCheckDetail
+ join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "2" && x.CreateDate > Const.DtmarkTime
select new Model.InspectionManagementOutput()
{
ProjectId = y.ProjectId,
//ProjectName = p.ProjectName,
//UnitName = UnitService.getUnitNamesUnitIds(x.UnitIds),
- Id = x.InspectionDetailId,
- BreakdownCode = y.BreakdownCode,
- BreakdownName = y.BreakdownName,
- Basis = y.Basis,
- CheckPoints = y.CheckPoints,
+ Id = x.SpotCheckDetailId,
+ BreakdownCode = y.ControlItemAndCycleCode,
+ BreakdownName = y.ControlItemContent,
+ Basis = y.HGForms,
+ CheckPoints = y.ControlItemDef,
}).ToList();
return result;
}
@@ -1650,20 +1649,19 @@ namespace BLL
///
public static List GetSpecialProcessOkNum()
{
- 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
+ var result = (from x in Funs.DB.Check_SpotCheckDetail
+ join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
+ where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "2" && x.IsOK == true && x.CreateDate > Const.DtmarkTime
select new Model.InspectionManagementOutput()
{
ProjectId = y.ProjectId,
//ProjectName = p.ProjectName,
//UnitName = UnitService.getUnitNamesUnitIds(x.UnitIds),
- Id = x.InspectionDetailId,
- BreakdownCode = y.BreakdownCode,
- BreakdownName = y.BreakdownName,
- Basis = y.Basis,
- CheckPoints = y.CheckPoints,
+ Id = x.SpotCheckDetailId,
+ BreakdownCode = y.ControlItemAndCycleCode,
+ BreakdownName = y.ControlItemContent,
+ Basis = y.HGForms,
+ CheckPoints = y.ControlItemDef,
}).ToList();
return result;
}
@@ -1681,19 +1679,19 @@ namespace BLL
///
public static List GetConcealedWorksNum()
{
- var result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
- join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
+ var result = (from x in Funs.DB.Check_SpotCheckDetail
+ join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "3" && x.CreateDate > Const.DtmarkTime
select new Model.InspectionManagementOutput()
{
ProjectId = y.ProjectId,
//ProjectName = p.ProjectName,
//UnitName = UnitService.getUnitNamesUnitIds(x.UnitIds),
- Id = x.InspectionDetailId,
- BreakdownCode = y.BreakdownCode,
- BreakdownName = y.BreakdownName,
- Basis = y.Basis,
- CheckPoints = y.CheckPoints,
+ Id = x.SpotCheckDetailId,
+ BreakdownCode = y.ControlItemAndCycleCode,
+ BreakdownName = y.ControlItemContent,
+ Basis = y.HGForms,
+ CheckPoints = y.ControlItemDef,
}).ToList();
return result;
}
@@ -1711,20 +1709,19 @@ namespace BLL
///
public static List GetConcealedWorksOkNum()
{
- 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
+ var result = (from x in Funs.DB.Check_SpotCheckDetail
+ join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
+ where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "3" && x.IsOK == true && x.CreateDate > Const.DtmarkTime
select new Model.InspectionManagementOutput()
{
ProjectId = y.ProjectId,
//ProjectName = p.ProjectName,
//UnitName = UnitService.getUnitNamesUnitIds(x.UnitIds),
- Id = x.InspectionDetailId,
- BreakdownCode = y.BreakdownCode,
- BreakdownName = y.BreakdownName,
- Basis = y.Basis,
- CheckPoints = y.CheckPoints,
+ Id = x.SpotCheckDetailId,
+ BreakdownCode = y.ControlItemAndCycleCode,
+ BreakdownName = y.ControlItemContent,
+ Basis = y.HGForms,
+ CheckPoints = y.ControlItemDef,
}).ToList();
return result;
}
@@ -1743,20 +1740,19 @@ namespace BLL
///
public static List GetUnitProjectAcceptNum()
{
- 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
+ var result = (from x in Funs.DB.Check_SpotCheckDetail
+ join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "4" && x.CreateDate > Const.DtmarkTime
select new Model.InspectionManagementOutput()
{
ProjectId = y.ProjectId,
//ProjectName = p.ProjectName,
//UnitName = UnitService.getUnitNamesUnitIds(x.UnitIds),
- Id = x.InspectionDetailId,
- BreakdownCode = y.BreakdownCode,
- BreakdownName = y.BreakdownName,
- Basis = y.Basis,
- CheckPoints = y.CheckPoints,
+ Id = x.SpotCheckDetailId,
+ BreakdownCode = y.ControlItemAndCycleCode,
+ BreakdownName = y.ControlItemContent,
+ Basis = y.HGForms,
+ CheckPoints = y.ControlItemDef,
}).ToList();
return result;
}
@@ -1774,20 +1770,19 @@ namespace BLL
///
public static List GetUnitProjectAcceptOKNum()
{
- 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
+ var result = (from x in Funs.DB.Check_SpotCheckDetail
+ join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
+ where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "4" && x.IsOK == true && x.CreateDate > Const.DtmarkTime
select new Model.InspectionManagementOutput()
{
ProjectId = y.ProjectId,
//ProjectName = p.ProjectName,
//UnitName = UnitService.getUnitNamesUnitIds(x.UnitIds),
- Id = x.InspectionDetailId,
- BreakdownCode = y.BreakdownCode,
- BreakdownName = y.BreakdownName,
- Basis = y.Basis,
- CheckPoints = y.CheckPoints,
+ Id = x.SpotCheckDetailId,
+ BreakdownCode = y.ControlItemAndCycleCode,
+ BreakdownName = y.ControlItemContent,
+ Basis = y.HGForms,
+ CheckPoints = y.ControlItemDef,
}).ToList();
return result;
}
@@ -1806,20 +1801,19 @@ namespace BLL
///
public static List GetMaterialInRecheckNum()
{
- 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
+ var result = (from x in Funs.DB.Check_SpotCheckDetail
+ join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "5" && x.CreateDate > Const.DtmarkTime
select new Model.InspectionManagementOutput()
{
ProjectId = y.ProjectId,
//ProjectName = p.ProjectName,
//UnitName = UnitService.getUnitNamesUnitIds(x.UnitIds),
- Id = x.InspectionDetailId,
- BreakdownCode = y.BreakdownCode,
- BreakdownName = y.BreakdownName,
- Basis = y.Basis,
- CheckPoints = y.CheckPoints,
+ Id = x.SpotCheckDetailId,
+ BreakdownCode = y.ControlItemAndCycleCode,
+ BreakdownName = y.ControlItemContent,
+ Basis = y.HGForms,
+ CheckPoints = y.ControlItemDef,
}).ToList();
return result;
}
@@ -1837,20 +1831,19 @@ namespace BLL
///
public static List GetMaterialInRecheckOKNum()
{
- 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
+ var result = (from x in Funs.DB.Check_SpotCheckDetail
+ join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
+ where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "5" && x.IsOK == true && x.CreateDate > Const.DtmarkTime
select new Model.InspectionManagementOutput()
{
ProjectId = y.ProjectId,
//ProjectName = p.ProjectName,
//UnitName = UnitService.getUnitNamesUnitIds(x.UnitIds),
- Id = x.InspectionDetailId,
- BreakdownCode = y.BreakdownCode,
- BreakdownName = y.BreakdownName,
- Basis = y.Basis,
- CheckPoints = y.CheckPoints,
+ Id = x.SpotCheckDetailId,
+ BreakdownCode = y.ControlItemAndCycleCode,
+ BreakdownName = y.ControlItemContent,
+ Basis = y.HGForms,
+ CheckPoints = y.ControlItemDef,
}).ToList();
return result;
}
@@ -1869,20 +1862,19 @@ namespace BLL
///
public static List GetSubProjectAcceptNum()
{
- 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
+ var result = (from x in Funs.DB.Check_SpotCheckDetail
+ join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "5" && x.CreateDate > Const.DtmarkTime
select new Model.InspectionManagementOutput()
{
ProjectId = y.ProjectId,
//ProjectName = p.ProjectName,
//UnitName = UnitService.getUnitNamesUnitIds(x.UnitIds),
- Id = x.InspectionDetailId,
- BreakdownCode = y.BreakdownCode,
- BreakdownName = y.BreakdownName,
- Basis = y.Basis,
- CheckPoints = y.CheckPoints,
+ Id = x.SpotCheckDetailId,
+ BreakdownCode = y.ControlItemAndCycleCode,
+ BreakdownName = y.ControlItemContent,
+ Basis = y.HGForms,
+ CheckPoints = y.ControlItemDef,
}).ToList();
return result;
}
@@ -1900,20 +1892,19 @@ namespace BLL
///
public static List GetSubProjectAcceptOKNum()
{
- 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
+ var result = (from x in Funs.DB.Check_SpotCheckDetail
+ join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
+ where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "5" && x.IsOK == true && x.CreateDate > Const.DtmarkTime
select new Model.InspectionManagementOutput()
{
ProjectId = y.ProjectId,
//ProjectName = p.ProjectName,
//UnitName = UnitService.getUnitNamesUnitIds(x.UnitIds),
- Id = x.InspectionDetailId,
- BreakdownCode = y.BreakdownCode,
- BreakdownName = y.BreakdownName,
- Basis = y.Basis,
- CheckPoints = y.CheckPoints,
+ Id = x.SpotCheckDetailId,
+ BreakdownCode = y.ControlItemAndCycleCode,
+ BreakdownName = y.ControlItemContent,
+ Basis = y.HGForms,
+ CheckPoints = y.ControlItemDef,
}).ToList();
return result;
}
@@ -1931,20 +1922,19 @@ namespace BLL
///
public static List GetSubdivisionalWorksAcceptNum()
{
- 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
+ var result = (from x in Funs.DB.Check_SpotCheckDetail
+ join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "6" && x.CreateDate > Const.DtmarkTime
select new Model.InspectionManagementOutput()
{
ProjectId = y.ProjectId,
//ProjectName = p.ProjectName,
//UnitName = UnitService.getUnitNamesUnitIds(x.UnitIds),
- Id = x.InspectionDetailId,
- BreakdownCode = y.BreakdownCode,
- BreakdownName = y.BreakdownName,
- Basis = y.Basis,
- CheckPoints = y.CheckPoints,
+ Id = x.SpotCheckDetailId,
+ BreakdownCode = y.ControlItemAndCycleCode,
+ BreakdownName = y.ControlItemContent,
+ Basis = y.HGForms,
+ CheckPoints = y.ControlItemDef,
}).ToList();
return result;
}
@@ -1962,20 +1952,19 @@ namespace BLL
///
public static List GetSubdivisionalWorksAcceptOKNum()
{
- 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
+ var result = (from x in Funs.DB.Check_SpotCheckDetail
+ join y in Funs.DB.WBS_ControlItemAndCycle on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
+ where BeUnderConstructionList.Contains(y.ProjectId) && y.CheckAcceptType == "6" && x.IsOK == true && x.CreateDate > Const.DtmarkTime
select new Model.InspectionManagementOutput()
{
ProjectId = y.ProjectId,
//ProjectName = p.ProjectName,
//UnitName = UnitService.getUnitNamesUnitIds(x.UnitIds),
- Id = x.InspectionDetailId,
- BreakdownCode = y.BreakdownCode,
- BreakdownName = y.BreakdownName,
- Basis = y.Basis,
- CheckPoints = y.CheckPoints,
+ Id = x.SpotCheckDetailId,
+ BreakdownCode = y.ControlItemAndCycleCode,
+ BreakdownName = y.ControlItemContent,
+ Basis = y.HGForms,
+ CheckPoints = y.ControlItemDef,
}).ToList();
return result;
}
diff --git a/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_CQMSDataService.cs b/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_CQMSDataService.cs
index 846709e4..c1f246d7 100644
--- a/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_CQMSDataService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_CQMSDataService.cs
@@ -749,8 +749,8 @@ namespace BLL
///
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
///
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
///
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
///
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
///
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
///
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
///
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
///
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
///
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
///
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
///
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
///
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;
}