Ajout de l'affichage Cours,
modifications de formes et de contenues dans l'application
This commit is contained in:
ccunatbrule
2022-07-11 11:07:26 +02:00
parent 495c6c6bb8
commit 72c85aa1f4
58 changed files with 1328 additions and 1171 deletions

View File

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