ปรับปรุง
This commit is contained in:
@@ -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 "";
|
||||
}
|
||||
|
||||
|
||||
@@ -196,7 +196,7 @@
|
||||
<br />
|
||||
|
||||
<section class="wrapper approve_section">
|
||||
<div class="title col-md-12"><div class="line"></div>ส่วนที่ 2 ความเห็นของผู้บังคับบัญชา (ผู้ประเมินชั้นต้น)</div>
|
||||
<div class="title col-md-12"><div class="line"></div><span id="sx_text">ส่วนที่ 2 ความเห็นของผู้บังคับบัญชา (ผู้ประเมินชั้นต้น)</span></div>
|
||||
|
||||
<section class="card no-border">
|
||||
<div class="card-body" style="">
|
||||
@@ -268,7 +268,7 @@
|
||||
|
||||
<button type="button" class="btn btn-submit status_self" onclick="javascript:eva_create_evaluation_detail_status_PutUpdate('nextA')">ส่งข้อตกลงการประเมิน</button>
|
||||
<button type="button" class="btn btn-submit status_chief" onclick="javascript:eva_create_evaluation_detail_review0A_PutUpdate('nextB')">ส่งข้อตกลงการประเมิน</button>
|
||||
<button type="button" class="btn btn-submit status_supervisor" onclick="javascript:eva_create_evaluation_detail_review0A_PutUpdate('nextC')">ส่งข้อตกลงการประเมิน</button>
|
||||
<button type="button" class="btn btn-submit status_supervisor" onclick="javascript:eva_create_evaluation_detail_review0A_PutUpdate('nextC')">อนุมัติข้อตกลงการประเมิน</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class='row'>
|
||||
@@ -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 === "") { // ผู้รับการประเมิน
|
||||
|
||||
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user