เตรียมรายงาน แบบข้อตกลงการปฏิบัติงาน
This commit is contained in:
@@ -179,7 +179,7 @@
|
||||
@section FooterPlaceHolder{
|
||||
<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_summary.js?version=@MyHelper.GetDummyText()"></script>
|
||||
<script src="~/js/rep_eva_x/rep_eva_x_report.js"></script>
|
||||
<script src="~/js/rep_eva_x/rep_eva_x_report.js?version=@MyHelper.GetDummyText()"></script>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
var id = getUrlParameter("id");
|
||||
|
||||
@@ -209,6 +209,30 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="report_xModel" style="z-index:1500" tabindex="-1" role="dialog" aria-labelledby="report_xModelLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="report_xModelLabel">พิมพ์แบบข้อตกลงการประเมิน</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<iframe id="report_result" style="display:none; height:500px; width:100%;"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">ปิด</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<section class="wrapper">
|
||||
<div class="title col-md-12"><div class="line"></div>การประเมินผลการปฏิบัติงานของพนักงานเนติบัณฑิตยสภา</div>
|
||||
|
||||
@@ -374,6 +398,7 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="form-group col-md-12">
|
||||
<button class="btn btn-info" onclick="javascript:rep_eva_p01_DoSearch('pdf');">พิมพ์แบบข้อตกลง</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-danger" onclick="javascript:window_close()"><i class="fa fa-repeat"></i> กลับ</button>
|
||||
@@ -388,56 +413,57 @@
|
||||
<script src="~/js/eva_evaluation_behavior/eva_evaluation_behavior.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_p01_report.js?version=@MyHelper.GetDummyText()"></script>
|
||||
<script>
|
||||
|
||||
var status_self = "";
|
||||
var status_self = "";
|
||||
|
||||
$(document).ready(function () {
|
||||
var id = getUrlParameter("id");
|
||||
if (id) {
|
||||
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_create_evaluation_detail_status_SetEditForm(id);
|
||||
eva_idp_plan_owner_InitiateDataTable(id);
|
||||
eva_idp_plan_owner_InitialForm();
|
||||
|
||||
} else {
|
||||
eva_create_evaluation_detail_agreement_SetCreateForm();
|
||||
$(document).ready(function () {
|
||||
var id = getUrlParameter("id");
|
||||
if (id) {
|
||||
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_create_evaluation_detail_status_SetEditForm(id);
|
||||
eva_idp_plan_owner_InitiateDataTable(id);
|
||||
eva_idp_plan_owner_InitialForm();
|
||||
|
||||
} else {
|
||||
eva_create_evaluation_detail_agreement_SetCreateForm();
|
||||
}
|
||||
SetupValidationRemark("eva_create_evaluation_detail_agreement");
|
||||
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("คุณส่งแบบประเมินไปแล้ว");
|
||||
}
|
||||
}
|
||||
SetupValidationRemark("eva_create_evaluation_detail_agreement");
|
||||
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)
|
||||
function OnWeightChanged(c) {
|
||||
if ($(c).val() < 0) {
|
||||
$(c).val(0)
|
||||
}
|
||||
if ($(c).val() > 100) {
|
||||
$(c).val(100)
|
||||
}
|
||||
}
|
||||
if($(c).val() > 100){
|
||||
$(c).val(100)
|
||||
}
|
||||
}
|
||||
|
||||
function CheckWeightBeforeSubmitStatus(){
|
||||
if(parseInt($("#sum_a").text()) !== 100){
|
||||
return false;
|
||||
}else{
|
||||
return true;
|
||||
function CheckWeightBeforeSubmitStatus() {
|
||||
if (parseInt($("#sum_a").text()) !== 100) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user