TourClientListDto.cs 10 KB

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