Files
SIG/Prospectos/RepEncuestasDetalleTabla.aspx
JORGE LUIS CAUDILLO ESPARZA c35cf91883 Commit inicial Ventas Productivo
2019-08-14 16:40:54 -07:00

197 lines
10 KiB
Plaintext

<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepEncuestasDetalleTabla.aspx.vb" Inherits="Prospectos_RepEncuestasDetalleTabla" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
Reporte de Padrón
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
<asp:ImageButton ID="ImgExcel" runat="server" ImageUrl="/Imagenes/IconoExcel.gif" Width="17px" Height="17px" />&nbsp;&nbsp;
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
<asp:Panel ID="PnlFiltro" runat="server">
<div class="portlet solid grey-cascade portlet-filter" style="">
<div class="portlet-title portlet-filterT" style="">
<div class="titlefiltros caption ">
<ul class="list-inline" >
<li>Encuesta:
<asp:DropDownList ID="DdlEncuesta" runat="server" DataTextField="Encuesta" DataValueField="CveEncuesta" Class="table-group-action-input form-control input-inline input-small input-sm" style="width:500px !important;" ></asp:DropDownList>
</li>
</ul>
</div>
<div class="tools">
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-primary" /> <asp:Button ID="Btn1y2" runat="server" Visible="False" Text="Encuesta 1 y 2" class="btn btn-primary" />
<a href="javascript:;" class="expand">
</a>
<a onclick="document.getElementById('C_BtnConsultar').click();" class="reload">
</a>
</div>
</div>
</div>
</asp:Panel>
<asp:Label ID="LblTotal" runat="server" Text=""></asp:Label>
<br/>
<div style="display: none;" >
<asp:GridView ID="GVD" Visible="true" Width="5px" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Prospectos Registrados" ShowHeader="True" CssClass="table table-striped table-advance table-hover" style="margin-top:-10px; text-align:center;" GridLines="None">
<Columns>
<asp:BoundField HeaderText="A. Paterno" DataField="APellidoPaterno"/>
<asp:BoundField HeaderText="A. Materno" DataField="APellidoMaterno"/>
<asp:BoundField HeaderText="Nombres" DataField="Nombres"/>
<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="Sección" DataField="Seccion"/>
<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="Estatus" DataField="EncuestaEstatus"/>
<asp:BoundField HeaderText="F. Encuesta" DataField="FechaEncuesta" DataFormatString="{0:d}"/>
<asp:BoundField HeaderText="F. Ingreso" DataField="FechaEncuestaIngreso" DataFormatString="{0:d}"/>
<asp:BoundField HeaderText="U. Ingreso" DataField="UsuarioIngreso"/>
<asp:BoundField HeaderText="U. Encuestador" DataField="Encuestador"/>
</Columns>
<AlternatingRowStyle CssClass="TextoAlterno" />
<RowStyle CssClass="Texto" />
<HeaderStyle CssClass="Titulos" />
</asp:GridView>
</div>
<div style="display: none;" >
<asp:GridView ID="GV1y2" Visible="true" Width="5px" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Prospectos Registrados" ShowHeader="True" CssClass="table table-striped table-advance table-hover" style="margin-top:-10px; text-align:center;" GridLines="None">
<Columns>
<asp:BoundField HeaderText="Nombre Completo" DataField="NombreCompleto"/>
<asp:BoundField HeaderText="F.Nacimiento" DataField="FechaNacimiento" DataFormatString="{0:d}"/>
</Columns>
<AlternatingRowStyle CssClass="TextoAlterno" />
<RowStyle CssClass="Texto" />
<HeaderStyle CssClass="Titulos" />
</asp:GridView>
</div>
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Prospectos Registrados" ShowHeader="True" CssClass="table table-striped table-advance table-hover" style="margin-top:-10px; text-align:center;" GridLines="None">
<Columns>
<asp:BoundField HeaderText="A. Paterno" DataField="APellidoPaterno"/>
<asp:BoundField HeaderText="A. Materno" DataField="APellidoMaterno"/>
<asp:BoundField HeaderText="Nombres" DataField="Nombres"/>
<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="Sección" DataField="Seccion"/>
<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="Estatus" DataField="EncuestaEstatus"/>
<asp:BoundField HeaderText="F. Encuesta" DataField="FechaEncuesta" DataFormatString="{0:d}"/>
<asp:BoundField HeaderText="F. Ingreso" DataField="FechaEncuestaIngreso" DataFormatString="{0:d}"/>
<asp:BoundField HeaderText="U. Ingreso" DataField="UsuarioIngreso"/>
<asp:BoundField HeaderText="U. Encuestador" DataField="Encuestador"/>
</Columns>
<AlternatingRowStyle CssClass="TextoAlterno" />
<RowStyle CssClass="Texto" />
<HeaderStyle CssClass="Titulos" />
</asp:GridView>
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="JS" 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:Content>