Account.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Runtime.Serialization;
  6. using Aitex.Core.Util;
  7. namespace Aitex.Core.Account
  8. {
  9. [Serializable]
  10. public class Account
  11. {
  12. public string AccountId{get;set;}
  13. public string Role{get;set;}
  14. public string RealName{get;set;}
  15. public string Touxian{get;set;}
  16. public string Company{get;set;}
  17. public string Department{get;set;}
  18. public bool AccountStatus{get;set;} //enable or disable
  19. public string Email{get;set;}
  20. public string Telephone{get;set;}
  21. public string Description{get;set;}
  22. public string LastLoginTime{get;set;}
  23. public string LastAccountUpdateTime{get;set;}
  24. public string AccountCreationTime{get;set;}
  25. public SerializableDictionary<string, ViewPermission> Permission{get;set;}
  26. public string Md5Pwd { get; set; }
  27. public string LoginIP { get; set; }
  28. public string LoginId { get; set; }
  29. }
  30. [Serializable]
  31. public class LoginResult
  32. {
  33. public bool ActSucc{get;set;}
  34. public String SessionId{get;set;}
  35. public Account AccountInfo{get;set;}
  36. public String Description{get;set;}
  37. }
  38. [Serializable]
  39. public class CreateAccountResult
  40. {
  41. public bool ActSucc{get;set;}
  42. public String Description{set;get;}
  43. }
  44. [Serializable]
  45. public class DeleteAccountResult
  46. {
  47. public bool ActSucc{get;set;}
  48. public String Description{set;get;}
  49. }
  50. [Serializable]
  51. public class UpdateAccountResult
  52. {
  53. public bool ActSucc { get; set; }
  54. public String Description { set; get; }
  55. }
  56. [Serializable]
  57. public class ChangePwdResult
  58. {
  59. public bool ActSucc { get; set; }
  60. public String Description { set; get; }
  61. }
  62. [Serializable]
  63. public class GetAccountListResult
  64. {
  65. public bool ActSuccess{get;set;}
  66. public IEnumerable<Account> AccountList{get;set;}
  67. public String Description{get;set;}
  68. }
  69. [Serializable]
  70. public class GetAccountInfoResult
  71. {
  72. public bool ActSuccess{get;set;}
  73. public Account AccountInfo{get;set;}
  74. public String Description{get;set;}
  75. }
  76. [Serializable]
  77. [DataContract]
  78. public enum ViewPermission
  79. {
  80. [EnumMember]
  81. Invisiable = 0x1,
  82. [EnumMember]
  83. Readonly = 0x2,
  84. [EnumMember]
  85. PartlyControl = 0x3,
  86. [EnumMember]
  87. FullyControl = 0x4,
  88. /// <summary>
  89. /// 设定ProcessView界面中的OP权限
  90. /// </summary>
  91. [EnumMember]
  92. ProcessOPControl = 0x5,
  93. }
  94. }