using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Web;
|
using System.Web.UI;
|
using System.Web.UI.WebControls;
|
using System.Data;
|
using System.Data.SqlClient;
|
using CY.Model;
|
using CY.BLL;
|
using CY.Infrastructure.Common;
|
using CY.Infrastructure.Query;
|
|
namespace CY.WebForm.Pages.work
|
{
|
//吴辉
|
//公文管理明细
|
public partial class OA_DocumentDetail : BasePage
|
{
|
OA_DocumentBLL bll_OA_DocumentBLL = null;
|
|
//初始化
|
public OA_DocumentDetail()
|
{
|
bll_OA_DocumentBLL = new OA_DocumentBLL();
|
}
|
|
//页面加载
|
protected void Page_Load(object sender, EventArgs e)
|
{
|
if (!IsPostBack)
|
{
|
InitData();
|
}
|
}
|
|
//数据加载
|
public void InitData()
|
{
|
OA_Document m_OA_Document = bll_OA_DocumentBLL.GetModelByKeyid(Request["keyid"].ToInt32());
|
if (m_OA_Document != null)
|
{
|
this.spanDM_PromulgatedDate.InnerText = m_OA_Document.DM_PromulgatedDate.Value.ToString("yyyy年MM月dd日");
|
this.spanDM_PostingName.InnerText = m_OA_Document.DM_PostingFirmName.ToString2();
|
this.spanDM_PostingFirmName.InnerText = m_OA_Document.DM_PostingFirmName.ToString2();
|
this.spanDM_DocumentNumber.InnerText = m_OA_Document.DM_DocumentNumber.ToString2();
|
this.spanDM_Title.InnerText = m_OA_Document.DM_Title.ToString2();
|
this.spanDM_Content.InnerHtml = m_OA_Document.DM_Content.ToString2();
|
if (m_OA_Document.DM_ThemeWords.ToString2() == "")
|
{
|
this.tr1.Visible = false;
|
this.tr2.Visible = false;
|
}
|
else
|
{
|
this.tr1.Visible = true;
|
this.tr2.Visible = true;
|
this.spanDM_ThemeWords.InnerText = m_OA_Document.DM_ThemeWords.ToString2();
|
}
|
if (m_OA_Document.DM_CCUnit.ToString2() == "")
|
{
|
this.tr3.Visible = false;
|
this.tr4.Visible = false;
|
}
|
else
|
{
|
this.tr3.Visible = true;
|
this.tr4.Visible = true;
|
this.spanDM_CCUnit.InnerText = m_OA_Document.DM_CCUnit.ToString2();
|
|
}
|
}
|
}
|
}
|
}
|