using Edu.Common;
using System.Collections.Generic;

namespace Edu.Model.ViewModel.Course
{
    /// <summary>
    /// 课程教案视图实体类
    /// </summary>
    public class RB_Course_TeachPlan_ViewModel : Model.Entity.Course.RB_Course_TeachPlan
    {
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateByName { get; set; }

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

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

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

        /// <summary>
        /// 文件列表
        /// </summary>
        public List<string> FileList
        {
            get
            {
                return Common.ConvertHelper.StringToFileList(this.ExtUrl);
            }
        }
    }
}