Exemplo n.º 1
0
        public HttpResponseMessage GetDetalleJornada(int jornadaId, int categoriaId, int eventoId)
        {
            var    dtDatosJornada = GolfCompetidorJornada.GetCompetidoresGrupos(jornadaId, categoriaId);
            string pathResources  = WebApiApplication.ApplicationResources;
            var    path           = GolfCompetidorReport.ReporteJornadaInscritos(dtDatosJornada, pathResources, eventoId, categoriaId, jornadaId);

            return(getReportePDF(path));
        }
Exemplo n.º 2
0
        public HttpResponseMessage GetDetallePersonaCompetidor(int personaId, int eventoId, string categoriaName)
        {
            List <GolfJornada> list = GolfJornada.GetGolfJornadas(Convert.ToInt32(eventoId));
            string             ids  = string.Empty;

            foreach (GolfJornada item in list)
            {
                if (string.IsNullOrEmpty(ids))
                {
                    ids = item.JornadaId.ToString();
                }
                else
                {
                    ids = string.Format("{0},{1}", ids, item.JornadaId);
                }
            }
            DataTable dtDatosPersonales = GolfCompetidor.GetGolfCompetidorByPersonaId(personaId);
            string    pathResources     = WebApiApplication.ApplicationResources;
            string    path = GolfCompetidorReport.ReporteResultadosCompetidor(dtDatosPersonales, eventoId, categoriaName, ids, personaId, pathResources);

            return(getReportePDF(path));
        }