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

namespace Edu.Model.ViewModel.Reserve
{
    /// <summary>
    /// 约课班级信息扩展实体类
    /// </summary>
    public class RB_Reserve_Class_Extend : RB_Reserve_Class
    {
        /// <summary>
        /// 开始日期
        /// </summary>
        public string StartClassDate { get; set; }

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

        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateByName { get; set; }

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

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

        /// <summary>
        /// 教室座位数
        /// </summary>
        public int RoomNum { get; set; }

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

        /// <summary>
        /// 访客预约列表
        /// </summary>
        public List<RB_Visitor_Reserve_Extend> VisitorList { get; set; }

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

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