diff --git a/Models/eva_create_evaluation_detail_firstdoc/eva_create_evaluation_detail_firstdocService.cs b/Models/eva_create_evaluation_detail_firstdoc/eva_create_evaluation_detail_firstdocService.cs index 366d774..f75ec5e 100644 --- a/Models/eva_create_evaluation_detail_firstdoc/eva_create_evaluation_detail_firstdocService.cs +++ b/Models/eva_create_evaluation_detail_firstdoc/eva_create_evaluation_detail_firstdocService.cs @@ -186,14 +186,14 @@ namespace TodoAPI2.Models if (self == supervisor1 && emp_id == supervisor1 && status_chief_a == "Y") return "1"; if (self == supervisor2 && emp_id == supervisor2 && status_chief_a == "Y") return "2"; if (self == supervisor1A && emp_id == supervisor1A && status_chief_a == "Y") return "3"; - if (self == supervisor2A && emp_id == supervisor2A && status_chief_a == "Y") return "4"; - if (((int?[])special_person).Contains(emp_id)) return "99"; + if (self == supervisor2A && emp_id == supervisor2A && status_chief_a == "Y") return "4"; if (emp_id == chief) return "1"; else if (emp_id == supervisor1) return "1"; else if (emp_id == supervisor2) return "2"; else if (emp_id == supervisor1A) return "3"; else if (emp_id == supervisor2A) return "4"; + else if (((int?[])special_person).Contains(emp_id)) return "99"; return ""; } @@ -205,14 +205,14 @@ namespace TodoAPI2.Models if (self == supervisor1 && emp_id == supervisor1 && status_chief_a == "Y") return "ผู้ประเมิน"; if (self == supervisor2 && emp_id == supervisor2 && status_chief_a == "Y") return "ผู้ประเมินสูงสุด"; if (self == supervisor1A && emp_id == supervisor1A && status_chief_a == "Y") return "ผู้บังคับบัญชาเหนือขึ้นไป"; - if (self == supervisor2A && emp_id == supervisor2A && status_chief_a == "Y") return "ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง (สูงสุด)"; - if (((int?[])special_person).Contains(emp_id)) return "ผู้ตรวจสอบ"; + if (self == supervisor2A && emp_id == supervisor2A && status_chief_a == "Y") return "ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง (สูงสุด)"; if (emp_id == chief) return "ผู้ประเมิน"; else if (emp_id == supervisor1) return "ผู้ประเมิน"; else if (emp_id == supervisor2) return "ผู้ประเมินสูงสุด"; else if (emp_id == supervisor1A) return "ผู้บังคับบัญชาเหนือขึ้นไป"; else if (emp_id == supervisor2A) return "ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง (สูงสุด)"; + else if (((int?[])special_person).Contains(emp_id)) return "ผู้ตรวจสอบ"; return ""; } diff --git a/Views/eva_create_evaluation_detail_firstdocView/eva_create_evaluation_detail_firstdoc_d.cshtml b/Views/eva_create_evaluation_detail_firstdocView/eva_create_evaluation_detail_firstdoc_d.cshtml index f69ae04..a8f802d 100644 --- a/Views/eva_create_evaluation_detail_firstdocView/eva_create_evaluation_detail_firstdoc_d.cshtml +++ b/Views/eva_create_evaluation_detail_firstdocView/eva_create_evaluation_detail_firstdoc_d.cshtml @@ -196,7 +196,7 @@
-
ส่วนที่ 2 ความเห็นของผู้บังคับบัญชา (ผู้ประเมินชั้นต้น)
+
ส่วนที่ 2 ความเห็นของผู้บังคับบัญชา (ผู้ประเมินชั้นต้น)
@@ -268,7 +268,7 @@ - +
@@ -296,6 +296,7 @@ var status_self_a = ""; var status_chief_a = ""; + var status_supervisor_a = ""; var role_code = ""; var show_tool = true; @@ -390,6 +391,7 @@ $("#s1_text").text("ส่วนที่ 1 ข้อตกลงการปฏิบัติงาน"); $("#s2_text").show(); + $("#sx_text").text("ส่วนที่ 2 ความเห็นของผู้บังคับบัญชา (ผู้ประเมินสูงสุด)"); } else if (role_code === "") { // ผู้รับการประเมิน diff --git a/wwwroot/js/eva_create_evaluation_detail_firstdoc/eva_create_evaluation_detail_firstdoc_d.js b/wwwroot/js/eva_create_evaluation_detail_firstdoc/eva_create_evaluation_detail_firstdoc_d.js index a0f1a4f..34f5901 100644 --- a/wwwroot/js/eva_create_evaluation_detail_firstdoc/eva_create_evaluation_detail_firstdoc_d.js +++ b/wwwroot/js/eva_create_evaluation_detail_firstdoc/eva_create_evaluation_detail_firstdoc_d.js @@ -23,6 +23,7 @@ function eva_create_evaluation_detail_firstdoc_FeedDataToForm(data) { status_self_a = data.status_self_a; status_chief_a = data.status_chief_a; + status_supervisor_a = data.status_supervisor_a; role_code = data.role_code; if (role_code === "1" || role_code === "99") {