SetDataView.cs 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. using OASystem.Domain.Entities.System;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace OASystem.Domain.ViewModels.System
  8. {
  9. public class SetDataView
  10. {
  11. public int Id { get; set; }
  12. /// <summary>
  13. /// 分类名称
  14. /// </summary>
  15. public string Name { get; set; }
  16. /// <summary>
  17. /// setdatatype id
  18. /// </summary>
  19. public int STid { get; set; }
  20. public string Remark { get; set; }
  21. }
  22. /// <summary>
  23. /// 数据data
  24. /// </summary>
  25. public class SetDataInfoView
  26. {
  27. public int Id { get; set; }
  28. /// <summary>
  29. /// 分类名称
  30. /// </summary>
  31. public string Name { get; set; }
  32. public string Remark { get; set; }
  33. }
  34. /// <summary>
  35. /// 卡类型数据data
  36. /// </summary>
  37. public class SetDataCurrencyInfoView
  38. {
  39. public int Id { get; set; }
  40. /// <summary>
  41. /// 分类名称
  42. /// </summary>
  43. public string? Name { get; set; }
  44. /// <summary>
  45. /// 卡类型对应的币种
  46. /// </summary>
  47. public string? Currency { get {
  48. string? currency = string.Empty;
  49. if (Id == 74) currency = "USD"; //74 美元卡
  50. else if (Id == 75) currency = "EUR"; //775 欧元卡
  51. else if(Id == 86) currency = "CNY"; //86 招行卡
  52. else if (Id == 346) currency = "CNY"; //346 中信卡
  53. else if (Id == 363) currency = "CNY"; //363 交行卡
  54. return currency;
  55. } }
  56. /// <summary>
  57. /// 持卡人
  58. /// </summary>
  59. public string? Cardholder { get; set; } = "Zhang Hailin";
  60. /// <summary>
  61. /// 卡号
  62. /// </summary>
  63. public string? Remark { get; set; }
  64. }
  65. public class SetDataAndPageInfoView
  66. {
  67. /// <summary>
  68. /// 模块id
  69. /// </summary>
  70. public int Modulid { get; set; }
  71. /// <summary>
  72. /// 分类名称
  73. /// </summary>
  74. public string ModulName { get; set; }
  75. /// <summary>
  76. /// setdatatype id
  77. /// </summary>
  78. public int STid { get; set; }
  79. /// <summary>
  80. /// 模块备注
  81. /// </summary>
  82. public string ModulRemark { get; set; }
  83. /// <summary>
  84. /// 页面id
  85. /// </summary>
  86. public int Pageid { get; set; }
  87. /// <summary>
  88. /// 页面名称
  89. /// </summary>
  90. public string PageName { get; set; }
  91. /// <summary>
  92. /// 页面是否启用
  93. /// </summary>
  94. public int PageIsEnable { get; set; }
  95. public int PagePhoneIsEnable { get; set; }
  96. /// <summary>
  97. /// 页面Code
  98. /// </summary>
  99. public string SystemMenuCode { get; set; }
  100. public string WebUrl { get; set; }
  101. public string AndroidUrl { get; set; }
  102. public string IosUrl { get; set; }
  103. /// <summary>
  104. /// 手机端图标
  105. /// </summary>
  106. public string Icon { get; set; }
  107. /// <summary>
  108. /// 页面备注
  109. /// </summary>
  110. public string PageRemark { get; set; }
  111. /// <summary>
  112. /// 页面添加的操作
  113. /// </summary>
  114. public List<int> FunArr { get; set; }
  115. }
  116. public class SetDataAndPageInfoDto
  117. {
  118. /// <summary>
  119. /// 模块id
  120. /// </summary>
  121. public int Modulid { get; set; }
  122. /// <summary>
  123. /// 分类名称
  124. /// </summary>
  125. public string ModulName { get; set; }
  126. /// <summary>
  127. /// setdatatype id
  128. /// </summary>
  129. public int STid { get; set; }
  130. /// <summary>
  131. /// 模块备注
  132. /// </summary>
  133. public string ModulRemark { get; set; }
  134. /// <summary>
  135. /// 页面id
  136. /// </summary>
  137. public int Pageid { get; set; }
  138. /// <summary>
  139. /// 页面名称
  140. /// </summary>
  141. public string PageName { get; set; }
  142. /// <summary>
  143. /// 页面是否启用
  144. /// </summary>
  145. public int PageIsEnable { get; set; }
  146. public int PagePhoneIsEnable { get; set; }
  147. /// <summary>
  148. /// 页面Code
  149. /// </summary>
  150. public string SystemMenuCode { get; set; }
  151. public string WebUrl { get; set; }
  152. public string AndroidUrl { get; set; }
  153. public string IosUrl { get; set; }
  154. /// <summary>
  155. /// 手机端图标
  156. /// </summary>
  157. public string Icon { get; set; }
  158. /// <summary>
  159. /// 页面备注
  160. /// </summary>
  161. public string PageRemark { get; set; }
  162. /// <summary>
  163. /// 页面添加的操作
  164. /// </summary>
  165. public List<int> FunArr { get; set; }
  166. /// <summary>
  167. /// 用户ID
  168. /// </summary>
  169. public int UserId { get; set; }
  170. }
  171. public class SetDataIView:Sys_SetData
  172. {
  173. public string StName { get; set; }
  174. public string CnName { get;set; }
  175. }
  176. }