Account.cs 3.1 KB

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