/// <summary> /// 根据用户基本信息获得用户其他信息 /// </summary> private void GetUserOtherInfo() { BUT_User tempBUUser = new BUT_User(); try { this._userid = tempBUUser.GetUserIDByName(_username); this._userrightid = tempBUUser.GetUserRightID(_username, _userpwd); this._userright = tempBUUser.GetUserRight(_username, _userpwd); } catch { } }
/// <summary> /// 将传递过来的数据给指定的控件 /// </summary> /// <param name="paramInfo">用户信息</param> private void FillInfo(object[] paramInfo) { try { BUT_User tempBUUser = new BUT_User(); UserID = Convert.ToInt32(paramInfo[0]); this.txtUserName.Text = paramInfo[1].ToString(); this.txtUserPwd.Text = tempBUUser.GetUserPWD(UserID); this.UserRightID = tempBUUser.GetUserRightID(paramInfo[1].ToString(), this.txtUserPwd.Text); } catch (Exception ex) { XtraMessageBox.Show(ex.Message, "mmm"); } }