CheckInDataView.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace OASystem.Domain.ViewModels.QiYeWeChat
  7. {
  8. /// <summary>
  9. /// 打卡记录数据
  10. /// </summary>
  11. public class CheckInDataView : ResponseBase
  12. {
  13. public List<CheckInDataInfo> checkindata { get; set; }
  14. }
  15. public class CheckInDataInfo
  16. {
  17. /// <summary>
  18. /// 用户id
  19. /// </summary>
  20. public string userid { get; set; }
  21. /// <summary>
  22. /// 打卡规则名称
  23. /// </summary>
  24. public string groupname { get; set; }
  25. /// <summary>
  26. /// 打卡类型。字符串,目前有:上班打卡,下班打卡,外出打卡
  27. /// </summary>
  28. public string checkin_type { get; set; }
  29. /// <summary>
  30. /// 异常类型,字符串,包括:时间异常,地点异常,未打卡,wifi异常,非常用设备。如果有多个异常,以分号间隔
  31. /// </summary>
  32. public string exception_type { get; set; }
  33. /// <summary>
  34. /// 打卡时间。Unix时间戳
  35. /// </summary>
  36. public long checkin_time { get; set; }
  37. /// <summary>
  38. /// 打卡时间。Unix时间戳
  39. /// </summary>
  40. public DateTime checkin_time_dt {
  41. get
  42. {
  43. return new DateTime(checkin_time * 10000000 + 621355968000000000L).ToLocalTime();
  44. }
  45. }
  46. /// <summary>
  47. /// 打卡地点title
  48. /// </summary>
  49. public string location_title { get; set; }
  50. /// <summary>
  51. /// 打卡地点详情
  52. /// </summary>
  53. public string location_detail { get; set; }
  54. /// <summary>
  55. /// 打卡wifi名称
  56. /// </summary>
  57. public string wifiname { get; set; }
  58. /// <summary>
  59. /// 打卡备注
  60. /// </summary>
  61. public string notes { get; set; }
  62. /// <summary>
  63. /// 打卡的MAC地址/bssid
  64. /// </summary>
  65. public string wifimac { get; set; }
  66. /// <summary>
  67. /// 打卡的附件media_id,可使用media/get获取附件
  68. /// </summary>
  69. public List<string> mediaids { get; set; }
  70. /// <summary>
  71. /// 位置打卡地点纬度,是实际纬度的1000000倍,与腾讯地图一致采用GCJ-02坐标系统标准
  72. /// </summary>
  73. public long lat { get; set; }
  74. /// <summary>
  75. /// 位置打卡地点经度,是实际经度的1000000倍,与腾讯地图一致采用GCJ-02坐标系统标准
  76. /// </summary>
  77. public long lng { get; set; }
  78. /// <summary>
  79. /// 打卡设备id
  80. /// </summary>
  81. public string deviceid { get; set; }
  82. /// <summary>
  83. /// 标准打卡时间,指此次打卡时间对应的标准上班时间或标准下班时间
  84. /// </summary>
  85. public long sch_checkin_time { get; set; }
  86. /// <summary>
  87. /// 打卡时间。Unix时间戳
  88. /// </summary>
  89. public DateTime sch_checkin_time_dt
  90. {
  91. get
  92. {
  93. return new DateTime(sch_checkin_time * 10000000 + 621355968000000000L).ToLocalTime();
  94. }
  95. }
  96. /// <summary>
  97. /// 规则id,表示打卡记录所属规则的id
  98. /// </summary>
  99. public int groupid { get; set; }
  100. /// <summary>
  101. /// 班次id,表示打卡记录所属规则中,所属班次的id
  102. /// </summary>
  103. public int schedule_id { get; set; }
  104. /// <summary>
  105. /// 时段id,表示打卡记录所属规则中,某一班次中的某一时段的id,如上下班时间为9:00-12:00、13:00-18:00的班次中,9:00-12:00为其中一组时段
  106. /// </summary>
  107. public int timeline_id { get; set; }
  108. }
  109. }