public DataTable GetAllRoles(string userAccount)
        {
            var bn  = new ROLEINFO_BN();
            var rst = bn.GetAllRoles(userAccount);

            return(rst);
        }
        public ReturnResult SaveRole(string roleName, string funList)
        {
            ROLEINFO role = new ROLEINFO();

            role.F_NAME = roleName;
            string[]    funs    = funList.Split(',');
            ROLEINFO_BN role_bn = new ROLEINFO_BN();

            return(role_bn.AddRole(role, funs));
        }
        /// <summary>
        /// 新增/修改角色
        /// </summary>
        /// <param name="roleinfo">角色实体类</param>
        /// <returns>返回状态对象</returns>
        public dynamic EditRole(Entity.ROLEINFO roleinfo)
        {
            var  bn   = new ROLEINFO_BN();
            bool isOk = string.IsNullOrWhiteSpace(roleinfo.F_ROLECODE)
                ? bn.AddRoleMain(roleinfo)
                : bn.EditRoleMain(roleinfo);

            return(JsonConvert.DeserializeObject <dynamic>(isOk
                ? "{\"status\":true,\"msg\":\"\"}"
                : "{\"status\":false,\"msg\":\"\"}"));
        }