private void ShowInfo(int _id)
        {
            SF.BLL.manager bll   = new SF.BLL.manager();
            ManagerInfo    model = bll.GetModel(_id);

            ddlRoleId.SelectedValue = model.RoleId.ToString();
            if (model.islock == "0")
            {
                cbIsLock.Checked = true;
            }
            else
            {
                cbIsLock.Checked = false;
            }
            txtUserName.Text     = model.UserName;
            txtUserName.ReadOnly = true;
            txtUserName.Attributes.Remove("ajaxurl");
            if (!string.IsNullOrEmpty(model.Password))
            {
                txtPassword.Attributes["value"] = txtPassword1.Attributes["value"] = defaultpassword;
            }
            txtRealName.Text  = model.realname;
            txtTelephone.Text = model.telephone;
            txtEmail.Text     = model.Email;
        }
        private bool DoEdit(int _id)
        {
            bool result = false;

            SF.BLL.manager bll   = new SF.BLL.manager();
            ManagerInfo    model = bll.GetModel(_id);

            model.RoleId = int.Parse(ddlRoleId.SelectedValue);
            //model.role_type = new BLL.manager_role().GetModel(model.role_id).role_type;
            if (cbIsLock.Checked == true)
            {
                model.islock = "0";
            }
            else
            {
                model.islock = "1";
                if (_id == 1)
                {
                    return(false);
                }
            }
            //判断密码是否更改
            if (txtPassword.Text.Trim() != defaultpassword)
            {
                //获取用户已生成的salt作为密钥加密
                model.Password = HiCryptographer.Md5Encrypt(txtPassword.Text.Trim());//DESEncrypt.Encrypt(txtPassword.Text.Trim(), model.salt);
            }
            model.realname  = txtRealName.Text.Trim();
            model.telephone = txtTelephone.Text.Trim();
            model.Email     = txtEmail.Text.Trim();

            if (bll.Update(model))
            {
                AddAdminLog(DTEnums.ActionEnum.Edit.ToString(), "修改商户:" + model.UserName); //记录日志
                result = true;
            }

            return(result);
        }