public Facture(FactureDTO factureDTO)
 {
     code          = factureDTO.code;
     client        = factureDTO.client;
     dateEmission  = factureDTO.dateEmission;
     dateReglement = factureDTO.dateReglement;
     montantDu     = factureDTO.montantDu;
     montantRegle  = factureDTO.montantRegle;
 }
示例#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);
            }
        }