2023-08-04
This commit is contained in:
@@ -31,7 +31,7 @@ namespace BLL
|
||||
(string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
|
||||
(string.IsNullOrEmpty(table.CollCropCode) || x.CollCropCode.Contains(table.CollCropCode)) &&
|
||||
(string.IsNullOrEmpty(table.UnitName) || x.UnitName.Contains(table.UnitName)) &&
|
||||
(string.IsNullOrEmpty(table.DefectName) || x.DefectName.Contains(table.DefectName))
|
||||
(string.IsNullOrEmpty(table.DefectName) || x.DefectName.Contains(table.DefectName))
|
||||
select x
|
||||
;
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace BLL
|
||||
{
|
||||
return null;
|
||||
}
|
||||
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
|
||||
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
|
||||
return from x in q
|
||||
select new
|
||||
{
|
||||
@@ -75,7 +75,7 @@ namespace BLL
|
||||
{
|
||||
var q = from x in db.HJGLData_Defect
|
||||
where x.ReportDate.Value.Date.CompareTo(reportDate.Value.Date) == 0
|
||||
select x;
|
||||
select x;
|
||||
return q.ToList();
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ namespace BLL
|
||||
public static void DeleteHJGLData_DefectByDate(DateTime? reportDate)
|
||||
{
|
||||
|
||||
var table = db.HJGLData_Defect.Where(x => x.ReportDate.Value.Date.CompareTo(reportDate.Value.Date) == 0);
|
||||
var table = db.HJGLData_Defect.Where(x => x.ReportDate.Value.Date.CompareTo(reportDate.Value.Date) == 0);
|
||||
if (table != null)
|
||||
{
|
||||
db.HJGLData_Defect.DeleteAllOnSubmit(table);
|
||||
|
||||
Reference in New Issue
Block a user