using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CY.BLL; using CY.BLL.Sys; using CY.Model; using CY.Infrastructure.Common; namespace CY.WebForm.Pages.Templet.pingxuan { public partial class CompanyNewsDetail : TempletBasePage { Info_ContentBLL bll_Info_ContentBLL = null; Sys_DictionaryBLL bll_Sys_DictionaryBLL = null; Info_SortBLL bll_Info_SortBLL = null; //初始化 public CompanyNewsDetail() { bll_Sys_DictionaryBLL = new Sys_DictionaryBLL(); bll_Info_ContentBLL = new Info_ContentBLL(); bll_Info_SortBLL = new Info_SortBLL(); } protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BindList(); } } //绑定数据 private void BindList() { EC_MemberBasicBLL b_EC_MemberBasicBLL = new EC_MemberBasicBLL(); EC_MemberBasic mx_EC_MemberBasic = b_EC_MemberBasicBLL.GetMemberByMemberId(CurrentWeb().MemberId); this.Title += "-" + mx_EC_MemberBasic.Name; 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.divTitle.InnerText = m_Info_Content.Title.ToString2(); Info_Sort m_Info_Sort = bll_Info_SortBLL.SelectModelByKeyId(m_Info_Content.SortID); this.divContent.InnerHtml = m_Info_Content.InfoContent.ToString2(); } } } }