Ejemplo n.º 1
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);
        }