EnterExitCostDraftView.cs 11 KB

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