1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- 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.Entity;
- using CB.Framework;
- namespace CB.Web.tb
- {
- public partial class list : WebPage
- {
- //走势图表
- protected string hTitle = "", hDescription = "", hKeywords = "";
- protected string chartData = "", chartName = "";
- //彩种相关
- protected string lotName = "", lotLogoCsss = "";
- protected string trendMenu = "", helpList = "", trendSmart = "";
- protected string navStr = "";
- protected void Page_Load(object sender, EventArgs e)
- {
- InitData();
- }
- protected override void InitData()
- {
- int chartid = WRequest.GetQueryInt("chartid");
- if (0 >= chartid)
- { ShowError(); return; }
- var entity = CB.Data.Caches.GetTrendChartInfo(chartid);
- if (null == entity)
- { ShowError(); return; }
- chartName = entity.Name;
- hTitle = entity.hTitle;
- hDescription = entity.hDescription;
- hKeywords = entity.hKeywords;
- var lottery = CB.Data.Caches.GetLotteryInfo(entity.Cid);
- if (null != lottery)
- {
- lotName = lottery.Name;
- lotLogoCsss = GetLotteryLogoCss(entity.Cid);
- navStr = string.Format("<a href=\"/tb/{0}_{1}.htm\">{2}</a> - {3}", lottery.Id, chartid, lotName, chartName);
- }
- //trendMenu = GetTrendChartMenu(chartid, entity.Cid, entity.Tid);
- trendMenu = GetTrendMenu(chartid, entity.Cid, entity.Tid, @" <dl>
- <dt><a href='/tb/1_70.htm' target='_blank'>福彩3D</a></dt>
- <dt><a href='/tb/2_81.htm' target='_blank'>体彩P3</a></dt>
- <dt><a href='/tb/' target='_blank'>更多>></a></dt>
- </dl>");
- helpList = GetHelpList(entity.Cid);
- trendSmart = GetTrendSmart(chartid);
- UpdateTrendSmart(entity.Id);
- chartData = BuildTemplateData(entity.TemplateId, null);
- base.InitData();
- }
- }
- }
|