Crm_DeleClient.cs 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  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.Entities.Customer
  7. {
  8. /// <summary>
  9. /// 客户信息表
  10. /// </summary>
  11. [SugarTable("Crm_DeleClient")]
  12. public class Crm_DeleClient : EntityBase
  13. {
  14. /// <summary>
  15. /// 团组Id
  16. /// </summary>
  17. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  18. public int DiId { get; set; }
  19. /// <summary>
  20. /// 中文姓
  21. /// </summary>
  22. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  23. public string LastName { get; set; }
  24. /// <summary>
  25. /// 中文名
  26. /// </summary>
  27. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  28. public string FirstName { get; set; }
  29. /// <summary>
  30. /// 曾用名
  31. /// </summary>
  32. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  33. public string OldName { get; set; }
  34. /// <summary>
  35. /// 名字拼音
  36. /// </summary>
  37. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  38. public string Pinyin { get; set; }
  39. /// <summary>
  40. /// 性别
  41. /// 0男1女 -1未选择
  42. /// </summary>
  43. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  44. public int Sex { get; set; } = -1;
  45. /// <summary>
  46. /// 婚姻状况 0、1、2、3、4 (未设置、未婚、已婚、离异、丧偶)
  47. /// </summary>
  48. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  49. public int Marriage { get; set; } = 0;
  50. /// <summary>
  51. /// 客户手机号
  52. /// </summary>
  53. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(20)")]
  54. public string Phone { get; set; } = "";
  55. /// <summary>
  56. /// 出生省份
  57. /// </summary>
  58. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  59. public string BirthProvince { get; set; }
  60. /// <summary>
  61. /// 出生城市
  62. /// </summary>
  63. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  64. public string BirthCity { get; set; }
  65. /// <summary>
  66. /// 出生日期
  67. /// </summary>
  68. [SugarColumn(IsNullable = true, ColumnDataType = "datetime")]
  69. public DateTime? BirthDay { get; set; } = null;
  70. /// <summary>
  71. /// 机票喜好舱位
  72. /// </summary>
  73. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(300)")]
  74. public string AirType { get; set; }
  75. /// <summary>
  76. /// 是否靠窗
  77. /// </summary>
  78. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  79. public int SeatPref { get; set; }
  80. /// <summary>
  81. /// 机票备注
  82. /// </summary>
  83. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(300)")]
  84. public string AirRemark { get; set; }
  85. /// <summary>
  86. /// 酒店喜好房型
  87. /// </summary>
  88. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(300)")]
  89. public string RoomType { get; set; }
  90. /// <summary>
  91. /// 酒店需求
  92. /// </summary>
  93. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(300)")]
  94. public string RoomPref { get; set; }
  95. /// <summary>
  96. /// 家庭联系方式
  97. /// </summary>
  98. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(20)")]
  99. public string Tel { get; set; }
  100. /// <summary>
  101. /// 客户电子邮件
  102. /// </summary>
  103. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  104. public string Email { get; set; }
  105. /// <summary>
  106. /// 住址
  107. /// </summary>
  108. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(300)")]
  109. public string Address { get; set; }
  110. /// <summary>
  111. /// 最高学历
  112. /// </summary>
  113. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(100)")]
  114. public string HighestEducation { get; set; }
  115. /// <summary>
  116. /// 邮编
  117. /// </summary>
  118. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  119. public string PostCodes { get; set; }
  120. /// <summary>
  121. /// 客户公司Id
  122. /// </summary>
  123. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  124. public int CrmCompanyId { get; set; }
  125. /// <summary>
  126. /// 职位
  127. /// </summary>
  128. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(200)")]
  129. public string Job { get; set; }
  130. /// <summary>
  131. /// 本人工作内容
  132. /// </summary>
  133. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(300)")]
  134. public string WorkState { get; set; }
  135. /// <summary>
  136. /// 入职时间
  137. /// </summary>
  138. [SugarColumn(IsNullable = true, ColumnDataType = "Datetime")]
  139. public string WorkDate { get; set; }
  140. /// <summary>
  141. /// 薪资
  142. /// </summary>
  143. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(20)")]
  144. public string Wage { get; set; }
  145. /// <summary>
  146. /// (单位/部门)电话
  147. /// </summary>
  148. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(20)")]
  149. public string ClientPhone { get; set; }
  150. /// <summary>
  151. /// (单位/部门)传真
  152. /// </summary>
  153. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  154. public string ClientFax { get; set; }
  155. /// <summary>
  156. /// (单位/部门)邮箱
  157. /// </summary>
  158. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  159. public string ClientEmail { get; set; }
  160. /// <summary>
  161. /// (单位/部门)负责人姓名
  162. /// </summary>
  163. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(20)")]
  164. public string ClientLeader { get; set; }
  165. /// <summary>
  166. /// (单位/部门)负责人职务
  167. /// </summary>
  168. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(20)")]
  169. public string ClientLeaderJob { get; set; }
  170. /// <summary>
  171. /// 是否有获批的申根签证
  172. /// 0否1是
  173. /// </summary>
  174. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  175. public int IsGetSchengen { get; set; } = 0;
  176. /// <summary>
  177. /// 申根有效期
  178. /// </summary>
  179. [SugarColumn(IsNullable = true, ColumnDataType = "DateTime")]
  180. public DateTime StartTime { get; set; }
  181. /// <summary>
  182. /// 申根有效期
  183. /// </summary>
  184. [SugarColumn(IsNullable = true, ColumnDataType = "Datetime")]
  185. public DateTime EndTime { get; set; }
  186. /// <summary>
  187. /// 申根是否在使馆有指纹记录
  188. /// 0否1是
  189. /// </summary>
  190. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  191. public int IsFinger { get; set; } = 0;
  192. /// <summary>
  193. /// 申根指纹录入时间
  194. /// </summary>
  195. [SugarColumn(IsNullable = true, ColumnDataType = "DateTime")]
  196. public DateTime FingerDate { get; set; }
  197. /// <summary>
  198. /// 是否因公去过美国/加拿大
  199. /// 0否1是
  200. /// </summary>
  201. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  202. public int IsVisitUC { get; set; } = 0;
  203. /// <summary>
  204. /// 美国抵达日期
  205. /// </summary>
  206. [SugarColumn(IsNullable = true, ColumnDataType = "DateTime")]
  207. public DateTime USADate { get; set; }
  208. /// <summary>
  209. /// 美国停留天数
  210. /// </summary>
  211. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  212. public int USADays { get; set; } = 0;
  213. /// <summary>
  214. /// 加拿大抵达日期
  215. /// </summary>
  216. [SugarColumn(IsNullable = true, ColumnDataType = "DateTime")]
  217. public DateTime CanDate { get; set; }
  218. /// <summary>
  219. /// 加拿大停留天数
  220. /// </summary>
  221. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  222. public int CanDays { get; set; } = 0;
  223. /// <summary>
  224. /// 是否曾获得过因公美国签证 0否1是
  225. /// </summary>
  226. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  227. public int IsUSAVia { get; set; }
  228. /// <summary>
  229. /// 因公美国签证最近获得时间
  230. /// 0否1是
  231. /// </summary>
  232. [SugarColumn(IsNullable = true, ColumnDataType = "DateTime")]
  233. public DateTime GetUSAVisaDate { get; set; }
  234. /// <summary>
  235. /// 因公美国签证地点
  236. /// </summary>
  237. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  238. public string GetUPPlace { get; set; }
  239. /// <summary>
  240. /// 因公美国签证种类
  241. /// </summary>
  242. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  243. public string USAVisaCate { get; set; }
  244. /// <summary>
  245. /// 因公美国签证编码
  246. /// </summary>
  247. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  248. public string USAVisaCode { get; set; }
  249. /// <summary>
  250. /// 是否在使馆留过十指的指纹 0否1是
  251. /// </summary>
  252. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  253. public int USAFinger { get; set; } = 0;
  254. /// <summary>
  255. /// 是否曾经被拒签 0否1是
  256. /// </summary>
  257. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  258. public int IsRejected { get; set; } = 0;
  259. /// <summary>
  260. /// 被拒时间
  261. /// </summary>
  262. [SugarColumn(IsNullable = true, ColumnDataType = "DateTime")]
  263. public DateTime RejectedDate { get; set; }
  264. /// <summary>
  265. /// 被拒地点
  266. /// </summary>
  267. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  268. public string RejectedPlace { get; set; }
  269. /// <summary>
  270. /// 被拒签证种类
  271. /// </summary>
  272. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  273. public string RejectedVisa { get; set; }
  274. /// <summary>
  275. /// 美国签证是否被吊销过 0否1是
  276. /// </summary>
  277. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  278. public int IsRevoke { get; set; } = 0;
  279. /// <summary>
  280. /// 护照是否曾经丢失 0否1是
  281. /// </summary>
  282. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  283. public int IsLose { get; set; } = 0;
  284. /// <summary>
  285. /// 丢失护照时间
  286. /// </summary>
  287. [SugarColumn(IsNullable = true, ColumnDataType = "DateTime")]
  288. public DateTime LoseDate { get; set; }
  289. /// <summary>
  290. /// 丢失护照编号
  291. /// </summary>
  292. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  293. public string LoseCode { get; set; }
  294. /// <summary>
  295. /// 丢失的护照是否有美国签证 0否1是
  296. /// </summary>
  297. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  298. public int IsUSAVisa { get; set; } = 0;
  299. /// <summary>
  300. /// 夫/妻是否已在美国
  301. /// 0否1是
  302. /// </summary>
  303. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  304. public int MateUSA { get; set; } = 0;
  305. /// <summary>
  306. /// 夫/妻身份
  307. /// </summary>
  308. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  309. public string MateIden { get; set; }
  310. /// <summary>
  311. /// 未婚夫/妻是否已在美国 0否1是
  312. /// </summary>
  313. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  314. public int WHUSA { get; set; } = 0;
  315. /// <summary>
  316. /// 未婚夫/妻身份
  317. /// </summary>
  318. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  319. public string WHIden { get; set; }
  320. /// <summary>
  321. /// 父/母是否已在美国
  322. /// 0否1是
  323. /// </summary>
  324. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  325. public int ParentUSA { get; set; } = 0;
  326. /// <summary>
  327. /// 父/母身份
  328. /// </summary>
  329. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  330. public string ParentIden { get; set; }
  331. /// <summary>
  332. /// 子/女是否已在美国 0否1是
  333. /// </summary>
  334. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  335. public int ChildUSA { get; set; } = 0;
  336. /// <summary>
  337. /// 子/女身份
  338. /// </summary>
  339. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  340. public string ChildIden { get; set; }
  341. /// <summary>
  342. /// 兄弟/姐妹是否已在美国 0否1是
  343. /// </summary>
  344. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  345. public int BroUSA { get; set; } = 0;
  346. /// <summary>
  347. /// 兄弟/姐妹身份
  348. /// </summary>
  349. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  350. public string BroIden { get; set; }
  351. /// <summary>
  352. /// 所属/捐助/工作过的职业协会、社会团体和慈善机构
  353. /// </summary>
  354. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(500)")]
  355. public string Social { get; set; }
  356. /// <summary>
  357. /// 是否参军
  358. /// 0否1是
  359. /// </summary>
  360. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  361. public int IsArmy { get; set; } = 0;
  362. /// <summary>
  363. /// 参军详情
  364. /// </summary>
  365. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(500)")]
  366. public string ArmyState { get; set; }
  367. /// <summary>
  368. /// 在外期间费用承担人
  369. /// </summary>
  370. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(20)")]
  371. public string CostBearers { get; set; }
  372. /// <summary>
  373. /// 填表经办人
  374. /// </summary>
  375. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(20)")]
  376. public string TableOpName { get; set; }
  377. /// <summary>
  378. /// 填表经办人联系电话
  379. /// </summary>
  380. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(20)")]
  381. public string TableOpTel { get; set; }
  382. /// <summary>
  383. /// 填表日期
  384. /// </summary>
  385. [SugarColumn(IsNullable = true, ColumnDataType = "DateTime")]
  386. public DateTime TableDate { get; set; }
  387. /// <summary>
  388. /// 所属党派或宗教
  389. /// </summary>
  390. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  391. public string Party { get; set; }
  392. /// <summary>
  393. /// 国籍
  394. /// </summary>
  395. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(20)")]
  396. public string Nationality { get; set; }
  397. /// <summary>
  398. /// 结婚日期
  399. /// </summary>
  400. [SugarColumn(IsNullable = true, ColumnDataType = "DateTime")]
  401. public DateTime WeddingDate { get; set; }
  402. /// <summary>
  403. /// 离婚日期
  404. /// </summary>
  405. [SugarColumn(IsNullable = true, ColumnDataType = "DateTime")]
  406. public DateTime DivorceDate { get; set; }
  407. /// <summary>
  408. /// 配偶姓名
  409. /// </summary>
  410. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  411. public string MateName { get; set; }
  412. /// <summary>
  413. /// 配偶出生日期
  414. /// </summary>
  415. [SugarColumn(IsNullable = true, ColumnDataType = "DateTime")]
  416. public DateTime MateBirthDay { get; set; }
  417. /// <summary>
  418. /// 配偶出生城市
  419. /// </summary>
  420. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  421. public string MateBirthCity { get; set; }
  422. /// <summary>
  423. /// 配偶出生国家省份
  424. /// </summary>
  425. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  426. public string MateBirthCountry { get; set; }
  427. /// <summary>
  428. /// 配偶住址
  429. /// </summary>
  430. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(300)")]
  431. public string MateAddress { get; set; }
  432. /// <summary>
  433. /// 配偶工作单位
  434. /// </summary>
  435. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(300)")]
  436. public string MateClient { get; set; }
  437. /// <summary>
  438. /// 配偶工作单位地址
  439. /// </summary>
  440. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(300)")]
  441. public string MateClientAddress { get; set; }
  442. /// <summary>
  443. /// 配偶职务
  444. /// </summary>
  445. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  446. public string MateJob { get; set; }
  447. /// <summary>
  448. /// 因公出访国家
  449. /// </summary>
  450. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  451. public string VisitCountry { get; set; }
  452. /// <summary>
  453. /// 发表的期刊/论文
  454. /// </summary>
  455. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(500)")]
  456. public string Paper { get; set; }
  457. /// <summary>
  458. /// 专利
  459. /// </summary>
  460. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(500)")]
  461. public string Papent { get; set; }
  462. /// <summary>
  463. /// 发表的博士论文
  464. /// </summary>
  465. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(500)")]
  466. public string PhD { get; set; }
  467. }
  468. }