Merge pull request 'familleMedoc fini' (#23) from jave.Emile into main
Reviewed-on: #23
This commit is contained in:
commit
6b89fb950d
@ -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
|
private void jBRechercheValideActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBRechercheValideActionPerformed
|
||||||
String medocRechercher = jTFRecherche.getText();
|
String medocRechercher = jTFRecherche.getText();
|
||||||
|
System.out.println(medocRechercher);
|
||||||
MedicamentSQL medocTest = new MedicamentSQL();
|
MedicamentSQL medocTest = new MedicamentSQL();
|
||||||
ArrayList<String> rechercheMedoc = new ArrayList<String>();
|
ArrayList<String> rechercheMedoc = new ArrayList<String>();
|
||||||
rechercheMedoc = medocTest.rechercherMedicament(medocRechercher);
|
rechercheMedoc = medocTest.rechercherMedicament(medocRechercher);
|
||||||
@ -167,13 +168,14 @@ public class jffFamilleMedoc extends javax.swing.JFrame {
|
|||||||
MedicamentSQL medocTest = new MedicamentSQL();
|
MedicamentSQL medocTest = new MedicamentSQL();
|
||||||
ArrayList<String> rechercheMedoc = new ArrayList<String>();
|
ArrayList<String> rechercheMedoc = new ArrayList<String>();
|
||||||
rechercheMedoc = medocTest.rechercherMedicament(nomMedoc);
|
rechercheMedoc = medocTest.rechercherMedicament(nomMedoc);
|
||||||
|
System.out.print("TEst");
|
||||||
if (rechercheMedoc.get(0) != null) {
|
if (rechercheMedoc.get(0) != null) {
|
||||||
String idTrouve = rechercheMedoc.get(0);
|
String idTrouve = rechercheMedoc.get(0);
|
||||||
String nomTrouve = rechercheMedoc.get(1);
|
String nomTrouve = rechercheMedoc.get(1);
|
||||||
String compositionTrouve = rechercheMedoc.get(2);
|
String compositionTrouve = rechercheMedoc.get(2);
|
||||||
String effetTrouve = rechercheMedoc.get(3);
|
String effetTrouve = rechercheMedoc.get(3);
|
||||||
String contreIndicationTrouve = rechercheMedoc.get(4);
|
String contreIndicationTrouve = rechercheMedoc.get(4);
|
||||||
String imgTrouve = "/img/"+ idTrouve +".jpg";
|
String imgTrouve = idTrouve;
|
||||||
Medicament medocTrouve = new Medicament(idTrouve, nomTrouve , compositionTrouve, effetTrouve, contreIndicationTrouve,imgTrouve);
|
Medicament medocTrouve = new Medicament(idTrouve, nomTrouve , compositionTrouve, effetTrouve, contreIndicationTrouve,imgTrouve);
|
||||||
new jffInfoMedoc(medocTrouve).setVisible(true);
|
new jffInfoMedoc(medocTrouve).setVisible(true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user