AppProjectPage.cs 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. using Mapster;
  2. namespace Customer.Source
  3. {
  4. /// <summary>
  5. /// APP页面模板 app_project_page
  6. /// </summary>
  7. public class AppProjectPage
  8. {
  9. /// <summary>
  10. /// 模板更新版本
  11. /// </summary>
  12. public int moduleVersion { get; set; }
  13. /// <summary>
  14. /// 是否读取网页标题
  15. /// </summary>
  16. public bool webTitle { get; set; }
  17. /// <summary>
  18. /// 分类
  19. /// </summary>
  20. public string? kind { get; set; }
  21. /// <summary>
  22. /// 更新时间
  23. /// </summary>
  24. public DateTime? updateTime { get; set; }
  25. /// <summary>
  26. /// 创建时间
  27. /// </summary>
  28. public DateTime? createTime { get; set; }
  29. /// <summary>
  30. /// 创建人
  31. /// </summary>
  32. public string? createBy { get; set; }
  33. /// <summary>
  34. /// 更新人
  35. /// </summary>
  36. public string? updateBy { get; set; }
  37. /// <summary>
  38. /// 版本号
  39. /// </summary>
  40. public int version { get; set; }
  41. /// <summary>
  42. /// 排序
  43. /// </summary>
  44. public int sort { get; set; }
  45. /// <summary>
  46. /// 状态
  47. /// </summary>
  48. public int status { get; set; }
  49. /// <summary>
  50. /// ID
  51. /// </summary>
  52. public int id { get; set; }
  53. /// <summary>
  54. /// 页面强制更新
  55. /// </summary>
  56. public bool mustUpdate { get; set; }
  57. /// <summary>
  58. /// 下级页面
  59. /// </summary>
  60. public string? gotoPages { get; set; }
  61. /// <summary>
  62. /// 版本ID
  63. /// </summary>
  64. public int versionId { get; set; }
  65. /// <summary>
  66. /// 右侧侧按钮
  67. /// </summary>ColumnDataType = "json")]
  68. public List<BtnItem>? rightBtn { get; set; }
  69. public string? rightBtn1
  70. {
  71. get
  72. {
  73. if(rightBtn != null)
  74. {
  75. if(rightBtn.Count > 0)
  76. {
  77. return rightBtn[0].btnIcon ?? rightBtn[0].btnText ?? "";
  78. }
  79. }
  80. return "";
  81. }
  82. }
  83. public string? rightBtn2
  84. {
  85. get
  86. {
  87. if(rightBtn != null)
  88. {
  89. if(rightBtn.Count > 1)
  90. {
  91. return rightBtn[1].btnIcon ?? rightBtn[1].btnText ?? "";
  92. }
  93. }
  94. return "";
  95. }
  96. }
  97. public string? rightAction1
  98. {
  99. get
  100. {
  101. if(rightBtn != null)
  102. {
  103. if(rightBtn.Count > 0)
  104. {
  105. return rightBtn[0].btnAction ?? "";
  106. }
  107. }
  108. return "";
  109. }
  110. }
  111. public string? rightAction2
  112. {
  113. get
  114. {
  115. if(rightBtn != null)
  116. {
  117. if(rightBtn.Count > 1)
  118. {
  119. return rightBtn[1].btnAction ?? "";
  120. }
  121. }
  122. return "";
  123. }
  124. }
  125. /// <summary>
  126. /// 左侧按钮
  127. /// </summary>= "json")]
  128. public List<BtnItem>? leftBtn { get; set; }
  129. public string? leftBtn1
  130. {
  131. get
  132. {
  133. if(leftBtn != null)
  134. {
  135. if(leftBtn.Count > 0)
  136. {
  137. return leftBtn[0].btnIcon ?? leftBtn[0].btnText ?? "";
  138. }
  139. }
  140. return "";
  141. }
  142. }
  143. public string? leftBtn2
  144. {
  145. get
  146. {
  147. if(leftBtn != null)
  148. {
  149. if(leftBtn.Count > 1)
  150. {
  151. return leftBtn[1].btnIcon ?? leftBtn[1].btnText ?? "";
  152. }
  153. }
  154. return "";
  155. }
  156. }
  157. public string? leftAction1
  158. {
  159. get
  160. {
  161. if(leftBtn != null)
  162. {
  163. if(leftBtn.Count > 0)
  164. {
  165. return leftBtn[0].btnAction ?? "";
  166. }
  167. }
  168. return "";
  169. }
  170. }
  171. public string? leftAction2
  172. {
  173. get
  174. {
  175. if(leftBtn != null)
  176. {
  177. if(leftBtn.Count > 1)
  178. {
  179. return leftBtn[1].btnAction ?? "";
  180. }
  181. }
  182. return "";
  183. }
  184. }
  185. /// <summary>
  186. /// 手势侧滑返回
  187. /// </summary>
  188. public bool skidFlag { get; set; }
  189. /// <summary>
  190. /// 页面滚动条
  191. /// </summary>
  192. public bool showScrollBar { get; set; }
  193. public int isScrollBar
  194. {
  195. get
  196. {
  197. return showScrollBar ? 1 : 0;
  198. }
  199. }
  200. /// <summary>
  201. /// 顶部标题
  202. /// </summary>
  203. public string? title { get; set; }
  204. /// <summary>
  205. /// 显示头部
  206. /// </summary>
  207. public bool showTitle { get; set; }
  208. /// <summary>
  209. /// 苹果状态栏
  210. /// </summary>
  211. public string? statusBarStyle { get; set; }
  212. /// <summary>
  213. /// 前景色
  214. /// </summary>
  215. public string? textColor { get; set; }
  216. /// <summary>
  217. /// 背景色
  218. /// </summary>
  219. public string? backgroudColor { get; set; }
  220. public string? bgColor
  221. {
  222. get
  223. {
  224. return backgroudColor;
  225. }
  226. }
  227. /// <summary>
  228. /// 页面路径
  229. /// </summary>
  230. public string? modulePath { get; set; }
  231. /// <summary>
  232. /// APP项目ID
  233. /// </summary>
  234. public int appId { get; set; }
  235. /// <summary>
  236. /// 顶部标题位置
  237. /// </summary>
  238. public string? titlePosition { get; set; }
  239. /// <summary>
  240. /// 页面文件
  241. /// </summary>
  242. public string? moduleFile { get; set; }
  243. /// <summary>
  244. /// 数据ID
  245. /// </summary>
  246. public string? dataId { get; set; }
  247. }
  248. public class BtnItem
  249. {
  250. public string? btnText { get; set; }
  251. public string? btnTcon { get; set; }
  252. public string? btnAction { get; set; }
  253. public string? btnIcon { get; set; }
  254. }
  255. }