FeedbackBLL.cs 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. using Lottomat.Application.Entity.SystemManage;
  2. using Lottomat.Application.IService.SystemManage;
  3. using Lottomat.Application.Service.SystemManage;
  4. using Lottomat.Util.WebControl;
  5. using System.Collections.Generic;
  6. using System;
  7. namespace Lottomat.Application.Busines.SystemManage
  8. {
  9. /// <summary>
  10. /// 版 本 1.0
  11. /// Copyright (c) 2016-2017
  12. /// 创 建:超级管理员
  13. /// 日 期:2017-12-18 10:55
  14. /// 描 述:意见反馈
  15. /// </summary>
  16. public class FeedbackBLL
  17. {
  18. private IFeedbackService service = new FeedbackService();
  19. #region 获取数据
  20. /// <summary>
  21. /// 获取列表
  22. /// </summary>
  23. /// <param name="pagination">分页</param>
  24. /// <param name="queryJson">查询参数</param>
  25. /// <returns>返回分页列表</returns>
  26. public IEnumerable<FeedbackEntity> GetPageList(Pagination pagination, string queryJson)
  27. {
  28. return service.GetPageList(pagination, queryJson);
  29. }
  30. /// <summary>
  31. /// 获取列表
  32. /// </summary>
  33. /// <param name="queryJson">查询参数</param>
  34. /// <returns>返回列表</returns>
  35. public IEnumerable<FeedbackEntity> GetList(string queryJson)
  36. {
  37. return service.GetList(queryJson);
  38. }
  39. /// <summary>
  40. /// 获取实体
  41. /// </summary>
  42. /// <param name="keyValue">主键值</param>
  43. /// <returns></returns>
  44. public FeedbackEntity GetEntity(string keyValue)
  45. {
  46. return service.GetEntity(keyValue);
  47. }
  48. #endregion
  49. #region 提交数据
  50. /// <summary>
  51. /// 删除数据
  52. /// </summary>
  53. /// <param name="keyValue">主键</param>
  54. public void RemoveForm(string keyValue)
  55. {
  56. try
  57. {
  58. service.RemoveForm(keyValue);
  59. }
  60. catch (Exception)
  61. {
  62. throw;
  63. }
  64. }
  65. /// <summary>
  66. /// 保存表单(新增、修改)
  67. /// </summary>
  68. /// <param name="keyValue">主键值</param>
  69. /// <param name="entity">实体对象</param>
  70. /// <returns></returns>
  71. public int SaveForm(string keyValue, FeedbackEntity entity, string which = "0")
  72. {
  73. try
  74. {
  75. return service.SaveForm(keyValue, entity, which);
  76. }
  77. catch (Exception)
  78. {
  79. throw;
  80. }
  81. }
  82. #endregion
  83. }
  84. }