AccountEx.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. using System;
  2. using System.Collections.Generic;
  3. namespace MECF.Framework.Common.Account.Extends
  4. {
  5. [Serializable]
  6. public class AccountEx
  7. {
  8. private string m_strUserID;
  9. private string m_strLoginName;
  10. private string m_strFirstName;
  11. private string m_strLastName;
  12. private string m_strEmail;
  13. private string m_strDescription;
  14. private string m_strPassword;
  15. private List<string> m_strRoles;
  16. public string UserID
  17. {
  18. get { return m_strUserID; }
  19. set { m_strUserID = value; }
  20. }
  21. public string LoginName
  22. {
  23. get { return m_strLoginName; }
  24. set { m_strLoginName = value; }
  25. }
  26. public string FirstName
  27. {
  28. get { return m_strFirstName; }
  29. set { m_strFirstName = value; }
  30. }
  31. public string LastName
  32. {
  33. get { return m_strLastName; }
  34. set { m_strLastName = value; }
  35. }
  36. public string Email
  37. {
  38. get { return m_strEmail; }
  39. set { m_strEmail = value; }
  40. }
  41. public string Description
  42. {
  43. get { return m_strDescription; }
  44. set { m_strDescription = value; }
  45. }
  46. public string Password
  47. {
  48. get { return m_strPassword; }
  49. set { m_strPassword = value; }
  50. }
  51. public string LoginId { get; set; }
  52. public bool IsSuper { get; set; }
  53. public List<string> RoleIDs
  54. {
  55. get { return m_strRoles; }
  56. set { m_strRoles = value; }
  57. }
  58. public AccountEx(string p_strUserID, string p_strLoginName, string p_strPassword, string p_strFirstName, string p_strLastName, string p_strEmail, List<string> p_roles, string p_strDescription = "")
  59. {
  60. this.m_strUserID = p_strUserID;
  61. this.m_strLoginName = p_strLoginName;
  62. this.m_strFirstName = p_strFirstName;
  63. this.m_strLastName = p_strLastName;
  64. this.m_strEmail = p_strEmail;
  65. this.m_strDescription = p_strDescription;
  66. this.m_strPassword = p_strPassword;
  67. this.m_strRoles = p_roles;
  68. this.IsSuper = false;
  69. }
  70. }
  71. }