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);
        }