บันทึกผลการสอบสวนวินัย
This commit is contained in:
parent
e510639947
commit
3d8d65f21f
16 changed files with 33949 additions and 25 deletions
|
|
@ -55,7 +55,7 @@ namespace BMA.EHR.DisciplineDirector.Service.Controllers
|
|||
[HttpGet()]
|
||||
public async Task<ActionResult<ResponseObject>> GetDiscipline(int page = 1, int pageSize = 25, string keyword = "")
|
||||
{
|
||||
var data_search = (from x in _context.DisciplineDirectors
|
||||
var data_search = (from x in _context.DisciplineDirectors.Include(x => x.DisciplineInvestigate_Directors).Include(x => x.DisciplineDisciplinary_DirectorInvestigates)
|
||||
where x.Prefix.Contains(keyword) ||
|
||||
x.FirstName.Contains(keyword) ||
|
||||
x.LastName.Contains(keyword) ||
|
||||
|
|
@ -73,6 +73,8 @@ namespace BMA.EHR.DisciplineDirector.Service.Controllers
|
|||
Position = x.Position,
|
||||
Email = x.Email,
|
||||
Phone = x.Phone,
|
||||
TotalInvestigate = x.DisciplineInvestigate_Directors.Count(),
|
||||
TotalDisciplinary = x.DisciplineDisciplinary_DirectorInvestigates.Count(),
|
||||
})
|
||||
.Skip((page - 1) * pageSize)
|
||||
.Take(pageSize)
|
||||
|
|
@ -101,6 +103,8 @@ namespace BMA.EHR.DisciplineDirector.Service.Controllers
|
|||
Position = x.Position,
|
||||
Email = x.Email,
|
||||
Phone = x.Phone,
|
||||
TotalInvestigate = x.DisciplineInvestigate_Directors.Count(),
|
||||
TotalDisciplinary = x.DisciplineDisciplinary_DirectorInvestigates.Count(),
|
||||
})
|
||||
.Where(x => x.Id == id)
|
||||
.FirstOrDefaultAsync();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue