182 lines
11 KiB
Plaintext
182 lines
11 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepMunicipiosMilitantes.aspx.vb" Inherits="ZDG_RepMunicipiosMilitantes" %>
|
|
|
|
<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;
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
|
Reporte Municipios - Militantes
|
|
</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" ValidationGroup="GrpConsultar" 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" AutoPostBack="true" runat="server" OnSelectedIndexChanged="DdlMunicipio_SelectedIndexChanged" Width="100%" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" DataTextField="Municipio" DataValueField="CveMunicipio">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVMunicipio" runat="server" ControlToValidate="DdlMunicipio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Municipio''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpConsultar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEMunicipio" runat="server" HighlightCssClass="vco" TargetControlID="RFVMunicipio" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
<%-- <label class="col-md-1 truncate">Voto</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlVoto" runat="server" Width="100%" CssClass="form-control input-sm select2me" AppendDataBoundItems="true">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="SI Voto" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="NO Voto" Value="0"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
<label class="col-md-1 truncate">Tendencia</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlTendencia" runat="server" Width="100%" CssClass="form-control input-sm select2me" AppendDataBoundItems="true">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="1" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="2" Value="2"></asp:ListItem>
|
|
<asp:ListItem Text="3" Value="3"></asp:ListItem>
|
|
<asp:ListItem Text="4" Value="4"></asp:ListItem>
|
|
</asp:DropDownList>--%>
|
|
<label class="col-md-1 truncate">Coordinador</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlCoordinadores" AutoPostBack="true" runat="server" DataTextField="Nombre" DataValueField="RNM" OnSelectedIndexChanged="DdlCoordinadores_SelectedIndexChanged" Width="100%" CssClass="form-control input-sm select2me" AppendDataBoundItems="true">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-2"></asp:ListItem>
|
|
<%--<asp:ListItem Text="Sin Coordinador" Value="-1"></asp:ListItem>--%>
|
|
</asp:DropDownList>
|
|
<%--<asp:RequiredFieldValidator ID="RFVCoordinadores" runat="server" ControlToValidate="DdlCoordinadores" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Coordinador''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpConsultar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCECoordinadores" runat="server" HighlightCssClass="vco" TargetControlID="RFVCoordinadores" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
|
</div>
|
|
<label class="col-md-1 truncate">Lider</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlLideres" AutoPostBack="true" runat="server" DataTextField="Nombre" DataValueField="RNM" OnSelectedIndexChanged="DdlLideres_SelectedIndexChanged" Width="100%" CssClass="form-control input-sm select2me" AppendDataBoundItems="true">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-2"></asp:ListItem>
|
|
<%--<asp:ListItem Text="Sin Lider" Value="-1"></asp:ListItem>--%>
|
|
</asp:DropDownList>
|
|
<%-- <asp:RequiredFieldValidator ID="RFVLideres" runat="server" ControlToValidate="DdlLideres" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Lider''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpConsultar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCELideres" runat="server" HighlightCssClass="vco" TargetControlID="RFVLideres" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
|
</div>
|
|
<label class="col-md-1 truncate">Movilizador</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlMovilizadores" AutoPostBack="true" runat="server" DataTextField="Nombre" DataValueField="RNM" Width="100%" CssClass="form-control input-sm select2me" AppendDataBoundItems="true">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-2"></asp:ListItem>
|
|
<%--<asp:ListItem Text="Sin Movilizador" Value="-1"></asp:ListItem>--%>
|
|
</asp:DropDownList>
|
|
<%-- <asp:RequiredFieldValidator ID="RFVMovilizadores" runat="server" ControlToValidate="DdlMovilizadores" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Movilizador''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpConsultar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEMovilizadores" runat="server" HighlightCssClass="vco" TargetControlID="RFVMovilizadores" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<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" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Militante" ItemStyle-Width="25%" ItemStyle-HorizontalAlign="Left" HeaderStyle-BackColor="#b9b9b9">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLMilitante" Text='<%# Eval("Militante") %>' runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField HeaderText="Consecutivo" DataField="Consecutivo" ItemStyle-Width="25%" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField HeaderText="Telefono" DataField="Telefono" ItemStyle-Width="25%" ItemStyle-HorizontalAlign="Center" HeaderStyle-BackColor="#b9b9b9" />
|
|
<asp:BoundField HeaderText="Asignados" DataField="Cantidad" DataFormatString="{0:N0}" ItemStyle-Width="25%" ItemStyle-HorizontalAlign="Center" />
|
|
</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
|
|
});
|
|
$('#GvDatos').parent().parent().children().first().css("position", "static");
|
|
}
|
|
|
|
</script>
|
|
|
|
</asp:Content>
|
|
|