เพิ่มบวก 25 ปี แล้วลบ 1 วัน
This commit is contained in:
parent
141902bfb3
commit
665b788fde
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ namespace BMA.EHR.Application.Repositories.Reports
|
||||||
Position = r.Position == null ? "-" : r.Position.Name,
|
Position = r.Position == null ? "-" : r.Position.Name,
|
||||||
OCName = r.OcId == null ? "-" : _organizationCommonRepository.GetOrganizationNameFullPath(r.OcId.Value, false, false),
|
OCName = r.OcId == null ? "-" : _organizationCommonRepository.GetOrganizationNameFullPath(r.OcId.Value, false, false),
|
||||||
BirthDate = r.BirthDate.ToThaiFullDate().ToString().ToThaiNumber(),
|
BirthDate = r.BirthDate.ToThaiFullDate().ToString().ToThaiNumber(),
|
||||||
DateAppoint = !string.IsNullOrEmpty(r.DateAppoint.ToString()) ? DateTime.Parse(r.DateAppoint.ToString()).ToThaiFullDate().ToString().ToThaiNumber() : string.Empty,
|
DateAppoint = !string.IsNullOrEmpty(r.DateAppoint.ToString()) ? DateTime.Parse((r.DateAppoint.Value.AddYears(25).AddDays(-1)).ToString()).ToThaiFullDate().ToString().ToThaiNumber() : string.Empty,
|
||||||
})
|
})
|
||||||
.FirstOrDefault();
|
.FirstOrDefault();
|
||||||
if (profile == null)
|
if (profile == null)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue