MAJ (Ajout d'un drapeau pour ne pas faire apparaître les détails dans

les feedbacks des étudiants)
This commit is contained in:
pablo rodriguez 2022-12-01 13:04:20 +01:00
parent 80e246ea09
commit 3eaed5f3bb
40 changed files with 96 additions and 66 deletions

Binary file not shown.

Binary file not shown.

1
bin/.gitignore vendored
View File

@ -1 +1,2 @@
/fenetres/
/MEPTL/

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -190,7 +190,7 @@ public class HTML {
+ "</tr>\r\n" +
"</table>";
if(!commandes.noDetail) {
return "<table width=\"80%\" align=\"center\" cellpadding=\"4\" cellspacing=\"0\" style=\"page-break-after: avoid\">\r\n" +
"<col width=\"100%\"/>"
+ "<tr valign=\"top\">"
@ -198,6 +198,9 @@ public class HTML {
"├ <a href=\"" + id + "\"><font size=\"3\">" + titre +"</font></p></td>"
+ "</tr>\r\n" +
"</table>";
}
return "";
// return "<table width=\"80%\" align=\"center\" cellpadding=\"4\" cellspacing=\"0\" style=\"page-break-after: avoid\">\r\n" +
// "<col width=\"30%\"/><col width=\"20%\"/><col width=\"20%\"/><col width=\"20%\"/><col width=\"10%\"/>"

View File

@ -54,6 +54,7 @@ public class commandes {
public static boolean fourniCSV = false; // fourni le fichier CSV contenant la liste des étudiants
public static boolean badCommand = false ; //erreur dans les commandes
public static boolean noNote =false; // pas de note dans les feedbacks
public static boolean noDetail = false; // pas de détail dans les feedbacks
public static boolean noLogo =false; // pas de logo dans les feedbacks
public static boolean newLogo=false; // un nouveau logo dans le feedback
public static boolean licence = false; // affiche la licence

View File

@ -247,8 +247,11 @@ public class feedbacks {
fichier.append("</div>");
//ajoute le menu
//ajoute le menu si pas de détails
if(!commandes.noDetail) {
fichier.append(HTML.getHTMLmenu(nodana.retourneFirstEnfantsByName("menu").getNodes()));
}
//Les erreurs
@ -290,6 +293,7 @@ public class feedbacks {
fichier.append(HTML.TableEnteteTableurSynthese());
fichier = SyntheseTable(nodana,fichier);
if(!commandes.noDetail) {
//Metadonnées
if(nodana.retourneFirstEnfantsByName("meta")!=null) if(nodana.retourneFirstEnfantsByName("meta").isClose()) {
fichier.append(HTML.Table(nodana.retourneFirstEnfantsByName("meta")));
@ -349,6 +353,8 @@ public class feedbacks {
if(nodana.retourneFirstEnfantsByName("structurepage")!=null) if(nodana.retourneFirstEnfantsByName("structurepage").isClose()) {
fichier.append(HTML.Table(nodana.retourneFirstEnfantsByName("structurepage")));
}
}
fichier.append("<p><br><br></p>");
}

View File

@ -71,6 +71,7 @@ public class evaluate extends JFrame {
private JCheckBox chckbxNoLogo;
private JCheckBox chckbxVerif;
private JCheckBox chckbxNewLogo;
private JCheckBox chckbxNoDetail;
private afficheText txtpnmessages;
@ -198,6 +199,7 @@ public class evaluate extends JFrame {
}
}
});
chckbxNoNote.setToolTipText("Cochez si vous voulez pas faire apparaître les notes dans les feedbacks");
chckbxNoNote.setFont(new Font("Tahoma", Font.PLAIN, 12));
panelWest.add(chckbxNoNote, "cell 0 2,grow");
@ -212,6 +214,21 @@ public class evaluate extends JFrame {
}
}
});
chckbxNoDetail = new JCheckBox("Pas de détails dans les feedbacks");
chckbxNoDetail.addChangeListener(new ChangeListener() {
public void stateChanged(ChangeEvent e) {
if(chckbxNoDetail.isSelected()) {
commandes.noDetail=true;
}else {
commandes.noDetail=false;
}
}
});
chckbxNoDetail.setToolTipText("Cochez si vous voulez que la table synthèse dans les feedbacks");
chckbxNoDetail.setFont(new Font("Tahoma", Font.PLAIN, 12));
panelWest.add(chckbxNoDetail, "cell 0 2");
chckbxVerif.setToolTipText("Cochez si vous voulez vérifier les échanges de fichiers entre les étudiants.");
chckbxVerif.setFont(new Font("Tahoma", Font.PLAIN, 12));
panelWest.add(chckbxVerif, "cell 0 2,grow");
@ -459,6 +476,7 @@ public class evaluate extends JFrame {
chckbxNewLogo.setEnabled(false);
chckbxNoLogo.setEnabled(false);
chckbxVerif.setEnabled(false);
chckbxNoDetail.setEnabled(false);
}else {
chckbxfichiersEtudiants.setEnabled(true);
chckbxZipfeedback.setEnabled(true);
@ -468,6 +486,7 @@ public class evaluate extends JFrame {
chckbxNewLogo.setEnabled(true);
chckbxNoLogo.setEnabled(true);
chckbxVerif.setEnabled(true);
chckbxNoDetail.setEnabled(true);
txtpnmessages.afficheChargementFichierAnalyse();
}