using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Serialization; using Aitex.Core.Util; namespace Aitex.Core.Account { [Serializable] public class Account { /// /// get account name /// public string AccountId { get; set; } /// /// Account role name /// public string Role { get; set; } /// /// get user's real name /// public string RealName { get; set; } /// /// get user title, em, manager, ceo, engineer, operator, .. /// public string Touxian { get; set; } /// /// get user company name /// public string Company { get; set; } /// /// get user's department name /// public string Department { get; set; } /// /// get account status, enable|disable /// public bool AccountStatus { get; set; } /// /// get user's email address /// public string Email { get; set; } /// /// get user's telphone number /// public string Telephone { get; set; } /// /// get account's description /// public string Description { get; set; } /// /// get user last login time /// public string LastLoginTime { get; set; } /// /// get last update account update time /// public string LastAccountUpdateTime { get; set; } /// /// get account creation time /// public string AccountCreationTime { get; set; } /// /// Each view's access permission /// public SerializableDictionary Permission { get; set; } /// /// MD5 pwd /// public string Md5Pwd { get; set; } public string LoginIP { get; set; } } /// /// Login result /// [Serializable] public class LoginResult { /// /// login true/fail /// public bool ActSucc { get; set; } /// /// session id /// public String SessionId { get; set; } /// /// current login account info /// public Account AccountInfo { get; set; } /// /// login result description /// public String Description { get; set; } } /// /// create account account define /// [Serializable] public class CreateAccountResult { /// /// result true/false /// public bool ActSucc { get; set; } /// /// create account description /// public String Description { set; get; } } /// /// delete account result define /// [Serializable] public class DeleteAccountResult { /// /// delete account true/false /// public bool ActSucc { get; set; } /// /// delete account result description /// public String Description { set; get; } } /// /// Update account return result /// [Serializable] public class UpdateAccountResult { /// /// update account result, true/false /// public bool ActSucc { get; set; } /// /// update account result description /// public String Description { set; get; } } /// /// change password result define /// [Serializable] public class ChangePwdResult { /// /// result true/false /// public bool ActSucc { get; set; } /// /// change password description /// public String Description { set; get; } } /// /// get account list result define /// [Serializable] public class GetAccountListResult { /// /// get account list result true/false /// public bool ActSuccess { get; set; } /// /// get account list result /// public IEnumerable AccountList { get; set; } /// /// get account list description /// public String Description { get; set; } } /// /// get account info result define /// [Serializable] public class GetAccountInfoResult { /// /// get result true/false /// public bool ActSuccess { get; set; } /// /// specified account data /// public Account AccountInfo { get; set; } /// /// action result description /// public String Description { get; set; } } /// /// 角色权限设置 /// [Serializable] [DataContract] public enum ViewPermission { [EnumMember] Invisiable = 0x1, [EnumMember] Readonly = 0x2, [EnumMember] PartlyControl = 0x3, [EnumMember] FullyControl = 0x4, /// /// 设定ProcessView界面中的OP权限 /// [EnumMember] ProcessOPControl = 0x5, } }