Role.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. private string _Description;
  13. public string RoleID
  14. {
  15. get { return _RoleID; }
  16. set { _RoleID = value; }
  17. }
  18. public string RoleName
  19. {
  20. get { return _RoleName; }
  21. set { _RoleName = value; }
  22. }
  23. public bool IsAutoLogout
  24. {
  25. get { return _AutoLogout; }
  26. set { _AutoLogout = value; }
  27. }
  28. public int LogoutTime
  29. {
  30. get { return _LogoutTime; }
  31. set { _LogoutTime = value; }
  32. }
  33. public string MenuPermission
  34. {
  35. get { return _MenuPermission; }
  36. set { _MenuPermission = value; }
  37. }
  38. public string Description
  39. {
  40. get { return _Description; }
  41. set { _Description = value; }
  42. }
  43. public bool IsSuper { get; set; }
  44. public Role(string p_strRoleID, string p_strRoleName, bool p_bAutoLogout, int p_nLogoutTime, string p_strPermission, string p_strDescription = "")
  45. {
  46. this.RoleID = p_strRoleID;
  47. this._RoleName = p_strRoleName;
  48. this._AutoLogout = p_bAutoLogout;
  49. this._LogoutTime = p_nLogoutTime;
  50. this._Description = p_strDescription;
  51. this._MenuPermission = p_strPermission;
  52. this.IsSuper = false;
  53. }
  54. }
  55. }