SystemInfo.cs 944 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using LeaRun.Util;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace LeaRun.Application.Code
  8. {
  9. /// <summary>
  10. /// 版 本 6.1
  11. /// Copyright (c) 2013-2016 上海力软信息技术有限公司
  12. /// 创建人:佘赐雄
  13. /// 日 期:2015.11159 10:45
  14. /// 描 述:系统信息
  15. /// </summary>
  16. public class SystemInfo
  17. {
  18. /// <summary>
  19. /// 当前Tab页面模块Id
  20. /// </summary>
  21. public static string CurrentModuleId
  22. {
  23. get
  24. {
  25. return WebHelper.GetCookie("currentmoduleId");
  26. }
  27. }
  28. /// <summary>
  29. /// 当前登录用户Id
  30. /// </summary>
  31. public static string CurrentUserId
  32. {
  33. get
  34. {
  35. return OperatorProvider.Provider.Current().UserId;
  36. }
  37. }
  38. }
  39. }