fix: insignia + leave Error
This commit is contained in:
parent
41d28c4d7f
commit
7d8a80e9df
72 changed files with 132 additions and 142 deletions
|
|
@ -1120,6 +1120,26 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
|||
LastUpdateFullName = FullName ?? "System Administrator",
|
||||
LastUpdateUserId = UserId ?? "",
|
||||
LastUpdatedAt = DateTime.Now,
|
||||
|
||||
// Add Information for reused in API Call
|
||||
ProfileType = profile.ProfileType ?? "officer",
|
||||
Prefix = profile.Prefix,
|
||||
FirstName = profile.FirstName,
|
||||
LastName = profile.LastName,
|
||||
CitizenId = profile.CitizenId,
|
||||
BirthDate = profile.BirthDate,
|
||||
DateAppoint = profile.DateAppoint,
|
||||
Position = profile.Position,
|
||||
Gender = profile.Gender,
|
||||
PosTypeName = profile.PosType!.PosTypeName,
|
||||
PosLevelName = profile.PosLevel!.PosLevelName,
|
||||
PosNo = profile.ProfileSalary == null || profile.ProfileSalary.Count == 0 ? "" :
|
||||
profile.ProfileSalary.OrderByDescending(x => x.Order).FirstOrDefault().PosNo,
|
||||
Amount = profile.ProfileSalary == null || profile.ProfileSalary.Count == 0 ? 0 :
|
||||
profile.ProfileSalary.OrderByDescending(x => x.Order).FirstOrDefault().Amount,
|
||||
PositionSalaryAmount = profile.ProfileSalary == null || profile.ProfileSalary.Count == 0 ? 0 :
|
||||
profile.ProfileSalary.OrderByDescending(x => x.Order).FirstOrDefault().PositionSalaryAmount,
|
||||
LastInsigniaName = ""
|
||||
});
|
||||
|
||||
await _context.SaveChangesAsync();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue