MAJ 3.1
Ajout de l'affichage Cours, modifications de formes et de contenues dans l'application
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
package controleur;
|
||||
|
||||
public class Article {
|
||||
private int id, prix, qtestock;
|
||||
private int id, prix, qtestock, idcategorie;
|
||||
private String reference, categorie, description, libelle, imagearticle;
|
||||
public Article() {//ALL
|
||||
this.id=this.prix=this.qtestock=0;
|
||||
this.id=this.idcategorie=this.prix=this.qtestock=0;
|
||||
this.reference=this.categorie=this.description=this.libelle="";
|
||||
}
|
||||
public Article (int id, String reference, String categorie, String description, String libelle, int prix, int qtestock, String imagearticle)
|
||||
public Article (int id, String reference, int idcategorie, String categorie, String description, String libelle, int prix, int qtestock, String imagearticle)
|
||||
{//ALL
|
||||
this.id= id;
|
||||
this.reference= reference;
|
||||
this.idcategorie= idcategorie;
|
||||
this.categorie= categorie;
|
||||
this.description = description;
|
||||
this.libelle = libelle;
|
||||
@@ -18,10 +19,10 @@ public class Article {
|
||||
this.qtestock = qtestock;
|
||||
this.imagearticle = imagearticle;
|
||||
}
|
||||
public Article (String reference, String categorie, String description, String libelle, int prix, int qtestock)
|
||||
public Article (String reference, int idcategorie, String description, String libelle, int prix, int qtestock)
|
||||
{//ADD & Modify
|
||||
this.reference = reference;
|
||||
this.categorie= categorie;
|
||||
this.idcategorie= idcategorie;
|
||||
this.description = description;
|
||||
this.libelle = libelle;
|
||||
this.prix = prix;
|
||||
@@ -30,8 +31,14 @@ public class Article {
|
||||
public Article (String reference) {//DELETE
|
||||
this.reference = reference;
|
||||
}
|
||||
public Article (int idcategorie,String libelle)
|
||||
{// Categories
|
||||
this.idcategorie= idcategorie;
|
||||
this.libelle = libelle;
|
||||
}
|
||||
public int getId() { return id; }
|
||||
public String getReference() { return reference; }
|
||||
public int getidCategorie() { return idcategorie; }
|
||||
public String getCategorie() { return categorie; }
|
||||
public int getPrix() { return prix; }
|
||||
public String getDescription() { return description; }
|
||||
@@ -40,6 +47,7 @@ public class Article {
|
||||
public String getImageArticle() { return imagearticle; }
|
||||
public void setid(int id) { this.id = id; }
|
||||
public void setReference(String reference) { this.reference = reference; }
|
||||
public void setidCategorie(int idcategorie) { this.idcategorie = idcategorie; }
|
||||
public void setCategorie(String categorie) { this.categorie = categorie; }
|
||||
public void setPrix(int prix) { this.prix = prix; }
|
||||
public void setDescription(String description) { this.description = description; }
|
||||
|
||||
@@ -34,6 +34,10 @@ public class Cheval {
|
||||
{//DELETE
|
||||
this.nom = nom;
|
||||
}
|
||||
public Cheval (int id, String nom) {
|
||||
this.id= id;
|
||||
this.nom= nom;
|
||||
}
|
||||
public int getId() { return id; }
|
||||
public String getNom() { return nom; }
|
||||
public String getSexe() { return sexe; }
|
||||
|
||||
@@ -2,49 +2,71 @@ package controleur;
|
||||
|
||||
public class Cours
|
||||
{
|
||||
private int idcours;
|
||||
private String datecours, heuredebut, heurefin;
|
||||
private int idcours, ideleve, idcheval, idformateur;
|
||||
private String datecours, heure, heuredebut, heurefin, note, prenomformateur, nomformateur, nomeleve, prenomeleve, nomcheval, formateur, eleve;
|
||||
public Cours()
|
||||
{
|
||||
this.idcours=0;
|
||||
this.datecours = this.heuredebut=this.heurefin="";
|
||||
this.idcours=this.ideleve=this.idcheval=this.idformateur=0;
|
||||
this.datecours=this.heure=this.heuredebut=this.heurefin=this.note=this.formateur=this.prenomformateur=this.nomformateur=this.eleve=this.nomeleve=this.prenomeleve=this.nomcheval="";
|
||||
}
|
||||
public Cours (int idcours, String datecours, String heuredebut, String heurefin)
|
||||
public Cours (int idcours, int ideleve, int idcheval, int idformateur, String datecours, String note, String heuredebut, String heurefin, String heure,String formateur, String eleve, String nomcheval)
|
||||
{
|
||||
this.idcours= idcours;
|
||||
this.datecours = datecours;
|
||||
this.heuredebut = heuredebut;
|
||||
this.heurefin = heurefin;
|
||||
}
|
||||
public Cours ( String datecours, String heuredebut, String heurefin)
|
||||
{
|
||||
this.idcours= 0;
|
||||
this.datecours = datecours;
|
||||
this.heuredebut = heuredebut;
|
||||
this.heurefin = heurefin;
|
||||
}
|
||||
public int getIdCours() {
|
||||
return idcours;
|
||||
}
|
||||
public void setIdCours(int idcours) {
|
||||
this.idcours = idcours;
|
||||
}
|
||||
public String getDateCours() {
|
||||
return datecours;
|
||||
}
|
||||
public void setDateCours(String datecours) {
|
||||
this.ideleve = ideleve;
|
||||
this.idcheval = idcheval;
|
||||
this.idformateur = idformateur;
|
||||
this.datecours = datecours;
|
||||
}
|
||||
public String getHeureDebut() {
|
||||
return heuredebut;
|
||||
}
|
||||
public void setHeureDebut(String heuredebut) {
|
||||
this.note = note;
|
||||
this.heuredebut = heuredebut;
|
||||
}
|
||||
public String getHeureFin() {
|
||||
return heurefin;
|
||||
}
|
||||
public void setHeureFin(String heurefin) {
|
||||
this.heurefin = heurefin;
|
||||
this.heure = heure;
|
||||
this.datecours = datecours;
|
||||
this.formateur = formateur;
|
||||
this.eleve = eleve;
|
||||
this.nomcheval = nomcheval;
|
||||
|
||||
}
|
||||
}
|
||||
public Cours (int idcours, String datecours, String heuredebut, String heurefin, String note)
|
||||
{
|
||||
this.idcours= idcours;
|
||||
this.datecours = datecours;
|
||||
this.heuredebut = heuredebut;
|
||||
this.heurefin = heurefin;
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
public int getIdCours() {return idcours;}
|
||||
public int getIdFormateur() {return idformateur;}
|
||||
public int getIdEleve() {return ideleve;}
|
||||
public int getIdCheval() {return idcheval;}
|
||||
public String getDateCours() {return datecours;}
|
||||
public String getHeure() {return heure;}
|
||||
public String getHeureDebut() {return heuredebut;}
|
||||
public String getHeureFin() {return heurefin;}
|
||||
public String getNote() {return note;}
|
||||
public String getFormateur() {return formateur;}
|
||||
public String getprenomFormateur() {return prenomformateur;}
|
||||
public String getnomFormateur() {return nomformateur;}
|
||||
public String getEleve() {return eleve;}
|
||||
public String getnomEleve() {return nomeleve;}
|
||||
public String getprenomEleve() {return prenomeleve;}
|
||||
public String getnomCheval() {return nomcheval;}
|
||||
|
||||
public void setIdCours(int idcours) {this.idcours = idcours;}
|
||||
public void setIdFormateur(int idformateur) {this.idformateur = idformateur;}
|
||||
public void setIdEleve(int ideleve) {this.ideleve = ideleve;}
|
||||
public void setIdCheval(int idcheval) {this.idcheval = idcheval;}
|
||||
public void setDateCours(String datecours) {this.datecours = datecours;}
|
||||
public void setHeure(String heure) {this.heure = heure;}
|
||||
public void setHeureDebut(String heuredebut) {this.heuredebut = heuredebut;}
|
||||
public void setHeureFin(String heurefin) {this.heurefin = heurefin;}
|
||||
public void setNote(String note) {this.note = note;}
|
||||
public void setprenomFormateur(String prenomformateur) {this.prenomformateur = prenomformateur;}
|
||||
public void setFormateur(String formateur) {this.formateur = formateur;}
|
||||
public void setnomFormateur(String nomformateur) {this.nomformateur = nomformateur;}
|
||||
public void setEleve(String eleve) {this.eleve = eleve;}
|
||||
public void setnomEleve(String nomeleve) {this.nomeleve = nomeleve;}
|
||||
public void setprenomEleve(String prenomeleve) {this.prenomeleve = prenomeleve;}
|
||||
public void setnomCheval(String nomcheval) {this.nomcheval = nomcheval;}
|
||||
|
||||
}
|
||||
@@ -1,14 +1,19 @@
|
||||
package controleur;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class Eleve
|
||||
{
|
||||
private int id, privilege, age, galop;
|
||||
private String record, pseudo, prenom, nom, sexe, adresse, mdp, mail, imageeleve;
|
||||
public String pseudo, prenom, nom, sexe, adresse, mdp, mail, imageeleve;
|
||||
public String eleve;
|
||||
private Date record;
|
||||
public Eleve() {//ALL
|
||||
this.id=this.privilege=this.age=this.galop=0;
|
||||
this.record=this.pseudo=this.prenom=this.nom=this.sexe=this.adresse=this.mail="";
|
||||
this.pseudo=this.prenom=this.nom=this.sexe=this.adresse=this.mail=this.eleve="";
|
||||
this.record=null;
|
||||
}
|
||||
public Eleve (int id, int privilege, String record, String pseudo, String prenom, String nom, String sexe, int age, String adresse, String mdp, String mail, int galop, String imageeleve)
|
||||
public Eleve (int id, int privilege, Date record, String pseudo, String prenom, String nom, String sexe, int age, String adresse, String mdp, String mail, int galop, String imageeleve, String eleve)
|
||||
{//ALL
|
||||
this.id= id;
|
||||
this.privilege = privilege;
|
||||
@@ -23,6 +28,7 @@ public class Eleve
|
||||
this.mail = mail;
|
||||
this.galop = galop;
|
||||
this.imageeleve = imageeleve;
|
||||
this.eleve = eleve;
|
||||
}
|
||||
public Eleve (String prenom, String nom, String sexe, int age, String adresse, String mail, int galop)
|
||||
{//ADD & Modify
|
||||
@@ -37,9 +43,13 @@ public class Eleve
|
||||
public Eleve (String mail) {//DELETE
|
||||
this.mail = mail;
|
||||
}
|
||||
public Eleve (int id, String eleve) {
|
||||
this.id= id;
|
||||
this.eleve= eleve;
|
||||
}
|
||||
public int getId() { return id; }
|
||||
public int getPrivilege() { return privilege; }
|
||||
public String getRecord() { return record; }
|
||||
public Date getRecord() { return record; }
|
||||
public String getPseudo() { return pseudo; }
|
||||
public String getPrenom() { return prenom; }
|
||||
public String getNom() { return nom; }
|
||||
@@ -50,9 +60,10 @@ public class Eleve
|
||||
public String getMail() { return mail; }
|
||||
public int getGalop() { return galop; }
|
||||
public String getImageEleve() { return imageeleve; }
|
||||
public String getEleve() {return eleve;}
|
||||
public void setid(int id) { this.id = id; }
|
||||
public void setPrivilege(int privilege) { this.privilege = privilege; }
|
||||
public void setrecord(String record) { this.record = record; }
|
||||
public void setrecord(Date record) { this.record = record; }
|
||||
public void setPseudo(String pseudo) { this.pseudo = pseudo; }
|
||||
public void setPrenom(String prenom) { this.prenom = prenom; }
|
||||
public void setNom(String nom) { this.nom = nom; }
|
||||
@@ -63,4 +74,4 @@ public class Eleve
|
||||
public void setMail(String mail) { this.mail = mail; }
|
||||
public void setGalop(int galop) { this.galop = galop; }
|
||||
public void setImageEleve(String imageeleve) { this.imageeleve = imageeleve; }
|
||||
}
|
||||
public void setEleve(String eleve) {this.eleve = eleve;}}
|
||||
@@ -1,16 +1,18 @@
|
||||
package controleur;
|
||||
|
||||
public class Event {
|
||||
private int id, prix;
|
||||
private int id, idcategorie, prix;
|
||||
private String reference, categorie, description, libelle, imageevent, lieu, date;
|
||||
public Event() {//ALL
|
||||
this.id=this.prix=0;
|
||||
this.reference=this.categorie=this.description=this.libelle=this.lieu=this.date="";
|
||||
this.id=this.idcategorie=this.prix=0;
|
||||
this.reference=this.categorie=this.description=this.libelle=this.lieu="";
|
||||
this.date=null;
|
||||
}
|
||||
public Event (int id, String reference, String categorie, String description, String libelle, int prix, String lieu, String date, String imageevent)
|
||||
public Event (int id, String reference, int idcategorie, String categorie, String description, String libelle, int prix, String lieu, String date, String imageevent)
|
||||
{//ALL
|
||||
this.id= id;
|
||||
this.reference= reference;
|
||||
this.idcategorie= idcategorie;
|
||||
this.categorie= categorie;
|
||||
this.description = description;
|
||||
this.libelle = libelle;
|
||||
@@ -19,10 +21,10 @@ public class Event {
|
||||
this.date = date;
|
||||
this.imageevent = imageevent;
|
||||
}
|
||||
public Event (String reference, String categorie, String description, String libelle, int prix, String lieu, String date)
|
||||
public Event (String reference, int idcategorie, String description, String libelle, int prix, String lieu, String date)
|
||||
{//ADD & Modify
|
||||
this.reference = reference;
|
||||
this.categorie= categorie;
|
||||
this.idcategorie= idcategorie;
|
||||
this.description = description;
|
||||
this.libelle = libelle;
|
||||
this.prix = prix;
|
||||
@@ -32,8 +34,14 @@ public class Event {
|
||||
public Event (String reference) {//DELETE
|
||||
this.reference = reference;
|
||||
}
|
||||
public Event (int idcategorie, String libelle)
|
||||
{//ALL C
|
||||
this.idcategorie= idcategorie;
|
||||
this.libelle = libelle;
|
||||
}
|
||||
public int getId() { return id; }
|
||||
public String getReference() { return reference; }
|
||||
public int getidCategorie() { return idcategorie; }
|
||||
public String getCategorie() { return categorie; }
|
||||
public int getPrix() { return prix; }
|
||||
public String getDescription() { return description; }
|
||||
@@ -43,6 +51,7 @@ public class Event {
|
||||
public String getImageEvent() { return imageevent; }
|
||||
public void setid(int id) { this.id = id; }
|
||||
public void setReference(String reference) { this.reference = reference; }
|
||||
public void setidCategorie(int idcategorie) { this.idcategorie = idcategorie; }
|
||||
public void setCategorie(String categorie) { this.categorie = categorie; }
|
||||
public void setPrix(int prix) { this.prix = prix; }
|
||||
public void setDescription(String description) { this.description = description; }
|
||||
|
||||
@@ -3,16 +3,15 @@ package controleur;
|
||||
public class Formateur
|
||||
{
|
||||
private int idformateur, privilege, age, galop;
|
||||
private String login, prenom, nom, sexe, mail, mdp ;
|
||||
public String prenom, nom, sexe, mail, mdp, formateur ;
|
||||
public Formateur()
|
||||
{//ALL
|
||||
this.idformateur=this.privilege=this.age=this.galop=0;
|
||||
this.login=this.prenom=this.nom=this.sexe=this.mail=this.mdp="";
|
||||
this.prenom=this.nom=this.sexe=this.mail=this.mdp=this.formateur="";
|
||||
}
|
||||
public Formateur (int idformateur, String login, int privilege, String prenom, String nom, int age, int galop, String sexe, String mail, String mdp)
|
||||
public Formateur (int idformateur, int privilege, String prenom, String nom, int age, int galop, String sexe, String mail, String mdp, String formateur)
|
||||
{//ALL
|
||||
this.idformateur= idformateur;
|
||||
this.login = login;
|
||||
this.privilege = privilege;
|
||||
this.prenom = prenom;
|
||||
this.nom = nom;
|
||||
@@ -21,6 +20,7 @@ public class Formateur
|
||||
this.sexe = sexe;
|
||||
this.mail = mail;
|
||||
this.mdp = mdp;
|
||||
this.formateur = formateur;
|
||||
}
|
||||
public Formateur(String prenom,String nom, int age, int galop, String sexe, String mail, String mdp)
|
||||
{//ADD
|
||||
@@ -36,8 +36,11 @@ public class Formateur
|
||||
{//DELETE
|
||||
this.mail = mail;
|
||||
}
|
||||
public Formateur (int idformateur, String formateur) {
|
||||
this.idformateur= idformateur;
|
||||
this.formateur= formateur;
|
||||
}
|
||||
public int getId() { return idformateur; }
|
||||
public String getLogin() { return login; }
|
||||
public int getPrivilege() { return privilege; }
|
||||
public String getPrenom() { return prenom; }
|
||||
public String getNom() { return nom; }
|
||||
@@ -46,8 +49,9 @@ public class Formateur
|
||||
public String getSexe() {return sexe;}
|
||||
public String getMail() { return mail; }
|
||||
public String getMdp() { return mdp; }
|
||||
public String getFormateur() { return formateur; }
|
||||
|
||||
public void setId(int idformateur) { this.idformateur = idformateur; }
|
||||
public void setLogin(String login) { this.login = login; }
|
||||
public void setPrivilege(int privilege) { this.privilege = privilege; }
|
||||
public void setPrenom(String prenom) { this.prenom = prenom; }
|
||||
public void setNom(String nom) { this.nom = nom; }
|
||||
@@ -56,4 +60,6 @@ public class Formateur
|
||||
public void setSexe(String sexe) {this.sexe = sexe; }
|
||||
public void setMail(String mail) { this.mail = mail; }
|
||||
public void setMdp(String mdp) { this.mdp = mdp; }
|
||||
public void setFormateur(String formateur) {this.formateur = formateur;}
|
||||
|
||||
}
|
||||
@@ -1,24 +1,43 @@
|
||||
package controleur;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.Font;
|
||||
import javax.swing.UIManager;
|
||||
|
||||
import vue.Connexion;
|
||||
|
||||
public class Gestion
|
||||
{/*GESTION N EST PAS UTILISER CAR INCOMPREHENSIBLE POUR CCB - ALL IS IN Connexion*/
|
||||
{
|
||||
private static Connexion uneConnexion;
|
||||
public Gestion()
|
||||
{
|
||||
uneConnexion = new Connexion();
|
||||
uneConnexion.rendreVisible(true);
|
||||
}
|
||||
|
||||
public static void rendreVisible(boolean val)
|
||||
{
|
||||
uneConnexion.rendreVisible(val);
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
/*FORMS Font*/
|
||||
UIManager.put("Label.font", new Font("Book Antiqua", Font.BOLD, 23));
|
||||
UIManager.put("Button.font",new Font("Book Antiqua", Font.BOLD, 20));
|
||||
UIManager.put("OptionPane.messageFont", new Font("Book Antiqua", Font.BOLD, 18));
|
||||
UIManager.put("OptionPane.buttonFont", new Font("Book Antiqua", Font.BOLD, 18));
|
||||
UIManager.put("TextField.font",new Font("Bodoni MT", Font.BOLD, 23));
|
||||
UIManager.put("ComboBox.font",new Font("Bodoni MT", Font.BOLD, 23));
|
||||
UIManager.put("TextPane.font",new Font("Bodoni MT", Font.BOLD, 23));
|
||||
UIManager.put("PasswordField.font",new Font("Bodoni MT", Font.BOLD, 23));
|
||||
UIManager.put("RadioButton.font",new Font("Bodoni MT", Font.BOLD, 23));
|
||||
/*JPANE & BACKGROUND*/
|
||||
UIManager.put("OptionPane.background", new Color(222,220,203));
|
||||
UIManager.put("OptionPane.messagebackground", new Color(222,220,203));
|
||||
UIManager.put("RadioButton.background",new Color(222,220,203));
|
||||
UIManager.put("Panel.background", new Color(222,220,203));
|
||||
/*JTABLE*/
|
||||
UIManager.put("TableHeader.font", new Font("Verdana", Font.PLAIN, 20));
|
||||
UIManager.put("Table.font", new Font("Arial Unicode MS", Font.PLAIN, 18));
|
||||
new Gestion();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user