EnumHelper.cs 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. #region 对外枚举
  6. namespace Bowin.Web.Controls.Mvc
  7. {
  8. public enum EditerLoadModelEnum
  9. {
  10. /// <summary>
  11. /// 数据读取成功后激活当前页内所有行的编辑器(速度较慢)
  12. /// </summary>
  13. //Init,
  14. /// <summary>
  15. /// 双击行后激活对应行的编辑器
  16. /// </summary>
  17. DoubleClickRow
  18. }
  19. /// <summary>
  20. /// 编辑器模式
  21. /// </summary>
  22. public enum EditerModelEnum
  23. {
  24. /// <summary>
  25. /// 禁用
  26. /// </summary>
  27. Disabled = 0,
  28. /// <summary>
  29. /// 启用
  30. /// </summary>
  31. Enabled = 1,
  32. /// <summary>
  33. /// 即时响应
  34. /// </summary>
  35. Forthwith = 2
  36. }
  37. /// <summary>
  38. /// 鼠标事件
  39. /// </summary>
  40. public enum MouseEventEnum
  41. {
  42. /// <summary>
  43. /// 鼠标单击
  44. /// </summary>
  45. OnClick,
  46. /// <summary>
  47. /// 鼠标移入
  48. /// </summary>
  49. OnMouseOver,
  50. /// <summary>
  51. /// 鼠标离开
  52. /// </summary>
  53. OnMouseOut
  54. }
  55. /// <summary>
  56. /// 跳转方式
  57. /// </summary>
  58. public enum TargetTypeEnum
  59. {
  60. /// <summary>
  61. /// 不跳转,触发Ajax事件
  62. /// </summary>
  63. Ajax,
  64. /// <summary>
  65. /// 开新窗
  66. /// </summary>
  67. Blank,
  68. /// <summary>
  69. /// 当前页
  70. /// </summary>
  71. Self,
  72. /// <summary>
  73. /// 父框架
  74. /// </summary>
  75. Parent,
  76. /// <summary>
  77. /// 最顶层框架
  78. /// </summary>
  79. Top
  80. }
  81. /// <summary>
  82. /// 对齐方式
  83. /// </summary>
  84. public enum AlignStyle
  85. {
  86. Left,
  87. Right,
  88. Center
  89. }
  90. /// <summary>
  91. /// 按钮图标
  92. /// </summary>
  93. public enum ButtonIcon
  94. {
  95. Add,
  96. Edit,
  97. Delete,
  98. Print,
  99. App,
  100. Search,
  101. Save
  102. }
  103. /// <summary>
  104. /// DataGird数据列格式化
  105. /// </summary>
  106. public enum Formatter
  107. {
  108. /// <summary>
  109. /// 正常,不格式化
  110. /// </summary>
  111. None,
  112. /// <summary>
  113. /// 格式化为"完整日期"
  114. /// yyyy-MM-dd HH:mm:ss:fff
  115. /// </summary>
  116. FullDate,
  117. /// <summary>
  118. /// 格式化为"短日期"
  119. /// hh:mm:ss
  120. /// </summary>
  121. ShortDate,
  122. /// <summary>
  123. /// 格式化为"长日期"
  124. /// yyyy-MM-dd HH:mm:ss
  125. /// </summary>
  126. LongDate,
  127. /// <summary>
  128. /// 格式化为"年月"
  129. /// </summary>
  130. OnlyYearMonth,
  131. /// <summary>
  132. /// 格式化为"年月日"
  133. /// yyyy-MM-dd
  134. /// </summary>
  135. OnlyYearMonthDay,
  136. /// <summary>
  137. /// 格式化为"中文 短日期"
  138. /// hh时mm分ss秒
  139. /// </summary>
  140. CHSShortDate,
  141. /// <summary>
  142. /// 格式化为"中文 长日期"
  143. /// yyyy年MM月dd日 HH时mm分ss秒
  144. /// </summary>
  145. CHSLongDate,
  146. /// <summary>
  147. /// 格式化为"中文 长日期"
  148. /// yyyy年MM月dd日 HH时mm分ss秒
  149. /// </summary>
  150. CHSLongDateNoSecond,
  151. /// <summary>
  152. /// 格式化为"中文 年月日"
  153. /// yyyy年MM月dd日
  154. /// </summary>
  155. CHSOnlyYearMonthDay,
  156. CodeConvertName
  157. }
  158. /// <summary>
  159. /// 自动附加数据
  160. /// </summary>
  161. public enum IncludedData
  162. {
  163. /// <summary>
  164. /// Table控件中当前被选中行的数据
  165. /// </summary>
  166. Table_CurrentRow,
  167. /// <summary>
  168. /// Table控件中所有选中行的数据
  169. /// </summary>
  170. Table_Selections,
  171. /// <summary>
  172. /// 无
  173. /// </summary>
  174. None
  175. }
  176. /// <summary>
  177. /// 操作类型
  178. /// </summary>
  179. public enum Operation
  180. {
  181. /// <summary>
  182. /// 增加
  183. /// </summary>
  184. Add,
  185. /// <summary>
  186. /// 删除
  187. /// </summary>
  188. Delete,
  189. /// <summary>
  190. /// 更新
  191. /// </summary>
  192. Update,
  193. /// <summary>
  194. /// 自定义
  195. /// </summary>
  196. Custom
  197. }
  198. /// <summary>
  199. /// TextBox控件类型
  200. /// </summary>
  201. public enum TextBoxType
  202. {
  203. /// <summary>
  204. /// 普通文本输入框
  205. /// </summary>
  206. Normal,
  207. /// <summary>
  208. /// 密码输入框
  209. /// </summary>
  210. Password,
  211. /// <summary>
  212. /// 日期时间输入框
  213. /// </summary>
  214. DateTime,
  215. /// <summary>
  216. /// 日期输入框(不含时钟)
  217. /// </summary>
  218. Date,
  219. /// <summary>
  220. /// 时分秒输入,不包含日期
  221. /// </summary>
  222. Time,
  223. /// <summary>
  224. /// 日期输入框(不含几号)年-月
  225. /// </summary>
  226. Month,
  227. yyyyMMdd,
  228. }
  229. /// <summary>
  230. /// 时钟跳动方式
  231. /// </summary>
  232. public enum TimeJumpType
  233. {
  234. 顺序,
  235. 倒序
  236. }
  237. }
  238. #endregion
  239. #region 对内枚举
  240. namespace Bowin.Web.Controls.Mvc.Helper
  241. {
  242. /// <summary>
  243. /// 格式化类型
  244. /// </summary>
  245. public enum FormatterType
  246. {
  247. /// <summary>
  248. /// 不格式化||未知类型
  249. /// </summary>
  250. None,
  251. /// <summary>
  252. /// 时间类型
  253. /// </summary>
  254. DateTime
  255. }
  256. /// <summary>
  257. /// 控件类型
  258. /// </summary>
  259. public enum Control
  260. {
  261. Button,
  262. LinkButton,
  263. DropdownList,
  264. DataGrid,
  265. PostionBar,
  266. SystemClock,
  267. TextBox,
  268. Toolbar,
  269. ToolbarButton,
  270. DateBox
  271. }
  272. }
  273. #endregion