Esempio n. 1
1
        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);
        }
Esempio n. 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);
        }
Esempio n. 3
0
        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;
        }
Esempio n. 4
0
 public LigneFacture(Guid numLigne,Facture facture,Bareme bareme,decimal prix,bool archive)
 {
     Bareme = bareme;
     Facture = facture;
     NumLigne = numLigne;
     Prix = prix;
     Archive = archive;
 }
Esempio n. 5
0
 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);
 }
Esempio n. 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;
 }
Esempio n. 7
0
 public bool Supprimer(Facture facture)
 {
     return Database.Instance.delete(facture);
 }
Esempio n. 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);
 }
Esempio n. 11
0
 public static bool SupprimerFacture(Facture facture)
 {
     return FactureStore.Instance.Supprimer(facture);
 }
Esempio n. 12
0
 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);
 }
Esempio n. 13
0
 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);
 }
Esempio n. 16
0
 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;
 }