You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

NoticeIBLL.cs 1.9 KiB

4 years ago
4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using Learun.Util;
  2. using System.Collections.Generic;
  3. namespace Learun.Application.OA
  4. {
  5. /// <summary>
  6. /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
  7. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  8. /// 创建人:陈彬彬
  9. /// 日 期:2017.04.17
  10. /// 描 述:公告管理
  11. /// </summary>
  12. public interface NoticeIBLL
  13. {
  14. #region 获取数据
  15. /// <summary>
  16. /// 公告列表
  17. /// </summary>
  18. /// <param name="pagination">分页参数</param>
  19. /// <param name="keyword">关键词</param>
  20. /// <returns></returns>
  21. IEnumerable<NewsEntity> GetPageList(Pagination pagination, string keyword);
  22. /// <summary>
  23. /// 公告实体
  24. /// </summary>
  25. /// <param name="keyValue">主键值</param>
  26. /// <returns></returns>
  27. NewsEntity GetEntity(string keyValue);
  28. #endregion
  29. #region 提交数据
  30. /// <summary>
  31. /// 删除
  32. /// </summary>
  33. /// <param name="keyValue">主键</param>
  34. void DeleteEntity(string keyValue);
  35. /// <summary>
  36. /// 保存(新增、修改)
  37. /// </summary>
  38. /// <param name="keyValue">主键值</param>
  39. /// <param name="newsEntity">公告实体</param>
  40. /// <returns></returns>
  41. void SaveEntity(string keyValue, NewsEntity newsEntity);
  42. #endregion
  43. #region 扩展数据
  44. /// <summary>
  45. /// 公告列表
  46. /// </summary>
  47. /// <param name="keyword">关键词</param>
  48. /// <returns></returns>
  49. IEnumerable<NewsEntity> GetList(string keyword, string userId,string categoryId=null);
  50. #endregion
  51. void ChangeStatusById(string keyValue, int i, string processId);
  52. NewsEntity GetEntityByProcessId(string processId);
  53. void SaveFormAndSubmit(string keyValue, NewsEntity entity);
  54. }
  55. }