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

namespace Edu.Model.ViewModel.Web
{
    /// <summary>
    /// 咨询管理视图实体类
    /// </summary>
    public class RB_Web_Advisory_ViewModel : RB_Web_Advisory
    {
        /// <summary>
        /// 咨询类型对应的资源名称(1-课程名称，2-班级名称，3-留学就业产品名称)
        /// </summary>
        public string SourceName { get; set; }

        /// <summary>
        /// 处理状态字符串
        /// </summary>
        public string DealStatusStr
        {
            get
            {
                string str = "待处理";
                if (this.DealStatus == 1)
                {
                    str = "已处理";
                }
                return str;
            }
        }

        /// <summary>
        /// 处理人姓名
        /// </summary>
        public string DealByName { get; set; }

        /// <summary>
        /// 处理时间字符串
        /// </summary>
        public string DealTimeStr { get { return Common.ConvertHelper.FormatTime(this.DealTime); } }


        /// <summary>
        /// 咨询时间
        /// </summary>
        public string CreateTimeStr { get { return Common.ConvertHelper.FormatTime(this.CreateDate); } }


        /// <summary>
        /// 咨询类型字符串
        /// </summary>
        public string AdvTypeStr
        {
            get
            {
                string str = "课程";
                if (this.AdvType == 2)
                {
                    str = "班级";
                }
                if (this.AdvType == 3)
                {
                    str = "留学就业";
                }
                return str;
            }
        }
    }
}
