This commit is contained in:
medhi.rodrigues
2025-03-13 10:54:08 +01:00
parent 6541e7532d
commit 37842afdeb
6 changed files with 17 additions and 27 deletions

View File

@@ -4,7 +4,7 @@
*/
package presentation;
import acces_aux_donnes.ObservationSQL;
import acces_aux_donnes.observationSQL;
/**
*
@@ -94,7 +94,7 @@ public class jffAjoutObservation extends javax.swing.JFrame {
}// </editor-fold>//GEN-END:initComponents
private void jBsoumettreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBsoumettreActionPerformed
ObservationSQL observ = new ObservationSQL();
observationSQL observ = new observationSQL();
observ.ajouterObservation(this.idMedoc, this.idPraticien, jTAobservation.getText());
}//GEN-LAST:event_jBsoumettreActionPerformed

View File

@@ -4,7 +4,7 @@
*/
package presentation;
import acces_aux_donnes.PraticienSQL;
import acces_aux_donnes.praticienSQL;
/**
*
@@ -158,7 +158,7 @@ public class jffConnexion extends javax.swing.JFrame {
private void jBValiderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBValiderActionPerformed
String identifiant = jTFIdentifiant.getText();
String mdp = String.valueOf(jPFmdp.getPassword());
PraticienSQL testPraticien = new PraticienSQL();
praticienSQL testPraticien = new praticienSQL();
String [] lePraticien = testPraticien.rechercherPraticien(identifiant,mdp);
if (lePraticien[0] != null){
System.out.print("TEST REUSSIE");

View File

@@ -102,9 +102,8 @@ public class jffFamilleMedoc extends javax.swing.JFrame {
String compositionTrouve = rechercheMedoc.get(2);
String effetTrouve = rechercheMedoc.get(3);
String contreIndicationTrouve = rechercheMedoc.get(4);
String imgTrouve = "../img/"+ idTrouve +".jpg";
Medicament medocTrouve = new Medicament(idTrouve, nomTrouve , compositionTrouve, effetTrouve
, contreIndicationTrouve,imgTrouve);
String imgTrouve = "/img/"+ idTrouve +".jpg";
Medicament medocTrouve = new Medicament(idTrouve, nomTrouve , compositionTrouve, effetTrouve, contreIndicationTrouve,imgTrouve);
new jffInfoMedoc(medocTrouve).setVisible(true);