{% extends 'att/report/base.html' %} {% load i18n %} {% block opts_modify %} $.extend(opts, { cols: [[ {field:'emp_code', width:120, title: "{% trans 'report_column_empCode' %}", sort:true} ,{field:'first_name', title: "{% trans 'report_column_firstName' %}"} ,{field:'last_name', title: "{% trans 'report_column_lastName' %}"} ,{field:'nick_name', title: "{% trans 'report_column_nickName' %}"} ,{field:'gender', title: "{% trans 'report_column_gender' %}"} ,{field:'dept_code', title: "{% trans 'report_column_departmentCode' %}", sort:true} ,{field:'dept_name', width:140, title: "{% trans 'report_column_departmentName' %}", sort:true} ,{field:'position_code', title: "{% trans 'report_column_positionCode' %}"} ,{field:'position_name', title: "{% trans 'report_column_positionName' %}"} ,{field:'att_date', title: "{% trans 'report_column_attendanceDate' %}", width:100, sort:true} ,{field:'weekday', width:80, title: "{% trans 'report_column_attendanceWeekday' %}", width:100} ,{field:'att_exception', title: "{% trans 'report_column_exception' %}"} ,{field:'timetable', title: "{% trans 'report_column_timeIntervalName' %}"} ,{field:'duration', title: "{% trans 'report_column_timetableDuration' %}"} ,{field:'check_in', title: "{% trans 'report_column_checkInTime' %}"} ,{field:'check_out', title: "{% trans 'report_column_checkOutTime' %}"} ,{field:'duty_duration', title: "{% trans 'report_column_attendanceDuration' %}"} ,{field:'work_day', title: "{% trans 'report_column_workDay' %}"} {# ,{field:'device_in', title: "{% trans 'report_column_deviceTn' %}", hide: true}#} {# ,{field:'device_out', title: "{% trans 'report_column_deviceOut' %}", hide: true}#} {# ,{field:'work_in', title: "{% trans 'report_column_workCodeIn' %}", hide: true}#} {# ,{field:'work_out', title: "{% trans 'report_column_workCodeOut' %}", hide: true}#} ,{field:'clock_in', title: "{% trans 'report_column_clockInTime' %}", templet: function(obj){ if(obj.late && obj.late.length > 0 && obj.late != '0.0' && obj.late != obj.break_late){ return ''+ obj.clock_in +'' }else{ return obj.clock_in } }} ,{field:'clock_out', title: "{% trans 'report_column_clockOutTime' %}", templet: function(obj){ if(obj.early_leave && obj.early_leave.length > 0 && obj.early_leave != '0.0' && obj.early_leave != obj.break_early){ return ''+ obj.clock_out +'' }else{ return obj.clock_out } }} {#,{field:'total_time', title: "{% trans 'report_column_totalTimeDuration' %}", width:80}#} ,{field:'duty_wt', title: "{% trans 'report_column_dutyWorkedTime' %}", width:80} ,{field:'actual_wt', title: "{% trans 'report_column_actualWorkedTime' %}", width:80} ,{field:'unscheduled', title: "{% trans 'report_column_unscheduled' %}", width:80} ,{field:'remaining', title: "{% trans 'report_column_remaining' %}", width:80} {# ,{field:'break_out', title: "{% trans 'report_column_breakOutTime' %}"}#} {# ,{field:'break_in', title: "{% trans 'report_column_breakInTime' %}", templet: function(obj){#} {# if((obj.break_late && parseInt(obj.break_late) > 0) || (obj.break_early && parseInt(obj.break_early) > 0)){#} {# return ''+ obj.break_in +''#} {# }else if(obj.break_in){#} {# return obj.break_in#} {# }else{#} {# return ''#} {# }#} {##} {# }}#} {# ,{field:'actual_break', title: "{% trans 'report_column_actualBreakTimeDuration' %}"}#} {# ,{field:'taken_break', title: "{% trans 'report_column_breakTime' %}"}#} ,{field:'late', title: "{% trans 'report_column_lateDuration' %}"} ,{field:'break_late', title: "{% trans 'report_column_breakLateDuration' %}"} ,{field:'early_leave', title: "{% trans 'report_column_earlyLeaveDuration' %}", width:100} ,{field:'break_early', title: "{% trans 'report_column_breakEarlyLeaveDuration' %}"} ,{field:'absent', title: "{% trans 'report_column_absentDuration' %}"} ,{field:'break_absent', title: "{% trans 'report_column_breakTimeAbsentDuration' %}"} ,{field:'leave', title: "{% trans 'report_column_leaveDuration' %}"} ,{field:'total_worked', title: "{% trans 'report_column_totalWorkedDuration' %}", width:100} {# ,{field:'training_time', title: "{% trans 'report_column_trainingDuration' %}", hide: true}#} {# ,{field:'short_time', title: "{% trans 'report_column_shortDuration' %}"}#} ,{field:'normal_wt', title: "{% trans 'report_column_normalWorkTime' %}"} ,{field:'break_duration', title: "{% trans 'report_column_breakTimeDuration' %}"} ,{field:'normal_ot', title: "{% trans 'report_column_normalOvertime' %}"} ,{field:'weekend_ot', title: "{% trans 'report_column_weekendOvertime' %}"} ,{field:'holiday_ot', title: "{% trans 'report_column_holidayOvertime' %}"} ,{field:'ot_lv1', title: "{% trans 'report_column_overtimeLevel1' %}"} ,{field:'ot_lv2', title: "{% trans 'report_column_overtimeLevel2' %}"} ,{field:'ot_lv3', title: "{% trans 'report_column_overtimeLevel3' %}"} ,{field:'attendance_status', title: "{% trans 'report_column_attendance_status' %}"} {# ,{field:'approval_ot', title: "{% trans 'report_column_approvalOvertime' %}", hide: true}#} {# ,{field:'timetable_days', title: "{% trans 'report_column_timetableDays' %}", hide: true}#} ]] ,method: "get" ,url: "/att/api/totalTimeCardReport/" }); {% endblock %}