using Edu.Model.Entity.Reserve;
using System;
using System.Collections.Generic;
using System.Text;

namespace Edu.Model.ViewModel.Reserve
{
    /// <summary>
    /// 访客约课扩展实体类
    /// </summary>
    public class RB_Visitor_Reserve_Extend : RB_Visitor_Reserve
    {
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateByName { get; set; }

        #region 约课班级信息

        /// <summary>
        /// 预约日期
        /// </summary>
        public DateTime ClassDate { get; set; }

        /// <summary>
        /// 预约时间
        /// </summary>
        public string ClassTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public string EndTime { get; set; }

        /// <summary>
        /// 教师编号
        /// </summary>
        public int TeacherId { get; set; }

        /// <summary>
        /// 教室编号
        /// </summary>
        public int ClassRoomId { get; set; }

        /// <summary>
        /// 预约内容
        /// </summary>
        public string ClassContent { get; set; }

        #endregion

        #region 扩展字段

        /// <summary>
        /// 约课日期
        /// </summary>
        public string ClassDateStr { get { return Common.ConvertHelper.FormatDate(this.ClassDate); } }

        /// <summary>
        /// 访客名称
        /// </summary>
        public string VisitorName { get; set; }

        /// <summary>
        /// 教师名称
        /// </summary>
        public string TeacherName { get; set; }

        /// <summary>
        /// 教室名称
        /// </summary>
        public string RoomName { get; set; }
        #endregion

        /// <summary>
        /// 预约班级编号
        /// </summary>
        public string Q_ReserveClassIds { get; set; }

        /// <summary>
        /// 预约状态(0-跟进中,1-成交，2-流单,3-取消）
        /// </summary>
        public string Q_ReserveStatus { get; set; }

        /// <summary>
        /// 报名人数
        /// </summary>
        public int JoinNum { get; set; }

        /// <summary>
        /// 预约状态字符串
        /// </summary>
        public string ReserveStatusStr
        {
            get
            {
                string str = "";
                switch (this.ReserveStatus)
                {
                    case 0: str = "跟进中"; break;
                    case 1: str = "成交"; break;
                    case 2: str = "流单"; break;
                    case 3: str = "取消"; break;
                }
                return str;
            }
        }

        /// <summary>
        /// 开始日期
        /// </summary>
        public string StartClassDate { get; set; }

        /// <summary>
        /// 结束日期
        /// </summary>
        public string EndClassDate { get; set; }

        /// <summary>
        /// 账户表Id
        /// </summary>
        public int AccountId { get; set; }

        /// <summary>
        /// 是否查询所有约课(1-是)
        /// </summary>
        public int IsQueryAll { get; set; }
    }
}
