TourClientListDto.cs 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  1. using Newtonsoft.Json;
  2. using OASystem.Domain.Attributes;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace OASystem.Domain.Dtos.Groups
  9. {
  10. /// <summary>
  11. /// 接团客户名单
  12. /// </summary>
  13. public class TourClientListDto
  14. {
  15. }
  16. /// <summary>
  17. /// 接团客户名单
  18. /// 根据团组Id查询List
  19. /// </summary>
  20. public class TourClientListByDiIdDto : UserPageFuncDtoBase
  21. {
  22. public int DiId { get; set; }
  23. }
  24. /// <summary>
  25. /// 接团客户名单
  26. /// 基础数据 Dto
  27. /// </summary>
  28. public class TourClientListBasicDataInitDto : UserPageFuncDtoBase { }
  29. /// <summary>
  30. /// 接团客户名单
  31. /// 根据Id 查询 Details
  32. /// </summary>
  33. public class TourClientListDetailsDto : UserPageFuncDtoBase
  34. {
  35. public int Id { get; set; }
  36. }
  37. /// <summary>
  38. /// 接团客户名单
  39. /// Add Or Edit
  40. /// </summary>
  41. public class TourClientListAddOrEditDto : UserPageFuncDtoBase
  42. {
  43. /// <summary>
  44. /// 数据Id
  45. /// Id == 0 Add
  46. /// Id >= 1 Update
  47. /// </summary>
  48. public int Id { get; set; }
  49. /// <summary>
  50. /// 团组Id
  51. /// </summary>
  52. public int DiId { get; set; }
  53. /// <summary>
  54. /// 是否陪同
  55. /// 1 否 2 是
  56. /// </summary>
  57. public int IsAccompany { get; set; } = 1;
  58. /// <summary>
  59. /// 姓
  60. /// </summary>
  61. [Encrypted]
  62. public string? LastName { get; set; }
  63. /// <summary>
  64. /// 名
  65. /// </summary>
  66. [Encrypted]
  67. public string? FirstName { get; set; }
  68. /// <summary>
  69. /// 姓名拼音
  70. /// 姓/名 eg: LEI/YI
  71. /// </summary>
  72. [Encrypted]
  73. public string? Pinyin { get; set; }
  74. /// <summary>
  75. /// 性别
  76. /// 0 男1 女 -1 未设置
  77. /// </summary>
  78. public int Sex { get; set; }
  79. /// <summary>
  80. /// 手机号
  81. /// </summary>
  82. [Encrypted]
  83. public string? Phone { get; set; }
  84. /// <summary>
  85. /// 公司名全称
  86. /// </summary>
  87. [Encrypted]
  88. public string? CompanyFullName { get; set; }
  89. /// <summary>
  90. /// 职位
  91. /// </summary>
  92. [Encrypted]
  93. public string? Job { get; set; }
  94. /// <summary>
  95. /// 身份证No
  96. /// </summary>
  97. [Encrypted]
  98. public string? IDCardNo { get; set; }
  99. /// <summary>
  100. /// 生日
  101. /// </summary>
  102. public string? BirthDay { get; set; }
  103. /// <summary>
  104. /// 舱位类型(数据类型表Id)
  105. /// </summary>
  106. public int ShippingSpaceTypeId { get; set; }
  107. /// <summary>
  108. /// 舱位特殊需求
  109. /// </summary>
  110. public string? ShippingSpaceSpecialNeeds { get; set; }
  111. /// <summary>
  112. /// 酒店特殊需求
  113. /// </summary>
  114. public string? HotelSpecialNeeds { get; set; }
  115. /// <summary>
  116. /// 餐食特殊需求
  117. /// </summary>
  118. public string? MealSpecialNeeds { get; set; }
  119. /// <summary>
  120. /// 备注
  121. /// </summary>
  122. public string? Remark { get; set; }
  123. }
  124. /// <summary>
  125. /// json字符串 AddMultiple(添加多个)
  126. /// </summary>
  127. public class PostTourClientListJsonFormatAddMultipleDto : UserPageFuncDtoBase
  128. {
  129. /// <summary>
  130. /// 团组Id
  131. /// </summary>
  132. public int DiId { get; set; }
  133. /// <summary>
  134. /// json字符串
  135. /// </summary>
  136. public string JsonLabel { get; set; }
  137. }
  138. /// <summary>
  139. /// 接团客户名单
  140. /// AddMultiple
  141. /// </summary>
  142. public class TourClientListAddMultipleDto : UserPageFuncDtoBase
  143. {
  144. /// <summary>
  145. /// 团组Id
  146. /// </summary>
  147. public int DiId { get; set; }
  148. /// <summary>
  149. /// 接团客户名单
  150. /// AddMultiple Infos
  151. /// </summary>
  152. public List<TourClientListInfo>? TourClientListInfos { get; set; }
  153. }
  154. /// <summary>
  155. /// 接团客户名单
  156. /// AddMultiple Info
  157. /// </summary>
  158. public class TourClientListInfoCN
  159. {
  160. /// <summary>
  161. /// 姓
  162. /// </summary>
  163. [JsonProperty("姓名")]
  164. [Encrypted]
  165. public string? Name { get; set; }
  166. /// <summary>
  167. /// 性别
  168. /// 0 男1 女 其他值 未设置
  169. /// </summary>
  170. [JsonProperty("性别")]
  171. public string Sex { get; set; }
  172. /// <summary>
  173. /// 公司名全称
  174. /// </summary>
  175. [JsonProperty("单位")]
  176. [Encrypted]
  177. public string? CompanyFullName { get; set; }
  178. /// <summary>
  179. /// 职位
  180. /// </summary>
  181. [JsonProperty("职务")]
  182. [Encrypted]
  183. public string? Job { get; set; }
  184. /// <summary>
  185. /// 生日
  186. /// </summary>
  187. [JsonProperty("出生日期")]
  188. public string? BirthDay { get; set; }
  189. }
  190. /// <summary>
  191. /// 接团客户名单
  192. /// AddMultiple Info
  193. /// </summary>
  194. public class TourClientListInfo
  195. {
  196. /// <summary>
  197. /// 是否陪同
  198. /// 1 否 2 是
  199. /// </summary>
  200. public int IsAccompany { get; set; } = 1;
  201. /// <summary>
  202. /// 姓
  203. /// </summary>
  204. [Encrypted]
  205. public string? LastName { get; set; }
  206. /// <summary>
  207. /// 名
  208. /// </summary>
  209. [Encrypted]
  210. public string? FirstName { get; set; }
  211. /// <summary>
  212. /// 拼音
  213. /// </summary>
  214. [Encrypted]
  215. public string Pinyin { get; set; }
  216. /// <summary>
  217. /// 性别
  218. /// 0 男1 女 其他值 未设置
  219. /// </summary>
  220. public int Sex { get; set; }
  221. /// <summary>
  222. /// 公司名全称
  223. /// </summary>
  224. [Encrypted]
  225. public string? CompanyFullName { get; set; }
  226. /// <summary>
  227. /// 职位
  228. /// </summary>
  229. [Encrypted]
  230. public string? Job { get; set; }
  231. /// <summary>
  232. /// 身份证No
  233. /// </summary>
  234. [Encrypted]
  235. public string? IDCardNo { get; set; }
  236. /// <summary>
  237. /// 手机号
  238. /// </summary>
  239. [Encrypted]
  240. public string? Phone { get; set; }
  241. /// <summary>
  242. /// 生日
  243. /// </summary>
  244. public string? BirthDay { get; set; }
  245. /// <summary>
  246. /// 舱位类型(数据类型表Id)
  247. /// </summary>
  248. public int ShippingSpaceTypeId { get; set; }
  249. /// <summary>
  250. /// 舱位特殊需求
  251. /// </summary>
  252. public string? ShippingSpaceSpecialNeeds { get; set; }
  253. /// <summary>
  254. /// 酒店特殊需求
  255. /// </summary>
  256. public string? HotelSpecialNeeds { get; set; }
  257. /// <summary>
  258. /// 餐食特殊需求
  259. /// </summary>
  260. public string? MealSpecialNeeds { get; set; }
  261. /// <summary>
  262. /// 备注
  263. /// </summary>
  264. public string? Remark { get; set; }
  265. }
  266. public class TourClientListProcessInfo : TourClientListInfo
  267. {
  268. public int Id { get; set; }
  269. }
  270. // <summary>
  271. /// 接团客户名单
  272. /// AddMultiple Info
  273. /// </summary>
  274. public class TourClientListInfo1
  275. {
  276. /// <summary>
  277. /// 姓
  278. /// </summary>
  279. public string LastName { get; set; }
  280. /// <summary>
  281. /// 名
  282. /// </summary>
  283. public string Name { get; set; }
  284. /// <summary>
  285. /// 性别
  286. /// </summary>
  287. public string Sex { get; set; }
  288. /// <summary>
  289. /// 生日
  290. /// </summary>
  291. public string Birthday { get; set; }
  292. /// <summary>
  293. /// 身份证
  294. /// </summary>
  295. public string IDcard { get; set; }
  296. /// <summary>
  297. /// 单位
  298. /// </summary>
  299. public string Company { get; set; }
  300. /// <summary>
  301. /// 职位
  302. /// </summary>
  303. public string Job { get; set; }
  304. /// <summary>
  305. /// 手机号
  306. /// </summary>
  307. public string Phone { get; set; }
  308. /// <summary>
  309. /// 仓位类型
  310. /// </summary>
  311. public int Berth { get; set; } = 460;
  312. /// <summary>
  313. /// 仓位备注
  314. /// </summary>
  315. public string BerthNotes { get; set; }
  316. /// <summary>
  317. /// 房间备注
  318. /// </summary>
  319. public string RoomNotes { get; set; }
  320. /// <summary>
  321. /// 餐食备注
  322. /// </summary>
  323. public string MealNotes { get; set; }
  324. /// <summary>
  325. /// 备注
  326. /// </summary>
  327. public string Remark { get; set; }
  328. }
  329. /// <summary>
  330. /// 接团客户名单
  331. /// Del
  332. /// </summary>
  333. public class TourClientListDelDto : UserPageFuncDtoBase
  334. {
  335. /// <summary>
  336. /// 数据Id
  337. /// Id>=0 Del
  338. /// Id<0 无效
  339. /// </summary>
  340. public int Id { get; set; }
  341. }
  342. /// <summary>
  343. /// 接团客户名单
  344. /// 客户名单下载
  345. /// </summary>
  346. public class PostTourClientListDownloadFile: UserPageFuncDtoBase
  347. {
  348. public int DiId { get; set; }
  349. /// <summary>
  350. /// 语言 0:中文,1:英文
  351. /// </summary>
  352. public int Language { get; set; } = 0;
  353. }
  354. public class ClientInfo
  355. {
  356. [Encrypted]
  357. public string LastName { get; set; }
  358. [Encrypted]
  359. public string FirstName { get; set; }
  360. public string Name { get{
  361. return this.LastName + this.FirstName ;
  362. } }
  363. public int Sex { get; set; }
  364. public DateTime ?Birthday { get; set; }
  365. [Encrypted]
  366. public string Company { get; set; }
  367. [Encrypted]
  368. public string Job { get; set; }
  369. }
  370. public class ClientInfoInfo_Group : ClientInfo
  371. {
  372. public int DiId { get; set; }
  373. public DateTime CreateTime { get; set; }
  374. }
  375. public class ClientAirInfo: ClientInfo
  376. {
  377. public int AirType { get; set; }
  378. }
  379. }