Compare commits

...

1 Commits

Author SHA1 Message Date
lalor
e599f9e2d1 Début de familleMedicament et praticien 2025-03-11 20:33:51 +01:00
7 changed files with 156 additions and 39 deletions

View File

@ -48,7 +48,8 @@ javac.source=21
javac.target=21 javac.target=21
javac.test.classpath=\ javac.test.classpath=\
${javac.classpath}:\ ${javac.classpath}:\
${build.classes.dir} ${build.classes.dir}:\
${libs.junit_5.classpath}
javac.test.modulepath=\ javac.test.modulepath=\
${javac.modulepath} ${javac.modulepath}
javac.test.processorpath=\ javac.test.processorpath=\

View File

@ -0,0 +1,23 @@
/*
* 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 lalor
*/
public class familleMedicament {
private String nomFamille;
public familleMedicament(String nom){
this.nomFamille = nom;
}
public String getNom(){
return this.getNom();
}
}

View File

@ -0,0 +1,83 @@
/*
* 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 lalor
*/
public class praticien {
private int idPraticien;
private String nomPraticien;
private String prenom;
private String typePraticien;
/**
* Constructeur de la classe praticien
* avec une initialisation des variables
* @param idPraticien
* @param nomPraticien
* @param prenom
* @param typePraticien
*/
public praticien(int idPraticien, String nomPraticien, String prenom, String typePraticien) {
this.idPraticien = idPraticien;
this.nomPraticien = nomPraticien;
this.prenom = prenom;
this.typePraticien = typePraticien;
}
/**
* Getteur de l'id du pratitien
* @return idPraticien
*/
public int getIdPraticien() {
return this.idPraticien;
}
/**
* Getteur du nom du pratitien
* @return nomPraticien
*/
public String getNomPraticien() {
return this.nomPraticien;
}
/**
* Getteur du prénom du pratitien
* @return prenom
*/
public String getPrenom() {
return this.prenom;
}
/**
* Getteur du type de pratitien
* @return typePraticien
*/
public String getTypePraticien() {
return this.typePraticien;
}
/**
* Fonction toString permettant
* de connaître les valeures des attribut de l'objet
* @return valeurs des attributs
*/
@Override
public String toString(){
return this.getIdPraticien() + this.getNomPraticien() + this.getPrenom() + this.getTypePraticien();
}
}

View File

@ -47,14 +47,20 @@
</Group> </Group>
<EmptySpace pref="102" max="32767" attributes="0"/> <EmptySpace pref="102" max="32767" attributes="0"/>
</Group> </Group>
<Group type="102" alignment="1" attributes="0">
<EmptySpace max="32767" attributes="0"/>
<Component id="jLabel2" min="-2" max="-2" 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">
<Group type="102" alignment="0" attributes="0"> <Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/> <Component id="jLabel2" min="-2" pref="38" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="4" max="-2" attributes="0"/>
<Component id="jLabel1" min="-2" max="-2" attributes="0"/> <Component id="jLabel1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="32" max="-2" attributes="0"/> <EmptySpace min="-2" pref="48" max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0"> <Group type="103" groupAlignment="3" attributes="0">
<Component id="jTFIdentifiant" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="jTFIdentifiant" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLIdentifiant" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="jLIdentifiant" alignment="3" min="-2" max="-2" attributes="0"/>
@ -69,7 +75,7 @@
<Component id="jBValider" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="jBValider" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jBquitter" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="jBquitter" alignment="3" min="-2" max="-2" attributes="0"/>
</Group> </Group>
<EmptySpace pref="64" max="32767" attributes="0"/> <EmptySpace pref="48" max="32767" attributes="0"/>
</Group> </Group>
</Group> </Group>
</DimensionLayout> </DimensionLayout>
@ -81,9 +87,6 @@
</Properties> </Properties>
</Component> </Component>
<Component class="javax.swing.JTextField" name="jTFIdentifiant"> <Component class="javax.swing.JTextField" name="jTFIdentifiant">
<Properties>
<Property name="text" type="java.lang.String" value="jTextField1"/>
</Properties>
<Events> <Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTFIdentifiantActionPerformed"/> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTFIdentifiantActionPerformed"/>
</Events> </Events>
@ -119,5 +122,12 @@
<Property name="text" type="java.lang.String" value="Mot de passe :"/> <Property name="text" type="java.lang.String" value="Mot de passe :"/>
</Properties> </Properties>
</Component> </Component>
<Component class="javax.swing.JLabel" name="jLabel2">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/img/logodetoure.gif"/>
</Property>
</Properties>
</Component>
</SubComponents> </SubComponents>
</Form> </Form>

View File

@ -33,12 +33,12 @@ public class jffConnexion extends javax.swing.JFrame {
jBquitter = new javax.swing.JButton(); jBquitter = new javax.swing.JButton();
jLIdentifiant = new javax.swing.JLabel(); jLIdentifiant = new javax.swing.JLabel();
jLmdp = new javax.swing.JLabel(); jLmdp = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jLabel1.setText("Bonjour veuillez vous identifier"); jLabel1.setText("Bonjour veuillez vous identifier");
jTFIdentifiant.setText("jTextField1");
jTFIdentifiant.addActionListener(new java.awt.event.ActionListener() { jTFIdentifiant.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) { public void actionPerformed(java.awt.event.ActionEvent evt) {
jTFIdentifiantActionPerformed(evt); jTFIdentifiantActionPerformed(evt);
@ -57,6 +57,8 @@ public class jffConnexion extends javax.swing.JFrame {
jLmdp.setText("Mot de passe :"); jLmdp.setText("Mot de passe :");
jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/logodetoure.gif"))); // NOI18N
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(
@ -79,13 +81,18 @@ public class jffConnexion extends javax.swing.JFrame {
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPFmdp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addComponent(jPFmdp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(102, Short.MAX_VALUE)) .addContainerGap(102, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel2)
.addContainerGap())
); );
layout.setVerticalGroup( layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup() .addGroup(layout.createSequentialGroup()
.addGap(42, 42, 42) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(4, 4, 4)
.addComponent(jLabel1) .addComponent(jLabel1)
.addGap(32, 32, 32) .addGap(48, 48, 48)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jTFIdentifiant, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTFIdentifiant, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLIdentifiant)) .addComponent(jLIdentifiant))
@ -97,7 +104,7 @@ public class jffConnexion extends javax.swing.JFrame {
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jBValider) .addComponent(jBValider)
.addComponent(jBquitter)) .addComponent(jBquitter))
.addContainerGap(64, Short.MAX_VALUE)) .addContainerGap(48, Short.MAX_VALUE))
); );
pack(); pack();
@ -147,6 +154,7 @@ public class jffConnexion extends javax.swing.JFrame {
private javax.swing.JButton jBquitter; private javax.swing.JButton jBquitter;
private javax.swing.JLabel jLIdentifiant; private javax.swing.JLabel jLIdentifiant;
private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLmdp; private javax.swing.JLabel jLmdp;
private javax.swing.JPasswordField jPFmdp; private javax.swing.JPasswordField jPFmdp;
private javax.swing.JTextField jTFIdentifiant; private javax.swing.JTextField jTFIdentifiant;

View File

@ -34,8 +34,8 @@
<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"/>
<EmptySpace pref="46" max="32767" attributes="0"/> <EmptySpace pref="69" max="32767" attributes="0"/>
<Component id="jLLogo" min="-2" pref="73" max="-2" attributes="0"/> <Component id="jLabel2" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/>
</Group> </Group>
<Group type="102" alignment="1" attributes="0"> <Group type="102" alignment="1" attributes="0">
@ -55,24 +55,19 @@
</DimensionLayout> </DimensionLayout>
<DimensionLayout dim="1"> <DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0"> <Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<EmptySpace min="-2" pref="25" max="-2" attributes="0"/>
<Component id="jLChoixPro" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0"> <Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/>
<Component id="jLLogo" min="-2" pref="52" max="-2" attributes="0"/> <Group type="103" groupAlignment="1" attributes="0">
<Component id="jLChoixPro" min="-2" max="-2" attributes="0"/>
<Component id="jLabel2" min="-2" pref="38" max="-2" attributes="0"/>
</Group> </Group>
</Group> <EmptySpace min="-2" pref="59" 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 min="-2" pref="29" 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="26" 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="57" max="32767" attributes="0"/>
</Group> </Group>
</Group> </Group>
</DimensionLayout> </DimensionLayout>
@ -107,7 +102,7 @@
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jBquitterActionPerformed"/> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jBquitterActionPerformed"/>
</Events> </Events>
</Component> </Component>
<Component class="javax.swing.JLabel" name="jLLogo"> <Component class="javax.swing.JLabel" name="jLabel2">
<Properties> <Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/img/logodetoure.gif"/> <Image iconType="3" name="/img/logodetoure.gif"/>

View File

@ -30,7 +30,7 @@ public class jffProfession extends javax.swing.JFrame {
jBpraticien = new javax.swing.JButton(); jBpraticien = new javax.swing.JButton();
jBvisiteurMedical = new javax.swing.JButton(); jBvisiteurMedical = new javax.swing.JButton();
jBquitter = new javax.swing.JButton(); jBquitter = new javax.swing.JButton();
jLLogo = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setBackground(new java.awt.Color(255, 102, 153)); setBackground(new java.awt.Color(255, 102, 153));
@ -54,7 +54,7 @@ public class jffProfession extends javax.swing.JFrame {
} }
}); });
jLLogo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/logodetoure.gif"))); // NOI18N jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/logodetoure.gif"))); // NOI18N
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout); getContentPane().setLayout(layout);
@ -67,8 +67,8 @@ public class jffProfession extends javax.swing.JFrame {
.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, 69, Short.MAX_VALUE)
.addComponent(jLLogo, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2)
.addContainerGap()) .addContainerGap())
.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)
@ -82,21 +82,18 @@ public class jffProfession extends javax.swing.JFrame {
); );
layout.setVerticalGroup( layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(25, 25, 25)
.addComponent(jLChoixPro))
.addGroup(layout.createSequentialGroup() .addGroup(layout.createSequentialGroup()
.addContainerGap() .addContainerGap()
.addComponent(jLLogo, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGap(42, 42, 42) .addComponent(jLChoixPro)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(59, 59, 59)
.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(29, 29, 29)
.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(26, 26, 26)
.addComponent(jBquitter) .addComponent(jBquitter)
.addContainerGap(60, Short.MAX_VALUE)) .addContainerGap(57, Short.MAX_VALUE))
); );
pack(); pack();
@ -150,6 +147,6 @@ public class jffProfession extends javax.swing.JFrame {
private javax.swing.JButton jBquitter; private javax.swing.JButton jBquitter;
private javax.swing.JButton jBvisiteurMedical; private javax.swing.JButton jBvisiteurMedical;
private javax.swing.JLabel jLChoixPro; private javax.swing.JLabel jLChoixPro;
private javax.swing.JLabel jLLogo; private javax.swing.JLabel jLabel2;
// End of variables declaration//GEN-END:variables // End of variables declaration//GEN-END:variables
} }