ปรับปรุง UI และ Flow ของงาน เพิ่มเติม
This commit is contained in:
@@ -163,15 +163,16 @@
|
||||
<br />
|
||||
|
||||
<section class="wrapper">
|
||||
<div class="title"><div class="line"></div>ข้อตกลงการปฏิบัติงาน</div>
|
||||
<div class="title"><div class="line"></div><span id="s1_text">ข้อตกลงการปฏิบัติงาน</span></div>
|
||||
<div class="tools">
|
||||
<div class="row">
|
||||
|
||||
<input class="form-control" type="hidden" id="s_eva_evaluation_operating_agreement_create_evaluation_detail_id" />
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-12">
|
||||
<span id="s2_text">ขอเสนอข้อตกลงการปฏิบัติงานตามภารกิจที่รับผิดชอบ และหรือภารกิจที่ได้รับมอบหมายเป็นพิเศษดังนี้</span>
|
||||
<button class="btn btn-info status_self" onclick="javascript:eva_evaluation_operating_agreement_GoCreate();"><i class="fa fa-plus" style="font-size: 14px;"></i> เพิ่มรายการ</button>
|
||||
<button class="btn btn-info" onclick="javascript:rep_eva_p01_DoSearch('pdf');">พิมพ์แบบข้อตกลง</button>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -195,7 +196,7 @@
|
||||
<br />
|
||||
|
||||
<section class="wrapper approve_section">
|
||||
<div class="title col-md-12"><div class="line"></div>บันทึกผลการตรวจข้อตกลงการประเมิน</div>
|
||||
<div class="title col-md-12"><div class="line"></div>ส่วนที่ 2 ความเห็นของผู้บังคับบัญชา (ผู้ประเมินชั้นต้น)</div>
|
||||
|
||||
<section class="card no-border">
|
||||
<div class="card-body" style="">
|
||||
@@ -209,19 +210,19 @@
|
||||
|
||||
<div class='row'>
|
||||
<div class="form-group col-md-6">
|
||||
<label id="lab_eva_create_evaluation_detail_review0A_chief_a_result" for="eva_create_evaluation_detail_review0A_chief_a_result">ผลการตรวจข้อตกลงการประเมิน</label>
|
||||
<select class="form-control approve_item" id="eva_create_evaluation_detail_review0A_chief_a_result" iLabel="ผลการตรวจข้อตกลงการประเมิน" iRequire="true" iGroup="eva_create_evaluation_detail_review0A"></select>
|
||||
<label id="lab_eva_create_evaluation_detail_review0A_chief_a_result" for="eva_create_evaluation_detail_review0A_chief_a_result">ความเห็น</label>
|
||||
<select class="form-control approve_item" id="eva_create_evaluation_detail_review0A_chief_a_result" iLabel="ความเห็น" iRequire="true" iGroup="eva_create_evaluation_detail_review0A"></select>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6">
|
||||
<label id="lab_eva_create_evaluation_detail_review0A_chief_a_date" for="eva_create_evaluation_detail_review0A_chief_a_date">วันที่ตรวจ</label>
|
||||
<input class="form-control approve_item" type="text" id="eva_create_evaluation_detail_review0A_chief_a_date" data-provide="datepicker" data-date-language="th-th" iLabel="วันที่ตรวจ" iRequire="true" iGroup="eva_create_evaluation_detail_review0A" />
|
||||
<div class="form-group col-md-6" style="display:none;">
|
||||
<label id="lab_eva_create_evaluation_detail_review0A_chief_a_date" for="eva_create_evaluation_detail_review0A_chief_a_date">วันที่ให้ความเห็น</label>
|
||||
<input class="form-control approve_item" type="text" id="eva_create_evaluation_detail_review0A_chief_a_date" data-provide="datepicker" data-date-language="th-th" iLabel="วันที่ให้ความเห็น" iRequire="false" iGroup="eva_create_evaluation_detail_review0A" />
|
||||
</div>
|
||||
</div>
|
||||
<div class='row'>
|
||||
<div class="form-group col-md-12">
|
||||
<label id="lab_eva_create_evaluation_detail_review0A_chief_a_remark" for="eva_create_evaluation_detail_review0A_chief_a_remark">ความเห็นของผู้ตรวจ</label>
|
||||
<textarea class="form-control approve_item" rows="4" cols="50" id="eva_create_evaluation_detail_review0A_chief_a_remark" iLabel="ความเห็นของผู้ตรวจ" iRequire="false" iGroup="eva_create_evaluation_detail_review0A"></textarea>
|
||||
<label id="lab_eva_create_evaluation_detail_review0A_chief_a_remark" for="eva_create_evaluation_detail_review0A_chief_a_remark">ความเห็นอื่นๆ</label>
|
||||
<textarea class="form-control approve_item" rows="4" cols="50" id="eva_create_evaluation_detail_review0A_chief_a_remark" iLabel="ความเห็นอื่นๆ" iRequire="false" iGroup="eva_create_evaluation_detail_review0A"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -246,20 +247,40 @@
|
||||
<input class="form-control" type="hidden" id="eva_create_evaluation_detail_status_status_chief_a" />
|
||||
<input class="form-control" type="hidden" id="eva_create_evaluation_detail_status_status_supervisor" />
|
||||
|
||||
<div class="row">
|
||||
<div class="form-group col-md-12">
|
||||
|
||||
<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_self" onclick="javascript:alert('บันทึกเรียบร้อย')">บันทึก</button>
|
||||
<section class="card no-border">
|
||||
<div class="card-body" style="">
|
||||
|
||||
<button type="button" class="btn btn-submit status_chief" onclick="javascript:eva_create_evaluation_detail_review0A_PutUpdate('save')">บันทึก</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_chief" onclick="javascript:eva_create_evaluation_detail_review0A_PutUpdate('backB')">ตีกลับ</button>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<button type="button" class="btn btn-danger" onclick="javascript:window_close()"><i class="fa fa-repeat"></i> กลับ</button>
|
||||
<div class="row">
|
||||
<div class="form-group col-md-12">
|
||||
|
||||
<button type="button" class="btn btn-danger" onclick="javascript:window_close()"><i class="fa fa-repeat"></i> กลับ</button>
|
||||
<button type="button" class="btn btn-submit status_self" onclick="javascript:alert('บันทึกเรียบร้อย')">บันทึก</button>
|
||||
<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('backB')">ส่งเอกสารคืน</button>
|
||||
<button type="button" class="btn btn-submit status_chief" onclick="javascript:eva_create_evaluation_detail_review0A_PutUpdate('save')">บันทึก</button>
|
||||
<button type="button" class="btn btn-submit status_chief" onclick="javascript:eva_create_evaluation_detail_review0A_PutUpdate('nextB')">ส่งความเห็นของผู้บังคับบัญชา</button>
|
||||
|
||||
<button class="btn btn-info" onclick="javascript:rep_eva_p01_DoSearch('pdf');">พิมพ์แบบข้อตกลง</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class='row'>
|
||||
<div class="form-group col-md-12">
|
||||
<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>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
@section FooterPlaceHolder{
|
||||
@@ -273,15 +294,13 @@
|
||||
var status_self_a = "";
|
||||
var status_chief_a = "";
|
||||
var role_code = "";
|
||||
var show_tool = true;
|
||||
|
||||
$(document).ready(function () {
|
||||
var id = getUrlParameter("id");
|
||||
if (id) {
|
||||
eva_create_evaluation_detail_firstdoc_SetEditForm(id);
|
||||
eva_create_evaluation_detail_status_SetEditForm(id);
|
||||
|
||||
eva_evaluation_operating_agreement_InitiateDataTable();
|
||||
eva_evaluation_operating_agreement_InitialForm();
|
||||
eva_create_evaluation_detail_status_SetEditForm(id);
|
||||
|
||||
eva_create_evaluation_detail_review0A_SetEditForm(id);
|
||||
} else {
|
||||
@@ -300,6 +319,7 @@
|
||||
$(".status_chief").hide();
|
||||
$("#status").text("");
|
||||
$(".approve_section").hide();
|
||||
$("#s2_text").hide();
|
||||
|
||||
if (role_code === "1") { // ผู้ประเมิน
|
||||
$(".approve_section").show();
|
||||
@@ -316,6 +336,10 @@
|
||||
$(".approve_item").prop("disabled", true);
|
||||
$(".status_chief").hide();
|
||||
}
|
||||
|
||||
$("#s1_text").text("ส่วนที่ 1 ข้อตกลงการปฏิบัติงาน");
|
||||
$("#s2_text").show();
|
||||
|
||||
} else if (role_code === "") { // ผู้รับการประเมิน
|
||||
$(".status_self").show();
|
||||
if (status_self_a === "Y") {
|
||||
@@ -333,7 +357,11 @@
|
||||
$(".approve_item").prop("disabled", true);
|
||||
$(".status_self").show();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user