public bool TestPermission(BO.UserPermFlag oneperm) { int x = (int)oneperm; int y = x & this.j04PermissionValue; if (y == x) { return(true); } else { return(false); } }
private bool TestOnePerm(BO.UserPermFlag oneperm, BO.j04UserRole rec) { int x = (int)oneperm; int y = x & rec.j04PermissionValue; if (y == x) { return(true); } else { return(false); } }