listItem_dingding.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. [
  2. {
  3. "title": MWF.xApplication.Attendance.LP.name,
  4. "headStyles": "normalThNode",
  5. "contentStyles": "normalTdNode",
  6. "item": "function( d ){ return ( d.o2User || '').split('@')[0] }",
  7. "name": "o2User",
  8. "width": "20%"
  9. },
  10. {
  11. "title": MWF.xApplication.Attendance.LP.date,
  12. "headStyles": "normalThNode",
  13. "contentStyles": "normalTdNode",
  14. "item": "function(d){ var date = new Date(d.userCheckTime); return date.getFullYear()+'-'+(date.getMonth()+1)+'-'+date.getDate();}",
  15. "name": "userCheckTime",
  16. "width": "20%"
  17. },
  18. {
  19. "title": MWF.xApplication.Attendance.LP.signinType,
  20. "headStyles": "normalThNode",
  21. "contentStyles": "normalTdNode",
  22. "item": "function( data ){ if(data.checkType == 'OffDuty'){return MWF.xApplication.Attendance.LP.signinTypeSelectText[2];}else{return MWF.xApplication.Attendance.LP.signinTypeSelectText[1];} }",
  23. "name": "checkType",
  24. "width": "20%"
  25. },
  26. {
  27. "title": MWF.xApplication.Attendance.LP.signinResult,
  28. "headStyles": "normalThNode",
  29. "contentStyles": "normalTdNode",
  30. "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];} }",
  31. "name": "timeResult",
  32. "width": "20%"
  33. },
  34. {
  35. "title": MWF.xApplication.Attendance.LP.signTime,
  36. "headStyles": "normalThNode",
  37. "contentStyles": "normalTdNode",
  38. "item": "function(d){ var date = new Date(d.userCheckTime); return date.getHours()+':'+date.getMinutes()+':'+date.getSeconds();}",
  39. "name": "userCheckTime",
  40. "width": "20%"
  41. }
  42. ]