username@email.com
2025-04-29 7e7ab84905d5c52c9ad774ec18478026fef1de40
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
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;
                }
            }
           
        }
 
     
      
    }
}