protected void GvOSER_PageIndexChanging(object sender, GridViewPageEventArgs e) { try{ GvOSER.PageIndex = e.NewPageIndex; GvOSER.DataSource = (DataTable)Session["CUMPL_APR_OSER"]; GvOSER.DataBind(); }catch (Exception ex) { Mensaje(ex.Message, WarningType.Danger); } }
public void cargarDatos(String vId) { try{ String vQuery = "[STEISP_CUMPLIMIENTO_Reportes] 4," + vId; DataSet vDSet = vConexion.obtenerDataSet(vQuery); cargarTextos(vDSet.Tables[0]); if (vDSet.Tables[1].Rows.Count > 0) { GvKPISolicitudes.DataSource = vDSet.Tables[1]; GvKPISolicitudes.DataBind(); Session["CUMPL_APR_KPI"] = vDSet.Tables[1]; DivKPI.Visible = true; } if (vDSet.Tables[2].Rows.Count > 0) { GvRuptura.DataSource = vDSet.Tables[2]; GvRuptura.DataBind(); Session["CUMPL_APR_RUPTURA"] = vDSet.Tables[2]; LbResRuptura.Visible = false; DivRuptura.Visible = true; } if (vDSet.Tables[3].Rows.Count > 0) { GvOSER.DataSource = vDSet.Tables[3]; Session["CUMPL_APR_OSER"] = vDSet.Tables[3]; GvOSER.DataBind(); LbResOSER.Visible = false; } if (vDSet.Tables[4].Rows.Count > 0) { GvRendimiento.DataSource = vDSet.Tables[4]; GvRendimiento.DataBind(); Session["CUMPL_APR_RENDIMIENTO"] = vDSet.Tables[4]; graficos(vDSet.Tables[4]); } if (vDSet.Tables[5].Rows.Count > 0) { LbInsatisfaccion.Visible = false; GvInsatisfacciones.DataSource = vDSet.Tables[5]; Session["CUMPL_APR_SATISFACCION"] = vDSet.Tables[5]; GvInsatisfacciones.DataBind(); } }catch (Exception ex) { Mensaje(ex.Message, WarningType.Danger); } }