public InformeControlCobrosREARpt GetControlCobrosREAReport(ExpedienteREAList expedientes, ReportFormat format) { if (expedientes.Count == 0) { return(null); } List <ExpedienteREAPrint> pList = new List <ExpedienteREAPrint>(); foreach (ExpedienteREAInfo item in expedientes) { if (item.ETipoExpediente == ETipoExpediente.Almacen) { continue; } pList.Add(ExpedienteREAPrint.New(item)); } InformeControlCobrosREARpt doc = new InformeControlCobrosREARpt(); doc.SetDataSource(pList); FormatHeader(doc); FormatReport(doc, format); return(doc); }
public ExpedienteREAListRpt GetExpedienteREAListReport(ExpedienteREAList expedientes) { if (expedientes.Count == 0) { return(null); } List <ExpedienteREAPrint> pList = new List <ExpedienteREAPrint>(); foreach (ExpedienteREAInfo item in expedientes) { pList.Add(ExpedienteREAPrint.New(item)); } ExpedienteREAListRpt doc = new ExpedienteREAListRpt(); doc.SetDataSource(pList); FormatHeader(doc); return(doc); }