blluserrole.cs
来自「登陆界面」· CS 代码 · 共 39 行
CS
39 行
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 + =
减小字号Ctrl + -
显示快捷键?