EnterExitCostDraftView.cs 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. using OASystem.Domain.Dtos;
  2. using OASystem.Domain.Entities.Groups;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace OASystem.Domain.ViewModels.Groups
  9. {
  10. public class EnterExitCostDraftView:Grp_EnterExitCostDraft
  11. {
  12. }
  13. /// <summary>
  14. /// 出入境费用info
  15. /// </summary>
  16. public class EnterExitCostDraftInfoView
  17. {
  18. /// <summary>
  19. /// Id
  20. /// </summary>
  21. public int Id { get; set; }
  22. /// <summary>
  23. /// 团组Id
  24. /// </summary>
  25. public string DraftName { get; set; }
  26. /// <summary>
  27. /// 境内费用(其他费用)
  28. /// </summary>
  29. public decimal InsidePay { get; set; }
  30. #region 境内费用(其他费用)子项
  31. /// <summary>
  32. /// 签证费
  33. /// </summary>
  34. public decimal Visa { get; set; }
  35. /// <summary>
  36. /// 签证费描述
  37. /// </summary>
  38. public string? VisaRemark { get; set; }
  39. /// <summary>
  40. /// 疫苗费
  41. /// </summary>
  42. public decimal YiMiao { get; set; }
  43. /// <summary>
  44. /// 核酸检测费用
  45. /// </summary>
  46. public decimal HeSuan { get; set; }
  47. /// <summary>
  48. /// 服务费用
  49. /// </summary>
  50. public decimal Service { get; set; }
  51. /// <summary>
  52. /// 参展门票
  53. /// </summary>
  54. public decimal Ticket { get; set; }
  55. /// <summary>
  56. /// 保险费
  57. /// </summary>
  58. public decimal Safe { get; set; }
  59. public string FirstItemRemark { get; set; }
  60. #endregion
  61. /// <summary>
  62. /// 国际旅费合计(经济舱)
  63. /// </summary>
  64. public decimal OutsideJJPay { get; set; }
  65. /// <summary>
  66. /// 国际旅费合计(公务舱)
  67. /// </summary>
  68. public decimal OutsideGWPay { get; set; }
  69. /// <summary>
  70. /// 国际旅费合计(头等舱)
  71. /// </summary>
  72. public decimal OutsideTDPay { get; set; }
  73. #region 国际旅费合计(经济舱\公务舱\头等舱)
  74. /// <summary>
  75. /// 国际机票(经济舱)
  76. /// </summary>
  77. public decimal AirJJ { get; set; }
  78. /// <summary>
  79. /// 国际机票(公务舱)
  80. /// </summary>
  81. public decimal AirGW { get; set; }
  82. /// <summary>
  83. /// 国际机票(头等舱)
  84. /// </summary>
  85. public decimal AirTD { get; set; }
  86. /// <summary>
  87. /// 国外城市间交通费
  88. /// </summary>
  89. public decimal CityTranffic { get; set; }
  90. public string TwoItemRemark { get; set; }
  91. #region 汇率币种
  92. /// <summary>
  93. /// 多个币种存储
  94. /// 存储方式: 美元(USD):6.2350|.......|墨西哥比索(MXN):1.0000
  95. /// </summary>
  96. public List<CurrencyInfo>? Currencys { get; set; }
  97. #endregion
  98. #endregion
  99. #region 选择框状态
  100. /// <summary>
  101. /// 境内费用(其他费用)选择框
  102. /// </summary>
  103. public int ChoiceOne { get; set; }
  104. /// <summary>
  105. /// 国际旅费合计选择框
  106. /// </summary>
  107. public int ChoiceTwo { get; set; }
  108. /// <summary>
  109. /// 经济舱小计选择框
  110. /// </summary>
  111. public int SumJJC { get; set; }
  112. /// <summary>
  113. /// 公务舱小计选择框
  114. /// </summary>
  115. public int SumGWC { get; set; }
  116. /// <summary>
  117. /// 头等舱小计选择框
  118. /// </summary>
  119. public int SumTDC { get; set; }
  120. /// <summary>
  121. /// 住宿费合计选择框
  122. /// </summary>
  123. public int ChoiceThree { get; set; }
  124. /// <summary>
  125. /// 住宿费子项Data
  126. /// </summary>
  127. public List<DayAndCostDraftInfoView>? QuarterageData { get; set; }
  128. /// <summary>
  129. /// 伙食费合计选择框
  130. /// </summary>
  131. public int ChoiceFour { get; set; }
  132. /// <summary>
  133. /// 伙食费子项Data
  134. /// </summary>
  135. public List<DayAndCostDraftInfoView>? BoardWagesData { get; set; }
  136. /// <summary>
  137. /// 公杂费合计选择框
  138. /// </summary>
  139. public int ChoiceFive { get; set; }
  140. /// <summary>
  141. /// 公杂费子项Data
  142. /// </summary>
  143. public List<DayAndCostDraftInfoView>? MiscellaneousFeeData { get; set; }
  144. /// <summary>
  145. /// 培训费用选择框
  146. /// </summary>
  147. public int ChoiceSix { get; set; }
  148. /// <summary>
  149. /// 培训费子项Data
  150. /// </summary>
  151. public List<DayAndCostDraftInfoView>? TrainingExpenseData { get; set; }
  152. /// <summary>
  153. /// 经济舱选择框
  154. /// </summary>
  155. public int AirJJC_Checked { get; set; }
  156. /// <summary>
  157. /// 公务舱选择框
  158. /// </summary>
  159. public int AirGWC_Checked { get; set; }
  160. /// <summary>
  161. /// 头等舱选择框
  162. /// </summary>
  163. public int AirTDC_Checked { get; set; }
  164. /// <summary>
  165. /// 其他款项选择框
  166. /// </summary>
  167. public int OtherExpenses_Checked { get; set; }
  168. /// <summary>
  169. /// 其他款项子项Data
  170. /// </summary>
  171. public List<DayOtherPriceDraftView> DayOtherPriceData { get; set; }
  172. #endregion
  173. }
  174. /// <summary>
  175. /// 出入境国家(城市)费用标准子项Info View
  176. /// </summary>
  177. public class DayAndCostDraftInfoView
  178. {
  179. /// <summary>
  180. /// Id
  181. /// </summary>
  182. public int Id { get; set; }
  183. /// <summary>
  184. /// 团组Id
  185. /// </summary>
  186. public int ParentId { get; set; }
  187. /// <summary>
  188. /// 类型:1为住宿费;2为伙食费;3为公杂费;4培训费用
  189. /// </summary>
  190. public int Type { get; set; }
  191. /// <summary>
  192. /// 类型名称
  193. /// </summary>
  194. public string? TypeName
  195. {
  196. get
  197. {
  198. string str = "";
  199. if (Type == 1) str = string.Format("住宿费");
  200. else if (Type == 2) str = string.Format("伙食费");
  201. else if (Type == 3) str = string.Format("公杂费");
  202. else if (Type == 4) str = string.Format("培训费");
  203. return str;
  204. }
  205. }
  206. /// <summary>
  207. /// 天数
  208. /// </summary>
  209. public int Days { get; set; }
  210. /// <summary>
  211. /// 出入境国家费用标准 - Id
  212. /// </summary>
  213. public int NationalTravelFeeId { get; set; }
  214. /// <summary>
  215. /// 出入境国家费用标准 - 国家
  216. /// </summary>
  217. public string? Country { get; set; }
  218. /// <summary>
  219. /// 出入境国家费用标准 - 城市
  220. /// </summary>
  221. public string? City { get; set; }
  222. ///// <summary>
  223. ///// 地名
  224. ///// </summary>
  225. //public string? Place { get; set; }
  226. /// <summary>
  227. /// 地名
  228. /// </summary>
  229. public string? PlaceName
  230. {
  231. get
  232. {
  233. string str = "";
  234. if (!string.IsNullOrEmpty(Country))
  235. {
  236. if (City.Contains("城市")) str = Country;
  237. else str = City;
  238. }
  239. return str;
  240. }
  241. }
  242. /// <summary>
  243. /// 费用标准
  244. /// </summary>
  245. public decimal Cost { get; set; }
  246. /// <summary>
  247. /// 币种 Id
  248. /// Sys_SetData STid = 66
  249. /// </summary>
  250. public int Currency { get; set; }
  251. /// <summary>
  252. /// 币种Code
  253. /// </summary>
  254. public string? CurremcyCode { get; set; }
  255. /// <summary>
  256. /// 币种名称
  257. /// </summary>
  258. public string? CurrencyName { get; set; }
  259. /// <summary>
  260. /// 小计
  261. /// </summary>
  262. public decimal SubTotal { get; set; }
  263. /// <summary>
  264. /// 备注
  265. /// </summary>
  266. public string? Remark { get; set; } = "";
  267. }
  268. public class DayOtherPriceDraftView
  269. {
  270. public int Id { get; set; }
  271. public int ParentId { get; set; }
  272. public int SetDataId { get; set; }
  273. public int Index { get; set; }
  274. public decimal Cost { get; set; }
  275. public int Currency { get; set; }
  276. public decimal SubTotal { get; set; }
  277. public string Remark { get; set; }
  278. }
  279. /// <summary>
  280. /// 出入境国家(城市)费用标准子项Add View
  281. /// </summary>
  282. public class DayAndCostDraftAddView
  283. {
  284. /// <summary>
  285. /// 主键编号
  286. /// </summary>
  287. public int Id { get; set; }
  288. /// <summary>
  289. /// 主表Id
  290. /// </summary>
  291. public int ParentId { get; set; }
  292. /// <summary>
  293. /// 类型:1为住宿费;2为伙食费;3为公杂费;4培训费用
  294. /// </summary>
  295. public int Type { get; set; }
  296. /// <summary>
  297. /// 天数
  298. /// </summary>
  299. public int Days { get; set; }
  300. /// <summary>
  301. /// 出入境国家费用标准 - Id
  302. /// </summary>
  303. public int NationalTravelFeeId { get; set; }
  304. /// <summary>
  305. /// 费用标准
  306. /// </summary>
  307. public decimal Cost { get; set; }
  308. /// <summary>
  309. /// 币种 Id
  310. /// Sys_SetData STid = 66
  311. /// </summary>
  312. public int Currency { get; set; }
  313. /// <summary>
  314. /// 小计
  315. /// </summary>
  316. public decimal SubTotal { get; set; }
  317. /// <summary>
  318. /// 备注
  319. /// </summary>
  320. public string? Remark { get; set; } = "";
  321. }
  322. public class DayOtherPriceDraftAddView
  323. {
  324. public int Id { get; set; }
  325. public int ParentId { get; set; }
  326. public int SetDataId { get; set; }
  327. public int Index { get; set; }
  328. public decimal Cost { get; set; }
  329. public int Currency { get; set; }
  330. public decimal SubTotal { get; set; }
  331. public string Remark { get; set; }
  332. }
  333. /// <summary>
  334. /// 出入境费用子项删除
  335. /// </summary>
  336. public class EnterExitCostDraftSubItemDelDto : DelBaseDto
  337. { }
  338. }