20240508 共检通知单复制功能
This commit is contained in:
@@ -339,10 +339,10 @@ namespace BLL
|
||||
{
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.CNProfessionalId==cNProfessionalId select x).ToList();
|
||||
}
|
||||
if (isOnceQualified == true)
|
||||
{
|
||||
//if (isOnceQualified == true)
|
||||
//{
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.IsOnceQualified == isOnceQualified select x).ToList();
|
||||
}
|
||||
//}
|
||||
if (startDate != null && SoptDate != null)
|
||||
{
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.InspectionDate >= startDate && x.InspectionDate <= SoptDate select x).ToList();
|
||||
@@ -357,10 +357,10 @@ namespace BLL
|
||||
{
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.UnitId == unitId select x).ToList();
|
||||
}
|
||||
if (isOnceQualified == true)
|
||||
{
|
||||
//if (isOnceQualified == true)
|
||||
//{
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.IsOnceQualified == isOnceQualified select x).ToList();
|
||||
}
|
||||
//}
|
||||
if (startDate != null && SoptDate != null)
|
||||
{
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.InspectionDate >= startDate && x.InspectionDate <= SoptDate select x).ToList();
|
||||
@@ -369,6 +369,20 @@ namespace BLL
|
||||
return InspectionMangementList;
|
||||
}
|
||||
|
||||
public static List<Model.View_CQMS_InspectionManagementDetail> getInspectionManagementDetailListByDate(string projectId, DateTime startDate, DateTime SoptDate, bool isOnceQualified)
|
||||
{
|
||||
List<Model.View_CQMS_InspectionManagementDetail> InspectionMangementList = (from x in Funs.DB.View_CQMS_InspectionManagementDetail where x.ProjectId == projectId select x).ToList();
|
||||
//if (isOnceQualified == true)
|
||||
//{
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.IsOnceQualified == isOnceQualified select x).ToList();
|
||||
//}
|
||||
if (startDate != null && SoptDate != null)
|
||||
{
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.InspectionDate >= startDate && x.InspectionDate <= SoptDate select x).ToList();
|
||||
}
|
||||
return InspectionMangementList;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取视图信息
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user