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_JobApply_ViewModel : RB_Web_JobApply
    {
        /// <summary>
        /// 岗位名称
        /// </summary>
        public string PositionName { get; set; }

        /// <summary>
        /// 申请状态字符串
        /// </summary>
        public string ApplyStatusStr
        {
            get
            {
                string str = "";
                if (this.ApplyStatus == 0)
                {
                    str = "待处理";
                }
                else if (this.ApplyStatus == 1)
                {
                    str = "已联系";
                }
                else if (this.ApplyStatus == 2)
                {
                    str = "不合适";
                }
                return str;
            }
        }

        /// <summary>
        /// 申请时间字符串
        /// </summary>
        public string CreateDateStr
        {
            get
            {
                return Common.ConvertHelper.FormatTime(this.CreateDate);
            }
        }
    }
}