Exemple #1
0
        public HttpResponseMessage getGrupos(string eventoId, int deporteId = 2)
        {
            JasperReport js = new JasperReport(WebApiApplication.JasperUser, WebApiApplication.JasperPassword, WebApiApplication.JasperServer, WebApiApplication.JasperPuerto);

            js.Parameters.Add("EventoId", eventoId);
            js.Parameters.Add("ReporteId", "8");
            js.Parameters.Add("DeporteId", deporteId);
            js.Parameters.Add("NombreSistema", WebApiApplication.ApplicationName);
            string NameReporte = "rptGrupos";

            js.GenerateReport(WebApiApplication.JasperUrlReport, JasperReport.Type.PDF, WebApiApplication.ApplicationResources, NameReporte, WebApiApplication.ApplicationResourcesImages);
            return(getReportePDF(js.UrlGenerate));
        }
Exemple #2
0
        public HttpResponseMessage getMedallasEvento(int eventoId, string fecha)
        {
            JasperReport js = new JasperReport(WebApiApplication.JasperUser, WebApiApplication.JasperPassword, WebApiApplication.JasperServer, WebApiApplication.JasperPuerto);

            js.Parameters.Add("EventoId", eventoId);
            js.Parameters.Add("ReporteId", "15");
            js.Parameters.Add("Fecha", fecha);
            js.Parameters.Add("NombreSistema", WebApiApplication.ApplicationName);
            string pathResources = WebApiApplication.ApplicationResources;
            string NameReporte   = "rptMedallasEvento";

            js.GenerateReport(WebApiApplication.JasperUrlReport, JasperReport.Type.PDF, pathResources, NameReporte, WebApiApplication.ApplicationResourcesImages);
            return(getReportePDF(js.UrlGenerate));
        }
Exemple #3
0
        public HttpResponseMessage getResumenPartido(int eventoId, int deporteId, int cronogramaId)
        {
            JasperReport js = new JasperReport(WebApiApplication.JasperUser, WebApiApplication.JasperPassword, WebApiApplication.JasperServer, WebApiApplication.JasperPuerto);

            js.Parameters.Add("EventoId", eventoId);
            js.Parameters.Add("ReporteId", "2");
            js.Parameters.Add("CronogramaId", cronogramaId);
            js.Parameters.Add("NombreSistema", WebApiApplication.ApplicationName);
            string pathResources = WebApiApplication.ApplicationResources;
            string NameReporte   = string.Format("rptResumen{0}", deporteId);

            js.GenerateReport(WebApiApplication.JasperUrlReport, JasperReport.Type.PDF, pathResources, NameReporte, WebApiApplication.ApplicationResourcesImages);
            return(getReportePDF(js.UrlGenerate));
        }
Exemple #4
0
        public HttpResponseMessage getControlParametro(int eventoId, int deporteId, int pruebaId, int parametroRamaId, int parametroSucesoId)
        {
            JasperReport js = new JasperReport(WebApiApplication.JasperUser, WebApiApplication.JasperPassword, WebApiApplication.JasperServer, WebApiApplication.JasperPuerto);

            js.Parameters.Add("EventoId", eventoId);
            js.Parameters.Add("ReporteId", "16");
            js.Parameters.Add("ParametroSucesoId", parametroSucesoId);
            js.Parameters.Add("DeporteId", deporteId);
            js.Parameters.Add("PruebaId", pruebaId);
            js.Parameters.Add("ParametroRamaId", parametroRamaId);

            js.Parameters.Add("NombreSistema", WebApiApplication.ApplicationName);
            string pathResources = WebApiApplication.ApplicationResources;
            string NameReporte   = "rptControlParametro";

            js.GenerateReport(WebApiApplication.JasperUrlReport, JasperReport.Type.PDF, pathResources, NameReporte, WebApiApplication.ApplicationResourcesImages);
            return(getReportePDF(js.UrlGenerate));
        }