using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EMIS.Entities;
using EMIS.DataLogic.SystemDAL;
namespace EMIS.CommonLogic.SystemServices
{
public class ContextMenuServices : BaseServices, IContextMenuServices
{
public ContextMenuDAL ContextMenuDAL { get; set; }
///
/// 根据用户ID返回可使用的子菜单项
///
/// 菜单编号
/// 工具栏标识
/// 用户ID
public IList GetContextMenuListByUserAndRoleID(string menuNo, string formClass, Guid userID, Guid? roleID)
{
return ContextMenuDAL.GetContextMenuListByUserAndRoleID(menuNo, formClass, userID, roleID)
.OrderBy(x => x.SeqNo).ToList();
}
}
}