fix bugs แสดงรายชื่อเลือกผู้รับคำสั่ง
This commit is contained in:
parent
aacbcfee32
commit
0e06a01cf3
1 changed files with 3 additions and 4 deletions
|
|
@ -73,14 +73,14 @@ namespace BMA.EHR.Application.Repositories.Commands
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var result = new List<CommandReceiver>();
|
var result = new List<CommandReceiver>();
|
||||||
|
// TODO : ต้องมา list คนตามประเภทอีกครั้งนึง
|
||||||
|
|
||||||
// 1. หารายชื่อที่ถูกเลือกไปแล้ว ในประเภทเดียวกัน
|
// 1. หารายชื่อที่ถูกเลือกไปแล้ว ในประเภทเดียวกัน
|
||||||
var otherCommandReceivers = await _dbContext.Set<CommandReceiver>()
|
var otherCommandReceivers = await _dbContext.Set<CommandReceiver>()
|
||||||
.Include(x => x.Command)
|
.Include(x => x.Command)
|
||||||
.ThenInclude(x => x.CommandType)
|
.ThenInclude(x => x.CommandType)
|
||||||
.Where(x => x.Command.CommandType.CommandCode.Trim().ToUpper() == "C-PM-01")
|
.Where(x => x.Command.CommandType.CommandCode.Trim().ToUpper().StartsWith("C-PM"))
|
||||||
.Where(x => x.Id != command.Id)
|
.Where(x => x.Command.Id != command.Id)
|
||||||
.Select(x => x.CitizenId)
|
.Select(x => x.CitizenId)
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
|
||||||
|
|
@ -394,7 +394,6 @@ namespace BMA.EHR.Application.Repositories.Commands
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue