HotelReservationsDto.cs 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552
  1. using FluentValidation;
  2. using OASystem.Domain.ViewModels.Groups;
  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. /// item Dto
  13. /// </summary>
  14. public class HotelReservationItemDto : UserPageFuncDtoBase
  15. {
  16. public int DiId { get; set; }
  17. public int IsPaySign { get; set; }
  18. }
  19. /// <summary>
  20. /// 酒店预定
  21. /// BasicsData Dto
  22. /// </summary>
  23. public class HotelReservationBasicsDataInitDto : UserPageFuncDtoBase
  24. {
  25. public int DiId { get; set; }
  26. }
  27. /// <summary>
  28. /// 酒店预定
  29. /// Details Dto
  30. /// </summary>
  31. public class HotelReservationsDetailsDto : UserPageFuncDtoBase
  32. {
  33. public int DiId { get; set; }
  34. public int Id { get; set; }
  35. }
  36. /// <summary>
  37. /// 酒店预定
  38. /// Add Or Edit
  39. /// </summary>
  40. public class HotelReservationsAddOrEditDto : UserPageFuncDtoBase
  41. {
  42. /// <summary>
  43. /// Id
  44. /// Id == 0 Add Or Id > 0 Edit
  45. /// </summary>
  46. public int Id { get; set; }
  47. /// <summary>
  48. /// 团组Id
  49. /// </summary>
  50. public int DiId { get; set; }
  51. /// <summary>
  52. /// 客人类型 Id (设置数据外键编号)
  53. /// </summary>
  54. public int GTId { get; set; }
  55. /// <summary>
  56. /// 入住卷号
  57. /// </summary>
  58. public string? CheckNumber { get; set; }
  59. /// <summary>
  60. /// 预订网站(设置数据外键编号)
  61. /// </summary>
  62. public int ReservationsWebsite { get; set; }
  63. /// <summary>
  64. /// 预订号码
  65. /// </summary>
  66. public string? ReservationsNo { get; set; }
  67. /// <summary>
  68. /// 确认号码
  69. /// </summary>
  70. public string? DetermineNo { get; set; }
  71. /// <summary>
  72. /// 区域Id
  73. /// </summary>
  74. public int AreaId { get; set; }
  75. /// <summary>
  76. /// 城市
  77. /// </summary>
  78. public string? City { get; set; }
  79. /// <summary>
  80. /// 酒店名称
  81. /// </summary>
  82. public string? HotelName { get; set; }
  83. /// <summary>
  84. /// 酒店电话
  85. /// </summary>
  86. public string? HotelTel { get; set; }
  87. /// <summary>
  88. /// 酒店地址
  89. /// </summary>
  90. public string? HotelAddress { get; set; }
  91. /// <summary>
  92. /// 客户名称
  93. /// </summary>
  94. public string? GuestName { get; set; }
  95. /// <summary>
  96. /// 入住时间
  97. /// </summary>
  98. public string? CheckInDate { get; set; }
  99. /// <summary>
  100. /// 离店时间
  101. /// </summary>
  102. public string? CheckOutDate { get; set; }
  103. /// <summary>
  104. /// 房间入住人类型(设置数据外键编号)
  105. /// </summary>
  106. public int CheckType { get; set; }
  107. /// <summary>
  108. /// 房间说明
  109. /// </summary>
  110. public string? RoomExplanation { get; set; }
  111. /// <summary>
  112. /// 酒店备注
  113. /// </summary>
  114. public string? HotelRemark { get; set; }
  115. /// <summary>
  116. /// 单间价格
  117. /// </summary>
  118. public decimal SingleRoomPrice { get; set; }
  119. /// <summary>
  120. /// 单间数量
  121. /// </summary>
  122. public int SingleRoomCount { get; set; }
  123. /// <summary>
  124. /// 双间价格
  125. /// </summary>
  126. public decimal DoubleRoomPrice { get; set; }
  127. /// <summary>
  128. /// 双间数量
  129. /// </summary>
  130. public int DoubleRoomCount { get; set; }
  131. /// <summary>
  132. /// 套房价格
  133. /// </summary>
  134. public decimal SuiteRoomPrice { get; set; }
  135. /// <summary>
  136. /// 套房数量
  137. /// </summary>
  138. public int SuiteRoomCount { get; set; }
  139. /// <summary>
  140. /// 其他房间价格
  141. /// </summary>
  142. public decimal OtherRoomPrice { get; set; }
  143. /// <summary>
  144. /// 其他房间数量
  145. /// </summary>
  146. public int OtherRoomCount { get; set; }
  147. /// <summary>
  148. /// 信用卡金额/项费用总计合费用
  149. /// </summary>
  150. public decimal CardPrice { get; set; }
  151. /// <summary>
  152. /// 信用卡币种/项费用总计合费用币种
  153. /// </summary>
  154. public int CardPriceCurrency { get; set; }
  155. /// <summary>
  156. /// 子表信息
  157. /// </summary>
  158. public List<HotelReservationsContnetDetailsView> Contents { get; set; }
  159. /// <summary>
  160. /// C表付款信息 备注
  161. /// </summary>
  162. public string? CcpRemark { get; set; }
  163. }
  164. /// <summary>
  165. /// 酒店预定
  166. /// Del
  167. /// </summary>
  168. public class HotelReservationsDelDto : UserPageFuncDtoBase
  169. {
  170. /// <summary>
  171. /// Id
  172. /// </summary>
  173. public int Id { get; set; }
  174. /// <summary>
  175. /// 团组Id
  176. /// </summary>
  177. public int DiId { get; set; }
  178. }
  179. /// <summary>
  180. /// 酒店预订
  181. /// 预订成本 excel 下载
  182. /// </summary>
  183. public class HotelReservations_PCFD_DTO : UserPageFuncDtoBase
  184. {
  185. public int DiId { get; set; }
  186. }
  187. #region 酒店预订 预订成本 excel 下载 参数验证
  188. public class HotelReservations_PCFD_DTOFoalidator : AbstractValidator<HotelReservations_PCFD_DTO>
  189. {
  190. public HotelReservations_PCFD_DTOFoalidator()
  191. {
  192. RuleFor(it => it.DiId)
  193. .GreaterThan(0)
  194. .WithMessage($"请传入有效的用户DiId值");
  195. }
  196. }
  197. #endregion
  198. /// <summary>
  199. /// 酒店预订
  200. /// 生成VOUCHER
  201. /// </summary>
  202. public class HotelReservationsCreateVoucherDto : UserPageFuncDtoBase
  203. {
  204. public int DiId { get; set; }
  205. public int Id { get; set; }
  206. }
  207. /// <summary>
  208. /// 酒店预订
  209. /// 确认单
  210. /// </summary>
  211. public class HotelReservationsConfirmationSlipDto : UserPageFuncDtoBase
  212. {
  213. public int DiId { get; set; }
  214. }
  215. #region 保留
  216. public class HotelReservationsDto
  217. {
  218. /// <summary>
  219. /// 请求端口分类
  220. /// 1 Web 2 Android 3 IOS
  221. /// </summary>
  222. public int PortType { get; set; } = 1;
  223. public int UserId { get; set; }
  224. public int DiId { get; set; }
  225. }
  226. /// <summary>
  227. /// 根据团组查询酒店预订列表数据
  228. /// </summary>
  229. public class HotelReservationsByDiIdDto: DtoBase
  230. {
  231. public int DiId { get; set; }
  232. }
  233. public class HotelReservationsByIdDto
  234. {
  235. public int Id { get; set; }
  236. }
  237. /// <summary>
  238. /// 编辑,新增参数
  239. /// </summary>
  240. public class OpHotelReservationsData
  241. {
  242. /// <summary>
  243. /// 操作状态
  244. /// 1 添加
  245. /// 2 修改
  246. /// </summary>
  247. public int Status { get; set; }
  248. public int Id { get; set; }
  249. /// <summary>
  250. /// 团组Id
  251. /// </summary>
  252. public int DiId { get; set; }
  253. /// <summary>
  254. /// 客人类型(设置数据外键编号)
  255. /// </summary>
  256. public int GTId { get; set; }
  257. /// <summary>
  258. /// 入住卷号码
  259. /// </summary>
  260. public string CheckNumber { get; set; }
  261. /// <summary>
  262. /// 预订网站(设置数据外键编号)
  263. /// </summary>
  264. public int ReservationsWebsite { get; set; }
  265. /// <summary>
  266. /// 预订号码
  267. /// </summary>
  268. public string ReservationsNo { get; set; }
  269. /// <summary>
  270. /// 酒店确定编号
  271. /// </summary>
  272. public string DetermineNo { get; set; }
  273. /// <summary>
  274. /// 所在城市
  275. /// </summary>
  276. public string City { get; set; }
  277. /// <summary>
  278. /// 酒店名称
  279. /// </summary>
  280. public string HotelName { get; set; }
  281. /// <summary>
  282. /// 酒店地址
  283. /// </summary>
  284. public string HotelAddress { get; set; }
  285. /// <summary>
  286. /// 酒店电话
  287. /// </summary>
  288. public string HotelTel { get; set; }
  289. /// <summary>
  290. /// 客人姓名
  291. /// </summary>
  292. public string GuestName { get; set; }
  293. /// <summary>
  294. /// 入住日期
  295. /// </summary>
  296. public string CheckInDate { get; set; }
  297. /// <summary>
  298. /// 退房日期
  299. /// </summary>
  300. public string CheckOutDate { get; set; }
  301. /// <summary>
  302. /// 预算币种(设置数据外键编号)
  303. /// </summary>
  304. public int BudgetCurrency { get; set; }
  305. /// <summary>
  306. /// 单间数量
  307. /// </summary>
  308. public int SingleRoomCount { get; set; }
  309. /// <summary>
  310. /// 单间单价
  311. /// </summary>
  312. public decimal SingleRoomPrice { get; set; }
  313. /// <summary>
  314. /// 双间数量
  315. /// </summary>
  316. public int DoubleRoomCount { get; set; }
  317. /// <summary>
  318. /// 双间单价
  319. /// </summary>
  320. public decimal DoubleRoomPrice { get; set; }
  321. /// <summary>
  322. /// 套房数量
  323. /// </summary>
  324. public int SuiteRoomCount { get; set; }
  325. /// <summary>
  326. /// 套房单价
  327. /// </summary>
  328. public decimal SuiteRoomPrice { get; set; }
  329. /// <summary>
  330. /// 其他房型数量
  331. /// </summary>
  332. public int OtherRoomCount { get; set; }
  333. /// <summary>
  334. /// 其他房型单价
  335. /// </summary>
  336. public decimal OtherRoomPrice { get; set; }
  337. /// <summary>
  338. /// 房间说明
  339. /// </summary>
  340. public string RoomExplanation { get; set; }
  341. /// <summary>
  342. /// 附件地址
  343. /// </summary>
  344. public string Attachment { get; set; }
  345. /// <summary>
  346. /// 信用卡刷卡类型
  347. /// </summary>
  348. public int CardPriceCurrency { get; set; }
  349. /// <summary>
  350. /// 信用卡金额
  351. /// </summary>
  352. public decimal CardPrice { get; set; }
  353. /// <summary>
  354. /// 预计单间数量
  355. /// </summary>
  356. public int PredictSingleRoom { get; set; }
  357. /// <summary>
  358. /// 预计双人间数量
  359. /// </summary>
  360. public int PredictDoubleRoom { get; set; }
  361. /// <summary>
  362. /// 预计套房数量
  363. /// </summary>
  364. public int PredictSuiteRoom { get; set; }
  365. /// <summary>
  366. /// 预计其他间数量
  367. /// </summary>
  368. public int PredictOtherRoom { get; set; }
  369. /// <summary>
  370. /// 地税
  371. /// </summary>
  372. public decimal GovernmentRent { get; set; }
  373. /// <summary>
  374. /// 地税币种
  375. /// </summary>
  376. public int GovernmentRentCurrency { get; set; }
  377. /// <summary>
  378. /// 城市税
  379. /// </summary>
  380. public decimal CityTax { get; set; }
  381. /// <summary>
  382. /// 城市税币种
  383. /// </summary>
  384. public int CityTaxCurrency { get; set; }
  385. /// <summary>
  386. /// 房间入住人类型
  387. /// </summary>
  388. public string CheckType { get; set; }
  389. /// <summary>
  390. /// 创建者Id
  391. /// </summary>
  392. public int CreateUserId { get; set; }
  393. /// <summary>
  394. /// 表备注
  395. /// </summary>
  396. public string Remark { get; set; }
  397. //C表参数
  398. /// <summary>
  399. /// 付款金额
  400. /// </summary>
  401. public decimal PayMoney { get; set; }
  402. /// <summary>
  403. /// 付款币种 数据类型Id
  404. /// </summary>
  405. public int PaymentCurrency { get; set; }
  406. /// <summary>
  407. /// 支付方式
  408. /// </summary>
  409. public int PayDId { get; set; }
  410. /// <summary>
  411. /// 消费方式
  412. /// </summary>
  413. public string ConsumptionPatterns { get; set; }
  414. /// <summary>
  415. /// 消费日期
  416. /// </summary>
  417. public String ConsumptionDate { get; set; }
  418. /// <summary>
  419. /// 卡类型
  420. /// </summary>
  421. public int CTDId { get; set; }
  422. /// <summary>
  423. /// 公司银行卡号
  424. /// </summary>
  425. public string CompanyBankNo { get; set; }
  426. /// <summary>
  427. /// 对方开户行
  428. /// </summary>
  429. public string OtherBankName { get; set; }
  430. /// <summary>
  431. /// 对方银行账号
  432. /// </summary>
  433. public string OtherSideNo { get; set; }
  434. /// <summary>
  435. /// 对方姓名
  436. /// </summary>
  437. public string OtherSideName { get; set; }
  438. /// <summary>
  439. /// 银行卡号
  440. /// </summary>
  441. public string BankNo { get; set; }
  442. /// <summary>
  443. /// 持卡人姓名
  444. /// </summary>
  445. public string CardholderName { get; set; }
  446. /// <summary>
  447. /// 收款方
  448. /// </summary>
  449. public string Payee { get; set; }
  450. /// <summary>
  451. /// 费用标识
  452. /// </summary>
  453. public int OrbitalPrivateTransfer { get; set; }
  454. /// <summary>
  455. /// C表备注
  456. /// </summary>
  457. public string CRemark { get; set; }
  458. }
  459. public class HotelReservationsCNYDto
  460. {
  461. /// <summary>
  462. /// 类型ID
  463. /// </summary>
  464. public int CTable { get; set; }
  465. /// <summary>
  466. /// 团组Id
  467. /// </summary>
  468. public int DiId { get; set; }
  469. /// <summary>
  470. /// 信用卡金额
  471. /// </summary>
  472. public decimal CardPrice { get; set; }
  473. /// <summary>
  474. /// 信用卡金额币种
  475. /// </summary>
  476. public int CardPriceCurrency { get; set; }
  477. /// <summary>
  478. /// 地税
  479. /// </summary>
  480. public decimal GovernmentRent { get; set; }
  481. /// <summary>
  482. /// 地税币种
  483. /// </summary>
  484. public int GovernmentRentCurrency { get; set; }
  485. /// <summary>
  486. /// 城市税
  487. /// </summary>
  488. public decimal CityTax { get; set; }
  489. /// <summary>
  490. /// 城市税币种
  491. /// </summary>
  492. public int CityTaxCurrency { get; set; }
  493. }
  494. #endregion
  495. }