Exemplo n.º 1
0
        private void ShowInfo(int _id)
        {
            BLL.U_User_Info   bll   = new BLL.U_User_Info();
            Model.U_User_Info model = bll.GetModel(_id);

            txtName.Text         = model.user_name;
            txtCardnum.Text      = model.user_cardnum;
            txtTelphone.Text     = model.user_telphone;
            txtRemark.Text       = model.user_remark;
            rblSex.SelectedValue = model.user_sex;
        }
Exemplo n.º 2
0
        private bool DoEdit(int _id)
        {
            bool result = false;

            BLL.U_User_Info   bll   = new BLL.U_User_Info();
            Model.U_User_Info model = bll.GetModel(_id);

            model.user_name     = txtName.Text;
            model.user_cardnum  = txtCardnum.Text;
            model.user_sex      = rblSex.SelectedValue;
            model.user_telphone = txtTelphone.Text;
            model.user_remark   = txtRemark.Text;

            if (bll.Update(model))
            {
                AddAdminLog(DTEnums.ActionEnum.Edit.ToString(), "修改会员信息:" + model.user_name); //记录日志
                result = true;
            }
            return(result);
        }