⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 blluserrole.cs

📁 登陆界面
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
///BLLUserRole 的摘要说明
/// </summary>
namespace corInfMan.BLL
{
    public class BLLUserRole
    {
        public BLLUserRole()
        {
            //
            //TODO: 在此处添加构造函数逻辑
            //
        }
        public void userInRole(string id,string name)
        {
            
            if (new corInfMan.DAL.DALUser().isMan(id) == 1)
            {
                new corInfMan.DAL.DALUserRole().userInRole(name,"manager");
            }
            else
            {
                new corInfMan.DAL.DALUserRole().userInRole(name,"common");
            }
        }
        public string usersRole(string name)
        {
            string role;
            role = new corInfMan.DAL.DALUserRole().usersRole(name);
            return role.TrimEnd();
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -