public Article(string photo, string commentaire, TypeArticle type, int cmd_id) { this.photo = photo; this.commentaire = commentaire; this.TVA = type.TVA; this.TTC = type.TTC; this.type = type; this.fk_commande = cmd_id; this.ifRendu = false; this.convoyeur = new PlaceConvoyeur(); }
//Attention! Constructeur à n'utiliser que pour la creation d'un article non selectionné. (TVA & TTC différent apres insertion. public Article(string photo, string commentaire, bool ifRendu, TypeArticle type, PlaceConvoyeur convoyeur, int fk_commande) { id = 0; this.photo = photo; this.commentaire = commentaire; this.ifRendu = ifRendu; this.TVA = type.TVA; this.TTC = type.TVA; this.type = type; this.convoyeur = convoyeur; this.fk_commande = fk_commande; }
public Article(int id, string photo, string commentaire, bool ifRendu, float TVA, float TTC, TypeArticle type, PlaceConvoyeur convoyeur, int fk_commande) { this.id = id; this.photo = photo; this.commentaire = commentaire; this.ifRendu = ifRendu; this.TVA = TVA; this.TTC = TTC; this.type = type; this.convoyeur = convoyeur; this.fk_commande = fk_commande; }
public Article(string photo, string commentaire, bool ifRendu, float TVA, float TTC, TypeArticle type, PlaceConvoyeur convoyeur, int fk_commande) { id = 0; this.photo = photo; this.commentaire = commentaire; this.ifRendu = ifRendu; this.TVA = TVA; this.TTC = TTC; this.type = type; this.convoyeur = convoyeur; this.fk_commande = fk_commande; date_payee = DateTime.MinValue; }