no message
This commit is contained in:
parent
66c97a162b
commit
0afe06fac0
3 changed files with 8 additions and 8 deletions
|
|
@ -2322,7 +2322,7 @@ namespace BMA.EHR.Application.Repositories.Commands
|
|||
Prefix = d.prefix,
|
||||
FirstName = d.firstName,
|
||||
LastName = d.lastName,
|
||||
RefPlacementProfileId = d.profileId,
|
||||
RefPlacementProfileId = d.profileId == null ? null: Guid.Parse(d.profileId),
|
||||
RefDisciplineId = d.id,
|
||||
};
|
||||
seq++;
|
||||
|
|
@ -2374,7 +2374,7 @@ namespace BMA.EHR.Application.Repositories.Commands
|
|||
Prefix = d.prefix,
|
||||
FirstName = d.firstName,
|
||||
LastName = d.lastName,
|
||||
RefPlacementProfileId = d.profileId,
|
||||
RefPlacementProfileId = d.profileId == null ? null : Guid.Parse(d.profileId),
|
||||
RefDisciplineId = d.id,
|
||||
};
|
||||
seq++;
|
||||
|
|
@ -2426,7 +2426,7 @@ namespace BMA.EHR.Application.Repositories.Commands
|
|||
Prefix = d.prefix,
|
||||
FirstName = d.firstName,
|
||||
LastName = d.lastName,
|
||||
RefPlacementProfileId = d.profileId,
|
||||
RefPlacementProfileId = d.profileId == null ? null : Guid.Parse(d.profileId),
|
||||
RefDisciplineId = d.id,
|
||||
};
|
||||
seq++;
|
||||
|
|
@ -2478,7 +2478,7 @@ namespace BMA.EHR.Application.Repositories.Commands
|
|||
Prefix = d.prefix,
|
||||
FirstName = d.firstName,
|
||||
LastName = d.lastName,
|
||||
RefPlacementProfileId = d.profileId,
|
||||
RefPlacementProfileId = d.profileId == null ? null : Guid.Parse(d.profileId),
|
||||
RefDisciplineId = d.id,
|
||||
};
|
||||
seq++;
|
||||
|
|
@ -2530,7 +2530,7 @@ namespace BMA.EHR.Application.Repositories.Commands
|
|||
Prefix = d.prefix,
|
||||
FirstName = d.firstName,
|
||||
LastName = d.lastName,
|
||||
RefPlacementProfileId = d.profileId,
|
||||
RefPlacementProfileId = d.profileId == null ? null : Guid.Parse(d.profileId),
|
||||
RefDisciplineId = d.id,
|
||||
};
|
||||
seq++;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
public string prefix { get; set; } = string.Empty;
|
||||
public string firstName { get; set; } = string.Empty;
|
||||
public string lastName { get; set; } = string.Empty;
|
||||
public Guid? profileId { get; set; } = Guid.Empty;
|
||||
public string? profileId { get; set; } = string.Empty;
|
||||
// public Guid? commandId { get; set; } = Guid.Empty;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4565,12 +4565,12 @@ namespace BMA.EHR.Command.Service.Controllers
|
|||
.OrderBy(x => x.Sequence)
|
||||
.Select(r => new CommandReceiverResponse
|
||||
{
|
||||
RefRecordId = 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!}",
|
||||
SelectStatus = existed.FirstOrDefault(x => x.RefPlacementProfileId!.Value == r.RefPlacementProfileId!.Value) != null,
|
||||
SelectStatus = r.RefPlacementProfileId == null ? false : (existed.FirstOrDefault(x => x.RefPlacementProfileId!.Value == r.RefPlacementProfileId!.Value) != null),
|
||||
Education = "" // ยังหาไม่เจอว่าอยุ่ field ไหน
|
||||
}).ToList();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue