ContextMenuServices.cs 917 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMIS.Entities;
  6. using EMIS.DataLogic.SystemDAL;
  7. namespace EMIS.CommonLogic.SystemServices
  8. {
  9. public class ContextMenuServices : BaseServices, IContextMenuServices
  10. {
  11. public ContextMenuDAL ContextMenuDAL { get; set; }
  12. /// <summary>
  13. /// 根据用户ID返回可使用的子菜单项
  14. /// </summary>
  15. /// <param name="menuNo">菜单编号</param>
  16. /// <param name="formClass">工具栏标识</param>
  17. /// <param name="userID">用户ID</param>
  18. public IList<Sys_ContextMenu> GetContextMenuListByUserAndRoleID(string menuNo, string formClass, Guid userID, Guid? roleID)
  19. {
  20. return ContextMenuDAL.GetContextMenuListByUserAndRoleID(menuNo, formClass, userID, roleID)
  21. .OrderBy(x => x.SeqNo).ToList();
  22. }
  23. }
  24. }