Compare commits
No commits in common. "6541e7532d815d8e59cda013e5c632dade768d26" and "bdef3c80bf62d82d4f21385d07ce186c859beed2" have entirely different histories.
6541e7532d
...
bdef3c80bf
54
GSBapplication/src/Metier/Observation.java
Normal file
54
GSBapplication/src/Metier/Observation.java
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
/*
|
||||||
|
* 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 Metier;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author medhi.rodrigues
|
||||||
|
*/
|
||||||
|
public class Observation {
|
||||||
|
/**
|
||||||
|
* observation = l'observation d'un médicament
|
||||||
|
*/
|
||||||
|
private String observation;
|
||||||
|
private String idMedoc;
|
||||||
|
private int idPraticien;
|
||||||
|
|
||||||
|
//Constructeur
|
||||||
|
public Observation(String idMedoc,int idPraticien, String observ){
|
||||||
|
this.idMedoc = idMedoc;
|
||||||
|
this.idPraticien = idPraticien;
|
||||||
|
this.observation = observ;
|
||||||
|
}
|
||||||
|
|
||||||
|
//LES GUETTEUR
|
||||||
|
/**
|
||||||
|
* @return the observation
|
||||||
|
*/
|
||||||
|
public String getObservation() {
|
||||||
|
return observation;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return l'identifiant du médicament
|
||||||
|
*/
|
||||||
|
public String getIdMedoc(){
|
||||||
|
return this.idMedoc;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return l'identifiant du praticien
|
||||||
|
*/
|
||||||
|
public int getIdPraticien(){
|
||||||
|
return this.idPraticien;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -4,8 +4,8 @@
|
|||||||
*/
|
*/
|
||||||
package TEST;
|
package TEST;
|
||||||
|
|
||||||
import acces_aux_donnes.ConnexionSQL;
|
import acces_aux_donnes.connexionSQL;
|
||||||
import acces_aux_donnes.PraticienSQL;
|
import acces_aux_donnes.praticienSQL;
|
||||||
import acces_aux_donnes.MedicamentSQL;
|
import acces_aux_donnes.MedicamentSQL;
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ public class MedicamentSQL {
|
|||||||
private ResultSet result = null;
|
private ResultSet result = null;
|
||||||
|
|
||||||
public MedicamentSQL() {
|
public MedicamentSQL() {
|
||||||
connexionTest = ConnexionSQL.getConnect("10.121.38.75","bdgsb","adminGSB","mdpGSB");
|
connexionTest = connexionSQL.getConnect("10.121.38.75","bdgsb","adminGSB","mdpGSB");
|
||||||
}
|
}
|
||||||
|
|
||||||
public ArrayList<String> rechercherMedicament (String nomCo){
|
public ArrayList<String> rechercherMedicament (String nomCo){
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
package presentation;
|
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
|
}// </editor-fold>//GEN-END:initComponents
|
||||||
|
|
||||||
private void jBsoumettreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBsoumettreActionPerformed
|
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());
|
observ.ajouterObservation(this.idMedoc, this.idPraticien, jTAobservation.getText());
|
||||||
}//GEN-LAST:event_jBsoumettreActionPerformed
|
}//GEN-LAST:event_jBsoumettreActionPerformed
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
package presentation;
|
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
|
private void jBValiderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBValiderActionPerformed
|
||||||
String identifiant = jTFIdentifiant.getText();
|
String identifiant = jTFIdentifiant.getText();
|
||||||
String mdp = String.valueOf(jPFmdp.getPassword());
|
String mdp = String.valueOf(jPFmdp.getPassword());
|
||||||
PraticienSQL testPraticien = new PraticienSQL();
|
praticienSQL testPraticien = new praticienSQL();
|
||||||
String [] lePraticien = testPraticien.rechercherPraticien(identifiant,mdp);
|
String [] lePraticien = testPraticien.rechercherPraticien(identifiant,mdp);
|
||||||
if (lePraticien[0] != null){
|
if (lePraticien[0] != null){
|
||||||
System.out.print("TEST REUSSIE");
|
System.out.print("TEST REUSSIE");
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
package presentation;
|
package presentation;
|
||||||
|
|
||||||
import Metier.Medicament;
|
import Metier.medicament;
|
||||||
import acces_aux_donnes.MedicamentSQL;
|
import acces_aux_donnes.MedicamentSQL;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
@ -103,7 +103,7 @@ public class jffFamilleMedoc extends javax.swing.JFrame {
|
|||||||
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 = "../img/"+ idTrouve +".jpg";
|
||||||
Medicament medocTrouve = new Medicament(idTrouve, nomTrouve , compositionTrouve, effetTrouve
|
medicament medocTrouve = new medicament(idTrouve, nomTrouve , compositionTrouve, effetTrouve
|
||||||
, contreIndicationTrouve,imgTrouve);
|
, contreIndicationTrouve,imgTrouve);
|
||||||
new jffInfoMedoc(medocTrouve).setVisible(true);
|
new jffInfoMedoc(medocTrouve).setVisible(true);
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
package presentation;
|
package presentation;
|
||||||
|
|
||||||
import Metier.Medicament;
|
import Metier.medicament;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -15,7 +15,7 @@ public class jffInfoMedoc extends javax.swing.JFrame {
|
|||||||
/**
|
/**
|
||||||
* Creates new form jffInfoMedoc
|
* Creates new form jffInfoMedoc
|
||||||
*/
|
*/
|
||||||
public jffInfoMedoc(Medicament medocTrouve) {
|
public jffInfoMedoc(medicament medocTrouve) {
|
||||||
initComponents();
|
initComponents();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user