This commit is contained in:
parent
ac6e4f5c1f
commit
aef2d3381a
2 changed files with 8 additions and 2 deletions
|
|
@ -124,7 +124,9 @@ namespace BMA.EHR.DisciplineDisciplinary.Service.Controllers
|
|||
var status = string.IsNullOrEmpty(req.status) ? string.Empty : req.status;
|
||||
|
||||
var data_search = (from x in _context.DisciplineDisciplinarys
|
||||
where x.Title.Contains(keyword)
|
||||
where x.Title.Contains(keyword) ||
|
||||
x.DisciplinaryFaultLevel.Contains(keyword) ||
|
||||
x.DisciplinaryCaseFault.Contains(keyword)
|
||||
select x).ToList();
|
||||
if (status.Trim().ToUpper() != "ALL")
|
||||
data_search = data_search.Where(x => x.Status.Contains(status.Trim().ToUpper())).ToList();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue