CheckInDayDataView.cs 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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. /// 打卡日报数据 View
  10. /// </summary>
  11. public class CheckInDayDataView : ResponseBase
  12. {
  13. public List<Root> datas { get; set; }
  14. }
  15. public class Root
  16. {
  17. /// <summary>
  18. ///
  19. /// </summary>
  20. public Base_info? base_info { get; set; }
  21. /// <summary>
  22. ///
  23. /// </summary>
  24. public Summary_info? summary_info { get; set; }
  25. /// <summary>
  26. ///
  27. /// </summary>
  28. public List<Holiday_infos>? holiday_infos { get; set; }
  29. /// <summary>
  30. ///
  31. /// </summary>
  32. public List<Exception_infos>? exception_infos { get; set; }
  33. /// <summary>
  34. ///
  35. /// </summary>
  36. public Ot_info? ot_info { get; set; }
  37. /// <summary>
  38. ///
  39. /// </summary>
  40. public List<Sp_items>? sp_items { get; set; }
  41. }
  42. public class Exception_infos
  43. {
  44. /// <summary>
  45. /// 校准状态类型:1-迟到;2-早退;3-缺卡;4-旷工;5-地点异常;6-设备异常
  46. /// </summary>
  47. public int exception { get; set; }
  48. /// <summary>
  49. /// 当日此异常的次数
  50. /// </summary>
  51. public int count { get; set; }
  52. /// <summary>
  53. /// 当日此异常的时长(迟到/早退/旷工才有值)
  54. /// </summary>
  55. public int duration { get; set; }
  56. }
  57. public class Holiday_infos
  58. {
  59. public string? sp_number { get; set; }
  60. public Sp_title? sp_title { get; set; }
  61. public Sp_description? sp_description { get; set; }
  62. }
  63. public class Sp_title
  64. {
  65. public List<TitleItem>? data { get; set; }
  66. }
  67. public class Sp_description
  68. {
  69. public List<TitleItem>? data { get; set; }
  70. }
  71. public class CheckintimeItem
  72. {
  73. /// <summary>
  74. ///
  75. /// </summary>
  76. public int work_sec { get; set; }
  77. /// <summary>
  78. ///
  79. /// </summary>
  80. public int off_work_sec { get; set; }
  81. }
  82. public class Rule_info
  83. {
  84. /// <summary>
  85. ///
  86. /// </summary>
  87. public int groupid { get; set; }
  88. /// <summary>
  89. /// 普通白班
  90. /// </summary>
  91. public string groupname { get; set; }
  92. /// <summary>
  93. ///
  94. /// </summary>
  95. public int scheduleid { get; set; }
  96. /// <summary>
  97. ///
  98. /// </summary>
  99. public string schedulename { get; set; }
  100. /// <summary>
  101. ///
  102. /// </summary>
  103. public List<CheckintimeItem> checkintime { get; set; }
  104. }
  105. public class Base_info
  106. {
  107. /// <summary>
  108. /// 日报日期
  109. /// </summary>
  110. public long date { get; set; }
  111. /// <summary>
  112. /// 日报日期 dt
  113. /// </summary>
  114. public DateTime dateDt {
  115. get
  116. {
  117. return new DateTime(date * 10000000 + 621355968000000000L).ToLocalTime();
  118. }
  119. }
  120. /// <summary>
  121. /// 记录类型:1-固定上下班;2-外出(此报表中不会出现外出打卡数据);3-按班次上下班;4-自由签到;5-加班;7-无规则
  122. /// </summary>
  123. public int record_type { get; set; }
  124. /// <summary>
  125. /// 打卡人员姓名
  126. /// </summary>
  127. public string name { get; set; }
  128. /// <summary>
  129. /// 打卡人员别名
  130. /// </summary>
  131. public string name_ex { get; set; }
  132. /// <summary>
  133. /// 打卡人员所在部门,会显示所有所在部门
  134. /// </summary>
  135. public string departs_name { get; set; }
  136. /// <summary>
  137. /// 打卡人员账号,即userid
  138. /// </summary>
  139. public string acctid { get; set; }
  140. /// <summary>
  141. ///
  142. /// </summary>
  143. public Rule_info rule_info { get; set; }
  144. /// <summary>
  145. /// 日报类型:0-工作日日报;1-休息日日报
  146. /// </summary>
  147. public int day_type { get; set; }
  148. }
  149. public class Summary_info
  150. {
  151. /// <summary>
  152. ///
  153. /// </summary>
  154. public int checkin_count { get; set; }
  155. /// <summary>
  156. ///
  157. /// </summary>
  158. public int regular_work_sec { get; set; }
  159. /// <summary>
  160. ///
  161. /// </summary>
  162. public int standard_work_sec { get; set; }
  163. /// <summary>
  164. ///
  165. /// </summary>
  166. public int earliest_time { get; set; }
  167. /// <summary>
  168. ///
  169. /// </summary>
  170. public int lastest_time { get; set; }
  171. }
  172. public class Ot_info
  173. {
  174. /// <summary>
  175. ///
  176. /// </summary>
  177. public int ot_status { get; set; }
  178. /// <summary>
  179. ///
  180. /// </summary>
  181. public int ot_duration { get; set; }
  182. /// <summary>
  183. ///
  184. /// </summary>
  185. public List<long>? exception_duration { get; set; }
  186. }
  187. public class Sp_items
  188. {
  189. /// <summary>
  190. ///
  191. /// </summary>
  192. public int type { get; set; }
  193. /// <summary>
  194. ///
  195. /// </summary>
  196. public int vacation_id { get; set; }
  197. /// <summary>
  198. ///
  199. /// </summary>
  200. public int count { get; set; }
  201. /// <summary>
  202. ///
  203. /// </summary>
  204. public int duration { get; set; }
  205. /// <summary>
  206. ///
  207. /// </summary>
  208. public int time_type { get; set; }
  209. /// <summary>
  210. /// 年假
  211. /// </summary>
  212. public string name { get; set; }
  213. }
  214. }