ส่ง code แก้ไข OP Change Request 18 ข้อ
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
<div class='row'>
|
||||
<div class="form-group col-md-4">
|
||||
<label id="lab_eva_evaluation_behavior_weight" for="eva_evaluation_behavior_weight">น้ำหนัก</label>
|
||||
<input disabled class="form-control" type="number" id="eva_evaluation_behavior_weight" iLabel="น้ำหนัก" iRequire="true" iGroup="eva_evaluation_behavior" />
|
||||
<input onchange="OnWeightChanged(this);" class="form-control" type="number" id="eva_evaluation_behavior_weight" iLabel="น้ำหนัก" iRequire="true" iGroup="eva_evaluation_behavior" />
|
||||
</div>
|
||||
</div>
|
||||
<div class='row' style="display:none;">
|
||||
@@ -90,7 +90,7 @@
|
||||
<div class='row'>
|
||||
<div class="form-group col-md-4">
|
||||
<label id="lab_eva_evaluation_achievement_weight" for="eva_evaluation_achievement_weight">น้ำหนัก</label>
|
||||
<input class="form-control" type="number" id="eva_evaluation_achievement_weight" iLabel="น้ำหนัก" iRequire="true" iGroup="eva_evaluation_achievement" />
|
||||
<input onchange="OnWeightChanged(this);" class="form-control" type="number" id="eva_evaluation_achievement_weight" iLabel="น้ำหนัก" iRequire="true" iGroup="eva_evaluation_achievement" />
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-4">
|
||||
@@ -105,7 +105,7 @@
|
||||
<input type="hidden" id="eva_evaluation_achievement_thefile_hidURL" iLabel="แนบไฟล์" iRequire="false" iGroup="eva_evaluation_achievement" />
|
||||
</div>
|
||||
</div>
|
||||
<div class='row'>
|
||||
<div style="display:none;" class='row'>
|
||||
<div class="form-group col-md-4">
|
||||
<label id="lab_eva_evaluation_achievement_target_score1" for="eva_evaluation_achievement_target_score1">คะแนนตามค่าระดับเป้าหมาย1</label>
|
||||
<input class="form-control" type="text" id="eva_evaluation_achievement_target_score1" iLabel="คะแนนตามค่าระดับเป้าหมาย1" iRequire="false" iGroup="eva_evaluation_achievement" />
|
||||
@@ -121,7 +121,7 @@
|
||||
<input class="form-control" type="text" id="eva_evaluation_achievement_target_score3" iLabel="คะแนนตามค่าระดับเป้าหมาย3" iRequire="false" iGroup="eva_evaluation_achievement" />
|
||||
</div>
|
||||
</div>
|
||||
<div class='row'>
|
||||
<div style="display:none;" class='row'>
|
||||
<div class="form-group col-md-4">
|
||||
<label id="lab_eva_evaluation_achievement_target_score4" for="eva_evaluation_achievement_target_score4">คะแนนตามค่าระดับเป้าหมาย4</label>
|
||||
<input class="form-control" type="text" id="eva_evaluation_achievement_target_score4" iLabel="คะแนนตามค่าระดับเป้าหมาย4" iRequire="false" iGroup="eva_evaluation_achievement" />
|
||||
@@ -221,55 +221,37 @@
|
||||
<input class="form-control" type="hidden" id="eva_create_evaluation_detail_agreement_id" />
|
||||
<input class="form-control" type="hidden" id="eva_create_evaluation_detail_agreement_create_evaluation_id" />
|
||||
|
||||
<div class='row'>
|
||||
<div class="form-group col-md-4">
|
||||
<label id="lab_eva_create_evaluation_detail_agreement_evaluation_round" for="eva_create_evaluation_detail_agreement_evaluation_round">รอบการประเมิน</label>
|
||||
<p class="form-control" id="eva_create_evaluation_detail_agreement_evaluation_round" />
|
||||
</div>
|
||||
</div>
|
||||
<div class='row'>
|
||||
<div class="form-group col-md-4">
|
||||
<label id="lab_eva_create_evaluation_detail_agreement_employee_code" for="eva_create_evaluation_detail_agreement_employee_code">รหัสพนักงาน</label>
|
||||
<p class="form-control" id="eva_create_evaluation_detail_agreement_employee_code" />
|
||||
</div>
|
||||
<p style="display:none;" class="form-control" id="eva_create_evaluation_detail_agreement_chief_fullname" />
|
||||
<p style="display:none;" class="form-control" id="eva_create_evaluation_detail_agreement_chief_position" />
|
||||
|
||||
<div class="form-group col-md-4">
|
||||
<label id="lab_eva_create_evaluation_detail_agreement_employee_fullname" for="eva_create_evaluation_detail_agreement_employee_fullname">ชื่อ-สกุล</label>
|
||||
<p class="form-control" id="eva_create_evaluation_detail_agreement_employee_fullname" />
|
||||
</div>
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td style="font-weight:800;">รอบการประเมิน</td>
|
||||
<td><span id="eva_create_evaluation_detail_agreement_evaluation_round" /></td>
|
||||
<td style="font-weight:800;">รหัสพนักงาน</td>
|
||||
<td><span id="eva_create_evaluation_detail_agreement_employee_code" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight:800;">ชื่อ-ชื่อสกุล</td>
|
||||
<td><span id="eva_create_evaluation_detail_agreement_employee_fullname" /></td>
|
||||
<td style="font-weight:800;">ประเภทตำแหน่ง</td>
|
||||
<td><span id="eva_create_evaluation_detail_agreement_employee_position_type" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight:800;">ตำแหน่ง</td>
|
||||
<td><span id="eva_create_evaluation_detail_agreement_employee_position" /></td>
|
||||
<td style="font-weight:800;">ระดับตำแหน่ง</td>
|
||||
<td><span id="eva_create_evaluation_detail_agreement_employee_position_level" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight:800;">หน่วยงาน</td>
|
||||
<td><span id="eva_create_evaluation_detail_agreement_employee_org" /></td>
|
||||
<td style="font-weight:800;">หมายเหตุ</td>
|
||||
<td><span id="remark_hrm_work_record" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="form-group col-md-4">
|
||||
<label id="lab_eva_create_evaluation_detail_agreement_employee_position_type" for="eva_create_evaluation_detail_agreement_employee_position_type">ประเภทตำแหน่ง</label>
|
||||
<p class="form-control" id="eva_create_evaluation_detail_agreement_employee_position_type" />
|
||||
</div>
|
||||
</div>
|
||||
<div class='row'>
|
||||
<div class="form-group col-md-4">
|
||||
<label id="lab_eva_create_evaluation_detail_agreement_employee_position" for="eva_create_evaluation_detail_agreement_employee_position">ตำแหน่ง</label>
|
||||
<p class="form-control" id="eva_create_evaluation_detail_agreement_employee_position" />
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-4">
|
||||
<label id="lab_eva_create_evaluation_detail_agreement_employee_position_level" for="eva_create_evaluation_detail_agreement_employee_position_level">ระดับตำแหน่ง</label>
|
||||
<p class="form-control" id="eva_create_evaluation_detail_agreement_employee_position_level" />
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-4">
|
||||
<label id="lab_eva_create_evaluation_detail_agreement_employee_org" for="eva_create_evaluation_detail_agreement_employee_org">หน่วยงาน</label>
|
||||
<p class="form-control" id="eva_create_evaluation_detail_agreement_employee_org" />
|
||||
</div>
|
||||
</div>
|
||||
<div class='row'>
|
||||
<div class="form-group col-md-4">
|
||||
<label id="lab_eva_create_evaluation_detail_agreement_chief_fullname" for="eva_create_evaluation_detail_agreement_chief_fullname">ชื่อผู้ประเมิน</label>
|
||||
<p class="form-control" id="eva_create_evaluation_detail_agreement_chief_fullname" />
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-4">
|
||||
<label id="lab_eva_create_evaluation_detail_agreement_chief_position" for="eva_create_evaluation_detail_agreement_chief_position">ตำแหน่งผู้ประเมิน</label>
|
||||
<p class="form-control" id="eva_create_evaluation_detail_agreement_chief_position" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -293,7 +275,7 @@
|
||||
<input class="form-control" type="hidden" id="s_eva_evaluation_achievement_create_evaluation_detail_id" />
|
||||
|
||||
<div class="col-md-3">
|
||||
<button class="btn btn-info" onclick="javascript:eva_evaluation_achievement_GoCreate();"><i class="fa fa-plus" style="font-size: 14px;"></i> เพิ่มรายการ</button>
|
||||
<button class="btn btn-info status_self" onclick="javascript:eva_evaluation_achievement_GoCreate();"><i class="fa fa-plus" style="font-size: 14px;"></i> เพิ่มรายการ</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -305,11 +287,11 @@
|
||||
<th>เครื่องมือ</th>
|
||||
<th><label id='h_eva_evaluation_achievement_achievement'>ผลสัมฤทธิ์ตัวชี้วัดผลงาน</label></th>
|
||||
<th><label id='h_eva_evaluation_achievement_weight'>น้ำหนัก</label></th>
|
||||
<th><label id='h_eva_evaluation_achievement_target_score1'>1</label></th>
|
||||
<th><label id='h_eva_evaluation_achievement_target_score2'>2</label></th>
|
||||
<th><label id='h_eva_evaluation_achievement_target_score3'>3</label></th>
|
||||
<th><label id='h_eva_evaluation_achievement_target_score4'>4</label></th>
|
||||
<th><label id='h_eva_evaluation_achievement_target_score5'>5</label></th>
|
||||
<th style="display:none;"><label id='h_eva_evaluation_achievement_target_score1'>1</label></th>
|
||||
<th style="display:none;"><label id='h_eva_evaluation_achievement_target_score2'>2</label></th>
|
||||
<th style="display:none;"><label id='h_eva_evaluation_achievement_target_score3'>3</label></th>
|
||||
<th style="display:none;"><label id='h_eva_evaluation_achievement_target_score4'>4</label></th>
|
||||
<th style="display:none;"><label id='h_eva_evaluation_achievement_target_score5'>5</label></th>
|
||||
<th><label id='h_eva_evaluation_achievement_thefile'>เอกสารแนบ</label></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -319,11 +301,11 @@
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
<th><p id="sum_a"></p></th>
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
<th style="display:none;"> </th>
|
||||
<th style="display:none;"> </th>
|
||||
<th style="display:none;"> </th>
|
||||
<th style="display:none;"> </th>
|
||||
<th style="display:none;"> </th>
|
||||
<th> </th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
@@ -340,6 +322,7 @@
|
||||
<tr>
|
||||
<th>เครื่องมือ</th>
|
||||
<th><label id='h_eva_evaluation_behavior_behavior'>พฤติกรรมการปฏิบัติงาน</label></th>
|
||||
<th><label id='h_eva_evaluation_achievement_weight'>น้ำหนัก</label></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
@@ -357,7 +340,7 @@
|
||||
<input class="form-control" type="hidden" id="s_eva_idp_plan_owner_create_evaluation_detail_id" />
|
||||
|
||||
<div class="col-md-3">
|
||||
<button class="btn btn-info" onclick="javascript:eva_idp_plan_owner_GoCreate();"><i class="fa fa-plus" style="font-size: 14px;"></i> เพิ่มรายการ</button>
|
||||
<button class="btn btn-info status_self" onclick="javascript:eva_idp_plan_owner_GoCreate();"><i class="fa fa-plus" style="font-size: 14px;"></i> เพิ่มรายการ</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -381,7 +364,7 @@
|
||||
<br />
|
||||
|
||||
<section class="wrapper">
|
||||
<div class="title col-md-12"><div class="line"></div>ส่งข้อตกลงการประเมิน</div>
|
||||
<div class="title col-md-12"><div class="line"></div>ส่งข้อตกลงการประเมิน <span id="status" style="color:red;"></span></div>
|
||||
|
||||
<input class="form-control" type="hidden" id="eva_create_evaluation_detail_status_id" />
|
||||
<input class="form-control" type="hidden" id="eva_create_evaluation_detail_status_create_evaluation_id" />
|
||||
@@ -391,8 +374,8 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="form-group col-md-12">
|
||||
<button type="button" class="btn btn-submit" onclick="javascript:eva_create_evaluation_detail_status_PutUpdate('next0')">ส่งข้อตกลงการประเมิน</button>
|
||||
<button type="button" class="btn btn-submit" onclick="javascript:alert('บันทึกเรียบร้อย')">บันทึก</button>
|
||||
<button type="button" class="btn btn-submit status_self" onclick="javascript:eva_create_evaluation_detail_status_PutUpdate('next0')">ส่งข้อตกลงการประเมิน</button>
|
||||
<button type="button" class="btn btn-submit status_self" onclick="javascript:alert('บันทึกเรียบร้อย')">บันทึก</button>
|
||||
<button type="button" class="btn btn-outline" onclick="javascript:window_close()" style="background-color: #fff;">ยกเลิก</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -406,6 +389,9 @@
|
||||
<script src="~/js/eva_create_evaluation_detail_status/eva_create_evaluation_detail_status_d.js"></script>
|
||||
<script src="~/js/eva_idp_plan_owner/eva_idp_plan_owner.js"></script>
|
||||
<script>
|
||||
|
||||
var status_self = "";
|
||||
|
||||
$(document).ready(function () {
|
||||
var id = getUrlParameter("id");
|
||||
if (id) {
|
||||
@@ -425,7 +411,34 @@
|
||||
SetupValidationRemark("eva_evaluation_achievement");
|
||||
SetupValidationRemark("eva_evaluation_behavior");
|
||||
SetupValidationRemark("eva_idp_plan_owner");
|
||||
|
||||
setTimeout(CheckPermission, 1000);
|
||||
});
|
||||
|
||||
function CheckPermission(){
|
||||
if(status_self === "Y"){
|
||||
$(".status_self").hide();
|
||||
$("#status").text("คุณส่งแบบประเมินไปแล้ว");
|
||||
}
|
||||
}
|
||||
|
||||
function OnWeightChanged(c){
|
||||
if($(c).val() < 0){
|
||||
$(c).val(0)
|
||||
}
|
||||
if($(c).val() > 100){
|
||||
$(c).val(100)
|
||||
}
|
||||
}
|
||||
|
||||
function CheckWeightBeforeSubmitStatus(){
|
||||
if(parseInt($("#sum_a").text()) !== 100){
|
||||
return false;
|
||||
}else{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user