Ver Mensaje Individual
  #1 (permalink)  
Antiguo 31/01/2015, 11:35
Inphyy
 
Fecha de Ingreso: octubre-2013
Ubicación: df
Mensajes: 13
Antigüedad: 10 años, 6 meses
Puntos: 0
Visualizar un Reporte de Crystal

Hola

Tengo un problema espero me puedan ayudar...

Tengo un Gridw donde muestra datos de un SP y todo bien hasta hay... ahora lo que quiero hacer es que al momento que seleccione un registro me muestre un Reporte de Crystal de acuerdo al ID seleccionado....

Tengo esto

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script type="text/javascript">
$(document).ready(function () {
$("#<%=tbFechaInicio.ClientID %>").datepicker({ dateFormat: 'dd-mm-yy', changeMonth: true, changeYear: true });
$("#<%=tbFechaFin.ClientID %>").datepicker({ dateFormat: 'dd-mm-yy', changeMonth: true, changeYear: true });

$("#gv_foliosRuta ").on('click', 'tr', function () {
var idDetalle = ($(this).index() + 1);
fnsuccesscallbackSave(idDetalle);
});

});


function fnsuccesscallbackSave(data) {
$("#hndIndexRow").val(idDetalle);
var wndReportVisita = null;
if (obj != null) {

if (obj.FolioSalida != '0') {
document.location.href = '/frmVisorManifiesto.aspx?FolioSalida=' + obj.FolioSalida;
} else {
alert("Ocurrio un error.");
}
}
else {
alert("Ocurrio un error.");
}
}

}