Commit inicial Ventas Productivo
This commit is contained in:
210
Prospectos/RepRedesEstructuras.aspx
Normal file
210
Prospectos/RepRedesEstructuras.aspx
Normal file
@@ -0,0 +1,210 @@
|
||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepRedesEstructuras.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" />
|
||||
</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: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><td colspan="9"><br/><b> <asp:Label ID="Label1" runat="server" Text="Análisis Primera Encuesta " Font-size="12px"></asp:Label></b></td>
|
||||
<td colspan="2" style="text-align: right;">
|
||||
<asp:HyperLink ID="HplEnc" runat="server" NavigateUrl="/Prospectos/RepEncuestas.aspx">Otras Encuestas</asp:HyperLink></td>
|
||||
</tr>
|
||||
<tr><td colspan="11"><hr/></td></tr>
|
||||
<tr><td>Pregunta:</td>
|
||||
<td colspan="10"><asp:DropDownList ID="DdlPregunta" runat="server" Width="500px">
|
||||
<asp:ListItem Text="1. Que calificación le daría al trabajo del Gobernador Guillermo Padrés" Value="1"></asp:ListItem>
|
||||
<asp:ListItem Text="2. Que calificación le daría al trabajo del presidente Mpal" Value="2"></asp:ListItem>
|
||||
<asp:ListItem Text="3.1. Conoce a Javier Gándara Magaña " Value="3"></asp:ListItem>
|
||||
<asp:ListItem Text="3.2. Conoce a Ernesto Gándara Camou " Value="4"></asp:ListItem>
|
||||
<asp:ListItem Text="3.3. Conoce a Claudia Pavlovich Arellano " Value="5"></asp:ListItem>
|
||||
<asp:ListItem Text="3.4. Conoce a David Figueroa Ortega " Value="6"></asp:ListItem>
|
||||
<asp:ListItem Text="4. Si hoy fueran las elecciones para presidente municipal. Por cual partido político votaría? " Value="7"></asp:ListItem>
|
||||
<asp:ListItem Text="5. Si hoy fueran las elecciones para Gobernador del Estado. Por cual partido político votaría? " Value="8"></asp:ListItem>
|
||||
<asp:ListItem Text="6. Independientemente de por quién vota o ha votado,. Con que partido se identifica más? " Value="9"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
|
||||
</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:Literal ID="LtlCantidad" runat="server" Text='<%# Eval("Total", "{0:N0}")%>'></asp:Literal>
|
||||
</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>
|
||||
|
||||
Reference in New Issue
Block a user