MAJ V3
- Refonte graphique. - Ajout de classe liée a la BDD. - Debug et améliorations .
This commit is contained in:
49
src/controleur/Article.java
Normal file
49
src/controleur/Article.java
Normal file
@@ -0,0 +1,49 @@
|
||||
package controleur;
|
||||
|
||||
public class Article {
|
||||
private int id, prix, qtestock;
|
||||
private String reference, categorie, description, libelle, imagearticle;
|
||||
public Article() {//ALL
|
||||
this.id=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)
|
||||
{//ALL
|
||||
this.id= id;
|
||||
this.reference= reference;
|
||||
this.categorie= categorie;
|
||||
this.description = description;
|
||||
this.libelle = libelle;
|
||||
this.prix = prix;
|
||||
this.qtestock = qtestock;
|
||||
this.imagearticle = imagearticle;
|
||||
}
|
||||
public Article (String reference, String categorie, String description, String libelle, int prix, int qtestock)
|
||||
{//ADD & Modify
|
||||
this.reference = reference;
|
||||
this.categorie= categorie;
|
||||
this.description = description;
|
||||
this.libelle = libelle;
|
||||
this.prix = prix;
|
||||
this.qtestock = qtestock;
|
||||
}
|
||||
public Article (String reference) {//DELETE
|
||||
this.reference = reference;
|
||||
}
|
||||
public int getId() { return id; }
|
||||
public String getReference() { return reference; }
|
||||
public String getCategorie() { return categorie; }
|
||||
public int getPrix() { return prix; }
|
||||
public String getDescription() { return description; }
|
||||
public String getLibelle() { return libelle; }
|
||||
public int getQtestock() { return qtestock; }
|
||||
public String getImageArticle() { return imagearticle; }
|
||||
public void setid(int id) { this.id = id; }
|
||||
public void setReference(String reference) { this.reference = reference; }
|
||||
public void setCategorie(String categorie) { this.categorie = categorie; }
|
||||
public void setPrix(int prix) { this.prix = prix; }
|
||||
public void setDescription(String description) { this.description = description; }
|
||||
public void setLibelle(String libelle) { this.libelle = libelle; }
|
||||
public void setQtestock(int qtestock) { this.qtestock = qtestock; }
|
||||
public void setImageArticle(String imagearticle) { this.imagearticle = imagearticle; }
|
||||
}
|
||||
53
src/controleur/Event.java
Normal file
53
src/controleur/Event.java
Normal file
@@ -0,0 +1,53 @@
|
||||
package controleur;
|
||||
|
||||
public class Event {
|
||||
private int id, 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="";
|
||||
}
|
||||
public Event (int id, String reference, String categorie, String description, String libelle, int prix, String lieu, String date, String imageevent)
|
||||
{//ALL
|
||||
this.id= id;
|
||||
this.reference= reference;
|
||||
this.categorie= categorie;
|
||||
this.description = description;
|
||||
this.libelle = libelle;
|
||||
this.prix = prix;
|
||||
this.lieu = lieu;
|
||||
this.date = date;
|
||||
this.imageevent = imageevent;
|
||||
}
|
||||
public Event (String reference, String categorie, String description, String libelle, int prix, String lieu, String date)
|
||||
{//ADD & Modify
|
||||
this.reference = reference;
|
||||
this.categorie= categorie;
|
||||
this.description = description;
|
||||
this.libelle = libelle;
|
||||
this.prix = prix;
|
||||
this.lieu = lieu;
|
||||
this.date = date;
|
||||
}
|
||||
public Event (String reference) {//DELETE
|
||||
this.reference = reference;
|
||||
}
|
||||
public int getId() { return id; }
|
||||
public String getReference() { return reference; }
|
||||
public String getCategorie() { return categorie; }
|
||||
public int getPrix() { return prix; }
|
||||
public String getDescription() { return description; }
|
||||
public String getLibelle() { return libelle; }
|
||||
public String getLieu() { return lieu; }
|
||||
public String getDate() { return date; }
|
||||
public String getImageEvent() { return imageevent; }
|
||||
public void setid(int id) { this.id = id; }
|
||||
public void setReference(String reference) { this.reference = reference; }
|
||||
public void setCategorie(String categorie) { this.categorie = categorie; }
|
||||
public void setPrix(int prix) { this.prix = prix; }
|
||||
public void setDescription(String description) { this.description = description; }
|
||||
public void setLibelle(String libelle) { this.libelle = libelle; }
|
||||
public void setLieu(String lieu) { this.lieu = lieu; }
|
||||
public void setDate(String date) { this.date = date; }
|
||||
public void setImageEvent(String imageevent) { this.imageevent = imageevent; }
|
||||
}
|
||||
@@ -3,7 +3,7 @@ package controleur;
|
||||
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()
|
||||
{
|
||||
@@ -20,4 +20,5 @@ public class Gestion
|
||||
{
|
||||
new Gestion();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user