EnterExitCostView.cs 31 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246
  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. public class EnterExitCostMobileGroupView
  376. {
  377. public int Id { get; set; }
  378. public string GroupName { get; set; }
  379. public bool IsNull { get; set; }
  380. public bool IsEdit { get; set; }
  381. public bool IsView { get; set; }
  382. }
  383. #region info View
  384. public class EnterExitCostMobileInfoView
  385. {
  386. public int Id { get; set; }
  387. public int DiId { get; set; }
  388. #region 汇率币种
  389. /// <summary>
  390. /// 多个币种存储
  391. /// 存储方式: 美元(USD):6.2350|.......|墨西哥比索(MXN):1.0000
  392. /// </summary>
  393. public List<CurrencyInfo>? Currencys { get; set; }
  394. #endregion
  395. #region 1:境内费用(其他费用)
  396. /// <summary>
  397. /// 境内费用(其他费用)选择框
  398. /// </summary>
  399. public int ChoiceOne { get; set; }
  400. /// <summary>
  401. /// 境内费用(其他费用) 合计
  402. /// </summary>
  403. public decimal ChoiceOneTotalCost { get; set; }
  404. /// <summary>
  405. /// 境内费用(其他费用) 详情
  406. /// </summary>
  407. public ChoiceOneMobileInfoView ChoiceOneDetails { get; set; }
  408. #endregion
  409. #region 2:国际旅费
  410. /// <summary>
  411. /// 国际旅费合计选择框
  412. /// </summary>
  413. public int ChoiceTwo { get; set; }
  414. /// <summary>
  415. /// 国际旅费合计(经济舱)
  416. /// </summary>
  417. public decimal OutsideJJPay { get; set; }
  418. /// <summary>
  419. /// 国际旅费合计(公务舱)
  420. /// </summary>
  421. public decimal OutsideGWPay { get; set; }
  422. /// <summary>
  423. /// 国际旅费合计(头等舱)
  424. /// </summary>
  425. public decimal OutsideTDPay { get; set; }
  426. /// <summary>
  427. /// 国际旅费 详情
  428. /// </summary>
  429. public ChoiceTwoMobileInfoView ChoiceTwoDetails { get; set; }
  430. #endregion
  431. #region 3:住宿费
  432. /// <summary>
  433. /// 住宿费合计 选择框
  434. /// </summary>
  435. public int ChoiceThree { get; set; }
  436. /// <summary>
  437. /// 住宿费合计
  438. /// </summary>
  439. public decimal ChoiceThreeTotalCost { get { return ChoiceThreeDetails.Sum(x => x.SubTotal); } }
  440. /// <summary>
  441. /// 住宿费子项 Data
  442. /// </summary>
  443. public DayAndCostMobileInfoView[] ChoiceThreeDetails { get; set; }
  444. #endregion
  445. #region 4:伙食费
  446. /// <summary>
  447. /// 伙食费合计 选择框
  448. /// </summary>
  449. public int ChoiceFour { get; set; }
  450. /// <summary>
  451. /// 伙食费合计
  452. /// </summary>
  453. public decimal ChoiceFourTotalCost { get { return ChoiceFourDetails.Sum(x => x.SubTotal); } }
  454. /// <summary>
  455. /// 伙食费子项Data
  456. /// </summary>
  457. public DayAndCostMobileInfoView[] ChoiceFourDetails { get; set; }
  458. #endregion
  459. #region 5:公杂费
  460. /// <summary>
  461. /// 公杂费合计 选择框
  462. /// </summary>
  463. public int ChoiceFive { get; set; }
  464. /// <summary>
  465. /// 公杂费合计
  466. /// </summary>
  467. public decimal ChoiceFiveTotalCost { get { return ChoiceFiveDetails.Sum(x => x.SubTotal); } }
  468. /// <summary>
  469. /// 公杂费子项Data
  470. /// </summary>
  471. public DayAndCostMobileInfoView[] ChoiceFiveDetails { get; set; }
  472. #endregion
  473. #region 6:培训费
  474. /// <summary>
  475. /// 培训费用选择框
  476. /// </summary>
  477. public int ChoiceSix { get; set; }
  478. /// <summary>
  479. /// 公杂费合计
  480. /// </summary>
  481. public decimal ChoiceSixTotalCost { get { return ChoiceSixDetails.Sum(x => x.SubTotal); } }
  482. /// <summary>
  483. /// 培训费子项Data
  484. /// </summary>
  485. public DayAndCostMobileInfoView[] ChoiceSixDetails { get; set; }
  486. #endregion
  487. #region 7:其他
  488. /// <summary>
  489. /// 其他款项 选择框
  490. /// </summary>
  491. public int OtherExpenses_Checked { get; set; }
  492. /// <summary>
  493. /// 其他款项 选择框
  494. /// </summary>
  495. public decimal OtherExpensesTotalCost { get { return OtherExpensesDetails.Sum(x => x.SubTotal); } }
  496. /// <summary>
  497. /// 其他款项子项Data
  498. /// </summary>
  499. public DayOtherPriceMobileInfoView[] OtherExpensesDetails { get; set; }
  500. #endregion
  501. /// <summary>
  502. /// 经济舱费用总计
  503. /// </summary>
  504. public decimal TouristClassTotalCost
  505. {
  506. get
  507. {
  508. return OutsideJJPay <= 0 ? 0.00M : OutsideJJPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
  509. }
  510. }
  511. /// <summary>
  512. /// 公务舱费用总计
  513. /// </summary>
  514. public decimal BusinessClassTotalCost
  515. {
  516. get
  517. {
  518. return OutsideGWPay <= 0 ? 0.00M : OutsideGWPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
  519. }
  520. }
  521. /// <summary>
  522. /// 头等舱费用总计
  523. /// </summary>
  524. public decimal FirstClassTotalCost
  525. {
  526. get
  527. {
  528. return OutsideTDPay <= 0 ? 0.00M : OutsideTDPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
  529. }
  530. }
  531. }
  532. public class ChoiceOneMobileInfoView
  533. {
  534. /// <summary>
  535. /// 签证费
  536. /// </summary>
  537. public decimal Visa { get; set; }
  538. /// <summary>
  539. /// 签证费描述
  540. /// </summary>
  541. public string? VisaRemark { get; set; }
  542. /// <summary>
  543. /// 疫苗费
  544. /// </summary>
  545. public decimal YiMiao { get; set; }
  546. /// <summary>
  547. /// 核酸检测费用
  548. /// </summary>
  549. public decimal HeSuan { get; set; }
  550. /// <summary>
  551. /// 服务费用
  552. /// </summary>
  553. public decimal Service { get; set; }
  554. /// <summary>
  555. /// 参展门票
  556. /// </summary>
  557. public decimal Ticket { get; set; }
  558. /// <summary>
  559. /// 保险费
  560. /// </summary>
  561. public decimal Safe { get; set; }
  562. public string FirstItemRemark { get; set; }
  563. }
  564. public class ChoiceOneMobileSubInfoView : ChoiceOneMobileInfoView
  565. {
  566. public int Id { get; set; }
  567. /// <summary>
  568. /// 境内费用(其他费用)选择框
  569. /// </summary>
  570. public int ChoiceOne { get; set; }
  571. /// <summary>
  572. /// 境内费用(其他费用) 合计
  573. /// </summary>
  574. public decimal ChoiceOneTotalCost { get; set; }
  575. }
  576. public class ChoiceTwoMobileInfoView
  577. {
  578. /// <summary>
  579. /// 国际机票(经济舱)
  580. /// </summary>
  581. public decimal AirJJ { get; set; }
  582. /// <summary>
  583. /// 国际机票(公务舱)
  584. /// </summary>
  585. public decimal AirGW { get; set; }
  586. /// <summary>
  587. /// 国际机票(头等舱)
  588. /// </summary>
  589. public decimal AirTD { get; set; }
  590. /// <summary>
  591. /// 国外城市间交通费
  592. /// </summary>
  593. public decimal CityTranffic { get; set; }
  594. public string TwoItemRemark { get; set; }
  595. }
  596. public class ChoiceTwoMobileSubInfoView : ChoiceTwoMobileInfoView
  597. {
  598. public int Id { get; set; }
  599. /// <summary>
  600. /// 国际旅费合计选择框 (经济舱)
  601. /// </summary>
  602. public int ChoiceTwoJJ { get; set; }
  603. /// <summary>
  604. /// 国际旅费合计(经济舱)
  605. /// </summary>
  606. public decimal OutsideJJPay { get; set; }
  607. /// <summary>
  608. /// 国际旅费合计选择框(公务舱)
  609. /// </summary>
  610. public int ChoiceTwoGW { get; set; }
  611. /// <summary>
  612. /// 国际旅费合计(公务舱)
  613. /// </summary>
  614. public decimal OutsideGWPay { get; set; }
  615. /// <summary>
  616. /// 国际旅费合计选择框(头等舱)
  617. /// </summary>
  618. public int ChoiceTwoTD { get; set; }
  619. /// <summary>
  620. /// 国际旅费合计(头等舱)
  621. /// </summary>
  622. public decimal OutsideTDPay { get; set; }
  623. }
  624. public class DayAndCostMobileInfoView
  625. {
  626. public int SubId { get; set; }
  627. public int DiId { get; set; }
  628. public int Type { get; set; }
  629. public int Days { get; set; }
  630. public int NationalTravelFeeId { get; set; }
  631. public string Arae { get; set; }
  632. public decimal Cost { get; set; }
  633. public int Currency { get; set; }
  634. public string CurrencyName { get; set; }
  635. public decimal SubTotal { get; set; }
  636. }
  637. public class ChoiceMobileSubInfo3To6View
  638. {
  639. /// <summary>
  640. /// 主表Id
  641. /// </summary>
  642. public int ParentId { get; set; }
  643. /// <summary>
  644. /// 住宿费合计 选择框
  645. /// </summary>
  646. public int Choice { get; set; }
  647. /// <summary>
  648. /// 住宿费合计
  649. /// </summary>
  650. public decimal TotalCost { get; set; }
  651. public DayAndCostMobileInfoView[] Details { get; set; }
  652. }
  653. public class DayOtherPriceMobileInfoView
  654. {
  655. public int SubId { get; set; }
  656. public int DiId { get; set; }
  657. public int Index { get; set; }
  658. public int SetDataId { get; set; }
  659. public string SetDataName { get; set; }
  660. public decimal Cost { get; set; }
  661. public int Currency { get; set; }
  662. public string CurrencyName { get; set; }
  663. public decimal SubTotal { get; set; }
  664. public string Remark { get; set; }
  665. }
  666. public class ChoiceSevenMobileSubInfoView
  667. {
  668. /// <summary>
  669. /// 主表Id
  670. /// </summary>
  671. public int ParentId { get; set; }
  672. /// <summary>
  673. /// 其他款项 选择框
  674. /// </summary>
  675. public int OtherExpenses_Checked { get; set; }
  676. /// <summary>
  677. /// 其他款项 选择框
  678. /// </summary>
  679. public decimal OtherExpensesTotalCost { get; set; }
  680. public DayOtherPriceMobileInfoView[] Details { get; set; }
  681. }
  682. #endregion
  683. #region Info Parent View
  684. public class EnterExitCostMobileParentInfoView
  685. {
  686. public int Id { get; set; }
  687. public int DiId { get; set; }
  688. #region 汇率币种
  689. /// <summary>
  690. /// 多个币种存储
  691. /// 存储方式: 美元(USD):6.2350|.......|墨西哥比索(MXN):1.0000
  692. /// </summary>
  693. public List<CurrencyInfo> Currencys { get; set; } = new List<CurrencyInfo> { };
  694. #endregion
  695. #region 1:境内费用(其他费用)
  696. /// <summary>
  697. /// 境内费用(其他费用)选择框
  698. /// </summary>
  699. public int ChoiceOne { get; set; }
  700. /// <summary>
  701. /// 境内费用(其他费用) 合计
  702. /// </summary>
  703. public decimal ChoiceOneTotalCost { get; set; }
  704. #endregion
  705. #region 2:国际旅费
  706. /// <summary>
  707. /// 国际旅费合计选择框 (经济舱)
  708. /// </summary>
  709. public int ChoiceTwoJJ { get; set; }
  710. /// <summary>
  711. /// 国际旅费合计(经济舱)
  712. /// </summary>
  713. public decimal OutsideJJPay { get; set; }
  714. /// <summary>
  715. /// 国际旅费合计选择框(公务舱)
  716. /// </summary>
  717. public int ChoiceTwoGW { get; set; }
  718. /// <summary>
  719. /// 国际旅费合计(公务舱)
  720. /// </summary>
  721. public decimal OutsideGWPay { get; set; }
  722. /// <summary>
  723. /// 国际旅费合计选择框(头等舱)
  724. /// </summary>
  725. public int ChoiceTwoTD { get; set; }
  726. /// <summary>
  727. /// 国际旅费合计(头等舱)
  728. /// </summary>
  729. public decimal OutsideTDPay { get; set; }
  730. #endregion
  731. #region 3:住宿费
  732. /// <summary>
  733. /// 住宿费合计 选择框
  734. /// </summary>
  735. public int ChoiceThree { get; set; }
  736. /// <summary>
  737. /// 住宿费合计
  738. /// </summary>
  739. public decimal ChoiceThreeTotalCost { get; set; }
  740. #endregion
  741. #region 4:伙食费
  742. /// <summary>
  743. /// 伙食费合计 选择框
  744. /// </summary>
  745. public int ChoiceFour { get; set; }
  746. /// <summary>
  747. /// 伙食费合计
  748. /// </summary>
  749. public decimal ChoiceFourTotalCost { get; set; }
  750. #endregion
  751. #region 5:公杂费
  752. /// <summary>
  753. /// 公杂费合计 选择框
  754. /// </summary>
  755. public int ChoiceFive { get; set; }
  756. /// <summary>
  757. /// 公杂费合计
  758. /// </summary>
  759. public decimal ChoiceFiveTotalCost { get; set; }
  760. #endregion
  761. #region 6:培训费
  762. /// <summary>
  763. /// 培训费用选择框
  764. /// </summary>
  765. public int ChoiceSix { get; set; }
  766. /// <summary>
  767. /// 公杂费合计
  768. /// </summary>
  769. public decimal ChoiceSixTotalCost { get; set; }
  770. #endregion
  771. #region 7:其他
  772. /// <summary>
  773. /// 其他款项 选择框
  774. /// </summary>
  775. public int OtherExpenses_Checked { get; set; }
  776. /// <summary>
  777. /// 其他款项 选择框
  778. /// </summary>
  779. public decimal OtherExpensesTotalCost { get; set; }
  780. #endregion
  781. /// <summary>
  782. /// 经济舱费用总计
  783. /// </summary>
  784. public decimal TouristClassTotalCost
  785. {
  786. get
  787. {
  788. return OutsideJJPay <= 0 ? 0.00M : OutsideJJPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
  789. }
  790. }
  791. /// <summary>
  792. /// 公务舱费用总计
  793. /// </summary>
  794. public decimal BusinessClassTotalCost
  795. {
  796. get
  797. {
  798. return OutsideGWPay <= 0 ? 0.00M : OutsideGWPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
  799. }
  800. }
  801. /// <summary>
  802. /// 头等舱费用总计
  803. /// </summary>
  804. public decimal FirstClassTotalCost
  805. {
  806. get
  807. {
  808. return OutsideTDPay <= 0 ? 0.00M : OutsideTDPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
  809. }
  810. }
  811. }
  812. #endregion
  813. #endregion
  814. /// <summary>
  815. /// 出入境国家(城市)费用标准子项Info View
  816. /// </summary>
  817. public class DayAndCostInfoView
  818. {
  819. /// <summary>
  820. /// Id
  821. /// </summary>
  822. public int Id { get; set; }
  823. /// <summary>
  824. /// 团组Id
  825. /// </summary>
  826. public int DiId { get; set; }
  827. /// <summary>
  828. /// 类型:1为住宿费;2为伙食费;3为公杂费;4培训费用
  829. /// </summary>
  830. public int Type { get; set; }
  831. /// <summary>
  832. /// 类型名称
  833. /// </summary>
  834. public string? TypeName
  835. {
  836. get
  837. {
  838. string str = "";
  839. if (Type == 1) str = string.Format("住宿费");
  840. else if (Type == 2) str = string.Format("伙食费");
  841. else if (Type == 3) str = string.Format("公杂费");
  842. else if (Type == 4) str = string.Format("培训费");
  843. return str;
  844. }
  845. }
  846. /// <summary>
  847. /// 天数
  848. /// </summary>
  849. public int Days { get; set; }
  850. /// <summary>
  851. /// 出入境国家费用标准 - Id
  852. /// </summary>
  853. public int NationalTravelFeeId { get; set; }
  854. /// <summary>
  855. /// 出入境国家费用标准 - 国家
  856. /// </summary>
  857. public string? Country { get; set; }
  858. /// <summary>
  859. /// 出入境国家费用标准 - 城市
  860. /// </summary>
  861. public string City { get; set; }
  862. ///// <summary>
  863. ///// 地名
  864. ///// </summary>
  865. //public string? Place { get; set; }
  866. /// <summary>
  867. /// 地名
  868. /// </summary>
  869. public string? PlaceName
  870. {
  871. get
  872. {
  873. string str = "";
  874. if (!string.IsNullOrEmpty(Country))
  875. {
  876. if (City.Contains("城市")) str = Country;
  877. else str = City;
  878. }
  879. return str;
  880. }
  881. }
  882. /// <summary>
  883. /// 费用标准
  884. /// </summary>
  885. public decimal Cost { get; set; }
  886. /// <summary>
  887. /// 币种 Id
  888. /// Sys_SetData STid = 66
  889. /// </summary>
  890. public int Currency { get; set; }
  891. /// <summary>
  892. /// 币种Code
  893. /// </summary>
  894. public string? CurremcyCode { get; set; }
  895. /// <summary>
  896. /// 币种名称
  897. /// </summary>
  898. public string? CurrencyName { get; set; }
  899. /// <summary>
  900. /// 小计
  901. /// </summary>
  902. public decimal SubTotal { get; set; }
  903. /// <summary>
  904. /// 备注
  905. /// </summary>
  906. public string? Remark { get; set; } = "";
  907. }
  908. /// <summary>
  909. /// 出入境国家(城市)费用标准子项Add View
  910. /// </summary>
  911. public class DayAndCostAddView
  912. {
  913. /// <summary>
  914. /// 主键编号
  915. /// </summary>
  916. public int Id { get; set; }
  917. /// <summary>
  918. /// 团组Id
  919. /// </summary>
  920. public int DiId { get; set; }
  921. /// <summary>
  922. /// 类型:1为住宿费;2为伙食费;3为公杂费;4培训费用
  923. /// </summary>
  924. public int Type { get; set; }
  925. /// <summary>
  926. /// 天数
  927. /// </summary>
  928. public int Days { get; set; }
  929. /// <summary>
  930. /// 出入境国家费用标准 - Id
  931. /// </summary>
  932. public int NationalTravelFeeId { get; set; }
  933. /// <summary>
  934. /// 费用标准
  935. /// </summary>
  936. public decimal Cost { get; set; }
  937. /// <summary>
  938. /// 币种 Id
  939. /// Sys_SetData STid = 66
  940. /// </summary>
  941. public int Currency { get; set; }
  942. /// <summary>
  943. /// 小计
  944. /// </summary>
  945. public decimal SubTotal { get; set; }
  946. /// <summary>
  947. /// 备注
  948. /// </summary>
  949. public string? Remark { get; set; } = "";
  950. }
  951. public class DayOtherPriceView
  952. {
  953. public int Id { get; set; }
  954. public int DiId { get; set; }
  955. public int SetDataId { get; set; }
  956. public int Index { get; set; }
  957. public decimal Cost { get; set; }
  958. public int Currency { get; set; }
  959. public decimal SubTotal { get; set; }
  960. public string Remark { get; set; }
  961. }
  962. /// <summary>
  963. /// 币种详情
  964. /// </summary>
  965. public class CurrencyInfo
  966. {
  967. /// <summary>
  968. /// 币种Code
  969. /// </summary>
  970. public string? CurrencyCode { get; set; }
  971. /// <summary>
  972. /// 币种名称
  973. /// </summary>
  974. public string? CurrencyName { get; set; }
  975. /// <summary>
  976. /// 币种当时汇率
  977. /// </summary>
  978. public decimal Rate { get; set; }
  979. }
  980. }