public void Modifier(LigneFacture ligneFacture, Facture facture, Bareme bareme, decimal prix, bool archive)
        {
            ligneFacture.Archive = archive;
            ligneFacture.Bareme = bareme;
            ligneFacture.Facture = facture;
            ligneFacture.Prix = prix;

            Database.Instance.update(ligneFacture);
        }
Exemple #2
1
        public void Modifier(Facture facture ,Client client, DateTime dateFacture, Facture.eFactureEtats etat, decimal totalFacture, DateTime rappelEnvoye, bool archive)
        {
            facture.Archive = archive;
            facture.Client = client;
            facture.DateFacture = dateFacture;
            facture.Etat = etat;
            facture.RappelEnvoye = rappelEnvoye;
            facture.TotalFacture = totalFacture;

            Database.Instance.update(facture);
        }
        public LigneFacture Ajouter(Facture facture, Bareme bareme, decimal prix, bool archive)
        {
            LigneFacture ligneFacture = new LigneFacture(Guid.NewGuid(), facture, bareme, prix, archive);
            Database.Instance.insert(ligneFacture);

            return ligneFacture;
        }
Exemple #4
0
 public LigneFacture(Guid numLigne,Facture facture,Bareme bareme,decimal prix,bool archive)
 {
     Bareme = bareme;
     Facture = facture;
     NumLigne = numLigne;
     Prix = prix;
     Archive = archive;
 }
 public void Modifier(Consultation consultation,Facture facture, Veterinaire veto,DateTime dateConsultation, Consultation.eConsultationEtat etat, string commentaire,bool archive)
 {
     consultation.Facture = facture;
     consultation.Veto = veto;
     consultation.DateConsultation = dateConsultation;
     consultation.Etat = etat;
     consultation.Commentaire = commentaire;
     consultation.Archive = archive;
     Database.Instance.update(consultation);
 }
Exemple #6
0
 public Consultation(Guid codeConsultation,Facture facture, Veterinaire veto, Animal animal,DateTime dateConsultation, eConsultationEtat etat, string commentaire,bool archive)
 {
     CodeConsultation = codeConsultation;
     Archive =  archive;
     Commentaire = commentaire;
     DateConsultation = dateConsultation;
     Etat = etat;
     Facture = facture;
     Veto = veto;
     Animal = animal;
 }
Exemple #7
0
 public bool Supprimer(Facture facture)
 {
     return Database.Instance.delete(facture);
 }
Exemple #8
0
 public Facture Ajouter(Client client, DateTime dateFacture, Facture.eFactureEtats etat, decimal totalFacture, DateTime rappelEnvoye, bool archive)
 {
     Facture facture = new Facture(Guid.NewGuid(), client, dateFacture, etat, totalFacture, rappelEnvoye, archive);
     Database.Instance.insert(facture);
     return facture;
 }
 public static void ModifierLignesFacture(LigneFacture lignesFacture, Facture facture, Bareme bareme, decimal prix, bool archive)
 {
     LigneFactureStore.Instance.Modifier(lignesFacture, facture, bareme, prix, archive);
 }
 public static LigneFacture AjouterLignesFacture(Facture facture, Bareme bareme, decimal prix, bool archive)
 {
     return LigneFactureStore.Instance.Ajouter(facture, bareme, prix, archive);
 }
 public static bool SupprimerFacture(Facture facture)
 {
     return FactureStore.Instance.Supprimer(facture);
 }
 public static void ModifierFacture(Facture facture, Client client, DateTime dateFacture, Facture.eFactureEtats etat, decimal totalFacture, DateTime rappelEnvoye, bool archive)
 {
     FactureStore.Instance.Modifier(facture, client, dateFacture, etat, totalFacture, rappelEnvoye, archive);
 }
 public static Facture AjouterFacture(Guid numFacture, Client client, DateTime dateFacture, Facture.eFactureEtats etat, decimal totalFacture, DateTime rappelEnvoye, bool archive)
 {
     return FactureStore.Instance.Ajouter(client, dateFacture, etat, totalFacture, rappelEnvoye, archive);
 }
 public void ModifierConsultation(Consultation consultation,Facture facture, Veterinaire veto,DateTime dateConsultation, Consultation.eConsultationEtat etat, string commentaire,bool archive)
 {
     ConsultationStore.Instance.Modifier(consultation, facture, veto, dateConsultation, etat, commentaire, archive);
 }
 public Consultation AjouterConsultation(Facture facture, Veterinaire veto, Animal animal, DateTime dateConsultation, Consultation.eConsultationEtat etat, string commentaire, bool archive)
 {
     return ConsultationStore.Instance.Ajouter(facture, veto, animal, dateConsultation, etat, commentaire, archive);
 }
 public Consultation Ajouter(Facture facture, Veterinaire veto,Animal animal, DateTime dateConsultation, Consultation.eConsultationEtat etat, string commentaire, bool archive)
 {
     Consultation consultation = new Consultation(Guid.NewGuid(), facture, veto,animal, dateConsultation, etat, commentaire, archive);
     Database.Instance.insert(consultation);
     return consultation;
 }