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 NewsInfoDetail : BasePage
|
{
|
Info_SortBLL bll_Info_SortBLL = null;
|
Info_ContentBLL bll_Info_ContentBLL = null;
|
Sys_DictionaryBLL bll_Sys_DictionaryBLL = null;
|
|
//初始化
|
public NewsInfoDetail()
|
{
|
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();
|
this.spanTitle.Style.Add("font-weight", m_Info_Content.Title_Bold ? "bold" : "normal");
|
this.spanTitle.Style.Add("color", m_Info_Content.Title_Color.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.spanFromSource.InnerText = m_Info_Content.FromSource.ToString2();
|
this.spanAuthor.InnerText = m_Info_Content.Author.ToString2();
|
this.spanIsRecommendation.InnerText = m_Info_Content.IsRecommendation ? "是" : "否";
|
this.spanIsTop.InnerText = m_Info_Content.IsTop ? "是" : "否";
|
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();
|
}
|
}
|
}
|
}
|