using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LYFZ.WanYuKeFuData.Model
{
[Serializable]
public class User
{
public User()
{
}
long _ID = 0;
string _UserID = "";
string _UserName = "";
int _Sex = 1;
string _Password = "";
string _QuanXianPeiZhi = "";
long _CreateTime = 0;
///
/// ID
///
// [Newtonsoft.Json.JsonIgnore]
public long ID
{
get { return _ID; }
set { _ID = value; }
}
///
/// 用户ID 用户于登录的帐号
///
public string UserID
{
get { return _UserID; }
set { _UserID = value; }
}
///
/// 用户名 呢称
///
public string UserName
{
get { return _UserName; }
set { _UserName = value; }
}
///
/// 性别 0 为女 1 为男
///
public int Sex
{
get { return _Sex; }
set { _Sex = value; }
}
///
/// 密码
///
public string Password
{
get { return _Password; }
set { _Password = value; }
}
///
/// 权限
///
public string QuanXianPeiZhi
{
get { return _QuanXianPeiZhi; }
set { _QuanXianPeiZhi = value; }
}
///
/// 创建时间
///
public long CreateTime
{
get { return _CreateTime; }
set { _CreateTime = value; }
}
///
/// 是否为管理员
///
///
public bool IsAdmin()
{
if (this.QuanXianPeiZhi.Trim() == "0")
{
return true;
}
else {
return false;
}
}
}
}