SystemClockExtensions.cs 832 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.Mvc.Html;
  6. using Bowin.Web.Controls.Mvc;
  7. namespace System.Web.Mvc
  8. {
  9. public static class SystemClockExtensions
  10. {
  11. /// <summary>
  12. /// 系统时钟控件
  13. /// </summary>
  14. /// <param name="htmlHelper"></param>
  15. /// <param name="options"></param>
  16. /// <param name="htmlAttributes"></param>
  17. /// <returns></returns>
  18. public static MvcHtmlString SystemClock(this HtmlHelper htmlHelper,
  19. SystemClockOptions options,
  20. System.Collections.Generic.Dictionary<string, string> htmlAttributes = null)
  21. {
  22. return MvcHtmlString.Create(Bowin.Web.Controls.Mvc.SystemClock.CreateControl(options,htmlAttributes).Render());
  23. }
  24. }
  25. }