Compare commits
	
		
			13 Commits
		
	
	
		
			Java.medhi
			...
			main
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					344f5b926d | ||
| 90a493e3c6 | |||
| d1402ea3df | |||
| ffef8fc4c8 | |||
| 2801fd5612 | |||
| dcad0a4d0a | |||
| 7be498e60d | |||
| 2e3414be26 | |||
| 546a6a8717 | |||
| 
						 | 
					57de42ffa6 | ||
| 
						 | 
					5a923ab0f6 | ||
| 35043c5d54 | |||
| 3eca7c4d6a | 
@@ -26,7 +26,7 @@ public class Medicament {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    /** LE CONSTRUCTEUR DEFAULT
 | 
					    /** LE CONSTRUCTEUR DEFAULT
 | 
				
			||||||
     * 
 | 
					     * Constructeur de m<>dicament avec tous les attribut d<>finis
 | 
				
			||||||
     * @param id
 | 
					     * @param id
 | 
				
			||||||
     * @param nom
 | 
					     * @param nom
 | 
				
			||||||
     * @param composition
 | 
					     * @param composition
 | 
				
			||||||
@@ -52,6 +52,7 @@ public class Medicament {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
 | 
					     * Getteur du nom du m<>dicament
 | 
				
			||||||
     * @return the nom
 | 
					     * @return the nom
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public String getNom() {
 | 
					    public String getNom() {
 | 
				
			||||||
@@ -59,6 +60,7 @@ public class Medicament {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
 | 
					     * Getteur de la Composition du m<>dicament
 | 
				
			||||||
     * @return the composition
 | 
					     * @return the composition
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public String getComposition() {
 | 
					    public String getComposition() {
 | 
				
			||||||
@@ -66,6 +68,7 @@ public class Medicament {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
 | 
					     * Guetteur des effets de m<>dicament
 | 
				
			||||||
     * @return the effet
 | 
					     * @return the effet
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public String getEffet() {
 | 
					    public String getEffet() {
 | 
				
			||||||
@@ -73,16 +76,25 @@ public class Medicament {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
 | 
					     * Guetteur des contres Indications du m<>dicament
 | 
				
			||||||
     * @return the contreindication
 | 
					     * @return the contreindication
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public String getContreindication() {
 | 
					    public String getContreindication() {
 | 
				
			||||||
        return contreindication;
 | 
					        return contreindication;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * Getteur de l'adresse de l'image du m<>dicament
 | 
				
			||||||
 | 
					     * @return the img
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
    public String getImg() {
 | 
					    public String getImg() {
 | 
				
			||||||
        return img;
 | 
					        return img;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    
 | 
					    /**
 | 
				
			||||||
 | 
					     * M<>thode toString permettant connaitre la valeur 
 | 
				
			||||||
 | 
					     * de chaque attribut de l'objet M<>dicament
 | 
				
			||||||
 | 
					     * @return retourne de fa<66>on structur<75> tout les attributs
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    public String toString() {
 | 
					    public String toString() {
 | 
				
			||||||
        return "Medicament{" + "id=" + id + ", nom=" + nom + ", composition=" + composition + ", effet=" + effet + ", contreindication=" + contreindication + ",img=" + img + '}';
 | 
					        return "Medicament{" + "id=" + id + ", nom=" + nom + ", composition=" + composition + ", effet=" + effet + ", contreindication=" + contreindication + ",img=" + img + '}';
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -22,14 +22,21 @@ public class famille {
 | 
				
			|||||||
        this.id = id;
 | 
					        this.id = id;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // LES SETTEUR 
 | 
					    //      LES Guetteurs
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
 | 
					     * Getteur de l'id de la famille
 | 
				
			||||||
     * @return the id
 | 
					     * @return the id
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public String getId() {
 | 
					    public String getId() {
 | 
				
			||||||
        return id;
 | 
					        return id;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    //       M<>thodes
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * M<>thode toString permettant connaitre la valeur 
 | 
				
			||||||
 | 
					     * de chaque attribut de l'objet famille
 | 
				
			||||||
 | 
					     * @return retourne de fa<66>on structur<75> tout les attributs
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    public String toString() {
 | 
					    public String toString() {
 | 
				
			||||||
        return "famille{" + "id=" + id + '}';
 | 
					        return "famille{" + "id=" + id + '}';
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -22,7 +22,7 @@ public class praticien {
 | 
				
			|||||||
    
 | 
					    
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    /** LE CONSTRUCTEUR DEFAULT
 | 
					    /** LE CONSTRUCTEUR DEFAULT
 | 
				
			||||||
     * 
 | 
					     * Constructeur de praticien compl<70>tant chaque attributs
 | 
				
			||||||
     * @param id
 | 
					     * @param id
 | 
				
			||||||
     * @param nom
 | 
					     * @param nom
 | 
				
			||||||
     * @param prenom
 | 
					     * @param prenom
 | 
				
			||||||
@@ -38,6 +38,7 @@ public class praticien {
 | 
				
			|||||||
    
 | 
					    
 | 
				
			||||||
    //LES GETTEUR
 | 
					    //LES GETTEUR
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
 | 
					     * Guetteur de l'id du praticien
 | 
				
			||||||
     * @return the id
 | 
					     * @return the id
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public int getId() {
 | 
					    public int getId() {
 | 
				
			||||||
@@ -45,6 +46,7 @@ public class praticien {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
 | 
					     * Guetteur du nom du praticien
 | 
				
			||||||
     * @return the nom
 | 
					     * @return the nom
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public String getNom() {
 | 
					    public String getNom() {
 | 
				
			||||||
@@ -52,6 +54,7 @@ public class praticien {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
 | 
					     * Guetteur du pr<70>nom du praticien
 | 
				
			||||||
     * @return the prenom
 | 
					     * @return the prenom
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public String getPrenom() {
 | 
					    public String getPrenom() {
 | 
				
			||||||
@@ -59,13 +62,18 @@ public class praticien {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
 | 
					     * Guetteur du type de praticien
 | 
				
			||||||
     * @return the type_praticien
 | 
					     * @return the type_praticien
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public String getType_praticien() {
 | 
					    public String getType_praticien() {
 | 
				
			||||||
        return type_praticien;
 | 
					        return type_praticien;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    
 | 
					    /**
 | 
				
			||||||
 | 
					     * M<>thode toString permettant connaitre la valeur 
 | 
				
			||||||
 | 
					     * de chaque attribut de l'objet praticien
 | 
				
			||||||
 | 
					     * @return retourne de fa<66>on structur<75> tout les attributs
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    public String toString() {
 | 
					    public String toString() {
 | 
				
			||||||
        return "Praticien{" + "id=" + id + ", nom=" + nom + ", prenom=" + prenom + ", type_praticien=" + type_praticien + '}';
 | 
					        return "Praticien{" + "id=" + id + ", nom=" + nom + ", prenom=" + prenom + ", type_praticien=" + type_praticien + '}';
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -21,8 +21,7 @@ public class visiteur_medicaux {
 | 
				
			|||||||
    private String region;
 | 
					    private String region;
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    /** LE CONSTRUCTEUR DEFAULT
 | 
					    /** LE CONSTRUCTEUR DEFAULT
 | 
				
			||||||
     * 
 | 
					     * Constructeur de visiteur_m<5F>dicaux compl<70>tant chaque attributs
 | 
				
			||||||
     * 
 | 
					 | 
				
			||||||
     * @param id
 | 
					     * @param id
 | 
				
			||||||
     * @param nom
 | 
					     * @param nom
 | 
				
			||||||
     * @param prenom
 | 
					     * @param prenom
 | 
				
			||||||
@@ -38,6 +37,7 @@ public class visiteur_medicaux {
 | 
				
			|||||||
    
 | 
					    
 | 
				
			||||||
    //LES GETTEUR
 | 
					    //LES GETTEUR
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
 | 
					     * Guetteur de l'id du visiteur m<>dical
 | 
				
			||||||
     * @return the id
 | 
					     * @return the id
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public int getId() {
 | 
					    public int getId() {
 | 
				
			||||||
@@ -45,6 +45,7 @@ public class visiteur_medicaux {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
 | 
					     * Guetteur du nom du visiteur m<>dical
 | 
				
			||||||
     * @return the nom
 | 
					     * @return the nom
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public String getNom() {
 | 
					    public String getNom() {
 | 
				
			||||||
@@ -52,17 +53,11 @@ public class visiteur_medicaux {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
 | 
					     * Guetteur du pr<70>nom du visiteur m<>dical
 | 
				
			||||||
     * @return the prenom
 | 
					     * @return the prenom
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public String getPrenom() {
 | 
					    public String getPrenom() {
 | 
				
			||||||
        return prenom;
 | 
					        return prenom;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					 | 
				
			||||||
     * @return the region
 | 
					 | 
				
			||||||
     */
 | 
					 | 
				
			||||||
    public String getRegion() {
 | 
					 | 
				
			||||||
        return region;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,10 +18,19 @@ public class MedicamentSQL {
 | 
				
			|||||||
    private Statement stmt = 	null;
 | 
					    private Statement stmt = 	null;
 | 
				
			||||||
    private ResultSet result = 	null;
 | 
					    private ResultSet result = 	null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * Constructeur de la classe m<>dicamentSQL
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
    public MedicamentSQL() {
 | 
					    public MedicamentSQL() {
 | 
				
			||||||
        connexionTest = connexionSQL.getConnect("10.121.38.75","bdgsb","adminGSB","mdpGSB");
 | 
					        connexionTest = connexionSQL.getConnect("10.121.38.69","bdgsb","appliGSB","(Uq1XV0Tr01s2H9Z");
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * M<>thode permettant la recherche d'un m<>dicament dans une base donn<6E>es
 | 
				
			||||||
 | 
					     * suivant le nom commercial de celui-ci
 | 
				
			||||||
 | 
					     * @param nomCo 
 | 
				
			||||||
 | 
					     * @return ArrayList<String> infoMedoc avec toutes les informations du m<>dicament
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
    public ArrayList<String> rechercherMedicament (String nomCo){
 | 
					    public ArrayList<String> rechercherMedicament (String nomCo){
 | 
				
			||||||
        ArrayList<String> infoMedoc = new ArrayList<String>();
 | 
					        ArrayList<String> infoMedoc = new ArrayList<String>();
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -10,7 +10,7 @@ public class connexionSQL {
 | 
				
			|||||||
    private static Connection connect;      // Variable de connexion
 | 
					    private static Connection connect;      // Variable de connexion
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  /**
 | 
					  /**
 | 
				
			||||||
   * Constructeur
 | 
					   * Constructeur d'une connexion avec une base de donn<6E>es
 | 
				
			||||||
   * @param serveur     nom du serveur, localhost si local
 | 
					   * @param serveur     nom du serveur, localhost si local
 | 
				
			||||||
   * @param bdd         nom de la base de donn<6E>es
 | 
					   * @param bdd         nom de la base de donn<6E>es
 | 
				
			||||||
   * @param nomUtil     nom utilisateur
 | 
					   * @param nomUtil     nom utilisateur
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -20,8 +20,11 @@ public class familleMedocSQL {
 | 
				
			|||||||
    private Statement stmt = 	null;
 | 
					    private Statement stmt = 	null;
 | 
				
			||||||
    private ResultSet result = 	null;
 | 
					    private ResultSet result = 	null;
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * Constructeur de la classe familleMedocSQL
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
    public familleMedocSQL(){
 | 
					    public familleMedocSQL(){
 | 
				
			||||||
        connexionTest = connexionSQL.getConnect("10.121.38.75","bdgsb","adminGSB","mdpGSB");
 | 
					        connexionTest = connexionSQL.getConnect("10.121.38.69","bdgsb","appliGSB","(Uq1XV0Tr01s2H9Z");
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    public Vector<String> rechercheFamille(){
 | 
					    public Vector<String> rechercheFamille(){
 | 
				
			||||||
@@ -44,6 +47,12 @@ public class familleMedocSQL {
 | 
				
			|||||||
        return famille;
 | 
					        return famille;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * M<>thode permettant la recherche d'un code de famille de m<>dicament
 | 
				
			||||||
 | 
					     * <20> l'aide d'un libelle
 | 
				
			||||||
 | 
					     * @param libelle nom de la famille de m<>dicament
 | 
				
			||||||
 | 
					     * @return code de la famille de m<>dicament
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
    public String rechercheCodeFamille(String libelle){
 | 
					    public String rechercheCodeFamille(String libelle){
 | 
				
			||||||
        String code = "";  
 | 
					        String code = "";  
 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
@@ -63,6 +72,12 @@ public class familleMedocSQL {
 | 
				
			|||||||
        return code;    
 | 
					        return code;    
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * Methode permettant de rechercher dans une base de donn<6E>es 
 | 
				
			||||||
 | 
					     * les m<>dicaments faisant partie de la m<>me famille gr<67>ce <20> un code de famille
 | 
				
			||||||
 | 
					     * @param libelle
 | 
				
			||||||
 | 
					     * @return Tableau avec tous les noms des m<>dicaments concern<72>s
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
    public Vector<String> rechercherMedocFamille(String libelle){
 | 
					    public Vector<String> rechercherMedocFamille(String libelle){
 | 
				
			||||||
        Vector<String> famille = new Vector<String>();  
 | 
					        Vector<String> famille = new Vector<String>();  
 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,10 +4,12 @@
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
package acces_aux_donnes;
 | 
					package acces_aux_donnes;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import java.lang.reflect.Array;
 | 
				
			||||||
import java.sql.Connection;
 | 
					import java.sql.Connection;
 | 
				
			||||||
import java.sql.ResultSet;
 | 
					import java.sql.ResultSet;
 | 
				
			||||||
import java.sql.SQLException;
 | 
					import java.sql.SQLException;
 | 
				
			||||||
import java.sql.Statement;
 | 
					import java.sql.Statement;
 | 
				
			||||||
 | 
					import java.util.ArrayList;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
@@ -18,10 +20,18 @@ public class observationSQL {
 | 
				
			|||||||
    private Statement stmt = 	null;
 | 
					    private Statement stmt = 	null;
 | 
				
			||||||
    private ResultSet result = 	null;
 | 
					    private ResultSet result = 	null;
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * Constructeur de observationSQL
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
    public observationSQL() {
 | 
					    public observationSQL() {
 | 
				
			||||||
        connexionTest = connexionSQL.getConnect("10.121.38.75","bdgsb","adminGSB","mdpGSB");
 | 
					        connexionTest = connexionSQL.getConnect("10.121.38.69","bdgsb","appliGSB","(Uq1XV0Tr01s2H9Z");
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * M<>thode permettant de compter le nombre d'observations 
 | 
				
			||||||
 | 
					     * pr<70>sente dans la Table observation 
 | 
				
			||||||
 | 
					     * @return nombre de lignes
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
    public int compterLignes(){
 | 
					    public int compterLignes(){
 | 
				
			||||||
        int nbLignes = 0;
 | 
					        int nbLignes = 0;
 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
@@ -41,7 +51,13 @@ public class observationSQL {
 | 
				
			|||||||
        return nbLignes;
 | 
					        return nbLignes;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * M<>thode permattant d'inserer dans la base de donn<6E>es une nouvelle observation
 | 
				
			||||||
 | 
					     * @param idMedoc
 | 
				
			||||||
 | 
					     * @param idPraticien
 | 
				
			||||||
 | 
					     * @param observation
 | 
				
			||||||
 | 
					     * @return int
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
    public int ajouterObservation(String idMedoc, int idPraticien, String observation){
 | 
					    public int ajouterObservation(String idMedoc, int idPraticien, String observation){
 | 
				
			||||||
        int passer = 1000;
 | 
					        int passer = 1000;
 | 
				
			||||||
        int nbLignes = this.compterLignes();
 | 
					        int nbLignes = this.compterLignes();
 | 
				
			||||||
@@ -60,4 +76,26 @@ public class observationSQL {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
        return passer;
 | 
					        return passer;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * M<>thode permettant de s<>lectionner les observations se rapportant au m<>dicament s<>lectionn<6E>
 | 
				
			||||||
 | 
					     * @param idMedoc
 | 
				
			||||||
 | 
					     * @return Tableau des diff<66>rentes observations
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public ArrayList<String> selectionObservation(String idMedoc){
 | 
				
			||||||
 | 
					        ArrayList<String> observationMedoc = new ArrayList<String>();
 | 
				
			||||||
 | 
					        try {
 | 
				
			||||||
 | 
					            stmt = connexionTest.createStatement();
 | 
				
			||||||
 | 
					            // Acc<63>s <20> la table 
 | 
				
			||||||
 | 
					            result = stmt.executeQuery("SELECT observation FROM OBSERVATION WHERE idMedoc ='" + idMedoc +"';");
 | 
				
			||||||
 | 
					            while (result.next()){
 | 
				
			||||||
 | 
					                observationMedoc.add(result.getString(1));
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }catch(SQLException ex) {
 | 
				
			||||||
 | 
					              System.out.println("SQLException : " + ex.getMessage());
 | 
				
			||||||
 | 
					              System.out.println("SQLState : " + ex.getSQLState());
 | 
				
			||||||
 | 
					              System.out.println("Code erreur : " + ex.getErrorCode());  
 | 
				
			||||||
 | 
					        }     
 | 
				
			||||||
 | 
					        return observationMedoc;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,6 +8,7 @@ import java.sql.Connection;
 | 
				
			|||||||
import java.sql.ResultSet;
 | 
					import java.sql.ResultSet;
 | 
				
			||||||
import java.sql.SQLException;
 | 
					import java.sql.SQLException;
 | 
				
			||||||
import java.sql.Statement;
 | 
					import java.sql.Statement;
 | 
				
			||||||
 | 
					import java.util.ArrayList;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
@@ -18,20 +19,29 @@ public class praticienSQL {
 | 
				
			|||||||
    private Statement stmt = 	null;
 | 
					    private Statement stmt = 	null;
 | 
				
			||||||
    private ResultSet result = 	null;
 | 
					    private ResultSet result = 	null;
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
     public praticienSQL() {
 | 
					    /**
 | 
				
			||||||
        connexionTest = connexionSQL.getConnect("10.121.38.75","bdgsb","adminGSB","mdpGSB");
 | 
					     * Constructeur de praticienSQL
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public praticienSQL() {
 | 
				
			||||||
 | 
					        connexionTest = connexionSQL.getConnect("10.121.38.69","bdgsb","appliGSB","(Uq1XV0Tr01s2H9Z");
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
     
 | 
					    
 | 
				
			||||||
      public String[] rechercherPraticien(String login, String mdp) {
 | 
					    /**
 | 
				
			||||||
        String[] praticienCherche = new String [2];
 | 
					     * M<>thode permattant de rechercher un praticien dans une base de donn<6E>es
 | 
				
			||||||
 | 
					     * @param login
 | 
				
			||||||
 | 
					     * @param mdp
 | 
				
			||||||
 | 
					     * @return Tableau avec les informations du praticien
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public ArrayList<String> rechercherPraticien(String login, String mdp) {
 | 
				
			||||||
 | 
					        ArrayList<String> praticienCherche = new ArrayList<String>();
 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
            stmt = connexionTest.createStatement();
 | 
					            stmt = connexionTest.createStatement();
 | 
				
			||||||
            // Acc<63>s <20> la table 
 | 
					            // Acc<63>s <20> la table 
 | 
				
			||||||
            result = stmt.executeQuery("SELECT * FROM PRATICIENLOG WHERE id='"+login+
 | 
					            result = stmt.executeQuery("SELECT * FROM PRATICIENLOG WHERE id='"+login+
 | 
				
			||||||
                    "' AND mdp='"+mdp + "';");
 | 
					                    "' AND mdp='"+mdp + "';");
 | 
				
			||||||
            if (result.next()) {   // Le praticien a <20>t<EFBFBD> touv<75>
 | 
					            if (result.next()) {   // Le praticien a <20>t<EFBFBD> touv<75>
 | 
				
			||||||
               praticienCherche[0] = result.getString(1);
 | 
					               praticienCherche.add(result.getString(1));
 | 
				
			||||||
               praticienCherche[1] = result.getString(2);
 | 
					               praticienCherche.add(result.getString(2));
 | 
				
			||||||
                
 | 
					                
 | 
				
			||||||
            } 
 | 
					            } 
 | 
				
			||||||
            result.close();
 | 
					            result.close();
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										54
									
								
								GSBapplication/src/acces_aux_donnes/visiteurSQL.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										54
									
								
								GSBapplication/src/acces_aux_donnes/visiteurSQL.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 acces_aux_donnes;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import java.sql.Connection;
 | 
				
			||||||
 | 
					import java.sql.ResultSet;
 | 
				
			||||||
 | 
					import java.sql.SQLException;
 | 
				
			||||||
 | 
					import java.sql.Statement;
 | 
				
			||||||
 | 
					import java.util.ArrayList;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * @author medhi.rodrigues
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					public class visiteurSQL { 
 | 
				
			||||||
 | 
					     private Connection connexionTest;
 | 
				
			||||||
 | 
					    private Statement stmt = 	null;
 | 
				
			||||||
 | 
					    private ResultSet result = 	null;
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * Constructeur de visiteurSQL
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public visiteurSQL() {
 | 
				
			||||||
 | 
					        connexionTest = connexionSQL.getConnect("10.121.38.69","bdgsb","appliGSB","(Uq1XV0Tr01s2H9Z");
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					     
 | 
				
			||||||
 | 
					      public ArrayList<String> rechercherVisiteur(String login, String mdp) {
 | 
				
			||||||
 | 
					        ArrayList<String> visiteurCherche = new ArrayList<String>();
 | 
				
			||||||
 | 
					        try {
 | 
				
			||||||
 | 
					            stmt = connexionTest.createStatement();
 | 
				
			||||||
 | 
					            // Acc<63>s <20> la table 
 | 
				
			||||||
 | 
					            
 | 
				
			||||||
 | 
					            result = stmt.executeQuery("SELECT * FROM VISITEUR WHERE vNom='"+login+
 | 
				
			||||||
 | 
					                    "' AND vMdp='"+mdp + "';");
 | 
				
			||||||
 | 
					            
 | 
				
			||||||
 | 
					            if (result.next()) {   // Le praticien a <20>t<EFBFBD> touv<75>
 | 
				
			||||||
 | 
					                visiteurCherche.add(result.getString(1));
 | 
				
			||||||
 | 
					                visiteurCherche.add(result.getString(2));
 | 
				
			||||||
 | 
					                System.out.println(visiteurCherche.add(result.getString(1)));
 | 
				
			||||||
 | 
					                
 | 
				
			||||||
 | 
					            } 
 | 
				
			||||||
 | 
					            result.close();
 | 
				
			||||||
 | 
					            stmt.close();
 | 
				
			||||||
 | 
					        } catch (SQLException ex) {
 | 
				
			||||||
 | 
					              System.out.println("SQLException : " + ex.getMessage());
 | 
				
			||||||
 | 
					              System.out.println("SQLState : " + ex.getSQLState());
 | 
				
			||||||
 | 
					              System.out.println("Code erreur : " + ex.getErrorCode());  
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					         return visiteurCherche;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -5,6 +5,9 @@
 | 
				
			|||||||
package presentation;
 | 
					package presentation;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import acces_aux_donnes.praticienSQL;
 | 
					import acces_aux_donnes.praticienSQL;
 | 
				
			||||||
 | 
					import acces_aux_donnes.visiteurSQL;
 | 
				
			||||||
 | 
					import java.util.ArrayList;
 | 
				
			||||||
 | 
					import javax.swing.JOptionPane;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
@@ -156,15 +159,32 @@ public class jffConnexion extends javax.swing.JFrame {
 | 
				
			|||||||
    }//GEN-LAST:event_jPFmdpActionPerformed
 | 
					    }//GEN-LAST:event_jPFmdpActionPerformed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    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();
 | 
					        if(this.profession == 0){    
 | 
				
			||||||
        String mdp = String.valueOf(jPFmdp.getPassword());
 | 
					            String identifiant = jTFIdentifiant.getText();
 | 
				
			||||||
        praticienSQL testPraticien = new praticienSQL();
 | 
					            String mdp = String.valueOf(jPFmdp.getPassword());
 | 
				
			||||||
        String [] lePraticien = testPraticien.rechercherPraticien(identifiant,mdp);
 | 
					            praticienSQL testPraticien = new praticienSQL();
 | 
				
			||||||
        if (lePraticien[0] != null){
 | 
					            ArrayList<String>lePraticien = testPraticien.rechercherPraticien(identifiant,mdp);
 | 
				
			||||||
            System.out.print("TEST REUSSIE");
 | 
					            if (!lePraticien.isEmpty()){
 | 
				
			||||||
        }else {
 | 
					                new jffFamilleMedoc(this.profession).setVisible(true);
 | 
				
			||||||
            System.out.print("TEST EMILE RACISTE");
 | 
					            }else {
 | 
				
			||||||
        } 
 | 
					                JOptionPane.showMessageDialog(null,"Erreur de connexion, Veuillez recommencer");
 | 
				
			||||||
 | 
					            } 
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        }else{
 | 
				
			||||||
 | 
					            String identifiant = jTFIdentifiant.getText();
 | 
				
			||||||
 | 
					            String mdp = String.valueOf(jPFmdp.getPassword());
 | 
				
			||||||
 | 
					            visiteurSQL testVisiteur = new visiteurSQL();
 | 
				
			||||||
 | 
					            ArrayList<String>leVisiteur = testVisiteur.rechercherVisiteur(identifiant,mdp);
 | 
				
			||||||
 | 
					            System.out.println(leVisiteur.get(0));
 | 
				
			||||||
 | 
					            if (leVisiteur.get(0) != null){
 | 
				
			||||||
 | 
					                new jffFamilleMedoc(this.profession).setVisible(true);
 | 
				
			||||||
 | 
					            }else {
 | 
				
			||||||
 | 
					                leVisiteur.add("12");
 | 
				
			||||||
 | 
					                //JOptionPane.showMessageDialog(null,"Erreur de connexion, Veuillez recommencer");
 | 
				
			||||||
 | 
					                
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        this.setVisible(false);
 | 
				
			||||||
    }//GEN-LAST:event_jBValiderActionPerformed
 | 
					    }//GEN-LAST:event_jBValiderActionPerformed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
@@ -197,7 +217,6 @@ public class jffConnexion extends javax.swing.JFrame {
 | 
				
			|||||||
        /* Create and display the form */
 | 
					        /* Create and display the form */
 | 
				
			||||||
        java.awt.EventQueue.invokeLater(new Runnable() {
 | 
					        java.awt.EventQueue.invokeLater(new Runnable() {
 | 
				
			||||||
            public void run() {
 | 
					            public void run() {
 | 
				
			||||||
                new jffConnexion(1).setVisible(true);
 | 
					 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,10 +1,60 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="UTF-8" ?>
 | 
					<?xml version="1.0" encoding="UTF-8" ?>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
 | 
					<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
 | 
				
			||||||
 | 
					  <NonVisualComponents>
 | 
				
			||||||
 | 
					    <Menu class="javax.swing.JMenuBar" name="jMenuBar1">
 | 
				
			||||||
 | 
					      <SubComponents>
 | 
				
			||||||
 | 
					        <Menu class="javax.swing.JMenu" name="jMPage">
 | 
				
			||||||
 | 
					          <Properties>
 | 
				
			||||||
 | 
					            <Property name="text" type="java.lang.String" value="Page"/>
 | 
				
			||||||
 | 
					          </Properties>
 | 
				
			||||||
 | 
					          <SubComponents>
 | 
				
			||||||
 | 
					            <MenuItem class="javax.swing.JMenuItem" name="jMIProfession">
 | 
				
			||||||
 | 
					              <Properties>
 | 
				
			||||||
 | 
					                <Property name="text" type="java.lang.String" value="Choix Métier"/>
 | 
				
			||||||
 | 
					              </Properties>
 | 
				
			||||||
 | 
					              <Events>
 | 
				
			||||||
 | 
					                <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMIProfessionActionPerformed"/>
 | 
				
			||||||
 | 
					              </Events>
 | 
				
			||||||
 | 
					            </MenuItem>
 | 
				
			||||||
 | 
					            <MenuItem class="javax.swing.JMenuItem" name="jMIFamille">
 | 
				
			||||||
 | 
					              <Properties>
 | 
				
			||||||
 | 
					                <Property name="text" type="java.lang.String" value="Famille Medicament"/>
 | 
				
			||||||
 | 
					              </Properties>
 | 
				
			||||||
 | 
					              <Events>
 | 
				
			||||||
 | 
					                <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMIFamilleActionPerformed"/>
 | 
				
			||||||
 | 
					              </Events>
 | 
				
			||||||
 | 
					            </MenuItem>
 | 
				
			||||||
 | 
					          </SubComponents>
 | 
				
			||||||
 | 
					        </Menu>
 | 
				
			||||||
 | 
					        <Menu class="javax.swing.JMenu" name="jMInfo">
 | 
				
			||||||
 | 
					          <Properties>
 | 
				
			||||||
 | 
					            <Property name="text" type="java.lang.String" value="Info"/>
 | 
				
			||||||
 | 
					          </Properties>
 | 
				
			||||||
 | 
					          <SubComponents>
 | 
				
			||||||
 | 
					            <MenuItem class="javax.swing.JMenuItem" name="jMIguide">
 | 
				
			||||||
 | 
					              <Properties>
 | 
				
			||||||
 | 
					                <Property name="text" type="java.lang.String" value="Guide"/>
 | 
				
			||||||
 | 
					              </Properties>
 | 
				
			||||||
 | 
					              <Events>
 | 
				
			||||||
 | 
					                <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMIguideActionPerformed"/>
 | 
				
			||||||
 | 
					              </Events>
 | 
				
			||||||
 | 
					            </MenuItem>
 | 
				
			||||||
 | 
					            <MenuItem class="javax.swing.JMenuItem" name="jMcredit">
 | 
				
			||||||
 | 
					              <Properties>
 | 
				
			||||||
 | 
					                <Property name="text" type="java.lang.String" value="Crédit"/>
 | 
				
			||||||
 | 
					              </Properties>
 | 
				
			||||||
 | 
					            </MenuItem>
 | 
				
			||||||
 | 
					          </SubComponents>
 | 
				
			||||||
 | 
					        </Menu>
 | 
				
			||||||
 | 
					      </SubComponents>
 | 
				
			||||||
 | 
					    </Menu>
 | 
				
			||||||
 | 
					  </NonVisualComponents>
 | 
				
			||||||
  <Properties>
 | 
					  <Properties>
 | 
				
			||||||
    <Property name="defaultCloseOperation" type="int" value="3"/>
 | 
					    <Property name="defaultCloseOperation" type="int" value="3"/>
 | 
				
			||||||
  </Properties>
 | 
					  </Properties>
 | 
				
			||||||
  <SyntheticProperties>
 | 
					  <SyntheticProperties>
 | 
				
			||||||
 | 
					    <SyntheticProperty name="menuBar" type="java.lang.String" value="jMenuBar1"/>
 | 
				
			||||||
    <SyntheticProperty name="formSizePolicy" type="int" value="1"/>
 | 
					    <SyntheticProperty name="formSizePolicy" type="int" value="1"/>
 | 
				
			||||||
    <SyntheticProperty name="generateCenter" type="boolean" value="false"/>
 | 
					    <SyntheticProperty name="generateCenter" type="boolean" value="false"/>
 | 
				
			||||||
  </SyntheticProperties>
 | 
					  </SyntheticProperties>
 | 
				
			||||||
@@ -75,7 +125,7 @@
 | 
				
			|||||||
                  <Component id="jCBFamille" alignment="3" min="-2" max="-2" attributes="0"/>
 | 
					                  <Component id="jCBFamille" alignment="3" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
                  <Component id="jCBMedocListe" alignment="3" min="-2" max="-2" attributes="0"/>
 | 
					                  <Component id="jCBMedocListe" alignment="3" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
              </Group>
 | 
					              </Group>
 | 
				
			||||||
              <EmptySpace pref="287" max="32767" attributes="0"/>
 | 
					              <EmptySpace pref="264" max="32767" attributes="0"/>
 | 
				
			||||||
          </Group>
 | 
					          </Group>
 | 
				
			||||||
      </Group>
 | 
					      </Group>
 | 
				
			||||||
    </DimensionLayout>
 | 
					    </DimensionLayout>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -10,17 +10,19 @@ import acces_aux_donnes.familleMedocSQL;
 | 
				
			|||||||
import java.util.ArrayList;
 | 
					import java.util.ArrayList;
 | 
				
			||||||
import java.util.Vector;
 | 
					import java.util.Vector;
 | 
				
			||||||
import javax.swing.DefaultComboBoxModel;
 | 
					import javax.swing.DefaultComboBoxModel;
 | 
				
			||||||
 | 
					import javax.swing.JOptionPane;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * @author emile.lalorcey
 | 
					 * @author emile.lalorcey
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
public class jffFamilleMedoc extends javax.swing.JFrame {
 | 
					public class jffFamilleMedoc extends javax.swing.JFrame {
 | 
				
			||||||
 | 
					    int metier;
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Creates new form jffFamilleMedoc
 | 
					     * Creates new form jffFamilleMedoc
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public jffFamilleMedoc() {
 | 
					    public jffFamilleMedoc(int metier) {
 | 
				
			||||||
 | 
					        this.metier = metier;
 | 
				
			||||||
        initComponents();
 | 
					        initComponents();
 | 
				
			||||||
        familleMedocSQL famille = new familleMedocSQL();
 | 
					        familleMedocSQL famille = new familleMedocSQL();
 | 
				
			||||||
        jCBFamille.setModel(new DefaultComboBoxModel(famille.rechercheFamille()));
 | 
					        jCBFamille.setModel(new DefaultComboBoxModel(famille.rechercheFamille()));
 | 
				
			||||||
@@ -41,6 +43,13 @@ public class jffFamilleMedoc extends javax.swing.JFrame {
 | 
				
			|||||||
        jBRechercheValide = new javax.swing.JButton();
 | 
					        jBRechercheValide = new javax.swing.JButton();
 | 
				
			||||||
        jCBFamille = new javax.swing.JComboBox<>();
 | 
					        jCBFamille = new javax.swing.JComboBox<>();
 | 
				
			||||||
        jCBMedocListe = new javax.swing.JComboBox<>();
 | 
					        jCBMedocListe = new javax.swing.JComboBox<>();
 | 
				
			||||||
 | 
					        jMenuBar1 = new javax.swing.JMenuBar();
 | 
				
			||||||
 | 
					        jMPage = new javax.swing.JMenu();
 | 
				
			||||||
 | 
					        jMIProfession = new javax.swing.JMenuItem();
 | 
				
			||||||
 | 
					        jMIFamille = new javax.swing.JMenuItem();
 | 
				
			||||||
 | 
					        jMInfo = new javax.swing.JMenu();
 | 
				
			||||||
 | 
					        jMIguide = new javax.swing.JMenuItem();
 | 
				
			||||||
 | 
					        jMcredit = new javax.swing.JMenuItem();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
 | 
					        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -75,6 +84,43 @@ public class jffFamilleMedoc extends javax.swing.JFrame {
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jMPage.setText("Page");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jMIProfession.setText("Choix M<>tier");
 | 
				
			||||||
 | 
					        jMIProfession.addActionListener(new java.awt.event.ActionListener() {
 | 
				
			||||||
 | 
					            public void actionPerformed(java.awt.event.ActionEvent evt) {
 | 
				
			||||||
 | 
					                jMIProfessionActionPerformed(evt);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					        jMPage.add(jMIProfession);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jMIFamille.setText("Famille Medicament");
 | 
				
			||||||
 | 
					        jMIFamille.addActionListener(new java.awt.event.ActionListener() {
 | 
				
			||||||
 | 
					            public void actionPerformed(java.awt.event.ActionEvent evt) {
 | 
				
			||||||
 | 
					                jMIFamilleActionPerformed(evt);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					        jMPage.add(jMIFamille);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jMenuBar1.add(jMPage);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jMInfo.setText("Info");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jMIguide.setText("Guide");
 | 
				
			||||||
 | 
					        jMIguide.addActionListener(new java.awt.event.ActionListener() {
 | 
				
			||||||
 | 
					            public void actionPerformed(java.awt.event.ActionEvent evt) {
 | 
				
			||||||
 | 
					                jMIguideActionPerformed(evt);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					        jMInfo.add(jMIguide);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jMcredit.setText("Cr<EFBFBD>dit");
 | 
				
			||||||
 | 
					        jMInfo.add(jMcredit);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jMenuBar1.add(jMInfo);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        setJMenuBar(jMenuBar1);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
 | 
					        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
 | 
				
			||||||
        getContentPane().setLayout(layout);
 | 
					        getContentPane().setLayout(layout);
 | 
				
			||||||
        layout.setHorizontalGroup(
 | 
					        layout.setHorizontalGroup(
 | 
				
			||||||
@@ -118,7 +164,7 @@ public class jffFamilleMedoc extends javax.swing.JFrame {
 | 
				
			|||||||
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
 | 
					                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
 | 
				
			||||||
                    .addComponent(jCBFamille, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
					                    .addComponent(jCBFamille, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
                    .addComponent(jCBMedocListe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
 | 
					                    .addComponent(jCBMedocListe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
 | 
				
			||||||
                .addContainerGap(287, Short.MAX_VALUE))
 | 
					                .addContainerGap(264, Short.MAX_VALUE))
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        pack();
 | 
					        pack();
 | 
				
			||||||
@@ -142,11 +188,11 @@ public class jffFamilleMedoc extends javax.swing.JFrame {
 | 
				
			|||||||
            String contreIndicationTrouve = rechercheMedoc.get(4);
 | 
					            String contreIndicationTrouve = rechercheMedoc.get(4);
 | 
				
			||||||
            String imgTrouve = idTrouve;
 | 
					            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, this.metier).setVisible(true);
 | 
				
			||||||
       
 | 
					       
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
        }else {
 | 
					        }else {
 | 
				
			||||||
            //ajout d'un JoptionPane
 | 
					           JOptionPane.showMessageDialog(null,"Veuillez choisir un m<>dicament valide");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }//GEN-LAST:event_jBRechercheValideActionPerformed
 | 
					    }//GEN-LAST:event_jBRechercheValideActionPerformed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -177,10 +223,24 @@ public class jffFamilleMedoc extends javax.swing.JFrame {
 | 
				
			|||||||
            String contreIndicationTrouve = rechercheMedoc.get(4);
 | 
					            String contreIndicationTrouve = rechercheMedoc.get(4);
 | 
				
			||||||
            String imgTrouve = idTrouve;
 | 
					            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, this.metier).setVisible(true);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }//GEN-LAST:event_jCBMedocListeActionPerformed
 | 
					    }//GEN-LAST:event_jCBMedocListeActionPerformed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private void jMIProfessionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMIProfessionActionPerformed
 | 
				
			||||||
 | 
					        new jffProfession().setVisible(true);
 | 
				
			||||||
 | 
					        this.setVisible(false);
 | 
				
			||||||
 | 
					    }//GEN-LAST:event_jMIProfessionActionPerformed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private void jMIguideActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMIguideActionPerformed
 | 
				
			||||||
 | 
					        // TODO add your handling code here:
 | 
				
			||||||
 | 
					    }//GEN-LAST:event_jMIguideActionPerformed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private void jMIFamilleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMIFamilleActionPerformed
 | 
				
			||||||
 | 
					        new jffFamilleMedoc(this.metier).setVisible(true);
 | 
				
			||||||
 | 
					        this.setVisible(false);
 | 
				
			||||||
 | 
					    }//GEN-LAST:event_jMIFamilleActionPerformed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * @param args the command line arguments
 | 
					     * @param args the command line arguments
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
@@ -211,7 +271,6 @@ public class jffFamilleMedoc extends javax.swing.JFrame {
 | 
				
			|||||||
        /* Create and display the form */
 | 
					        /* Create and display the form */
 | 
				
			||||||
        java.awt.EventQueue.invokeLater(new Runnable() {
 | 
					        java.awt.EventQueue.invokeLater(new Runnable() {
 | 
				
			||||||
            public void run() {
 | 
					            public void run() {
 | 
				
			||||||
                new jffFamilleMedoc().setVisible(true);
 | 
					 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@@ -222,6 +281,13 @@ public class jffFamilleMedoc extends javax.swing.JFrame {
 | 
				
			|||||||
    private javax.swing.JComboBox<String> jCBMedocListe;
 | 
					    private javax.swing.JComboBox<String> jCBMedocListe;
 | 
				
			||||||
    private javax.swing.JLabel jLRecherche;
 | 
					    private javax.swing.JLabel jLRecherche;
 | 
				
			||||||
    private javax.swing.JLabel jLabel1;
 | 
					    private javax.swing.JLabel jLabel1;
 | 
				
			||||||
 | 
					    private javax.swing.JMenuItem jMIFamille;
 | 
				
			||||||
 | 
					    private javax.swing.JMenuItem jMIProfession;
 | 
				
			||||||
 | 
					    private javax.swing.JMenuItem jMIguide;
 | 
				
			||||||
 | 
					    private javax.swing.JMenu jMInfo;
 | 
				
			||||||
 | 
					    private javax.swing.JMenu jMPage;
 | 
				
			||||||
 | 
					    private javax.swing.JMenuItem jMcredit;
 | 
				
			||||||
 | 
					    private javax.swing.JMenuBar jMenuBar1;
 | 
				
			||||||
    private javax.swing.JTextField jTFRecherche;
 | 
					    private javax.swing.JTextField jTFRecherche;
 | 
				
			||||||
    // End of variables declaration//GEN-END:variables
 | 
					    // End of variables declaration//GEN-END:variables
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,10 +1,78 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="UTF-8" ?>
 | 
					<?xml version="1.0" encoding="UTF-8" ?>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
 | 
					<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
 | 
				
			||||||
 | 
					  <NonVisualComponents>
 | 
				
			||||||
 | 
					    <Menu class="javax.swing.JMenuBar" name="jMenuBar1">
 | 
				
			||||||
 | 
					      <SubComponents>
 | 
				
			||||||
 | 
					        <Menu class="javax.swing.JMenu" name="jMPage">
 | 
				
			||||||
 | 
					          <Properties>
 | 
				
			||||||
 | 
					            <Property name="text" type="java.lang.String" value="Page"/>
 | 
				
			||||||
 | 
					          </Properties>
 | 
				
			||||||
 | 
					          <SubComponents>
 | 
				
			||||||
 | 
					            <MenuItem class="javax.swing.JMenuItem" name="jMIProfession">
 | 
				
			||||||
 | 
					              <Properties>
 | 
				
			||||||
 | 
					                <Property name="text" type="java.lang.String" value="Choix Métier"/>
 | 
				
			||||||
 | 
					              </Properties>
 | 
				
			||||||
 | 
					              <Events>
 | 
				
			||||||
 | 
					                <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMIProfessionActionPerformed"/>
 | 
				
			||||||
 | 
					              </Events>
 | 
				
			||||||
 | 
					            </MenuItem>
 | 
				
			||||||
 | 
					            <MenuItem class="javax.swing.JMenuItem" name="jMIFamille">
 | 
				
			||||||
 | 
					              <Properties>
 | 
				
			||||||
 | 
					                <Property name="text" type="java.lang.String" value="Famille Medicament"/>
 | 
				
			||||||
 | 
					              </Properties>
 | 
				
			||||||
 | 
					              <Events>
 | 
				
			||||||
 | 
					                <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMIFamilleActionPerformed"/>
 | 
				
			||||||
 | 
					              </Events>
 | 
				
			||||||
 | 
					            </MenuItem>
 | 
				
			||||||
 | 
					          </SubComponents>
 | 
				
			||||||
 | 
					        </Menu>
 | 
				
			||||||
 | 
					        <Menu class="javax.swing.JMenu" name="jMObservation">
 | 
				
			||||||
 | 
					          <Properties>
 | 
				
			||||||
 | 
					            <Property name="text" type="java.lang.String" value="Observation"/>
 | 
				
			||||||
 | 
					          </Properties>
 | 
				
			||||||
 | 
					          <Events>
 | 
				
			||||||
 | 
					            <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMObservationActionPerformed"/>
 | 
				
			||||||
 | 
					          </Events>
 | 
				
			||||||
 | 
					          <SubComponents>
 | 
				
			||||||
 | 
					            <MenuItem class="javax.swing.JMenuItem" name="jMIObservation">
 | 
				
			||||||
 | 
					              <Properties>
 | 
				
			||||||
 | 
					                <Property name="text" type="java.lang.String" value="jMenuItem3"/>
 | 
				
			||||||
 | 
					              </Properties>
 | 
				
			||||||
 | 
					              <Events>
 | 
				
			||||||
 | 
					                <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMIObservationActionPerformed"/>
 | 
				
			||||||
 | 
					              </Events>
 | 
				
			||||||
 | 
					            </MenuItem>
 | 
				
			||||||
 | 
					          </SubComponents>
 | 
				
			||||||
 | 
					        </Menu>
 | 
				
			||||||
 | 
					        <Menu class="javax.swing.JMenu" name="jMInfo">
 | 
				
			||||||
 | 
					          <Properties>
 | 
				
			||||||
 | 
					            <Property name="text" type="java.lang.String" value="Info"/>
 | 
				
			||||||
 | 
					          </Properties>
 | 
				
			||||||
 | 
					          <SubComponents>
 | 
				
			||||||
 | 
					            <MenuItem class="javax.swing.JMenuItem" name="jMIguide">
 | 
				
			||||||
 | 
					              <Properties>
 | 
				
			||||||
 | 
					                <Property name="text" type="java.lang.String" value="Guide"/>
 | 
				
			||||||
 | 
					              </Properties>
 | 
				
			||||||
 | 
					              <Events>
 | 
				
			||||||
 | 
					                <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMIguideActionPerformed"/>
 | 
				
			||||||
 | 
					              </Events>
 | 
				
			||||||
 | 
					            </MenuItem>
 | 
				
			||||||
 | 
					            <MenuItem class="javax.swing.JMenuItem" name="jMcredit">
 | 
				
			||||||
 | 
					              <Properties>
 | 
				
			||||||
 | 
					                <Property name="text" type="java.lang.String" value="Crédit"/>
 | 
				
			||||||
 | 
					              </Properties>
 | 
				
			||||||
 | 
					            </MenuItem>
 | 
				
			||||||
 | 
					          </SubComponents>
 | 
				
			||||||
 | 
					        </Menu>
 | 
				
			||||||
 | 
					      </SubComponents>
 | 
				
			||||||
 | 
					    </Menu>
 | 
				
			||||||
 | 
					  </NonVisualComponents>
 | 
				
			||||||
  <Properties>
 | 
					  <Properties>
 | 
				
			||||||
    <Property name="defaultCloseOperation" type="int" value="3"/>
 | 
					    <Property name="defaultCloseOperation" type="int" value="3"/>
 | 
				
			||||||
  </Properties>
 | 
					  </Properties>
 | 
				
			||||||
  <SyntheticProperties>
 | 
					  <SyntheticProperties>
 | 
				
			||||||
 | 
					    <SyntheticProperty name="menuBar" type="java.lang.String" value="jMenuBar1"/>
 | 
				
			||||||
    <SyntheticProperty name="formSizePolicy" type="int" value="1"/>
 | 
					    <SyntheticProperty name="formSizePolicy" type="int" value="1"/>
 | 
				
			||||||
    <SyntheticProperty name="generateCenter" type="boolean" value="false"/>
 | 
					    <SyntheticProperty name="generateCenter" type="boolean" value="false"/>
 | 
				
			||||||
  </SyntheticProperties>
 | 
					  </SyntheticProperties>
 | 
				
			||||||
@@ -23,7 +91,7 @@
 | 
				
			|||||||
  <Layout>
 | 
					  <Layout>
 | 
				
			||||||
    <DimensionLayout dim="0">
 | 
					    <DimensionLayout dim="0">
 | 
				
			||||||
      <Group type="103" groupAlignment="0" attributes="0">
 | 
					      <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
          <Group type="102" attributes="0">
 | 
					          <Group type="102" alignment="0" attributes="0">
 | 
				
			||||||
              <EmptySpace max="-2" attributes="0"/>
 | 
					              <EmptySpace max="-2" attributes="0"/>
 | 
				
			||||||
              <Component id="jPFond" max="32767" attributes="0"/>
 | 
					              <Component id="jPFond" max="32767" attributes="0"/>
 | 
				
			||||||
              <EmptySpace max="-2" attributes="0"/>
 | 
					              <EmptySpace max="-2" attributes="0"/>
 | 
				
			||||||
@@ -33,8 +101,9 @@
 | 
				
			|||||||
    <DimensionLayout dim="1">
 | 
					    <DimensionLayout dim="1">
 | 
				
			||||||
      <Group type="103" groupAlignment="0" attributes="0">
 | 
					      <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
          <Group type="102" alignment="0" attributes="0">
 | 
					          <Group type="102" alignment="0" attributes="0">
 | 
				
			||||||
 | 
					              <EmptySpace max="-2" attributes="0"/>
 | 
				
			||||||
              <Component id="jPFond" max="32767" attributes="0"/>
 | 
					              <Component id="jPFond" max="32767" attributes="0"/>
 | 
				
			||||||
              <EmptySpace min="-2" pref="16" max="-2" attributes="0"/>
 | 
					              <EmptySpace min="-2" pref="10" max="-2" attributes="0"/>
 | 
				
			||||||
          </Group>
 | 
					          </Group>
 | 
				
			||||||
      </Group>
 | 
					      </Group>
 | 
				
			||||||
    </DimensionLayout>
 | 
					    </DimensionLayout>
 | 
				
			||||||
@@ -46,77 +115,83 @@
 | 
				
			|||||||
        <DimensionLayout dim="0">
 | 
					        <DimensionLayout dim="0">
 | 
				
			||||||
          <Group type="103" groupAlignment="0" attributes="0">
 | 
					          <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
              <Group type="102" attributes="0">
 | 
					              <Group type="102" attributes="0">
 | 
				
			||||||
 | 
					                  <Component id="jSeparator1" max="32767" attributes="0"/>
 | 
				
			||||||
 | 
					                  <EmptySpace max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					              </Group>
 | 
				
			||||||
 | 
					              <Group type="102" attributes="0">
 | 
				
			||||||
 | 
					                  <EmptySpace max="-2" attributes="0"/>
 | 
				
			||||||
                  <Group type="103" groupAlignment="0" attributes="0">
 | 
					                  <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
                      <Component id="jSeparator1" alignment="1" max="32767" attributes="0"/>
 | 
					                      <Group type="102" attributes="0">
 | 
				
			||||||
 | 
					                          <Component id="jLContrindication" max="32767" attributes="0"/>
 | 
				
			||||||
 | 
					                          <EmptySpace max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                          <Component id="jLEffet" min="-2" pref="391" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                          <EmptySpace max="32767" attributes="0"/>
 | 
				
			||||||
 | 
					                      </Group>
 | 
				
			||||||
                      <Group type="102" attributes="0">
 | 
					                      <Group type="102" attributes="0">
 | 
				
			||||||
                          <Group type="103" groupAlignment="0" attributes="0">
 | 
					                          <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
 | 
					                              <Component id="jPanel1" alignment="0" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
                              <Group type="102" alignment="0" attributes="0">
 | 
					                              <Group type="102" alignment="0" attributes="0">
 | 
				
			||||||
                                  <EmptySpace max="-2" attributes="0"/>
 | 
					                                  <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
                                  <Group type="103" groupAlignment="1" attributes="0">
 | 
					 | 
				
			||||||
                                      <Group type="102" alignment="1" attributes="0">
 | 
					                                      <Group type="102" alignment="1" attributes="0">
 | 
				
			||||||
                                          <Component id="jLContrindication" max="32767" attributes="0"/>
 | 
					                                          <Component id="jLComposition" min="-2" pref="265" max="-2" attributes="0"/>
 | 
				
			||||||
                                          <EmptySpace max="-2" attributes="0"/>
 | 
					                                          <EmptySpace min="-2" pref="140" max="-2" attributes="0"/>
 | 
				
			||||||
                                          <Component id="jLEffet" min="-2" pref="166" max="-2" attributes="0"/>
 | 
					 | 
				
			||||||
                                      </Group>
 | 
					                                      </Group>
 | 
				
			||||||
                                      <Group type="102" alignment="1" attributes="0">
 | 
					                                      <Group type="102" alignment="0" attributes="0">
 | 
				
			||||||
                                          <Group type="103" groupAlignment="0" attributes="0">
 | 
					                                          <EmptySpace min="-2" pref="183" max="-2" attributes="0"/>
 | 
				
			||||||
                                              <Group type="102" alignment="1" attributes="0">
 | 
					                                          <Component id="jLNomCo" min="-2" pref="144" max="-2" attributes="0"/>
 | 
				
			||||||
                                                  <Component id="jLComposition" min="-2" pref="265" max="-2" attributes="0"/>
 | 
					                                          <EmptySpace min="-2" pref="78" max="-2" attributes="0"/>
 | 
				
			||||||
                                                  <EmptySpace min="-2" pref="140" max="-2" attributes="0"/>
 | 
					 | 
				
			||||||
                                              </Group>
 | 
					 | 
				
			||||||
                                              <Group type="102" alignment="0" attributes="0">
 | 
					 | 
				
			||||||
                                                  <EmptySpace min="-2" pref="183" max="-2" attributes="0"/>
 | 
					 | 
				
			||||||
                                                  <Component id="jLNomCo" min="-2" pref="144" max="-2" attributes="0"/>
 | 
					 | 
				
			||||||
                                                  <EmptySpace min="-2" pref="78" max="-2" attributes="0"/>
 | 
					 | 
				
			||||||
                                              </Group>
 | 
					 | 
				
			||||||
                                          </Group>
 | 
					 | 
				
			||||||
                                          <Component id="jLImage" min="-2" pref="157" max="-2" attributes="0"/>
 | 
					 | 
				
			||||||
                                          <EmptySpace min="-2" pref="38" max="-2" attributes="0"/>
 | 
					 | 
				
			||||||
                                      </Group>
 | 
					                                      </Group>
 | 
				
			||||||
                                  </Group>
 | 
					                                  </Group>
 | 
				
			||||||
                              </Group>
 | 
					                                  <Component id="jLImage" min="-2" pref="157" max="-2" attributes="0"/>
 | 
				
			||||||
                              <Group type="102" alignment="0" attributes="0">
 | 
					 | 
				
			||||||
                                  <EmptySpace min="-2" pref="168" max="-2" attributes="0"/>
 | 
					 | 
				
			||||||
                                  <Component id="jLNomMedoc" min="-2" max="-2" attributes="0"/>
 | 
					 | 
				
			||||||
                              </Group>
 | 
					                              </Group>
 | 
				
			||||||
                          </Group>
 | 
					                          </Group>
 | 
				
			||||||
                          <EmptySpace min="0" pref="163" max="32767" attributes="0"/>
 | 
					                          <EmptySpace max="32767" attributes="0"/>
 | 
				
			||||||
                      </Group>
 | 
					                      </Group>
 | 
				
			||||||
                  </Group>
 | 
					                  </Group>
 | 
				
			||||||
                  <EmptySpace max="-2" attributes="0"/>
 | 
					              </Group>
 | 
				
			||||||
 | 
					              <Group type="102" alignment="0" attributes="0">
 | 
				
			||||||
 | 
					                  <EmptySpace min="-2" pref="168" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                  <Component id="jLNomMedoc" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                  <EmptySpace pref="300" max="32767" attributes="0"/>
 | 
				
			||||||
 | 
					                  <Component id="jLabel1" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                  <EmptySpace min="-2" pref="267" max="-2" attributes="0"/>
 | 
				
			||||||
              </Group>
 | 
					              </Group>
 | 
				
			||||||
          </Group>
 | 
					          </Group>
 | 
				
			||||||
        </DimensionLayout>
 | 
					        </DimensionLayout>
 | 
				
			||||||
        <DimensionLayout dim="1">
 | 
					        <DimensionLayout dim="1">
 | 
				
			||||||
          <Group type="103" groupAlignment="0" attributes="0">
 | 
					          <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
              <Group type="102" alignment="0" attributes="0">
 | 
					              <Group type="102" alignment="0" attributes="0">
 | 
				
			||||||
                  <EmptySpace max="-2" attributes="0"/>
 | 
					 | 
				
			||||||
                  <Component id="jLNomMedoc" min="-2" max="-2" attributes="0"/>
 | 
					 | 
				
			||||||
                  <EmptySpace type="separate" max="-2" attributes="0"/>
 | 
					 | 
				
			||||||
                  <Group type="103" groupAlignment="0" attributes="0">
 | 
					                  <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
                      <Group type="102" attributes="0">
 | 
					                      <Group type="102" attributes="0">
 | 
				
			||||||
 | 
					                          <EmptySpace max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                          <Component id="jLNomMedoc" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                      </Group>
 | 
				
			||||||
 | 
					                      <Component id="jLabel1" alignment="0" min="-2" pref="42" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                  </Group>
 | 
				
			||||||
 | 
					                  <EmptySpace min="-2" pref="25" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                  <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
 | 
					                      <Group type="102" alignment="0" attributes="0">
 | 
				
			||||||
                          <Component id="jLNomCo" min="-2" pref="37" max="-2" attributes="0"/>
 | 
					                          <Component id="jLNomCo" min="-2" pref="37" max="-2" attributes="0"/>
 | 
				
			||||||
                          <EmptySpace min="-2" pref="28" max="-2" attributes="0"/>
 | 
					                          <EmptySpace min="-2" pref="28" max="-2" attributes="0"/>
 | 
				
			||||||
                          <Component id="jLComposition" min="-2" pref="74" max="-2" attributes="0"/>
 | 
					                          <Component id="jLComposition" min="-2" pref="74" max="-2" attributes="0"/>
 | 
				
			||||||
                          <EmptySpace pref="60" max="32767" attributes="0"/>
 | 
					                          <EmptySpace max="32767" attributes="0"/>
 | 
				
			||||||
                          <Group type="103" groupAlignment="0" attributes="0">
 | 
					                          <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
                              <Group type="102" attributes="0">
 | 
					                              <Group type="102" attributes="0">
 | 
				
			||||||
                                  <Component id="jLContrindication" min="-2" pref="141" max="-2" attributes="0"/>
 | 
					                                  <Component id="jLContrindication" min="-2" pref="141" max="-2" attributes="0"/>
 | 
				
			||||||
                                  <EmptySpace max="32767" attributes="0"/>
 | 
					                                  <EmptySpace max="32767" attributes="0"/>
 | 
				
			||||||
                                  <Component id="jSeparator1" min="-2" pref="10" max="-2" attributes="0"/>
 | 
					                                  <Component id="jSeparator1" min="-2" pref="10" max="-2" attributes="0"/>
 | 
				
			||||||
                                  <EmptySpace min="-2" pref="169" max="-2" attributes="0"/>
 | 
					 | 
				
			||||||
                              </Group>
 | 
					                              </Group>
 | 
				
			||||||
                              <Group type="102" attributes="0">
 | 
					                              <Group type="102" attributes="0">
 | 
				
			||||||
                                  <Component id="jLEffet" min="-2" pref="131" max="-2" attributes="0"/>
 | 
					                                  <Component id="jLEffet" min="-2" pref="131" max="-2" attributes="0"/>
 | 
				
			||||||
                                  <EmptySpace max="32767" attributes="0"/>
 | 
					                                  <EmptySpace min="0" pref="0" max="32767" attributes="0"/>
 | 
				
			||||||
                              </Group>
 | 
					                              </Group>
 | 
				
			||||||
                          </Group>
 | 
					                          </Group>
 | 
				
			||||||
                      </Group>
 | 
					                      </Group>
 | 
				
			||||||
                      <Group type="102" attributes="0">
 | 
					                      <Component id="jLImage" alignment="0" min="-2" pref="172" max="-2" attributes="0"/>
 | 
				
			||||||
                          <Component id="jLImage" min="-2" pref="172" max="-2" attributes="0"/>
 | 
					 | 
				
			||||||
                          <EmptySpace min="0" pref="0" max="32767" attributes="0"/>
 | 
					 | 
				
			||||||
                      </Group>
 | 
					 | 
				
			||||||
                  </Group>
 | 
					                  </Group>
 | 
				
			||||||
 | 
					                  <EmptySpace max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                  <Component id="jPanel1" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                  <EmptySpace max="-2" attributes="0"/>
 | 
				
			||||||
              </Group>
 | 
					              </Group>
 | 
				
			||||||
          </Group>
 | 
					          </Group>
 | 
				
			||||||
        </DimensionLayout>
 | 
					        </DimensionLayout>
 | 
				
			||||||
@@ -142,6 +217,65 @@
 | 
				
			|||||||
        </Component>
 | 
					        </Component>
 | 
				
			||||||
        <Component class="javax.swing.JLabel" name="jLEffet">
 | 
					        <Component class="javax.swing.JLabel" name="jLEffet">
 | 
				
			||||||
        </Component>
 | 
					        </Component>
 | 
				
			||||||
 | 
					        <Container class="javax.swing.JPanel" name="jPanel1">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					          <Layout>
 | 
				
			||||||
 | 
					            <DimensionLayout dim="0">
 | 
				
			||||||
 | 
					              <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
 | 
					                  <Group type="102" alignment="1" attributes="0">
 | 
				
			||||||
 | 
					                      <EmptySpace max="32767" attributes="0"/>
 | 
				
			||||||
 | 
					                      <Component id="jBprecedent" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                      <EmptySpace max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                      <Component id="jBsuivant" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                      <EmptySpace max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                  </Group>
 | 
				
			||||||
 | 
					                  <Group type="102" alignment="0" attributes="0">
 | 
				
			||||||
 | 
					                      <EmptySpace min="-2" pref="24" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                      <Component id="jLObservation" min="-2" pref="431" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                      <EmptySpace pref="169" max="32767" attributes="0"/>
 | 
				
			||||||
 | 
					                  </Group>
 | 
				
			||||||
 | 
					              </Group>
 | 
				
			||||||
 | 
					            </DimensionLayout>
 | 
				
			||||||
 | 
					            <DimensionLayout dim="1">
 | 
				
			||||||
 | 
					              <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
 | 
					                  <Group type="102" alignment="0" attributes="0">
 | 
				
			||||||
 | 
					                      <EmptySpace max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                      <Group type="103" groupAlignment="3" attributes="0">
 | 
				
			||||||
 | 
					                          <Component id="jBsuivant" alignment="3" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                          <Component id="jBprecedent" alignment="3" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                      </Group>
 | 
				
			||||||
 | 
					                      <EmptySpace type="unrelated" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                      <Component id="jLObservation" min="-2" pref="113" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                      <EmptySpace pref="19" max="32767" attributes="0"/>
 | 
				
			||||||
 | 
					                  </Group>
 | 
				
			||||||
 | 
					              </Group>
 | 
				
			||||||
 | 
					            </DimensionLayout>
 | 
				
			||||||
 | 
					          </Layout>
 | 
				
			||||||
 | 
					          <SubComponents>
 | 
				
			||||||
 | 
					            <Component class="javax.swing.JButton" name="jBsuivant">
 | 
				
			||||||
 | 
					              <Properties>
 | 
				
			||||||
 | 
					                <Property name="text" type="java.lang.String" value="Suivant"/>
 | 
				
			||||||
 | 
					              </Properties>
 | 
				
			||||||
 | 
					            </Component>
 | 
				
			||||||
 | 
					            <Component class="javax.swing.JButton" name="jBprecedent">
 | 
				
			||||||
 | 
					              <Properties>
 | 
				
			||||||
 | 
					                <Property name="text" type="java.lang.String" value="Précédent"/>
 | 
				
			||||||
 | 
					              </Properties>
 | 
				
			||||||
 | 
					            </Component>
 | 
				
			||||||
 | 
					            <Component class="javax.swing.JLabel" name="jLObservation">
 | 
				
			||||||
 | 
					              <Properties>
 | 
				
			||||||
 | 
					                <Property name="text" type="java.lang.String" value="Text"/>
 | 
				
			||||||
 | 
					              </Properties>
 | 
				
			||||||
 | 
					            </Component>
 | 
				
			||||||
 | 
					          </SubComponents>
 | 
				
			||||||
 | 
					        </Container>
 | 
				
			||||||
 | 
					        <Component class="javax.swing.JLabel" name="jLabel1">
 | 
				
			||||||
 | 
					          <Properties>
 | 
				
			||||||
 | 
					            <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
 | 
				
			||||||
 | 
					              <Image iconType="3" name="/img/logodetoure.gif"/>
 | 
				
			||||||
 | 
					            </Property>
 | 
				
			||||||
 | 
					          </Properties>
 | 
				
			||||||
 | 
					        </Component>
 | 
				
			||||||
      </SubComponents>
 | 
					      </SubComponents>
 | 
				
			||||||
    </Container>
 | 
					    </Container>
 | 
				
			||||||
  </SubComponents>
 | 
					  </SubComponents>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,9 +5,10 @@
 | 
				
			|||||||
package presentation;
 | 
					package presentation;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import Metier.Medicament;
 | 
					import Metier.Medicament;
 | 
				
			||||||
 | 
					import acces_aux_donnes.observationSQL;
 | 
				
			||||||
import java.awt.Image;
 | 
					import java.awt.Image;
 | 
				
			||||||
import java.awt.image.BufferedImage;
 | 
					import java.awt.image.BufferedImage;
 | 
				
			||||||
import javax.swing.Icon;
 | 
					import java.util.ArrayList;
 | 
				
			||||||
import javax.swing.ImageIcon;
 | 
					import javax.swing.ImageIcon;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
@@ -15,11 +16,15 @@ import javax.swing.ImageIcon;
 | 
				
			|||||||
 * @author emile.lalorcey
 | 
					 * @author emile.lalorcey
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
public class jffInfoMedoc extends javax.swing.JFrame {
 | 
					public class jffInfoMedoc extends javax.swing.JFrame {
 | 
				
			||||||
 | 
					    private ArrayList<String> observation = new ArrayList<String>();
 | 
				
			||||||
 | 
					    observationSQL observ = new observationSQL();
 | 
				
			||||||
 | 
					    int metier;
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Creates new form jffInfoMedoc
 | 
					     * Creates new form jffInfoMedoc
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public jffInfoMedoc(Medicament medocTrouve) {
 | 
					    public jffInfoMedoc(Medicament medocTrouve, int metier) {
 | 
				
			||||||
 | 
					        this.metier = metier;
 | 
				
			||||||
        initComponents();
 | 
					        initComponents();
 | 
				
			||||||
        jLNomCo.setText(medocTrouve.getNom());
 | 
					        jLNomCo.setText(medocTrouve.getNom());
 | 
				
			||||||
        //Icon imgMedoc = new javax.swing.ImageIcon(getClass().getResource("/img/" + medocTrouve.getImg() + ".jpg"));
 | 
					        //Icon imgMedoc = new javax.swing.ImageIcon(getClass().getResource("/img/" + medocTrouve.getImg() + ".jpg"));
 | 
				
			||||||
@@ -29,6 +34,13 @@ public class jffInfoMedoc extends javax.swing.JFrame {
 | 
				
			|||||||
        jLComposition.setText(medocTrouve.getComposition());
 | 
					        jLComposition.setText(medocTrouve.getComposition());
 | 
				
			||||||
        jLContrindication.setText(medocTrouve.getContreindication());
 | 
					        jLContrindication.setText(medocTrouve.getContreindication());
 | 
				
			||||||
        jLEffet.setText(medocTrouve.getEffet());
 | 
					        jLEffet.setText(medocTrouve.getEffet());
 | 
				
			||||||
 | 
					        observation = observ.selectionObservation(medocTrouve.getNom());
 | 
				
			||||||
 | 
					        if (observation.size()!= 0){
 | 
				
			||||||
 | 
					            jLObservation.setText(observation.get(0));
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        if(this.metier != 0){
 | 
				
			||||||
 | 
					            jMObservation.setVisible(false);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -49,71 +61,180 @@ public class jffInfoMedoc extends javax.swing.JFrame {
 | 
				
			|||||||
        jLImage = new javax.swing.JLabel();
 | 
					        jLImage = new javax.swing.JLabel();
 | 
				
			||||||
        jSeparator1 = new javax.swing.JSeparator();
 | 
					        jSeparator1 = new javax.swing.JSeparator();
 | 
				
			||||||
        jLEffet = new javax.swing.JLabel();
 | 
					        jLEffet = new javax.swing.JLabel();
 | 
				
			||||||
 | 
					        jPanel1 = new javax.swing.JPanel();
 | 
				
			||||||
 | 
					        jBsuivant = new javax.swing.JButton();
 | 
				
			||||||
 | 
					        jBprecedent = new javax.swing.JButton();
 | 
				
			||||||
 | 
					        jLObservation = new javax.swing.JLabel();
 | 
				
			||||||
 | 
					        jLabel1 = new javax.swing.JLabel();
 | 
				
			||||||
 | 
					        jMenuBar1 = new javax.swing.JMenuBar();
 | 
				
			||||||
 | 
					        jMPage = new javax.swing.JMenu();
 | 
				
			||||||
 | 
					        jMIProfession = new javax.swing.JMenuItem();
 | 
				
			||||||
 | 
					        jMIFamille = new javax.swing.JMenuItem();
 | 
				
			||||||
 | 
					        jMObservation = new javax.swing.JMenu();
 | 
				
			||||||
 | 
					        jMIObservation = new javax.swing.JMenuItem();
 | 
				
			||||||
 | 
					        jMInfo = new javax.swing.JMenu();
 | 
				
			||||||
 | 
					        jMIguide = new javax.swing.JMenuItem();
 | 
				
			||||||
 | 
					        jMcredit = new javax.swing.JMenuItem();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
 | 
					        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        jLNomMedoc.setFont(new java.awt.Font("Segoe UI Black", 0, 18)); // NOI18N
 | 
					        jLNomMedoc.setFont(new java.awt.Font("Segoe UI Black", 0, 18)); // NOI18N
 | 
				
			||||||
        jLNomMedoc.setText("Nom du M<>dicament :");
 | 
					        jLNomMedoc.setText("Nom du M<>dicament :");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jBsuivant.setText("Suivant");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jBprecedent.setText("Pr<EFBFBD>c<EFBFBD>dent");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jLObservation.setText("Text");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
 | 
				
			||||||
 | 
					        jPanel1.setLayout(jPanel1Layout);
 | 
				
			||||||
 | 
					        jPanel1Layout.setHorizontalGroup(
 | 
				
			||||||
 | 
					            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
 | 
					            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
 | 
				
			||||||
 | 
					                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 | 
				
			||||||
 | 
					                .addComponent(jBprecedent)
 | 
				
			||||||
 | 
					                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 | 
				
			||||||
 | 
					                .addComponent(jBsuivant)
 | 
				
			||||||
 | 
					                .addContainerGap())
 | 
				
			||||||
 | 
					            .addGroup(jPanel1Layout.createSequentialGroup()
 | 
				
			||||||
 | 
					                .addGap(24, 24, 24)
 | 
				
			||||||
 | 
					                .addComponent(jLObservation, javax.swing.GroupLayout.PREFERRED_SIZE, 431, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
 | 
					                .addContainerGap(169, Short.MAX_VALUE))
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
 | 
					        jPanel1Layout.setVerticalGroup(
 | 
				
			||||||
 | 
					            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
 | 
					            .addGroup(jPanel1Layout.createSequentialGroup()
 | 
				
			||||||
 | 
					                .addContainerGap()
 | 
				
			||||||
 | 
					                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
 | 
				
			||||||
 | 
					                    .addComponent(jBsuivant)
 | 
				
			||||||
 | 
					                    .addComponent(jBprecedent))
 | 
				
			||||||
 | 
					                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 | 
				
			||||||
 | 
					                .addComponent(jLObservation, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
 | 
					                .addContainerGap(19, Short.MAX_VALUE))
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/logodetoure.gif"))); // NOI18N
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        javax.swing.GroupLayout jPFondLayout = new javax.swing.GroupLayout(jPFond);
 | 
					        javax.swing.GroupLayout jPFondLayout = new javax.swing.GroupLayout(jPFond);
 | 
				
			||||||
        jPFond.setLayout(jPFondLayout);
 | 
					        jPFond.setLayout(jPFondLayout);
 | 
				
			||||||
        jPFondLayout.setHorizontalGroup(
 | 
					        jPFondLayout.setHorizontalGroup(
 | 
				
			||||||
            jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
					            jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
            .addGroup(jPFondLayout.createSequentialGroup()
 | 
					            .addGroup(jPFondLayout.createSequentialGroup()
 | 
				
			||||||
 | 
					                .addComponent(jSeparator1)
 | 
				
			||||||
 | 
					                .addContainerGap())
 | 
				
			||||||
 | 
					            .addGroup(jPFondLayout.createSequentialGroup()
 | 
				
			||||||
 | 
					                .addContainerGap()
 | 
				
			||||||
                .addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
					                .addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
                    .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING)
 | 
					                    .addGroup(jPFondLayout.createSequentialGroup()
 | 
				
			||||||
 | 
					                        .addComponent(jLContrindication, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 | 
				
			||||||
 | 
					                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 | 
				
			||||||
 | 
					                        .addComponent(jLEffet, javax.swing.GroupLayout.PREFERRED_SIZE, 391, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
 | 
					                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
 | 
				
			||||||
                    .addGroup(jPFondLayout.createSequentialGroup()
 | 
					                    .addGroup(jPFondLayout.createSequentialGroup()
 | 
				
			||||||
                        .addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
					                        .addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
 | 
					                            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
                            .addGroup(jPFondLayout.createSequentialGroup()
 | 
					                            .addGroup(jPFondLayout.createSequentialGroup()
 | 
				
			||||||
                                .addContainerGap()
 | 
					                                .addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
                                .addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
 | 
					                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPFondLayout.createSequentialGroup()
 | 
				
			||||||
 | 
					                                        .addComponent(jLComposition, javax.swing.GroupLayout.PREFERRED_SIZE, 265, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
 | 
					                                        .addGap(140, 140, 140))
 | 
				
			||||||
                                    .addGroup(jPFondLayout.createSequentialGroup()
 | 
					                                    .addGroup(jPFondLayout.createSequentialGroup()
 | 
				
			||||||
                                        .addComponent(jLContrindication, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 | 
					                                        .addGap(183, 183, 183)
 | 
				
			||||||
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 | 
					                                        .addComponent(jLNomCo, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
                                        .addComponent(jLEffet, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE))
 | 
					                                        .addGap(78, 78, 78)))
 | 
				
			||||||
                                    .addGroup(jPFondLayout.createSequentialGroup()
 | 
					                                .addComponent(jLImage, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)))
 | 
				
			||||||
                                        .addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
					                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
 | 
				
			||||||
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPFondLayout.createSequentialGroup()
 | 
					            .addGroup(jPFondLayout.createSequentialGroup()
 | 
				
			||||||
                                                .addComponent(jLComposition, javax.swing.GroupLayout.PREFERRED_SIZE, 265, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
					                .addGap(168, 168, 168)
 | 
				
			||||||
                                                .addGap(140, 140, 140))
 | 
					                .addComponent(jLNomMedoc)
 | 
				
			||||||
                                            .addGroup(jPFondLayout.createSequentialGroup()
 | 
					                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 300, Short.MAX_VALUE)
 | 
				
			||||||
                                                .addGap(183, 183, 183)
 | 
					                .addComponent(jLabel1)
 | 
				
			||||||
                                                .addComponent(jLNomCo, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
					                .addGap(267, 267, 267))
 | 
				
			||||||
                                                .addGap(78, 78, 78)))
 | 
					 | 
				
			||||||
                                        .addComponent(jLImage, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
					 | 
				
			||||||
                                        .addGap(38, 38, 38))))
 | 
					 | 
				
			||||||
                            .addGroup(jPFondLayout.createSequentialGroup()
 | 
					 | 
				
			||||||
                                .addGap(168, 168, 168)
 | 
					 | 
				
			||||||
                                .addComponent(jLNomMedoc)))
 | 
					 | 
				
			||||||
                        .addGap(0, 163, Short.MAX_VALUE)))
 | 
					 | 
				
			||||||
                .addContainerGap())
 | 
					 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
        jPFondLayout.setVerticalGroup(
 | 
					        jPFondLayout.setVerticalGroup(
 | 
				
			||||||
            jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
					            jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
            .addGroup(jPFondLayout.createSequentialGroup()
 | 
					            .addGroup(jPFondLayout.createSequentialGroup()
 | 
				
			||||||
                .addContainerGap()
 | 
					                .addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
                .addComponent(jLNomMedoc)
 | 
					                    .addGroup(jPFondLayout.createSequentialGroup()
 | 
				
			||||||
                .addGap(18, 18, 18)
 | 
					                        .addContainerGap()
 | 
				
			||||||
 | 
					                        .addComponent(jLNomMedoc))
 | 
				
			||||||
 | 
					                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE))
 | 
				
			||||||
 | 
					                .addGap(25, 25, 25)
 | 
				
			||||||
                .addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
					                .addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
                    .addGroup(jPFondLayout.createSequentialGroup()
 | 
					                    .addGroup(jPFondLayout.createSequentialGroup()
 | 
				
			||||||
                        .addComponent(jLNomCo, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
					                        .addComponent(jLNomCo, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
                        .addGap(28, 28, 28)
 | 
					                        .addGap(28, 28, 28)
 | 
				
			||||||
                        .addComponent(jLComposition, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
					                        .addComponent(jLComposition, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 60, Short.MAX_VALUE)
 | 
					                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 | 
				
			||||||
                        .addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
					                        .addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
                            .addGroup(jPFondLayout.createSequentialGroup()
 | 
					                            .addGroup(jPFondLayout.createSequentialGroup()
 | 
				
			||||||
                                .addComponent(jLContrindication, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
					                                .addComponent(jLContrindication, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 | 
					                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 | 
				
			||||||
                                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
					                                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE))
 | 
				
			||||||
                                .addGap(169, 169, 169))
 | 
					 | 
				
			||||||
                            .addGroup(jPFondLayout.createSequentialGroup()
 | 
					                            .addGroup(jPFondLayout.createSequentialGroup()
 | 
				
			||||||
                                .addComponent(jLEffet, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
					                                .addComponent(jLEffet, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
                                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
 | 
					                                .addGap(0, 0, Short.MAX_VALUE))))
 | 
				
			||||||
                    .addGroup(jPFondLayout.createSequentialGroup()
 | 
					                    .addComponent(jLImage, javax.swing.GroupLayout.PREFERRED_SIZE, 172, javax.swing.GroupLayout.PREFERRED_SIZE))
 | 
				
			||||||
                        .addComponent(jLImage, javax.swing.GroupLayout.PREFERRED_SIZE, 172, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
					                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 | 
				
			||||||
                        .addGap(0, 0, Short.MAX_VALUE))))
 | 
					                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
 | 
					                .addContainerGap())
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jMPage.setText("Page");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jMIProfession.setText("Choix M<>tier");
 | 
				
			||||||
 | 
					        jMIProfession.addActionListener(new java.awt.event.ActionListener() {
 | 
				
			||||||
 | 
					            public void actionPerformed(java.awt.event.ActionEvent evt) {
 | 
				
			||||||
 | 
					                jMIProfessionActionPerformed(evt);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					        jMPage.add(jMIProfession);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jMIFamille.setText("Famille Medicament");
 | 
				
			||||||
 | 
					        jMIFamille.addActionListener(new java.awt.event.ActionListener() {
 | 
				
			||||||
 | 
					            public void actionPerformed(java.awt.event.ActionEvent evt) {
 | 
				
			||||||
 | 
					                jMIFamilleActionPerformed(evt);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					        jMPage.add(jMIFamille);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jMenuBar1.add(jMPage);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jMObservation.setText("Observation");
 | 
				
			||||||
 | 
					        jMObservation.addActionListener(new java.awt.event.ActionListener() {
 | 
				
			||||||
 | 
					            public void actionPerformed(java.awt.event.ActionEvent evt) {
 | 
				
			||||||
 | 
					                jMObservationActionPerformed(evt);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jMIObservation.setText("jMenuItem3");
 | 
				
			||||||
 | 
					        jMIObservation.addActionListener(new java.awt.event.ActionListener() {
 | 
				
			||||||
 | 
					            public void actionPerformed(java.awt.event.ActionEvent evt) {
 | 
				
			||||||
 | 
					                jMIObservationActionPerformed(evt);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					        jMObservation.add(jMIObservation);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jMenuBar1.add(jMObservation);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jMInfo.setText("Info");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jMIguide.setText("Guide");
 | 
				
			||||||
 | 
					        jMIguide.addActionListener(new java.awt.event.ActionListener() {
 | 
				
			||||||
 | 
					            public void actionPerformed(java.awt.event.ActionEvent evt) {
 | 
				
			||||||
 | 
					                jMIguideActionPerformed(evt);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					        jMInfo.add(jMIguide);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jMcredit.setText("Cr<EFBFBD>dit");
 | 
				
			||||||
 | 
					        jMInfo.add(jMcredit);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jMenuBar1.add(jMInfo);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        setJMenuBar(jMenuBar1);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
 | 
					        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
 | 
				
			||||||
        getContentPane().setLayout(layout);
 | 
					        getContentPane().setLayout(layout);
 | 
				
			||||||
        layout.setHorizontalGroup(
 | 
					        layout.setHorizontalGroup(
 | 
				
			||||||
@@ -126,13 +247,37 @@ public class jffInfoMedoc extends javax.swing.JFrame {
 | 
				
			|||||||
        layout.setVerticalGroup(
 | 
					        layout.setVerticalGroup(
 | 
				
			||||||
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
					            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
            .addGroup(layout.createSequentialGroup()
 | 
					            .addGroup(layout.createSequentialGroup()
 | 
				
			||||||
 | 
					                .addContainerGap()
 | 
				
			||||||
                .addComponent(jPFond, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 | 
					                .addComponent(jPFond, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 | 
				
			||||||
                .addGap(16, 16, 16))
 | 
					                .addGap(10, 10, 10))
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        pack();
 | 
					        pack();
 | 
				
			||||||
    }// </editor-fold>//GEN-END:initComponents
 | 
					    }// </editor-fold>//GEN-END:initComponents
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private void jMIProfessionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMIProfessionActionPerformed
 | 
				
			||||||
 | 
					        new jffProfession().setVisible(true);
 | 
				
			||||||
 | 
					        this.setVisible(false);
 | 
				
			||||||
 | 
					    }//GEN-LAST:event_jMIProfessionActionPerformed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private void jMIFamilleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMIFamilleActionPerformed
 | 
				
			||||||
 | 
					        new jffFamilleMedoc(this.metier).setVisible(true);
 | 
				
			||||||
 | 
					        this.setVisible(false);
 | 
				
			||||||
 | 
					    }//GEN-LAST:event_jMIFamilleActionPerformed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private void jMObservationActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMObservationActionPerformed
 | 
				
			||||||
 | 
					           
 | 
				
			||||||
 | 
					    }//GEN-LAST:event_jMObservationActionPerformed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private void jMIguideActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMIguideActionPerformed
 | 
				
			||||||
 | 
					        // TODO add your handling code here:
 | 
				
			||||||
 | 
					    }//GEN-LAST:event_jMIguideActionPerformed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private void jMIObservationActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMIObservationActionPerformed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        new jffAjoutObservation(this.observation.get(0), 1).setVisible(true);
 | 
				
			||||||
 | 
					    }//GEN-LAST:event_jMIObservationActionPerformed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * @param args the command line arguments
 | 
					     * @param args the command line arguments
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
@@ -168,13 +313,27 @@ public class jffInfoMedoc extends javax.swing.JFrame {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Variables declaration - do not modify//GEN-BEGIN:variables
 | 
					    // Variables declaration - do not modify//GEN-BEGIN:variables
 | 
				
			||||||
 | 
					    private javax.swing.JButton jBprecedent;
 | 
				
			||||||
 | 
					    private javax.swing.JButton jBsuivant;
 | 
				
			||||||
    private javax.swing.JLabel jLComposition;
 | 
					    private javax.swing.JLabel jLComposition;
 | 
				
			||||||
    private javax.swing.JLabel jLContrindication;
 | 
					    private javax.swing.JLabel jLContrindication;
 | 
				
			||||||
    private javax.swing.JLabel jLEffet;
 | 
					    private javax.swing.JLabel jLEffet;
 | 
				
			||||||
    private javax.swing.JLabel jLImage;
 | 
					    private javax.swing.JLabel jLImage;
 | 
				
			||||||
    private javax.swing.JLabel jLNomCo;
 | 
					    private javax.swing.JLabel jLNomCo;
 | 
				
			||||||
    private javax.swing.JLabel jLNomMedoc;
 | 
					    private javax.swing.JLabel jLNomMedoc;
 | 
				
			||||||
 | 
					    private javax.swing.JLabel jLObservation;
 | 
				
			||||||
 | 
					    private javax.swing.JLabel jLabel1;
 | 
				
			||||||
 | 
					    private javax.swing.JMenuItem jMIFamille;
 | 
				
			||||||
 | 
					    private javax.swing.JMenuItem jMIObservation;
 | 
				
			||||||
 | 
					    private javax.swing.JMenuItem jMIProfession;
 | 
				
			||||||
 | 
					    private javax.swing.JMenuItem jMIguide;
 | 
				
			||||||
 | 
					    private javax.swing.JMenu jMInfo;
 | 
				
			||||||
 | 
					    private javax.swing.JMenu jMObservation;
 | 
				
			||||||
 | 
					    private javax.swing.JMenu jMPage;
 | 
				
			||||||
 | 
					    private javax.swing.JMenuItem jMcredit;
 | 
				
			||||||
 | 
					    private javax.swing.JMenuBar jMenuBar1;
 | 
				
			||||||
    private javax.swing.JPanel jPFond;
 | 
					    private javax.swing.JPanel jPFond;
 | 
				
			||||||
 | 
					    private javax.swing.JPanel jPanel1;
 | 
				
			||||||
    private javax.swing.JSeparator jSeparator1;
 | 
					    private javax.swing.JSeparator jSeparator1;
 | 
				
			||||||
    // End of variables declaration//GEN-END:variables
 | 
					    // End of variables declaration//GEN-END:variables
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -15,6 +15,7 @@ public class jffProfession extends javax.swing.JFrame {
 | 
				
			|||||||
     */
 | 
					     */
 | 
				
			||||||
    public jffProfession() {
 | 
					    public jffProfession() {
 | 
				
			||||||
        initComponents();
 | 
					        initComponents();
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user