using Edu.Common.Enum;
using Edu.Common.Enum.Course;
using System;
using VT.FW.DB;

namespace Edu.Model.Entity.Scroll
{
    /// <summary>
    /// 滚动开班预约类
    /// </summary>
    [Serializable]
    [DB(ConnectionName = "DefaultConnection")]
	public class RB_Scroll_Appointment
	{
		/// <summary>
		/// Id
		/// </summary>
		public int Id { get; set; }

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

		/// <summary>
		/// 老师ID(Account表ID)
		/// </summary>
		public int AccountId { get; set; }

		/// <summary>
		/// 学生ID
		/// </summary>
		public int StuId { get; set; }

		/// <summary>
		/// 课程ID
		/// </summary>
		public int CourseId { get; set; }

		/// <summary>
		/// 第几章节
		/// </summary>
		public int ChapterNo { get; set; }

		/// <summary>
		/// 使用的时段  依次排序（只能连续预约）
		/// </summary>
		public string ShiftSort { get; set; }

		/// <summary>
		/// 状态  1待确认  2待上课   3已上课   4缺席   5取消
		/// </summary>
		public CourseAppointStateEnum State { get; set; }

		/// <summary>
		/// 删除
		/// </summary>
		public int Status { get; set; }

		/// <summary>
		/// 集团编号
		/// </summary>
		public int Group_Id { get; set; }

		/// <summary>
		/// 创建人
		/// </summary>
		public int CreateBy { get; set; }

		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreateTime { get; set; }

		/// <summary>
		/// 修改人
		/// </summary>
		public int UpdateBy { get; set; }

		/// <summary>
		/// 更新时间
		/// </summary>
		public DateTime UpdateTime { get; set; }

		/// <summary>
		/// 当日完课时间 （用于统计预约次数）
		/// </summary>
		public DateTime CourseEndTime { get; set; }

		/// <summary>
		/// 上课教室ID
		/// </summary>
		public int RoomId { get; set; }

		/// <summary>
		/// 上课计划ID
		/// </summary>
		public int ClassPlanId { get; set; }
	}
}