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