Exemplo n.º 1
0
 public Facture(FactureDTO factureDTO)
 {
     code          = factureDTO.code;
     client        = factureDTO.client;
     dateEmission  = factureDTO.dateEmission;
     dateReglement = factureDTO.dateReglement;
     montantDu     = factureDTO.montantDu;
     montantRegle  = factureDTO.montantRegle;
 }
Exemplo n.º 2
0
        public void addFac(FactureDTO factureDTO)
        {
            Facture fac = new Facture(factureDTO);

            this.listeFactures.Add(fac);
            foreach (var f in listeFactures)
            {
                Console.WriteLine(f.code);
            }
        }