This commit is contained in:
2025-03-14 11:01:04 +01:00
parent 7be498e60d
commit 2801fd5612
5 changed files with 299 additions and 16 deletions

View File

@@ -164,10 +164,10 @@ public class jffConnexion extends javax.swing.JFrame {
String mdp = String.valueOf(jPFmdp.getPassword());
praticienSQL testPraticien = new praticienSQL();
ArrayList<String>lePraticien = testPraticien.rechercherPraticien(identifiant,mdp);
if (lePraticien.get(0) != null){
new jffFamilleMedoc().setVisible(true);
if (!lePraticien.isEmpty()){
new jffFamilleMedoc(this.profession).setVisible(true);
}else {
//JOptionPane.showMessageDialog(null,"Erreur de connexion, Veuillez recommencer");
JOptionPane.showMessageDialog(null,"Erreur de connexion, Veuillez recommencer");
}
}else{
@@ -177,7 +177,7 @@ public class jffConnexion extends javax.swing.JFrame {
ArrayList<String>leVisiteur = testVisiteur.rechercherVisiteur(identifiant,mdp);
System.out.println(leVisiteur.get(0));
if (leVisiteur.get(0) != null){
new jffFamilleMedoc().setVisible(true);
new jffFamilleMedoc(this.profession).setVisible(true);
}else {
leVisiteur.add("12");
//JOptionPane.showMessageDialog(null,"Erreur de connexion, Veuillez recommencer");