public List <CsRedevance> LoadAllRedevance() { List <CsRedevance> ListeLotScelle = new List <CsRedevance>(); try { //ListeLotScelle = new DbTarification().LoadAllRedevance(); ListeLotScelle = new DbFacturation().LoadAllRedevance(); return(ListeLotScelle); } catch (Exception ex) { throw ex; } }
public bool?RetourneFacturesRegroupement(string regroupementDebut, string regroupementFin, List <string> LstPeriode, List <string> Produit, int?idcentre, string rdlc, Dictionary <string, string> parameters, string key) { try { DbFacturation db = new DbFacturation(); List <CsFactureClient> lstFacture = new List <CsFactureClient>(); lstFacture = db.RetourneFacturesRegroupement(regroupementDebut, regroupementFin, LstPeriode, Produit, idcentre, rdlc); List <CsPrint> listeDeFactures = new List <CsPrint>(); foreach (CsFactureClient facture in lstFacture) { listeDeFactures.Add(facture); } Printings.PrintingsService printService = new Printings.PrintingsService(); return(printService.setFromWebPart(listeDeFactures, key, parameters)); } catch (Exception ex) { ErrorManager.LogException(this, ex); return(null); } }