rolerightservice.cs
来自「will let you know the result once they r」· CS 代码 · 共 29 行
CS
29 行
using System;
using System.Collections.Generic;
using System.Text;
using MyOffice.Models;
using MyOffice.DBUtility;
using System.Data;
using System.Data.SqlClient;
namespace MyOffice.DAL
{
public class RoleRightService
{
public IList<SysFun> GetRoleRightByRoleID(int roleID)
{
IList<SysFun> list = new List<SysFun>();
string sql = string.Format(@"select * from roleright where roleid={0}",roleID);
using (SqlDataReader reader = SqlHelper.ExecuteReader(SqlHelper.ConnectionStringLocalTransaction, CommandType.Text, sql, null))
{
while (reader.Read())
{
SysFun sysFun = new SysFunService().GetSysFunByNodeID(reader.GetInt32(2));
list.Add(sysFun);
}
return list;
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?