Beispiel #1
0
        public void MostrarReporteProyectoInstituto()
        {
            try
            {
                XtraReport proyectoInsituto = new XtraReport();
                proyectoInsituto.CreateDocument();
                proyectoInsituto.Pages.AddRange(GetProyectoEconomico(true).Pages);
                proyectoInsituto.Pages.AddRange(GetCartaDeInvitacion(true).Pages);
                proyectoInsituto.Pages.AddRange(GetReporteTablaCertifico().Pages);
                for (var i = 0; i < 5; i++)
                {
                    //ModeloDeViajeV2 modelo2 = new ModeloDeViajeV2(this);
                    //modelo2.CreateDocument();
                    //_ProyectoInsituto.Pages.AddRange(modelo2.Pages);
                    //ModeloDeViaje _CertificoIcm = new ModeloDeViaje(this);
                    //_CertificoIcm.CreateDocument();
                    //_ProyectoInsituto.Pages.AddRange(_CertificoIcm.Pages);
                    var reporteModeloDeViaje = GetReporteModeloDeViaje();
                    proyectoInsituto.Pages.AddRange(reporteModeloDeViaje.Pages);
                }
                //ModeloDeViaje _aFirmaGerente = new ModeloDeViaje(this);
                //_ProyectoInsituto.Pages.AddRange(_aFirmaGerente.Pages);

                var repertorio = GetReporteRepertorio();
                proyectoInsituto.Pages.AddRange(repertorio.Pages);
                var repertorio1 = GetReporteRepertorio();
                proyectoInsituto.Pages.AddRange(repertorio1.Pages);
                proyectoInsituto.ShowRibbonPreviewDialog();
            }
            catch (Exception e)
            {
                Utils.MuestraError("Error al crear reporte<br>Verifique la inserción de los datos por favor");
            }
        }
Beispiel #2
0
        private void ReporteDeudas_barButtonItem_ItemClick(object sender, ItemClickEventArgs e)
        {
            PopupAgrupacionMonedaFechaXtraForm popup = new PopupAgrupacionMonedaFechaXtraForm();

            if (popup.ShowDialog() == DialogResult.OK)
            {
                var        agrupacionesIds = popup.AgrupacionesIds;
                var        fechaIncial     = popup.FechaInicial;
                var        fechaFinal      = popup.FechaFinal;
                var        TipoMonedaId    = popup.TipoMonedaId;
                XtraReport reportePadre    = new XtraReport();
                reportePadre.CreateDocument();
                foreach (var agrupacionId in agrupacionesIds)
                {
                    var historicos = AGlobalDataContext.HistoricoDeuda.Where(c => c.AgrupacionId == agrupacionId && c.TipoMonedaId == TipoMonedaId && c.Fecha >= fechaIncial && c.Fecha <= fechaFinal);
                    if (historicos.Any())
                    {
                        DeudaHistoricoXtraReport reporte =
                            new DeudaHistoricoXtraReport(agrupacionId, TipoMonedaId, fechaIncial, fechaFinal);
                        reporte.CreateDocument();
                        reportePadre.Pages.AddRange(reporte.Pages);
                    }
                }
                reportePadre.ShowRibbonPreviewDialog();
            }
        }
Beispiel #3
0
 public void Print()
 {
     try
     {
         using (XtraReport report1 = new XtraReport())
         {
             report1.ShowRibbonPreviewDialog();
         }
     }
     catch (Exception ex)
     {
         MessageBoxService.Show(ex.Message);
     }
 }
Beispiel #4
0
        private void MuestraReporte(XtraReport aXtraReport)
        {
            aXtraReport.ShowRibbonPreviewDialog();
            //using (ReportPrintTool printTool = new ReportPrintTool(aXtraReport))
            //{
            //    // Invoke the Ribbon Print Preview form modally,
            //    // and load the report document into it.
            //    printTool.ShowRibbonPreviewDialog();

            //    // Invoke the Ribbon Print Preview form
            //    // with the specified look and feel setting.
            //    //printTool.ShowRibbonPreview(UserLookAndFeel.Default);
            //}
        }
Beispiel #5
0
        public void MostrarReporteFundamentacion(bool anHabillitacionDePasaporte = false)
        {
            Proyectos  proyectos            = (new NegocioDataContext().Proyectos.FirstOrDefault(c => c.ProyectoID == ProyectoID));
            XtraReport hojaNotificacionXtra = new XtraReport();

            hojaNotificacionXtra.CreateDocument();
            HojaFundamentacionXtraReport hojaFundamentacionXtra = new HojaFundamentacionXtraReport(
                proyectos.ProyectoID, anHabillitacionDePasaporte);

            hojaFundamentacionXtra.CreateDocument();
            PlanillaSalida salida = new PlanillaSalida(proyectos, anHabillitacionDePasaporte);

            salida.CreateDocument();
            hojaNotificacionXtra.Pages.AddRange(hojaFundamentacionXtra.Pages);
            hojaNotificacionXtra.Pages.AddRange(salida.Pages);
            if (
                ParticipantesDeProyectos.Any(
                    c => c.TipoParticipante == Enumerados.TipoParticipante.Integrante.ToString()))
            {
                TablaCertificoXtraReportV2 tablaCertifico = new TablaCertificoXtraReportV2(this);
                tablaCertifico.CreateDocument();
                hojaNotificacionXtra.Pages.AddRange(tablaCertifico.Pages);
            }
            //hojaNotificacionXtra.Pages.AddRange(GetCartaDeInvitacion(true).Pages);
            //var documentosPages = GetDocumentosDeInvitados(false).Pages;
            //hojaNotificacionXtra.Pages.AddRange(documentosPages);
            hojaNotificacionXtra.ShowRibbonPreviewDialog();

            //List<ImageFullPageXtraReport> _CartaDeInvitacion = GetCartaDeInvitacion();
            //foreach (var _ImageFullPageXtraReport in _CartaDeInvitacion)
            //{
            //    _ImageFullPageXtraReport.CreateDocument();
            //    _HojaNotificacionXtra.Pages.AddRange(_ImageFullPageXtraReport.Pages);
            //}


            //using (ReportPrintTool printTool = new ReportPrintTool(hojaNotificacionXtra))
            //{
            //    // Invoke the Ribbon Print Preview form modally,
            //    // and load the report document into it.
            //    printTool.ShowRibbonPreviewDialog();

            //    // Invoke the Ribbon Print Preview form
            //    // with the specified look and feel setting.
            //    //printTool.ShowRibbonPreviewDialog(UserLookAndFeel.Default);
            //}
        }
Beispiel #6
0
        /// <summary>
        /// Gelen Giden Evrak İstatistik verileri hazırlanır ve raporu çıkartılır.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnIstatistikler_ItemClick(object sender, ItemClickEventArgs e)
        {
            var istatistikGelenGidenEvrak = new XtraReport();

            istatistikGelenGidenEvrak.LoadLayout(Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory) + "\\Raporlar\\GelenGidenIstatistik.repx");

            var dataSource = new GelenGidenIstatistik().Hazirla(int.Parse(brIstYil.EditValue.ToString()));

            istatistikGelenGidenEvrak.DataSource = dataSource;

            if (dataSource.Count <= 0)
            {
                XtraMessageBox.Show("Gösterilecek kayıt bulunamadı.");
                return;
            }
            istatistikGelenGidenEvrak.ShowRibbonPreviewDialog();
        }
Beispiel #7
0
        private void RepIngPorGrupo_barButtonItem_ItemClick(object sender, ItemClickEventArgs e)
        {
            var popup = new PopupAgrupacionMonedaFechaXtraForm(true);

            if (popup.ShowDialog() == DialogResult.OK)
            {
                var agrupaciones = popup.AgrupacionesIds;
                if (agrupaciones == null)
                {
                    return;
                }
                XtraReport reporte = new XtraReport();
                reporte.CreateDocument();
                foreach (var agrupacionId in agrupaciones)
                {
                    OnatDeUnidadArtistica_XtraReport reporteActual = new OnatDeUnidadArtistica_XtraReport(agrupacionId, popup.FechaFinal, popup.FechaInicial, popup.TipoMonedaId);
                    reporteActual.CreateDocument();
                    reporte.Pages.AddRange(reporteActual.Pages);
                }
                reporte.ShowRibbonPreviewDialog();
            }
        }
Beispiel #8
0
        private void btnIspis_Click(object sender, EventArgs e)
        {
            XtraReport tempReport = Reports.Utils.Racun.ShowRacun(Header.Id);

            tempReport.ShowRibbonPreviewDialog();
        }
Beispiel #9
0
        private void btnPoSd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            XtraReport tempReport = Reports.Utils.IzvjesceOpausalnomDohodku.ShowIzvjesceOpausalnomDohodku();

            tempReport.ShowRibbonPreviewDialog();
        }
Beispiel #10
0
        private void btnKpr_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            XtraReport tempReport = Reports.Utils.KnjigaPrometa.ShowKnjigaPrometa();

            tempReport.ShowRibbonPreviewDialog();
        }