public Dictionary <List <CsComptabilisation>, List <CsEcritureComptable> > RetourneEncaissement(List <CsOperationComptable> lesOperationCpt, List <CsCaisse> lstCaisse, DateTime?DateCaisseDebut, DateTime?DateCaisseFin, string matricule, string Site)
 {
     try
     {
         DbInterfaceComptable db = new DbInterfaceComptable();
         return(db.RetourneEncaissement(lesOperationCpt, lstCaisse, DateCaisseDebut, DateCaisseFin, matricule, Site));
     }
     catch (Exception ex)
     {
         ErrorManager.LogException(this, ex);
         return(null);
     }
 }
 public List <CsLclient> RetourneAvanceSurConsomation(string CodeSite, bool IsResilier, DateTime?DateDebut, DateTime?DateFin)
 {
     try
     {
         DbInterfaceComptable db = new DbInterfaceComptable();
         return(db.RetourneAvanceSurConsomation(CodeSite, IsResilier, DateDebut, DateFin));
     }
     catch (Exception ex)
     {
         ErrorManager.LogException(this, ex);
         return(null);
     }
 }
 public List <CsClient> RetourneProvision(string CodeSite, List <string> lstCateg, List <string> lstProd, DateTime?DateDebut, DateTime?DateFin)
 {
     try
     {
         DbInterfaceComptable db = new DbInterfaceComptable();
         return(db.RetourneProvision(CodeSite, lstCateg, lstProd, DateDebut, DateFin));
     }
     catch (Exception ex)
     {
         ErrorManager.LogException(this, ex);
         return(null);
     }
 }
 public List <CsComptabilisation> RetourneAllOperationByCritere(int IdCentre, List <int> lstIdcaisse, List <string> OperationSelect, DateTime?DateCaisseDebut, DateTime?DateCaisseFin, DateTime?Date)
 {
     try
     {
         DbInterfaceComptable db = new DbInterfaceComptable();
         return(db.RetourneAllOperation(IdCentre, lstIdcaisse, OperationSelect, DateCaisseDebut, DateCaisseFin, Date));
     }
     catch (Exception ex)
     {
         ErrorManager.LogException(this, ex);
         return(null);
     }
 }
 public List <CsCentreCompte> RetourneParamCentre()
 {
     try
     {
         DbInterfaceComptable db = new DbInterfaceComptable();
         return(db.RetourneParamCentre());
     }
     catch (Exception ex)
     {
         ErrorManager.LogException(this, ex);
         return(null);
     }
 }
 public bool InsertionLigneComptableGenerer(List <CsEcritureComptable> LigneComptable)
 {
     try
     {
         DbInterfaceComptable db = new DbInterfaceComptable();
         return(db.InsertionLigneComptable(LigneComptable));
     }
     catch (Exception ex)
     {
         ErrorManager.LogException(this, ex);
         return(false);
     }
 }
 public List <CsCoper> RetourneCodeOperation()
 {
     try
     {
         DbInterfaceComptable db = new DbInterfaceComptable();
         return(db.RetourneOperation());
     }
     catch (Exception ex)
     {
         ErrorManager.LogException(this, ex);
         return(null);
     }
 }
 public List <CsBalance> RetourneBalanceAgee(string CodeSite, DateTime?Datefin)
 {
     try
     {
         DbInterfaceComptable db = new DbInterfaceComptable();
         return(db.RetourneBalanceAgeeSpx(CodeSite, Datefin));
     }
     catch (Exception ex)
     {
         ErrorManager.LogException(this, ex);
         return(null);
     }
 }
 public bool RetourneFichierComptable(List <CsComptabilisation> LstEcriture)
 {
     try
     {
         DbInterfaceComptable db = new DbInterfaceComptable();
         return(db.RetourneFichierComptable(LstEcriture));
     }
     catch (Exception ex)
     {
         ErrorManager.LogException(this, ex);
         return(false);
     }
 }
 public List <CsComptabilisation> RetourneEtatMiseAJourGrandCompte(DateTime?DateCaisseDebut, DateTime?DateCaisseFin)
 {
     try
     {
         DbInterfaceComptable db = new DbInterfaceComptable();
         return(db.RetourneEtatMiseAJourGrandCompte(DateCaisseDebut, DateCaisseFin));
     }
     catch (Exception ex)
     {
         ErrorManager.LogException(this, ex);
         return(null);
     }
 }
 public List <CsBalance> RetourneBalanceAuxilliaire(string CodeSite, DateTime?Datefin)
 {
     try
     {
         DbInterfaceComptable db = new DbInterfaceComptable();
         ErrorManager.WriteInLogFile(this, "debut" + System.DateTime.Now);
         List <CsBalance> lats = db.RetourneBalanceAuxilliaireSpx(CodeSite, Datefin);
         ErrorManager.WriteInLogFile(this, "Fin" + System.DateTime.Now);
         return(lats);
     }
     catch (Exception ex)
     {
         ErrorManager.LogException(this, ex);
         return(null);
     }
 }
 public bool PurgeComptabilisation(List <int> IdOpertation, string CodeSite, DateTime?DateDebut, DateTime?DateFin)
 {
     try
     {
         DbInterfaceComptable db = new DbInterfaceComptable();
         foreach (int item in IdOpertation)
         {
             db.PurgeComptabilisation(item, CodeSite, DateDebut, DateFin);
         }
         return(true);
     }
     catch (Exception ex)
     {
         ErrorManager.LogException(this, ex);
         return(false);
     }
 }