protected override void PrintAction()
        {
            PgMng.Reset(5, 1, Face.Resources.Messages.RETRIEVING_DATA, this);

            Library.Invoice.QueryConditions conditions = new Library.Invoice.QueryConditions();

            conditions.Cliente   = TodosCliente_CkB.Checked ? null : _cliente;
            conditions.Serie     = TodosSerie_CkB.Checked ? null : _serie;
            conditions.MedioPago = MedioPago_CB.SelectedValue != null ? (EMedioPago)(long)MedioPago_CB.SelectedValue : EMedioPago.Todos;
            conditions.FechaIni  = FInicial_DTP.Checked ? FInicial_DTP.Value : DateTime.MinValue;
            conditions.FechaFin  = FFinal_DTP.Checked ? FFinal_DTP.Value : DateTime.MaxValue;

            string filtro = GetFilterValues();

            PgMng.Grow();

            OutputInvoiceList facturas = OutputInvoiceList.GetList(conditions, false);

            PgMng.Grow();
            CobroFacturaList cobros = CobroFacturaList.GetList(conditions);

            PgMng.Grow(Face.Resources.Messages.BUILDING_REPORT);

            CobroReportMng   reportMng = new CobroReportMng(AppContext.ActiveSchema, this.Text, filtro);
            InformeCobrosRpt rpt       = reportMng.GetInformeCobrosReport(cobros, facturas);

            PgMng.FillUp();

            ShowReport(rpt);

            _action_result = DialogResult.Ignore;
        }
Ejemplo n.º 2
0
        public override void PrintQRAction()
        {
            PgMng.Reset(4, 1, Face.Resources.Messages.LOADING_DATA, this);
            CobroReportMng reportMng = new CobroReportMng(AppContext.ActiveSchema, this.Text, FilterValues);

            reportMng.ShowQRCode = true;

            PgMng.Grow();
            CobroFacturaList cfacturas = CobroFacturaList.GetList(false);

            PgMng.Grow(Face.Resources.Messages.BUILDING_REPORT);
            ChargeListRpt report = reportMng.GetListReport(ChargeList.GetList((IList <ChargeInfo>)Datos.List), cfacturas);

            PgMng.FillUp();

            ShowReport(report);
        }