- Refonte graphique.
- Ajout de classe liée a la BDD.
- Debug et  améliorations .
This commit is contained in:
ccunatbrule
2022-07-05 15:17:07 +02:00
parent 464c9ffa3e
commit 495c6c6bb8
789 changed files with 2129 additions and 329354 deletions

View 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; }
}