123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- [
- {
- "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" : "8%"
- },
- {
- "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" : "8%"
- },
- {
- "title" : MWF.xApplication.Attendance.LP.onDutyTime,
- "headStyles" : "normalThNode",
- "contentStyles" : "normalTdNode",
- "item" : "onDutyTime",
- "name" : "onDutyTime",
- "width" : "8%"
- },
- {
- "title" : MWF.xApplication.Attendance.LP.middayRestStartTime,
- "headStyles" : "normalThNode",
- "contentStyles" : "normalTdNode",
- "item" : "morningOffDutyTime",
- "name" : "morningOffDutyTime",
- "width" : "8%"
- },
- {
- "title" : MWF.xApplication.Attendance.LP.middayRestEndTime,
- "headStyles" : "normalThNode",
- "contentStyles" : "normalTdNode",
- "item" : "afternoonOnDutyTime",
- "name" : "afternoonOnDutyTime",
- "width" : "8%"
- },
- {
- "title" : MWF.xApplication.Attendance.LP.offDutyTime,
- "headStyles" : "normalThNode",
- "contentStyles" : "normalTdNode",
- "item" : "offDutyTime",
- "name" : "offDutyTime",
- "width" : "8%"
- },
- {
- "title" : MWF.xApplication.Attendance.LP.workTime,
- "headStyles" : "normalThNode",
- "contentStyles" : "normalTdNode",
- "item" : "workTimeDuration",
- "name" : "workTimeDuration",
- "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" : "7%"
- },
- {
- "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" : "appealStatus",
- "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" : "11%"
- },
- {
- "title" : MWF.xApplication.Attendance.LP.optMachineType,
- "headStyles" : "normalThNode",
- "contentStyles" : "normalTdNode",
- "item" : "optMachineType",
- "name" : "optMachineType",
- "width" : "11%"
- },
- {
- "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" : "11%"
- }
- // {
- // "access" : "admin",
- // "title" : "操作",
- // "headStyles" : "normalThNode",
- // "contentStyles" : "normalTdNode",
- // "item" : "actions",
- // "name" : "actions",
- // "width" : "10%",
- // "sub" : [{
- // "title" : "删除文件",
- // "action" : "remove",
- // "styles" : "actionDeleteNode",
- // "overStyles" : "actionDeleteNode_over",
- // "downStyles" : "actionDeleteNode_down"
- // }]
- // }
- ]
|