fix report kk1/kp7 : add field imgUrl

This commit is contained in:
Bright 2024-09-23 12:58:40 +07:00
parent a9eb8d993c
commit 4654330ef7
3 changed files with 8 additions and 2 deletions

View file

@ -134,7 +134,8 @@ namespace BMA.EHR.Report.Service.Controllers
Date = "-", Date = "-",
Degree = "-", Degree = "-",
}, },
} },
Url = data.result.ImgUrl != null ? data.result.ImgUrl : "-",
} }
}; };
@ -242,7 +243,8 @@ namespace BMA.EHR.Report.Service.Controllers
Date = "-", Date = "-",
Degree = "-", Degree = "-",
}, },
} },
Url = data.result.ImgUrl != null ? data.result.ImgUrl : "-",
} }
}; };
return Success(result); return Success(result);
@ -330,6 +332,7 @@ namespace BMA.EHR.Report.Service.Controllers
CurrentDistrict = data.Result.Profile.Count > 0 ? data.Result.Profile[0].CurrentDistrict : "-", CurrentDistrict = data.Result.Profile.Count > 0 ? data.Result.Profile[0].CurrentDistrict : "-",
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 : "-",
Insignias = data.Result.Insignia, Insignias = data.Result.Insignia,
Leaves = data.Result.Leave, Leaves = data.Result.Leave,
Certs = data.Result.Cert, Certs = data.Result.Cert,
@ -614,6 +617,7 @@ namespace BMA.EHR.Report.Service.Controllers
CurrentDistrict = data.Result.Profile.Count > 0 ? data.Result.Profile[0].CurrentDistrict : "-", CurrentDistrict = data.Result.Profile.Count > 0 ? data.Result.Profile[0].CurrentDistrict : "-",
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 : "-",
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

@ -59,6 +59,7 @@ namespace BMA.EHR.Report.Service.Responses
public string? CurrentSubDistrict { get; set; } public string? CurrentSubDistrict { get; set; }
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 class Insignia public class Insignia

View file

@ -21,6 +21,7 @@ namespace BMA.EHR.Report.Service.Responses
public string? SalaryDate { get; set; } public string? SalaryDate { get; set; }
public string? PositionName { get; set; } public string? PositionName { get; set; }
public string? OcFullPath { get; set; } public string? OcFullPath { get; set; }
public string? ImgUrl { get; set; }
} }
public class Educations public class Educations