familleMedoc fini
This commit is contained in:
parent
88c09cedeb
commit
1016e4a3e6
@ -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 {
|
||||
|
||||
}
|
@ -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<String> rechercheMedoc = new ArrayList<String>();
|
||||
rechercheMedoc = medocTest.rechercherMedicament(medocRechercher);
|
||||
@ -167,13 +168,14 @@ public class jffFamilleMedoc extends javax.swing.JFrame {
|
||||
MedicamentSQL medocTest = new MedicamentSQL();
|
||||
ArrayList<String> rechercheMedoc = new ArrayList<String>();
|
||||
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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user