300 lines
19 KiB
Plaintext
300 lines
19 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepBalanzaComprobacion.aspx.vb" Inherits="Contabilidad2_RepBalanzaComprobacion" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="H" runat="Server">
|
|
|
|
<li>
|
|
<asp:LinkButton ID="ImgExcel" runat="server"><i class="fa fa-file-excel-o"></i> Exporta Excel</asp:LinkButton>
|
|
<%--<asp:ImageButton ID="ImgExcel" runat="server" ImageUrl="/Imagenes/IconoExcel.gif" Width="20px" Height="20px" /> --%>
|
|
</li>
|
|
<li>
|
|
<a id="BtnImprimirPoSubProyecto" runat="server" href="javascript:void(0);" onclick="javascript:BtnImprimirPoSubProyecto_Click(); return false;" >
|
|
<i class="fa fa-file-excel-o"></i> Exportar por <asp:Label runat="server" ID="LblAccionesSubProyecto" ></asp:Label>
|
|
</a>
|
|
<div style="display:none">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:Button runat="server" ID="BtnImprimirPorsubProyecto" OnClick="BtnImprimirPorsubProyecto_Click" ClientIDMode="Static" />
|
|
</ContentTemplate>
|
|
<Triggers>
|
|
<asp:PostBackTrigger ControlID="BtnImprimirPorsubProyecto" />
|
|
</Triggers>
|
|
</asp:UpdatePanel>
|
|
|
|
</div>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="BtnImprimir" runat="server"><i class="fa fa-print"></i> Imprimir</asp:LinkButton>
|
|
<%--<asp:ImageButton ID="BtnImprimir" runat="server" alt="Imprimir" src="/Imagenes/btnImprimir.gif" Style="cursor: pointer; height: 20px" Visible="true" /> --%>
|
|
</li>
|
|
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="E" runat="Server">
|
|
Balanza de Comprobación
|
|
<asp:Label runat="server" ID="LbTitulo"></asp:Label>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" 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="tools">
|
|
<asp:Button ID="BtnConsultar" CssClass="btn btn-default" runat="server" Text="Consultar" Width="100px" OnClick="BtnConsultar_Click" ValidationGroup="GrpConsulta" />
|
|
<a href="javascript:;" class="expand"></a>
|
|
</div>
|
|
<div class="titlefiltros caption">
|
|
<div class="row">
|
|
<label class="col-md-1 ">Fecha Inicio:</label>
|
|
<div class="col-md-2">
|
|
<div class="input-group input-sm input-small date date-picker" data-date-format="dd/mm/yyyy" style="width: 110px !important; padding: 0px;">
|
|
<asp:TextBox ID="TxtFechaDel" runat="server" CssClass="form-control" Width="99%" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgCalendarioDel" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton></span>
|
|
<ajax:MaskedEditExtender ID="MEEFechaDel" runat="server" TargetControlID="TxtFechaDel" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender ID="CalendarioDel" runat="server" TargetControlID="TxtFechaDel" PopupButtonID="ImgCalendarioDel" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
|
|
<asp:CompareValidator ID="CVTxtFechaDel" runat="server" ControlToValidate="TxtFechaDel" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Inicio''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpConsulta"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="CECVTxtFechaDel" runat="server" HighlightCssClass="vco" TargetControlID="CVTxtFechaDel" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
|
|
</div>
|
|
</div>
|
|
<label class="col-md-1 truncate">Fecha Fin:</label>
|
|
<div class="col-md-2">
|
|
<div class="input-group input-sm input-small date date-picker" data-date-format="dd/mm/yyyy" style="width: 110px !important; padding: 0px;">
|
|
<asp:TextBox ID="TxtFechaAl" runat="server" CssClass="form-control" Width="99%" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgCalendarioAl" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton></span>
|
|
<ajax:MaskedEditExtender ID="MEEFechaAl" runat="server" TargetControlID="TxtFechaAl" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender ID="CalendarioAl" runat="server" TargetControlID="TxtFechaAl" PopupButtonID="ImgCalendarioAl" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
|
|
<asp:CompareValidator ID="CVTxtFechaAl" runat="server" ControlToValidate="TxtFechaAl" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpConsulta"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="CECVTxtFechaAl" runat="server" HighlightCssClass="vco" TargetControlID="CVTxtFechaAl" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
|
|
</div>
|
|
</div>
|
|
<label class="col-md-1 truncate">Cuentas:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList CssClass="form-control input-sm select2me" runat="server" ID="DdlTipoCuentas" Width="150px">
|
|
<asp:ListItem Text="Todas" Value="1" />
|
|
<asp:ListItem Text="Con Movimientos" Value="2" />
|
|
<asp:ListItem Text="Saldo Actual no igual a cero" Value="3" />
|
|
<asp:ListItem Text="Con Movimientos y saldo no igual a cero" Value="4" />
|
|
<asp:ListItem Text="Con Movimientos o saldo no igual a cero " Value="5" />
|
|
</asp:DropDownList>
|
|
|
|
<asp:RequiredFieldValidator ID="RFVDdlCuentas" runat="server" InitialValue="-1" ControlToValidate="DdlTipoCuentas" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor ingréselo." ValidationGroup="GrpConsulta"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="CERFVDdlCuentas" runat="server" HighlightCssClass="vco" TargetControlID="RFVDdlCuentas" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body" style="display: none">
|
|
<div class="row">
|
|
<div class="col-md-1" style="display:none;">
|
|
<asp:Label ID="LblProyecto" runat="server">Proyecto:</asp:Label>
|
|
</div>
|
|
<div class="col-md-2" style="display:none;">
|
|
<asp:DropDownList ID="DdlProyecto" CssClass=" form-control input-sm select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="Proyecto" DataValueField="CveProyecto" Width="95%">
|
|
</asp:DropDownList>
|
|
</div>
|
|
<asp:Label runat="server" ID="LblSubProyecto" CssClass="col-md-1">SubProyecto:</asp:Label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlSubproyecto" CssClass="form-control input-sm select2me" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Width="95%" AutoPostBack="True">
|
|
</asp:DropDownList>
|
|
</div>
|
|
|
|
<label class="col-md-1 truncate" runat="server" visible="false">Tipo:</label>
|
|
<div class="col-md-2" runat="server" visible="false">
|
|
<asp:DropDownList ID="DdlTipoReporte" CssClass="form-control input-sm select2me" runat="server">
|
|
<asp:ListItem Text="Contable" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Contable y Complementarias" Value="2"></asp:ListItem>
|
|
<asp:ListItem Text="Complementarias" Value="3"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
|
|
<label class="col-md-1" >Nivel: </label>
|
|
<div class="col-md-2 ">
|
|
<asp:DropDownList ID="DdlNivel" runat="server" AppendDataBoundItems="true" CssClass="form-control input-sm select2me" >
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="Mayores" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Último nivel" Value="2"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
|
|
<label class="col-md-1">Vista: </label>
|
|
<div class="col-md-2 ">
|
|
<asp:DropDownList ID="DdlVista" runat="server" AppendDataBoundItems="true" CssClass="form-control input-sm select2me" >
|
|
<asp:ListItem Selected="True" Text="Contable" Value="0"></asp:ListItem>
|
|
<asp:ListItem Text="SAT" Value="1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<br />
|
|
|
|
|
|
<div class="row" style="margin-left: 0px; margin-top: 5px; margin-bottom: 5px; text-align: right; margin-right: 5px" align="left;">
|
|
|
|
<input type="text" id="TxtBusquedaIndicadores" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaIndicadores','{0}')", GvDatos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaIndicadores','{0}')", GvDatos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<asp:UpdatePanel ID="UpDatos" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
|
|
<asp:GridView ID="GvDatos" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn"
|
|
runat="server" GridLines="None" EmptyDataText="No se encontraron cuentas con los parametros establecidos." AutoGenerateColumns="False" OnRowDataBound="GvIngresos_RowDataBound">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Nivel" >
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblNivelSAT" runat="server" Text='<%# Eval("Nivel")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Left" Width="20px" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Cuenta" HeaderStyle-HorizontalAlign="Left">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LbCodigo" runat="server" Text='<%# Eval("Codigo")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Left" Width="180" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Nombre" HeaderStyle-HorizontalAlign="Left">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LbNombre" runat="server" Text='<%# Eval("Nombre")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Left" Width="320" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>
|
|
<table width="100%">
|
|
<tr>
|
|
<td colspan="2">Saldos Iniciales</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Deudor</td>
|
|
<td>Acreedor</td>
|
|
</tr>
|
|
</table>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Label ID="LbSaldoInicial" Style="padding-right: 75px;" runat="server" Text='<%# Eval("SaldoInicial", "{0:N2}")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="120" HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Cargos">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LbCargos" runat="server" Text='<%# Eval("Cargos", "{0:N2}")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="120" HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Abonos">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LbAbonos" runat="server" Text='<%# Eval("Abonos", "{0:N2}")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="120" HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>
|
|
<table width="100%">
|
|
<tr>
|
|
<td colspan="2">Saldos Actuales</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Deudor</td>
|
|
<td>Acreedor</td>
|
|
</tr>
|
|
</table>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLSaldoActual" Style="white-space: pre;" runat="server" Text='<%# Eval("SaldoActual", "{0:N2}")%>' CssClass="Texto" Target="_blank"></asp:HyperLink>
|
|
<asp:Label ID="LbSaldoActual" Style="white-space: pre;" runat="server"></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="120" HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Diferencia" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="Lbdif" runat="server" Text='<%# Eval("diferenciaSAT", "{0:N2}")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="100" HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<HeaderStyle Font-Bold="true" HorizontalAlign="Center" />
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="JS" runat="Server">
|
|
|
|
<script>
|
|
|
|
|
|
function BtnImprimirPoSubProyecto_Click() {
|
|
|
|
//setTimeout(checkFileStatus, 5000);
|
|
$('#BtnImprimirPorsubProyecto').click();
|
|
|
|
//checkFileStatus();
|
|
|
|
}
|
|
|
|
|
|
//function callMyStaticFunction() {
|
|
// $.ajax({
|
|
// type: "POST",
|
|
// url: "MyPage.aspx/MyStaticFunction",
|
|
// data: JSON.stringify({ parameter: "TuParametro" }),
|
|
// contentType: "application/json; charset=utf-8",
|
|
// dataType: "json",
|
|
// success: function (response) {
|
|
// alert("Resultado: " + response.d);
|
|
// },
|
|
// error: function (xhr, status, error) {
|
|
// console.error("Error: " + error);
|
|
// }
|
|
// });
|
|
//}
|
|
|
|
|
|
//function checkFileStatus() {
|
|
// //$.ajax({
|
|
// // url: 'RepBalanzaComprobacion.aspx',
|
|
// // success: function (response) {
|
|
// // setTimeout(checkFileStatus, 20000);
|
|
// // }
|
|
// //});
|
|
|
|
// $.ajax({
|
|
// type: "POST",
|
|
// url: 'RepBalanzaComprobacion.aspx',
|
|
// data: JSON.stringify({ parameter: "TuParametro" }),
|
|
// contentType: "application/json; charset=utf-8",
|
|
// dataType: "json",
|
|
// success: function (response) {
|
|
// //alert("Resultado: " + response.d);
|
|
// setTimeout(checkFileStatus, 20000);
|
|
// },
|
|
// error: function (xhr, status, error) {
|
|
// console.error("Error: " + error);
|
|
// }
|
|
// });
|
|
//}
|
|
|
|
|
|
</script>
|
|
|
|
</asp:Content> |