using Edu.Common;
using System;

namespace Edu.Model.ViewModel.User
{
    /// <summary>
    /// 学生视图实体类
    /// </summary>
    [Serializable]
    public class RB_Student_ViewModel : Model.Entity.User.RB_Student
    {
        /// <summary>
        /// 创建人姓名
        /// </summary>
        public string CreateByName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public string CreateTimeStr { get { return this.CreateTime.FormatTime(); } }

        /// <summary>
        /// 修改人姓名
        /// </summary>
        public string UpdateByName { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public string UpdateTimeStr { get { return this.UpdateTime.FormatTime(); } }

        /// <summary>
        /// 出生日期字符串
        /// </summary>
        public string StuBirthStr
        {
            get
            {
                return this.StuBirth.FormatDate();
            }
        }

        /// <summary>
        /// 禁用、启用字符串
        /// </summary>
        public string IsDisableStr
        {
            get
            {
                string str = "启用";
                if (this.IsDisable == 0)
                {
                    str = "禁用";
                }
                return str;
            }
        }

        /// <summary>
        /// 所属校区
        /// </summary>
        public string SName { get; set; }

        /// <summary>
        /// 地区名称【省/市/区县】
        /// </summary>
        public string AreaName { get; set; }

        /// <summary>
        /// 学生账号
        /// </summary>
        public string StudentAccount { get; set; }

        /// <summary>
        /// 班级名称
        /// </summary>
        public string ClassName { get; set; }
    }
}