📄 bcorprole.cs
字号:
using System;
using System.Collections;
using DAL;
using Search;
using Entities;
namespace BLL
{
public class BCropRole
{
public ArrayList Select()
{
DAL.IDCorpRole dRole = DALContainer.Factory.GetIDCorpRole();
return dRole.Select();
}
public ArrayList Select(Search.CorpRoleSearcher search)
{
DAL.IDCorpRole dRole = DALContainer.Factory.GetIDCorpRole();
return dRole.Select(search);
}
public int Update(CorpRole corpRole)
{
DAL.IDCorpRole dRole = DALContainer.Factory.GetIDCorpRole();
return dRole.Update(corpRole);
}
public int Insert(CorpRole corpRole)
{
DAL.IDCorpRole dRole = DALContainer.Factory.GetIDCorpRole();
return dRole.Insert(corpRole);
}
public int Delete(CorpRole corpRole)
{
BPermission bPermission = new BPermission();
PermissionSearcher psearch = new PermissionSearcher();
psearch.RoleID = corpRole.RoleID;
psearch.RoleIDIsValid = true;
int count = bPermission.Delete(psearch);
DAL.IDCorpRole dRole = DALContainer.Factory.GetIDCorpRole();
return count + dRole.Delete(corpRole);
}
public CorpRole SelectSingle(object pkvalue)
{
DAL.IDCorpRole dRole = DALContainer.Factory.GetIDCorpRole();
return dRole.SelectSingle(pkvalue);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -