CarDataView.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. using OASystem.Domain.Attributes;
  2. using OASystem.Domain.Entities;
  3. using OASystem.Domain.Entities.Resource;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace OASystem.Domain.ViewModels.Resource
  10. {
  11. public class CarDataView : Res_CarData
  12. {
  13. public int LastUpdateDays
  14. {
  15. get
  16. {
  17. if (LastUpdateTime == DateTime.MinValue)
  18. {
  19. LastUpdateTime = CreateTime;
  20. return DateTime.Now.Subtract(CreateTime).Days;
  21. }
  22. else return DateTime.Now.Subtract(LastUpdateTime).Days;
  23. }
  24. }
  25. }
  26. public class CarDataSelectView
  27. {
  28. public int Id { get; set; }
  29. [Encrypted]
  30. public string UnitArea { get; set; }
  31. }
  32. public class CarDataDetailDataView
  33. {
  34. public int Id { get; set; }
  35. /// <summary>
  36. /// 服务评分
  37. /// </summary>
  38. public int Score { get; set; }
  39. /// <summary>
  40. /// 区域
  41. /// </summary>
  42. [Encrypted]
  43. public string UnitArea { get; set; }
  44. /// <summary>
  45. /// 公司名称
  46. /// </summary>
  47. [Encrypted]
  48. public string UnitName { get; set; }
  49. /// <summary>
  50. /// 地址
  51. /// </summary>
  52. [Encrypted]
  53. public string Address { get; set; }
  54. /// <summary>
  55. /// 联系人
  56. /// </summary>
  57. [Encrypted]
  58. public string Contact { get; set; }
  59. /// <summary>
  60. /// 联系人手机号
  61. /// </summary>
  62. [Encrypted]
  63. public string ContactTel { get; set; }
  64. /// <summary>
  65. /// 联系人邮箱
  66. /// </summary>
  67. [Encrypted]
  68. public string ContactEmail { get; set; }
  69. /// <summary>
  70. /// 联系人传真
  71. /// </summary>
  72. [Encrypted]
  73. public string ContactFax { get; set; }
  74. /// <summary>
  75. /// 其他信息
  76. /// </summary>
  77. [Encrypted]
  78. public string OtherInfo { get; set; }
  79. /// <summary>
  80. /// 车描述
  81. /// </summary>
  82. [Encrypted]
  83. public string CarDes { get; set; }
  84. /// <summary>
  85. /// 车图片路径
  86. /// 存储多个 使用/r/n
  87. /// </summary>
  88. [Encrypted]
  89. public string CarPicPaths { get; set; }
  90. /// <summary>
  91. /// 相关的车辆资质
  92. /// A B C 选择
  93. /// </summary>
  94. [Encrypted]
  95. public string QualificationScore { get; set; }
  96. /// <summary>
  97. /// 车辆2-4年新,VIP及以上需要2年新
  98. /// A B C 选择
  99. /// </summary>
  100. [Encrypted]
  101. public string CarAgeScore { get; set; }
  102. /// <summary>
  103. /// 车身干净,无文字图片等
  104. /// A B C 选择
  105. /// </summary>
  106. [Encrypted]
  107. public string CleanImgScore { get; set; }
  108. /// <summary>
  109. /// 车内整洁、无异味
  110. /// A B C 选择
  111. /// </summary>
  112. [Encrypted]
  113. public string SmellScore { get; set; }
  114. /// <summary>
  115. /// 提前备水,纸巾等
  116. /// A B C 选择
  117. /// </summary>
  118. [Encrypted]
  119. public string WaterPaperScore { get; set; }
  120. /// <summary>
  121. /// 车辆配置高(皮座椅等)
  122. /// A B C 选择
  123. /// </summary>
  124. [Encrypted]
  125. public string HardwareScore { get; set; }
  126. /// <summary>
  127. /// 时间概念强
  128. /// A B C 选择
  129. /// </summary>
  130. [Encrypted]
  131. public string TimeScore { get; set; }
  132. /// <summary>
  133. /// 安全意识高
  134. /// A B C 选择
  135. /// </summary>
  136. [Encrypted]
  137. public string SafetyScore { get; set; }
  138. /// <summary>
  139. /// 司机驾龄时间长,提前熟悉路线
  140. /// A B C 选择
  141. /// </summary>
  142. [Encrypted]
  143. public string DrivingAgeScore { get; set; }
  144. }
  145. public class CarDataMsgTipsView
  146. {
  147. [Encrypted]
  148. public string Area { get; set; }
  149. [Encrypted]
  150. public string Client { get; set; }
  151. [Encrypted]
  152. public string Contact { get; set; }
  153. public string Job { get; set; }
  154. [Encrypted]
  155. public string Tel { get; set; }
  156. public int CreateUserId { get; set; }
  157. public string CreatleUserName { get; set; }
  158. public DateTime CreateTime { get; set; }
  159. }
  160. }