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
{
///
/// 用户按钮
/// lx 2017-06-28
///
public class Sys_ButtonsService
{
///
/// 获取用户有权限的按钮
///
///
///
///
public List GetUserButtons(string menuID, string userID)
{
try
{
List returnList = new List();
Sys_ButtonsData dal = new Sys_ButtonsData();
DataTable dt = new DataTable();
dt = dal.GetUserButtons(menuID, userID);
returnList = Tool.ConvertTo(dt).ToList();
return returnList;
}
catch(Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
return new List();
}
}
}
}