123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using CB.Common;
- using CB.Data;
- using CB.Framework;
- using CB.TrendMiss.LotteryTrendMiss;
- namespace CB.Admin.Plugins.TrendMissConfig
- {
- public partial class TrendMissPreview : AdminPage
- {
- protected string sb = string.Empty, hHead = string.Empty;
- protected int ChartId, cid;
- protected string trendName = "";
- protected void Page_Load(object sender, EventArgs e)
- {
- InitData();
- }
- protected override void InitData()
- {
- ChartId = WRequest.GetInt("ChartId", 0);
- cid = WRequest.GetQueryInt("Cid", 0);
- //以下代码为走势图显示部分代码
- var entity = TrendChartService.Get(ChartId);
- if (null == entity)
- return;
- switch (cid)
- {
- case 1:
- sb = FC3DTrendMiss.PreViewMissData(ChartId, null);
- break;
- case 2:
- sb = TCP3TrendMiss.PreViewMissData(ChartId, null);
- break;
- case 4:
- sb = FCSSQTrendMiss.PreViewMissData(ChartId, null);
- break;
- }
- trendName = GetChartName(ChartId);
- }
- public string GetChartName(int chartid)
- {
- var entity = CB.Data.TrendChartService.Get(chartid);
- return null != entity ? entity.Name : "";
- }
- }
- }
|