Exemplo n.º 1
0
        /// <summary>
        /// 绑定页面
        /// </summary>
        /// <param name="ID"></param>
        private void BindPage(string ID)
        {
            if (!String.IsNullOrWhiteSpace(ID))
            {
                Model.T_UsersInfo_MDL model = new DigiPower.Onlinecol.Standard.Model.T_UsersInfo_MDL();
                model = userBLL.GetModel(Convert.ToInt32(ID));
                if (model != null)
                {
                    ViewState["model"] = model;
                    object obj = DigiPower.Onlinecol.Standard.Web.Comm.SetValueToPage(model, this.tbl);
                    Passwd.Attributes("value", DESEncrypt.Decrypt(model.Passwd));

                    if (model.CompanyID > 0)
                    {
                        Model.T_Company_MDL companyMDL = new T_Company_BLL().GetModel(model.CompanyID);
                        if (companyMDL != null)
                        {
                            txtCompanyName.Text = companyMDL.CompanyName;
                        }
                    }
                    if (model.RoleID > 0)
                    {
                        Model.T_Role_MDL roleMDL = new T_Role_BLL().GetModel(model.RoleID);
                        if (roleMDL != null)
                        {
                            txtRoleName.Text = roleMDL.RoleName;
                        }
                    }
                }
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// 绑定页面
 /// </summary>
 /// <param name="ID"></param>
 private void BindPage(string ID)
 {
     if (!String.IsNullOrWhiteSpace(ID))
     {
         T_UsersInfo_MDL model = new T_UsersInfo_MDL();
         model = userBLL.GetModel(Common.ConvertEx.ToInt(ID));
         if (model != null)
         {
             ViewState["model"] = model;
             object obj = Comm.SetValueToPage(model, this.tbl);
             Passwd.Attributes("value", DESEncrypt.Decrypt(model.Passwd));
         }
     }
 }