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); }
public override void PrintList() { PgMng.Reset(3, 1, Face.Resources.Messages.LOADING_DATA, this); InputInvoiceReportMng reportMng = new InputInvoiceReportMng(AppContext.ActiveSchema, this.Text, FilterValues); PgMng.Grow(Face.Resources.Messages.BUILDING_REPORT); InputInvoiceListRpt report = reportMng.GetListReport(InputInvoiceList.GetList(Datos.DataSource as IList <InputInvoiceInfo>), ProviderBaseList.GetList(false)); PgMng.FillUp(); ShowReport(report); }
protected virtual void PrintPendienteListAction() { if (Pendientes_DGW.CurrentRow == null) { return; } InputInvoiceInfo factura = Pendientes_DGW.CurrentRow.DataBoundItem as InputInvoiceInfo; InputInvoiceReportMng reportMng = new InputInvoiceReportMng(AppContext.ActiveSchema, this.Text, "Acreedor = " + factura.Acreedor); InputInvoiceListRpt report = reportMng.GetListReport(Datos_Pendientes.DataSource as InputInvoiceList, ProviderBaseList.GetList(false)); ShowReport(report); }
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); }