EnterExitCostDto.cs 19 KB

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