295 lines
15 KiB
Plaintext
295 lines
15 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepMunicipios.aspx.vb" Inherits="ZDG_RepMunicipios" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
<link href="/Metronic/assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.css" rel="stylesheet" />
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
<style>
|
|
.Widthall {
|
|
width: 100% !important;
|
|
}
|
|
|
|
.dataTables_scrollHeadInner {
|
|
width: 100% !important;
|
|
background-color: #dddddd;
|
|
padding-left: 0px !important;
|
|
}
|
|
|
|
.dataTables_scrollFoot {
|
|
display: none;
|
|
position: static;
|
|
}
|
|
|
|
.table-scrollable {
|
|
margin: 0px !important;
|
|
}
|
|
|
|
.dataTables_scroll {
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
.table.dataTable {
|
|
margin-top: 0px !important;
|
|
}
|
|
|
|
.dataTables_scrollBody table th {
|
|
padding: 0px !important;
|
|
padding-right: 4px !important;
|
|
padding-left: 4px !important;
|
|
}
|
|
|
|
.sinlink td a {
|
|
pointer-events: none;
|
|
cursor: default;
|
|
color: black;
|
|
font-size: small;
|
|
}
|
|
|
|
.white a{
|
|
color: white !important;
|
|
}
|
|
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
|
Reporte Municipios
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
|
<li>
|
|
<asp:LinkButton ID="ImgExcel" runat="server"> <i class="fa fa-ad-excel"></i> Exportar Excel</asp:LinkButton>
|
|
</li>
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
|
|
|
<asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="Inline" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="btn-group pull-right btn-separete">
|
|
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-fit-height btnopaco" />
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
|
|
|
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="portlet solid grey-cascade portlet-filter">
|
|
<div class="portlet-title portlet-filterT smalltitle">
|
|
<div class="titlefiltros caption ">
|
|
<div class="row">
|
|
<label class="col-md-1 truncate">Municipio</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlMunicipio" runat="server" Width="100%" AutoPostBack="true" OnSelectedIndexChanged="DdlMunicipio_SelectedIndexChanged" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" DataTextField="Municipio" DataValueField="CveMunicipio">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<div id="dvCa" style="width: 100%; top: 40px">
|
|
<table id="dTable" class="table Widthall ">
|
|
<tr>
|
|
<td width="22.5%" id="TH1"></td>
|
|
<td width="15%" id="TH2" style="font-size:medium; text-align: center!important; background-color: #dddddd;"><strong>Votación</strong> </td>
|
|
<td width="20%" id="TH3" style="font-size:medium; text-align: center!important; background-color: #b9b9b9;"><strong>Tendencia</strong> </td>
|
|
<td width="12.5%" id="TH4" style="font-size:medium; text-align: center!important; background-color: #dddddd;"><strong>Ventaja</strong></td>
|
|
<td width="30%" id="TH5" style="font-size:medium; text-align: center!important; background-color: #b9b9b9;"><strong>Seguimiento DG</strong> </td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<asp:GridView ID="GvDatos" ClientIDMode="Static" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron datos con los filtros especificados" CssClass="table table-striped table-hover Widthall" BorderColor="#D3D3D3" GridLines="None">
|
|
<Columns>
|
|
<%--<asp:BoundField HeaderText="Municipio" DataField="Municipio" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Left" />--%>
|
|
<asp:TemplateField HeaderText="Municipio" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Left" HeaderStyle-BackColor="#b9b9b9">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLMunicipio" Text='<%# Eval("Municipio") %>' runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--<asp:BoundField HeaderText="Padron" DataField="Padron" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Right" />--%>
|
|
<asp:TemplateField HeaderText="Padron" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLPadron" Text='<%# Eval("Padron", "{0:###,##0}") %>' runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--<asp:BoundField HeaderText="Votos" DataField="Votos" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Right" />--%>
|
|
<asp:TemplateField HeaderText="Total" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Center" HeaderStyle-BackColor="#b9b9b9">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLVotos" Text='<%# Eval("Votos", "{0:###,##0}") %>' runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--<asp:BoundField HeaderText="Votos %" DataField="VotosPorcentaje" DataFormatString="{0:N2}%" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Right" />--%>
|
|
<asp:TemplateField HeaderText="%" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLVotosPorcentaje" Text='<%# Eval("VotosPorcentaje") %>' DataFormatString="{0:N2}" runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--<asp:BoundField HeaderText="Votos 1" DataField="VT1" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Right" />--%>
|
|
<asp:TemplateField HeaderText="DG" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" HeaderStyle-BackColor="#b9b9b9">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLVotos1" Text='<%# Eval("VT1", "{0:###,##0}") %>' runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--<asp:BoundField HeaderText="Votos 2" DataField="VT2" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Right" />--%>
|
|
<asp:TemplateField HeaderText="EM" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLVotos2" Text='<%# Eval("VT2", "{0:###,##0}") %>' runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--<asp:BoundField HeaderText="Votos 3" DataField="VT3" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Right" />--%>
|
|
<asp:TemplateField HeaderText="AE" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" HeaderStyle-BackColor="#b9b9b9">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLVotos3" Text='<%# Eval("VT3", "{0:###,##0}") %>' runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--<asp:BoundField HeaderText="Votos 4" DataField="VT4" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Right" />--%>
|
|
<asp:TemplateField HeaderText="NI" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLVotos4" Text='<%# Eval("VT4", "{0:###,##0}") %>' runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--<asp:BoundField HeaderText="Ventaja Votos" DataField="VentajaVotos" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Right" />--%>
|
|
<asp:TemplateField HeaderText="Votos" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" HeaderStyle-BackColor="#b9b9b9">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLVentajaVotos" Text='<%# Eval("VentajaVotos", "{0:###,##0}") %>' runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField Visible="true" HeaderText="Pts %" DataField="VentajaVotosPorcentaje" DataFormatString="{0:N2}%" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:TemplateField Visible="false" HeaderText="Pts %" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<div class="row" style="width: 100%;">
|
|
<%--<div style="width: 80%;">
|
|
<div runat="server" id="DivVentajaPorcentaje" style="height: 15px; background-color: cornflowerblue; float: left;"></div>
|
|
</div>--%>
|
|
<div class="col-md-6">
|
|
<asp:Literal ID="LiVentajaVotosPorcentaje" Text='<%# Eval("VentajaVotosPorcentaje", "{0:N2}%") %>' runat="server" />
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div runat="server" id="DivVentaja" style="width: 100%; height: 25px;"></div>
|
|
</div>
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField Visible="true" HeaderText="Avance DG %" DataField="Avance" DataFormatString="{0:N2}%" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:TemplateField HeaderText="Avance" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Right" HeaderStyle-BackColor="#b9b9b9">
|
|
<ItemTemplate>
|
|
<div class="row" style="width: 90%; margin: 0;">
|
|
<div class="col-md-9" style="padding: 0px 5px 0px 0px;">
|
|
<div runat="server" id="DivAvancePorcentaje" style="height: 25px; background-color: cornflowerblue; float: left;"></div>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<asp:Literal ID="LiAvance" Text='<%# Eval("Avance", "{0:N2}%") %>' runat="server" />
|
|
</div>
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--<asp:BoundField HeaderText="Faltan X Votar" DataField="FaltanPorVotar" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Right" />--%>
|
|
<asp:TemplateField HeaderText="F. X Votar" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLFaltanVotar" Text='<%# Eval("FaltanPorVotar", "{0:###,##0}") %>' runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Asignados" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Center" HeaderStyle-BackColor="#b9b9b9">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLAsignados" Text='<%# Eval("Cantidad", "{0:###,##0}") %>' runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
|
|
|
<script src="/Metronic/assets/global/scripts/datatable.js"></script>
|
|
<script src="/Metronic/assets/global/plugins/datatables/all.min.js"></script>
|
|
<script type="text/javascript">
|
|
|
|
function OrdenarGV() {
|
|
var Tam = TamañoVentana();
|
|
var Alto = Tam.height - 270;
|
|
if (Alto < 100) {
|
|
Alto = 100;
|
|
}
|
|
$('#GvDatos').DataTable({
|
|
scrollY: Alto + 'px',
|
|
scrollCollapse: true,
|
|
paging: false,
|
|
searching: false,
|
|
info: false,
|
|
"columnDefs": [
|
|
{ "orderable": false, "targets": [4, 5, 6, 7] }
|
|
]
|
|
});
|
|
$('#GvDatos').parent().parent().children().first().css("position", "static");
|
|
}
|
|
|
|
<%-- $(window).resize(function () {
|
|
|
|
subHeaders();
|
|
dTable.columns.adjust().draw();
|
|
});
|
|
|
|
function subHeaders() {
|
|
|
|
var recco = 0;
|
|
|
|
$("#<%=GvDatos.ClientID %> tr").each(function() {
|
|
if (!this.rowIndex) return;
|
|
|
|
var celdas = [];
|
|
|
|
$(this).find('td').each(function (column, td) {
|
|
|
|
celdas.push($(td).width());
|
|
});
|
|
|
|
var ancho = 0
|
|
ancho += celdas[0];
|
|
ancho += celdas[1];
|
|
|
|
$('#TH1').width(ancho);
|
|
ancho = 0;
|
|
|
|
ancho += celdas[2];
|
|
ancho += celdas[3];
|
|
ancho += celdas[4];
|
|
ancho += celdas[5];
|
|
ancho += celdas[6];
|
|
ancho += celdas[7];
|
|
|
|
$('#TH2').width(ancho);
|
|
ancho = 0;
|
|
|
|
ancho += celdas[8];
|
|
ancho += celdas[9];
|
|
|
|
$('#TH3').width(ancho);
|
|
ancho = 0;
|
|
|
|
ancho += celdas[10];
|
|
ancho += celdas[11];
|
|
ancho += celdas[12];
|
|
|
|
$('#TH4').width(ancho);
|
|
|
|
return false;
|
|
});
|
|
}--%>
|
|
|
|
</script>
|
|
|
|
</asp:Content>
|
|
|