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 adda5bd..4df49ff 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
@@ -29,6 +29,7 @@
@@ -139,16 +140,16 @@
ครั้ง |
- | 0 |
- 0 |
- 0 |
- 0 |
- 0 |
- 0 |
- 0 |
- 0 |
- 0 |
- 0 |
+ | @*ลาป่วย วัน*@
+ | @*ลาป่วย ครั้ง*@
+ | @*ลากิจ วัน*@
+ | @*ลากิจ ครั้ง*@
+ | @*ลาพักผ่อน*@
+ | @*ขอกลับก่อนเวลา*@
+ | @*สาย*@
+ | @*ขาด*@
+ | @*รวม (ป่วย/กิจ) วัน*@
+ | @*รวม (ป่วย/กิจ) ครั้ง*@
@@ -400,6 +401,55 @@
SetupValidationRemark("eva_create_evaluation_detail_process");
SetupValidationRemark("eva_create_evaluation_detail_review01");
});
+
+ function searchVacation_GetFromForm() {
+ var searchVacationObject = new Object();
+ searchVacationObject.start_date = formatDateForGetParameter(getDate($("#date_from").val()));
+ searchVacationObject.end_date = formatDateForGetParameter(getDate($("#date_to").val()));
+ searchVacationObject.employee_id = $("#eva_create_evaluation_detail_process_employee_id").val();
+ console.log(searchVacationObject);
+ return searchVacationObject;
+ }
+
+ function searchVacation() {
+
+ if($("#date_from").val() === "") {
+ alert("กรุณาระบุ วันเริ่มต้น");
+ return;
+ }
+ if($("#date_to").val() === "") {
+ alert("กรุณาระบุ วันสิ้นสุด");
+ return;
+ }
+
+ var employee_API = "/api/external_employee/";
+
+ var successFunc = function (result) {
+ searchVacation_FeedDataToForm(result);
+ endLoad();
+ };
+
+ var p = $.param(searchVacation_GetFromForm());
+
+ startLoad();
+ AjaxGetRequest(apisite + employee_API + "GetLeaveOfEmployee?"+p, successFunc, AlertDanger);
+ }
+
+ function searchVacation_FeedDataToForm(data) {
+
+ $("#sum_day_sick_leave").text(data.sum_day_sick_leave);
+ $("#count_sick_leave").text(data.count_sick_leave);
+ $("#sum_day_personal_leave").text(data.sum_day_personal_leave);
+ $("#count_personal_leave").text(data.count_personal_leave);
+ $("#sum_day_vacation_leave").text(data.sum_day_vacation_leave);
+ $("#count_stop_working").text(data.count_stop_working);
+ $("#count_late_tad_processing_time_results").text(data.count_late_tad_processing_time_results);
+ $("#count_absence_tad_processing_time_results").text(data.count_absence_tad_processing_time_results);
+ $("#sum_day_sick_personal_leave").text(data.sum_day_sick_personal_leave);
+ $("#count_sick_personal_leave").text(data.count_sick_personal_leave);
+
+ }
+
}
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 6ecd293..e0c1211 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
@@ -79,6 +79,7 @@
@@ -192,16 +193,16 @@
ครั้ง |
- | 0 |
- 0 |
- 0 |
- 0 |
- 0 |
- 0 |
- 0 |
- 0 |
- 0 |
- 0 |
+ | @*ลาป่วย วัน*@
+ | @*ลาป่วย ครั้ง*@
+ | @*ลากิจ วัน*@
+ | @*ลากิจ ครั้ง*@
+ | @*ลาพักผ่อน*@
+ | @*ขอกลับก่อนเวลา*@
+ | @*สาย*@
+ | @*ขาด*@
+ | @*รวม (ป่วย/กิจ) วัน*@
+ | @*รวม (ป่วย/กิจ) ครั้ง*@
@@ -675,6 +676,53 @@
}
}
+ function searchVacation_GetFromForm() {
+ var searchVacationObject = new Object();
+ searchVacationObject.start_date = formatDateForGetParameter(getDate($("#date_from").val()));
+ searchVacationObject.end_date = formatDateForGetParameter(getDate($("#date_to").val()));
+ searchVacationObject.employee_id = $("#eva_create_evaluation_detail_process_employee_id").val();
+ console.log(searchVacationObject);
+ return searchVacationObject;
+ }
+
+ function searchVacation() {
+
+ if($("#date_from").val() === "") {
+ alert("กรุณาระบุ วันเริ่มต้น");
+ return;
+ }
+ if($("#date_to").val() === "") {
+ alert("กรุณาระบุ วันสิ้นสุด");
+ return;
+ }
+
+ var employee_API = "/api/external_employee/";
+
+ var successFunc = function (result) {
+ searchVacation_FeedDataToForm(result);
+ endLoad();
+ };
+
+ var p = $.param(searchVacation_GetFromForm());
+
+ startLoad();
+ AjaxGetRequest(apisite + employee_API + "GetLeaveOfEmployee?"+p, successFunc, AlertDanger);
+ }
+
+ function searchVacation_FeedDataToForm(data) {
+
+ $("#sum_day_sick_leave").text(data.sum_day_sick_leave);
+ $("#count_sick_leave").text(data.count_sick_leave);
+ $("#sum_day_personal_leave").text(data.sum_day_personal_leave);
+ $("#count_personal_leave").text(data.count_personal_leave);
+ $("#sum_day_vacation_leave").text(data.sum_day_vacation_leave);
+ $("#count_stop_working").text(data.count_stop_working);
+ $("#count_late_tad_processing_time_results").text(data.count_late_tad_processing_time_results);
+ $("#count_absence_tad_processing_time_results").text(data.count_absence_tad_processing_time_results);
+ $("#sum_day_sick_personal_leave").text(data.sum_day_sick_personal_leave);
+ $("#count_sick_personal_leave").text(data.count_sick_personal_leave);
+
+ }
}
diff --git a/Views/rep_leave_totalView/rep_leave_total_report.cshtml b/Views/rep_leave_totalView/rep_leave_total_report.cshtml
index fae6377..766156e 100644
--- a/Views/rep_leave_totalView/rep_leave_total_report.cshtml
+++ b/Views/rep_leave_totalView/rep_leave_total_report.cshtml
@@ -28,12 +28,12 @@
-
+
-
+