Role.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using System;
  2. namespace MECF.Framework.Common.Account.Extends
  3. {
  4. [Serializable]
  5. public class Role
  6. {
  7. private string _RoleID;
  8. private string _RoleName;
  9. private bool _AutoLogout;
  10. private int _LogoutTime;
  11. private string _MenuPermission;
  12. public string RoleID
  13. {
  14. get { return _RoleID; }
  15. set { _RoleID = value; }
  16. }
  17. public string RoleName
  18. {
  19. get { return _RoleName; }
  20. set { _RoleName = value; }
  21. }
  22. public bool IsAutoLogout
  23. {
  24. get { return _AutoLogout; }
  25. set { _AutoLogout = value; }
  26. }
  27. public int LogoutTime
  28. {
  29. get { return _LogoutTime; }
  30. set { _LogoutTime = value; }
  31. }
  32. public string MenuPermission
  33. {
  34. get { return _MenuPermission; }
  35. set { _MenuPermission = value; }
  36. }
  37. public bool IsSuper { get; set; }
  38. public Role(string p_strRoleID, string p_strRoleName, bool p_bAutoLogout, int p_nLogoutTime, string p_strPermission)
  39. {
  40. this.RoleID = p_strRoleID;
  41. this._RoleName = p_strRoleName;
  42. this._AutoLogout = p_bAutoLogout;
  43. this._LogoutTime = p_nLogoutTime;
  44. this._MenuPermission = p_strPermission;
  45. this.IsSuper = false;
  46. }
  47. }
  48. }