listItem.json 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. [
  2. {
  3. "title" : MWF.xApplication.Attendance.LP.name,
  4. "headStyles" : "normalThNode",
  5. "contentStyles" : "normalTdNode",
  6. "item" : "function( d ){ return ( d.empName || '').split('@')[0] }",
  7. "name" : "empName",
  8. "width" : "6%"
  9. },
  10. {
  11. "title" : MWF.xApplication.Attendance.LP.date,
  12. "headStyles" : "normalThNode",
  13. "contentStyles" : "normalTdNode",
  14. "defaultSort" : "desc",
  15. "item" : "recordDateString",
  16. "name" : "recordDateString",
  17. "width" : "8%"
  18. },
  19. {
  20. "title" : MWF.xApplication.Attendance.LP.description,
  21. "headStyles" : "normalThNode",
  22. "contentStyles" : "normalTdNode",
  23. "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 } }",
  24. "name" : "description",
  25. "width" : "8%"
  26. },
  27. {
  28. "title" : MWF.xApplication.Attendance.LP.onDutyTime,
  29. "headStyles" : "normalThNode",
  30. "contentStyles" : "normalTdNode",
  31. "item" : "onDutyTime",
  32. "name" : "onDutyTime",
  33. "width" : "8%"
  34. },
  35. {
  36. "title" : MWF.xApplication.Attendance.LP.middayRestStartTime,
  37. "headStyles" : "normalThNode",
  38. "contentStyles" : "normalTdNode",
  39. "item" : "morningOffDutyTime",
  40. "name" : "morningOffDutyTime",
  41. "width" : "8%"
  42. },
  43. {
  44. "title" : MWF.xApplication.Attendance.LP.middayRestEndTime,
  45. "headStyles" : "normalThNode",
  46. "contentStyles" : "normalTdNode",
  47. "item" : "afternoonOnDutyTime",
  48. "name" : "afternoonOnDutyTime",
  49. "width" : "8%"
  50. },
  51. {
  52. "title" : MWF.xApplication.Attendance.LP.offDutyTime,
  53. "headStyles" : "normalThNode",
  54. "contentStyles" : "normalTdNode",
  55. "item" : "offDutyTime",
  56. "name" : "offDutyTime",
  57. "width" : "8%"
  58. },
  59. {
  60. "title" : MWF.xApplication.Attendance.LP.workTime,
  61. "headStyles" : "normalThNode",
  62. "contentStyles" : "normalTdNode",
  63. "item" : "workTimeDuration",
  64. "name" : "workTimeDuration",
  65. "width" : "6%"
  66. },
  67. {
  68. "title": MWF.xApplication.Attendance.LP.attendanceStatus,
  69. "headStyles": "normalThNode",
  70. "contentStyles": "normalTdNode",
  71. "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; }",
  72. "name" : "status",
  73. "width" : "7%"
  74. },
  75. {
  76. "title": MWF.xApplication.Attendance.LP.isCheckInOutOfRange,
  77. "headStyles": "normalThNode",
  78. "contentStyles": "normalTdNode",
  79. "item": "function( d ){ if(d.isExternal){ return MWF.xApplication.Attendance.LP.yes }else{ return MWF.xApplication.Attendance.LP.no }}",
  80. "name" : "appealStatus",
  81. "width" : "7%"
  82. },
  83. {
  84. "title" : MWF.xApplication.Attendance.LP.recordAddress,
  85. "headStyles" : "normalThNode",
  86. "contentStyles" : "normalTdNode",
  87. "item" : "function( data ){ if(data.workAddress && data.workAddress!=\"\"){ return data.workAddress }else{return data.recordAddress }}",
  88. "name" : "address",
  89. "width" : "11%"
  90. },
  91. {
  92. "title" : MWF.xApplication.Attendance.LP.optMachineType,
  93. "headStyles" : "normalThNode",
  94. "contentStyles" : "normalTdNode",
  95. "item" : "optMachineType",
  96. "name" : "optMachineType",
  97. "width" : "11%"
  98. },
  99. {
  100. "title": MWF.xApplication.Attendance.LP.appealStatus,
  101. "headStyles": "normalThNode",
  102. "contentStyles": "normalTdNode",
  103. "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 '' } }",
  104. "name" : "appealStatus",
  105. "width" : "11%"
  106. }
  107. // {
  108. // "access" : "admin",
  109. // "title" : "操作",
  110. // "headStyles" : "normalThNode",
  111. // "contentStyles" : "normalTdNode",
  112. // "item" : "actions",
  113. // "name" : "actions",
  114. // "width" : "10%",
  115. // "sub" : [{
  116. // "title" : "删除文件",
  117. // "action" : "remove",
  118. // "styles" : "actionDeleteNode",
  119. // "overStyles" : "actionDeleteNode_over",
  120. // "downStyles" : "actionDeleteNode_down"
  121. // }]
  122. // }
  123. ]