TrendChartBLL.cs 2.6 KB

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