//  @ Project : TestOnline
//  @ File Name : User.cs
//  @ Date : 2009-3-12
//  @ Author : ruimingde
using System;
using System.Collections.Generic;
using System.Text;

namespace Entity
{
    [Serializable]
    public class User
    {
        private string userID;
        public string UserID
        {
            get { return userID; }
            set { userID = value; }
        }

        private string name;
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        private string userPwd;
        public string UserPwd
        {
            get { return userPwd; }
            set { userPwd = value; }
        }

        private Department department = new Department();
        public Department Department
        {
            get { return department; }
            set { department = value; }
        }

        private List<string> rightList;

        public List<string> RightList
        {
            get { return rightList; }
            set { rightList = value; }
        }

        private bool locked;
        public bool Locked
        {
            get { return locked; }
            set { locked = value; }
        }

        private DateTime lastLoginTime = DateTime.Now;
        public DateTime LastLoginTime
        {
            get { return lastLoginTime; }
            set { lastLoginTime = value; }
        }

        private string lastLoginIP;
        public string LastLoginIP
        {
            get { return lastLoginIP; }
            set { lastLoginIP = value; }
        }

        private DateTime createdTime = DateTime.Now;
        public DateTime CreatedTime
        {
            get { return createdTime; }
            set { createdTime = value; }
        }
      
        public Sex Sex { get; set; }
        public DateTime BirthDay { get; set; }
        public string Hometown { get; set; }
        public string School { get; set; }
        public string Major { get; set; }
        public string StudyExprience { get; set; }
        public DateTime GraduateDate { get; set; }
        public string Telephone { get; set; }
        public string Email { get; set; }
    }
    public enum Sex
    {
        male=0,
        female=1,
        secrect=2
    }
}
