NewClientDataView.cs 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. using OASystem.Domain.Attributes;
  2. using OASystem.Domain.Entities.Customer;
  3. using Org.BouncyCastle.Asn1.Ocsp;
  4. using Org.BouncyCastle.Asn1.X9;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using static Google.Protobuf.Reflection.SourceCodeInfo.Types;
  11. namespace OASystem.Domain.ViewModels.CRM
  12. {
  13. public class DetailsView
  14. {
  15. public int Id { get; set; }
  16. /// <summary>
  17. /// 客户分类
  18. /// </summary>
  19. public int Category { get; set; }
  20. /// <summary>
  21. /// 地市州Id
  22. /// </summary>
  23. public int Lvlid { get; set; }
  24. /// <summary>
  25. /// 权重
  26. /// </summary>
  27. [Encrypted]
  28. public string Weight { get; set; }
  29. /// <summary>
  30. /// 联系人
  31. /// </summary>
  32. [Encrypted]
  33. public string Contact { get; set; }
  34. /// <summary>
  35. /// 联系人性别
  36. /// </summary>
  37. public int Gender { get; set; }
  38. /// <summary>
  39. /// 联系手机号
  40. /// </summary>
  41. [Encrypted]
  42. public string Telephone { get; set; }
  43. /// <summary>
  44. /// 联系座机号
  45. /// </summary>
  46. [Encrypted]
  47. public string Phone { get; set; }
  48. /// <summary>
  49. /// 邮件
  50. /// </summary>
  51. [Encrypted]
  52. public string Email { get; set; }
  53. /// <summary>
  54. /// 职位
  55. /// </summary>
  56. [Encrypted]
  57. public string Job { get; set; }
  58. /// <summary>
  59. /// 客户单位
  60. /// </summary>
  61. [Encrypted]
  62. public string Client { get; set; }
  63. /// <summary>
  64. /// 客户单位简写
  65. /// </summary>
  66. [Encrypted]
  67. public string ClientShort { get; set; }
  68. /// <summary>
  69. /// 所属区域(所在城市)
  70. /// </summary>
  71. [Encrypted]
  72. public string Location { get; set; }
  73. /// <summary>
  74. /// 地址
  75. /// </summary>
  76. [Encrypted]
  77. public string Address { get; set; }
  78. /// <summary>
  79. /// 护照
  80. /// </summary>
  81. [Encrypted]
  82. public string Passport { get; set; }
  83. /// <summary>
  84. /// 护照日期
  85. /// </summary>
  86. [Encrypted]
  87. public string? PassportDate { get; set; }
  88. /// <summary>
  89. /// 生日
  90. /// </summary>
  91. [Encrypted]
  92. public string Birthday { get; set; }
  93. /// <summary>
  94. /// 预计出团
  95. /// </summary>
  96. public int PreDele { get; set; }
  97. /// <summary>
  98. /// 已出团
  99. /// </summary>
  100. public int FinlishedDele { get; set; }
  101. /// <summary>
  102. /// 归属人员
  103. /// </summary>
  104. public List<int>? AscribedUser { get; set; }
  105. /// <summary>
  106. /// 归属部门
  107. /// </summary>
  108. public List<int>? AscribedDepartment { get; set; }
  109. /// <summary>
  110. /// 微信
  111. /// </summary>
  112. [Encrypted]
  113. public string WeChat { get; set; }
  114. /// <summary>
  115. /// 备注
  116. /// </summary>
  117. [Encrypted]
  118. public string Remark { get; set; }
  119. }
  120. public class NewClientDataAndroidIOSView
  121. {
  122. /// <summary>
  123. /// 编号
  124. /// </summary>
  125. public int RowNumber { get; set; }
  126. public int Id { get; set; }
  127. /// <summary>
  128. /// 客户单位
  129. /// </summary>
  130. public string? Client { get; set; }
  131. /// <summary>
  132. /// 联系人
  133. /// </summary>
  134. public string? Contact { get; set; }
  135. /// <summary>
  136. /// 职位
  137. /// </summary>
  138. public string? Job { get; set; }
  139. /// <summary>
  140. /// 联系手机号
  141. /// </summary>
  142. public string? Telephone { get; set; }
  143. /// <summary>
  144. /// 所在区域
  145. /// </summary>
  146. public string? Location { get; set; }
  147. }
  148. public class NewClientDataView : Crm_NewClientData
  149. {
  150. /// <summary>
  151. /// 总条数
  152. /// </summary>
  153. public int countPage { get; set; }
  154. /// <summary>
  155. /// 编号
  156. /// </summary>
  157. public int RowNumber { get; set; }
  158. /// <summary>
  159. /// 客户分类
  160. /// </summary>
  161. public string CategoryStr { get; set; }
  162. /// <summary>
  163. /// 地市州Id
  164. /// </summary>
  165. public string LvlidStr { get; set; }
  166. /// <summary>
  167. /// 归属人员
  168. /// </summary>
  169. public dynamic AscribedUser { get; set; }
  170. /// <summary>
  171. /// 归属部门
  172. /// </summary>
  173. public dynamic AscribedDepartment { get; set; }
  174. }
  175. /// <summary>
  176. ///归属人员
  177. /// </summary>
  178. public class AscribedUser
  179. {
  180. /// <summary>
  181. /// 人员Id
  182. /// </summary>
  183. public int UserId { get; set; }
  184. /// <summary>
  185. /// 归属人员姓名
  186. /// </summary>
  187. public string CnName { get; set; }
  188. public int NewClientDataId { get; set; }
  189. }
  190. /// <summary>
  191. ///归属部门
  192. /// </summary>
  193. public class AscribedDepartment
  194. {
  195. /// <summary>
  196. /// setData部门部门Id
  197. /// </summary>
  198. public int Id { get; set; }
  199. /// <summary>
  200. /// 归属部门名称
  201. /// </summary>
  202. public string Name { get; set; }
  203. public int NewClientDataId { get; set; }
  204. }
  205. public class NewClientDataExcelDownloadView : Crm_NewClientData
  206. {
  207. /// <summary>
  208. /// 编号
  209. /// </summary>
  210. public int RowNumber { get; set; }
  211. /// <summary>
  212. /// 客户分类
  213. /// </summary>
  214. public string CategoryStr { get; set; }
  215. /// <summary>
  216. /// 地市州Id
  217. /// </summary>
  218. public string LvlidStr { get; set; }
  219. public string CreateUserName { get; set; }
  220. public string WeightLable {
  221. get
  222. {
  223. if (int.TryParse(Weight,out int weightId))
  224. {
  225. if (weightId == 393) return "A";
  226. else if (weightId == 392) return "B";
  227. else if (weightId == 391) return "C";
  228. else return "D";
  229. }
  230. return "D";
  231. }
  232. }
  233. public string SexLable
  234. {
  235. get
  236. {
  237. return Gender == 0 ? "男" : Gender == 1 ? "女" : "未设置";
  238. }
  239. }
  240. public string AscribedUserLable { get; set; } = "";
  241. public string AscribedDepartmentLable { get; set; } = "";
  242. }
  243. public class CRMWeekStatisticsView
  244. {
  245. public string UserName { get; set; }
  246. public int InsertNum { get; set; }
  247. public int DeleteNum { get; set; }
  248. }
  249. }