แก้คำสั่งพ้น

This commit is contained in:
Kittapath 2024-06-11 11:58:38 +07:00
parent bd7fe04395
commit ee72e497e2
11 changed files with 18060 additions and 64 deletions

View file

@ -4565,11 +4565,11 @@ namespace BMA.EHR.Command.Service.Controllers
.OrderBy(x => x.Sequence)
.Select(r => new CommandReceiverResponse
{
RefRecordId = r.RefPlacementProfileId == null? Guid.Parse("00000000-0000-0000-0000-000000000000") : r.RefPlacementProfileId.Value,
RefRecordId = r.RefPlacementProfileId == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : r.RefPlacementProfileId.Value,
PersonalId = r.Id,
Sequence = r.Sequence,
IdCard = r.CitizenId,
Name = $"{r.Prefix!}{r.FirstName!} {r.LastName!}",
Name = $"{r.FirstName!} {r.LastName!}",
SelectStatus = r.RefPlacementProfileId == null ? false : (existed.FirstOrDefault(x => x.RefPlacementProfileId!.Value == r.RefPlacementProfileId!.Value) != null),
Education = "" // ยังหาไม่เจอว่าอยุ่ field ไหน
}).ToList();
@ -4846,14 +4846,13 @@ namespace BMA.EHR.Command.Service.Controllers
var deploys = new List<CommandDeployment>();
foreach (var p in req)
{
var prefix = await _prefixRepository.GetByIdAsync(p.PrefixId);
deploys.Add(new CommandDeployment
{
CitizenId = p.IdCard,
Prefix = prefix.Name,
CitizenId = p.CitizenId,
Prefix = p.Prefix,
FirstName = p.FirstName,
LastName = p.LastName,
OrganizationName = p.Unit,
OrganizationName = p.OrganizationName,
PositionName = p.Position
});
}