using Edu.Model.Entity.Web;

namespace Edu.Model.ViewModel.Web
{
    /// <summary>
    /// 招聘管理视图实体类
    /// </summary>
    public class RB_Web_Recruitment_ViewModel : RB_Web_Recruitment
    {
        /// <summary>
        /// 发布时间字符串
        /// </summary>
        public string PublishTimeStr { get { return Common.ConvertHelper.FormatDate(this.PublishTime); } }

        /// <summary>
        /// 薪资字符串
        /// </summary>
        public string SalaryStr
        {
            get
            {
                string salary = "";
                if (this.SalaryType == 2)
                {
                    salary = "面议";
                }
                else
                {
                    salary = this.SalaryStart + "-" + this.SalaryEnd + "K" + (this.SalaryNum > 0 ? "·" + this.SalaryNum + "薪" : "");
                }
                return salary;
            }
        }
    }
}
