You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.3 KiB
45 lines
1.3 KiB
using MESClassLibrary.BLL.Log;
|
|
using MESClassLibrary.DAL.User;
|
|
using MESClassLibrary.Model;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
using System.Text;
|
|
|
|
namespace MESClassLibrary.BLL.User
|
|
{
|
|
/// <summary>
|
|
/// 用户按钮
|
|
/// lx 2017-06-28
|
|
/// </summary>
|
|
public class Sys_ButtonsService
|
|
{
|
|
/// <summary>
|
|
/// 获取用户有权限的按钮
|
|
/// </summary>
|
|
/// <param name="menuID"></param>
|
|
/// <param name="userID"></param>
|
|
/// <returns></returns>
|
|
public List<Sys_Buttons> GetUserButtons(string menuID, string userID)
|
|
{
|
|
try
|
|
{
|
|
List<Sys_Buttons> returnList = new List<Sys_Buttons>();
|
|
Sys_ButtonsData dal = new Sys_ButtonsData();
|
|
DataTable dt = new DataTable();
|
|
|
|
dt = dal.GetUserButtons(menuID, userID);
|
|
returnList = Tool.ConvertTo<Sys_Buttons>(dt).ToList<Sys_Buttons>();
|
|
|
|
return returnList;
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return new List<Sys_Buttons>();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|