ปรับปรุง flow การบันทึกและแสดงคะแนนของทุก actor
This commit is contained in:
@@ -63,20 +63,20 @@ $("#w3").text((data.create_evaluation_score1+data.create_evaluation_score2).toFi
|
||||
|
||||
function eva_create_evaluation_detail_process_GetFromForm() {
|
||||
var eva_create_evaluation_detail_processObject = new Object();
|
||||
eva_create_evaluation_detail_processObject.id = $("#eva_create_evaluation_detail_process_id").val();
|
||||
eva_create_evaluation_detail_processObject.evaluation_round = $("#eva_create_evaluation_detail_process_evaluation_round").text();
|
||||
eva_create_evaluation_detail_processObject.employee_code = $("#eva_create_evaluation_detail_process_employee_code").text();
|
||||
eva_create_evaluation_detail_processObject.employee_fullname = $("#eva_create_evaluation_detail_process_employee_fullname").text();
|
||||
eva_create_evaluation_detail_processObject.employee_position = $("#eva_create_evaluation_detail_process_employee_position").text();
|
||||
eva_create_evaluation_detail_processObject.employee_position_type = $("#eva_create_evaluation_detail_process_employee_position_type").text();
|
||||
eva_create_evaluation_detail_processObject.employee_position_level = $("#eva_create_evaluation_detail_process_employee_position_level").text();
|
||||
eva_create_evaluation_detail_processObject.employee_org = $("#eva_create_evaluation_detail_process_employee_org").text();
|
||||
eva_create_evaluation_detail_processObject.chief_fullname = $("#eva_create_evaluation_detail_process_chief_fullname").text();
|
||||
eva_create_evaluation_detail_processObject.chief_position = $("#eva_create_evaluation_detail_process_chief_position").text();
|
||||
eva_create_evaluation_detail_processObject.create_evaluation_id = $("#eva_create_evaluation_detail_process_create_evaluation_id").val();
|
||||
eva_create_evaluation_detail_processObject.org_id = $("#eva_create_evaluation_detail_process_org_id").val();
|
||||
eva_create_evaluation_detail_processObject.search_employee_code = $("#eva_create_evaluation_detail_process_search_employee_code").val();
|
||||
eva_create_evaluation_detail_processObject.search_employee_fullname = $("#eva_create_evaluation_detail_process_search_employee_fullname").val();
|
||||
eva_create_evaluation_detail_processObject.id = $("#eva_create_evaluation_detail_process_id").val();
|
||||
eva_create_evaluation_detail_processObject.evaluation_round = $("#eva_create_evaluation_detail_process_evaluation_round").text();
|
||||
eva_create_evaluation_detail_processObject.employee_code = $("#eva_create_evaluation_detail_process_employee_code").text();
|
||||
eva_create_evaluation_detail_processObject.employee_fullname = $("#eva_create_evaluation_detail_process_employee_fullname").text();
|
||||
eva_create_evaluation_detail_processObject.employee_position = $("#eva_create_evaluation_detail_process_employee_position").text();
|
||||
eva_create_evaluation_detail_processObject.employee_position_type = $("#eva_create_evaluation_detail_process_employee_position_type").text();
|
||||
eva_create_evaluation_detail_processObject.employee_position_level = $("#eva_create_evaluation_detail_process_employee_position_level").text();
|
||||
eva_create_evaluation_detail_processObject.employee_org = $("#eva_create_evaluation_detail_process_employee_org").text();
|
||||
eva_create_evaluation_detail_processObject.chief_fullname = $("#eva_create_evaluation_detail_process_chief_fullname").text();
|
||||
eva_create_evaluation_detail_processObject.chief_position = $("#eva_create_evaluation_detail_process_chief_position").text();
|
||||
eva_create_evaluation_detail_processObject.create_evaluation_id = $("#eva_create_evaluation_detail_process_create_evaluation_id").val();
|
||||
eva_create_evaluation_detail_processObject.org_id = $("#eva_create_evaluation_detail_process_org_id").val();
|
||||
eva_create_evaluation_detail_processObject.search_employee_code = $("#eva_create_evaluation_detail_process_search_employee_code").val();
|
||||
eva_create_evaluation_detail_processObject.search_employee_fullname = $("#eva_create_evaluation_detail_process_search_employee_fullname").val();
|
||||
|
||||
|
||||
return eva_create_evaluation_detail_processObject;
|
||||
@@ -96,9 +96,16 @@ function eva_create_evaluation_detail_process_InitialForm() {
|
||||
function eva_create_evaluation_detail_process_SetEditForm(a) {
|
||||
var successFunc = function (result) {
|
||||
eva_create_evaluation_detail_process_editMode = "UPDATE";
|
||||
eva_create_evaluation_detail_process_FeedDataToForm(result);
|
||||
setPageByRoleAndStatus(result.role_code, result.status_self, result.status_chief, result.status_supervisor, result.status_supervisor1A, result.status_supervisor2A);
|
||||
endLoad();
|
||||
eva_create_evaluation_detail_process_FeedDataToForm(result);
|
||||
|
||||
//startLoad();
|
||||
eva_evaluation_achievement_process2_InitialForm(a, result.role_code);
|
||||
eva_evaluation_behavior_process2_InitialForm(a, result.role_code);
|
||||
eva_create_evaluation_detail_summary2_SetEditForm(a, result.role_code);
|
||||
|
||||
setTimeout(function(){
|
||||
setPageByRoleAndStatus(result.role_code, result.status_self, result.status_chief, result.status_supervisor, result.status_supervisor1A, result.status_supervisor2A);
|
||||
},1000);
|
||||
};
|
||||
startLoad();
|
||||
|
||||
@@ -177,7 +184,11 @@ function setViewOfComment(status_supervisor, status_supervisor1A, status_supervi
|
||||
}
|
||||
}
|
||||
|
||||
var the_role_code = "";
|
||||
|
||||
function setPageByRoleAndStatus(role_code, status_self, status_chief, status_supervisor, status_supervisor1A, status_supervisor2A){
|
||||
endLoad();
|
||||
the_role_code = role_code;
|
||||
|
||||
$(".myeditor").attr("disabled", true);
|
||||
$("#btnb01").hide();
|
||||
@@ -241,6 +252,7 @@ function setPageByRoleAndStatus(role_code, status_self, status_chief, status_sup
|
||||
$("#btnc01").show();
|
||||
$("#btnc02").show();
|
||||
//$("#btnc03").show();
|
||||
$(".myeditor").attr("disabled", false);
|
||||
}else{
|
||||
$("#thestatus1A").text("(ผู้รับการประเมิน หรือ ผู้ประเมิน หรือ ผู้ประเมินสูงสุด ยังไม่ส่งแบบประเมิน คุณจึงไม่สามารถให้ความเห็นได้)");
|
||||
}
|
||||
@@ -253,6 +265,7 @@ function setPageByRoleAndStatus(role_code, status_self, status_chief, status_sup
|
||||
$("#btnc02").hide();
|
||||
$("#btnc03").hide();
|
||||
$("#thestatus1A").text("(ผู้บังคับบัญชาการเหนือขึ้นไปอีกชั้นหนึ่ง ส่งแบบประเมินแล้ว)");
|
||||
$(".myeditor").attr("disabled", true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -267,6 +280,7 @@ function setPageByRoleAndStatus(role_code, status_self, status_chief, status_sup
|
||||
$("#btnd01").show();
|
||||
$("#btnd02").show();
|
||||
//$("#btnd03").show();
|
||||
$(".myeditor").attr("disabled", false);
|
||||
}else{
|
||||
$("#thestatus2A").text("(ผู้รับการประเมิน หรือ ผู้ประเมิน หรือ ผู้ประเมินสูงสุด หรือ ผู้บังคับบัญชาการเหนือขึ้นไปอีกชั้นหนึ่ง ยังไม่ส่งแบบประเมิน คุณจึงไม่สามารถให้ความเห็นได้)");
|
||||
}
|
||||
@@ -278,11 +292,13 @@ function setPageByRoleAndStatus(role_code, status_self, status_chief, status_sup
|
||||
$("#btnd02").hide();
|
||||
$("#btnd03").hide();
|
||||
$("#thestatus2A").text("(ผู้บังคับบัญชาการเหนือขึ้นไปอีกชั้นหนึ่ง (สูงสุด) ส่งแบบประเมินแล้ว)");
|
||||
$(".myeditor").attr("disabled", true);
|
||||
}
|
||||
}
|
||||
else {
|
||||
alert('คุณไม่มีสิทธิเข้าถึงหน้าจอนี้!');
|
||||
window_close();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user