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

207 lines
9.9 KiB
Plaintext

<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepEncuestas.aspx.vb" Inherits="Prospectos_RepRedesEstructuras" %>
<asp:Content ID="Content1" 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="Content2" ContentPlaceHolderID="E" Runat="Server">
Reporte de Encuestas
</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:DropDownList ID="DdlMunicipio" runat="server" Width="100px">
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
<asp:ListItem Text="HUATABAMPO"></asp:ListItem>
<asp:ListItem Text="NAVOJOA"></asp:ListItem>
<asp:ListItem Text="HERMOSILLO"></asp:ListItem>
<asp:ListItem Text="EMPALME"></asp:ListItem>
<asp:ListItem Text="NOGALES"></asp:ListItem>
<asp:ListItem Text="CAJEME"></asp:ListItem>
<asp:ListItem Text="SAN LUIS RIO COLORADO"></asp:ListItem>
<asp:ListItem Text="GUAYMAS"></asp:ListItem>
</asp:DropDownList>
</td>
<td style="width: 100px;">Sección</td>
<td style="width: 100px;">
<asp:DropDownList ID="DdlSeccion" runat="server" Width="100px">
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
</asp:DropDownList>
</td>
<td style="width: 100px;">Sexo</td>
<td style="width: 100px;">
<asp:DropDownList ID="DdlSexo" runat="server" Width="100px">
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
<asp:ListItem Text="Hombre" Value="1"></asp:ListItem>
<asp:ListItem Text="Mujer" Value="2"></asp:ListItem>
</asp:DropDownList>
</td>
<td style="width: 50px;">IFE</td>
<td style="width: 60px;">
<asp:DropDownList ID="DdlIFE" runat="server" Width="60px">
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
<asp:ListItem Text="Con IFE" Value="1"></asp:ListItem>
<asp:ListItem Text="Sin IFE" Value="2"></asp:ListItem>
</asp:DropDownList>
</td>
<td style="width: 100px;">Agrupador</td>
<td style="width: 100px;">
<asp:DropDownList ID="DdlAgrupador" runat="server" AppendDataBoundItems="true" Width="100px">
<asp:ListItem Text="Municipio" Value="1"></asp:ListItem>
<asp:ListItem Text="Sección Electoral" Value="2"></asp:ListItem>
<asp:ListItem Text="Sexo" Value="3"></asp:ListItem>
<asp:ListItem Text="Rango de Edad" Value="4"></asp:ListItem>
</asp:DropDownList>
</td>
<td align="left" style="border-left-style: solid; border-left-color: Blue; border-left-width: 1px;"><asp:Button ID="BtnConsultar" runat="server" Text="Consultar" /></td>
</tr>
<tr class="SubTotales"><td>Encuesta:</td><td colspan="10">
<asp:DropDownList ID="DdlEncuesta" runat="server" DataTextField="Encuesta" DataValueField="CveEncuesta" Width="500px" AutoPostBack="True"></asp:DropDownList>
</td></tr>
<tr class="SubTotales"><td>Pregunta:</td>
<td colspan="10"><asp:DropDownList ID="DdlPreguntas" runat="server" DataTextField="Pregunta" DataValueField="CvePregunta" Width="500px" AutoPostBack="True"></asp:DropDownList>
</td>
</tr>
<tr class="SubTotales"><td>Respuesta:</td>
<td colspan="9"><asp:DropDownList ID="DdlRespuestas" DataTextField="Respuesta" DataValueField="CveRespuesta" runat="server" Width="500px"></asp:DropDownList>
</td>
<td>
<asp:HyperLink ID="LigaTabla" runat="server" CssClass="Texto" NavigateUrl="/Prospectos/RepEncuestasDetalleTabla.aspx">Listado Masivo</asp:HyperLink></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="GvDatos" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Prospectos Registrados" ShowHeader="True">
<Columns>
<asp:TemplateField ItemStyle-Width="200px" HeaderText="Agrupador">
<ItemTemplate>
<asp:Literal ID="LtlGpo" runat="server" Text='<%# Eval("Agrupador")%>'></asp:Literal>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="120px" HeaderText="">
<ItemTemplate>
<asp:Literal ID="LtlRes" runat="server" Text='<%# Eval("Respuesta")%>'></asp:Literal>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="50px" HeaderText="Total">
<ItemTemplate>
<asp:Hyperlink ID="LtlCantidad" CssClass="Texto" runat="server" Text='<%# Eval("Total", "{0:N0}")%>'></asp:Hyperlink>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="50px" HeaderText="%">
<ItemTemplate>
<asp:Literal ID="LtlPor" runat="server" Text='<%# Eval("Porcentaje", "{0:N2}%")%>'></asp:Literal>
</ItemTemplate>
</asp:TemplateField>
<%--<asp:BoundField />--%>
</Columns>
<AlternatingRowStyle CssClass="TextoAlterno" />
<RowStyle CssClass="Texto" />
<HeaderStyle CssClass="Titulos" />
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>