protected override void PrintAction() { try { PgMng.Reset(6, 1, Face.Resources.Messages.RETRIEVING_DATA, this); if (FFacturaIni_DTP.Checked) { _report_filter.fecha_fac_inicio = FFacturaIni_DTP.Value; } else { _report_filter.fecha_fac_inicio = DateTime.MinValue; } if (FFacturaFin_DTP.Checked) { _report_filter.fecha_fac_final = FFacturaFin_DTP.Value; } else { _report_filter.fecha_fac_final = DateTime.MaxValue; } if (FPagoIni_DTP.Checked) { _report_filter.fecha_pago_inicio = FPagoIni_DTP.Value; } else { _report_filter.fecha_pago_inicio = DateTime.MinValue; } if (FPagoFin_DTP.Checked) { _report_filter.fecha_pago_final = FPagoFin_DTP.Value; } else { _report_filter.fecha_pago_final = DateTime.MaxValue; } if (FPrevisionIni_DTP.Checked) { _report_filter.prevision_ini = FPrevisionIni_DTP.Value; } else { _report_filter.prevision_ini = DateTime.MinValue; } if (FPrevisionFin_DTP.Checked) { _report_filter.prevision_fin = FPrevisionFin_DTP.Value; } else { _report_filter.prevision_fin = DateTime.MaxValue; } _report_filter.exp_final = string.Empty; _report_filter.exp_inicial = string.Empty; _report_filter.tipo = (EPagos)(long)TipoFactura_CB.SelectedValue; _report_filter.tipo_informe = (ETipoInforme)(long)TipoAcreedor_CB.SelectedValue; _report_filter.tipo_expediente = (moleQule.Store.Structs.ETipoExpediente)(long) TipoExpediente_CB.SelectedValue; ReportFormat format = new ReportFormat(); format.Vista = (Resumido_RB.Checked) ? EReportVista.Resumido : EReportVista.Detallado; string filtro = GetFilterValues(); PgMng.Grow(); ExpedienteList expedients = ExpedienteList.GetList(_report_filter.tipo_expediente, false); PgMng.Grow(); InputInvoiceList invoices = InputInvoiceList.GetListByDate(_report_filter.fecha_fac_inicio, _report_filter.fecha_fac_final, false); PgMng.Grow(); PaymentSummaryList summaries = PaymentSummaryList.GetPendientesList(); PgMng.Grow(Face.Resources.Messages.BUILDING_REPORT); PaymentReportMng reportMng = new PaymentReportMng(AppContext.ActiveSchema, this.Text, filtro); PaymentsReportRpt rpt = reportMng.GetInformeControlPagosReport(invoices, expedients, summaries, _report_filter, format); PgMng.FillUp(); ShowReport(rpt); _action_result = DialogResult.Ignore; } catch (Exception ex) { PgMng.FillUp(); throw ex; } }