FCHN22X5TrendChartDataService.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using CB.Entity;
  6. using CB.Interface.Infrastructure;
  7. namespace CB.Data
  8. {
  9. public class FCHN22X5TrendChartDataService
  10. {
  11. public static bool Save(TrendChartData entity)
  12. {
  13. return DatabaseProvider.GetDbProvider<IFCHN22X5TrendChartDataService>().Save(entity);
  14. }
  15. public static bool Update(TrendChartData entity)
  16. {
  17. throw new NotImplementedException();
  18. }
  19. public static bool Delete(BaseEntity entity)
  20. {
  21. throw new NotImplementedException();
  22. }
  23. public static TrendChartData Get<TKey>(TKey key)
  24. {
  25. throw new NotImplementedException();
  26. }
  27. public static IList<TrendChartData> ToList()
  28. {
  29. throw new NotImplementedException();
  30. }
  31. public static IList<TrendChartData> ToList(TrendChartData entity)
  32. {
  33. throw new NotImplementedException();
  34. }
  35. public static IList<TrendChartData> ToPaging(TrendChartData entity, int pageSize, int pageIndex, out int recordCount)
  36. {
  37. throw new NotImplementedException();
  38. }
  39. /// <summary>
  40. /// 前台读取走势图
  41. /// </summary>
  42. /// <param name="entity">查询条件</param>
  43. /// <returns></returns>
  44. public static IList<TrendChartData> ToList(TrendChartSearchField entity)
  45. {
  46. return DatabaseProvider.GetDbProvider<IFCHN22X5TrendChartDataService>().ToList(entity);
  47. }
  48. /// <summary>
  49. /// 根据期数获取对应期数的走势遗漏信息
  50. /// </summary>
  51. /// <param name="chartId">走势图ID</param>
  52. /// <param name="term">期数</param>
  53. /// <param name="chartType">走势图类型</param>
  54. /// <returns></returns>
  55. public static TrendChartData GetTrendChartDataByTerm(int chartId, TrendChartType chartType, long term)
  56. {
  57. return DatabaseProvider.GetDbProvider<IFCHN22X5TrendChartDataService>().GetTrendChartDataByTerm(chartId, chartType, term);
  58. }
  59. }
  60. }