ปรับปรุงวันที่่ลาใน report
This commit is contained in:
@@ -355,7 +355,7 @@ namespace TodoAPI2.Controllers
|
||||
|
||||
if (i.main_dept != null) i.main_dept = i.main_dept.Replace("กอง","");
|
||||
|
||||
i.leave_period = MyHelper.GetDateStringForReport(p.start_date) + " ถึง " + MyHelper.GetDateStringForReport(p.end_date);
|
||||
i.leave_period = MyHelper.GetDateStringForReport(p.leave_start_date) + " ถึง " + MyHelper.GetDateStringForReport(p.leave_end_date);
|
||||
i.selected_round = p.selected_round;
|
||||
|
||||
var context = _process.GetDataContext();
|
||||
@@ -402,9 +402,9 @@ namespace TodoAPI2.Controllers
|
||||
i.w1 = p.create_evaluation_score1;
|
||||
i.w2 = p.create_evaluation_score2;
|
||||
|
||||
if(p.start_date.HasValue && p.end_date.HasValue)
|
||||
if(p.leave_start_date.HasValue && p.leave_end_date.HasValue)
|
||||
{
|
||||
var q = emp.GetLeaveOfEmployee(p.employee_id.Value, p.start_date, p.end_date);
|
||||
var q = emp.GetLeaveOfEmployee(p.employee_id.Value, p.leave_start_date, p.leave_end_date);
|
||||
i.sum_day_sick_leave = q.sum_day_sick_leave;
|
||||
i.count_sick_leave = q.count_sick_leave;
|
||||
i.sum_day_personal_leave = q.sum_day_personal_leave;
|
||||
|
||||
Reference in New Issue
Block a user