using Edu.Model.Entity.User;
using Edu.Model.ViewModel.System;
using System;
using System.Collections.Generic;

namespace Edu.Model.ViewModel.User
{
    /// <summary>
    /// 岗位视图实体
    /// </summary>
    [Serializable]
    public class RB_Post_ViewModel : RB_Post
    {
        /// <summary>
        /// 常见人
        /// </summary>
		public string CreateByName { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string UpdateByName { 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 QPostIds { get; set; }

        /// <summary>
        /// 岗位角色列表
        /// </summary>
        public List<RB_Post_Role_ViewModel> PostRoleList { get; set; }

        /// <summary>
        /// 部门查询
        /// </summary>
        public string QDeptIds { get; set; }

        /// <summary>
        /// 部门编号
        /// </summary>
        public int Dept_Id { get; set; }
    }
}
