Example #1
0
        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);
        }