List choices = f.getChoices();
if (choices.size() == 1) {
Choice c2 = new Choice(-1, new Formation(-1, "AUCUN"));
choices.add(1, c2);
Choice c3 = new Choice(-1, new Formation(-1, "AUCUN"));
choices.add(2, c3);
} else if (choices.size() == 2) {
Choice c3 = new Choice(-1, new Formation(-1, "AUCUN"));
choices.add(2, c3);
}
}
model.put("folders", finalizedByCandidate);
link = "wait";
/* The page of a secretary displaying folders with a paper version received but the version is incomplete, there are some attached documents missing */
} else if (action.equals("incomplete")) {
page.add("Secr�tariat : Liste des dossiers papiers incomplets.");
model.put("page", page);
/*
* Liste des dossier ayant recu une version papier mais
* incomplete
*/
List<Folder> incomplete = foldermanager.findPersonalInfoByState(Folder.FOLDER_INCOMPLETE);
for (Folder f : incomplete) {
List choices = f.getChoices();
if (choices.size() == 1) {
Choice c2 = new Choice(-1, new Formation(-1, "AUCUN"));
choices.add(1, c2);
Choice c3 = new Choice(-1, new Formation(-1, "AUCUN"));
choices.add(2, c3);
} else if (choices.size() == 2) {
Choice c3 = new Choice(-1, new Formation(-1, "AUCUN"));
choices.add(2, c3);
}
}
model.put("folders", incomplete);
link = "incomplete";
/* The page of a secretary displaying folders with a paper version received */
} else if (action.equals("complete")) {
page.add("Secr�tariat : Liste des dossiers papiers complets.");
model.put("page", page);
/* Liste des dossier ayant recu une version papier complete */
List<Folder> complete = foldermanager.findPersonalInfoByState(Folder.FOLDER_COMPLETE);
for (Folder f : complete) {
List choices = f.getChoices();
if (choices.size() == 1) {
Choice c2 = new Choice(-1, new Formation(-1, "AUCUN"));
choices.add(1, c2);
Choice c3 = new Choice(-1, new Formation(-1, "AUCUN"));
choices.add(2, c3);
} else if (choices.size() == 2) {
Choice c3 = new Choice(-1, new Formation(-1, "AUCUN"));
choices.add(2, c3);
}
}