diff --git a/GSBapplication/src/acces_aux_donnes/visiteurMedicalSQL.java b/GSBapplication/src/acces_aux_donnes/visiteurMedicalSQL.java deleted file mode 100644 index 1a78f26..0000000 --- a/GSBapplication/src/acces_aux_donnes/visiteurMedicalSQL.java +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license - * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template - */ -package acces_aux_donnes; - -/** - * - * @author emile.lalorcey - */ -public class visiteurMedicalSQL { - -} diff --git a/GSBapplication/src/presentation/jffFamilleMedoc.java b/GSBapplication/src/presentation/jffFamilleMedoc.java index 456b230..58e5c24 100644 --- a/GSBapplication/src/presentation/jffFamilleMedoc.java +++ b/GSBapplication/src/presentation/jffFamilleMedoc.java @@ -130,6 +130,7 @@ public class jffFamilleMedoc extends javax.swing.JFrame { private void jBRechercheValideActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBRechercheValideActionPerformed String medocRechercher = jTFRecherche.getText(); + System.out.println(medocRechercher); MedicamentSQL medocTest = new MedicamentSQL(); ArrayList rechercheMedoc = new ArrayList(); rechercheMedoc = medocTest.rechercherMedicament(medocRechercher); @@ -167,13 +168,14 @@ public class jffFamilleMedoc extends javax.swing.JFrame { MedicamentSQL medocTest = new MedicamentSQL(); ArrayList rechercheMedoc = new ArrayList(); rechercheMedoc = medocTest.rechercherMedicament(nomMedoc); + System.out.print("TEst"); if (rechercheMedoc.get(0) != null) { String idTrouve = rechercheMedoc.get(0); String nomTrouve = rechercheMedoc.get(1); String compositionTrouve = rechercheMedoc.get(2); String effetTrouve = rechercheMedoc.get(3); String contreIndicationTrouve = rechercheMedoc.get(4); - String imgTrouve = "/img/"+ idTrouve +".jpg"; + String imgTrouve = idTrouve; Medicament medocTrouve = new Medicament(idTrouve, nomTrouve , compositionTrouve, effetTrouve, contreIndicationTrouve,imgTrouve); new jffInfoMedoc(medocTrouve).setVisible(true); }