IControlItemServices.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMIS.ViewModel.SystemView;
  6. using EMIS.Entities;
  7. using EMIS.ViewModel;
  8. namespace EMIS.CommonLogic.SystemServices
  9. {
  10. public interface IControlItemServices
  11. {
  12. /// <summary>
  13. /// 刷新对应的菜单项
  14. /// </summary>
  15. void RefreshCache();
  16. /// <summary>
  17. /// 获取需要进行逻辑控制的菜单
  18. /// </summary>
  19. /// <returns>返回菜单MenuNo的列表</returns>
  20. List<string> GetNeedControlMenuNo();
  21. /// <summary>
  22. /// 控制菜单,如果不能通过将抛出异常,否则就算通过
  23. /// </summary>
  24. /// <param name="menuNo">需要控制的菜单MenuNo</param>
  25. void CheckControlItems(string menuNo);
  26. /// <summary>
  27. /// 获取需要进行逻辑控制的菜单
  28. /// </summary>
  29. /// <returns>返回菜单MenuNo和按钮ContextMenuNo的列表</returns>
  30. List<ContextMenuNoView> GetNeedControlContextMenuNo();
  31. /// <summary>
  32. /// 控制按钮,如果不能通过将抛出异常,否则就算通过
  33. /// </summary>
  34. /// <param name="contextMenuNoView">需要控制的菜单MenuNo和按钮ContextMenuNo</param>
  35. void CheckControlItems(ContextMenuNoView contextMenuNoView);
  36. /// <summary>
  37. /// 查询相应控制类型的控制信息List
  38. /// </summary>
  39. /// <param name="controlItemType"></param>
  40. /// <returns></returns>
  41. IList<Sys_ControlItem> GetControlItemList(SYS_ControlItemType controlItemType);
  42. /// <summary>
  43. /// 查询登录控制类型的控制信息List
  44. /// </summary>
  45. /// <returns></returns>
  46. IList<Sys_ControlItem> GetLoginControlItemList();
  47. /// <summary>
  48. /// 查询相应用户ID的登录控制信息
  49. /// </summary>
  50. /// <param name="userID"></param>
  51. void CheckLoginControlItems(Guid userID);
  52. }
  53. }