170 lines
7.2 KiB
Plaintext
170 lines
7.2 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepRedesEstructurasDetalle.aspx.vb" Inherits="Prospectos_RepEncuestasDetalle" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="H" Runat="Server">
|
|
<asp:ImageButton ID="ImgExcel" runat="server" ImageUrl="/Imagenes/IconoExcel.gif" Width="17px" Height="17px" />
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="E" Runat="Server">
|
|
Reporte de Padrón
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="C" Runat="Server">
|
|
<script type="text/javascript">
|
|
var SelectedRow = null;
|
|
var SelectedRowIndex = null;
|
|
var UpperBound = null;
|
|
var LowerBound = null;
|
|
|
|
|
|
window.onload = function () {
|
|
UpperBound = parseInt('<%= GvDatos.Rows.Count%>') - 1;
|
|
LowerBound = 0;
|
|
SelectedRowIndex = -1;
|
|
}
|
|
|
|
function SelectRow(CurrentRow, RowIndex) {
|
|
if (SelectedRow == CurrentRow || RowIndex > UpperBound || RowIndex < LowerBound)
|
|
return;
|
|
|
|
if (SelectedRow != null) {
|
|
SelectedRow.style.backgroundColor = SelectedRow.originalBackgroundColor;
|
|
SelectedRow.style.color = SelectedRow.originalForeColor;
|
|
}
|
|
|
|
if (CurrentRow != null) {
|
|
CurrentRow.originalBackgroundColor = CurrentRow.style.backgroundColor;
|
|
CurrentRow.originalForeColor = CurrentRow.style.color;
|
|
CurrentRow.style.backgroundColor = '#65b0bf';
|
|
CurrentRow.style.color = 'Black';
|
|
}
|
|
|
|
SelectedRow = CurrentRow;
|
|
SelectedRowIndex = RowIndex;
|
|
setTimeout("SelectedRow.focus();", 0);
|
|
}
|
|
|
|
function SelectSibling(e) {
|
|
var e = e ? e : window.event;
|
|
var KeyCode = e.which ? e.which : e.keyCode;
|
|
|
|
if (KeyCode == 40) {
|
|
SelectRow(SelectedRow.nextSibling, SelectedRowIndex + 1);
|
|
}
|
|
else if (KeyCode == 38) {
|
|
SelectRow(SelectedRow.previousSibling, SelectedRowIndex - 1);
|
|
}
|
|
|
|
return false;
|
|
}
|
|
function EC() {
|
|
event.cancelBubble = true;
|
|
if (event.stopPropagation)
|
|
event.stopPropagation();
|
|
|
|
}
|
|
|
|
</script>
|
|
<%--<script language="javascript" type="text/javascript">
|
|
var gridViewCtlId = '<%=GvDatos.ClientID%>';
|
|
var gridViewCtl = null;
|
|
var curSelRow = null;
|
|
function getGridViewControl() {
|
|
if (null == gridViewCtl) {
|
|
gridViewCtl = document.getElementById(gridViewCtlId);
|
|
}
|
|
}
|
|
|
|
function onGridViewRowSelected(rowIdx) {
|
|
var selRow = getSelectedRow(rowIdx);
|
|
if (curSelRow != null) {
|
|
curSelRow.style.backgroundColor = '#ffffff';
|
|
}
|
|
|
|
if (null != selRow) {
|
|
curSelRow = selRow;
|
|
curSelRow.style.backgroundColor = '#ff0022';
|
|
}
|
|
}
|
|
|
|
function getSelectedRow(rowIdx) {
|
|
getGridViewControl();
|
|
if (null != gridViewCtl) {
|
|
return gridViewCtl.rows[rowIdx];
|
|
}
|
|
return null;
|
|
}
|
|
</script> --%>
|
|
<%--<script language="javascript" type="text/javascript">
|
|
var originalstyle = "";
|
|
</script>--%>
|
|
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
<tr align="left" class="SubTotales">
|
|
<td style="width: 100px;">Municipio</td>
|
|
<td style="width: 100px;">
|
|
<asp:Label ID="LblMunicipio" runat="server" Text="Todos"></asp:Label>
|
|
</td>
|
|
<td style="width: 100px;">Sección</td>
|
|
<td style="width: 100px;">
|
|
<asp:Label ID="LblSeccion" runat="server" Text="Todos"></asp:Label>
|
|
</td>
|
|
<td style="width: 100px;">Sexo</td>
|
|
<td style="width: 100px;">
|
|
<asp:Label ID="LblSexo" runat="server" Text="Todos"></asp:Label>
|
|
</td>
|
|
|
|
<td style="width: 50px;">IFE</td>
|
|
<td style="width: 60px;">
|
|
<asp:Label ID="LblIFE" runat="server" Text="Todos"></asp:Label>
|
|
</td>
|
|
<td align="left" style="border-left-style: solid; border-left-color: Blue; border-left-width: 1px;"></td>
|
|
</tr>
|
|
<tr class="SubTotales"><td>Encuesta:</td><td colspan="10">
|
|
<asp:Label ID="LblEncuesta" runat="server" Text="Todos"></asp:Label>
|
|
|
|
</td></tr>
|
|
<tr class="SubTotales"><td>Pregunta:</td>
|
|
<td colspan="10"> <asp:Label ID="LblPregunta" runat="server" Text="Todos"></asp:Label>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr class="SubTotales"><td>Respuesta:</td>
|
|
<td colspan="10"> <asp:Label ID="LblRespuesta" runat="server" Text="Todos"></asp:Label>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr><td colspan="11"><hr/></td></tr>
|
|
</table>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<br/>
|
|
<%--1640--%>
|
|
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="Gvv" runat="server"></asp:GridView>
|
|
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Prospectos Registrados" ShowHeader="True">
|
|
<Columns>
|
|
<asp:BoundField HeaderText="Nombre" DataField="NombreCompleto"/>
|
|
<asp:BoundField HeaderText="F.Nacimiento" DataField="FechaNacimiento" DataFormatString="{0:d}"/>
|
|
<asp:BoundField HeaderText="Direccion" DataField="Calle"/>
|
|
<asp:BoundField HeaderText="#" DataField="Numero"/>
|
|
<asp:BoundField HeaderText="# Int" DataField="NumeroInterior"/>
|
|
<asp:BoundField HeaderText="Entre Calle" DataField="EntreCalle1"/>
|
|
<asp:BoundField HeaderText="y Entre" DataField="EntreCalle2"/>
|
|
<asp:BoundField HeaderText="Colonia" DataField="Colonia"/>
|
|
<asp:BoundField HeaderText="Municipio" DataField="Municipio"/>
|
|
<asp:BoundField HeaderText="IFE" DataField="IFE"/>
|
|
<asp:BoundField HeaderText="Teléfono" DataField="Telefono"/>
|
|
<asp:BoundField HeaderText="Celular" DataField="Celular"/>
|
|
<asp:BoundField HeaderText="Correo" DataField="Correo"/>
|
|
<asp:BoundField HeaderText="Eventos Asistidos" DataField="Eventos"/>
|
|
|
|
</Columns>
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
|
<RowStyle CssClass="Texto" />
|
|
<HeaderStyle CssClass="Titulos" />
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</asp:Content>
|
|
|