parent
faf62f1985
commit
1e275748a0
2 changed files with 20 additions and 11 deletions
|
|
@ -1232,7 +1232,9 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
|
||||
if (keyword != "")
|
||||
{
|
||||
data = data.Where(x => (x.CheckInLocation.Contains(keyword) || x.CheckOutLocation.Contains(keyword))).ToList();
|
||||
data = data.Where(x => (x.CheckInLocationName!.Contains(keyword) || x.CheckInLocation!.Contains(keyword) ||
|
||||
x.CheckOutLocationName!.Contains(keyword) || x.CheckOutLocation!.Contains(keyword)))
|
||||
.ToList();
|
||||
}
|
||||
|
||||
var pageData = data
|
||||
|
|
@ -2731,7 +2733,7 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
|
||||
if (keyword != "")
|
||||
{
|
||||
result = result.Where(x => x.EditReason!.Contains(keyword)).ToList();
|
||||
result = result.Where(x => x.EditReason!.Contains(keyword) || x.CheckInLocation!.Contains(keyword) || x.CheckOutLocation!.Contains(keyword)).ToList();
|
||||
}
|
||||
|
||||
var pageResult = result.Skip((page - 1) * pageSize).Take(pageSize)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue