Compare commits
	
		
			22 Commits
		
	
	
		
			6b7bc3fc49
			...
			MedhiJava
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					38812a33fb | ||
| bdef3c80bf | |||
| 
						 | 
					309bb4117d | ||
| b9de9bd1d5 | |||
| 85c17dbe6f | |||
| 4813c5d4af | |||
| e4dc4a3603 | |||
| fdaace4310 | |||
| 
						 | 
					655fa5c049 | ||
| 
						 | 
					20497f31d3 | ||
| cd8af9940d | |||
| 8cf56347ab | |||
| 5355d36771 | |||
| 
						 | 
					d8f091dcc3 | ||
| abc556e3d2 | |||
| 
						 | 
					d9a424bd6e | ||
| e84ad59e10 | |||
| 002e6597c6 | |||
| 6ac02d3adf | |||
| ba7e7c4b9b | |||
| 892d023222 | |||
| 239902c078 | 
@@ -1,9 +1,10 @@
 | 
				
			|||||||
annotation.processing.enabled=true
 | 
					annotation.processing.enabled=true
 | 
				
			||||||
annotation.processing.enabled.in.editor=false
 | 
					annotation.processing.enabled.in.editor=false
 | 
				
			||||||
annotation.processing.processor.options=
 | 
					 | 
				
			||||||
annotation.processing.processors.list=
 | 
					annotation.processing.processors.list=
 | 
				
			||||||
annotation.processing.run.all.processors=true
 | 
					annotation.processing.run.all.processors=true
 | 
				
			||||||
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
 | 
					annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
 | 
				
			||||||
 | 
					application.title=GSBapplication
 | 
				
			||||||
 | 
					application.vendor=medhi.rodrigues
 | 
				
			||||||
build.classes.dir=${build.dir}/classes
 | 
					build.classes.dir=${build.dir}/classes
 | 
				
			||||||
build.classes.excludes=**/*.java,**/*.form
 | 
					build.classes.excludes=**/*.java,**/*.form
 | 
				
			||||||
# This directory is removed when the project is cleaned:
 | 
					# This directory is removed when the project is cleaned:
 | 
				
			||||||
@@ -32,6 +33,7 @@ dist.jar=${dist.dir}/GSBapplication.jar
 | 
				
			|||||||
dist.javadoc.dir=${dist.dir}/javadoc
 | 
					dist.javadoc.dir=${dist.dir}/javadoc
 | 
				
			||||||
dist.jlink.dir=${dist.dir}/jlink
 | 
					dist.jlink.dir=${dist.dir}/jlink
 | 
				
			||||||
dist.jlink.output=${dist.jlink.dir}/GSBapplication
 | 
					dist.jlink.output=${dist.jlink.dir}/GSBapplication
 | 
				
			||||||
 | 
					endorsed.classpath=
 | 
				
			||||||
excludes=
 | 
					excludes=
 | 
				
			||||||
file.reference.mysql-connector-j-8.3.0.jar=C:\\Users\\medhi.rodrigues\\Documents\\NetBeansProjects\\Driver\\mysql-connector-j-8.3.0.jar
 | 
					file.reference.mysql-connector-j-8.3.0.jar=C:\\Users\\medhi.rodrigues\\Documents\\NetBeansProjects\\Driver\\mysql-connector-j-8.3.0.jar
 | 
				
			||||||
includes=**
 | 
					includes=**
 | 
				
			||||||
@@ -81,10 +83,6 @@ platform.active=default_platform
 | 
				
			|||||||
run.classpath=\
 | 
					run.classpath=\
 | 
				
			||||||
    ${javac.classpath}:\
 | 
					    ${javac.classpath}:\
 | 
				
			||||||
    ${build.classes.dir}
 | 
					    ${build.classes.dir}
 | 
				
			||||||
# Space-separated list of JVM arguments used when running the project.
 | 
					 | 
				
			||||||
# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
 | 
					 | 
				
			||||||
# To set system properties for unit tests define test-sys-prop.name=value:
 | 
					 | 
				
			||||||
run.jvmargs=
 | 
					 | 
				
			||||||
run.modulepath=\
 | 
					run.modulepath=\
 | 
				
			||||||
    ${javac.modulepath}
 | 
					    ${javac.modulepath}
 | 
				
			||||||
run.test.classpath=\
 | 
					run.test.classpath=\
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,32 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 | 
					 | 
				
			||||||
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package Metier;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 *
 | 
					 | 
				
			||||||
 * @author medhi.rodrigues
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
public class Observation {
 | 
					 | 
				
			||||||
    /**
 | 
					 | 
				
			||||||
     * observation = l'observation d'un m<>dicament
 | 
					 | 
				
			||||||
     */
 | 
					 | 
				
			||||||
    private String observation;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    //LES GUETTEUR
 | 
					 | 
				
			||||||
    /**
 | 
					 | 
				
			||||||
     * @return the observation
 | 
					 | 
				
			||||||
     */
 | 
					 | 
				
			||||||
    public String getObservation() {
 | 
					 | 
				
			||||||
        return observation;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
							
								
								
									
										43
									
								
								GSBapplication/src/TEST/testMain.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,43 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 | 
				
			||||||
 | 
					 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					package TEST;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import acces_aux_donnes.ConnexionSQL;
 | 
				
			||||||
 | 
					import acces_aux_donnes.PraticienSQL;
 | 
				
			||||||
 | 
					import acces_aux_donnes.MedicamentSQL;
 | 
				
			||||||
 | 
					import java.sql.Connection;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * @author medhi.rodrigues
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					public class testMain {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * @param args the command line arguments
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public static void main(String[] args) {
 | 
				
			||||||
 | 
					       
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        //Connection connexionTest = connexionSQL.getConnect("10.121.38.196","bdgsb","adminGSB","mdpGSB");
 | 
				
			||||||
 | 
					        //Elio
 | 
				
			||||||
 | 
					        //Connection connexionTest = connexionSQL.getConnect("10.121.38.75","bdgsb","adminGSB","mdpGSB");
 | 
				
			||||||
 | 
					        //Yann
 | 
				
			||||||
 | 
					        //Connection connexionTest = connexionSQL.getConnect("10.121.38.69","bdgsb","appliGSB","(Uq1XV0Tr01s2H9Z");
 | 
				
			||||||
 | 
					        //praticienSQL a =new praticienSQL();
 | 
				
			||||||
 | 
					        //a.rechercherPraticien("Didier", "1234");
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        //MedicamentSQL b = new MedicamentSQL();
 | 
				
			||||||
 | 
					        //b.rechercherMedicament("3MYC7");
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					       String id= "3MYC7";
 | 
				
			||||||
 | 
					       String imgTrouve = "../img/"+ id +".jpg";
 | 
				
			||||||
 | 
					       System.out.print(imgTrouve);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -4,10 +4,60 @@
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
package acces_aux_donnes;
 | 
					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 emile.lalorcey
 | 
					 * @author emile.lalorcey
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
public class MedicamentSQL {
 | 
					public class MedicamentSQL {
 | 
				
			||||||
 | 
					    private Connection connexionTest;
 | 
				
			||||||
 | 
					    private Statement stmt = 	null;
 | 
				
			||||||
 | 
					    private ResultSet result = 	null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public MedicamentSQL() {
 | 
				
			||||||
 | 
					        connexionTest = ConnexionSQL.getConnect("10.121.38.75","bdgsb","adminGSB","mdpGSB");
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    public ArrayList<String> rechercherMedicament (String nomCo){
 | 
				
			||||||
 | 
					        ArrayList<String> infoMedoc = new ArrayList<String>();
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        try {
 | 
				
			||||||
 | 
					            stmt = connexionTest.createStatement();
 | 
				
			||||||
 | 
					            // Acc<63>s <20> la table 
 | 
				
			||||||
 | 
					            result = stmt.executeQuery("SELECT * FROM MEDICAMENT WHERE mNomCommercial ='"+nomCo+"';");
 | 
				
			||||||
 | 
					            if(result.next()){
 | 
				
			||||||
 | 
					                infoMedoc.add(result.getString(1));
 | 
				
			||||||
 | 
					                infoMedoc.add(result.getString(2));
 | 
				
			||||||
 | 
					                infoMedoc.add(result.getString(3));
 | 
				
			||||||
 | 
					                infoMedoc.add(result.getString(4));
 | 
				
			||||||
 | 
					                infoMedoc.add(result.getString(5));
 | 
				
			||||||
 | 
					                infoMedoc.add(result.getString(6));
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            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 infoMedoc;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -51,10 +51,10 @@ public class connexionSQL {
 | 
				
			|||||||
     * @return connection <20>tablie
 | 
					     * @return connection <20>tablie
 | 
				
			||||||
     */  
 | 
					     */  
 | 
				
			||||||
    public static Connection getConnect(String serveur, String bdd, String nomUtil, String mdp) {
 | 
					    public static Connection getConnect(String serveur, String bdd, String nomUtil, String mdp) {
 | 
				
			||||||
        System.out.println("getConnect");
 | 
					 | 
				
			||||||
        if (connect == null) {
 | 
					        if (connect == null) {
 | 
				
			||||||
            new connexionSQL(serveur, bdd, nomUtil, mdp);
 | 
					            new connexionSQL(serveur, bdd, nomUtil, mdp);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        System.out.println("Connexion valid<69>");
 | 
				
			||||||
        return connect;
 | 
					        return connect;
 | 
				
			||||||
    }    
 | 
					    }    
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,10 +4,36 @@
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
package acces_aux_donnes;
 | 
					package acces_aux_donnes;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import java.sql.Connection;
 | 
				
			||||||
 | 
					import java.sql.ResultSet;
 | 
				
			||||||
 | 
					import java.sql.Statement;
 | 
				
			||||||
 | 
					import java.util.ArrayList;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * @author emile.lalorcey
 | 
					 * @author emile.lalorcey
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
public class familleMedocSQL {
 | 
					public class familleMedocSQL {
 | 
				
			||||||
 | 
					    private Connection connexionTest;
 | 
				
			||||||
 | 
					    private Statement stmt = 	null;
 | 
				
			||||||
 | 
					    private ResultSet result = 	null;
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    public familleMedocSQL(){
 | 
				
			||||||
 | 
					        connexionTest = connexionSQL.getConnect("10.121.38.75","bdgsb","adminGSB","mdpGSB");
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,10 +4,60 @@
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
package acces_aux_donnes;
 | 
					package acces_aux_donnes;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import java.sql.Connection;
 | 
				
			||||||
 | 
					import java.sql.ResultSet;
 | 
				
			||||||
 | 
					import java.sql.SQLException;
 | 
				
			||||||
 | 
					import java.sql.Statement;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * @author emile.lalorcey
 | 
					 * @author emile.lalorcey
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
public class observationSQL {
 | 
					public class observationSQL {
 | 
				
			||||||
 | 
					    private Connection connexionTest;
 | 
				
			||||||
 | 
					    private Statement stmt = 	null;
 | 
				
			||||||
 | 
					    private ResultSet result = 	null;
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    public observationSQL() {
 | 
				
			||||||
 | 
					        connexionTest = connexionSQL.getConnect("10.121.38.75","bdgsb","adminGSB","mdpGSB");
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    public int compterLignes(){
 | 
				
			||||||
 | 
					        int nbLignes = 0;
 | 
				
			||||||
 | 
					        try {
 | 
				
			||||||
 | 
					            stmt = connexionTest.createStatement();
 | 
				
			||||||
 | 
					            // Acc<63>s <20> la table 
 | 
				
			||||||
 | 
					            result = stmt.executeQuery("SELECT COUNT(idObservation) From OBSERVATION");
 | 
				
			||||||
 | 
					            if (result.next()) {
 | 
				
			||||||
 | 
					                nbLignes = Integer.parseInt(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 nbLignes;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public int ajouterObservation(String idMedoc, int idPraticien, String observation){
 | 
				
			||||||
 | 
					        int passer = 1000;
 | 
				
			||||||
 | 
					        int nbLignes = this.compterLignes();
 | 
				
			||||||
 | 
					        try {
 | 
				
			||||||
 | 
					            stmt = connexionTest.createStatement();
 | 
				
			||||||
 | 
					            // Acc<63>s <20> la table 
 | 
				
			||||||
 | 
					            passer = stmt.executeUpdate("INSERT INTO OBSERVATION(idObservation, idMedoc, idPraticien, observation) "
 | 
				
			||||||
 | 
					                    + "VALUES ("+(nbLignes+1)+",'"+idMedoc+"',"+idPraticien+",\""+observation+"\");");
 | 
				
			||||||
 | 
					            
 | 
				
			||||||
 | 
					            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 passer;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,10 +4,44 @@
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
package acces_aux_donnes;
 | 
					package acces_aux_donnes;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import java.sql.Connection;
 | 
				
			||||||
 | 
					import java.sql.ResultSet;
 | 
				
			||||||
 | 
					import java.sql.SQLException;
 | 
				
			||||||
 | 
					import java.sql.Statement;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * @author emile.lalorcey
 | 
					 * @author emile.lalorcey
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
public class praticienSQL {
 | 
					public class praticienSQL {
 | 
				
			||||||
 | 
					    private Connection connexionTest;
 | 
				
			||||||
 | 
					    private Statement stmt = 	null;
 | 
				
			||||||
 | 
					    private ResultSet result = 	null;
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					     public praticienSQL() {
 | 
				
			||||||
 | 
					        connexionTest = connexionSQL.getConnect("10.121.38.75","bdgsb","adminGSB","mdpGSB");
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					     
 | 
				
			||||||
 | 
					      public String[] rechercherPraticien(String login, String mdp) {
 | 
				
			||||||
 | 
					        String[] praticienCherche = new String [2];
 | 
				
			||||||
 | 
					        try {
 | 
				
			||||||
 | 
					            stmt = connexionTest.createStatement();
 | 
				
			||||||
 | 
					            // Acc<63>s <20> la table 
 | 
				
			||||||
 | 
					            result = stmt.executeQuery("SELECT * FROM PRATICIENLOG WHERE id='"+login+
 | 
				
			||||||
 | 
					                    "' AND mdp='"+mdp + "';");
 | 
				
			||||||
 | 
					            if (result.next()) {   // Le praticien a <20>t<EFBFBD> touv<75>
 | 
				
			||||||
 | 
					               praticienCherche[0] = result.getString(1);
 | 
				
			||||||
 | 
					               praticienCherche[1] = result.getString(2);
 | 
				
			||||||
 | 
					                
 | 
				
			||||||
 | 
					            } 
 | 
				
			||||||
 | 
					            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 praticienCherche;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/3MYC7.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 103 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/ADIMOL9.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 194 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/AMOPIL7.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 48 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/AMOX45.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 60 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/AMOXIG12.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 31 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/APATOUX22.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 50 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/BACTIG10.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 95 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/BACTIV13.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 71 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/BITALV.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 31 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/CARTION6.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 38 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/CLAZER6.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 33 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/DEPRIL9.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 66 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/DIMIRTAM6.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 24 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/DOLRIL7.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 163 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/DORNOM8.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 41 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/EQUILARX6.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 80 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/EVILR7.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 34 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/INSXT5.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 56 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/JOVAI8.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 22 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/LIDOXY23.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 78 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/LITHOR12.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 120 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/LogoDetoure_1.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 16 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/PARMOL16.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 56 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/PHYSOI8.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 38 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/PIRIZ8.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 23 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/POMDI20.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 552 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/TROXT21.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 42 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/TROXT21.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 232 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/TXISOL20.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 30 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/TXISOL22.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 45 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/URIEG6.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 41 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/logo.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 19 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								GSBapplication/src/img/logoGSB.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 6.6 KiB  | 
@@ -23,13 +23,84 @@
 | 
				
			|||||||
  <Layout>
 | 
					  <Layout>
 | 
				
			||||||
    <DimensionLayout dim="0">
 | 
					    <DimensionLayout dim="0">
 | 
				
			||||||
      <Group type="103" groupAlignment="0" attributes="0">
 | 
					      <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
          <EmptySpace min="0" pref="400" max="32767" attributes="0"/>
 | 
					          <Group type="102" attributes="0">
 | 
				
			||||||
 | 
					              <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
 | 
					                  <Group type="102" alignment="1" attributes="0">
 | 
				
			||||||
 | 
					                      <EmptySpace max="32767" attributes="0"/>
 | 
				
			||||||
 | 
					                      <Component id="jLTitre" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                      <EmptySpace min="-2" pref="65" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                      <Component id="jLabel1" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                  </Group>
 | 
				
			||||||
 | 
					                  <Group type="102" attributes="0">
 | 
				
			||||||
 | 
					                      <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
 | 
					                          <Group type="102" alignment="0" attributes="0">
 | 
				
			||||||
 | 
					                              <EmptySpace min="-2" pref="23" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                              <Component id="jScrollPane1" min="-2" pref="348" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                          </Group>
 | 
				
			||||||
 | 
					                          <Group type="102" alignment="0" attributes="0">
 | 
				
			||||||
 | 
					                              <EmptySpace min="-2" pref="158" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                              <Component id="jBsoumettre" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                          </Group>
 | 
				
			||||||
 | 
					                      </Group>
 | 
				
			||||||
 | 
					                      <EmptySpace min="0" pref="23" max="32767" attributes="0"/>
 | 
				
			||||||
 | 
					                  </Group>
 | 
				
			||||||
 | 
					              </Group>
 | 
				
			||||||
 | 
					              <EmptySpace max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					          </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">
 | 
				
			||||||
          <EmptySpace min="0" pref="300" max="32767" attributes="0"/>
 | 
					          <Group type="102" alignment="0" attributes="0">
 | 
				
			||||||
 | 
					              <EmptySpace max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					              <Group type="103" groupAlignment="1" attributes="0">
 | 
				
			||||||
 | 
					                  <Component id="jLabel1" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                  <Component id="jLTitre" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					              </Group>
 | 
				
			||||||
 | 
					              <EmptySpace type="separate" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					              <Component id="jScrollPane1" min="-2" pref="157" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					              <EmptySpace type="separate" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					              <Component id="jBsoumettre" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					              <EmptySpace pref="46" max="32767" attributes="0"/>
 | 
				
			||||||
 | 
					          </Group>
 | 
				
			||||||
      </Group>
 | 
					      </Group>
 | 
				
			||||||
    </DimensionLayout>
 | 
					    </DimensionLayout>
 | 
				
			||||||
  </Layout>
 | 
					  </Layout>
 | 
				
			||||||
 | 
					  <SubComponents>
 | 
				
			||||||
 | 
					    <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>
 | 
				
			||||||
 | 
					    <Component class="javax.swing.JLabel" name="jLTitre">
 | 
				
			||||||
 | 
					      <Properties>
 | 
				
			||||||
 | 
					        <Property name="text" type="java.lang.String" value="Soumettez votre observation"/>
 | 
				
			||||||
 | 
					      </Properties>
 | 
				
			||||||
 | 
					    </Component>
 | 
				
			||||||
 | 
					    <Container class="javax.swing.JScrollPane" name="jScrollPane1">
 | 
				
			||||||
 | 
					      <AuxValues>
 | 
				
			||||||
 | 
					        <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
 | 
				
			||||||
 | 
					      </AuxValues>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
 | 
				
			||||||
 | 
					      <SubComponents>
 | 
				
			||||||
 | 
					        <Component class="javax.swing.JTextArea" name="jTAobservation">
 | 
				
			||||||
 | 
					          <Properties>
 | 
				
			||||||
 | 
					            <Property name="columns" type="int" value="20"/>
 | 
				
			||||||
 | 
					            <Property name="rows" type="int" value="5"/>
 | 
				
			||||||
 | 
					          </Properties>
 | 
				
			||||||
 | 
					        </Component>
 | 
				
			||||||
 | 
					      </SubComponents>
 | 
				
			||||||
 | 
					    </Container>
 | 
				
			||||||
 | 
					    <Component class="javax.swing.JButton" name="jBsoumettre">
 | 
				
			||||||
 | 
					      <Properties>
 | 
				
			||||||
 | 
					        <Property name="text" type="java.lang.String" value="Soumettre"/>
 | 
				
			||||||
 | 
					      </Properties>
 | 
				
			||||||
 | 
					      <Events>
 | 
				
			||||||
 | 
					        <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jBsoumettreActionPerformed"/>
 | 
				
			||||||
 | 
					      </Events>
 | 
				
			||||||
 | 
					    </Component>
 | 
				
			||||||
 | 
					  </SubComponents>
 | 
				
			||||||
</Form>
 | 
					</Form>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,17 +4,22 @@
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
package presentation;
 | 
					package presentation;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import acces_aux_donnes.ObservationSQL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * @author emile.lalorcey
 | 
					 * @author emile.lalorcey
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
public class jffAjoutObservation extends javax.swing.JFrame {
 | 
					public class jffAjoutObservation extends javax.swing.JFrame {
 | 
				
			||||||
 | 
					    private String idMedoc;
 | 
				
			||||||
 | 
					    private int idPraticien;
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Creates new form jffAjoutObservation
 | 
					     * Creates new form jffAjoutObservation
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public jffAjoutObservation() {
 | 
					    public jffAjoutObservation(String idMedoc,int idPraticien) {
 | 
				
			||||||
        initComponents();
 | 
					        initComponents();
 | 
				
			||||||
 | 
					        this.idMedoc = idMedoc;
 | 
				
			||||||
 | 
					        this.idPraticien = idPraticien;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
@@ -26,22 +31,73 @@ public class jffAjoutObservation extends javax.swing.JFrame {
 | 
				
			|||||||
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
 | 
					    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
 | 
				
			||||||
    private void initComponents() {
 | 
					    private void initComponents() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jLabel1 = new javax.swing.JLabel();
 | 
				
			||||||
 | 
					        jLTitre = new javax.swing.JLabel();
 | 
				
			||||||
 | 
					        jScrollPane1 = new javax.swing.JScrollPane();
 | 
				
			||||||
 | 
					        jTAobservation = new javax.swing.JTextArea();
 | 
				
			||||||
 | 
					        jBsoumettre = new javax.swing.JButton();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
 | 
					        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/logodetoure.gif"))); // NOI18N
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jLTitre.setText("Soumettez votre observation");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jTAobservation.setColumns(20);
 | 
				
			||||||
 | 
					        jTAobservation.setRows(5);
 | 
				
			||||||
 | 
					        jScrollPane1.setViewportView(jTAobservation);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jBsoumettre.setText("Soumettre");
 | 
				
			||||||
 | 
					        jBsoumettre.addActionListener(new java.awt.event.ActionListener() {
 | 
				
			||||||
 | 
					            public void actionPerformed(java.awt.event.ActionEvent evt) {
 | 
				
			||||||
 | 
					                jBsoumettreActionPerformed(evt);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        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(
 | 
				
			||||||
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
					            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
            .addGap(0, 400, Short.MAX_VALUE)
 | 
					            .addGroup(layout.createSequentialGroup()
 | 
				
			||||||
 | 
					                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
 | 
					                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
 | 
				
			||||||
 | 
					                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 | 
				
			||||||
 | 
					                        .addComponent(jLTitre)
 | 
				
			||||||
 | 
					                        .addGap(65, 65, 65)
 | 
				
			||||||
 | 
					                        .addComponent(jLabel1))
 | 
				
			||||||
 | 
					                    .addGroup(layout.createSequentialGroup()
 | 
				
			||||||
 | 
					                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
 | 
					                            .addGroup(layout.createSequentialGroup()
 | 
				
			||||||
 | 
					                                .addGap(23, 23, 23)
 | 
				
			||||||
 | 
					                                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 348, javax.swing.GroupLayout.PREFERRED_SIZE))
 | 
				
			||||||
 | 
					                            .addGroup(layout.createSequentialGroup()
 | 
				
			||||||
 | 
					                                .addGap(158, 158, 158)
 | 
				
			||||||
 | 
					                                .addComponent(jBsoumettre)))
 | 
				
			||||||
 | 
					                        .addGap(0, 23, Short.MAX_VALUE)))
 | 
				
			||||||
 | 
					                .addContainerGap())
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
        layout.setVerticalGroup(
 | 
					        layout.setVerticalGroup(
 | 
				
			||||||
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
					            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
            .addGap(0, 300, Short.MAX_VALUE)
 | 
					            .addGroup(layout.createSequentialGroup()
 | 
				
			||||||
 | 
					                .addContainerGap()
 | 
				
			||||||
 | 
					                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
 | 
				
			||||||
 | 
					                    .addComponent(jLabel1)
 | 
				
			||||||
 | 
					                    .addComponent(jLTitre))
 | 
				
			||||||
 | 
					                .addGap(18, 18, 18)
 | 
				
			||||||
 | 
					                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
 | 
					                .addGap(18, 18, 18)
 | 
				
			||||||
 | 
					                .addComponent(jBsoumettre)
 | 
				
			||||||
 | 
					                .addContainerGap(46, Short.MAX_VALUE))
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        pack();
 | 
					        pack();
 | 
				
			||||||
    }// </editor-fold>//GEN-END:initComponents
 | 
					    }// </editor-fold>//GEN-END:initComponents
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private void jBsoumettreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBsoumettreActionPerformed
 | 
				
			||||||
 | 
					        ObservationSQL observ = new ObservationSQL();
 | 
				
			||||||
 | 
					        observ.ajouterObservation(this.idMedoc, this.idPraticien, jTAobservation.getText());
 | 
				
			||||||
 | 
					    }//GEN-LAST:event_jBsoumettreActionPerformed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * @param args the command line arguments
 | 
					     * @param args the command line arguments
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
@@ -72,11 +128,16 @@ public class jffAjoutObservation 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 jffAjoutObservation().setVisible(true);
 | 
					                //new jffAjoutObservation().setVisible(true);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Variables declaration - do not modify//GEN-BEGIN:variables
 | 
					    // Variables declaration - do not modify//GEN-BEGIN:variables
 | 
				
			||||||
 | 
					    private javax.swing.JButton jBsoumettre;
 | 
				
			||||||
 | 
					    private javax.swing.JLabel jLTitre;
 | 
				
			||||||
 | 
					    private javax.swing.JLabel jLabel1;
 | 
				
			||||||
 | 
					    private javax.swing.JScrollPane jScrollPane1;
 | 
				
			||||||
 | 
					    private javax.swing.JTextArea jTAobservation;
 | 
				
			||||||
    // End of variables declaration//GEN-END:variables
 | 
					    // End of variables declaration//GEN-END:variables
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -156,6 +156,9 @@
 | 
				
			|||||||
            </Property>
 | 
					            </Property>
 | 
				
			||||||
            <Property name="text" type="java.lang.String" value="Valider"/>
 | 
					            <Property name="text" type="java.lang.String" value="Valider"/>
 | 
				
			||||||
          </Properties>
 | 
					          </Properties>
 | 
				
			||||||
 | 
					          <Events>
 | 
				
			||||||
 | 
					            <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jBValiderActionPerformed"/>
 | 
				
			||||||
 | 
					          </Events>
 | 
				
			||||||
        </Component>
 | 
					        </Component>
 | 
				
			||||||
        <Component class="javax.swing.JLabel" name="jLLogo">
 | 
					        <Component class="javax.swing.JLabel" name="jLLogo">
 | 
				
			||||||
          <Properties>
 | 
					          <Properties>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,17 +4,20 @@
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
package presentation;
 | 
					package presentation;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import acces_aux_donnes.PraticienSQL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * @author emile.lalorcey
 | 
					 * @author emile.lalorcey
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
public class jffConnexion extends javax.swing.JFrame {
 | 
					public class jffConnexion extends javax.swing.JFrame {
 | 
				
			||||||
 | 
					    int profession;
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Creates new form jffConnexion
 | 
					     * Creates new form jffConnexion
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public jffConnexion() {
 | 
					    public jffConnexion(int indice) {
 | 
				
			||||||
        initComponents();
 | 
					        initComponents();
 | 
				
			||||||
 | 
					        this.profession = indice;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
@@ -61,6 +64,11 @@ public class jffConnexion extends javax.swing.JFrame {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        jBValider.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/valider.png"))); // NOI18N
 | 
					        jBValider.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/valider.png"))); // NOI18N
 | 
				
			||||||
        jBValider.setText("Valider");
 | 
					        jBValider.setText("Valider");
 | 
				
			||||||
 | 
					        jBValider.addActionListener(new java.awt.event.ActionListener() {
 | 
				
			||||||
 | 
					            public void actionPerformed(java.awt.event.ActionEvent evt) {
 | 
				
			||||||
 | 
					                jBValiderActionPerformed(evt);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        jLLogo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/logodetoure.gif"))); // NOI18N
 | 
					        jLLogo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/logodetoure.gif"))); // NOI18N
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -147,6 +155,18 @@ public class jffConnexion extends javax.swing.JFrame {
 | 
				
			|||||||
        // TODO add your handling code here:
 | 
					        // TODO add your handling code here:
 | 
				
			||||||
    }//GEN-LAST:event_jPFmdpActionPerformed
 | 
					    }//GEN-LAST:event_jPFmdpActionPerformed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private void jBValiderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBValiderActionPerformed
 | 
				
			||||||
 | 
					        String identifiant = jTFIdentifiant.getText();
 | 
				
			||||||
 | 
					        String mdp = String.valueOf(jPFmdp.getPassword());
 | 
				
			||||||
 | 
					        PraticienSQL testPraticien = new PraticienSQL();
 | 
				
			||||||
 | 
					        String [] lePraticien = testPraticien.rechercherPraticien(identifiant,mdp);
 | 
				
			||||||
 | 
					        if (lePraticien[0] != null){
 | 
				
			||||||
 | 
					            System.out.print("TEST REUSSIE");
 | 
				
			||||||
 | 
					        }else {
 | 
				
			||||||
 | 
					            System.out.print("TEST EMILE RACISTE");
 | 
				
			||||||
 | 
					        } 
 | 
				
			||||||
 | 
					    }//GEN-LAST:event_jBValiderActionPerformed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * @param args the command line arguments
 | 
					     * @param args the command line arguments
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
@@ -177,7 +197,7 @@ 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().setVisible(true);
 | 
					                new jffConnexion(1).setVisible(true);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -23,13 +23,63 @@
 | 
				
			|||||||
  <Layout>
 | 
					  <Layout>
 | 
				
			||||||
    <DimensionLayout dim="0">
 | 
					    <DimensionLayout dim="0">
 | 
				
			||||||
      <Group type="103" groupAlignment="0" attributes="0">
 | 
					      <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
          <EmptySpace min="0" pref="400" max="32767" attributes="0"/>
 | 
					          <Group type="102" alignment="1" attributes="0">
 | 
				
			||||||
 | 
					              <EmptySpace pref="344" max="32767" attributes="0"/>
 | 
				
			||||||
 | 
					              <Component id="jLabel1" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					              <EmptySpace max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					          </Group>
 | 
				
			||||||
 | 
					          <Group type="102" alignment="0" attributes="0">
 | 
				
			||||||
 | 
					              <EmptySpace min="-2" pref="20" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					              <Component id="jLRecherche" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					              <EmptySpace type="unrelated" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					              <Component id="jTFRecherche" min="-2" pref="80" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					              <EmptySpace max="32767" attributes="0"/>
 | 
				
			||||||
 | 
					              <Component id="jBRechercheValide" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					              <EmptySpace min="-2" pref="27" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					          </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">
 | 
				
			||||||
          <EmptySpace min="0" pref="300" max="32767" attributes="0"/>
 | 
					          <Group type="102" alignment="0" attributes="0">
 | 
				
			||||||
 | 
					              <EmptySpace max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					              <Component id="jLabel1" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					              <EmptySpace type="unrelated" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					              <Group type="103" groupAlignment="3" attributes="0">
 | 
				
			||||||
 | 
					                  <Component id="jLRecherche" alignment="3" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                  <Component id="jTFRecherche" alignment="3" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                  <Component id="jBRechercheValide" alignment="3" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					              </Group>
 | 
				
			||||||
 | 
					              <EmptySpace pref="227" max="32767" attributes="0"/>
 | 
				
			||||||
 | 
					          </Group>
 | 
				
			||||||
      </Group>
 | 
					      </Group>
 | 
				
			||||||
    </DimensionLayout>
 | 
					    </DimensionLayout>
 | 
				
			||||||
  </Layout>
 | 
					  </Layout>
 | 
				
			||||||
 | 
					  <SubComponents>
 | 
				
			||||||
 | 
					    <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>
 | 
				
			||||||
 | 
					    <Component class="javax.swing.JLabel" name="jLRecherche">
 | 
				
			||||||
 | 
					      <Properties>
 | 
				
			||||||
 | 
					        <Property name="text" type="java.lang.String" value="Recherche médicament : "/>
 | 
				
			||||||
 | 
					      </Properties>
 | 
				
			||||||
 | 
					    </Component>
 | 
				
			||||||
 | 
					    <Component class="javax.swing.JTextField" name="jTFRecherche">
 | 
				
			||||||
 | 
					      <Events>
 | 
				
			||||||
 | 
					        <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTFRechercheActionPerformed"/>
 | 
				
			||||||
 | 
					      </Events>
 | 
				
			||||||
 | 
					    </Component>
 | 
				
			||||||
 | 
					    <Component class="javax.swing.JButton" name="jBRechercheValide">
 | 
				
			||||||
 | 
					      <Properties>
 | 
				
			||||||
 | 
					        <Property name="text" type="java.lang.String" value="Rechercher"/>
 | 
				
			||||||
 | 
					      </Properties>
 | 
				
			||||||
 | 
					      <Events>
 | 
				
			||||||
 | 
					        <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jBRechercheValideActionPerformed"/>
 | 
				
			||||||
 | 
					      </Events>
 | 
				
			||||||
 | 
					    </Component>
 | 
				
			||||||
 | 
					  </SubComponents>
 | 
				
			||||||
</Form>
 | 
					</Form>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,6 +4,10 @@
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
package presentation;
 | 
					package presentation;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import Metier.Medicament;
 | 
				
			||||||
 | 
					import acces_aux_donnes.MedicamentSQL;
 | 
				
			||||||
 | 
					import java.util.ArrayList;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * @author emile.lalorcey
 | 
					 * @author emile.lalorcey
 | 
				
			||||||
@@ -26,22 +30,89 @@ public class jffFamilleMedoc extends javax.swing.JFrame {
 | 
				
			|||||||
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
 | 
					    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
 | 
				
			||||||
    private void initComponents() {
 | 
					    private void initComponents() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jLabel1 = new javax.swing.JLabel();
 | 
				
			||||||
 | 
					        jLRecherche = new javax.swing.JLabel();
 | 
				
			||||||
 | 
					        jTFRecherche = new javax.swing.JTextField();
 | 
				
			||||||
 | 
					        jBRechercheValide = new javax.swing.JButton();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
 | 
					        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/logodetoure.gif"))); // NOI18N
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jLRecherche.setText("Recherche m<>dicament : ");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jTFRecherche.addActionListener(new java.awt.event.ActionListener() {
 | 
				
			||||||
 | 
					            public void actionPerformed(java.awt.event.ActionEvent evt) {
 | 
				
			||||||
 | 
					                jTFRechercheActionPerformed(evt);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jBRechercheValide.setText("Rechercher");
 | 
				
			||||||
 | 
					        jBRechercheValide.addActionListener(new java.awt.event.ActionListener() {
 | 
				
			||||||
 | 
					            public void actionPerformed(java.awt.event.ActionEvent evt) {
 | 
				
			||||||
 | 
					                jBRechercheValideActionPerformed(evt);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        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(
 | 
				
			||||||
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
					            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
            .addGap(0, 400, Short.MAX_VALUE)
 | 
					            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
 | 
				
			||||||
 | 
					                .addContainerGap(344, Short.MAX_VALUE)
 | 
				
			||||||
 | 
					                .addComponent(jLabel1)
 | 
				
			||||||
 | 
					                .addContainerGap())
 | 
				
			||||||
 | 
					            .addGroup(layout.createSequentialGroup()
 | 
				
			||||||
 | 
					                .addGap(20, 20, 20)
 | 
				
			||||||
 | 
					                .addComponent(jLRecherche)
 | 
				
			||||||
 | 
					                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 | 
				
			||||||
 | 
					                .addComponent(jTFRecherche, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
 | 
					                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 | 
				
			||||||
 | 
					                .addComponent(jBRechercheValide)
 | 
				
			||||||
 | 
					                .addGap(27, 27, 27))
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
        layout.setVerticalGroup(
 | 
					        layout.setVerticalGroup(
 | 
				
			||||||
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
					            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
            .addGap(0, 300, Short.MAX_VALUE)
 | 
					            .addGroup(layout.createSequentialGroup()
 | 
				
			||||||
 | 
					                .addContainerGap()
 | 
				
			||||||
 | 
					                .addComponent(jLabel1)
 | 
				
			||||||
 | 
					                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 | 
				
			||||||
 | 
					                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
 | 
				
			||||||
 | 
					                    .addComponent(jLRecherche)
 | 
				
			||||||
 | 
					                    .addComponent(jTFRecherche, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
 | 
					                    .addComponent(jBRechercheValide))
 | 
				
			||||||
 | 
					                .addContainerGap(227, Short.MAX_VALUE))
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        pack();
 | 
					        pack();
 | 
				
			||||||
    }// </editor-fold>//GEN-END:initComponents
 | 
					    }// </editor-fold>//GEN-END:initComponents
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private void jTFRechercheActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTFRechercheActionPerformed
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					    }//GEN-LAST:event_jTFRechercheActionPerformed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private void jBRechercheValideActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBRechercheValideActionPerformed
 | 
				
			||||||
 | 
					        String medocRechercher = jTFRecherche.getText();
 | 
				
			||||||
 | 
					        MedicamentSQL medocTest = new MedicamentSQL();
 | 
				
			||||||
 | 
					        ArrayList<String> rechercheMedoc = new ArrayList<String>();
 | 
				
			||||||
 | 
					        rechercheMedoc = medocTest.rechercherMedicament(medocRechercher);
 | 
				
			||||||
 | 
					        if (rechercheMedoc.get(0) != null) {
 | 
				
			||||||
 | 
					            String idTrouve = rechercheMedoc.get(0);
 | 
				
			||||||
 | 
					            String nomTrouve = rechercheMedoc.get(1);
 | 
				
			||||||
 | 
					            String compositionTrouve = rechercheMedoc.get(2);
 | 
				
			||||||
 | 
					            String effetTrouve = rechercheMedoc.get(3);
 | 
				
			||||||
 | 
					            String contreIndicationTrouve = rechercheMedoc.get(4);
 | 
				
			||||||
 | 
					            String imgTrouve = "../img/"+ idTrouve +".jpg";
 | 
				
			||||||
 | 
					            Medicament medocTrouve = new Medicament(idTrouve, nomTrouve , compositionTrouve, effetTrouve
 | 
				
			||||||
 | 
					            , contreIndicationTrouve,imgTrouve);
 | 
				
			||||||
 | 
					            new jffInfoMedoc(medocTrouve).setVisible(true);
 | 
				
			||||||
 | 
					       
 | 
				
			||||||
 | 
					            
 | 
				
			||||||
 | 
					        }else {
 | 
				
			||||||
 | 
					            //ajout d'un JoptionPane
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }//GEN-LAST:event_jBRechercheValideActionPerformed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * @param args the command line arguments
 | 
					     * @param args the command line arguments
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
@@ -78,5 +149,9 @@ public class jffFamilleMedoc extends javax.swing.JFrame {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Variables declaration - do not modify//GEN-BEGIN:variables
 | 
					    // Variables declaration - do not modify//GEN-BEGIN:variables
 | 
				
			||||||
 | 
					    private javax.swing.JButton jBRechercheValide;
 | 
				
			||||||
 | 
					    private javax.swing.JLabel jLRecherche;
 | 
				
			||||||
 | 
					    private javax.swing.JLabel jLabel1;
 | 
				
			||||||
 | 
					    private javax.swing.JTextField jTFRecherche;
 | 
				
			||||||
    // End of variables declaration//GEN-END:variables
 | 
					    // End of variables declaration//GEN-END:variables
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -23,13 +23,129 @@
 | 
				
			|||||||
  <Layout>
 | 
					  <Layout>
 | 
				
			||||||
    <DimensionLayout dim="0">
 | 
					    <DimensionLayout dim="0">
 | 
				
			||||||
      <Group type="103" groupAlignment="0" attributes="0">
 | 
					      <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
          <EmptySpace min="0" pref="400" max="32767" attributes="0"/>
 | 
					          <Group type="102" attributes="0">
 | 
				
			||||||
 | 
					              <EmptySpace max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					              <Component id="jPFond" max="32767" attributes="0"/>
 | 
				
			||||||
 | 
					              <EmptySpace max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					          </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">
 | 
				
			||||||
          <EmptySpace min="0" pref="300" max="32767" attributes="0"/>
 | 
					          <Group type="102" alignment="0" attributes="0">
 | 
				
			||||||
 | 
					              <Component id="jPFond" max="32767" attributes="0"/>
 | 
				
			||||||
 | 
					              <EmptySpace min="-2" pref="16" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					          </Group>
 | 
				
			||||||
      </Group>
 | 
					      </Group>
 | 
				
			||||||
    </DimensionLayout>
 | 
					    </DimensionLayout>
 | 
				
			||||||
  </Layout>
 | 
					  </Layout>
 | 
				
			||||||
 | 
					  <SubComponents>
 | 
				
			||||||
 | 
					    <Container class="javax.swing.JPanel" name="jPFond">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      <Layout>
 | 
				
			||||||
 | 
					        <DimensionLayout dim="0">
 | 
				
			||||||
 | 
					          <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
 | 
					              <Group type="102" attributes="0">
 | 
				
			||||||
 | 
					                  <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
 | 
					                      <Component id="jSeparator1" alignment="1" max="32767" attributes="0"/>
 | 
				
			||||||
 | 
					                      <Group type="102" attributes="0">
 | 
				
			||||||
 | 
					                          <EmptySpace max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                          <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
 | 
					                              <Group type="102" alignment="0" attributes="0">
 | 
				
			||||||
 | 
					                                  <Component id="jLContrindication" min="-2" pref="265" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                                  <EmptySpace type="separate" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                                  <Component id="jLPrix" min="-2" pref="100" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                              </Group>
 | 
				
			||||||
 | 
					                              <Group type="102" alignment="0" attributes="0">
 | 
				
			||||||
 | 
					                                  <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
 | 
					                                      <Component id="jLComposition" min="-2" pref="265" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                                      <Component id="jLabel1" alignment="0" min="-2" pref="265" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                                  </Group>
 | 
				
			||||||
 | 
					                                  <EmptySpace type="separate" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                                  <Component id="jLImage" min="-2" pref="157" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                              </Group>
 | 
				
			||||||
 | 
					                          </Group>
 | 
				
			||||||
 | 
					                          <EmptySpace min="0" pref="26" max="32767" attributes="0"/>
 | 
				
			||||||
 | 
					                      </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 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"/>
 | 
				
			||||||
 | 
					                  <Component id="jLNomMedoc" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                  <EmptySpace min="-2" pref="39" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                  <Group type="103" groupAlignment="0" max="-2" attributes="0">
 | 
				
			||||||
 | 
					                      <Group type="102" attributes="0">
 | 
				
			||||||
 | 
					                          <Component id="jLabel1" min="-2" pref="86" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                          <EmptySpace type="unrelated" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                          <Component id="jLComposition" min="-2" pref="74" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                      </Group>
 | 
				
			||||||
 | 
					                      <Component id="jLImage" max="32767" attributes="0"/>
 | 
				
			||||||
 | 
					                  </Group>
 | 
				
			||||||
 | 
					                  <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
 | 
					                      <Group type="102" attributes="0">
 | 
				
			||||||
 | 
					                          <EmptySpace type="unrelated" pref="18" max="32767" attributes="0"/>
 | 
				
			||||||
 | 
					                          <Component id="jLContrindication" min="-2" pref="70" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                          <EmptySpace pref="23" max="32767" attributes="0"/>
 | 
				
			||||||
 | 
					                      </Group>
 | 
				
			||||||
 | 
					                      <Group type="102" alignment="0" attributes="0">
 | 
				
			||||||
 | 
					                          <EmptySpace min="-2" pref="35" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                          <Component id="jLPrix" min="-2" pref="26" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                          <EmptySpace max="32767" attributes="0"/>
 | 
				
			||||||
 | 
					                      </Group>
 | 
				
			||||||
 | 
					                  </Group>
 | 
				
			||||||
 | 
					                  <Component id="jSeparator1" min="-2" pref="10" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					                  <EmptySpace min="-2" pref="169" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					              </Group>
 | 
				
			||||||
 | 
					          </Group>
 | 
				
			||||||
 | 
					        </DimensionLayout>
 | 
				
			||||||
 | 
					      </Layout>
 | 
				
			||||||
 | 
					      <SubComponents>
 | 
				
			||||||
 | 
					        <Component class="javax.swing.JLabel" name="jLNomMedoc">
 | 
				
			||||||
 | 
					          <Properties>
 | 
				
			||||||
 | 
					            <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
 | 
				
			||||||
 | 
					              <Font name="Segoe UI Black" size="18" style="0"/>
 | 
				
			||||||
 | 
					            </Property>
 | 
				
			||||||
 | 
					            <Property name="text" type="java.lang.String" value="Nom du Médoc"/>
 | 
				
			||||||
 | 
					          </Properties>
 | 
				
			||||||
 | 
					        </Component>
 | 
				
			||||||
 | 
					        <Component class="javax.swing.JLabel" name="jLabel1">
 | 
				
			||||||
 | 
					          <Properties>
 | 
				
			||||||
 | 
					            <Property name="text" type="java.lang.String" value="Les effets du médicament"/>
 | 
				
			||||||
 | 
					          </Properties>
 | 
				
			||||||
 | 
					        </Component>
 | 
				
			||||||
 | 
					        <Component class="javax.swing.JLabel" name="jLComposition">
 | 
				
			||||||
 | 
					          <Properties>
 | 
				
			||||||
 | 
					            <Property name="text" type="java.lang.String" value="Composition du médoc"/>
 | 
				
			||||||
 | 
					          </Properties>
 | 
				
			||||||
 | 
					        </Component>
 | 
				
			||||||
 | 
					        <Component class="javax.swing.JLabel" name="jLContrindication">
 | 
				
			||||||
 | 
					          <Properties>
 | 
				
			||||||
 | 
					            <Property name="text" type="java.lang.String" value="Contrindications du médoc"/>
 | 
				
			||||||
 | 
					          </Properties>
 | 
				
			||||||
 | 
					        </Component>
 | 
				
			||||||
 | 
					        <Component class="javax.swing.JLabel" name="jLImage">
 | 
				
			||||||
 | 
					          <Properties>
 | 
				
			||||||
 | 
					            <Property name="text" type="java.lang.String" value="Image"/>
 | 
				
			||||||
 | 
					          </Properties>
 | 
				
			||||||
 | 
					        </Component>
 | 
				
			||||||
 | 
					        <Component class="javax.swing.JSeparator" name="jSeparator1">
 | 
				
			||||||
 | 
					        </Component>
 | 
				
			||||||
 | 
					        <Component class="javax.swing.JLabel" name="jLPrix">
 | 
				
			||||||
 | 
					          <Properties>
 | 
				
			||||||
 | 
					            <Property name="text" type="java.lang.String" value="Prix :"/>
 | 
				
			||||||
 | 
					          </Properties>
 | 
				
			||||||
 | 
					        </Component>
 | 
				
			||||||
 | 
					      </SubComponents>
 | 
				
			||||||
 | 
					    </Container>
 | 
				
			||||||
 | 
					  </SubComponents>
 | 
				
			||||||
</Form>
 | 
					</Form>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,6 +4,8 @@
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
package presentation;
 | 
					package presentation;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import Metier.Medicament;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * @author emile.lalorcey
 | 
					 * @author emile.lalorcey
 | 
				
			||||||
@@ -13,7 +15,7 @@ public class jffInfoMedoc extends javax.swing.JFrame {
 | 
				
			|||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Creates new form jffInfoMedoc
 | 
					     * Creates new form jffInfoMedoc
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public jffInfoMedoc() {
 | 
					    public jffInfoMedoc(Medicament medocTrouve) {
 | 
				
			||||||
        initComponents();
 | 
					        initComponents();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -26,17 +28,97 @@ public class jffInfoMedoc extends javax.swing.JFrame {
 | 
				
			|||||||
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
 | 
					    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
 | 
				
			||||||
    private void initComponents() {
 | 
					    private void initComponents() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jPFond = new javax.swing.JPanel();
 | 
				
			||||||
 | 
					        jLNomMedoc = new javax.swing.JLabel();
 | 
				
			||||||
 | 
					        jLabel1 = new javax.swing.JLabel();
 | 
				
			||||||
 | 
					        jLComposition = new javax.swing.JLabel();
 | 
				
			||||||
 | 
					        jLContrindication = new javax.swing.JLabel();
 | 
				
			||||||
 | 
					        jLImage = new javax.swing.JLabel();
 | 
				
			||||||
 | 
					        jSeparator1 = new javax.swing.JSeparator();
 | 
				
			||||||
 | 
					        jLPrix = new javax.swing.JLabel();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        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.setText("Nom du M<>doc");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jLabel1.setText("Les effets du m<>dicament");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jLComposition.setText("Composition du m<>doc");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jLContrindication.setText("Contrindications du m<>doc");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jLImage.setText("Image");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        jLPrix.setText("Prix :");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        javax.swing.GroupLayout jPFondLayout = new javax.swing.GroupLayout(jPFond);
 | 
				
			||||||
 | 
					        jPFond.setLayout(jPFondLayout);
 | 
				
			||||||
 | 
					        jPFondLayout.setHorizontalGroup(
 | 
				
			||||||
 | 
					            jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
 | 
					            .addGroup(jPFondLayout.createSequentialGroup()
 | 
				
			||||||
 | 
					                .addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
 | 
					                    .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING)
 | 
				
			||||||
 | 
					                    .addGroup(jPFondLayout.createSequentialGroup()
 | 
				
			||||||
 | 
					                        .addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
 | 
					                            .addGroup(jPFondLayout.createSequentialGroup()
 | 
				
			||||||
 | 
					                                .addContainerGap()
 | 
				
			||||||
 | 
					                                .addComponent(jLContrindication, javax.swing.GroupLayout.PREFERRED_SIZE, 265, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
 | 
					                                .addGap(18, 18, 18)
 | 
				
			||||||
 | 
					                                .addComponent(jLPrix, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
 | 
				
			||||||
 | 
					                            .addGroup(jPFondLayout.createSequentialGroup()
 | 
				
			||||||
 | 
					                                .addContainerGap()
 | 
				
			||||||
 | 
					                                .addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
 | 
					                                    .addComponent(jLComposition, javax.swing.GroupLayout.PREFERRED_SIZE, 265, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
 | 
					                                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 265, javax.swing.GroupLayout.PREFERRED_SIZE))
 | 
				
			||||||
 | 
					                                .addGap(18, 18, 18)
 | 
				
			||||||
 | 
					                                .addComponent(jLImage, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)))
 | 
				
			||||||
 | 
					                        .addGap(0, 26, Short.MAX_VALUE)))
 | 
				
			||||||
 | 
					                .addContainerGap())
 | 
				
			||||||
 | 
					            .addGroup(jPFondLayout.createSequentialGroup()
 | 
				
			||||||
 | 
					                .addGap(168, 168, 168)
 | 
				
			||||||
 | 
					                .addComponent(jLNomMedoc)
 | 
				
			||||||
 | 
					                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
 | 
					        jPFondLayout.setVerticalGroup(
 | 
				
			||||||
 | 
					            jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
 | 
					            .addGroup(jPFondLayout.createSequentialGroup()
 | 
				
			||||||
 | 
					                .addContainerGap()
 | 
				
			||||||
 | 
					                .addComponent(jLNomMedoc)
 | 
				
			||||||
 | 
					                .addGap(39, 39, 39)
 | 
				
			||||||
 | 
					                .addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
 | 
				
			||||||
 | 
					                    .addGroup(jPFondLayout.createSequentialGroup()
 | 
				
			||||||
 | 
					                        .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
 | 
					                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 | 
				
			||||||
 | 
					                        .addComponent(jLComposition, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE))
 | 
				
			||||||
 | 
					                    .addComponent(jLImage, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
 | 
				
			||||||
 | 
					                .addGroup(jPFondLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
 | 
					                    .addGroup(jPFondLayout.createSequentialGroup()
 | 
				
			||||||
 | 
					                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, 18, Short.MAX_VALUE)
 | 
				
			||||||
 | 
					                        .addComponent(jLContrindication, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
 | 
					                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 23, Short.MAX_VALUE))
 | 
				
			||||||
 | 
					                    .addGroup(jPFondLayout.createSequentialGroup()
 | 
				
			||||||
 | 
					                        .addGap(35, 35, 35)
 | 
				
			||||||
 | 
					                        .addComponent(jLPrix, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
 | 
					                        .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)
 | 
				
			||||||
 | 
					                .addGap(169, 169, 169))
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        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(
 | 
				
			||||||
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
					            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
            .addGap(0, 400, Short.MAX_VALUE)
 | 
					            .addGroup(layout.createSequentialGroup()
 | 
				
			||||||
 | 
					                .addContainerGap()
 | 
				
			||||||
 | 
					                .addComponent(jPFond, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 | 
				
			||||||
 | 
					                .addContainerGap())
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
        layout.setVerticalGroup(
 | 
					        layout.setVerticalGroup(
 | 
				
			||||||
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
					            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
            .addGap(0, 300, Short.MAX_VALUE)
 | 
					            .addGroup(layout.createSequentialGroup()
 | 
				
			||||||
 | 
					                .addComponent(jPFond, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 | 
				
			||||||
 | 
					                .addGap(16, 16, 16))
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        pack();
 | 
					        pack();
 | 
				
			||||||
@@ -72,11 +154,18 @@ public class jffInfoMedoc 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 jffInfoMedoc().setVisible(true);
 | 
					 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Variables declaration - do not modify//GEN-BEGIN:variables
 | 
					    // Variables declaration - do not modify//GEN-BEGIN:variables
 | 
				
			||||||
 | 
					    private javax.swing.JLabel jLComposition;
 | 
				
			||||||
 | 
					    private javax.swing.JLabel jLContrindication;
 | 
				
			||||||
 | 
					    private javax.swing.JLabel jLImage;
 | 
				
			||||||
 | 
					    private javax.swing.JLabel jLNomMedoc;
 | 
				
			||||||
 | 
					    private javax.swing.JLabel jLPrix;
 | 
				
			||||||
 | 
					    private javax.swing.JLabel jLabel1;
 | 
				
			||||||
 | 
					    private javax.swing.JPanel jPFond;
 | 
				
			||||||
 | 
					    private javax.swing.JSeparator jSeparator1;
 | 
				
			||||||
    // End of variables declaration//GEN-END:variables
 | 
					    // End of variables declaration//GEN-END:variables
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -26,11 +26,6 @@
 | 
				
			|||||||
  <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" alignment="1" attributes="0">
 | 
					 | 
				
			||||||
              <EmptySpace min="0" pref="0" max="32767" attributes="0"/>
 | 
					 | 
				
			||||||
              <Component id="jBpraticien" min="-2" pref="94" max="-2" attributes="0"/>
 | 
					 | 
				
			||||||
              <EmptySpace min="-2" pref="147" max="-2" attributes="0"/>
 | 
					 | 
				
			||||||
          </Group>
 | 
					 | 
				
			||||||
          <Group type="102" attributes="0">
 | 
					          <Group type="102" attributes="0">
 | 
				
			||||||
              <EmptySpace min="-2" pref="137" max="-2" attributes="0"/>
 | 
					              <EmptySpace min="-2" pref="137" max="-2" attributes="0"/>
 | 
				
			||||||
              <Component id="jLChoixPro" min="-2" max="-2" attributes="0"/>
 | 
					              <Component id="jLChoixPro" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
@@ -38,6 +33,11 @@
 | 
				
			|||||||
              <Component id="jLLogo" min="-2" pref="73" max="-2" attributes="0"/>
 | 
					              <Component id="jLLogo" min="-2" pref="73" max="-2" attributes="0"/>
 | 
				
			||||||
              <EmptySpace max="-2" attributes="0"/>
 | 
					              <EmptySpace max="-2" attributes="0"/>
 | 
				
			||||||
          </Group>
 | 
					          </Group>
 | 
				
			||||||
 | 
					          <Group type="102" alignment="1" attributes="0">
 | 
				
			||||||
 | 
					              <EmptySpace min="0" pref="0" max="32767" attributes="0"/>
 | 
				
			||||||
 | 
					              <Component id="jBpraticien" min="-2" pref="94" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					              <EmptySpace min="-2" pref="147" max="-2" attributes="0"/>
 | 
				
			||||||
 | 
					          </Group>
 | 
				
			||||||
          <Group type="102" alignment="1" attributes="0">
 | 
					          <Group type="102" alignment="1" attributes="0">
 | 
				
			||||||
              <EmptySpace max="32767" attributes="0"/>
 | 
					              <EmptySpace max="32767" attributes="0"/>
 | 
				
			||||||
              <Group type="103" groupAlignment="0" attributes="0">
 | 
					              <Group type="103" groupAlignment="0" attributes="0">
 | 
				
			||||||
@@ -47,7 +47,7 @@
 | 
				
			|||||||
                  </Group>
 | 
					                  </Group>
 | 
				
			||||||
                  <Group type="102" alignment="1" attributes="0">
 | 
					                  <Group type="102" alignment="1" attributes="0">
 | 
				
			||||||
                      <Component id="jBvisiteurMedical" min="-2" max="-2" attributes="0"/>
 | 
					                      <Component id="jBvisiteurMedical" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
                      <EmptySpace min="-2" pref="136" max="-2" attributes="0"/>
 | 
					                      <EmptySpace min="-2" pref="137" max="-2" attributes="0"/>
 | 
				
			||||||
                  </Group>
 | 
					                  </Group>
 | 
				
			||||||
              </Group>
 | 
					              </Group>
 | 
				
			||||||
          </Group>
 | 
					          </Group>
 | 
				
			||||||
@@ -68,9 +68,9 @@
 | 
				
			|||||||
              </Group>
 | 
					              </Group>
 | 
				
			||||||
              <EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
 | 
					              <EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
 | 
				
			||||||
              <Component id="jBpraticien" min="-2" pref="31" max="-2" attributes="0"/>
 | 
					              <Component id="jBpraticien" min="-2" pref="31" max="-2" attributes="0"/>
 | 
				
			||||||
              <EmptySpace min="-2" pref="29" max="-2" attributes="0"/>
 | 
					              <EmptySpace type="separate" max="-2" attributes="0"/>
 | 
				
			||||||
              <Component id="jBvisiteurMedical" min="-2" pref="31" max="-2" attributes="0"/>
 | 
					              <Component id="jBvisiteurMedical" min="-2" pref="31" max="-2" attributes="0"/>
 | 
				
			||||||
              <EmptySpace min="-2" pref="26" max="-2" attributes="0"/>
 | 
					              <EmptySpace min="-2" pref="37" max="-2" attributes="0"/>
 | 
				
			||||||
              <Component id="jBquitter" min="-2" max="-2" attributes="0"/>
 | 
					              <Component id="jBquitter" min="-2" max="-2" attributes="0"/>
 | 
				
			||||||
              <EmptySpace pref="60" max="32767" attributes="0"/>
 | 
					              <EmptySpace pref="60" max="32767" attributes="0"/>
 | 
				
			||||||
          </Group>
 | 
					          </Group>
 | 
				
			||||||
@@ -95,6 +95,9 @@
 | 
				
			|||||||
      <Properties>
 | 
					      <Properties>
 | 
				
			||||||
        <Property name="text" type="java.lang.String" value="visiteur medical"/>
 | 
					        <Property name="text" type="java.lang.String" value="visiteur medical"/>
 | 
				
			||||||
      </Properties>
 | 
					      </Properties>
 | 
				
			||||||
 | 
					      <Events>
 | 
				
			||||||
 | 
					        <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jBvisiteurMedicalActionPerformed"/>
 | 
				
			||||||
 | 
					      </Events>
 | 
				
			||||||
    </Component>
 | 
					    </Component>
 | 
				
			||||||
    <Component class="javax.swing.JButton" name="jBquitter">
 | 
					    <Component class="javax.swing.JButton" name="jBquitter">
 | 
				
			||||||
      <Properties>
 | 
					      <Properties>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -45,6 +45,11 @@ public class jffProfession extends javax.swing.JFrame {
 | 
				
			|||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        jBvisiteurMedical.setText("visiteur medical");
 | 
					        jBvisiteurMedical.setText("visiteur medical");
 | 
				
			||||||
 | 
					        jBvisiteurMedical.addActionListener(new java.awt.event.ActionListener() {
 | 
				
			||||||
 | 
					            public void actionPerformed(java.awt.event.ActionEvent evt) {
 | 
				
			||||||
 | 
					                jBvisiteurMedicalActionPerformed(evt);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        jBquitter.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/quitter.png"))); // NOI18N
 | 
					        jBquitter.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/quitter.png"))); // NOI18N
 | 
				
			||||||
        jBquitter.setText("Quitter");
 | 
					        jBquitter.setText("Quitter");
 | 
				
			||||||
@@ -60,16 +65,16 @@ public class jffProfession extends javax.swing.JFrame {
 | 
				
			|||||||
        getContentPane().setLayout(layout);
 | 
					        getContentPane().setLayout(layout);
 | 
				
			||||||
        layout.setHorizontalGroup(
 | 
					        layout.setHorizontalGroup(
 | 
				
			||||||
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
					            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
 | 
					 | 
				
			||||||
                .addGap(0, 0, Short.MAX_VALUE)
 | 
					 | 
				
			||||||
                .addComponent(jBpraticien, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
					 | 
				
			||||||
                .addGap(147, 147, 147))
 | 
					 | 
				
			||||||
            .addGroup(layout.createSequentialGroup()
 | 
					            .addGroup(layout.createSequentialGroup()
 | 
				
			||||||
                .addGap(137, 137, 137)
 | 
					                .addGap(137, 137, 137)
 | 
				
			||||||
                .addComponent(jLChoixPro)
 | 
					                .addComponent(jLChoixPro)
 | 
				
			||||||
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 46, Short.MAX_VALUE)
 | 
					                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 46, Short.MAX_VALUE)
 | 
				
			||||||
                .addComponent(jLLogo, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
					                .addComponent(jLLogo, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
                .addContainerGap())
 | 
					                .addContainerGap())
 | 
				
			||||||
 | 
					            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
 | 
				
			||||||
 | 
					                .addGap(0, 0, Short.MAX_VALUE)
 | 
				
			||||||
 | 
					                .addComponent(jBpraticien, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
 | 
					                .addGap(147, 147, 147))
 | 
				
			||||||
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
 | 
					            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
 | 
				
			||||||
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 | 
					                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 | 
				
			||||||
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
					                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
@@ -78,7 +83,7 @@ public class jffProfession extends javax.swing.JFrame {
 | 
				
			|||||||
                        .addGap(149, 149, 149))
 | 
					                        .addGap(149, 149, 149))
 | 
				
			||||||
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
 | 
					                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
 | 
				
			||||||
                        .addComponent(jBvisiteurMedical)
 | 
					                        .addComponent(jBvisiteurMedical)
 | 
				
			||||||
                        .addGap(136, 136, 136))))
 | 
					                        .addGap(137, 137, 137))))
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
        layout.setVerticalGroup(
 | 
					        layout.setVerticalGroup(
 | 
				
			||||||
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
					            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 | 
				
			||||||
@@ -92,9 +97,9 @@ public class jffProfession extends javax.swing.JFrame {
 | 
				
			|||||||
                        .addComponent(jLLogo, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)))
 | 
					                        .addComponent(jLLogo, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)))
 | 
				
			||||||
                .addGap(42, 42, 42)
 | 
					                .addGap(42, 42, 42)
 | 
				
			||||||
                .addComponent(jBpraticien, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
					                .addComponent(jBpraticien, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
                .addGap(29, 29, 29)
 | 
					                .addGap(18, 18, 18)
 | 
				
			||||||
                .addComponent(jBvisiteurMedical, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
					                .addComponent(jBvisiteurMedical, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
 | 
				
			||||||
                .addGap(26, 26, 26)
 | 
					                .addGap(37, 37, 37)
 | 
				
			||||||
                .addComponent(jBquitter)
 | 
					                .addComponent(jBquitter)
 | 
				
			||||||
                .addContainerGap(60, Short.MAX_VALUE))
 | 
					                .addContainerGap(60, Short.MAX_VALUE))
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
@@ -103,13 +108,19 @@ public class jffProfession extends javax.swing.JFrame {
 | 
				
			|||||||
    }// </editor-fold>//GEN-END:initComponents
 | 
					    }// </editor-fold>//GEN-END:initComponents
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private void jBpraticienActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBpraticienActionPerformed
 | 
					    private void jBpraticienActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBpraticienActionPerformed
 | 
				
			||||||
        // TODO add your handling code here:
 | 
					        new jffConnexion(0).setVisible(true);   
 | 
				
			||||||
 | 
					        this.setVisible(false);
 | 
				
			||||||
    }//GEN-LAST:event_jBpraticienActionPerformed
 | 
					    }//GEN-LAST:event_jBpraticienActionPerformed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private void jBquitterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBquitterActionPerformed
 | 
					    private void jBquitterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBquitterActionPerformed
 | 
				
			||||||
        System.exit(0);
 | 
					        System.exit(0);
 | 
				
			||||||
    }//GEN-LAST:event_jBquitterActionPerformed
 | 
					    }//GEN-LAST:event_jBquitterActionPerformed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private void jBvisiteurMedicalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBvisiteurMedicalActionPerformed
 | 
				
			||||||
 | 
					        new jffConnexion(1).setVisible(true);
 | 
				
			||||||
 | 
					        this.setVisible(false);
 | 
				
			||||||
 | 
					    }//GEN-LAST:event_jBvisiteurMedicalActionPerformed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * @param args the command line arguments
 | 
					     * @param args the command line arguments
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
 
 | 
				
			|||||||