แก้ไขตามผล Unit Test, ทดสอบทั้ง Flow, ส่งทดสอบ System Test
This commit is contained in:
@@ -269,7 +269,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class='row'>
|
||||
<div class="form-group col-md-12">
|
||||
<div class="form-group col-md-12 reject_section">
|
||||
<label id="lab_eva_create_evaluation_detail_review0A_chief_a_reject_reason" for="eva_create_evaluation_detail_review0A_chief_a_reject_reason">เหตุผลการส่งคืนเอกสาร</label>
|
||||
<textarea class="form-control" rows="4" cols="50" id="eva_create_evaluation_detail_review0A_chief_a_reject_reason" iLabel="เหตุผลการส่งคืนเอกสาร" iRequire="false" iGroup="eva_create_evaluation_detail_review0A"></textarea>
|
||||
</div>
|
||||
@@ -320,9 +320,12 @@
|
||||
$("#status").text("");
|
||||
$(".approve_section").hide();
|
||||
$("#s2_text").hide();
|
||||
$(".reject_section").hide();
|
||||
|
||||
if (role_code === "1") { // ผู้ประเมิน
|
||||
$(".approve_section").show();
|
||||
$(".reject_section").show();
|
||||
|
||||
if (status_self_a === "Y") {
|
||||
$(".status_chief").show();
|
||||
}
|
||||
@@ -330,15 +333,18 @@
|
||||
$("#status").text("ข้อตกลงการประเมิน ได้รับการอนุมัติไปแล้ว");
|
||||
$(".approve_item").prop("disabled", true);
|
||||
$(".status_chief").hide();
|
||||
$("#eva_create_evaluation_detail_review0A_chief_a_reject_reason").prop("disabled", true);
|
||||
}
|
||||
else if (status_chief_a === "N") {
|
||||
$("#status").text("คุณตีกลับข้อตกลงการประเมิน กรูณารอผู้ประเมินแก้ไขและส่งกลับ");
|
||||
$(".approve_item").prop("disabled", true);
|
||||
$(".status_chief").hide();
|
||||
$("#eva_create_evaluation_detail_review0A_chief_a_reject_reason").prop("disabled", true);
|
||||
}
|
||||
|
||||
$("#s1_text").text("ส่วนที่ 1 ข้อตกลงการปฏิบัติงาน");
|
||||
$("#s2_text").show();
|
||||
|
||||
|
||||
} else if (role_code === "") { // ผู้รับการประเมิน
|
||||
$(".status_self").show();
|
||||
@@ -347,21 +353,15 @@
|
||||
}
|
||||
if (status_chief_a === "Y") {
|
||||
$("#status").text("ข้อตกลงการประเมิน ได้รับการอนุมัติไปแล้ว");
|
||||
$(".approve_section").show();
|
||||
$(".approve_item").prop("disabled", true);
|
||||
$(".status_self").hide();
|
||||
}
|
||||
else if (status_chief_a === "N") {
|
||||
$("#status").text("ข้อตกลงการประเมินของคุณถูกตีกลับ กรุณาแก้ไข และส่งใหม่");
|
||||
$(".approve_section").show();
|
||||
$(".approve_item").prop("disabled", true);
|
||||
$(".status_self").show();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
$(".reject_section").show();
|
||||
$("#eva_create_evaluation_detail_review0A_chief_a_reject_reason").prop("disabled", true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user