Correcion en rastreo

This commit is contained in:
2020-02-06 09:25:46 -07:00
parent 08e71250d3
commit 2852d1505b
2 changed files with 4 additions and 4 deletions

View File

@@ -2572,13 +2572,13 @@
});
}
var indiceAnterior = 0;
function CargaDatosSeleccionados(indice, valor) {
var indiceAnteriorPI = 0;
function CargaDatosSeleccionadosPI(indice, valor) {
var columnaSeleccionada = 2 + indice;
$('#HdnGrupo').val(valor);
$('#C_GvGrupos tr').filter(':nth-child(' + indiceAnterior + ')').css('background-color', 'initial');
$('#C_GvGrupos tr').filter(':nth-child(' + columnaSeleccionada + ')').css('background-color', '#F5B27A');
indiceAnterior = columnaSeleccionada;
indiceAnteriorPI = columnaSeleccionada;
}
function CambiaTipo(Tipo) {

View File

@@ -2190,7 +2190,7 @@ Partial Class GPS_Rastreo
Protected Sub GvGrupos_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvGrupos.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
e.Row.Attributes.Add("onClick", $"CargaDatosSeleccionados({e.Row.RowIndex}, '{e.Row.DBCampo("CvePuntoDeInteresGrupo").ToString}');")
e.Row.Attributes.Add("onClick", $"CargaDatosSeleccionadosPI({e.Row.RowIndex}, '{e.Row.DBCampo("CvePuntoDeInteresGrupo").ToString}');")
End If
End Sub