123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- [
- {
- "title": MWF.xApplication.Attendance.LP.name,
- "headStyles" : "normalThNode",
- "contentStyles" : "normalTdNode",
- "item" : "empName",
- "name" : "empName",
- "width" : "20%"
- },
- {
- "title": MWF.xApplication.Attendance.LP.date,
- "headStyles" : "normalThNode",
- "contentStyles" : "normalTdNode",
- "defaultSort" : "desc",
- "sort" : "asc,desc",
- "item" : "recordDateString",
- "name" : "recordDateString",
- "width" : "20%"
- },
- {
- "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" : "20%"
- },
- {
- "title": MWF.xApplication.Attendance.LP.onDutyTime,
- "headStyles" : "normalThNode",
- "contentStyles" : "normalTdNode",
- "sort" : "asc,desc",
- "item" : "onDutyTime",
- "name" : "onDutyTime",
- "width" : "15%"
- },
- {
- "title": MWF.xApplication.Attendance.LP.offDutyTime,
- "headStyles" : "normalThNode",
- "contentStyles" : "normalTdNode",
- "sort" : "asc,desc",
- "item" : "offDutyTime",
- "name" : "offDutyTime",
- "width" : "15%"
- },
- {
- "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" : "15%"
- } //,
- // {
- // "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"
- // }]
- // }
- ]
|