From 288a76cd44270e10d6079ff16b9e832b742c0ffc Mon Sep 17 00:00:00 2001 From: Nakorn Rientrakrunchai Date: Sun, 7 Mar 2021 15:18:58 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=E0=B8=9B?= =?UTF-8?q?=E0=B8=A3=E0=B8=B8=E0=B8=87=E0=B8=97=E0=B8=A8=E0=B8=99=E0=B8=B4?= =?UTF-8?q?=E0=B8=A2=E0=B8=A1=203=20=E0=B8=95=E0=B8=B3=E0=B9=81=E0=B8=AB?= =?UTF-8?q?=E0=B8=99=E0=B9=88=E0=B8=87=20=E0=B9=80=E0=B8=9E=E0=B8=B4?= =?UTF-8?q?=E0=B9=88=E0=B8=A1=E0=B9=80=E0=B8=95=E0=B8=B4=E0=B8=A1=20?= =?UTF-8?q?=E0=B9=81=E0=B8=A5=E0=B8=B0=E0=B9=80=E0=B8=9B=E0=B8=B4=E0=B8=94?= =?UTF-8?q?=E0=B9=83=E0=B8=AB=E0=B9=89=E0=B8=9E=E0=B8=B4=E0=B8=A1=E0=B8=9E?= =?UTF-8?q?=E0=B9=8C=E0=B9=81=E0=B8=9A=E0=B8=9A=E0=B8=9B=E0=B8=A3=E0=B8=B0?= =?UTF-8?q?=E0=B9=80=E0=B8=A1=E0=B8=B4=E0=B8=99=20=E0=B8=81=E0=B8=B1?= =?UTF-8?q?=E0=B8=9A=20=E0=B9=81=E0=B8=9A=E0=B8=9A=E0=B8=82=E0=B9=89?= =?UTF-8?q?=E0=B8=AD=E0=B8=95=E0=B8=81=E0=B8=A5=E0=B8=87=20=E0=B8=95?= =?UTF-8?q?=E0=B9=88=E0=B8=AD=E0=B9=80=E0=B8=99=E0=B8=B7=E0=B9=88=E0=B8=AD?= =?UTF-8?q?=E0=B8=87=E0=B8=81=E0=B8=B1=E0=B8=99=E0=B9=84=E0=B8=94=E0=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ..._create_evaluation_detail_process_d.cshtml | 16 ++--- ...create_evaluation_detail_process_d2.cshtml | 4 +- .../eva_create_evaluation_d.js | 63 +++++++++---------- .../eva_create_evaluation_detail_summary.js | 2 +- .../eva_create_evaluation_detail_process_d.js | 1 + 5 files changed, 43 insertions(+), 43 deletions(-) diff --git a/Views/eva_create_evaluation_detail_processView/eva_create_evaluation_detail_process_d.cshtml b/Views/eva_create_evaluation_detail_processView/eva_create_evaluation_detail_process_d.cshtml index e529949..6739b73 100644 --- a/Views/eva_create_evaluation_detail_processView/eva_create_evaluation_detail_process_d.cshtml +++ b/Views/eva_create_evaluation_detail_processView/eva_create_evaluation_detail_process_d.cshtml @@ -171,14 +171,14 @@ - + - + - - + + @@ -366,13 +366,15 @@
+ + + + - - - +
diff --git a/Views/eva_create_evaluation_detail_processView/eva_create_evaluation_detail_process_d2.cshtml b/Views/eva_create_evaluation_detail_processView/eva_create_evaluation_detail_process_d2.cshtml index 952aa7f..eaddb41 100644 --- a/Views/eva_create_evaluation_detail_processView/eva_create_evaluation_detail_process_d2.cshtml +++ b/Views/eva_create_evaluation_detail_processView/eva_create_evaluation_detail_process_d2.cshtml @@ -628,8 +628,8 @@ eva_idp_plan_InitiateDataTable(id); eva_idp_plan_InitialForm(); - setTimeout(Oneva_evaluation_achievement_process2_scoreChange, 4000); - setTimeout(Oneva_evaluation_behavior_process2_scoreChange, 4000); + setTimeout(Oneva_evaluation_achievement_process2_scoreChange, 3000); + setTimeout(Oneva_evaluation_behavior_process2_scoreChange, 3000); } else { eva_create_evaluation_detail_process_SetCreateForm(); diff --git a/wwwroot/js/eva_create_evaluation/eva_create_evaluation_d.js b/wwwroot/js/eva_create_evaluation/eva_create_evaluation_d.js index b7be068..07005e6 100644 --- a/wwwroot/js/eva_create_evaluation/eva_create_evaluation_d.js +++ b/wwwroot/js/eva_create_evaluation/eva_create_evaluation_d.js @@ -4,27 +4,27 @@ var eva_create_evaluation_API = "/api/eva_create_evaluation/"; //================= Form Data Customizaiton ========================================= function eva_create_evaluation_FeedDataToForm(data) { -$("#eva_create_evaluation_id").val(data.id); -DropDownClearFormAndFeedWithData($("#eva_create_evaluation_performance_plan_id"), data, "id", "display_text", "item_performance_plan_id", data.performance_plan_id); -DropDownClearFormAndFeedWithData($("#eva_create_evaluation_employee_id"), data, "id", "fullname", "item_employee_id", data.employee_id); -$("#eva_create_evaluation_score1").val(data.score1); -$("#eva_create_evaluation_score2").val(data.score2); -DropDownClearFormAndFeedWithData($("#eva_create_evaluation_evaluation_group_id"), data, "id", "thegroup", "item_evaluation_group_id", data.evaluation_group_id); -DropDownClearFormAndFeedWithData($("#eva_create_evaluation_supervisor1_id"), data, "id", "fullname", "item_supervisor1_id", data.supervisor1_id); -DropDownClearFormAndFeedWithData($("#eva_create_evaluation_supervisor2_id"), data, "id", "fullname", "item_supervisor2_id", data.supervisor2_id); + $("#eva_create_evaluation_id").val(data.id); + DropDownClearFormAndFeedWithData($("#eva_create_evaluation_performance_plan_id"), data, "id", "display_text", "item_performance_plan_id", data.performance_plan_id); + DropDownClearFormAndFeedWithData($("#eva_create_evaluation_employee_id"), data, "id", "fullname", "item_employee_id", data.employee_id); + $("#eva_create_evaluation_score1").val(data.score1); + $("#eva_create_evaluation_score2").val(data.score2); + DropDownClearFormAndFeedWithData($("#eva_create_evaluation_evaluation_group_id"), data, "id", "thegroup", "item_evaluation_group_id", data.evaluation_group_id); + DropDownClearFormAndFeedWithData($("#eva_create_evaluation_supervisor1_id"), data, "id", "fullname", "item_supervisor1_id", data.supervisor1_id); + DropDownClearFormAndFeedWithData($("#eva_create_evaluation_supervisor2_id"), data, "id", "fullname", "item_supervisor2_id", data.supervisor2_id); } function eva_create_evaluation_GetFromForm() { var eva_create_evaluationObject = new Object(); -eva_create_evaluationObject.id = $("#eva_create_evaluation_id").val(); -eva_create_evaluationObject.performance_plan_id = $("#eva_create_evaluation_performance_plan_id").val(); -eva_create_evaluationObject.employee_id = $("#eva_create_evaluation_employee_id").val(); -eva_create_evaluationObject.score1 = $("#eva_create_evaluation_score1").val(); -eva_create_evaluationObject.score2 = $("#eva_create_evaluation_score2").val(); -eva_create_evaluationObject.evaluation_group_id = $("#eva_create_evaluation_evaluation_group_id").val(); -eva_create_evaluationObject.supervisor1_id = $("#eva_create_evaluation_supervisor1_id").val(); -eva_create_evaluationObject.supervisor2_id = $("#eva_create_evaluation_supervisor2_id").val(); + eva_create_evaluationObject.id = $("#eva_create_evaluation_id").val(); + eva_create_evaluationObject.performance_plan_id = $("#eva_create_evaluation_performance_plan_id").val(); + eva_create_evaluationObject.employee_id = $("#eva_create_evaluation_employee_id").val(); + eva_create_evaluationObject.score1 = $("#eva_create_evaluation_score1").val(); + eva_create_evaluationObject.score2 = $("#eva_create_evaluation_score2").val(); + eva_create_evaluationObject.evaluation_group_id = $("#eva_create_evaluation_evaluation_group_id").val(); + eva_create_evaluationObject.supervisor1_id = $("#eva_create_evaluation_supervisor1_id").val(); + eva_create_evaluationObject.supervisor2_id = $("#eva_create_evaluation_supervisor2_id").val(); return eva_create_evaluationObject; } @@ -32,9 +32,9 @@ eva_create_evaluationObject.supervisor2_id = $("#eva_create_evaluation_superviso function eva_create_evaluation_InitialForm() { var successFunc = function (result) { eva_create_evaluation_FeedDataToForm(result); - endLoad(); + endLoad(); }; - startLoad(); + startLoad(); AjaxGetRequest(apisite + eva_create_evaluation_API + "GetBlankItem", successFunc, AlertDanger); } @@ -44,15 +44,15 @@ function eva_create_evaluation_SetEditForm(a) { var successFunc = function (result) { eva_create_evaluation_editMode = "UPDATE"; eva_create_evaluation_FeedDataToForm(result); - endLoad(); + endLoad(); }; - startLoad(); + startLoad(); AjaxGetRequest(apisite + eva_create_evaluation_API + a, successFunc, AlertDanger); } function eva_create_evaluation_SetCreateForm() { eva_create_evaluation_editMode = "CREATE"; - eva_create_evaluation_InitialForm(); + eva_create_evaluation_InitialForm(); } //================= Update and Delete ========================================= @@ -62,8 +62,7 @@ var eva_create_evaluation_customValidation = function (group) { }; function eva_create_evaluation_PutUpdate() { - if (!ValidateForm('eva_create_evaluation', eva_create_evaluation_customValidation)) - { + if (!ValidateForm('eva_create_evaluation', eva_create_evaluation_customValidation)) { return; } var data = eva_create_evaluation_GetFromForm(); @@ -72,18 +71,18 @@ function eva_create_evaluation_PutUpdate() { if (eva_create_evaluation_editMode === "UPDATE") { var successFunc1 = function (result) { AlertSuccess(result.message); - endLoad(); + endLoad(); }; - startLoad(); + startLoad(); AjaxPutRequest(apisite + eva_create_evaluation_API + data.id, data, successFunc1, AlertDanger); } // Create mode else { var successFunc2 = function (result) { AlertSuccess(result.message); - endLoad(); + endLoad(); }; - startLoad(); + startLoad(); AjaxPostRequest(apisite + eva_create_evaluation_API, data, successFunc2, AlertDanger); } } @@ -93,9 +92,9 @@ function eva_create_evaluation_GoDelete(a) { var successFunc = function (result) { AlertSuccess(result.message); eva_create_evaluation_RefreshTable(); - endLoad(); + endLoad(); }; - startLoad(); + startLoad(); AjaxDeleteRequest(apisite + eva_create_evaluation_API + a, null, successFunc, AlertDanger); } } @@ -106,15 +105,13 @@ function eva_create_evaluation_GoDelete(a) { //================= Control Function ========================================= -function Oneva_create_evaluation_score1Change() -{ +function Oneva_create_evaluation_score1Change() { var s1 = $("#eva_create_evaluation_score1").val(); var s2 = $("#eva_create_evaluation_score2").val(); $("#eva_create_evaluation_score2").val(100 - s1); } -function Oneva_create_evaluation_score2Change() -{ +function Oneva_create_evaluation_score2Change() { var s1 = $("#eva_create_evaluation_score1").val(); var s2 = $("#eva_create_evaluation_score2").val(); $("#eva_create_evaluation_score1").val(100 - s2); diff --git a/wwwroot/js/eva_create_evaluation_detail/eva_create_evaluation_detail_summary.js b/wwwroot/js/eva_create_evaluation_detail/eva_create_evaluation_detail_summary.js index 7f90878..058e603 100644 --- a/wwwroot/js/eva_create_evaluation_detail/eva_create_evaluation_detail_summary.js +++ b/wwwroot/js/eva_create_evaluation_detail/eva_create_evaluation_detail_summary.js @@ -232,7 +232,7 @@ function eva_create_evaluation_detail_GetSelect(f) { }); //alert(eva_create_evaluation_detail_selectitem); - rep_eva_x_DoSearch("pdf", eva_create_evaluation_detail_selectitem, 0); // 0 คือ ไม่ต้องต่อท้ายแบบข้อตกลง ออกมา + rep_eva_x_DoSearch("pdf", eva_create_evaluation_detail_selectitem, 1); // 0 คือ ไม่ต้องต่อท้ายแบบข้อตกลง ออกมา, 1 คือพิมพ์ต่อท้าย } diff --git a/wwwroot/js/eva_create_evaluation_detail_process/eva_create_evaluation_detail_process_d.js b/wwwroot/js/eva_create_evaluation_detail_process/eva_create_evaluation_detail_process_d.js index af982c8..bd18744 100644 --- a/wwwroot/js/eva_create_evaluation_detail_process/eva_create_evaluation_detail_process_d.js +++ b/wwwroot/js/eva_create_evaluation_detail_process/eva_create_evaluation_detail_process_d.js @@ -168,6 +168,7 @@ function eva_create_evaluation_detail_process_GoDelete(a) { //================= Control Function ========================================= function setPageByRoleAndStatus(role_code, status_self, status_chief, status_supervisor) { + return; $(".mycontrol01").hide(); $(".mycontrol02").attr("disabled", true); $("#eva_create_evaluation_detail_review01_supervisor1_remark").attr("disabled", true);
ลำดับลำดับ