แก้บั้ก ดึงรายชื่อ c-pm-10
This commit is contained in:
parent
431d0981ae
commit
890c34e0d5
1 changed files with 9 additions and 6 deletions
|
|
@ -718,7 +718,7 @@ namespace BMA.EHR.Application.Repositories.Commands
|
|||
var seq = 1;
|
||||
// เอาชื่อของกรรมการ ไปหาจากทะเบียนประวัติ
|
||||
|
||||
var p1 = await _dbContext.Set<Profile>()
|
||||
var p1 = (await _dbContext.Set<Profile>()
|
||||
.Include(x => x.Prefix)
|
||||
.Select(x => new
|
||||
{
|
||||
|
|
@ -729,7 +729,8 @@ namespace BMA.EHR.Application.Repositories.Commands
|
|||
lastName = x.LastName,
|
||||
fullName = $"{x.Prefix.Name}{x.FirstName} {x.LastName}"
|
||||
})
|
||||
.FirstOrDefaultAsync(x => x.fullName == command.ChairManFullName);
|
||||
.ToListAsync())
|
||||
.FirstOrDefault(x => x.fullName == command.ChairManFullName);
|
||||
|
||||
if (p1 != null)
|
||||
{
|
||||
|
|
@ -746,7 +747,7 @@ namespace BMA.EHR.Application.Repositories.Commands
|
|||
result.Add(receiver);
|
||||
}
|
||||
|
||||
var p2 = await _dbContext.Set<Profile>()
|
||||
var p2 = (await _dbContext.Set<Profile>()
|
||||
.Include(x => x.Prefix)
|
||||
.Select(x => new
|
||||
{
|
||||
|
|
@ -757,7 +758,8 @@ namespace BMA.EHR.Application.Repositories.Commands
|
|||
lastName = x.LastName,
|
||||
fullName = $"{x.Prefix.Name}{x.FirstName} {x.LastName}"
|
||||
})
|
||||
.FirstOrDefaultAsync(x => x.fullName == command.Member1FullName);
|
||||
.ToListAsync())
|
||||
.FirstOrDefault(x => x.fullName == command.Member1FullName);
|
||||
|
||||
if (p2 != null)
|
||||
{
|
||||
|
|
@ -774,7 +776,7 @@ namespace BMA.EHR.Application.Repositories.Commands
|
|||
result.Add(receiver);
|
||||
}
|
||||
|
||||
var p3 = await _dbContext.Set<Profile>()
|
||||
var p3 = (await _dbContext.Set<Profile>()
|
||||
.Include(x => x.Prefix)
|
||||
.Select(x => new
|
||||
{
|
||||
|
|
@ -785,7 +787,8 @@ namespace BMA.EHR.Application.Repositories.Commands
|
|||
lastName = x.LastName,
|
||||
fullName = $"{x.Prefix.Name}{x.FirstName} {x.LastName}"
|
||||
})
|
||||
.FirstOrDefaultAsync(x => x.fullName == command.Member2FullName);
|
||||
.ToListAsync())
|
||||
.FirstOrDefault(x => x.fullName == command.Member2FullName);
|
||||
|
||||
if (p3 != null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue