EnterExitCostDto.cs 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798
  1. using OASystem.Domain.ViewModels.Groups;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace OASystem.Domain.Dtos.Groups
  8. {
  9. public class EnterExitCostDto
  10. {
  11. }
  12. /// <summary>
  13. /// 出入境费用详情 Dto
  14. /// </summary>
  15. public class EnterExitCostInfobyDiIdDto : PortDtoBase
  16. {
  17. /// <summary>
  18. /// 团组Id
  19. /// </summary>
  20. public int DiId { get; set; }
  21. }
  22. public class PostEnterExitCostMobileSubInfoDto : EnterExitCostInfobyDiIdDto
  23. {
  24. /// <summary>
  25. /// 费用项Type
  26. /// 1:境内费用 2:国际旅费 3:住宿费 4:伙食费 5:公杂费 6:培训费 7:其他
  27. /// </summary>
  28. public int SubType { get; set; }
  29. }
  30. /// <summary>
  31. /// 出入境费用 Add And Update Dto
  32. /// </summary>
  33. public class EnterExitCostOperateDto : PortDtoBase
  34. {
  35. public int UserId { get; set; }
  36. /// <summary>
  37. /// Id
  38. /// </summary>
  39. public int Id { get; set; }
  40. /// <summary>
  41. /// 团组Id
  42. /// </summary>
  43. public int DiId { get; set; }
  44. #region 境内费用(其他费用)
  45. /// <summary>
  46. /// 境内费用(其他费用)选择框
  47. /// </summary>
  48. public int ChoiceOne { get; set; }
  49. /// <summary>
  50. /// 境内费用(其他费用)
  51. /// </summary>
  52. public decimal InsidePay { get; set; }
  53. #region 境内费用(其他费用)子项
  54. /// <summary>
  55. /// 签证费
  56. /// </summary>
  57. public decimal Visa { get; set; }
  58. /// <summary>
  59. /// 签证费描述
  60. /// </summary>
  61. public string? VisaRemark { get; set; }
  62. /// <summary>
  63. /// 疫苗费
  64. /// </summary>
  65. public decimal YiMiao { get; set; }
  66. /// <summary>
  67. /// 核酸检测费用
  68. /// </summary>
  69. public decimal HeSuan { get; set; }
  70. /// <summary>
  71. /// 服务费用
  72. /// </summary>
  73. public decimal Service { get; set; }
  74. /// <summary>
  75. /// 参展门票
  76. /// </summary>
  77. public decimal Ticket { get; set; }
  78. /// <summary>
  79. /// 保险费
  80. /// </summary>
  81. public decimal Safe { get; set; }
  82. public string FirstItemRemark { get; set; }
  83. #endregion
  84. #endregion
  85. #region 国际旅费
  86. /// <summary>
  87. /// 国际旅费合计选择框
  88. /// </summary>
  89. public int ChoiceTwo { get; set; }
  90. /// <summary>
  91. /// 经济舱小计选择框
  92. /// </summary>
  93. public int SumJJC { get; set; }
  94. /// <summary>
  95. /// 公务舱小计选择框
  96. /// </summary>
  97. public int SumGWC { get; set; }
  98. /// <summary>
  99. /// 公务舱小计选择框
  100. /// </summary>
  101. public int SumTDC { get; set; }
  102. #region 国际旅费子项
  103. /// <summary>
  104. /// 国际旅费合计(经济舱)
  105. /// </summary>
  106. public decimal OutsideJJPay { get; set; }
  107. /// <summary>
  108. /// 国际旅费合计(公务舱)
  109. /// </summary>
  110. public decimal OutsideGWPay { get; set; }
  111. /// <summary>
  112. /// 国际旅费合计(头等舱)
  113. /// </summary>
  114. public decimal OutsideTDPay { get; set; }
  115. /// <summary>
  116. /// 国际机票(经济舱)
  117. /// </summary>
  118. public decimal AirJJ { get; set; }
  119. /// <summary>
  120. /// 国际机票(公务舱)
  121. /// </summary>
  122. public decimal AirGW { get; set; }
  123. /// <summary>
  124. /// 国际机票(头等舱)
  125. /// </summary>
  126. public decimal AirTD { get; set; }
  127. /// <summary>
  128. /// 国外城市间交通费
  129. /// </summary>
  130. public decimal CityTranffic { get; set; }
  131. /// <summary>
  132. /// 多个币种存储
  133. /// 存储方式: 美元(USD):6.2350|.......|墨西哥比索(MXN):1.0000
  134. /// </summary>
  135. public List<CurrencyInfo>? Currencys { get; set; }
  136. #endregion
  137. #endregion
  138. #region 住宿费
  139. /// <summary>
  140. /// 住宿费合计选择框
  141. /// </summary>
  142. public int ChoiceThree { get; set; }
  143. /// <summary>
  144. /// 住宿费子项Data
  145. /// </summary>
  146. public List<DayAndCostAddView>? QuarterageData { get; set; }
  147. #endregion
  148. #region 伙食费
  149. /// <summary>
  150. /// 伙食费合计选择框
  151. /// </summary>
  152. public int ChoiceFour { get; set; }
  153. /// <summary>
  154. /// 伙食费子项Data
  155. /// </summary>
  156. public List<DayAndCostAddView>? BoardWagesData { get; set; }
  157. #endregion
  158. #region 公杂费
  159. /// <summary>
  160. /// 公杂费合计选择框
  161. /// </summary>
  162. public int ChoiceFive { get; set; }
  163. /// <summary>
  164. /// 公杂费子项Data
  165. /// </summary>
  166. public List<DayAndCostAddView>? MiscellaneousFeeData { get; set; }
  167. #endregion
  168. #region 培训费
  169. /// <summary>
  170. /// 培训费用选择框
  171. /// </summary>
  172. public int ChoiceSix { get; set; }
  173. /// <summary>
  174. /// 培训费子项Data
  175. /// </summary>
  176. public List<DayAndCostAddView>? TrainingExpenseData { get; set; }
  177. #endregion
  178. #region 其他费用
  179. /// <summary>
  180. /// 其他费用选择框
  181. /// </summary>
  182. public int OtherExpenses_Checked { get; set; }
  183. /// <summary>
  184. /// 培训费子项Data
  185. /// </summary>
  186. public List<DayOtherPriceView> DayOtherPriceData { get; set; }
  187. #endregion
  188. #region 最下面 选择框状态
  189. /// <summary>
  190. /// 经济舱选择框
  191. /// </summary>
  192. public int AirJJC_Checked { get; set; }
  193. /// <summary>
  194. /// 公务舱选择框
  195. /// </summary>
  196. public int AirGWC_Checked { get; set; }
  197. /// <summary>
  198. /// 公务舱选择框
  199. /// </summary>
  200. public int AirTDC_Checked { get; set; }
  201. #endregion
  202. }
  203. public class ConfirmCostDto {
  204. /// <summary>
  205. /// 类型
  206. /// 1:确认 2:撤回
  207. /// </summary>
  208. public int Type { get; set; }
  209. /// <summary>
  210. /// 数据Id
  211. /// </summary>
  212. public int Id { get; set; }
  213. }
  214. /// <summary>
  215. /// 出入境费用 - 表格导出 Dto
  216. /// </summary>
  217. public class EnterExitCostDownloadDto : PortDtoBase
  218. {
  219. public int DiId { get; set; }
  220. /// <summary>
  221. /// 模板类型
  222. /// 1 明细表
  223. /// 2 表格
  224. /// 3 团组成员名单
  225. /// </summary>
  226. public int ExportType { get; set; }
  227. /// <summary>
  228. /// 类型Id
  229. /// </summary>
  230. public int SubTypeId { get; set; }
  231. }
  232. /// <summary>
  233. /// 出入境费用 - 一键清空 dto
  234. /// </summary>
  235. public class EnterExitCostOneClickClearDto : PortDtoBase
  236. {
  237. public int UserId { get; set; }
  238. public int DiId { get; set; }
  239. public int Id { get; set; }
  240. }
  241. /// <summary>
  242. /// 团组模块 - 出入境国家费用标准 Page List
  243. /// </summary>
  244. public class NationalTravelFeePageDto : DtoBase
  245. {
  246. /// <summary>
  247. /// 国家
  248. /// </summary>
  249. public string Country { get; set; }
  250. /// <summary>
  251. /// 城市
  252. /// </summary>
  253. public string City { get; set; }
  254. }
  255. /// <summary>
  256. /// 团组模块 - 出入境国家费用标准
  257. /// 根据国家城市查询Dto
  258. /// </summary>
  259. public class NationalTravelFeeByCountryAndCityDto : PortDtoBase
  260. {
  261. /// <summary>
  262. /// 国家
  263. /// </summary>
  264. public string Country { get; set; }
  265. /// <summary>
  266. /// 城市
  267. /// </summary>
  268. public string City { get; set; }
  269. }
  270. /// <summary>
  271. /// 出入境费用子项删除
  272. /// </summary>
  273. public class EnterExitCostSubItemDelDto : DelBaseDto
  274. { }
  275. /// <summary>
  276. /// 团组模块 - 出入境国家费用标准 - Del
  277. /// </summary>
  278. public class NationalTravelFeeDelDto : DelBaseDto
  279. {
  280. }
  281. /// <summary>
  282. /// 团组模块 - 出入境国家费用标准 - Add Or Update Dto
  283. /// </summary>
  284. public class NationalTravelFeeOperateDto:PortDtoBase
  285. {
  286. /// <summary>
  287. /// 编号
  288. /// add Id = 0 Or Update Id=Id值
  289. /// </summary>
  290. public int Id { get; set; }
  291. /// <summary>
  292. /// 创建者Id
  293. /// </summary>
  294. public int UserId { get; set; }
  295. /// <summary>
  296. /// 洲别
  297. /// </summary>
  298. public string? Continent { get; set; }
  299. /// <summary>
  300. /// 国家
  301. /// </summary>
  302. public string? Country { get; set; }
  303. /// <summary>
  304. /// 城市
  305. /// </summary>
  306. public string? City { get; set; }
  307. /// <summary>
  308. /// 币种
  309. /// Sys_SetData STid=66
  310. /// </summary>
  311. public int Currency { get; set; }
  312. /// <summary>
  313. /// 住宿费
  314. /// </summary>
  315. public decimal? RoomCost { get; set; } = 0;
  316. /// <summary>
  317. /// 伙食费
  318. /// </summary>
  319. public decimal? FoodCost { get; set; } = 0;
  320. /// <summary>
  321. /// 公杂费
  322. /// </summary>
  323. public decimal? PublicCost { get; set; } = 0;
  324. /// <summary>
  325. /// 备注
  326. /// </summary>
  327. public string? Remark { get; set; }
  328. }
  329. #region Mobile Request Dto
  330. public class PostEnterExitCostMobileGroupDataDto : DtoBase
  331. {
  332. public string GroupName { get; set; }
  333. }
  334. public class PostEnterExitCostMobileCurrencyDataDto : DtoBase
  335. {
  336. public string CurrencyName { get; set; }
  337. }
  338. public class PostEnterExitCostMobileOtherItemCurrencyDataDto : PortDtoBase
  339. {
  340. public int DiId { get; set; }
  341. }
  342. public class GetEnterExitCostMobileFeeTipsDto : PortDtoBase {
  343. /// <summary>
  344. /// 团组Id
  345. /// </summary>
  346. public int GroupId { get; set; }
  347. /// <summary>
  348. /// 提示数据类型
  349. /// 1 实时汇率
  350. /// 2 签证费用
  351. /// 3 机票费用
  352. /// </summary>
  353. public int TipsType { get; set; }
  354. }
  355. public class PostNationalTravelFeeMobileDataDto :DtoBase
  356. {
  357. /// <summary>
  358. /// 搜索条件
  359. /// </summary>
  360. public string Search { get; set; }
  361. }
  362. public class PostNationalTravelFeeMobileInfoDto : PortDtoBase
  363. {
  364. public int DiId { get; set; }
  365. }
  366. #region op
  367. public class PostEnterExitCostMobileUpdateDtoBase : PortDtoBase {
  368. public int Id { get; set; }
  369. public int DiId { get; set; }
  370. public int CurrUserId { get; set; }
  371. }
  372. public class PostEnterExitCostMobileFeeRateOpDto : PostEnterExitCostMobileUpdateDtoBase
  373. {
  374. /// <summary>
  375. /// 多个币种存储
  376. /// 存储方式: 美元(USD):6.2350|.......|墨西哥比索(MXN):1.0000
  377. /// </summary>
  378. public CurrencyInfo[] Currencys { get; set; }
  379. }
  380. public class PostEnterExitCostMobileFeeOpCheckboxDto : PostEnterExitCostMobileUpdateDtoBase
  381. {
  382. /// <summary>
  383. /// 境内费用(其他费用)选择框
  384. /// </summary>
  385. public int ChoiceOne { get; set; }
  386. /// <summary>
  387. /// 国际旅费合计选择框
  388. /// </summary>
  389. public int ChoiceTwo { get; set; }
  390. /// <summary>
  391. /// 经济舱小计选择框
  392. /// </summary>
  393. public int SumJJC { get; set; }
  394. /// <summary>
  395. /// 公务舱小计选择框
  396. /// </summary>
  397. public int SumGWC { get; set; }
  398. /// <summary>
  399. /// 公务舱小计选择框
  400. /// </summary>
  401. public int SumTDC { get; set; }
  402. /// <summary>
  403. /// 住宿费合计选择框
  404. /// </summary>
  405. public int ChoiceThree { get; set; }
  406. /// <summary>
  407. /// 伙食费合计选择框
  408. /// </summary>
  409. public int ChoiceFour { get; set; }
  410. /// <summary>
  411. /// 公杂费合计选择框
  412. /// </summary>
  413. public int ChoiceFive { get; set; }
  414. /// <summary>
  415. /// 培训费用选择框
  416. /// </summary>
  417. public int ChoiceSix { get; set; }
  418. /// <summary>
  419. /// 其他费用选择框
  420. /// </summary>
  421. public int OtherExpenses_Checked { get; set; }
  422. }
  423. public class EnterExitCostMobileOpSingleCheckboxDto: PostEnterExitCostMobileUpdateDtoBase
  424. {
  425. /// <summary>
  426. /// 子项复选框类型
  427. /// 3:住宿费; 4:伙食费; 5:公杂费; 6:培训费;7:其他;
  428. /// </summary>
  429. public int ItemType { get; set; }
  430. /// <summary>
  431. /// 是否选中
  432. /// 0 未选择 1 选中
  433. /// </summary>
  434. public int IsSelected { get; set; }
  435. }
  436. public class PostEnterExitCostMobileOpStep1Dto : PostEnterExitCostMobileUpdateDtoBase
  437. {
  438. /// <summary>
  439. /// 复选框选中
  440. /// 0 未选中 1 选中
  441. /// </summary>
  442. public int ChoiceOne { get; set; }
  443. /// <summary>
  444. /// 签证费
  445. /// </summary>
  446. public decimal Visa { get; set; }
  447. /// <summary>
  448. /// 签证费描述
  449. /// </summary>
  450. public string? VisaRemark { get; set; }
  451. /// <summary>
  452. /// 疫苗费
  453. /// </summary>
  454. public decimal YiMiao { get; set; }
  455. /// <summary>
  456. /// 核酸检测费用
  457. /// </summary>
  458. public decimal HeSuan { get; set; }
  459. /// <summary>
  460. /// 服务费用
  461. /// </summary>
  462. public decimal Service { get; set; }
  463. /// <summary>
  464. /// 参展门票
  465. /// </summary>
  466. public decimal Ticket { get; set; }
  467. /// <summary>
  468. /// 保险费
  469. /// </summary>
  470. public decimal Safe { get; set; }
  471. public string FirstItemRemark { get; set; }
  472. }
  473. public class PostEnterExitCostMobileOpStep2Dto : PostEnterExitCostMobileUpdateDtoBase
  474. {
  475. /// <summary>
  476. /// 复选框选中(经济舱)
  477. /// 0 未选中 1 选中
  478. /// </summary>
  479. public int ChoiceTwoJJ { get; set; }
  480. /// <summary>
  481. /// 国际旅费合计(经济舱)
  482. /// </summary>
  483. public decimal OutsideJJPay { get; set; }
  484. /// <summary>
  485. /// 复选框选中(公务舱)
  486. /// 0 未选中 1 选中
  487. /// </summary>
  488. public int ChoiceTwoGW { get; set; }
  489. /// <summary>
  490. /// 国际旅费合计(公务舱)
  491. /// </summary>
  492. public decimal OutsideGWPay { get; set; }
  493. /// <summary>
  494. /// 复选框选中(头等舱)
  495. /// 0 未选中 1 选中
  496. /// </summary>
  497. public int ChoiceTwoTD { get; set; }
  498. /// <summary>
  499. /// 国际旅费合计(头等舱)
  500. /// </summary>
  501. public decimal OutsideTDPay { get; set; }
  502. /// <summary>
  503. /// 国际机票(经济舱)
  504. /// </summary>
  505. public decimal AirJJ { get; set; }
  506. /// <summary>
  507. /// 国际机票(公务舱)
  508. /// </summary>
  509. public decimal AirGW { get; set; }
  510. /// <summary>
  511. /// 国际机票(头等舱)
  512. /// </summary>
  513. public decimal AirTD { get; set; }
  514. /// <summary>
  515. /// 国外城市间交通费
  516. /// </summary>
  517. public decimal CityTranffic { get; set; }
  518. }
  519. public class PostEnterExitCostMobileOpStep3To6Dto
  520. {
  521. public int PortType { get; set; }
  522. public int DiId { get; set; }
  523. public int CurrUserId { get; set; }
  524. /// <summary>
  525. /// 费用类型
  526. /// 1 住宿费;2 伙食费;3 公杂费;4 培训费
  527. /// </summary>
  528. public int FeeType { get; set; }
  529. /// <summary>
  530. /// 详情
  531. /// </summary>
  532. public DayAndCostMobileInfoDto[] Infos { get; set; }
  533. }
  534. public class PostEnterExitCostMobileOpSingleStep3To6Dto : DayAndCostMobileInfoDto
  535. {
  536. public int PortType { get; set; }
  537. public int DiId { get; set; }
  538. public int CurrUserId { get; set; }
  539. /// <summary>
  540. /// 数据主表Id
  541. /// </summary>
  542. //public int ParentId { get; set; }
  543. /// <summary>
  544. /// 复选框
  545. /// 0 未选中 1 选中
  546. /// </summary>
  547. //public int IsSelect { get; set; }
  548. /// <summary>
  549. /// 费用类型
  550. /// 3 住宿费;4 伙食费;5 公杂费;6 培训费
  551. /// </summary>
  552. public int FeeType { get; set; }
  553. }
  554. public class DayAndCostMobileInfoDto
  555. {
  556. /// <summary>
  557. /// 数据子表Id
  558. /// </summary>
  559. public int SubId { get; set; }
  560. /// <summary>
  561. /// 天数
  562. /// </summary>
  563. public int Days { get; set; }
  564. /// <summary>
  565. /// 地名Id
  566. /// </summary>
  567. public int NationalTravelFeeId { get; set; }
  568. /// <summary>
  569. /// 费用标准
  570. /// </summary>
  571. public decimal Cost { get; set; }
  572. /// <summary>
  573. /// 币种
  574. /// Sys_SetData STid = 66
  575. /// </summary>
  576. public int Currency { get; set; }
  577. /// <summary>
  578. /// 小计
  579. /// </summary>
  580. public decimal SubTotal { get; set; }
  581. }
  582. public class PostEnterExitCostMobileOpStep7Dto
  583. {
  584. public int PortType { get; set; }
  585. public int DiId { get; set; }
  586. public int CurrUserId { get; set; }
  587. /// <summary>
  588. /// 详情
  589. /// </summary>
  590. public DayOtherPriceMobileInfoDto[] Infos { get; set; }
  591. }
  592. public class PostEnterExitCostMobileOpSingleStep7Dto : DayOtherPriceMobileInfoDto
  593. {
  594. public int PortType { get; set; }
  595. //public int DiId { get; set; }
  596. public int CurrUserId { get; set; }
  597. ///// <summary>
  598. ///// 数据主表Id
  599. ///// </summary>
  600. //public int ParentId { get; set; }
  601. ///// <summary>
  602. ///// 复选框
  603. ///// 0 未选中 1 选中
  604. ///// </summary>
  605. //public int IsSelect { get; set; }
  606. }
  607. public class DayOtherPriceMobileInfoDto
  608. {
  609. public int SubId { get; set; }
  610. public int Diid { get; set; }
  611. public int SetDataId { get; set; }
  612. public int Index { get; set; }
  613. public decimal Cost { get; set; }
  614. public int Currency { get; set; }
  615. public decimal SubTotal { get; set; }
  616. public string Remark { get; set; }
  617. }
  618. #endregion
  619. #endregion
  620. }