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

📄 rolerightservice.cs

📁 will let you know the result once they replied will let you know the result once they replied
💻 CS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -