rule_ssqzmszj.aspx.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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.Framework;
  8. using CB.Entity;
  9. namespace CB.Wap.column
  10. {
  11. public partial class rule_ssqzmszj : WebPage
  12. {
  13. protected string info = "";
  14. protected string columnNav = "";
  15. protected void Page_Load(object sender, EventArgs e)
  16. {
  17. if (!IsPostBack)
  18. {
  19. ColumnInfo entity = CB.Data.Caches.GetColumnInfo("ssqzmszj");
  20. if (entity == null)
  21. {
  22. ShowError();
  23. }
  24. pageTitle = entity.hTitle;
  25. pageKeyWords = entity.hKeywords;
  26. pageDescription = entity.hDescription;
  27. InitData();
  28. }
  29. }
  30. protected override void InitData()
  31. {
  32. FCSSQInfo entity = CB.Data.Caches.GetFCSSQInfo(0, OpenCodeType.KaiJiangHao);
  33. info += "<li>第" + entity.Term + "期</li>";
  34. info += "<li class=\"ball red\">" + entity.OpenCode1 + "</li>";
  35. info += "<li class=\"ball red\">" + entity.OpenCode2 + "</li>";
  36. info += "<li class=\"ball red\">" + entity.OpenCode3 + "</li>";
  37. info += "<li class=\"ball red\">" + entity.OpenCode4 + "</li>";
  38. info += "<li class=\"ball red\">" + entity.OpenCode5 + "</li>";
  39. info += "<li class=\"ball red\">" + entity.OpenCode6 + "</li>";
  40. info += "<li class=\"ball blue\">" + entity.OpenCode7 + "</li>";
  41. columnNav = GetColumnNavForWap("ssq");
  42. base.InitData();
  43. }
  44. }
  45. }