IButton.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Data;
  4. using System.Linq;
  5. using System.Text;
  6. using PMS.BusinessModels.SysManager;
  7. namespace PMS.Interface.SysManager
  8. {
  9. /// <summary>
  10. /// 创 建 人:王海洋
  11. /// 创建日期:2018-12-10
  12. /// 功能描述:系统按钮业务接口
  13. /// </summary>
  14. public interface IButton
  15. {
  16. /// <summary>
  17. /// 获取所有按钮的目录
  18. /// </summary>
  19. /// <param name="isactive">true查询启用的按钮,false:查询所有的</param>
  20. /// <returns></returns>
  21. DataTable GetListJson(bool isactive);
  22. /// <summary>
  23. /// 检查Tag是否存在
  24. /// </summary>
  25. /// <param name="tag">tag标识 </param>
  26. /// <param name="id">如果修改则需要ID</param>
  27. /// <returns></returns>
  28. bool CheckTagExist(string tag, int id);
  29. /// <summary>
  30. /// Post提交数据
  31. /// </summary>
  32. /// <param name="model">提交的模型</param>
  33. /// <returns>返回成功与否的json</returns>
  34. bool PostSaveInfo(form_button_model model);
  35. /// <summary>
  36. /// 根据ID获取按钮信息
  37. /// </summary>
  38. /// <param name="id">id</param>
  39. /// <returns>返回json信息</returns>
  40. string GetButtonInfoJson(int id);
  41. }
  42. }