This commit is contained in:
kittapath 2024-10-30 20:28:52 +07:00
parent aa0f00385a
commit 86edf00336
2 changed files with 16 additions and 2 deletions

View file

@ -237,7 +237,7 @@ namespace BMA.EHR.Report.Service.Controllers
OcFullPath = data.result.OcFullPath != null ? data.result.OcFullPath : "-", OcFullPath = data.result.OcFullPath != null ? data.result.OcFullPath : "-",
Educations = data.result.Education != null && data.result.Education.Count > 0 Educations = data.result.Education != null && data.result.Education.Count > 0
? data.result.Education ? data.result.Education
: new List<Educations> { : new List<Educations> {
new Educations { new Educations {
Institute = "-", Institute = "-",
Date = "-", Date = "-",
@ -333,6 +333,13 @@ namespace BMA.EHR.Report.Service.Controllers
CurrentProvince = data.Result.Profile.Count > 0 ? data.Result.Profile[0].CurrentProvince : "-", CurrentProvince = data.Result.Profile.Count > 0 ? data.Result.Profile[0].CurrentProvince : "-",
Telephone = data.Result.Profile.Count > 0 ? data.Result.Profile[0].Telephone : "-", Telephone = data.Result.Profile.Count > 0 ? data.Result.Profile[0].Telephone : "-",
Url = data.Result.Profile.Count > 0 ? data.Result.Profile[0].ImgUrl : "-", Url = data.Result.Profile.Count > 0 ? data.Result.Profile[0].ImgUrl : "-",
Url1 = data.Result.Profile.Count > 0 ? data.Result.Profile[0].ImgUrl1 : null,
Url2 = data.Result.Profile.Count > 0 ? data.Result.Profile[0].ImgUrl2 : null,
Url3 = data.Result.Profile.Count > 0 ? data.Result.Profile[0].ImgUrl3 : null,
Url4 = data.Result.Profile.Count > 0 ? data.Result.Profile[0].ImgUrl4 : null,
Url5 = data.Result.Profile.Count > 0 ? data.Result.Profile[0].ImgUrl5 : null,
Url6 = data.Result.Profile.Count > 0 ? data.Result.Profile[0].ImgUrl6 : null,
Url7 = data.Result.Profile.Count > 0 ? data.Result.Profile[0].ImgUrl7 : null,
Insignias = data.Result.Insignia, Insignias = data.Result.Insignia,
Leaves = data.Result.Leave, Leaves = data.Result.Leave,
Certs = data.Result.Cert, Certs = data.Result.Cert,

View file

@ -10,7 +10,7 @@ namespace BMA.EHR.Report.Service.Responses
{ {
public string Status { get; set; } public string Status { get; set; }
public string Message { get; set; } public string Message { get; set; }
public Data Result { get; set; } public Data Result { get; set; }
public class Data public class Data
{ {
@ -60,6 +60,13 @@ namespace BMA.EHR.Report.Service.Responses
public string? CurrentDistrict { get; set; } public string? CurrentDistrict { get; set; }
public string? CurrentProvince { get; set; } public string? CurrentProvince { get; set; }
public string? ImgUrl { get; set; } public string? ImgUrl { get; set; }
public string? ImgUrl1 { get; set; }
public string? ImgUrl2 { get; set; }
public string? ImgUrl3 { get; set; }
public string? ImgUrl4 { get; set; }
public string? ImgUrl5 { get; set; }
public string? ImgUrl6 { get; set; }
public string? ImgUrl7 { get; set; }
} }
public class Insignia public class Insignia