1234567891011121314151617181920212223242526 |
- 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; }
-
- /// <summary>
- /// 根据用户ID返回可使用的子菜单项
- /// </summary>
- /// <param name="menuNo">菜单编号</param>
- /// <param name="formClass">工具栏标识</param>
- /// <param name="userID">用户ID</param>
- public IList<Sys_ContextMenu> GetContextMenuListByUserAndRoleID(string menuNo, string formClass, Guid userID, Guid? roleID)
- {
- return ContextMenuDAL.GetContextMenuListByUserAndRoleID(menuNo, formClass, userID, roleID)
- .OrderBy(x => x.SeqNo).ToList();
- }
- }
- }
|