Example #1
0
 /// <summary>
 /// 读取单条管理员信息
 /// </summary>
 protected void UserReader()
 {
     if (mU.Id > 0)
     {
         IList <mUser> list = bU.UserReader(mU);
         this.UserName.Text = list[0].UserName;
         this.UserName.Attributes.Add("class", "input1");
         this.UserName.Attributes.Add("readonly", "readonly");
         this.UserPwd.Attributes.Add("value", Encryp.DESDecrypt(list[0].UserPwd));
         this.UserPwd1.Attributes.Add("value", Encryp.DESDecrypt(list[0].UserPwd));
     }
     else
     {
         this.UserName.Attributes.Add("class", "input1 required validate-length-range-4-20 validate-ajax-Inc/Validate_UserName.aspx");
     }
 }
Example #2
0
 /// <summary>
 /// 读取单条管理员信息
 /// </summary>
 protected void AdminReader()
 {
     if (mA.Id > 0)
     {
         IList <mAdmin> list = bA.AdminReader(mA);
         this.GroupId.SelectedValue = list[0].GroupId.ToString();
         this.UserName.Text         = list[0].UserName;
         this.UserName.Attributes.Add("class", "input1");
         this.UserName.Attributes.Add("readonly", "readonly");
         this.UserPwd.Attributes.Add("value", Encryp.DESDecrypt(list[0].UserPwd));
         this.UserPwd1.Attributes.Add("value", Encryp.DESDecrypt(list[0].UserPwd));
         this.TrueName.Text = list[0].TrueName;
         this.Tel.Text      = list[0].Tel;
         this.Email.Text    = list[0].Email;
         this.IsModifyPassword.SelectedValue = list[0].IsModifyPassword.ToString();
         this.IsMultiLogin.SelectedValue     = list[0].IsMultiLogin.ToString();
     }
     else
     {
         this.UserName.Attributes.Add("class", "input1 required validate-length-range-4-20 validate-ajax-Inc/Validate_UserName.aspx");
     }
 }