diff --git a/analyseWriter.exe b/analyseWriter.exe index 3e7c9a8..fbd3a95 100644 Binary files a/analyseWriter.exe and b/analyseWriter.exe differ diff --git a/analyseWriter.jar b/analyseWriter.jar index ab5befa..174374b 100644 Binary files a/analyseWriter.jar and b/analyseWriter.jar differ diff --git a/bin/fenetres/proprieteFichierAnalyse$17.class b/bin/fenetres/proprieteFichierAnalyse$17.class index b67565f..775546f 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$17.class and b/bin/fenetres/proprieteFichierAnalyse$17.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$18.class b/bin/fenetres/proprieteFichierAnalyse$18.class index 15c7336..578eea8 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$18.class and b/bin/fenetres/proprieteFichierAnalyse$18.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$19.class b/bin/fenetres/proprieteFichierAnalyse$19.class index ddbb790..214ce35 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$19.class and b/bin/fenetres/proprieteFichierAnalyse$19.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$20.class b/bin/fenetres/proprieteFichierAnalyse$20.class index 4df2a12..12e5d78 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$20.class and b/bin/fenetres/proprieteFichierAnalyse$20.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$21.class b/bin/fenetres/proprieteFichierAnalyse$21.class index 2f28381..09711c4 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$21.class and b/bin/fenetres/proprieteFichierAnalyse$21.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$22.class b/bin/fenetres/proprieteFichierAnalyse$22.class index fac4464..a35cbf6 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$22.class and b/bin/fenetres/proprieteFichierAnalyse$22.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse.class b/bin/fenetres/proprieteFichierAnalyse.class index f5b2056..7f42658 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse.class and b/bin/fenetres/proprieteFichierAnalyse.class differ diff --git a/src/fenetres/proprieteFichierAnalyse.java b/src/fenetres/proprieteFichierAnalyse.java index 9d22cab..875e0ed 100644 --- a/src/fenetres/proprieteFichierAnalyse.java +++ b/src/fenetres/proprieteFichierAnalyse.java @@ -456,8 +456,112 @@ public final class proprieteFichierAnalyse extends JFrame { }); btnAideHistoriquePresent.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); contentPane.add(btnAideHistoriquePresent, "cell 6 11,aligny top"); + + // Bouton de calcul de la base numérique + btnVoirBaremeNumeric = new JButton(""); + btnVoirBaremeNumeric.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + double progression = Double.valueOf(textFieldProgression.getText()); + double noteFrom = Double.valueOf(textFieldNoteFrom.getText()); + calculNotesProgression C = new calculNotesProgression(progression,noteFrom); + JOptionPane.showMessageDialog(null, C.getMessageHTMLColonne()); + } + }); + btnVoirBaremeNumeric.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/voirmini.png"))); + contentPane.add(btnVoirBaremeNumeric, "cell 2 9"); + + btnVoirBaremeABC = new JButton(""); + btnVoirBaremeABC.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + double progression = Double.valueOf(textFieldProgression.getText()); + calcul.calculIntervalleBaremeABCDE C = new calcul.calculIntervalleBaremeABCDE(progression); + JOptionPane.showMessageDialog(null, C.getMessageHTMLColonne()); + } + }); + btnVoirBaremeABC.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/voirmini.png"))); + contentPane.add(btnVoirBaremeABC, "cell 2 8"); + + + + // Bouton pour validation + JButton btnNewButton = new JButton("Valider"); + btnNewButton.setFont(new Font("Tahoma", Font.BOLD, 14)); + contentPane.add(btnNewButton, "cell 1 13,grow"); + btnNewButton.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + + if(verifCoefProgression()&&verifBareme()&&formatDateWriter.isCorrect(textFieldDateCreation.getText()) + &&VerificationDateDuControle()){ + commandes.sujet.getAttributs().put("titre", textFieldTitre.getText() ); + commandes.sujet.getAttributs().put("auteur", textFieldAuteur.getText() ); + commandes.sujet.getAttributs().put("metaSujet", textFieldMetaSujet.getText() ); + commandes.sujet.getAttributs().put("presenceMetaSujet", comboBoxPresenceMetaSujet.getSelectedItem().toString() ); + commandes.sujet.getAttributs().put("baremeABC", comboBoxBaremeABC.getSelectedItem().toString() ); + commandes.sujet.getAttributs().put("notefrom", textFieldNoteFrom.getText() ); + commandes.sujet.getAttributs().put("progression", textFieldProgression.getText() ); + commandes.sujet.getAttributs().put("historiquePresent", comboBoxhistoriquePresent.getSelectedItem().toString() ); + commandes.sujet.getAttributs().put("creationDate", textFieldDateCreation.getText() ); + commandes.sujet.getAttributs().put("modificationDateMini", textField_dateModificationMini.getText() ); + commandes.sujet.getAttributs().put("controleDateCreation", comboBoxcontroleDateCreation.getSelectedItem().toString() ); + commandes.sujet.getAttributs().put("controleDateModificationMini", comboBoxcontrole_modificationDateMini.getSelectedItem().toString() ); + commandes.sujet.getAttributs().put("Initial_Creator", textFieldInitial_Creator.getText() ); + commandes.sujet.getAttributs().put("controle_Initial_Creator", comboBoxcontrole_Initial_Creator.getSelectedItem().toString() ); + commandes.sujet.getAttributs().put("link_help", textFieldlink_help.getText() ); + commandes.sujet.getAttributs().put("link_sujet", textFieldlink_sujet.getText() ); + + String textCommentaire = textAreaCommentaire.getText().replace("\n", "-NewLine-"); + if(!commandes.sujet.getContenu().isEmpty()) { + commandes.sujet.getContenu().remove(0); + commandes.sujet.getContenu().add(0, textCommentaire); + } + + + meptl.chargementParametresFichierAnalyse(); + fenetres.create.getTextNodeSelect().afficheChargementFichierAnalyse(); + + dispose(); + } + + + } + }); + + lblNewLabel_14 = new JLabel("La date et heure du début du contrôle.
C'est la date de modification qui doit être la plus ancienne dans le fichier des étudiants."); + lblNewLabel_14.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(lblNewLabel_14, "cell 4 13,alignx left"); + textField_dateModificationMini = new JTextField(); + textField_dateModificationMini.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(textField_dateModificationMini, "cell 5 13,grow"); + textField_dateModificationMini.setColumns(10); + btnAidecontrole_dateModificationMini = new JButton(""); + btnAidecontrole_dateModificationMini.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + JOptionPane.showInternalMessageDialog(null, "Si vous indiquez une date, alors toutes les dates" + + "
de modification dans un fichier doivent être postérieures à la date indiquée."); + } + }); + btnAidecontrole_dateModificationMini.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); + contentPane.add(btnAidecontrole_dateModificationMini, "cell 6 13,aligny top"); + + lblNewLabel_15 = new JLabel("La date des modifications doit être postérieures à la date du début du contrôle."); + lblNewLabel_15.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(lblNewLabel_15, "cell 4 14,alignx left"); + comboBoxcontrole_modificationDateMini = new JComboBox(); + comboBoxcontrole_modificationDateMini.setModel(new DefaultComboBoxModel(new String[] {"false", "true"})); + comboBoxcontrole_modificationDateMini.setFont(new Font("Tahoma", Font.BOLD, 12)); + contentPane.add(comboBoxcontrole_modificationDateMini, "cell 5 14,growx"); + btnAidecontrole_dateModificationMini = new JButton(""); + btnAidecontrole_dateModificationMini.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + JOptionPane.showInternalMessageDialog(null, "Si vrai, alors les dates" + + "des modifications dans un fichier
doivent être postérieures à la date indiquée."); + } + }); + btnAidecontrole_dateModificationMini.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); + contentPane.add(btnAidecontrole_dateModificationMini, "cell 6 14"); + if(commandes.sujet.getAttributs().get("creationDate")!=null){ textFieldDateCreation.setText(commandes.sujet.getAttributs().get("creationDate")); @@ -507,113 +611,7 @@ public final class proprieteFichierAnalyse extends JFrame { if(commandes.sujet.getAttributs().get("baremeABC")!=null){ comboBoxBaremeABC.setSelectedItem(commandes.sujet.getAttributs().get("baremeABC").toLowerCase()); } - - // Bouton de calcul de la base numérique - btnVoirBaremeNumeric = new JButton(""); - btnVoirBaremeNumeric.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - double progression = Double.valueOf(textFieldProgression.getText()); - double noteFrom = Double.valueOf(textFieldNoteFrom.getText()); - calculNotesProgression C = new calculNotesProgression(progression,noteFrom); - JOptionPane.showMessageDialog(null, C.getMessageHTMLColonne()); - } - }); - btnVoirBaremeNumeric.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/voirmini.png"))); - contentPane.add(btnVoirBaremeNumeric, "cell 2 9"); - - - - btnVoirBaremeABC = new JButton(""); - btnVoirBaremeABC.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - double progression = Double.valueOf(textFieldProgression.getText()); - calcul.calculIntervalleBaremeABCDE C = new calcul.calculIntervalleBaremeABCDE(progression); - JOptionPane.showMessageDialog(null, C.getMessageHTMLColonne()); - } - }); - btnVoirBaremeABC.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/voirmini.png"))); - contentPane.add(btnVoirBaremeABC, "cell 2 8"); - - - - // Bouton pour validation - JButton btnNewButton = new JButton("Valider"); - btnNewButton.setFont(new Font("Tahoma", Font.BOLD, 14)); - contentPane.add(btnNewButton, "cell 1 13,grow"); - btnNewButton.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - - if(verifCoefProgression()&&verifBareme()&&formatDateWriter.isCorrect(textFieldDateCreation.getText()) - &&VerificationDateDuControle()){ - commandes.sujet.getAttributs().put("titre", textFieldTitre.getText() ); - commandes.sujet.getAttributs().put("auteur", textFieldAuteur.getText() ); - commandes.sujet.getAttributs().put("metaSujet", textFieldMetaSujet.getText() ); - commandes.sujet.getAttributs().put("presenceMetaSujet", comboBoxPresenceMetaSujet.getSelectedItem().toString() ); - commandes.sujet.getAttributs().put("baremeABC", comboBoxBaremeABC.getSelectedItem().toString() ); - commandes.sujet.getAttributs().put("notefrom", textFieldNoteFrom.getText() ); - commandes.sujet.getAttributs().put("progression", textFieldProgression.getText() ); - commandes.sujet.getAttributs().put("historiquePresent", comboBoxhistoriquePresent.getSelectedItem().toString() ); - commandes.sujet.getAttributs().put("creationDate", textFieldDateCreation.getText() ); - commandes.sujet.getAttributs().put("modificationDateMini", textField_dateModificationMini.getText() ); - commandes.sujet.getAttributs().put("controleDateCreation", comboBoxcontroleDateCreation.getSelectedItem().toString() ); - commandes.sujet.getAttributs().put("controleDateModificationMini", comboBoxcontrole_modificationDateMini.getSelectedItem().toString() ); - commandes.sujet.getAttributs().put("Initial_Creator", textFieldInitial_Creator.getText() ); - commandes.sujet.getAttributs().put("controle_Initial_Creator", comboBoxcontrole_Initial_Creator.getSelectedItem().toString() ); - commandes.sujet.getAttributs().put("link_help", textFieldlink_help.getText() ); - commandes.sujet.getAttributs().put("link_sujet", textFieldlink_sujet.getText() ); - - String textCommentaire = textAreaCommentaire.getText().replace("\n", "-NewLine-"); - if(!commandes.sujet.getContenu().isEmpty()) { - commandes.sujet.getContenu().remove(0); - commandes.sujet.getContenu().add(0, textCommentaire); - } - - - meptl.chargementParametresFichierAnalyse(); - fenetres.create.getTextNodeSelect().afficheChargementFichierAnalyse(); - - dispose(); - } - - - } - }); - - lblNewLabel_14 = new JLabel("La date et heure du début du contrôle.
C'est la date de modification qui doit être la plus ancienne dans le fichier des étudiants."); - lblNewLabel_14.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(lblNewLabel_14, "cell 4 13,alignx left"); - textField_dateModificationMini = new JTextField(); - textField_dateModificationMini.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(textField_dateModificationMini, "cell 5 13,grow"); - textField_dateModificationMini.setColumns(10); - btnAidecontrole_dateModificationMini = new JButton(""); - btnAidecontrole_dateModificationMini.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - JOptionPane.showInternalMessageDialog(null, "Si vous indiquez une date, alors toutes les dates" - + "
de modification dans un fichier doivent être postérieures à la date indiquée."); - } - }); - btnAidecontrole_dateModificationMini.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); - contentPane.add(btnAidecontrole_dateModificationMini, "cell 6 13,aligny top"); - - lblNewLabel_15 = new JLabel("La date des modifications doit être postérieures à la date du début du contrôle."); - lblNewLabel_15.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(lblNewLabel_15, "cell 4 14,alignx left"); - comboBoxcontrole_modificationDateMini = new JComboBox(); - comboBoxcontrole_modificationDateMini.setModel(new DefaultComboBoxModel(new String[] {"false", "true"})); - comboBoxcontrole_modificationDateMini.setFont(new Font("Tahoma", Font.BOLD, 12)); - contentPane.add(comboBoxcontrole_modificationDateMini, "cell 5 14,growx"); - btnAidecontrole_dateModificationMini = new JButton(""); - btnAidecontrole_dateModificationMini.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - JOptionPane.showInternalMessageDialog(null, "Si vrai, alors les dates" - + "des modifications dans un fichier
doivent être postérieures à la date indiquée."); - } - }); - btnAidecontrole_dateModificationMini.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); - contentPane.add(btnAidecontrole_dateModificationMini, "cell 6 14"); - /** * Fermeture de la fenêtre. */