250 lines
18 KiB
Plaintext
250 lines
18 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepEstadoActividades.aspx.vb" Inherits="AC_RepEstadoActividades" %>
|
|
|
|
<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">
|
|
<asp:Literal ID="LtTitulo" Text="Estado de Actividades" runat="server" />
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
|
|
<li>
|
|
<asp:LinkButton ID="ImgExcel" runat="server"><i class="fa fa-ad-excel"></i> Exporta Excel</asp:LinkButton>
|
|
<%--<img src="/Imagenes/separador02.gif" alt="" />
|
|
<asp:ImageButton ID="ImgExcel" runat="server" ImageUrl="/Imagenes/IconoExcel.gif" Width="20px" Height="20px" /> --%>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="Imprimir" runat="server"><i class="fa fa-print"></i> Imprimir</asp:LinkButton>
|
|
<%-- <img src="/Imagenes/separador02.gif" alt="" />
|
|
<asp:ImageButton ID="Imprimir" runat="server" alt="Imprimir" src="/Imagenes/btnImprimir.gif" Style="cursor: pointer; height: 20px;" /> --%>
|
|
</li>
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
|
|
<%--<asp:UpdatePanel runat="server" ID="UpFiltros" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<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>FechaInicio:
|
|
<asp:TextBox ID="TxtFechaInicio" runat="server" Width="70px"></asp:TextBox>
|
|
<asp:ImageButton runat="server" ID="imgFechaInicio" ImageUrl="/Imagenes/calendar.png" ImageAlign="AbsMiddle" Width="16px" Height="16px" AlternateText="Click para ver el Calendario" />
|
|
<ajax:MaskedEditExtender ID="MEEFechaInicio" runat="server" TargetControlID="TxtFechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender1" TargetControlID="TxtFechaInicio" PopupButtonID="ImgFechaInicio" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFechaInicio" runat="server" ControlToValidate="TxtFechaInicio" InitialValue="__/__/____" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Corte''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEFechaInicio" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaInicio" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</li>
|
|
<li>FechaFin:
|
|
<asp:TextBox ID="TxtFechaFin" runat="server" Width="70px"></asp:TextBox>
|
|
<asp:ImageButton runat="server" ID="imgFechaFin" ImageUrl="/Imagenes/calendar.png" ImageAlign="AbsMiddle" Width="16px" Height="16px" AlternateText="Click para ver el Calendario" />
|
|
<ajax:MaskedEditExtender ID="MEEFechaFin" runat="server" TargetControlID="TxtFechaFin" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="Calendario" TargetControlID="TxtFechaFin" PopupButtonID="ImgFechaFin" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFechaFin" runat="server" ControlToValidate="TxtFechaFin" InitialValue="__/__/____" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Corte''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEFechaFin" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaFin" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</li>
|
|
<li>Ejercicio:
|
|
<asp:DropDownList ID="DdlEjercicio" runat="server" Width="100px">
|
|
<asp:ListItem Text="2014" Value="2014"></asp:ListItem>
|
|
<asp:ListItem Text="2015" Value="2015"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</li>
|
|
<li>Periodo:
|
|
<asp:DropDownList ID="DdlPeriodo" runat="server" Width="100px">
|
|
<asp:ListItem Text="Enero" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Febrero" Value="2"></asp:ListItem>
|
|
<asp:ListItem Text="Marzo" Value="3"></asp:ListItem>
|
|
<asp:ListItem Text="Abril" Value="4"></asp:ListItem>
|
|
<asp:ListItem Text="Mayo" Value="5"></asp:ListItem>
|
|
<asp:ListItem Text="Junio" Value="6"></asp:ListItem>
|
|
<asp:ListItem Text="Julio" Value="7"></asp:ListItem>
|
|
<asp:ListItem Text="Agosto" Value="8"></asp:ListItem>
|
|
<asp:ListItem Text="Septiembre" Value="9"></asp:ListItem>
|
|
<asp:ListItem Text="Octubre" Value="10"></asp:ListItem>
|
|
<asp:ListItem Text="Noviembre" Value="11"></asp:ListItem>
|
|
<asp:ListItem Text="Diciembre" Value="12"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</li>
|
|
<li>Firma:
|
|
<asp:CheckBox ID="ChkFirma" runat="server" />
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="tools">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnConsultar" runat="server" Text="Filtrar" class="btn btn-primary" OnClick="BtnConsultar_Click" />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>--%>
|
|
|
|
<asp:UpdatePanel runat="server" ID="UpFiltros" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="portlet solid grey-cascade portlet-filter">
|
|
<div class="portlet-title portlet-filterT smalltitle">
|
|
<div class="tools">
|
|
<asp:Button ID="BtnConsultar" Text="Consultar" CssClass="btn btn-primary" runat="server" OnClick="BtnConsultar_Click" />
|
|
</div>
|
|
<div class="titlefiltros caption ">
|
|
<div class="row">
|
|
<ul class="list-inline text-size-12">
|
|
<li>Ejercicio:
|
|
</li>
|
|
<li>
|
|
<asp:DropDownList ID="DdlEjercicio" runat="server" CssClass="select2me" DataTextField="Ejercicio" DataValueField="Ejercicio" Width="100px">
|
|
</asp:DropDownList>
|
|
</li>
|
|
<li>Periodo:
|
|
</li>
|
|
<li>
|
|
<asp:DropDownList ID="DdlPeriodo" runat="server" Width="150px" CssClass="select2me">
|
|
<asp:ListItem Text="Enero" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Febrero" Value="2"></asp:ListItem>
|
|
<asp:ListItem Text="Marzo" Value="3"></asp:ListItem>
|
|
<asp:ListItem Text="Abril" Value="4"></asp:ListItem>
|
|
<asp:ListItem Text="Mayo" Value="5"></asp:ListItem>
|
|
<asp:ListItem Text="Junio" Value="6"></asp:ListItem>
|
|
<asp:ListItem Text="Julio" Value="7"></asp:ListItem>
|
|
<asp:ListItem Text="Agosto" Value="8"></asp:ListItem>
|
|
<asp:ListItem Text="Septiembre" Value="9"></asp:ListItem>
|
|
<asp:ListItem Text="Octubre" Value="10"></asp:ListItem>
|
|
<asp:ListItem Text="Noviembre" Value="11"></asp:ListItem>
|
|
<asp:ListItem Text="Diciembre" Value="12"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</li>
|
|
<label class="col-md-2" style="width: 80px;">SubProyecto: </label>
|
|
<div class="col-md-2 ">
|
|
<asp:DropDownList ID="DdlSubproyecto" runat="server" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me" Style="max-width: 200px !important;">
|
|
<asp:ListItem Selected="True" Text="Todas" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
|
|
<li runat="server" id="liTipoReporte" visible="false">Tipo:
|
|
<asp:DropDownList ID="DdlTipoReporte" runat="server" Width="150px">
|
|
<asp:ListItem Text="Contable" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Contable y Complementario" Value="2"></asp:ListItem>
|
|
<asp:ListItem Text="Complementario" Value="3"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<br />
|
|
<br />
|
|
|
|
<table style="width: 100%;" class="table table-striped table-advance table-hover">
|
|
<tr>
|
|
<td width="100%" padding="0">
|
|
<asp:UpdatePanel ID="UpDatos" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvIngresos" runat="server" AutoGenerateColumns="False" DataKeyNames="" OnRowDataBound="GvIngresos_RowDataBound" ShowHeaderWhenEmpty="true" CssClass="table table-striped table-hover Widthall" Style="margin-top: -10px; text-align: center;" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Label ID="LbNombre" runat="server" Text='<%# Eval("Nombre")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Left" />
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LbTitulo" runat="server" Style="padding-left: 20px;" Font-Size="14px" Text="INGRESOS Y OTROS BENEFICIOS"></asp:Label>
|
|
</HeaderTemplate>
|
|
<HeaderStyle HorizontalAlign="Left" Width="400px" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Período Actual">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLActual" runat="server" Text='<%# Eval("ImporteActual", "{0:N2}")%>' CssClass="Texto" Target="_blank"></asp:HyperLink>
|
|
<%--<asp:Label ID="LbActual" runat="server" Text='<%# Eval("ImporteActual", "{0:N2}")%>'></asp:Label>--%>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="150px" HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:BoundField HeaderText="%" DataField="PorcentajeActual" DataFormatString="{0:N2}" ItemStyle-Width="100px" />
|
|
<asp:TemplateField HeaderText="Período Acumulado">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLAnterior" runat="server" Text='<%# Eval("ImporteAcumulado", "{0:N2}")%>' CssClass="Texto" Target="_blank"></asp:HyperLink>
|
|
<%--<asp:Label ID="LbAnterior" runat="server" Text='<%# Eval("ImporteAnterior", "{0:N2}")%>'></asp:Label>--%>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="150px" HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:BoundField HeaderText="%" DataField="PorcentajeAcumulado" DataFormatString="{0:N2}" ItemStyle-Width="100px" />
|
|
</Columns>
|
|
<%--<HeaderStyle CssClass="TitulosChico"></HeaderStyle>
|
|
<RowStyle CssClass="Texto" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />--%>
|
|
</asp:GridView>
|
|
<br />
|
|
<br />
|
|
<asp:GridView ID="GvGastos" runat="server" AutoGenerateColumns="False" DataKeyNames="" OnRowDataBound="GvGastos_RowDataBound" ShowHeaderWhenEmpty="true" CssClass="table table-striped table-hover Widthall" Style="margin-top: -10px; text-align: center;" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Label ID="LbNombre" runat="server" Text='<%# Eval("Nombre")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Left" />
|
|
<HeaderTemplate>
|
|
<asp:Label ID="LbTitulo" runat="server" Style="padding-left: 20px;" Font-Size="14px" Text="GASTOS Y OTRAS PÉRDIDAS"></asp:Label>
|
|
</HeaderTemplate>
|
|
<HeaderStyle HorizontalAlign="Left" Width="400px" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Período Actual">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLActual" runat="server" Text='<%# Eval("ImporteActual", "{0:N2}")%>' CssClass="Texto" Target="_blank"></asp:HyperLink>
|
|
<%--<asp:Label ID="LbActual" runat="server" Text='<%# Eval("ImporteActual", "{0:N2}")%>'></asp:Label>--%>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="150px" HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:BoundField HeaderText="%" DataField="PorcentajeActual" DataFormatString="{0:N2}" ItemStyle-Width="100px" />
|
|
<asp:TemplateField HeaderText="Período Acumulado">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLAnterior" runat="server" Text='<%# Eval("ImporteAcumulado", "{0:N2}")%>' CssClass="Texto" Target="_blank"></asp:HyperLink>
|
|
<%--<asp:Label ID="LbAnterior" runat="server" Text='<%# Eval("ImporteAnterior", "{0:N2}")%>'></asp:Label>--%>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="150px" HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:BoundField HeaderText="%" DataField="PorcentajeAcumulado" DataFormatString="{0:N2}" ItemStyle-Width="100px" />
|
|
</Columns>
|
|
<%--<HeaderStyle CssClass="TitulosChico"></HeaderStyle>
|
|
<RowStyle CssClass="Texto" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />--%>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<asp:UpdatePanel ID="UPPTotal" runat="server">
|
|
<ContentTemplate>
|
|
<table class="table table-striped table-hover Widthall">
|
|
<tr>
|
|
<td align="center">
|
|
<h4>Resultados del Ejercicio:</h4>
|
|
</td>
|
|
<td width="30%" align="right">
|
|
<asp:Label runat="server" Font-Bold="true" ID="LbTotalActual"></asp:Label>
|
|
</td>
|
|
<td width="30%" align="right">
|
|
<asp:Label runat="server" Font-Bold="true" ID="LbTotalAnterior"></asp:Label>
|
|
</td>
|
|
<td width="12%" align="right">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
</asp:Content>
|