using System;
namespace Core.StlMes.Client.Qcm
{
public enum UserInfoAttributeType
{
Department,
Deptid,
GuidCode,
LoginID,
LoginTime,
MachineIP,
MachineName,
PurviewInfo,
Role,
UserGroup,
UserGroupText,
UserID,
UserName,
UserOrder,
UserOrderText
}
///
/// 用来标识用户信息特性
///
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
class UserInfoAttribute : Attribute
{
private UserInfoAttributeType _userInfoAttributeType;
///
/// 绑定的用户数据类型
///
public UserInfoAttributeType UserInfoAttributeType
{
get { return _userInfoAttributeType; }
set { _userInfoAttributeType = value; }
}
///
/// 用户数据特性构造函数
///
/// 绑定的用户数据类型
public UserInfoAttribute(UserInfoAttributeType userInfoAttributeType)
{
_userInfoAttributeType = userInfoAttributeType;
}
}
}