EnterExitCostDraftView.cs 10 KB

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