/// <summary>
        /// 获取到角色的数据集
        /// </summary>
        private void GetRoleInfoData()
        {
            DataSet myDs = new DataSet();

            myDs = myBLIRoleInfo.GetAllList();
            this.dgvMain.DataSource = myDs.Tables[0];
        }
Ejemplo n.º 2
0
        /// 权限文本框的绑定
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void GetCombRole()
        {
            DataTable myDt = new DataTable();

            myDt = myBLIRoleInfo.GetAllList().Tables[0];
            cmbRole.ValueMember   = "RoleID";
            cmbRole.DisplayMember = "RoleName";
            cmbRole.DataSource    = myDt;
        }