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 WebLinkInfoDetail : BasePage { Info_SortBLL bll_Info_SortBLL = null; Info_ContentBLL bll_Info_ContentBLL = null; Sys_DictionaryBLL bll_Sys_DictionaryBLL = null; //初始化 public WebLinkInfoDetail() { 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.spanWebLink.InnerText = m_Info_Content.WebLink.ToString2(); this.spanIsRecommendation.InnerText = m_Info_Content.IsRecommendation ? "是" : "否"; this.spanOrderNum.InnerText = m_Info_Content.OrderNum.ToString2(); this.spanUpTime.InnerText = m_Info_Content.UpTime.ToString2(); this.spanCreatTime.InnerText = m_Info_Content.CreatTime.ToString2(); this.imgIcon.Src = string.IsNullOrEmpty(m_Info_Content.InfoContent) ? "" : m_Info_Content.InfoContent; this.imgIcon.Style.Add("display", string.IsNullOrEmpty(m_Info_Content.InfoContent) ? "none" : "block"); } } } }