ปรับปรุงหน้าจก eva detail

This commit is contained in:
Nakorn Rientrakrunchai
2021-03-12 23:22:39 +07:00
parent e179b447d7
commit 60373ede6b
20 changed files with 3303 additions and 178 deletions

View File

@@ -99,15 +99,12 @@
<thead>
<tr>
<th>ลำดับ</th>
<th><label id='h_eva_adjust_postponement_detail_normal_02_emp_code'>รหัสพนักงาน</label></th>
<th><label id='h_eva_adjust_postponement_detail_normal_02_emp_fullname'>ชื่อ-นามสกุล</label></th>
<th><label id='h_eva_adjust_postponement_detail_normal_02_emp_position'>ตำแหน่ง</label></th>
<th><label id='h_eva_adjust_postponement_detail_normal_02_emp_level'>ระดับ</label></th>
<th><label id='h_eva_adjust_postponement_detail_normal_02_total_score'>คะแนนรวม</label></th>
<th><label id='h_eva_adjust_postponement_detail_normal_02_eva_result'>ผลการประเมิน</label></th>
<th><label id='h_eva_adjust_postponement_detail_normal_02_sarary'>เงินเดือน ก่อนปรับเลื่อน</label></th>
<th><label id='h_eva_adjust_postponement_detail_normal_02_cost_living'>ค่าครองชีพ ก่อนปรับเลื่อน</label></th>
<th><label id='h_eva_adjust_postponement_detail_normal_02_middle'>ค่ากลางฐานในการคำนวณ</label></th>
@@ -116,11 +113,28 @@
<th><label id='h_eva_adjust_postponement_detail_normal_02_new_sarary'>เงินเดือนใหม่</label></th>
<th><label id='h_eva_adjust_postponement_detail_normal_02_new_cost_living'>ค่าครองชีพใหม่</label></th>
<th><label id='h_eva_adjust_postponement_detail_normal_02_remark'>หมายเหตุ</label></th>
</tr>
</thead>
<tbody class="thin-border-bottom" id="eva_adjust_postponement_detail_normal_02Body"></tbody>
<tfoot>
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th>รวม</th>
<th></th>
<th><p id="sum_before"></p></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th><p id="sum_after"></p></th>
<th></th>
<th></th>
</tr>
</tfoot>
</table>
</section>

View File

@@ -18,20 +18,55 @@
<div class="row">
<div class="col-md-12">
<input class="form-control" type="hidden" id="eva_create_evaluation_detail_id" />
<input class="form-control" type="hidden" id="eva_create_evaluation_detail_create_evaluation_id" />
<div class='row'>
<div class="form-group col-md-6">
<div class="form-group col-md-4">
<label id="lab_eva_create_evaluation_detail_order_of_data" for="eva_create_evaluation_detail_order_of_data">ลำดับ</label>
<input class="form-control" type="number" id="eva_create_evaluation_detail_order_of_data" iLabel="ลำดับ" iRequire="false" iGroup="eva_create_evaluation_detail" />
</div>
<div class="form-group col-md-4">
<label id="lab_eva_create_evaluation_detail_employee_id" for="eva_create_evaluation_detail_employee_id">ผู้รับการประเมิน</label>
<select class="form-control" id="eva_create_evaluation_detail_employee_id" iLabel="ผู้รับการประเมิน" iRequire="true" iGroup="eva_create_evaluation_detail"></select>
</div>
<div class="form-group col-md-6">
<div class="form-group col-md-4">
<label id="lab_eva_create_evaluation_detail_chief" for="eva_create_evaluation_detail_chief">ผู้ประเมิน </label>
<select class="form-control" id="eva_create_evaluation_detail_chief" iLabel="ผู้ประเมิน " iRequire="true" iGroup="eva_create_evaluation_detail"></select>
</div>
</div>
<div class='row'>
<div class="form-group col-md-4">
<label id="lab_eva_create_evaluation_detail_eva_employee_id" for="eva_create_evaluation_detail_eva_employee_id">ผู้ประเมินสูงสุด</label>
<select class="form-control" id="eva_create_evaluation_detail_eva_employee_id" iLabel="ผู้ประเมินสูงสุด" iRequire="false" iGroup="eva_create_evaluation_detail"></select>
</div>
<div class="form-group col-md-4">
<label id="lab_eva_create_evaluation_detail_supervisor1_id" for="eva_create_evaluation_detail_supervisor1_id">ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง </label>
<select class="form-control" id="eva_create_evaluation_detail_supervisor1_id" iLabel="ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง " iRequire="false" iGroup="eva_create_evaluation_detail"></select>
</div>
<div class="form-group col-md-4">
<label id="lab_eva_create_evaluation_detail_supervisor2_id" for="eva_create_evaluation_detail_supervisor2_id">ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง (สูงสุด)</label>
<select class="form-control" id="eva_create_evaluation_detail_supervisor2_id" iLabel="ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง (สูงสุด)" iRequire="false" iGroup="eva_create_evaluation_detail"></select>
</div>
</div>
<div class='row'>
<div class="form-group col-md-4">
<label id="lab_eva_create_evaluation_detail_work_period" for="eva_create_evaluation_detail_work_period">ระยะเวลาทำงาน ในรอบการประเมินนี้ (เดือน)</label>
<input class="form-control" type="number" id="eva_create_evaluation_detail_work_period" iLabel="ระยะเวลาทำงาน ในรอบการประเมินนี้ (เดือน)" iRequire="true" iGroup="eva_create_evaluation_detail" />
</div>
<div class="form-group col-md-4">
<label id="lab_eva_create_evaluation_detail_create_evaluation_id" for="eva_create_evaluation_detail_create_evaluation_id">แบบประเมิน</label>
<select class="form-control" id="eva_create_evaluation_detail_create_evaluation_id" iLabel="แบบประเมิน" iRequire="true" iGroup="eva_create_evaluation_detail"></select>
</div>
<div class="form-group col-md-4">
<label id="lab_eva_create_evaluation_detail_help_org_id" for="eva_create_evaluation_detail_help_org_id">ช่วยปฏิบัติงานที่</label>
<select class="form-control" id="eva_create_evaluation_detail_help_org_id" iLabel="ช่วยปฏิบัติงานที่" iRequire="false" iGroup="eva_create_evaluation_detail"></select>
</div>
</div>
</div>
</div>
@@ -166,6 +201,7 @@
<thead>
<tr>
<th>เครื่องมือ</th>
<th><label id='h_eva_create_evaluation_detail_order_of_data'>ลำดับ</label></th>
<th><label>รหัสพนักงาน</label></th>
<th><label>ผู้รับการประเมิน</label></th>
<th><label>ประเภทตำแหน่ง</label></th>
@@ -174,6 +210,8 @@
<th><label>หมายเหตุ</label></th>
<th><label>ผู้ประเมิน</label></th>
<th><label>หน่วยงาน</label></th>
<th><label id='h_eva_create_evaluation_detail_work_period'>ระยะเวลาทำงาน ในรอบการประเมินนี้ (เดือน)</label></th>
<th><label id='h_eva_create_evaluation_detail_help_org_id'>ช่วยปฏิบัติงานที่</label></th>
</tr>
</thead>
<tbody></tbody>
@@ -197,32 +235,41 @@
<script src="~/js/eva_create_evaluation/eva_create_evaluation_d.js?version=@MyHelper.GetDummyText()"></script>
<script src="~/js/eva_create_evaluation_detail/eva_create_evaluation_detail.js?version=@MyHelper.GetDummyText()"></script>
<script>
$(document).ready(function () {
var id = getUrlParameter("id");
if (id) {
eva_create_evaluation_SetEditForm(id);
eva_create_evaluation_detail_InitiateDataTable(id);
eva_create_evaluation_detail_InitialForm();
SetupValidationRemark("eva_create_evaluation_detail");
} else {
eva_create_evaluation_SetCreateForm();
}
SetupValidationRemark("eva_create_evaluation");
$("#eva_create_evaluation_employee_id").select2();
$("#eva_create_evaluation_supervisor1_id").select2();
$("#eva_create_evaluation_supervisor2_id").select2();
$("#eva_create_evaluation_detail_employee_id").select2({
dropdownParent: $('#eva_create_evaluation_detailModel')
$(document).ready(function () {
var id = getUrlParameter("id");
if (id) {
eva_create_evaluation_SetEditForm(id);
eva_create_evaluation_detail_InitiateDataTable(id);
eva_create_evaluation_detail_InitialForm();
SetupValidationRemark("eva_create_evaluation_detail");
} else {
eva_create_evaluation_SetCreateForm();
}
SetupValidationRemark("eva_create_evaluation");
$("#eva_create_evaluation_employee_id").select2();
$("#eva_create_evaluation_supervisor1_id").select2();
$("#eva_create_evaluation_supervisor2_id").select2();
$("#eva_create_evaluation_detail_employee_id").select2({
dropdownParent: $('#eva_create_evaluation_detailModel')
});
$("#eva_create_evaluation_detail_chief").select2({
dropdownParent: $('#eva_create_evaluation_detailModel')
});
$("#eva_create_evaluation_detail_eva_employee_id").select2({
dropdownParent: $('#eva_create_evaluation_detailModel')
});
$("#eva_create_evaluation_detail_supervisor1_id").select2({
dropdownParent: $('#eva_create_evaluation_detailModel')
});
$("#eva_create_evaluation_detail_supervisor2_id").select2({
dropdownParent: $('#eva_create_evaluation_detailModel')
});
});
$("#eva_create_evaluation_detail_chief").select2({
dropdownParent: $('#eva_create_evaluation_detailModel')
});
});
function go_next(){
var id = getUrlParameter("id");
window.location = "eva_create_evaluation_d_summary?id="+id;
}
function go_next() {
var id = getUrlParameter("id");
window.location = "eva_create_evaluation_d_summary?id=" + id;
}
</script>
}