using System.Collections.Generic;
using Edu.Common.Plugin;
using Edu.Model.Entity.Course;

namespace Edu.Model.ViewModel.Course
{
    /// <summary>
    /// 教室管理扩展实体类
    /// </summary>
    public class RB_Class_Room_ViewModel : RB_Class_Room
    {
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateByName { get; set; }

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

        /// <summary>
        /// 校区名称
        /// </summary>
        public string SchoolName { get; set; }

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

        /// <summary>
        /// 更新时间
        /// </summary>
        public string UpdateTimeStr { get { return Common.ConvertHelper.FormatTime(this.UpdateTime); } }

        /// <summary>
        /// 状态字符串
        /// </summary>
        public string StatusStr { get { return this.Status.ToName(); } }

        /// <summary>
        /// 教室编号【查询使用】
        /// </summary>
        public string QRoomIds { get; set; }

        /// <summary>
        /// 教室图片
        /// </summary>
        public List<string> RoomPicList { get; set; }
    }
}
