Exemple #1
0
        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);
        }
Exemple #2
0
        public QRCodeRpt GetQRCodeReport(InputInvoiceInfo item)
        {
            if (item == null)
            {
                return(null);
            }

            List <InputInvoicePrint> pList = new List <InputInvoicePrint>();

            pList.Add(InputInvoicePrint.New(item, null));

            QRCodeRpt doc = new QRCodeRpt();

            doc.SetDataSource(pList);

            return(doc);
        }
Exemple #3
0
        public QRCodeRpt GetQRCodeReport(InputInvoiceList list)
        {
            if (list.Count == 0)
            {
                return(null);
            }

            List <InputInvoicePrint> pList = new List <InputInvoicePrint>();

            foreach (InputInvoiceInfo item in list)
            {
                pList.Add(InputInvoicePrint.New(item, null));
            }

            QRCodeRpt doc = new QRCodeRpt();

            doc.SetDataSource(pList);

            return(doc);
        }
Exemple #4
0
        public InputInvoiceListRpt GetListReport(InputInvoiceList list)
        {
            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, null, false));
            }

            doc.SetDataSource(pList);

            FormatHeader(doc);

            return(doc);
        }