示例#1
0
        /// <summary>
        /// Distribute privilege of user
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsbPrivilege_Click(object sender, EventArgs e)
        {
            string type = RBAC_USER_FIELDS.DATABASE_TABLE_NAME;
            DistributePrivilege distributePrivilege = new DistributePrivilege(type, _userEntity.UserName, _userEntity.UserKey);

            distributePrivilege.ShowDialog();
        }
示例#2
0
        /// <summary>
        /// 对选中角色进行权限分配
        /// </summary>
        private void tsbPrivilege_Click(object sender, EventArgs e)
        {
            string type     = RBAC_ROLE_FIELDS.DATABASE_TABLE_NAME;
            string roleName = roleView.GetRowCellValue(roleView.FocusedRowHandle, ROLE_NAME).ToString();
            string roleKey  = roleView.GetRowCellValue(roleView.FocusedRowHandle, ROLE_KEY).ToString();
            DistributePrivilege distributePrivilege = new DistributePrivilege(type, roleName, roleKey);

            distributePrivilege.ShowDialog();
        }