EnterExitCostView.cs 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  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. #endregion
  351. }
  352. /// <summary>
  353. /// 出入境国家(城市)费用标准子项Info View
  354. /// </summary>
  355. public class DayAndCostInfoView
  356. {
  357. /// <summary>
  358. /// Id
  359. /// </summary>
  360. public int Id { get; set; }
  361. /// <summary>
  362. /// 团组Id
  363. /// </summary>
  364. public int DiId { get; set; }
  365. /// <summary>
  366. /// 类型:1为住宿费;2为伙食费;3为公杂费;4培训费用
  367. /// </summary>
  368. public int Type { get; set; }
  369. /// <summary>
  370. /// 类型名称
  371. /// </summary>
  372. public string? TypeName
  373. {
  374. get
  375. {
  376. string str = "";
  377. if (Type == 1) str = string.Format("住宿费");
  378. else if (Type == 2) str = string.Format("伙食费");
  379. else if (Type == 3) str = string.Format("公杂费");
  380. else if (Type == 4) str = string.Format("培训费");
  381. return str;
  382. }
  383. }
  384. /// <summary>
  385. /// 天数
  386. /// </summary>
  387. public int Days { get; set; }
  388. /// <summary>
  389. /// 出入境国家费用标准 - Id
  390. /// </summary>
  391. public int NationalTravelFeeId { get; set; }
  392. /// <summary>
  393. /// 出入境国家费用标准 - 国家
  394. /// </summary>
  395. public string? Country { get; set; }
  396. /// <summary>
  397. /// 出入境国家费用标准 - 城市
  398. /// </summary>
  399. public string? City { get; set; }
  400. ///// <summary>
  401. ///// 地名
  402. ///// </summary>
  403. //public string? Place { get; set; }
  404. /// <summary>
  405. /// 地名
  406. /// </summary>
  407. public string? PlaceName
  408. {
  409. get
  410. {
  411. string str = "";
  412. if (!string.IsNullOrEmpty(Country))
  413. {
  414. if (City.Contains("城市")) str = Country;
  415. else str = City;
  416. }
  417. return str;
  418. }
  419. }
  420. /// <summary>
  421. /// 费用标准
  422. /// </summary>
  423. public decimal Cost { get; set; }
  424. /// <summary>
  425. /// 币种 Id
  426. /// Sys_SetData STid = 66
  427. /// </summary>
  428. public int Currency { get; set; }
  429. /// <summary>
  430. /// 币种Code
  431. /// </summary>
  432. public string? CurremcyCode { get; set; }
  433. /// <summary>
  434. /// 币种名称
  435. /// </summary>
  436. public string? CurrencyName { get; set; }
  437. /// <summary>
  438. /// 小计
  439. /// </summary>
  440. public decimal SubTotal { get; set; }
  441. /// <summary>
  442. /// 备注
  443. /// </summary>
  444. public string? Remark { get; set; } = "";
  445. }
  446. /// <summary>
  447. /// 出入境国家(城市)费用标准子项Add View
  448. /// </summary>
  449. public class DayAndCostAddView
  450. {
  451. /// <summary>
  452. /// 主键编号
  453. /// </summary>
  454. public int Id { get; set; }
  455. /// <summary>
  456. /// 团组Id
  457. /// </summary>
  458. public int DiId { get; set; }
  459. /// <summary>
  460. /// 类型:1为住宿费;2为伙食费;3为公杂费;4培训费用
  461. /// </summary>
  462. public int Type { get; set; }
  463. /// <summary>
  464. /// 天数
  465. /// </summary>
  466. public int Days { get; set; }
  467. /// <summary>
  468. /// 出入境国家费用标准 - Id
  469. /// </summary>
  470. public int NationalTravelFeeId { get; set; }
  471. /// <summary>
  472. /// 费用标准
  473. /// </summary>
  474. public decimal Cost { get; set; }
  475. /// <summary>
  476. /// 币种 Id
  477. /// Sys_SetData STid = 66
  478. /// </summary>
  479. public int Currency { get; set; }
  480. /// <summary>
  481. /// 小计
  482. /// </summary>
  483. public decimal SubTotal { get; set; }
  484. /// <summary>
  485. /// 备注
  486. /// </summary>
  487. public string? Remark { get; set; } = "";
  488. }
  489. /// <summary>
  490. /// 币种详情
  491. /// </summary>
  492. public class CurrencyInfo
  493. {
  494. /// <summary>
  495. /// 币种Code
  496. /// </summary>
  497. public string? CurrencyCode { get; set; }
  498. /// <summary>
  499. /// 币种名称
  500. /// </summary>
  501. public string? CurrencyName { get; set; }
  502. /// <summary>
  503. /// 币种当时汇率
  504. /// </summary>
  505. public decimal Rate { get; set; }
  506. }
  507. }