TrendMissPreview.aspx.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.UI;
  6. using System.Web.UI.WebControls;
  7. using CB.Common;
  8. using CB.Data;
  9. using CB.Framework;
  10. using CB.TrendMiss.LotteryTrendMiss;
  11. namespace CB.Admin.Plugins.TrendMissConfig
  12. {
  13. public partial class TrendMissPreview : AdminPage
  14. {
  15. protected string sb = string.Empty, hHead = string.Empty;
  16. protected int ChartId, cid;
  17. protected string trendName = "";
  18. protected void Page_Load(object sender, EventArgs e)
  19. {
  20. InitData();
  21. }
  22. protected override void InitData()
  23. {
  24. ChartId = WRequest.GetInt("ChartId", 0);
  25. cid = WRequest.GetQueryInt("Cid", 0);
  26. //以下代码为走势图显示部分代码
  27. var entity = TrendChartService.Get(ChartId);
  28. if (null == entity)
  29. return;
  30. switch (cid)
  31. {
  32. case 1:
  33. sb = FC3DTrendMiss.PreViewMissData(ChartId, null);
  34. break;
  35. case 2:
  36. sb = TCP3TrendMiss.PreViewMissData(ChartId, null);
  37. break;
  38. case 4:
  39. sb = FCSSQTrendMiss.PreViewMissData(ChartId, null);
  40. break;
  41. }
  42. trendName = GetChartName(ChartId);
  43. }
  44. public string GetChartName(int chartid)
  45. {
  46. var entity = CB.Data.TrendChartService.Get(chartid);
  47. return null != entity ? entity.Name : "";
  48. }
  49. }
  50. }