$
This commit is contained in:
parent
51407d32cc
commit
0b995a0bcb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -32,6 +32,11 @@ public interface Requete extends MonPrint {
|
||||
* */
|
||||
public int getWitchGroupe();
|
||||
|
||||
/**
|
||||
* Recuperer le statut de la requete
|
||||
* */
|
||||
public String getStatut();
|
||||
|
||||
/**
|
||||
* @see MonPrint
|
||||
* NB. On n'utilise le mécanisme des méthodes par défaut pour donner du code dans une interface. C'est un petit peu laid et à contre-emploi mais pratique ici.
|
||||
|
@ -8,13 +8,15 @@ public class RequeteNP implements Requete {
|
||||
private final int etuSource;
|
||||
private final int type;
|
||||
private final int witchGroupe;
|
||||
private final String status;
|
||||
|
||||
public RequeteNP(int id, String message, int etuSource, int type, int witchGroupe) {
|
||||
public RequeteNP(int id, String message, int etuSource, int type, int witchGroupe, String status) {
|
||||
this.id = id;
|
||||
this.message = message;
|
||||
this.etuSource = etuSource;
|
||||
this.type = type;
|
||||
this.witchGroupe = witchGroupe;
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -41,4 +43,9 @@ public class RequeteNP implements Requete {
|
||||
public int getWitchGroupe() {
|
||||
return this.witchGroupe;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getStatut() {
|
||||
return this.status;
|
||||
}
|
||||
}
|
||||
|
@ -240,7 +240,8 @@ public class BDatabase {
|
||||
requestMessage.get(i),
|
||||
Integer.parseInt(requestEtu.get(i)),
|
||||
Integer.parseInt(requestType.get(i)),
|
||||
Integer.parseInt(requestWitchGrup.get(i))
|
||||
Integer.parseInt(requestWitchGrup.get(i)),
|
||||
requestStatut.get(i)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@ -623,6 +623,8 @@ public class Controller implements ActionListener, ListSelectionListener {
|
||||
}
|
||||
|
||||
else if(Objects.equals(command, "av::ShowRequestFromStudent")) {
|
||||
this.r = this.db.getRequestList();
|
||||
|
||||
Object[][] data = new Object[this.r.size()][5];
|
||||
|
||||
String[] titre = {
|
||||
@ -634,6 +636,7 @@ public class Controller implements ActionListener, ListSelectionListener {
|
||||
};
|
||||
|
||||
for(int i = 0; i <= this.r.size()-1; i++) {
|
||||
System.out.println(this.getGroupeById(this.r.get(i).getWitchGroupe()));
|
||||
Object[] info = {
|
||||
this.getEtuNameById(this.r.get(i).getEtuId()),
|
||||
this.getGroupeById(this.r.get(i).getWitchGroupe()),
|
||||
|
Loading…
Reference in New Issue
Block a user