Last commit

This commit is contained in:
nakorn
2022-08-27 11:22:12 +07:00
parent 804bb7d9f2
commit 8f2e0af11b
10 changed files with 109 additions and 85 deletions

View File

@@ -52,7 +52,7 @@ function eva_evaluation_behavior_process2_FeedDataToForm(data, i, blankItem, rol
$("#eva_evaluation_behavior_process2_score2_" + i).val(data.score3);
}
$("#eva_evaluation_behavior_process2_sumary2_" + i).text(data.sumary3);
} else if (role_code === "4") {
} else if (role_code === "4" || role_code === "5") {
$("#eva_evaluation_behavior_process2_score_" + i).text(data.score3);
$("#eva_evaluation_behavior_process2_sumary_" + i).text(data.sumary3);
if (data.score4 === "0.000") {
@@ -61,17 +61,19 @@ function eva_evaluation_behavior_process2_FeedDataToForm(data, i, blankItem, rol
$("#eva_evaluation_behavior_process2_score2_" + i).val(data.score4);
}
$("#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);
}
//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_score2_" + i).val(data.target_score2);
//$("#eva_evaluation_behavior_process2_target_score3_" + i).val(data.target_score3);