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; }
|
||||
|
||||
Reference in New Issue
Block a user