SetDataView.cs 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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. public int RemarkSort
  34. {
  35. get
  36. {
  37. int sort = 0;
  38. int.TryParse(Remark, out sort);
  39. return sort;
  40. }
  41. }
  42. }
  43. /// <summary>
  44. /// 卡类型数据data
  45. /// </summary>
  46. public class SetDataCurrencyInfoView
  47. {
  48. public int Id { get; set; }
  49. /// <summary>
  50. /// 分类名称
  51. /// </summary>
  52. public string? Name { get; set; }
  53. /// <summary>
  54. /// 卡类型对应的币种
  55. /// </summary>
  56. public string? Currency { get {
  57. string? currency = string.Empty;
  58. if (Id == 74) currency = "USD"; //74 美元卡
  59. else if (Id == 75) currency = "EUR"; //775 欧元卡
  60. else if(Id == 86) currency = "CNY"; //86 招行卡
  61. else if (Id == 346) currency = "CNY"; //346 中信卡
  62. else if (Id == 363) currency = "CNY"; //363 交行卡
  63. return currency;
  64. } }
  65. /// <summary>
  66. /// 持卡人
  67. /// </summary>
  68. public string? Cardholder { get; set; } = "Zhang Hailin";
  69. /// <summary>
  70. /// 卡号
  71. /// </summary>
  72. public string? Remark { get; set; }
  73. }
  74. public class SetDataAndPageInfoView
  75. {
  76. /// <summary>
  77. /// 模块id
  78. /// </summary>
  79. public int Modulid { get; set; }
  80. /// <summary>
  81. /// 分类名称
  82. /// </summary>
  83. public string ModulName { get; set; }
  84. /// <summary>
  85. /// setdatatype id
  86. /// </summary>
  87. public int STid { get; set; }
  88. /// <summary>
  89. /// 模块备注
  90. /// </summary>
  91. public string ModulRemark { get; set; }
  92. /// <summary>
  93. /// 页面id
  94. /// </summary>
  95. public int Pageid { get; set; }
  96. /// <summary>
  97. /// 页面名称
  98. /// </summary>
  99. public string PageName { get; set; }
  100. /// <summary>
  101. /// 页面是否启用
  102. /// </summary>
  103. public int PageIsEnable { get; set; }
  104. public int PagePhoneIsEnable { get; set; }
  105. /// <summary>
  106. /// 页面Code
  107. /// </summary>
  108. public string SystemMenuCode { get; set; }
  109. public string WebUrl { get; set; }
  110. public string AndroidUrl { get; set; }
  111. public string IosUrl { get; set; }
  112. /// <summary>
  113. /// 手机端图标
  114. /// </summary>
  115. public string Icon { get; set; }
  116. /// <summary>
  117. /// 页面备注
  118. /// </summary>
  119. public string PageRemark { get; set; }
  120. /// <summary>
  121. /// 页面添加的操作
  122. /// </summary>
  123. public List<int> FunArr { get; set; }
  124. }
  125. public class SetDataAndPageInfoDto
  126. {
  127. /// <summary>
  128. /// 模块id
  129. /// </summary>
  130. public int Modulid { get; set; }
  131. /// <summary>
  132. /// 分类名称
  133. /// </summary>
  134. public string ModulName { get; set; }
  135. /// <summary>
  136. /// setdatatype id
  137. /// </summary>
  138. public int STid { get; set; }
  139. /// <summary>
  140. /// 模块备注
  141. /// </summary>
  142. public string ModulRemark { get; set; }
  143. /// <summary>
  144. /// 页面id
  145. /// </summary>
  146. public int Pageid { get; set; }
  147. /// <summary>
  148. /// 页面名称
  149. /// </summary>
  150. public string PageName { get; set; }
  151. /// <summary>
  152. /// 页面是否启用
  153. /// </summary>
  154. public int PageIsEnable { get; set; }
  155. public int PagePhoneIsEnable { get; set; }
  156. /// <summary>
  157. /// 页面Code
  158. /// </summary>
  159. public string SystemMenuCode { get; set; }
  160. public string WebUrl { get; set; }
  161. public string AndroidUrl { get; set; }
  162. public string IosUrl { get; set; }
  163. /// <summary>
  164. /// 手机端图标
  165. /// </summary>
  166. public string Icon { get; set; }
  167. /// <summary>
  168. /// 页面备注
  169. /// </summary>
  170. public string PageRemark { get; set; }
  171. /// <summary>
  172. /// 页面添加的操作
  173. /// </summary>
  174. public List<int> FunArr { get; set; }
  175. /// <summary>
  176. /// 用户ID
  177. /// </summary>
  178. public int UserId { get; set; }
  179. }
  180. public class SetDataIView:Sys_SetData
  181. {
  182. public string StName { get; set; }
  183. public string CnName { get;set; }
  184. }
  185. }