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;
|
using CY.BLL.Sys;
|
|
namespace CY.WebForm.Pages.work
|
{
|
//吴辉
|
//新增/修改公文管理
|
public partial class Adm_tongxunluDetail : BasePage
|
{
|
Adm_tongxunluBLL bll_Adm_tongxunluBLL = null;
|
Sys_DictionaryBLL bll_Sys_DictionaryBLL = null;
|
//初始化
|
public Adm_tongxunluDetail()
|
{
|
|
bll_Adm_tongxunluBLL = new Adm_tongxunluBLL();
|
bll_Sys_DictionaryBLL = new Sys_DictionaryBLL();
|
}
|
|
//页面加载
|
protected void Page_Load(object sender, EventArgs e)
|
{
|
if (!IsPostBack)
|
{
|
|
|
InitData();
|
}
|
}
|
|
//数据加载
|
public void InitData()
|
{
|
|
|
|
if (!string.IsNullOrEmpty(Request["keyid"]))
|
{
|
var adm_Tongxunlu = bll_Adm_tongxunluBLL.GetModelByKeyid(Request["keyid"].ToInt32().Value);
|
if (adm_Tongxunlu != null)
|
{
|
var sys_Dictionary = bll_Sys_DictionaryBLL.GetDataByType("Sys_通讯录").Where(x=>x.MeanValue == adm_Tongxunlu.type_id.Value).FirstOrDefault();
|
if (sys_Dictionary != null)
|
{
|
this.seltype.InnerText = sys_Dictionary.Name;
|
}
|
this.txtDanweiName.InnerText = adm_Tongxunlu.danwei_name;
|
this.txtLianxiren.InnerText = adm_Tongxunlu.lianxiren;
|
this.txtLianxidianhua.InnerText = adm_Tongxunlu.lianxidianhua;
|
this.txtBeuzhu.InnerText = adm_Tongxunlu.beuzhu;
|
}
|
}
|
|
}
|
|
|
|
}
|
}
|