1
This commit is contained in:
@@ -164,7 +164,7 @@ namespace BLL
|
||||
{
|
||||
return (from x in db.ProcessControl_InspectionManagementDetail
|
||||
join y in db.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId
|
||||
where x.InspectionId == InspectionId && (y.IsOnceQualified == null || y.IsOnceQualified == true)
|
||||
where x.InspectionId == InspectionId && y.IsOnceQualified == true
|
||||
select x).ToList();
|
||||
}
|
||||
}
|
||||
@@ -174,7 +174,7 @@ namespace BLL
|
||||
{
|
||||
return (from x in db.ProcessControl_InspectionManagementDetail
|
||||
join y in db.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId
|
||||
where x.InspectionId == InspectionId && (y.IsOnceQualified == null || y.IsOnceQualified == true)
|
||||
where x.InspectionId == InspectionId && y.IsOnceQualified == true
|
||||
select x).ToList();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace BLL
|
||||
ControlPointType = (from y in db.WBS_BreakdownProject where y.BreakdownProjectId == x.ControlPointType select y.BreakdownName).FirstOrDefault(),//质量控制点
|
||||
Class = (from y in db.WBS_BreakdownProject where y.BreakdownProjectId == x.ControlPointType select y.Class).FirstOrDefault(),//控制等级
|
||||
x.AcceptanceSite,
|
||||
IsOnceQualified = ((x.IsOnceQualified == null || x.IsOnceQualified == true) ? "是" : "否"),
|
||||
IsOnceQualified = (x.IsOnceQualified == true ? "是" : "否"),
|
||||
x.InspectionDate,
|
||||
x.AttachUrl,
|
||||
x.AttachUrl2,
|
||||
@@ -121,7 +121,7 @@ namespace BLL
|
||||
ControlPointType = (from y in db.WBS_BreakdownProject where y.BreakdownProjectId == x.ControlPointType select y.BreakdownName).FirstOrDefault(),//质量控制点
|
||||
Class = (from y in db.WBS_BreakdownProject where y.BreakdownProjectId == x.ControlPointType select y.Class).FirstOrDefault(),//控制等级
|
||||
x.AcceptanceSite,
|
||||
IsOnceQualified = ((x.IsOnceQualified == null || x.IsOnceQualified == true) ? "是" : "否"),
|
||||
IsOnceQualified = (x.IsOnceQualified == true ? "是" : "否"),
|
||||
x.InspectionDate,
|
||||
x.AttachUrl,
|
||||
x.AttachUrl2,
|
||||
@@ -322,16 +322,24 @@ namespace BLL
|
||||
}
|
||||
if (isOnceQualified == true)
|
||||
{
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.IsOnceQualified == null || x.IsOnceQualified == true).ToList();
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.IsOnceQualified == true).ToList();
|
||||
}
|
||||
if (startDate != null && startDate != Convert.ToDateTime("2015-01-01"))
|
||||
if (startDate != null)
|
||||
{
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate >= startDate).ToList();
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.CompileDate >= startDate).ToList();
|
||||
}
|
||||
if (SoptDate != null)
|
||||
{
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate == null || x.InspectionDate <= SoptDate).ToList();
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.CompileDate <= SoptDate).ToList();
|
||||
}
|
||||
//if (startDate != null && startDate != Convert.ToDateTime("2015-01-01"))
|
||||
//{
|
||||
// InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate >= startDate).ToList();
|
||||
//}
|
||||
//if (SoptDate != null)
|
||||
//{
|
||||
// InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate == null || x.InspectionDate <= SoptDate).ToList();
|
||||
//}
|
||||
|
||||
return InspectionMangementList;
|
||||
}
|
||||
@@ -349,16 +357,24 @@ namespace BLL
|
||||
}
|
||||
if (isOnceQualified == true)
|
||||
{
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.IsOnceQualified == null || x.IsOnceQualified == true).ToList();
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.IsOnceQualified == true).ToList();
|
||||
}
|
||||
if (startDate != null && startDate != Convert.ToDateTime("2015-01-01"))
|
||||
if (startDate != null)
|
||||
{
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate >= startDate).ToList();
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.CompileDate >= startDate).ToList();
|
||||
}
|
||||
if (SoptDate != null)
|
||||
{
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate == null || x.InspectionDate <= SoptDate).ToList();
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.CompileDate <= SoptDate).ToList();
|
||||
}
|
||||
//if (startDate != null && startDate != Convert.ToDateTime("2015-01-01"))
|
||||
//{
|
||||
// InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate >= startDate).ToList();
|
||||
//}
|
||||
//if (SoptDate != null)
|
||||
//{
|
||||
// InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate == null || x.InspectionDate <= SoptDate).ToList();
|
||||
//}
|
||||
|
||||
return InspectionMangementList;
|
||||
}
|
||||
@@ -371,16 +387,24 @@ namespace BLL
|
||||
}
|
||||
if (isOnceQualified == true)
|
||||
{
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.IsOnceQualified == null || x.IsOnceQualified == true).ToList();
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.IsOnceQualified == true).ToList();
|
||||
}
|
||||
if (startDate != null && startDate != Convert.ToDateTime("2015-01-01"))
|
||||
if (startDate != null)
|
||||
{
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate >= startDate).ToList();
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.CompileDate >= startDate).ToList();
|
||||
}
|
||||
if (SoptDate != null)
|
||||
{
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate == null || x.InspectionDate <= SoptDate).ToList();
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.CompileDate <= SoptDate).ToList();
|
||||
}
|
||||
//if (startDate != null && startDate != Convert.ToDateTime("2015-01-01"))
|
||||
//{
|
||||
// InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate >= startDate).ToList();
|
||||
//}
|
||||
//if (SoptDate != null)
|
||||
//{
|
||||
// InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate == null || x.InspectionDate <= SoptDate).ToList();
|
||||
//}
|
||||
|
||||
return InspectionMangementList;
|
||||
}
|
||||
@@ -419,16 +443,24 @@ namespace BLL
|
||||
List<Model.ProcessControl_InspectionManagement> InspectionMangementList = (from x in Funs.DB.ProcessControl_InspectionManagement where x.ProjectId == projectId select x).ToList();
|
||||
if (isOnceQualified == true)
|
||||
{
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.IsOnceQualified == null || x.IsOnceQualified == true).ToList();
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.IsOnceQualified == true).ToList();
|
||||
}
|
||||
if (startDate != null && startDate != Convert.ToDateTime("2015-01-01"))
|
||||
if (startDate != null)
|
||||
{
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate >= startDate).ToList();
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.CompileDate >= startDate).ToList();
|
||||
}
|
||||
if (SoptDate != null)
|
||||
{
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate == null || x.InspectionDate <= SoptDate).ToList();
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.CompileDate <= SoptDate).ToList();
|
||||
}
|
||||
//if (startDate != null && startDate != Convert.ToDateTime("2015-01-01"))
|
||||
//{
|
||||
// InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate >= startDate).ToList();
|
||||
//}
|
||||
//if (SoptDate != null)
|
||||
//{
|
||||
// InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate == null || x.InspectionDate <= SoptDate).ToList();
|
||||
//}
|
||||
return InspectionMangementList;
|
||||
}
|
||||
|
||||
@@ -446,16 +478,24 @@ namespace BLL
|
||||
}
|
||||
if (isOnceQualified == true)
|
||||
{
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.IsOnceQualified == null || x.IsOnceQualified == true).ToList();
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.IsOnceQualified == true).ToList();
|
||||
}
|
||||
if (startDate != null && startDate != Convert.ToDateTime("2015-01-01"))
|
||||
if (startDate != null)
|
||||
{
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate >= startDate).ToList();
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.CompileDate >= startDate).ToList();
|
||||
}
|
||||
if (SoptDate != null)
|
||||
{
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate == null || x.InspectionDate <= SoptDate).ToList();
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.CompileDate <= SoptDate).ToList();
|
||||
}
|
||||
//if (startDate != null && startDate != Convert.ToDateTime("2015-01-01"))
|
||||
//{
|
||||
// InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate >= startDate).ToList();
|
||||
//}
|
||||
//if (SoptDate != null)
|
||||
//{
|
||||
// InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate == null || x.InspectionDate <= SoptDate).ToList();
|
||||
//}
|
||||
|
||||
return InspectionMangementList;
|
||||
}
|
||||
@@ -469,16 +509,24 @@ namespace BLL
|
||||
}
|
||||
if (isOnceQualified == true)
|
||||
{
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.IsOnceQualified == null || x.IsOnceQualified == true).ToList();
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.IsOnceQualified == true).ToList();
|
||||
}
|
||||
if (startDate != null && startDate != Convert.ToDateTime("2015-01-01"))
|
||||
if (startDate != null)
|
||||
{
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate >= startDate).ToList();
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.CompileDate >= startDate).ToList();
|
||||
}
|
||||
if (SoptDate != null)
|
||||
{
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate == null || x.InspectionDate <= SoptDate).ToList();
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.CompileDate <= SoptDate).ToList();
|
||||
}
|
||||
//if (startDate != null && startDate != Convert.ToDateTime("2015-01-01"))
|
||||
//{
|
||||
// InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate >= startDate).ToList();
|
||||
//}
|
||||
//if (SoptDate != null)
|
||||
//{
|
||||
// InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate == null || x.InspectionDate <= SoptDate).ToList();
|
||||
//}
|
||||
|
||||
return InspectionMangementList;
|
||||
}
|
||||
@@ -498,16 +546,24 @@ namespace BLL
|
||||
}
|
||||
if (isOnceQualified == true)
|
||||
{
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.IsOnceQualified == null || x.IsOnceQualified == true).ToList();
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.IsOnceQualified == true).ToList();
|
||||
}
|
||||
if (startDate != null && startDate != Convert.ToDateTime("2015-01-01"))
|
||||
if (startDate != null)
|
||||
{
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate >= startDate).ToList();
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.CompileDate >= startDate).ToList();
|
||||
}
|
||||
if (SoptDate != null)
|
||||
{
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate == null || x.InspectionDate <= SoptDate).ToList();
|
||||
InspectionMangementList = InspectionMangementList.Where(x => x.CompileDate <= SoptDate).ToList();
|
||||
}
|
||||
//if (startDate != null && startDate != Convert.ToDateTime("2015-01-01"))
|
||||
//{
|
||||
// InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate >= startDate).ToList();
|
||||
//}
|
||||
//if (SoptDate != null)
|
||||
//{
|
||||
// InspectionMangementList = InspectionMangementList.Where(x => x.InspectionDate == null || x.InspectionDate <= SoptDate).ToList();
|
||||
//}
|
||||
|
||||
return InspectionMangementList;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user