EnterExitCostView.cs 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215
  1. using OASystem.Domain.Entities.Groups;
  2. using OASystem.Domain.ViewModels.Financial;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Data.SqlTypes;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace OASystem.Domain.ViewModels.Groups
  10. {
  11. /// <summary>
  12. /// 出入境费用 View
  13. /// </summary>
  14. public class EnterExitCostView:Grp_EnterExitCost { }
  15. /// <summary>
  16. /// 出入境国家(城市)费用标准 View
  17. /// </summary>
  18. public class NationalTravelFeeView : Grp_NationalTravelFee { }
  19. /// <summary>
  20. /// 出入境国家(城市)费用标准Info View
  21. /// </summary>
  22. public class NationalTravelFeeInfoView
  23. {
  24. /// <summary>
  25. /// Id
  26. /// </summary>
  27. public int Id { get; set; }
  28. /// <summary>
  29. /// 洲别
  30. /// </summary>
  31. public string? Continent { get; set; }
  32. /// <summary>
  33. /// 国家
  34. /// </summary>
  35. public string? Country { get; set; }
  36. /// <summary>
  37. /// 城市
  38. /// </summary>
  39. public string? City { get; set; }
  40. /// <summary>
  41. /// 币种
  42. /// Sys_SetData STid=66
  43. /// </summary>
  44. public int Currency { get; set; }
  45. /// <summary>
  46. /// 币种code
  47. /// </summary>
  48. public string? CurrencyCode { get; set; }
  49. /// <summary>
  50. /// 币种Name
  51. /// </summary>
  52. public string? CurrencyName { get; set; }
  53. /// <summary>
  54. /// 住宿费
  55. /// </summary>
  56. public decimal RoomCost { get; set; } = 0;
  57. /// <summary>
  58. /// 伙食费
  59. /// </summary>
  60. public decimal FoodCost { get; set; } = 0;
  61. /// <summary>
  62. /// 公杂费
  63. /// </summary>
  64. public decimal PublicCost { get; set; } = 0;
  65. /// <summary>
  66. /// 最后更新人 Id
  67. /// </summary>
  68. public int LastUpdateUserId { get; set; }
  69. /// <summary>
  70. /// 最后更新人 name
  71. /// </summary>
  72. public string? LastUpdateUserName { get; set; }
  73. /// <summary>
  74. /// 最后更新时间
  75. /// </summary>
  76. public DateTime? LastUpdateTime { get; set; }
  77. }
  78. /// <summary>
  79. /// 出入境国家(城市)费用标准 Page Info View
  80. /// </summary>
  81. public class NationalTravelFeePageInfoView
  82. {
  83. /// <summary>
  84. /// 行号
  85. /// </summary>
  86. public int RowNumber { get; set; }
  87. public int Id { get; set; }
  88. /// <summary>
  89. /// 洲别
  90. /// </summary>
  91. public string? Continent { get; set; }
  92. /// <summary>
  93. /// 国家
  94. /// </summary>
  95. public string? Country { get; set; }
  96. /// <summary>
  97. /// 城市
  98. /// </summary>
  99. public string? City { get; set; }
  100. /// <summary>
  101. /// 币种
  102. /// Sys_SetData STid=66
  103. /// </summary>
  104. public int Currency { get; set; }
  105. /// <summary>
  106. /// 币种code
  107. /// </summary>
  108. public string CurrencyCode { get; set; }
  109. /// <summary>
  110. /// 币种名称
  111. /// </summary>
  112. public string CurrencyName { get; set; }
  113. /// <summary>
  114. /// 住宿费
  115. /// </summary>
  116. public decimal RoomCost { get; set; }
  117. /// <summary>
  118. /// 伙食费
  119. /// </summary>
  120. public decimal FoodCost { get; set; }
  121. /// <summary>
  122. /// 公杂费
  123. /// </summary>
  124. public decimal PublicCost { get; set; }
  125. /// <summary>
  126. /// 备注
  127. /// </summary>
  128. public string Remark { get; set; }
  129. /// <summary>
  130. /// 最后更新人
  131. /// </summary>
  132. public int LastUpdateUserId { get; set; }
  133. /// <summary>
  134. /// 最后更新人
  135. /// </summary>
  136. public string LastUpdateUserName { get; set; }
  137. /// <summary>
  138. /// 最后更新时间
  139. /// </summary>
  140. public DateTime? LastUpdateTime { get; set; } = DateTime.Now;
  141. }
  142. /// <summary>
  143. /// 出入境国家(城市)费用标准 Info View
  144. /// </summary>
  145. public class NationalTravelFeeInfoByCountryAndCityView
  146. {
  147. /// <summary>
  148. /// 洲别
  149. /// </summary>
  150. public string? Continent { get; set; }
  151. /// <summary>
  152. /// 国家
  153. /// </summary>
  154. public string? Country { get; set; }
  155. /// <summary>
  156. /// 城市
  157. /// </summary>
  158. public string? City { get; set; }
  159. /// <summary>
  160. /// 币种
  161. /// Sys_SetData STid=66
  162. /// </summary>
  163. public int Currency { get; set; }
  164. /// <summary>
  165. /// 币种code
  166. /// </summary>
  167. public string CurrencyCode { get; set; }
  168. /// <summary>
  169. /// 币种名称
  170. /// </summary>
  171. public string CurrencyName { get; set; }
  172. /// <summary>
  173. /// 住宿费
  174. /// </summary>
  175. public decimal RoomCost { get; set; }
  176. /// <summary>
  177. /// 伙食费
  178. /// </summary>
  179. public decimal FoodCost { get; set; }
  180. /// <summary>
  181. /// 公杂费
  182. /// </summary>
  183. public decimal PublicCost { get; set; }
  184. /// <summary>
  185. /// 备注
  186. /// </summary>
  187. public string Remark { get; set; }
  188. /// <summary>
  189. /// 最后更新人
  190. /// </summary>
  191. public int LastUpdateUserId { get; set; }
  192. /// <summary>
  193. /// 最后更新人
  194. /// </summary>
  195. public string LastUpdateUserName { get; set; }
  196. /// <summary>
  197. /// 最后更新时间
  198. /// </summary>
  199. public DateTime? LastUpdateTime { get; set; } = DateTime.Now;
  200. }
  201. /// <summary>
  202. /// 出入境费用info
  203. /// </summary>
  204. public class EnterExitCostInfoView
  205. {
  206. /// <summary>
  207. /// Id
  208. /// </summary>
  209. public int Id { get; set; }
  210. /// <summary>
  211. /// 团组Id
  212. /// </summary>
  213. public int DiId { get; set; }
  214. /// <summary>
  215. /// 境内费用(其他费用)
  216. /// </summary>
  217. public decimal InsidePay { get; set; }
  218. #region 境内费用(其他费用)子项
  219. /// <summary>
  220. /// 签证费
  221. /// </summary>
  222. public decimal Visa { get; set; }
  223. /// <summary>
  224. /// 签证费描述
  225. /// </summary>
  226. public string? VisaRemark { get; set; }
  227. /// <summary>
  228. /// 疫苗费
  229. /// </summary>
  230. public decimal YiMiao { get; set; }
  231. /// <summary>
  232. /// 核酸检测费用
  233. /// </summary>
  234. public decimal HeSuan { get; set; }
  235. /// <summary>
  236. /// 服务费用
  237. /// </summary>
  238. public decimal Service { get; set; }
  239. /// <summary>
  240. /// 参展门票
  241. /// </summary>
  242. public decimal Ticket { get; set; }
  243. /// <summary>
  244. /// 保险费
  245. /// </summary>
  246. public decimal Safe { get; set; }
  247. public string FirstItemRemark { get; set; }
  248. #endregion
  249. /// <summary>
  250. /// 国际旅费合计(经济舱)
  251. /// </summary>
  252. public decimal OutsideJJPay { get; set; }
  253. /// <summary>
  254. /// 国际旅费合计(公务舱)
  255. /// </summary>
  256. public decimal OutsideGWPay { get; set; }
  257. /// <summary>
  258. /// 国际旅费合计(头等舱)
  259. /// </summary>
  260. public decimal OutsideTDPay { get; set; }
  261. #region 国际旅费合计(经济舱\公务舱\头等舱)
  262. /// <summary>
  263. /// 国际机票(经济舱)
  264. /// </summary>
  265. public decimal AirJJ { get; set; }
  266. /// <summary>
  267. /// 国际机票(公务舱)
  268. /// </summary>
  269. public decimal AirGW { get; set; }
  270. /// <summary>
  271. /// 国际机票(头等舱)
  272. /// </summary>
  273. public decimal AirTD { get; set; }
  274. /// <summary>
  275. /// 国外城市间交通费
  276. /// </summary>
  277. public decimal CityTranffic { get; set; }
  278. #region 汇率币种
  279. /// <summary>
  280. /// 多个币种存储
  281. /// 存储方式: 美元(USD):6.2350|.......|墨西哥比索(MXN):1.0000
  282. /// </summary>
  283. public List<CurrencyInfo>? Currencys{ get; set; }
  284. #endregion
  285. #endregion
  286. #region 选择框状态
  287. /// <summary>
  288. /// 境内费用(其他费用)选择框
  289. /// </summary>
  290. public int ChoiceOne { get; set; }
  291. /// <summary>
  292. /// 国际旅费合计选择框
  293. /// </summary>
  294. public int ChoiceTwo { get; set; }
  295. /// <summary>
  296. /// 经济舱小计选择框
  297. /// </summary>
  298. public int SumJJC { get; set; }
  299. /// <summary>
  300. /// 公务舱小计选择框
  301. /// </summary>
  302. public int SumGWC { get; set; }
  303. /// <summary>
  304. /// 头等舱小计选择框
  305. /// </summary>
  306. public int SumTDC { get; set; }
  307. /// <summary>
  308. /// 住宿费合计选择框
  309. /// </summary>
  310. public int ChoiceThree { get; set; }
  311. /// <summary>
  312. /// 住宿费子项Data
  313. /// </summary>
  314. public List<DayAndCostInfoView>? QuarterageData { get; set; }
  315. /// <summary>
  316. /// 伙食费合计选择框
  317. /// </summary>
  318. public int ChoiceFour { get; set; }
  319. /// <summary>
  320. /// 伙食费子项Data
  321. /// </summary>
  322. public List<DayAndCostInfoView>? BoardWagesData { get; set; }
  323. /// <summary>
  324. /// 公杂费合计选择框
  325. /// </summary>
  326. public int ChoiceFive { get; set; }
  327. /// <summary>
  328. /// 公杂费子项Data
  329. /// </summary>
  330. public List<DayAndCostInfoView>? MiscellaneousFeeData { get; set; }
  331. /// <summary>
  332. /// 培训费用选择框
  333. /// </summary>
  334. public int ChoiceSix { get; set; }
  335. /// <summary>
  336. /// 培训费子项Data
  337. /// </summary>
  338. public List<DayAndCostInfoView>? TrainingExpenseData { get; set; }
  339. /// <summary>
  340. /// 经济舱选择框
  341. /// </summary>
  342. public int AirJJC_Checked { get; set; }
  343. /// <summary>
  344. /// 公务舱选择框
  345. /// </summary>
  346. public int AirGWC_Checked { get; set; }
  347. /// <summary>
  348. /// 头等舱选择框
  349. /// </summary>
  350. public int AirTDC_Checked { get; set; }
  351. /// <summary>
  352. /// 其他款项选择框
  353. /// </summary>
  354. public int OtherExpenses_Checked { get; set; }
  355. /// <summary>
  356. /// 其他款项子项Data
  357. /// </summary>
  358. public List<DayOtherPriceView> DayOtherPriceData { get; set; }
  359. #endregion
  360. }
  361. #region 移动端
  362. #region info View
  363. public class EnterExitCostMobileInfoView
  364. {
  365. public int Id { get; set; }
  366. public int DiId { get; set; }
  367. #region 汇率币种
  368. /// <summary>
  369. /// 多个币种存储
  370. /// 存储方式: 美元(USD):6.2350|.......|墨西哥比索(MXN):1.0000
  371. /// </summary>
  372. public List<CurrencyInfo>? Currencys { get; set; }
  373. #endregion
  374. #region 1:境内费用(其他费用)
  375. /// <summary>
  376. /// 境内费用(其他费用)选择框
  377. /// </summary>
  378. public int ChoiceOne { get; set; }
  379. /// <summary>
  380. /// 境内费用(其他费用) 合计
  381. /// </summary>
  382. public decimal ChoiceOneTotalCost { get; set; }
  383. /// <summary>
  384. /// 境内费用(其他费用) 详情
  385. /// </summary>
  386. public ChoiceOneMobileInfoView ChoiceOneDetails { get; set; }
  387. #endregion
  388. #region 2:国际旅费
  389. /// <summary>
  390. /// 国际旅费合计选择框
  391. /// </summary>
  392. public int ChoiceTwo { get; set; }
  393. /// <summary>
  394. /// 国际旅费合计(经济舱)
  395. /// </summary>
  396. public decimal OutsideJJPay { get; set; }
  397. /// <summary>
  398. /// 国际旅费合计(公务舱)
  399. /// </summary>
  400. public decimal OutsideGWPay { get; set; }
  401. /// <summary>
  402. /// 国际旅费合计(头等舱)
  403. /// </summary>
  404. public decimal OutsideTDPay { get; set; }
  405. /// <summary>
  406. /// 国际旅费 详情
  407. /// </summary>
  408. public ChoiceTwoMobileInfoView ChoiceTwoDetails { get; set; }
  409. #endregion
  410. #region 3:住宿费
  411. /// <summary>
  412. /// 住宿费合计 选择框
  413. /// </summary>
  414. public int ChoiceThree { get; set; }
  415. /// <summary>
  416. /// 住宿费合计
  417. /// </summary>
  418. public decimal ChoiceThreeTotalCost { get { return ChoiceThreeDetails.Sum(x => x.SubTotal); } }
  419. /// <summary>
  420. /// 住宿费子项 Data
  421. /// </summary>
  422. public DayAndCostMobileInfoView[]? ChoiceThreeDetails { get; set; }
  423. #endregion
  424. #region 4:伙食费
  425. /// <summary>
  426. /// 伙食费合计 选择框
  427. /// </summary>
  428. public int ChoiceFour { get; set; }
  429. /// <summary>
  430. /// 伙食费合计
  431. /// </summary>
  432. public decimal ChoiceFourTotalCost { get { return ChoiceFourDetails.Sum(x => x.SubTotal); } }
  433. /// <summary>
  434. /// 伙食费子项Data
  435. /// </summary>
  436. public DayAndCostMobileInfoView[]? ChoiceFourDetails { get; set; }
  437. #endregion
  438. #region 5:公杂费
  439. /// <summary>
  440. /// 公杂费合计 选择框
  441. /// </summary>
  442. public int ChoiceFive { get; set; }
  443. /// <summary>
  444. /// 公杂费合计
  445. /// </summary>
  446. public decimal ChoiceFiveTotalCost { get { return ChoiceFiveDetails.Sum(x => x.SubTotal); } }
  447. /// <summary>
  448. /// 公杂费子项Data
  449. /// </summary>
  450. public DayAndCostMobileInfoView[]? ChoiceFiveDetails { get; set; }
  451. #endregion
  452. #region 6:培训费
  453. /// <summary>
  454. /// 培训费用选择框
  455. /// </summary>
  456. public int ChoiceSix { get; set; }
  457. /// <summary>
  458. /// 公杂费合计
  459. /// </summary>
  460. public decimal ChoiceSixTotalCost { get { return ChoiceSixDetails.Sum(x => x.SubTotal); } }
  461. /// <summary>
  462. /// 培训费子项Data
  463. /// </summary>
  464. public DayAndCostMobileInfoView[]? ChoiceSixDetails { get; set; }
  465. #endregion
  466. #region 7:其他
  467. /// <summary>
  468. /// 其他款项 选择框
  469. /// </summary>
  470. public int OtherExpenses_Checked { get; set; }
  471. /// <summary>
  472. /// 其他款项 选择框
  473. /// </summary>
  474. public decimal OtherExpensesTotalCost { get { return OtherExpensesDetails.Sum(x => x.SubTotal); } }
  475. /// <summary>
  476. /// 其他款项子项Data
  477. /// </summary>
  478. public DayOtherPriceMobileInfoView[] OtherExpensesDetails { get; set; }
  479. #endregion
  480. /// <summary>
  481. /// 经济舱费用总计
  482. /// </summary>
  483. public decimal TouristClassTotalCost
  484. {
  485. get
  486. {
  487. return OutsideJJPay <= 0 ? 0.00M : OutsideJJPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
  488. }
  489. }
  490. /// <summary>
  491. /// 公务舱费用总计
  492. /// </summary>
  493. public decimal BusinessClassTotalCost
  494. {
  495. get
  496. {
  497. return OutsideGWPay <= 0 ? 0.00M : OutsideGWPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
  498. }
  499. }
  500. /// <summary>
  501. /// 头等舱费用总计
  502. /// </summary>
  503. public decimal FirstClassTotalCost
  504. {
  505. get
  506. {
  507. return OutsideTDPay <= 0 ? 0.00M : OutsideTDPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
  508. }
  509. }
  510. }
  511. public class ChoiceOneMobileInfoView
  512. {
  513. /// <summary>
  514. /// 签证费
  515. /// </summary>
  516. public decimal Visa { get; set; }
  517. /// <summary>
  518. /// 签证费描述
  519. /// </summary>
  520. public string? VisaRemark { get; set; }
  521. /// <summary>
  522. /// 疫苗费
  523. /// </summary>
  524. public decimal YiMiao { get; set; }
  525. /// <summary>
  526. /// 核酸检测费用
  527. /// </summary>
  528. public decimal HeSuan { get; set; }
  529. /// <summary>
  530. /// 服务费用
  531. /// </summary>
  532. public decimal Service { get; set; }
  533. /// <summary>
  534. /// 参展门票
  535. /// </summary>
  536. public decimal Ticket { get; set; }
  537. /// <summary>
  538. /// 保险费
  539. /// </summary>
  540. public decimal Safe { get; set; }
  541. public string FirstItemRemark { get; set; }
  542. }
  543. public class ChoiceOneMobileSubInfoView : ChoiceOneMobileInfoView
  544. {
  545. public int Id { get; set; }
  546. /// <summary>
  547. /// 境内费用(其他费用)选择框
  548. /// </summary>
  549. public int ChoiceOne { get; set; }
  550. /// <summary>
  551. /// 境内费用(其他费用) 合计
  552. /// </summary>
  553. public decimal ChoiceOneTotalCost { get; set; }
  554. }
  555. public class ChoiceTwoMobileInfoView
  556. {
  557. /// <summary>
  558. /// 国际机票(经济舱)
  559. /// </summary>
  560. public decimal AirJJ { get; set; }
  561. /// <summary>
  562. /// 国际机票(公务舱)
  563. /// </summary>
  564. public decimal AirGW { get; set; }
  565. /// <summary>
  566. /// 国际机票(头等舱)
  567. /// </summary>
  568. public decimal AirTD { get; set; }
  569. /// <summary>
  570. /// 国外城市间交通费
  571. /// </summary>
  572. public decimal CityTranffic { get; set; }
  573. }
  574. public class ChoiceTwoMobileSubInfoView : ChoiceTwoMobileInfoView
  575. {
  576. public int Id { get; set; }
  577. /// <summary>
  578. /// 国际旅费合计选择框 (经济舱)
  579. /// </summary>
  580. public int ChoiceTwoJJ { get; set; }
  581. /// <summary>
  582. /// 国际旅费合计(经济舱)
  583. /// </summary>
  584. public decimal OutsideJJPay { get; set; }
  585. /// <summary>
  586. /// 国际旅费合计选择框(公务舱)
  587. /// </summary>
  588. public int ChoiceTwoGW { get; set; }
  589. /// <summary>
  590. /// 国际旅费合计(公务舱)
  591. /// </summary>
  592. public decimal OutsideGWPay { get; set; }
  593. /// <summary>
  594. /// 国际旅费合计选择框(头等舱)
  595. /// </summary>
  596. public int ChoiceTwoTD { get; set; }
  597. /// <summary>
  598. /// 国际旅费合计(头等舱)
  599. /// </summary>
  600. public decimal OutsideTDPay { get; set; }
  601. }
  602. public class DayAndCostMobileInfoView
  603. {
  604. public int SubId { get; set; }
  605. public int DiId { get; set; }
  606. public int Type { get; set; }
  607. public int Days { get; set; }
  608. public int NationalTravelFeeId { get; set; }
  609. public string Arae { get; set; }
  610. public decimal Cost { get; set; }
  611. public int Currency { get; set; }
  612. public string CurrencyName { get; set; }
  613. public decimal SubTotal { get; set; }
  614. }
  615. public class ChoiceMobileSubInfo3To6View
  616. {
  617. /// <summary>
  618. /// 主表Id
  619. /// </summary>
  620. public int ParentId { get; set; }
  621. /// <summary>
  622. /// 住宿费合计 选择框
  623. /// </summary>
  624. public int Choice { get; set; }
  625. /// <summary>
  626. /// 住宿费合计
  627. /// </summary>
  628. public decimal TotalCost { get; set; }
  629. public DayAndCostMobileInfoView[] Details { get; set; }
  630. }
  631. public class DayOtherPriceMobileInfoView
  632. {
  633. public int SubId { get; set; }
  634. public int DiId { get; set; }
  635. public int Index { get; set; }
  636. public int SetDataId { get; set; }
  637. public string SetDataName { get; set; }
  638. public decimal Cost { get; set; }
  639. public int Currency { get; set; }
  640. public string CurrencyName { get; set; }
  641. public decimal SubTotal { get; set; }
  642. public string Remark { get; set; }
  643. }
  644. public class ChoiceSevenMobileSubInfoView
  645. {
  646. /// <summary>
  647. /// 主表Id
  648. /// </summary>
  649. public int ParentId { get; set; }
  650. /// <summary>
  651. /// 其他款项 选择框
  652. /// </summary>
  653. public int OtherExpenses_Checked { get; set; }
  654. /// <summary>
  655. /// 其他款项 选择框
  656. /// </summary>
  657. public decimal OtherExpensesTotalCost { get; set; }
  658. public DayOtherPriceMobileInfoView[] Details { get; set; }
  659. }
  660. #endregion
  661. #region Info Parent View
  662. public class EnterExitCostMobileParentInfoView
  663. {
  664. public int Id { get; set; }
  665. public int DiId { get; set; }
  666. #region 汇率币种
  667. /// <summary>
  668. /// 多个币种存储
  669. /// 存储方式: 美元(USD):6.2350|.......|墨西哥比索(MXN):1.0000
  670. /// </summary>
  671. public List<CurrencyInfo> Currencys { get; set; } = new List<CurrencyInfo> { };
  672. #endregion
  673. #region 1:境内费用(其他费用)
  674. /// <summary>
  675. /// 境内费用(其他费用)选择框
  676. /// </summary>
  677. public int ChoiceOne { get; set; }
  678. /// <summary>
  679. /// 境内费用(其他费用) 合计
  680. /// </summary>
  681. public decimal ChoiceOneTotalCost { get; set; }
  682. #endregion
  683. #region 2:国际旅费
  684. /// <summary>
  685. /// 国际旅费合计选择框 (经济舱)
  686. /// </summary>
  687. public int ChoiceTwoJJ { get; set; }
  688. /// <summary>
  689. /// 国际旅费合计(经济舱)
  690. /// </summary>
  691. public decimal OutsideJJPay { get; set; }
  692. /// <summary>
  693. /// 国际旅费合计选择框(公务舱)
  694. /// </summary>
  695. public int ChoiceTwoGW { get; set; }
  696. /// <summary>
  697. /// 国际旅费合计(公务舱)
  698. /// </summary>
  699. public decimal OutsideGWPay { get; set; }
  700. /// <summary>
  701. /// 国际旅费合计选择框(头等舱)
  702. /// </summary>
  703. public int ChoiceTwoTD { get; set; }
  704. /// <summary>
  705. /// 国际旅费合计(头等舱)
  706. /// </summary>
  707. public decimal OutsideTDPay { get; set; }
  708. #endregion
  709. #region 3:住宿费
  710. /// <summary>
  711. /// 住宿费合计 选择框
  712. /// </summary>
  713. public int ChoiceThree { get; set; }
  714. /// <summary>
  715. /// 住宿费合计
  716. /// </summary>
  717. public decimal ChoiceThreeTotalCost { get; set; }
  718. #endregion
  719. #region 4:伙食费
  720. /// <summary>
  721. /// 伙食费合计 选择框
  722. /// </summary>
  723. public int ChoiceFour { get; set; }
  724. /// <summary>
  725. /// 伙食费合计
  726. /// </summary>
  727. public decimal ChoiceFourTotalCost { get; set; }
  728. #endregion
  729. #region 5:公杂费
  730. /// <summary>
  731. /// 公杂费合计 选择框
  732. /// </summary>
  733. public int ChoiceFive { get; set; }
  734. /// <summary>
  735. /// 公杂费合计
  736. /// </summary>
  737. public decimal ChoiceFiveTotalCost { get; set; }
  738. #endregion
  739. #region 6:培训费
  740. /// <summary>
  741. /// 培训费用选择框
  742. /// </summary>
  743. public int ChoiceSix { get; set; }
  744. /// <summary>
  745. /// 公杂费合计
  746. /// </summary>
  747. public decimal ChoiceSixTotalCost { get; set; }
  748. #endregion
  749. #region 7:其他
  750. /// <summary>
  751. /// 其他款项 选择框
  752. /// </summary>
  753. public int OtherExpenses_Checked { get; set; }
  754. /// <summary>
  755. /// 其他款项 选择框
  756. /// </summary>
  757. public decimal OtherExpensesTotalCost { get; set; }
  758. #endregion
  759. /// <summary>
  760. /// 经济舱费用总计
  761. /// </summary>
  762. public decimal TouristClassTotalCost
  763. {
  764. get
  765. {
  766. return OutsideJJPay <= 0 ? 0.00M : OutsideJJPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
  767. }
  768. }
  769. /// <summary>
  770. /// 公务舱费用总计
  771. /// </summary>
  772. public decimal BusinessClassTotalCost
  773. {
  774. get
  775. {
  776. return OutsideGWPay <= 0 ? 0.00M : OutsideGWPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
  777. }
  778. }
  779. /// <summary>
  780. /// 头等舱费用总计
  781. /// </summary>
  782. public decimal FirstClassTotalCost
  783. {
  784. get
  785. {
  786. return OutsideTDPay <= 0 ? 0.00M : OutsideTDPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
  787. }
  788. }
  789. }
  790. #endregion
  791. #endregion
  792. /// <summary>
  793. /// 出入境国家(城市)费用标准子项Info View
  794. /// </summary>
  795. public class DayAndCostInfoView
  796. {
  797. /// <summary>
  798. /// Id
  799. /// </summary>
  800. public int Id { get; set; }
  801. /// <summary>
  802. /// 团组Id
  803. /// </summary>
  804. public int DiId { get; set; }
  805. /// <summary>
  806. /// 类型:1为住宿费;2为伙食费;3为公杂费;4培训费用
  807. /// </summary>
  808. public int Type { get; set; }
  809. /// <summary>
  810. /// 类型名称
  811. /// </summary>
  812. public string? TypeName
  813. {
  814. get
  815. {
  816. string str = "";
  817. if (Type == 1) str = string.Format("住宿费");
  818. else if (Type == 2) str = string.Format("伙食费");
  819. else if (Type == 3) str = string.Format("公杂费");
  820. else if (Type == 4) str = string.Format("培训费");
  821. return str;
  822. }
  823. }
  824. /// <summary>
  825. /// 天数
  826. /// </summary>
  827. public int Days { get; set; }
  828. /// <summary>
  829. /// 出入境国家费用标准 - Id
  830. /// </summary>
  831. public int NationalTravelFeeId { get; set; }
  832. /// <summary>
  833. /// 出入境国家费用标准 - 国家
  834. /// </summary>
  835. public string? Country { get; set; }
  836. /// <summary>
  837. /// 出入境国家费用标准 - 城市
  838. /// </summary>
  839. public string? City { get; set; }
  840. ///// <summary>
  841. ///// 地名
  842. ///// </summary>
  843. //public string? Place { get; set; }
  844. /// <summary>
  845. /// 地名
  846. /// </summary>
  847. public string? PlaceName
  848. {
  849. get
  850. {
  851. string str = "";
  852. if (!string.IsNullOrEmpty(Country))
  853. {
  854. if (City.Contains("城市")) str = Country;
  855. else str = City;
  856. }
  857. return str;
  858. }
  859. }
  860. /// <summary>
  861. /// 费用标准
  862. /// </summary>
  863. public decimal Cost { get; set; }
  864. /// <summary>
  865. /// 币种 Id
  866. /// Sys_SetData STid = 66
  867. /// </summary>
  868. public int Currency { get; set; }
  869. /// <summary>
  870. /// 币种Code
  871. /// </summary>
  872. public string? CurremcyCode { get; set; }
  873. /// <summary>
  874. /// 币种名称
  875. /// </summary>
  876. public string? CurrencyName { get; set; }
  877. /// <summary>
  878. /// 小计
  879. /// </summary>
  880. public decimal SubTotal { get; set; }
  881. /// <summary>
  882. /// 备注
  883. /// </summary>
  884. public string? Remark { get; set; } = "";
  885. }
  886. /// <summary>
  887. /// 出入境国家(城市)费用标准子项Add View
  888. /// </summary>
  889. public class DayAndCostAddView
  890. {
  891. /// <summary>
  892. /// 主键编号
  893. /// </summary>
  894. public int Id { get; set; }
  895. /// <summary>
  896. /// 团组Id
  897. /// </summary>
  898. public int DiId { get; set; }
  899. /// <summary>
  900. /// 类型:1为住宿费;2为伙食费;3为公杂费;4培训费用
  901. /// </summary>
  902. public int Type { get; set; }
  903. /// <summary>
  904. /// 天数
  905. /// </summary>
  906. public int Days { get; set; }
  907. /// <summary>
  908. /// 出入境国家费用标准 - Id
  909. /// </summary>
  910. public int NationalTravelFeeId { get; set; }
  911. /// <summary>
  912. /// 费用标准
  913. /// </summary>
  914. public decimal Cost { get; set; }
  915. /// <summary>
  916. /// 币种 Id
  917. /// Sys_SetData STid = 66
  918. /// </summary>
  919. public int Currency { get; set; }
  920. /// <summary>
  921. /// 小计
  922. /// </summary>
  923. public decimal SubTotal { get; set; }
  924. /// <summary>
  925. /// 备注
  926. /// </summary>
  927. public string? Remark { get; set; } = "";
  928. }
  929. public class DayOtherPriceView
  930. {
  931. public int Id { get; set; }
  932. public int DiId { get; set; }
  933. public int SetDataId { get; set; }
  934. public int Index { get; set; }
  935. public decimal Cost { get; set; }
  936. public int Currency { get; set; }
  937. public decimal SubTotal { get; set; }
  938. public string Remark { get; set; }
  939. }
  940. /// <summary>
  941. /// 币种详情
  942. /// </summary>
  943. public class CurrencyInfo
  944. {
  945. /// <summary>
  946. /// 币种Code
  947. /// </summary>
  948. public string? CurrencyCode { get; set; }
  949. /// <summary>
  950. /// 币种名称
  951. /// </summary>
  952. public string? CurrencyName { get; set; }
  953. /// <summary>
  954. /// 币种当时汇率
  955. /// </summary>
  956. public decimal Rate { get; set; }
  957. }
  958. }