ปรับทศนิยม 3 ตำแหน่ง

This commit is contained in:
Nakorn Rientrakrunchai
2021-03-07 15:00:33 +07:00
parent 9bac5ef7d3
commit a40d6d79d0
10 changed files with 391 additions and 372 deletions

View File

@@ -452,10 +452,10 @@
});
function CheckPermission() {
//if (status_self === "Y") {
// $(".status_self").hide();
// $("#status").text("คุณส่งแบบประเมินไปแล้ว");
//}
if (status_self === "Y") {
$(".status_self").hide();
$("#status").text("คุณส่งแบบประเมินไปแล้ว");
}
}
function OnWeightChanged(c) {

View File

@@ -173,7 +173,7 @@
<tr>
<th>ลำดับ</th>
<th width="30%"><label>ผลสัมฤทธิ์ตัวชี้วัดผลงาน</label></th>
<th width="60%"><label>ผลสัมฤทธิ์ตัวชี้วัดผลงาน</label></th>
<th><label>น้ำหนัก (%)</label></th>
@@ -397,8 +397,9 @@
eva_create_evaluation_detail_review01_SetEditForm(id);
eva_create_evaluation_detail_status_SetEditForm(id);
setTimeout(Oneva_evaluation_achievement_process_scoreChange, 1000);
setTimeout(Oneva_evaluation_behavior_process_scoreChange, 1000);
setTimeout(Oneva_evaluation_achievement_process_scoreChange, 3000);
setTimeout(Oneva_evaluation_behavior_process_scoreChange, 3000);
//setTimeout(calculationAllItem, 10*1000);
} else {
eva_create_evaluation_detail_process_SetCreateForm();
}
@@ -406,6 +407,12 @@
SetupValidationRemark("eva_create_evaluation_detail_review01");
});
function change3digit() {
$(".the3digit").each(function (index) {
$(this).val(parseFloat($(this).val()).toFixed(3));
});
}
function searchVacation_GetFromForm() {
var searchVacationObject = new Object();
searchVacationObject.start_date = formatDateForGetParameter(getDate($("#date_from").val()));

View File

@@ -628,8 +628,8 @@
eva_idp_plan_InitiateDataTable(id);
eva_idp_plan_InitialForm();
setTimeout(Oneva_evaluation_achievement_process2_scoreChange, 1000);
setTimeout(Oneva_evaluation_behavior_process2_scoreChange, 1000);
setTimeout(Oneva_evaluation_achievement_process2_scoreChange, 4000);
setTimeout(Oneva_evaluation_behavior_process2_scoreChange, 4000);
} else {
eva_create_evaluation_detail_process_SetCreateForm();
@@ -641,6 +641,12 @@
SetupValidationRemark("eva_idp_plan");
});
function change3digit() {
$(".the3digit").each(function (index) {
$(this).val(parseFloat($(this).val()).toFixed(3));
});
}
function Oneva_create_evaluation_detail_review02_supervisor2_resultChanged(a) {
if ($(a).val() == "Y") {
$("#eva_create_evaluation_detail_review02_supervisor2_remark").attr("iRequire", "false");