public AlbaranRecibidoListRpt GetListReport(InputDeliveryList list, SerieList series, ProviderBaseList acreedores) { if (list.Count == 0) { return(null); } AlbaranRecibidoListRpt doc = new AlbaranRecibidoListRpt(); List <InputDeliveryPrint> pList = new List <InputDeliveryPrint>(); foreach (InputDeliveryInfo item in list) { pList.Add(InputDeliveryPrint.New(item, acreedores.GetItem(item.OidAcreedor, item.ETipoAcreedor), series.GetItem(item.OidSerie))); } doc.SetDataSource(pList); FormatHeader(doc); return(doc); }
public InputInvoiceListRpt GetListReport(InputInvoiceList list, ProviderBaseList acreedores) { if (list.Count == 0) { return(null); } InputInvoiceListRpt doc = new InputInvoiceListRpt(); List <InputInvoicePrint> pList = new List <InputInvoicePrint>(); foreach (InputInvoiceInfo item in list) { pList.Add(InputInvoicePrint.New(item, acreedores.GetItem(item.Oid, item.ETipoAcreedor), false)); } doc.SetDataSource(pList); FormatHeader(doc); return(doc); }