EnterExitCostView.cs 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419
  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. //#region 移动端 草稿
  815. //#region Info Parent View
  816. //public class EnterExitCostDraftMobileParentInfoView
  817. //{
  818. // public int Id { get; set; }
  819. // #region 汇率币种
  820. // /// <summary>
  821. // /// 多个币种存储
  822. // /// 存储方式: 美元(USD):6.2350|.......|墨西哥比索(MXN):1.0000
  823. // /// </summary>
  824. // public List<CurrencyInfo> Currencys { get; set; } = new List<CurrencyInfo> { };
  825. // #endregion
  826. // #region 1:境内费用(其他费用)
  827. // /// <summary>
  828. // /// 境内费用(其他费用)选择框
  829. // /// </summary>
  830. // public int ChoiceOne { get; set; }
  831. // /// <summary>
  832. // /// 境内费用(其他费用) 合计
  833. // /// </summary>
  834. // public decimal ChoiceOneTotalCost { get; set; }
  835. // #endregion
  836. // #region 2:国际旅费
  837. // /// <summary>
  838. // /// 国际旅费合计选择框 (经济舱)
  839. // /// </summary>
  840. // public int ChoiceTwoJJ { get; set; }
  841. // /// <summary>
  842. // /// 国际旅费合计(经济舱)
  843. // /// </summary>
  844. // public decimal OutsideJJPay { get; set; }
  845. // /// <summary>
  846. // /// 国际旅费合计选择框(公务舱)
  847. // /// </summary>
  848. // public int ChoiceTwoGW { get; set; }
  849. // /// <summary>
  850. // /// 国际旅费合计(公务舱)
  851. // /// </summary>
  852. // public decimal OutsideGWPay { get; set; }
  853. // /// <summary>
  854. // /// 国际旅费合计选择框(头等舱)
  855. // /// </summary>
  856. // public int ChoiceTwoTD { get; set; }
  857. // /// <summary>
  858. // /// 国际旅费合计(头等舱)
  859. // /// </summary>
  860. // public decimal OutsideTDPay { get; set; }
  861. // #endregion
  862. // #region 3:住宿费
  863. // /// <summary>
  864. // /// 住宿费合计 选择框
  865. // /// </summary>
  866. // public int ChoiceThree { get; set; }
  867. // /// <summary>
  868. // /// 住宿费合计
  869. // /// </summary>
  870. // public decimal ChoiceThreeTotalCost { get; set; }
  871. // #endregion
  872. // #region 4:伙食费
  873. // /// <summary>
  874. // /// 伙食费合计 选择框
  875. // /// </summary>
  876. // public int ChoiceFour { get; set; }
  877. // /// <summary>
  878. // /// 伙食费合计
  879. // /// </summary>
  880. // public decimal ChoiceFourTotalCost { get; set; }
  881. // #endregion
  882. // #region 5:公杂费
  883. // /// <summary>
  884. // /// 公杂费合计 选择框
  885. // /// </summary>
  886. // public int ChoiceFive { get; set; }
  887. // /// <summary>
  888. // /// 公杂费合计
  889. // /// </summary>
  890. // public decimal ChoiceFiveTotalCost { get; set; }
  891. // #endregion
  892. // #region 6:培训费
  893. // /// <summary>
  894. // /// 培训费用选择框
  895. // /// </summary>
  896. // public int ChoiceSix { get; set; }
  897. // /// <summary>
  898. // /// 公杂费合计
  899. // /// </summary>
  900. // public decimal ChoiceSixTotalCost { get; set; }
  901. // #endregion
  902. // #region 7:其他
  903. // /// <summary>
  904. // /// 其他款项 选择框
  905. // /// </summary>
  906. // public int OtherExpenses_Checked { get; set; }
  907. // /// <summary>
  908. // /// 其他款项 选择框
  909. // /// </summary>
  910. // public decimal OtherExpensesTotalCost { get; set; }
  911. // #endregion
  912. // /// <summary>
  913. // /// 经济舱费用总计
  914. // /// </summary>
  915. // public decimal TouristClassTotalCost
  916. // {
  917. // get
  918. // {
  919. // return OutsideJJPay <= 0 ? 0.00M : OutsideJJPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
  920. // }
  921. // }
  922. // /// <summary>
  923. // /// 公务舱费用总计
  924. // /// </summary>
  925. // public decimal BusinessClassTotalCost
  926. // {
  927. // get
  928. // {
  929. // return OutsideGWPay <= 0 ? 0.00M : OutsideGWPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
  930. // }
  931. // }
  932. // /// <summary>
  933. // /// 头等舱费用总计
  934. // /// </summary>
  935. // public decimal FirstClassTotalCost
  936. // {
  937. // get
  938. // {
  939. // return OutsideTDPay <= 0 ? 0.00M : OutsideTDPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
  940. // }
  941. // }
  942. //}
  943. //#endregion
  944. //#endregion
  945. /// <summary>
  946. /// 出入境国家(城市)费用标准子项Info View
  947. /// </summary>
  948. public class DayAndCostInfoView
  949. {
  950. /// <summary>
  951. /// Id
  952. /// </summary>
  953. public int Id { get; set; }
  954. /// <summary>
  955. /// 团组Id
  956. /// </summary>
  957. public int DiId { get; set; }
  958. /// <summary>
  959. /// 类型:1为住宿费;2为伙食费;3为公杂费;4培训费用
  960. /// </summary>
  961. public int Type { get; set; }
  962. /// <summary>
  963. /// 类型名称
  964. /// </summary>
  965. public string? TypeName
  966. {
  967. get
  968. {
  969. string str = "";
  970. if (Type == 1) str = string.Format("住宿费");
  971. else if (Type == 2) str = string.Format("伙食费");
  972. else if (Type == 3) str = string.Format("公杂费");
  973. else if (Type == 4) str = string.Format("培训费");
  974. return str;
  975. }
  976. }
  977. /// <summary>
  978. /// 天数
  979. /// </summary>
  980. public int Days { get; set; }
  981. /// <summary>
  982. /// 出入境国家费用标准 - Id
  983. /// </summary>
  984. public int NationalTravelFeeId { get; set; }
  985. /// <summary>
  986. /// 出入境国家费用标准 - 国家
  987. /// </summary>
  988. public string? Country { get; set; }
  989. /// <summary>
  990. /// 出入境国家费用标准 - 城市
  991. /// </summary>
  992. public string? City { get; set; }
  993. ///// <summary>
  994. ///// 地名
  995. ///// </summary>
  996. //public string? Place { get; set; }
  997. /// <summary>
  998. /// 地名
  999. /// </summary>
  1000. public string? PlaceName
  1001. {
  1002. get
  1003. {
  1004. string str = "";
  1005. if (!string.IsNullOrEmpty(Country))
  1006. {
  1007. if (City.Contains("城市")) str = Country;
  1008. else str = City;
  1009. }
  1010. return str;
  1011. }
  1012. }
  1013. /// <summary>
  1014. /// 费用标准
  1015. /// </summary>
  1016. public decimal Cost { get; set; }
  1017. /// <summary>
  1018. /// 币种 Id
  1019. /// Sys_SetData STid = 66
  1020. /// </summary>
  1021. public int Currency { get; set; }
  1022. /// <summary>
  1023. /// 币种Code
  1024. /// </summary>
  1025. public string? CurremcyCode { get; set; }
  1026. /// <summary>
  1027. /// 币种名称
  1028. /// </summary>
  1029. public string? CurrencyName { get; set; }
  1030. /// <summary>
  1031. /// 小计
  1032. /// </summary>
  1033. public decimal SubTotal { get; set; }
  1034. /// <summary>
  1035. /// 备注
  1036. /// </summary>
  1037. public string? Remark { get; set; } = "";
  1038. }
  1039. /// <summary>
  1040. /// 出入境国家(城市)费用标准子项Add View
  1041. /// </summary>
  1042. public class DayAndCostAddView
  1043. {
  1044. /// <summary>
  1045. /// 主键编号
  1046. /// </summary>
  1047. public int Id { get; set; }
  1048. /// <summary>
  1049. /// 团组Id
  1050. /// </summary>
  1051. public int DiId { get; set; }
  1052. /// <summary>
  1053. /// 类型:1为住宿费;2为伙食费;3为公杂费;4培训费用
  1054. /// </summary>
  1055. public int Type { get; set; }
  1056. /// <summary>
  1057. /// 天数
  1058. /// </summary>
  1059. public int Days { get; set; }
  1060. /// <summary>
  1061. /// 出入境国家费用标准 - Id
  1062. /// </summary>
  1063. public int NationalTravelFeeId { get; set; }
  1064. /// <summary>
  1065. /// 费用标准
  1066. /// </summary>
  1067. public decimal Cost { get; set; }
  1068. /// <summary>
  1069. /// 币种 Id
  1070. /// Sys_SetData STid = 66
  1071. /// </summary>
  1072. public int Currency { get; set; }
  1073. /// <summary>
  1074. /// 小计
  1075. /// </summary>
  1076. public decimal SubTotal { get; set; }
  1077. /// <summary>
  1078. /// 备注
  1079. /// </summary>
  1080. public string? Remark { get; set; } = "";
  1081. }
  1082. public class DayOtherPriceView
  1083. {
  1084. public int Id { get; set; }
  1085. public int DiId { get; set; }
  1086. public int SetDataId { get; set; }
  1087. public int Index { get; set; }
  1088. public decimal Cost { get; set; }
  1089. public int Currency { get; set; }
  1090. public decimal SubTotal { get; set; }
  1091. public string Remark { get; set; }
  1092. }
  1093. /// <summary>
  1094. /// 币种详情
  1095. /// </summary>
  1096. public class CurrencyInfo
  1097. {
  1098. /// <summary>
  1099. /// 币种Code
  1100. /// </summary>
  1101. public string? CurrencyCode { get; set; }
  1102. /// <summary>
  1103. /// 币种名称
  1104. /// </summary>
  1105. public string? CurrencyName { get; set; }
  1106. /// <summary>
  1107. /// 币种当时汇率
  1108. /// </summary>
  1109. public decimal Rate { get; set; }
  1110. }
  1111. }