public ChargeListRpt GetListReport(ChargeList list, CobroFacturaList c_facturas) { if (list == null) { return(null); } ChargeListRpt doc = new ChargeListRpt(); List <ChargeInfo> pList = new List <ChargeInfo>(); foreach (ChargeInfo cobro in list) { if (ShowQRCode) { cobro.LoadChilds(c_facturas.GetSubList(new FCriteria <long>("OidCobro", cobro.Oid, Operation.Equal))); } pList.Add(CobroPrint.New(cobro, ShowQRCode)); } doc.SetDataSource(pList); FormatHeader(doc); doc.QRCodeSection.SectionFormat.EnableSuppress = !ShowQRCode; return(doc); }
public InformeCobrosRpt GetInformeCobrosReport(CobroFacturaList list, OutputInvoiceList facturas) { InformeCobrosRpt doc = new InformeCobrosRpt(); List <CobroFacturaPrint> pList = new List <CobroFacturaPrint>(); foreach (CobroFacturaInfo item in list) { pList.Add(CobroFacturaPrint.New(item, null, facturas.GetItem(item.OidFactura))); } if (pList.Count == 0) { return(null); } doc.SetDataSource(pList); FormatHeader(doc); return(doc); }