?? blluserrole.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 + -