DObject.cs 954 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Web.UI;
  6. using System.Web;
  7. /// <summary>
  8. /// 常用对象
  9. /// </summary>
  10. public static class DObject
  11. {
  12. /// <summary>
  13. /// 当前页面
  14. /// </summary>
  15. public static Page CURRECT_PAGE
  16. {
  17. get
  18. {
  19. return (Page)HttpContext.Current.Handler;
  20. }
  21. }
  22. /// <summary>
  23. /// 当前时间字符串
  24. /// </summary>
  25. public static string DATE_TIME
  26. {
  27. get
  28. {
  29. return DateTime.Now.ToString("yyyyMMddhhmmss");
  30. }
  31. }
  32. /// <summary>
  33. /// 当前时间字符串
  34. /// </summary>
  35. public static DateTime EMPTY_DATE_TIME
  36. {
  37. get
  38. {
  39. return Convert.ToDateTime("1800-1-1 00:00:00");
  40. }
  41. }
  42. public static string[] MUSER_TYPE = new string[] { "38867b3546a54470b7095b92eda49f5f","e1572fcfb01645fdbbe44fa6d11aa9ab" };
  43. }