[ { "title" : MWF.xApplication.Attendance.LP.name, "headStyles" : "normalThNode", "contentStyles" : "normalTdNode", "item" : "function( d ){ return (d.empName || '').split('@')[0] }", "name" : "empName", "width" : "6%" }, { "title" : MWF.xApplication.Attendance.LP.date, "headStyles" : "normalThNode", "contentStyles" : "normalTdNode", "defaultSort" : "desc", "item" : "recordDateString", "name" : "recordDateString", "width" : "6%" }, { "title" : MWF.xApplication.Attendance.LP.description, "headStyles" : "normalThNode", "contentStyles" : "normalTdNode", "item" : "function( data ){ if(data.isHoliday){ return MWF.xApplication.Attendance.LP.holiday1 }else if(data.isWeekend){return MWF.xApplication.Attendance.LP.weekend }else if(data.isWorkday){return MWF.xApplication.Attendance.LP.workDaysoff }else{return MWF.xApplication.Attendance.LP.workDay } }", "name" : "description", "width" : "6%" }, { "title" : MWF.xApplication.Attendance.LP.onDutyTime, "headStyles" : "normalThNode", "contentStyles" : "normalTdNode", "item" : "onDutyTime", "name" : "onDutyTime", "width" : "6%" }, { "title" : MWF.xApplication.Attendance.LP.middayRestStartTime, "headStyles" : "normalThNode", "contentStyles" : "normalTdNode", "item" : "morningOffDutyTime", "name" : "morningOffDutyTime", "width" : "6%" }, { "title" : MWF.xApplication.Attendance.LP.middayRestEndTime, "headStyles" : "normalThNode", "contentStyles" : "normalTdNode", "item" : "afternoonOnDutyTime", "name" : "afternoonOnDutyTime", "width" : "9%" }, { "title" : MWF.xApplication.Attendance.LP.offDutyTime, "headStyles" : "normalThNode", "contentStyles" : "normalTdNode", "item" : "offDutyTime", "name" : "offDutyTime", "width" : "6%" }, { "title": MWF.xApplication.Attendance.LP.attendanceStatus, "headStyles": "normalThNode", "contentStyles": "normalTdNode", "item": "function( d ){ var status=''; if(d.isGetSelfHolidays){ if(d.leaveType && d.leaveType!=''){status =d.leaveType }else{status = MWF.xApplication.Attendance.LP.levelAsked } }else if(d.isLate){ status = MWF.xApplication.Attendance.LP.late }else if(d.isLeaveEarlier){ status = MWF.xApplication.Attendance.LP.leaveEarly }else if(d.isAbsent){ status = MWF.xApplication.Attendance.LP.noSign }else if(d.isAbnormalDuty){ status = MWF.xApplication.Attendance.LP.abNormalDuty }else if(d.isLackOfTime){ status = MWF.xApplication.Attendance.LP.lackOfTime }else{ status = MWF.xApplication.Attendance.LP.normal }; return status; }", "name" : "status", "width" : "6%" } , { "title": MWF.xApplication.Attendance.LP.isCheckInOutOfRange, "headStyles": "normalThNode", "contentStyles": "normalTdNode", "item": "function( d ){ if(d.isExternal){ return MWF.xApplication.Attendance.LP.yes }else{ return MWF.xApplication.Attendance.LP.no }}", "name" : "isOutRange", "width" : "7%" }, { "title" : MWF.xApplication.Attendance.LP.recordAddress, "headStyles" : "normalThNode", "contentStyles" : "normalTdNode", "item" : "function( data ){ if(data.workAddress && data.workAddress!=\"\"){ return data.workAddress }else{return data.recordAddress }}", "name" : "address", "width" : "6%" }, { "title" : MWF.xApplication.Attendance.LP.optMachineType, "headStyles" : "normalThNode", "contentStyles" : "normalTdNode", "item" : "optMachineType", "name" : "optMachineType", "width" : "6%" }, { "title": MWF.xApplication.Attendance.LP.appealStatus, "headStyles": "normalThNode", "contentStyles": "normalTdNode", "item": "function( d ){ if(d.appealStatus==1){ return MWF.xApplication.Attendance.LP.appealStatusSelectText[0] }else if(d.appealStatus==-1){ return MWF.xApplication.Attendance.LP.appealStatusSelectText[1] }else if(d.appealStatus==9){ return MWF.xApplication.Attendance.LP.appealStatusSelectText[2] }else{ return '' } }", "name" : "appealStatus", "width" : "6%" }, { "title": MWF.xApplication.Attendance.LP.appealAuditor, "headStyles": "normalThNode", "contentStyles": "normalTdNode", "item": "function( d ){ return d.appealProcessor ? d.appealProcessor.split('@')[0] : '' }", "name" : "appealAuditor", "width" : "6%" }, { "title" :MWF.xApplication.Attendance.LP.appeal, "headStyles" : "normalThNode", "contentStyles" : "normalTdNode", "item" : "actions", "name" : "actions", "width" : "9%", "sub" : [{ "title" : MWF.xApplication.Attendance.LP.createAppeal, "action" : "appeal", "fonticon": "o2icon-icon_tishi", // "icon": "appeal.png", "condition" : "function( d ){ if(!d.APPEALABLE)return false; if( d.appealStatus || d.isGetSelfHolidays ){ return false }else if( d.isAbsent || d.isLate || d.isLeaveEarlier || d.isAbnormalDuty || d.isLackOfTime ){ return true }else{ return false } }", "styles" : "documentActionNode", "overStyles" : "documentActionNode_over", "downStyles" : "documentActionNode_down" },{ "title" : MWF.xApplication.Attendance.LP.viewAppealDetail, "action" : "seeAppeal", "fonticon": "o2icon-icon_shitu", // "icon": "open.png", "condition" : "function( d ){ if( d.appealStatus ){ return true }else{ return false } }", "styles" : "documentActionNode", "overStyles" : "documentActionNode_over", "downStyles" : "documentActionNode_down" }] } ]