listItem.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. [
  2. {
  3. "title": MWF.xApplication.Attendance.LP.name,
  4. "headStyles" : "normalThNode",
  5. "contentStyles" : "normalTdNode",
  6. "item" : "empName",
  7. "name" : "empName",
  8. "width" : "20%"
  9. },
  10. {
  11. "title": MWF.xApplication.Attendance.LP.date,
  12. "headStyles" : "normalThNode",
  13. "contentStyles" : "normalTdNode",
  14. "defaultSort" : "desc",
  15. "sort" : "asc,desc",
  16. "item" : "recordDateString",
  17. "name" : "recordDateString",
  18. "width" : "20%"
  19. },
  20. {
  21. "title": MWF.xApplication.Attendance.LP.description,
  22. "headStyles" : "normalThNode",
  23. "contentStyles" : "normalTdNode",
  24. "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 } }",
  25. "name" : "description",
  26. "width" : "20%"
  27. },
  28. {
  29. "title": MWF.xApplication.Attendance.LP.onDutyTime,
  30. "headStyles" : "normalThNode",
  31. "contentStyles" : "normalTdNode",
  32. "sort" : "asc,desc",
  33. "item" : "onDutyTime",
  34. "name" : "onDutyTime",
  35. "width" : "15%"
  36. },
  37. {
  38. "title": MWF.xApplication.Attendance.LP.offDutyTime,
  39. "headStyles" : "normalThNode",
  40. "contentStyles" : "normalTdNode",
  41. "sort" : "asc,desc",
  42. "item" : "offDutyTime",
  43. "name" : "offDutyTime",
  44. "width" : "15%"
  45. },
  46. {
  47. "title": MWF.xApplication.Attendance.LP.attendanceStatus,
  48. "headStyles": "normalThNode",
  49. "contentStyles": "normalTdNode",
  50. "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; }",
  51. "name" : "status",
  52. "width" : "15%"
  53. } //,
  54. // {
  55. // "access" : "admin",
  56. // "title" : "操作",
  57. // "headStyles" : "normalThNode",
  58. // "contentStyles" : "normalTdNode",
  59. // "item" : "actions",
  60. // "name" : "actions",
  61. // "width" : "10%",
  62. // "sub" : [{
  63. // "title" : "删除文件",
  64. // "action" : "remove",
  65. // "styles" : "actionDeleteNode",
  66. // "overStyles" : "actionDeleteNode_over",
  67. // "downStyles" : "actionDeleteNode_down"
  68. // }]
  69. // }
  70. ]