ปรับปรุง เพิ่มเติม

This commit is contained in:
LAPTOP-KB8JC2K2\acer
2021-08-26 14:55:35 +07:00
parent a108bbbc4a
commit 910ef472ec
3 changed files with 3 additions and 1 deletions

View File

@@ -324,6 +324,8 @@ namespace TodoAPI2.Controllers
if (i.employee_org != null) i.employee_org = i.employee_org.Replace("แผนก", "");
i.employee_position = p.employee_position;
i.employee_position_full = p.employee_position + checkLevel(p.employee_position_type_id, p.employee_position_level_text, p.employee_fullname);
if (!string.IsNullOrEmpty(p.employee_profile_picture))
{
i.image_url = MyHelper.GetConfig(Configuration, "SiteInformation:hr_svc") + "/api/image/" + p.employee_profile_picture;

View File

@@ -23,7 +23,6 @@ namespace TodoAPI2.Models
public string employee_profile_picture { get; set; }
public string employee_position { get; set; }
public string employee_position_type { get; set; }
public string employee_position_level { get; set; }

View File

@@ -21,6 +21,7 @@ namespace TodoAPI2.Models
public string employee_position_level { get; set; }
public string employee_org { get; set; }
public string employee_position { get; set; }
public string employee_position_full { get; set; }
public string image_url { get; set; }
public string chief_fullname { get; set; }
public string chief_position { get; set; }