EnterExitCostView.cs 30 KB

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