Change Selection Field
This commit is contained in:
parent
2a3d9d004f
commit
3bac0e2e88
1 changed files with 27 additions and 12 deletions
|
|
@ -1447,7 +1447,13 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
||||||
.Select(x => new
|
.Select(x => new
|
||||||
{
|
{
|
||||||
Id = x.Id,
|
Id = x.Id,
|
||||||
Profile = _userProfileRepository.GetOfficerProfileById(x.ProfileId.Value, AccessToken),
|
x.Prefix,
|
||||||
|
x.FirstName,
|
||||||
|
x.LastName,
|
||||||
|
x.Position,
|
||||||
|
x.CitizenId,
|
||||||
|
x.ProfileType,
|
||||||
|
//Profile = _userProfileRepository.GetOfficerProfileById(x.ProfileId.Value, AccessToken),
|
||||||
OcId = Guid.Parse("e8493cd1-d371-402e-add6-566e68d5d1b3"), // TODO: ต้องมาแก้ไข
|
OcId = Guid.Parse("e8493cd1-d371-402e-add6-566e68d5d1b3"), // TODO: ต้องมาแก้ไข
|
||||||
RequestInsignia = x.RequestInsignia.Name,
|
RequestInsignia = x.RequestInsignia.Name,
|
||||||
RequestInsigniaId = x.RequestInsignia.Id,
|
RequestInsigniaId = x.RequestInsignia.Id,
|
||||||
|
|
@ -1480,12 +1486,15 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
||||||
.Select(x => new
|
.Select(x => new
|
||||||
{
|
{
|
||||||
Id = x.Id,
|
Id = x.Id,
|
||||||
Prefix = x.Profile == null ? "" : x.Profile.Prefix,
|
//Prefix = x.Profile == null ? "" : x.Profile.Prefix,
|
||||||
Position = x.Profile == null ? "" : x.Profile.Position,
|
//Position = x.Profile == null ? "" : x.Profile.Position,
|
||||||
ProfileType = x.Profile == null ? "" : x.Profile.ProfileType,
|
//ProfileType = x.Profile == null ? "" : x.Profile.ProfileType,
|
||||||
|
Prefix = x.Prefix ?? "",
|
||||||
|
Position = x.Position ?? "",
|
||||||
|
ProfileType = x.ProfileType ?? "",
|
||||||
x.OcId,
|
x.OcId,
|
||||||
CitizenId = x.Profile == null ? "" : x.Profile.CitizenId,
|
CitizenId = x.CitizenId ?? "",
|
||||||
FullName = x.Profile == null ? "" : $"{x.Profile.Prefix}{x.Profile.FirstName} {x.Profile.LastName}",
|
FullName = $"{x.Prefix ?? ""}{x.FirstName ?? ""} {x.LastName ?? ""}".Trim(),
|
||||||
RequestInsignia = x.RequestInsignia,
|
RequestInsignia = x.RequestInsignia,
|
||||||
RequestInsigniaId = x.RequestInsigniaId,
|
RequestInsigniaId = x.RequestInsigniaId,
|
||||||
RequestInsigniaShortName = x.RequestInsigniaShortName,
|
RequestInsigniaShortName = x.RequestInsigniaShortName,
|
||||||
|
|
@ -1628,7 +1637,13 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
||||||
.Select(x => new
|
.Select(x => new
|
||||||
{
|
{
|
||||||
Id = x.Id,
|
Id = x.Id,
|
||||||
Profile = _userProfileRepository.GetOfficerProfileById(x.ProfileId.Value, AccessToken),
|
//Profile = _userProfileRepository.GetOfficerProfileById(x.ProfileId.Value, AccessToken),
|
||||||
|
x.CitizenId,
|
||||||
|
x.Prefix,
|
||||||
|
x.FirstName,
|
||||||
|
x.LastName,
|
||||||
|
x.ProfileType,
|
||||||
|
x.Position,
|
||||||
OcId = Guid.Parse("e8493cd1-d371-402e-add6-566e68d5d1b3"), // TODO: ต้องมาแก้ไข
|
OcId = Guid.Parse("e8493cd1-d371-402e-add6-566e68d5d1b3"), // TODO: ต้องมาแก้ไข
|
||||||
RequestInsignia = x.RequestInsignia.Name,
|
RequestInsignia = x.RequestInsignia.Name,
|
||||||
RequestInsigniaId = x.RequestInsignia.Id,
|
RequestInsigniaId = x.RequestInsignia.Id,
|
||||||
|
|
@ -1661,12 +1676,12 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
||||||
.Select(x => new
|
.Select(x => new
|
||||||
{
|
{
|
||||||
Id = x.Id,
|
Id = x.Id,
|
||||||
Prefix = x.Profile == null ? "" : x.Profile.Prefix,
|
Prefix = x.Prefix ?? "",
|
||||||
Position = x.Profile == null ? "" : x.Profile.Position,
|
Position = x.Position ?? "",
|
||||||
ProfileType = x.Profile == null ? "" : x.Profile.ProfileType,
|
ProfileType = x.ProfileType ?? "",
|
||||||
x.OcId,
|
x.OcId,
|
||||||
CitizenId = x.Profile == null ? "" : x.Profile.CitizenId,
|
CitizenId = x.CitizenId ?? "",
|
||||||
FullName = x.Profile == null ? "" : $"{x.Profile.Prefix}{x.Profile.FirstName} {x.Profile.LastName}",
|
FullName = $"{x.Prefix ?? ""}{x.FirstName ?? ""} {x.LastName ?? ""}".Trim(),
|
||||||
RequestInsignia = x.RequestInsignia,
|
RequestInsignia = x.RequestInsignia,
|
||||||
RequestInsigniaId = x.RequestInsigniaId,
|
RequestInsigniaId = x.RequestInsigniaId,
|
||||||
RequestInsigniaShortName = x.RequestInsigniaShortName,
|
RequestInsigniaShortName = x.RequestInsigniaShortName,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue