username@email.com
2025-05-14 99ddfbcecf0fa2881eb3a91028257eef87dab6de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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();
 
                }
            }
        }
    }
}