TeamRateView.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. using OASystem.Domain.Entities.Financial;
  2. using OASystem.Domain.Entities.Groups;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Runtime.CompilerServices;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace OASystem.Domain.ViewModels.Financial
  10. {
  11. /// <summary>
  12. /// 团组汇率 View
  13. /// </summary>
  14. public class TeamRateView : Grp_TeamRate
  15. {
  16. }
  17. /// <summary>
  18. /// 团组汇率info
  19. /// </summary>
  20. public class TeamRateInfoView : Grp_TeamRate
  21. {
  22. /// <summary>
  23. /// 权限模块名称
  24. /// </summary>
  25. public string? Name { get; set; }
  26. }
  27. #region 团组汇率 信息
  28. public class TeamRateModelView
  29. {
  30. /// <summary>
  31. /// 汇率Id
  32. /// </summary>
  33. public int Id { get; set; }
  34. /// <summary>
  35. /// 汇率模块 Id
  36. /// </summary>
  37. public int CTableId { get; set; }
  38. /// <summary>
  39. /// 汇率模块
  40. /// </summary>
  41. public string? CTableName { get; set; }
  42. /// <summary>
  43. /// 汇率 List
  44. /// </summary>
  45. public List<TeamRateDescView>? TeamRates { get; set; }
  46. }
  47. public class TeamRateDescView
  48. {
  49. /// <summary>
  50. /// 币种名称
  51. /// </summary>
  52. public string? CurrencyName { get; set; }
  53. /// <summary>
  54. /// 币种Code
  55. /// </summary>
  56. public string? CurrencyCode { get; set; }
  57. /// <summary>
  58. /// 汇率
  59. /// 保存四位小数
  60. /// </summary>
  61. public decimal Rate { get; set; }
  62. }
  63. public class CurrencyHot
  64. {
  65. /// <summary>
  66. /// 币种Id
  67. /// </summary>
  68. public int CurrencyId { get; set; }
  69. /// <summary>
  70. /// 币种名称
  71. /// </summary>
  72. public string? CurrencyName { get; set; }
  73. /// <summary>
  74. /// 币种Code
  75. /// </summary>
  76. public string? CurrencyCode { get; set; }
  77. public decimal Rate { get; set; } = 0.0000M;
  78. /// <summary>
  79. /// 使用次数
  80. /// </summary>
  81. public int Number { get; set; }
  82. }
  83. /// <summary>
  84. ///
  85. /// </summary>
  86. public class TeamRateDescAddCurrencyIdView: TeamRateDescView
  87. {
  88. /// <summary>
  89. /// 币种Id
  90. /// </summary>
  91. public int CurrencyId { get; set; }
  92. }
  93. public class TeamRateModelGeneralView
  94. {
  95. /// <summary>
  96. /// 汇率Id
  97. /// </summary>
  98. public int Id { get; set; }
  99. /// <summary>
  100. /// 汇率模块 Id
  101. /// </summary>
  102. public int CTableId { get; set; }
  103. /// <summary>
  104. /// 汇率模块
  105. /// </summary>
  106. public string? CTableName { get; set; }
  107. /// <summary>
  108. /// 汇率 List
  109. /// </summary>
  110. public List<TeamRateDescAddCurrencyIdView>? TeamRates { get; set; }
  111. }
  112. #endregion
  113. }