EnterExitCostView.cs 30 KB

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