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<RB_Role_Permission_ViewModel> RolePermissionList { get; set; }

        /// <summary>
        /// 角色功能权限列表
        /// </summary>
        public List<RB_Role_FunctionPermission_ViewModel> RoleFunctionList { get; set; }

        /// <summary>
        /// 是否选中
        /// </summary>
        public bool IsChecked { get; set; }
    }
}
