public override void PrintObject()
        {
            CobroReportMng reportMng = new CobroReportMng(AppContext.ActiveSchema, Resources.Labels.COBRO_TODOS, this.Text);
            CobroDetailRpt rpt       = reportMng.GetDetallesCobroIndividualReport(_cobro);

            ShowReport(rpt);
        }
Example #2
0
        public override void PrintDetailAction()
        {
            CobroReportMng reportMng = new CobroReportMng(AppContext.ActiveSchema, this.Text, FilterValues);

            ChargeInfo cobro = ChargeInfo.Get(ActiveItem.Oid, ActiveItem.ETipoCobro, true);

            switch (ActiveItem.ETipoCobro)
            {
            case ETipoCobro.Cliente:
            {
                CobroDetailRpt report = reportMng.GetDetallesCobroIndividualReport(cobro);

                ShowReport(report);
            }
            break;

            case ETipoCobro.REA:
            {
                FacREAList expedientes = FacREAList.GetListByCobro(cobro.Oid);

                CobroREADetailRpt report = reportMng.GetDetallesCobroREAIndividualReport(cobro, expedientes);

                ShowReport(report);
            }
            break;
            }
        }
        protected override void PrintCobroAction()
        {
            if (Cobro == null)
            {
                return;
            }

            ChargeInfo c;

            if (Datos_Cobros.Current.GetType().Equals("ChargeInfo"))
            {
                c = (ChargeInfo)Datos_Cobros.Current;
            }
            else
            {
                c = Cobro.GetInfo();
            }

            CobroReportMng reportMng = new CobroReportMng(AppContext.ActiveSchema);

            ReportViewer.SetReport(reportMng.GetDetallesCobroIndividualReport(c));
            ReportViewer.ShowDialog();
        }