Crm_NewClientData.cs 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. using OASystem.Domain.Attributes;
  2. using Org.BouncyCastle.Asn1.Ocsp;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using static Google.Protobuf.Reflection.SourceCodeInfo.Types;
  10. namespace OASystem.Domain.Entities.Customer
  11. {
  12. /// <summary>
  13. /// 新客户资料表
  14. /// </summary>
  15. [SugarTable("Crm_NewClientData")]
  16. public class Crm_NewClientData : EntityBase
  17. {
  18. private int number;
  19. private int lvlid;
  20. private string client;
  21. private string weight;
  22. private string clientshort;
  23. private string contact;
  24. private int gender;
  25. private string passport;
  26. private DateTime? passportDate;
  27. private string job;
  28. private string telephone;
  29. private string phone;
  30. private string email;
  31. private string location;
  32. private string address;
  33. private string birthday;
  34. private string otherinfo;
  35. private string wechat;
  36. private int category;
  37. private int predele;
  38. private int finlishedDele;
  39. private int lastUpdateUserId;
  40. private DateTime lastUpdateTime;
  41. /// <summary>
  42. /// 序号
  43. /// </summary>
  44. [SugarColumn(ColumnDescription = "序号", IsNullable = true, ColumnDataType = "int")]
  45. public int Number { get => number; set => number = value; }
  46. /// <summary>
  47. /// 地市州Id
  48. /// </summary>
  49. [Description("客户区域")]
  50. [SugarColumn(ColumnDescription = "客户区域", IsNullable = true, ColumnDataType = "int")]
  51. public int Lvlid { get => lvlid; set => lvlid = value; }
  52. /// <summary>
  53. /// 客户单位
  54. /// </summary>
  55. [Encrypted]
  56. [Description("客户单位")]
  57. [SugarColumn(ColumnDescription = "客户单位", IsNullable = true, ColumnDataType = "nvarchar(200)")]
  58. public string Client { get => client; set => client = value; }
  59. /// <summary>
  60. /// 权重
  61. /// </summary>
  62. [Encrypted]
  63. [Description("权重")]
  64. [SugarColumn(ColumnDescription = "权重", IsNullable = true, ColumnDataType = "nvarchar(100)")]
  65. public string Weight { get => weight; set => weight = value; }
  66. /// <summary>
  67. /// 客户单位简写
  68. /// </summary>
  69. [Encrypted]
  70. [Description("客户单位简写")]
  71. [SugarColumn(ColumnDescription = "客户单位简写", IsNullable = true, ColumnDataType = "nvarchar(200)")]
  72. public string ClientShort { get => clientshort; set => clientshort = value; }
  73. /// <summary>
  74. /// 联系人
  75. /// </summary>
  76. [Encrypted]
  77. [Description("联系人")]
  78. [SugarColumn(ColumnDescription = "联系人", IsNullable = true, ColumnDataType = "nvarchar(200)")]
  79. public string Contact { get => contact; set => contact = value; }
  80. /// <summary>
  81. /// 联系人性别
  82. /// </summary>
  83. [Description("性别")]
  84. [SugarColumn(ColumnDescription = "性别", IsNullable = true, ColumnDataType = "int")]
  85. public int Gender { get => gender; set => gender = value; }
  86. /// <summary>
  87. /// 护照
  88. /// </summary>
  89. [Encrypted]
  90. [Description("护照")]
  91. [SugarColumn(ColumnDescription = "护照", IsNullable = true, ColumnDataType = "nvarchar(200)")]
  92. public string Passport { get => passport; set => passport = value; }
  93. /// <summary>
  94. /// 护照日期
  95. /// </summary>
  96. [Description("护照日期")]
  97. [SugarColumn(ColumnDescription = "护照日期", IsNullable = true, ColumnDataType = "DateTime")]
  98. public DateTime? PassportDate { get => passportDate; set => passportDate = value; }
  99. /// <summary>
  100. /// 职位
  101. /// </summary>
  102. [Encrypted]
  103. [Description("职位")]
  104. [SugarColumn(ColumnDescription = "职位", IsNullable = true, ColumnDataType = "nvarchar(200)")]
  105. public string Job { get => job; set => job = value; }
  106. /// <summary>
  107. /// 联系手机号
  108. /// </summary>
  109. [Encrypted]
  110. [Description("手机号")]
  111. [SugarColumn(ColumnDescription = "手机号", IsNullable = true, ColumnDataType = "nvarchar(200)")]
  112. public string Telephone { get => telephone; set => telephone = value; }
  113. /// <summary>
  114. /// 联系座机号
  115. /// </summary>
  116. [Encrypted]
  117. [Description("座机号")]
  118. [SugarColumn(ColumnDescription = "座机号", IsNullable = true, ColumnDataType = "nvarchar(200)")]
  119. public string Phone { get => phone; set => phone = value; }
  120. /// <summary>
  121. /// 邮件
  122. /// </summary>
  123. [Encrypted]
  124. [Description("邮件")]
  125. [SugarColumn(ColumnDescription = "邮件", IsNullable = true, ColumnDataType = "nvarchar(200)")]
  126. public string Email { get => email; set => email = value; }
  127. /// <summary>
  128. /// 所属区域(所在城市)
  129. /// </summary>
  130. [Encrypted]
  131. [Description("所在城市")]
  132. [SugarColumn(IsNullable = true, ColumnDataType = "nvarchar(MAX)")]
  133. public string Location { get => location; set => location = value; }
  134. /// <summary>
  135. /// 地址
  136. /// </summary>
  137. [Encrypted]
  138. [Description("具体地址")]
  139. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(80)")]
  140. public string Address { get => address; set => address = value; }
  141. /// <summary>
  142. /// 生日
  143. /// </summary>
  144. [Encrypted]
  145. [Description("生日信息")]
  146. [SugarColumn(IsNullable = true, ColumnDataType = "string")]
  147. public string Birthday { get => birthday; set => birthday = value; }
  148. /// <summary>
  149. /// 其他信息
  150. /// </summary>
  151. [Encrypted]
  152. [Description("备注")]
  153. [SugarColumn(IsNullable = true, ColumnDataType = "nvarchar(MAX)")]
  154. public string OtherInfo { get => otherinfo; set => otherinfo = value; }
  155. /// <summary>
  156. /// 微信
  157. /// </summary>
  158. [Encrypted]
  159. [Description("微信")]
  160. [SugarColumn(IsNullable = true, ColumnDataType = "nvarchar(200)")]
  161. public string Wechat { get => wechat; set => wechat = value; }
  162. /// <summary>
  163. /// 分类
  164. /// </summary>
  165. [Description("业务归属")]
  166. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  167. public int Category { get => category; set => category = value; }
  168. /// <summary>
  169. /// 预计出团
  170. /// </summary>
  171. [Description("今年预计出团")]
  172. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  173. public int PreDele { get => predele; set => predele = value; }
  174. /// <summary>
  175. /// 已出团
  176. /// </summary>
  177. [Description("今年已出团")]
  178. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  179. public int FinlishedDele { get => finlishedDele; set => finlishedDele = value; }
  180. /// <summary>
  181. /// 最后更新者Id
  182. /// </summary>
  183. [SugarColumn(ColumnDescription = "最后更新者Id", IsNullable = true, ColumnDataType = "int")]
  184. public int LastUpdateUserId { get => lastUpdateUserId; set => lastUpdateUserId = value; }
  185. /// <summary>
  186. /// 最后更新时间
  187. /// </summary>
  188. [SugarColumn(ColumnDescription = "最后更新时间", IsNullable = true, ColumnDataType = "DateTime")]
  189. public DateTime LastUpdateTime { get => lastUpdateTime; set => lastUpdateTime = value; }
  190. }
  191. }