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_zhanghaomimaDetail : BasePage { Adm_zhanghaomimaBLL bll_Adm_zhanghaomimaBLL = null; Sys_DictionaryBLL bll_Sys_DictionaryBLL = null; //初始化 public Adm_zhanghaomimaDetail() { bll_Adm_zhanghaomimaBLL = new Adm_zhanghaomimaBLL(); 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_zhanghaomima = bll_Adm_zhanghaomimaBLL.GetModelByKeyid(Request["keyid"].ToInt32().Value); if (adm_zhanghaomima != null) { var sys_Dictionary = bll_Sys_DictionaryBLL.GetDataByType("Sys_账号密码").Where(x=>x.MeanValue == adm_zhanghaomima.type_id.Value).FirstOrDefault(); if (sys_Dictionary != null) { this.seltype.InnerText = sys_Dictionary.Name; } this.txtchanpinxiangmu.InnerText = adm_zhanghaomima.chanpinxiangmu; this.txtzhanghao.InnerText = adm_zhanghaomima.zhanghao; this.txtmima.InnerText = adm_zhanghaomima.mima; this.txtmibao.InnerText = adm_zhanghaomima.mibao; } } } } }