ปรับปรุงการ default
This commit is contained in:
@@ -34,23 +34,45 @@ function eva_evaluation_achievement_process2_FeedDataToForm(data, i, blankItem,
|
|||||||
data.score4 = Number(data.score4).toFixed(3);
|
data.score4 = Number(data.score4).toFixed(3);
|
||||||
data.sumary4 = Number(data.sumary4).toFixed(3);
|
data.sumary4 = Number(data.sumary4).toFixed(3);
|
||||||
|
|
||||||
// console.log(data);
|
//console.log(role_code);
|
||||||
|
//console.log(data);
|
||||||
|
|
||||||
if (role_code === "2") {
|
if (role_code === "2") {
|
||||||
$("#eva_evaluation_achievement_process2_score_" + i).text(data.score);
|
$("#eva_evaluation_achievement_process2_score_" + i).text(data.score);
|
||||||
$("#eva_evaluation_achievement_process2_sumary_" + i).text(data.sumary);
|
$("#eva_evaluation_achievement_process2_sumary_" + i).text(data.sumary);
|
||||||
$("#eva_evaluation_achievement_process2_score2_" + i).val(data.score2);
|
if (data.score2 === "0.000") {
|
||||||
|
$("#eva_evaluation_achievement_process2_score2_" + i).val(data.score);
|
||||||
|
} else {
|
||||||
|
$("#eva_evaluation_achievement_process2_score2_" + i).val(data.score2);
|
||||||
|
}
|
||||||
$("#eva_evaluation_achievement_process2_sumary2_" + i).text(data.sumary2);
|
$("#eva_evaluation_achievement_process2_sumary2_" + i).text(data.sumary2);
|
||||||
} else if (role_code === "3") {
|
} else if (role_code === "3") {
|
||||||
$("#eva_evaluation_achievement_process2_score_" + i).text(data.score2);
|
$("#eva_evaluation_achievement_process2_score_" + i).text(data.score2);
|
||||||
$("#eva_evaluation_achievement_process2_sumary_" + i).text(data.sumary2);
|
$("#eva_evaluation_achievement_process2_sumary_" + i).text(data.sumary2);
|
||||||
$("#eva_evaluation_achievement_process2_score2_" + i).val(data.score3);
|
if (data.score3 === "0.000") {
|
||||||
|
$("#eva_evaluation_achievement_process2_score2_" + i).val(data.score2);
|
||||||
|
} else {
|
||||||
|
$("#eva_evaluation_achievement_process2_score2_" + i).val(data.score3);
|
||||||
|
}
|
||||||
$("#eva_evaluation_achievement_process2_sumary2_" + i).text(data.sumary3);
|
$("#eva_evaluation_achievement_process2_sumary2_" + i).text(data.sumary3);
|
||||||
} else if (role_code === "4") {
|
} else if (role_code === "4") {
|
||||||
$("#eva_evaluation_achievement_process2_score_" + i).text(data.score3);
|
$("#eva_evaluation_achievement_process2_score_" + i).text(data.score3);
|
||||||
$("#eva_evaluation_achievement_process2_sumary_" + i).text(data.sumary3);
|
$("#eva_evaluation_achievement_process2_sumary_" + i).text(data.sumary3);
|
||||||
$("#eva_evaluation_achievement_process2_score2_" + i).val(data.score4);
|
if (data.score4 === "0.000") {
|
||||||
|
$("#eva_evaluation_achievement_process2_score2_" + i).val(data.score3);
|
||||||
|
} else {
|
||||||
|
$("#eva_evaluation_achievement_process2_score2_" + i).val(data.score4);
|
||||||
|
}
|
||||||
$("#eva_evaluation_achievement_process2_sumary2_" + i).text(data.sumary4);
|
$("#eva_evaluation_achievement_process2_sumary2_" + i).text(data.sumary4);
|
||||||
|
} else if (role_code === "5") {
|
||||||
|
$("#eva_evaluation_achievement_process2_score_" + i).text(data.score4);
|
||||||
|
$("#eva_evaluation_achievement_process2_sumary_" + i).text(data.sumary4);
|
||||||
|
if (data.score5 === "0.000") {
|
||||||
|
$("#eva_evaluation_achievement_process2_score2_" + i).val(data.score4);
|
||||||
|
} else {
|
||||||
|
$("#eva_evaluation_achievement_process2_score2_" + i).val(data.score5);
|
||||||
|
}
|
||||||
|
$("#eva_evaluation_achievement_process2_sumary2_" + i).text(data.sumary5);
|
||||||
}
|
}
|
||||||
|
|
||||||
//$("#eva_evaluation_achievement_process2_target_score1_" + i).val(data.target_score1);
|
//$("#eva_evaluation_achievement_process2_target_score1_" + i).val(data.target_score1);
|
||||||
|
|||||||
@@ -37,18 +37,39 @@ function eva_evaluation_behavior_process2_FeedDataToForm(data, i, blankItem, rol
|
|||||||
if (role_code === "2") {
|
if (role_code === "2") {
|
||||||
$("#eva_evaluation_behavior_process2_score_" + i).text(data.score);
|
$("#eva_evaluation_behavior_process2_score_" + i).text(data.score);
|
||||||
$("#eva_evaluation_behavior_process2_sumary_" + i).text(data.sumary);
|
$("#eva_evaluation_behavior_process2_sumary_" + i).text(data.sumary);
|
||||||
$("#eva_evaluation_behavior_process2_score2_" + i).val(data.score2);
|
if (data.score2 === "0.000") {
|
||||||
|
$("#eva_evaluation_behavior_process2_score2_" + i).val(data.score);
|
||||||
|
} else {
|
||||||
|
$("#eva_evaluation_behavior_process2_score2_" + i).val(data.score2);
|
||||||
|
}
|
||||||
$("#eva_evaluation_behavior_process2_sumary2_" + i).text(data.sumary2);
|
$("#eva_evaluation_behavior_process2_sumary2_" + i).text(data.sumary2);
|
||||||
} else if (role_code === "3") {
|
} else if (role_code === "3") {
|
||||||
$("#eva_evaluation_behavior_process2_score_" + i).text(data.score2);
|
$("#eva_evaluation_behavior_process2_score_" + i).text(data.score2);
|
||||||
$("#eva_evaluation_behavior_process2_sumary_" + i).text(data.sumary2);
|
$("#eva_evaluation_behavior_process2_sumary_" + i).text(data.sumary2);
|
||||||
$("#eva_evaluation_behavior_process2_score2_" + i).val(data.score3);
|
if (data.score3 === "0.000") {
|
||||||
|
$("#eva_evaluation_behavior_process2_score2_" + i).val(data.score2);
|
||||||
|
} else {
|
||||||
|
$("#eva_evaluation_behavior_process2_score2_" + i).val(data.score3);
|
||||||
|
}
|
||||||
$("#eva_evaluation_behavior_process2_sumary2_" + i).text(data.sumary3);
|
$("#eva_evaluation_behavior_process2_sumary2_" + i).text(data.sumary3);
|
||||||
} else if (role_code === "4") {
|
} else if (role_code === "4") {
|
||||||
$("#eva_evaluation_behavior_process2_score_" + i).text(data.score3);
|
$("#eva_evaluation_behavior_process2_score_" + i).text(data.score3);
|
||||||
$("#eva_evaluation_behavior_process2_sumary_" + i).text(data.sumary3);
|
$("#eva_evaluation_behavior_process2_sumary_" + i).text(data.sumary3);
|
||||||
$("#eva_evaluation_behavior_process2_score2_" + i).val(data.score4);
|
if (data.score4 === "0.000") {
|
||||||
|
$("#eva_evaluation_behavior_process2_score2_" + i).val(data.score3);
|
||||||
|
} else {
|
||||||
|
$("#eva_evaluation_behavior_process2_score2_" + i).val(data.score4);
|
||||||
|
}
|
||||||
$("#eva_evaluation_behavior_process2_sumary2_" + i).text(data.sumary4);
|
$("#eva_evaluation_behavior_process2_sumary2_" + i).text(data.sumary4);
|
||||||
|
} else if (role_code === "5") {
|
||||||
|
$("#eva_evaluation_behavior_process2_score_" + i).text(data.score4);
|
||||||
|
$("#eva_evaluation_behavior_process2_sumary_" + i).text(data.sumary4);
|
||||||
|
if (data.score5 === "0.000") {
|
||||||
|
$("#eva_evaluation_behavior_process2_score2_" + i).val(data.score4);
|
||||||
|
} else {
|
||||||
|
$("#eva_evaluation_behavior_process2_score2_" + i).val(data.score5);
|
||||||
|
}
|
||||||
|
$("#eva_evaluation_behavior_process2_sumary2_" + i).text(data.sumary5);
|
||||||
}
|
}
|
||||||
|
|
||||||
//$("#eva_evaluation_behavior_process2_target_score1_" + i).val(data.target_score1);
|
//$("#eva_evaluation_behavior_process2_target_score1_" + i).val(data.target_score1);
|
||||||
|
|||||||
Reference in New Issue
Block a user