| | |
| | | .WhereIF(queryObj.fsubmit.HasValue && queryObj.fsubmit.Value == 0, |
| | | (s, a, c, b) => SqlFunc.IsNull(s.Fsubmit, 0) != 1) |
| | | .WhereIF(id > 0, (s, a, c, b) => s.Id == id) |
| | | .WhereIF(!string.IsNullOrEmpty(queryObj.lineNo), (s, a, c, b) => c.LineNo == queryObj.lineNo) |
| | | .WhereIF(!string.IsNullOrEmpty(queryObj.SearchValue), |
| | | (s, a, c, b) => s.ItemNo.ToLower().Contains(queryObj.SearchValue.ToLower()) || |
| | | s.BillNo.ToLower().Contains(queryObj.SearchValue.ToLower()) || |
| | | s.ReleaseNo.ToLower().Contains(queryObj.SearchValue.ToLower()) || |
| | | b.ItemName.ToLower().Contains(queryObj.SearchValue.ToLower())) |
| | | .Select((s, a, c, b) => new QsQaItemXj |
| | | { |
| | | Daa020 = c.LineNo, |
| | |
| | | .WhereIF(queryObj.fsubmit.HasValue && queryObj.fsubmit.Value == 0, |
| | | (s, a, c, b) => SqlFunc.IsNull(s.Fsubmit, 0) != 1) |
| | | .WhereIF(id > 0, (s, a, c, b) => s.Id == id) |
| | | .WhereIF(!string.IsNullOrEmpty(queryObj.lineNo), (s, a, c, b) => c.LineNo == queryObj.lineNo) |
| | | .WhereIF(!string.IsNullOrEmpty(queryObj.SearchValue), |
| | | (s, a, c, b) => s.ItemNo.ToLower().Contains(queryObj.SearchValue.ToLower()) || |
| | | s.BillNo.ToLower().Contains(queryObj.SearchValue.ToLower()) || |
| | | s.ReleaseNo.ToLower().Contains(queryObj.SearchValue.ToLower()) || |
| | | b.ItemName.ToLower().Contains(queryObj.SearchValue.ToLower())) |
| | | .Select((s, a, c, b) => new QsQaItemXj |
| | | { |
| | | Daa020 = c.LineNo, |