public Vaccin Ajouter(string nomVaccin, int quantiteStock, byte periodeValidite, bool archive) { Vaccin vaccin = new Vaccin(Guid.NewGuid(), nomVaccin, quantiteStock, periodeValidite, archive); Database.Instance.insert(vaccin); return vaccin; }
public void Modifier(Vaccin vaccin, string nomVaccin, int quantiteStock, byte periodeValidite, bool archive) { vaccin.NomVaccin = nomVaccin; vaccin.QuantiteStock = quantiteStock; vaccin.PeriodeValidite = periodeValidite; vaccin.Archive = archive; Database.Instance.update(vaccin); }
public Bareme Ajouter(string codeGroupement, string dateVigueur, string typeActe, string libelle, decimal tarifFixe, decimal tarifMini, decimal tarifMaxi, Vaccin vaccin, bool archive) { Bareme bareme = new Bareme(codeGroupement, dateVigueur, typeActe, libelle, tarifFixe, tarifMini, tarifMaxi, vaccin, archive); Database.Instance.insert(bareme); return bareme; }
public void Modifier(Bareme bareme, string typeActe, string libelle, decimal tarifFixe, decimal tarifMini, decimal tarifMaxi, Vaccin vaccin) { bareme.TypeActe = typeActe; bareme.Libelle = libelle; bareme.TarifFixe = tarifFixe; bareme.TarifMini = tarifMini; bareme.TarifMaxi = tarifMaxi; Database.Instance.update(bareme); }
public Bareme(string codeGroupement, string dateVigueur, string typeActe, string libelle, decimal tarifFixe, decimal tarifMini, decimal tarifMaxi, Vaccin vaccin, bool archive) { CodeGroupement = codeGroupement; DateVigueur = dateVigueur; TypeActe = typeActe; Libelle = libelle; TarifFixe = tarifFixe; TarifMaxi = tarifMaxi; TarifMini = tarifMini; Vaccin = vaccin; Archive = archive; }
public static void ModifierBareme(Bareme bareme, string typeActe, string libelle, decimal tarifFixe, decimal tarifMini, decimal tarifMaxi, Vaccin vaccin) { BaremeStore.Instance.Modifier(bareme, typeActe, libelle, tarifFixe, tarifMini, tarifMaxi, vaccin); }
public static Bareme AjouterBareme(string codeGroupement, string dateVigueur, string typeActe, string libelle, decimal tarifFixe, decimal tarifMini, decimal tarifMaxi, Vaccin vaccin, bool archive) { return BaremeStore.Instance.Ajouter(codeGroupement, dateVigueur, typeActe, libelle, tarifFixe, tarifMini, tarifMaxi, vaccin, archive) ; }
public bool Supprimer(Vaccin vaccin) { return Database.Instance.delete(vaccin); }
public bool SupprimerVaccin(Vaccin vaccin) { return VaccinStore.Instance.Supprimer(vaccin); }
public void ModifierVaccin(Vaccin vaccin, string nomVaccin, int quantiteStock, byte periodeValidite, bool archive) { VaccinStore.Instance.Modifier(vaccin, nomVaccin, quantiteStock, periodeValidite, archive); }