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)); }
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)); }
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)); }
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)); }