[ { "title": MWF.xApplication.Attendance.LP.name, "headStyles": "normalThNode", "contentStyles": "normalTdNode", "item": "function( d ){ return (d.o2User||'').split('@')[0] }", "name": "o2User", "width": "20%" }, { "title": MWF.xApplication.Attendance.LP.date, "headStyles": "normalThNode", "contentStyles": "normalTdNode", "item": "function(d){ var date = new Date(d.userCheckTime); return date.getFullYear()+'-'+(date.getMonth()+1)+'-'+date.getDate();}", "name": "userCheckTime", "width": "20%" }, { "title": MWF.xApplication.Attendance.LP.signinType, "headStyles": "normalThNode", "contentStyles": "normalTdNode", "item": "function( data ){ if(data.checkType == 'OffDuty'){return MWF.xApplication.Attendance.LP.signinTypeSelectText[2];}else{return MWF.xApplication.Attendance.LP.signinTypeSelectText[1];} }", "name": "checkType", "width": "20%" }, { "title": MWF.xApplication.Attendance.LP.signinResult, "headStyles": "normalThNode", "contentStyles": "normalTdNode", "item": "function( data ){ if(data.timeResult == 'Normal'){return MWF.xApplication.Attendance.LP.signinResultSelectText[1];}else if(data.timeResult == 'Early'){return MWF.xApplication.Attendance.LP.signinResultSelectText[2];}else if(data.timeResult == 'Late'){return MWF.xApplication.Attendance.LP.signinResultSelectText[3];}else if(data.timeResult == 'SeriousLate'){return MWF.xApplication.Attendance.LP.signinResultSelectText[4];}else if(data.timeResult == 'Absenteeism'){return MWF.xApplication.Attendance.LP.signinResultSelectText[5];}else {return MWF.xApplication.Attendance.LP.signinResultSelectText[6];} }", "name": "timeResult", "width": "20%" }, { "title": MWF.xApplication.Attendance.LP.signTime, "headStyles": "normalThNode", "contentStyles": "normalTdNode", "item": "function(d){ var date = new Date(d.userCheckTime); return date.getHours()+':'+date.getMinutes()+':'+date.getSeconds();}", "name": "userCheckTime", "width": "20%" } ]