EnterExitCostDto.cs 19 KB

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