private void GetUserInfo() { User user = null; try { using (AdministratorBLL adminBll = new AdministratorBLL()) { user = adminBll.GetUserByUserID(this._USER_ID); } if (user != null) { this.txtUSER_ID.EditValue = user.USER_ID; this.txtUSER_NAME.EditValue = user.USER_NAME; this.txtEMPLOYEE_ID.EditValue = user.EMPLOYEE_ID; this.txtLOGIN.EditValue = user.LOGIN; this.txtPWD.EditValue = null; this.txtConfirmPws.EditValue = null; this.IsAdminRole = user.ROLE_ID.Equals("ADM"); } } catch (Exception ex) { XtraMessageBox.Show(ex.Message); } }
private void GetUserByUserID(string userid) { User user = null; using (AdministratorBLL adminBll = new AdministratorBLL()) { user = adminBll.GetUserByUserID(userid); } if (user != null) { this.txtUSER_ID.EditValue = user.USER_ID; this.txtUSER_NAME.EditValue = user.USER_NAME; this.txtWARE_ID.EditValue = user.WARE_ID; this.txtLOGIN.EditValue = user.LOGIN; this.txtPWD.EditValue = user.PWD; this.txtEMPLOYEE_ID.EditValue = user.EMPLOYEE_ID; this.lueDefaultRole.EditValue = user.ROLE_ID; this.txtREMARK.EditValue = user.REMARK; this.txtEMAIL.EditValue = user.EMAIL; this.txtCOMP_ID.EditValue = user.COMP_ID; this.icbREC_STAT.EditValue = user.REC_STAT; this.GetUserRoleList(user.USER_ID); GridView view = (GridView)this.grdRole.Views[0]; UiUtility.RemoveActiveRow(view); } }