ปรับปรุงให้แก้ไขแบบ inline

This commit is contained in:
LAPTOP-KB8JC2K2\acer
2021-04-11 13:20:11 +07:00
parent 8d1bc4cc34
commit 74a02a8657
5 changed files with 185 additions and 22 deletions

View File

@@ -312,9 +312,9 @@
<table id="eva_evaluation_achievementTable" class="display table table-bordered table-striped">
<thead>
<tr>
<th>เครื่องมือ</th>
<th width="70%"><label id='h_eva_evaluation_achievement_achievement'>ผลสัมฤทธิ์ตัวชี้วัดผลงาน</label></th>
<th><label id='h_eva_evaluation_achievement_weight'>น้ำหนัก</label></th>
<th width="100">เครื่องมือ</th>
<th><label id='h_eva_evaluation_achievement_achievement'>ผลสัมฤทธิ์ตัวชี้วัดผลงาน</label></th>
<th width="200"><label id='h_eva_evaluation_achievement_weight'>น้ำหนัก</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>
@@ -343,28 +343,31 @@
<br />
<section class="wrapper">
<div class="title col-md-12"><div class="line"></div>พฤติกรรมการปฏิบัติงาน (น้ำหนัก <span id="eva_create_evaluation_detail_agreement_score2"></span>%)</div>
<table id="eva_evaluation_behaviorTable" class="display table table-bordered table-striped">
<thead>
<tr>
<th>เครื่องมือ</th>
<th style="display:none;">ลำดับ</th>
<th><label id='h_eva_evaluation_behavior_behavior'>พฤติกรรมการปฏิบัติงาน</label></th>
<th><label id='h_eva_evaluation_achievement_weight'>น้ำหนัก</label></th>
<th width="200"><label id='h_eva_evaluation_behavior_weight'>น้ำหนัก</label></th>
</tr>
</thead>
<tbody></tbody>
<tbody class="thin-border-bottom" id="eva_evaluation_behaviorBody"></tbody>
<tfoot>
<tr>
<th></th>
<th style="display:none;"></th>
<th>รวมน้ำหนัก</th>
<th><span id="sum_weight_eva_evaluation_behavior"></span></th>
</tr>
</tfoot>
</table>
</section>
<p style="display:none;" id="sum_b"></p>
<br />
<br/>
<section class="wrapper">
@@ -410,7 +413,7 @@
<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_evaluation_behavior_Save(getUrlParameter('id'))">บันทึก</button>
<button class="btn btn-secondary" onclick="javascript:print_report();">พิมพ์แบบประเมิน</button>
@@ -426,6 +429,7 @@
<script src="~/js/eva_create_evaluation_detail_agreement/eva_create_evaluation_detail_agreement_d.js?version=@MyHelper.GetDummyText()"></script>
<script src="~/js/eva_evaluation_achievement/eva_evaluation_achievement.js?version=@MyHelper.GetDummyText()"></script>
<script src="~/js/eva_evaluation_behavior/eva_evaluation_behavior.js?version=@MyHelper.GetDummyText()"></script>
<script src="~/js/eva_evaluation_behavior/eva_evaluation_behavior_inline.js?version=@MyHelper.GetDummyText()"></script>
<script src="~/js/eva_create_evaluation_detail_status/eva_create_evaluation_detail_status_d.js?version=@MyHelper.GetDummyText()"></script>
<script src="~/js/eva_idp_plan_owner/eva_idp_plan_owner.js?version=@MyHelper.GetDummyText()"></script>
<script src="~/js/rep_eva_x/rep_eva_x_report.js?version=@MyHelper.GetDummyText()"></script>
@@ -439,8 +443,7 @@
eva_create_evaluation_detail_agreement_SetEditForm(id);
eva_evaluation_achievement_InitiateDataTable(id);
eva_evaluation_achievement_InitialForm();
eva_evaluation_behavior_InitiateDataTable(id);
eva_evaluation_behavior_InitialForm();
eva_evaluation_behavior_InitialForm(id);
eva_create_evaluation_detail_status_SetEditForm(id);
eva_idp_plan_owner_InitiateDataTable(id);
eva_idp_plan_owner_InitialForm();
@@ -459,10 +462,11 @@
});
function CheckPermission() {
if (status_self === "Y") {
$(".status_self").hide();
$("#status").text("คุณส่งแบบประเมินไปแล้ว");
}
//if (status_self === "Y") {
// $(".status_self").hide();
// $(".status_self_text").attr("disabled", true);
// $("#status").text("คุณส่งแบบประเมินไปแล้ว");
//}
}
function OnWeightChanged(c) {
@@ -482,6 +486,17 @@
}
}
function cal_behavior_total() {
var w1 = 0;
$('#eva_evaluation_behaviorBody tr').each(function () {
var i = $(this).find("#rowCount").text();
var eva_evaluation_behavior = eva_evaluation_behavior_GetFromForm($(this), i);
w1 += parseFloat(eva_evaluation_behavior.weight);
});
$("#sum_weight_eva_evaluation_behavior").text(w1);
//console.log(w1);
}
function print_report() {
var eva_create_evaluation_detail_selectitem = [];
eva_create_evaluation_detail_selectitem.push(getUrlParameter("id"));