public ActionResult ReporteOfertasSegunTipoTrabajoUTP(int? ano, int? mes) { DataSet dsOfertasSegunTipoTrabajoUTP = lnUtp.Reporte_OfertasSegunTipoTrabajoUTP(ano, mes); List<DatosPie> datosPie = new List<DatosPie>(); for (int i = 0; i <= dsOfertasSegunTipoTrabajoUTP.Tables[0].Rows.Count - 1; i++) { DatosPie item = new DatosPie(); item.PieValue = dsOfertasSegunTipoTrabajoUTP.Tables[0].Rows[i]["Ofertas"].ToString(); item.PieLabel = dsOfertasSegunTipoTrabajoUTP.Tables[0].Rows[i]["TipoTrabajoUTP"].ToString(); item.PieColor = Constantes.COLORES_PIE[i].Color; item.PieHighlight = Constantes.COLORES_PIE[i].Highlight; datosPie.Add(item); } List<object> datos = new List<object>(); datos.Add(datosPie); datos.Add(dsOfertasSegunTipoTrabajoUTP.Tables[1].Rows[0]["OfertasTarget"].ToString()); return Json(datos, JsonRequestBehavior.AllowGet); }
public ActionResult ReporteTop10CarrerasMasDemandadas() { DataTable dsTop10CarrerasMasDemandadas = lnUtp.Reporte_Top10CarrerasMasDemandadas(); List<DatosPie> datosPie = new List<DatosPie>(); for (int i = 0; i <= dsTop10CarrerasMasDemandadas.Rows.Count - 1; i++) { DatosPie item = new DatosPie(); item.PieValue = dsTop10CarrerasMasDemandadas.Rows[i]["Ofertas"].ToString(); item.PieLabel = dsTop10CarrerasMasDemandadas.Rows[i]["Estudio"].ToString(); item.PieColor = Constantes.COLORES_PIE[i].Color; item.PieHighlight = Constantes.COLORES_PIE[i].Highlight; datosPie.Add(item); } return Json(datosPie, JsonRequestBehavior.AllowGet); }
public ActionResult ReporteOfertasSegunClasificacionMensual(int? ano, int? mes) { DataTable dsOfertasSegunClasificacion = lnUtp.Reporte_OfertasSegunClasificacionMensual(ano, mes); List<DatosPie> datosPie = new List<DatosPie>(); for (int i = 0; i <= dsOfertasSegunClasificacion.Rows.Count - 1; i++) { DatosPie item = new DatosPie(); item.PieValue = dsOfertasSegunClasificacion.Rows[i]["Ofertas"].ToString(); item.PieLabel = dsOfertasSegunClasificacion.Rows[i]["Clasificacion"].ToString(); item.PieColor = Constantes.COLORES_PIE[i].Color; item.PieHighlight = Constantes.COLORES_PIE[i].Highlight; datosPie.Add(item); } return Json(datosPie, JsonRequestBehavior.AllowGet); }