using Edu.Common;
using Edu.Common.Plugin;
using System;

namespace Edu.Model.ViewModel.User
{
    /// <summary>
    /// 教师视图实体类
    /// </summary>
    [Serializable]
    public class RB_Teacher_ViewModel : Model.Entity.User.RB_Teacher
    {
        /// <summary>
        /// 集团名称
        /// </summary>
        public string GroupName { get; set; }

        /// <summary>
        /// 学校名称
        /// </summary>
        public string SName { get; set; }

        /// <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 AuditStatusStr { get { return this.AuditStatus.ToName(); } }

        /// <summary>
        /// 课程数量
        /// </summary>
        public int CourseCount { get; set; }

        /// <summary>
        /// 网课产品
        /// </summary>
        public int OnlineClassCount { get; set; }

        /// <summary>
        /// 网课订单
        /// </summary>
        public int OnlineOrderCount { get; set; }

        /// <summary>
        /// 教师账号
        /// </summary>
        public string TeacherAccount { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        public string DeptName { get; set; }

        /// <summary>
        /// 岗位名称
        /// </summary>
        public string PostName { get; set; }

        /// 教师编号
        /// </summary>
        public string QTIds { get; set; }

        /// <summary>
        /// 对应账号id
        /// </summary>
        public int AccountId { get; set; }

        /// <summary>
        /// 离职状态字符串
        /// </summary>
        public string LeaveStatusName
        {
            get
            {
                string str = "";
                if (this.LeaveStatus > 0)
                {
                    str = this.LeaveStatus.ToName();
                }
                return str;
            }
        }

        /// <summary>
        /// 是否查询离职老师(1-是)
        /// </summary>
        public int IsQLeave { get; set; }

        /// <summary>
        /// 直接主管 （OKR专用）
        /// </summary>
        public int DirectSupervisor { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
    }
}