123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- 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;
- /// <summary>
- /// ID
- /// </summary>
- // [Newtonsoft.Json.JsonIgnore]
- public long ID
- {
- get { return _ID; }
- set { _ID = value; }
- }
- /// <summary>
- /// 用户ID 用户于登录的帐号
- /// </summary>
- public string UserID
- {
- get { return _UserID; }
- set { _UserID = value; }
- }
- /// <summary>
- /// 用户名 呢称
- /// </summary>
- public string UserName
- {
- get { return _UserName; }
- set { _UserName = value; }
- }
- /// <summary>
- /// 性别 0 为女 1 为男
- /// </summary>
- public int Sex
- {
- get { return _Sex; }
- set { _Sex = value; }
- }
- /// <summary>
- /// 密码
- /// </summary>
- public string Password
- {
- get { return _Password; }
- set { _Password = value; }
- }
- /// <summary>
- /// 权限
- /// </summary>
- public string QuanXianPeiZhi
- {
- get { return _QuanXianPeiZhi; }
- set { _QuanXianPeiZhi = value; }
- }
- /// <summary>
- /// 创建时间
- /// </summary>
- public long CreateTime
- {
- get { return _CreateTime; }
- set { _CreateTime = value; }
- }
- /// <summary>
- /// 是否为管理员
- /// </summary>
- /// <returns></returns>
- public bool IsAdmin()
- {
- if (this.QuanXianPeiZhi.Trim() == "0")
- {
- return true;
- }
- else {
- return false;
- }
- }
- }
- }
|