using System.Collections.Generic;

namespace Edu.Model.ViewModel.System
{
    /// <summary>
    /// 系统角色视图实体类
    /// </summary>
    public class RB_Role_ViewModel : Model.Entity.System.RB_Role
    {
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateByName { get; set; }

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

        /// <summary>
        /// 选中的菜单列表
        /// </summary>
        public List<int> CheckMenuList
        {
            get
            {
                return Common.ConvertHelper.StringToList(this.RoleAuth);
            }
        }
    }
}
