using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CY.Model; using CY.BLL; using CY.Infrastructure.Common; using System.Data; using CY.BLL.Sys; namespace CY.WebForm.Pages.InfoManage { //吴辉 //帮助信息详情 public partial class RegisterInfoDetail : BasePage { Info_SortBLL bll_Info_SortBLL = null; Info_ContentBLL bll_Info_ContentBLL = null; Sys_DictionaryBLL bll_Sys_DictionaryBLL = null; //初始化 public RegisterInfoDetail() { bll_Info_SortBLL = new Info_SortBLL(); bll_Info_ContentBLL = new Info_ContentBLL(); bll_Sys_DictionaryBLL = new Sys_DictionaryBLL(); } //页面加载 protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { InitData(); } } //页面加载 public void InitData() { Info_Content m_Info_Content = new Info_Content(); if (Request["Keyid"] != null && Request["Keyid"].ToInt32() > 0) m_Info_Content = bll_Info_ContentBLL.SelectModelBySortId(Request["Keyid"].ToInt32()); if (m_Info_Content != null) { this.spanTitle.InnerText = m_Info_Content.Title.ToString2(); Info_Sort m_Info_Sort = bll_Info_SortBLL.SelectModelByKeyId(m_Info_Content.SortID); if (m_Info_Sort != null) { this.spanSortID.InnerText = m_Info_Sort.Title.ToString2(); } this.spanTitle.InnerText = m_Info_Content.Keyword.ToString2(); this.divInfoContent.InnerHtml = m_Info_Content.InfoContent.ToString2(); this.spanOrderNum.InnerText = m_Info_Content.OrderNum.ToString2(); this.spanUpTime.InnerText = m_Info_Content.UpTime.ToString2(); this.spanHits.InnerText = m_Info_Content.Hits.ToString2(); this.spanCreatTime.InnerText = m_Info_Content.CreatTime.ToString2(); } } } }