Files
SIG/GPS/FacturasSims.aspx
JORGE LUIS CAUDILLO ESPARZA c35cf91883 Commit inicial Ventas Productivo
2019-08-14 16:40:54 -07:00

433 lines
21 KiB
Plaintext

<%@ Page Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="True" CodeFile="FacturasSims.aspx.vb" Inherits="GPS_FacturasSims" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
<style>
.GVFacturasSims tr td:nth-child(n+14),
.GVFacturasSims tr td:nth-child(7) {
text-align: right;
}
/*Mostrar Desglose*/
.GVFacturasSims:not(.mostrardesglose) tr > *:nth-child(13) {
width: 7px;
}
.GVFacturasSims:not(.mostrardesglose) tr:not(.NoHide) > *:nth-child(n+14):not(:nth-child(n+25)) {
display: none;
}
.GVFacturasSims:not(.mostrardesglose) .thOcultarDesglose {
display: none;
}
.GVFacturasSims.mostrardesglose #LnkMostrarDesglose {
display: none;
}
/*Mostrar Desglose*/
/*Mostrar Datos Registrados*/
.GVFacturasSims:not(.MostrarDRegistrados) tr > *:nth-child(3) {
width: 7px;
}
.GVFacturasSims:not(.MostrarDRegistrados) tr:not(.NoHide) > *:nth-child(n+4):not(:nth-child(n+8)) {
display: none;
}
.GVFacturasSims:not(.MostrarDRegistrados) .thOcultarDatosRegistrados {
display: none;
}
.GVFacturasSims.MostrarDRegistrados #LnkMostrarDRegistrados {
display: none;
}
/*Mostrar Datos Registrados*/
/*Mostrar Datos Telcel*/
.GVFacturasSims:not(.MostrarDTelcel) tr > *:nth-child(8) {
width: 7px;
}
.GVFacturasSims:not(.MostrarDTelcel) tr:not(.NoHide) > *:nth-child(n+9):not(:nth-child(n+13)) {
display: none;
}
.GVFacturasSims:not(.MostrarDTelcel) .thOcultarDatosTelcel {
display: none;
}
.GVFacturasSims.MostrarDTelcel #LnkMostrarDTelcel {
display: none;
}
/*Mostrar Datos Telcel*/
.ImporteFail {
color: #ff0000;
font-weight: 400;
}
.table-striped > tbody > tr.Titulo,
.table-striped > tbody > tr.Titulo:nth-of-type(odd) {
background-color: #dddddd;
font-weight: bold;
}
</style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
Facturación
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="HA" runat="Server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="H" runat="Server">
<li>
<asp:LinkButton ID="LnkAgregarFacturasSims" OnClick="LnkAgregarFact_Click" runat="server"><i class="fa fa-plus"></i>Facturas </asp:LinkButton></li>
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
<asp:UpdatePanel ID="upDatosFact" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<table id="theader" class="table table-hover table-striped Widthall GVFacturasSims MostrarDRegistrados">
<tr class="NoHide">
<th></th>
<th></th>
<th>
<asp:LinkButton ID="LnkMostrarDRegistrados" ClientIDMode="Static" ToolTip="Mostrar Datos Registrados" OnClick="LnkMostrarDRegistrados_Click" runat="server"><i class="fa fa-plus-square"></i></asp:LinkButton>
</th>
<th class="thOcultarDatosRegistrados" colspan="4">
<asp:LinkButton ID="LnkOcultarDRegistrados" ClientIDMode="Static" ToolTip="Ocultar Datos Registrados" OnClick="LnkOcultarDRegistrados_Click" runat="server">Datos Registrados <i class="fa fa-minus-square" ></i></asp:LinkButton></th>
<th>
<asp:LinkButton ID="LnkMostrarDTelcel" ClientIDMode="Static" ToolTip="Mostrar Datos Telcel" OnClick="LnkMostrarDTelcel_Click" runat="server"><i class="fa fa-plus-square"></i></asp:LinkButton>
</th>
<th class="thOcultarDatosTelcel" colspan="4">
<asp:LinkButton ID="LnkOcultarDTelcel" ClientIDMode="Static" ToolTip="Ocultar Datos Telcel " OnClick="LnkOcultarDTelcel_Click" runat="server">Datos Telcel <i class="fa fa-minus-square" ></i></asp:LinkButton></th>
<th>
<asp:LinkButton ID="LnkMostrarDesglose" ClientIDMode="Static" ToolTip="Mostrar Desglose" OnClick="LnkMostrarDesglose_Click" runat="server"><i class="fa fa-plus-square"></i></asp:LinkButton></th>
<th class="thOcultarDesglose" colspan="11">
<asp:LinkButton ID="LnkOcultarDesglose" ClientIDMode="Static" ToolTip="Ocultar Desglose" OnClick="LnkOcultarDesglose_Click" runat="server">Desglose <i class="fa fa-minus-square" ></i></asp:LinkButton></th>
<th></th>
<th></th>
<th></th>
</tr>
<tr>
<th>Número de
<br>
Teléfono
</th>
<th>Fecha
<br>
Corte
</th>
<th></th>
<th>Vehiculo
</th>
<th>Cliente
</th>
<th>Plan<br />
Registrado
</th>
<th>Plan<br />
Registrado<br />
Importe
</th>
<th></th>
<th>Plan
</th>
<th>Cuenta
<br>
Padre
</th>
<th>Cuenta
<br>
Hija
</th>
<th>Número de
<br>
Factura
</th>
<th></th>
<th>Plan Y
<br>
Servicios
<br>
contratados</th>
<th>Consumos
<br>
adicionales
<br>
nacionales
</th>
<th>Consumos
<br>
adicionales
<br>
int. y mund.
</th>
<th>Servicios
<br>
Complementarios
</th>
<th>Ajustes<br>
</th>
<th>Descuentos<br>
</th>
<th>Servicios y
<br>
suscripciones
</th>
<th>Servicios y
<br>
suscripciones
<br>
Terceros
</th>
<th>Equipo
<br>
celular
</th>
<th>Servicios por cuenta y
<br>
orden de Terceros
</th>
<th>IVA<br>
</th>
<th>Total<br>
</th>
<th></th>
<th></th>
</tr>
<tr>
<th></th>
<th>
<div style="display: inline-block; vertical-align: text-bottom;text-align:center;">
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 90px !important; padding: 0px;display: inline-block;">
<asp:TextBox ID="TxtPeriodo" runat="server" CssClass="form-control visibleD" placeholder="Mes/Año" Style="width: 90px" MaxLength="10"></asp:TextBox>
</div>
<ajax:MaskedEditExtender ID="MEEPeriodo" runat="server" TargetControlID="TxtPeriodo" Mask="99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
<%--<ajax:CalendarExtender runat="server" ID="CEEPeriodo" TargetControlID="TxtPeriodo" PopupPosition="BottomRight" Enabled="True" Format="MM/yyyy" DefaultView="Months"></ajax:CalendarExtender>--%>
</div>
</th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th>
<asp:LinkButton ID="LnkConsultar" OnClick="LnkConsultar_Click" CssClass=" btn btn-default " runat="server">Consultar</asp:LinkButton>
</th>
<th></th>
<th></th>
</tr>
</table>
<asp:GridView ID="GVFacturasSims" runat="server" GridLines="None" data-tableheader="#theader" data-rows="0" ShowHeader="false" data-heighterror="220"
CssClass="table table-hover table-striped Widthall GVFacturasSims ScrollAD MostrarDRegistrados" AutoGenerateColumns="False"
OnRowDataBound="GVFacturasSims_RowDataBound"
DataKeyNames="CveGpsFacturaSim,NTelefono,FechaCorte,CuentaPadre,CuentaHijo,NFactura,Plan,ImportePlanySerContr,ImporteConsuAdicNaci,ImporteConsuAdicInternaci,ImporteServCompl,ImporteAjustes,ImporteDescuentos,ImporteServiciosSusc,ImporteServiciosSuscTerceros,ImporteEquipo,ImporteServXCuentaTerc,ImporteIVA,Importe">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblnTelefono" runat="server" Text='<%# Eval("NTelefono")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblfechaCorte" runat="server" Text='<%# Eval("FechaCorte", "{0:dd/MM/yyyy}")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField />
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblVehiculo" runat="server" Text='<%# String.Format("{0}{1}", Eval("NoEconomico"), Eval("NombreVehiculo")) %>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="CLiente" />
<asp:BoundField DataField="PlanDato" />
<asp:BoundField DataField="PlanImporte" DataFormatString="${0:N2}" />
<asp:BoundField />
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblplan" runat="server" Text='<%# Eval("Plan")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblcuentaPadre" runat="server" Text='<%# Eval("CuentaPadre")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblcuentaHijo" runat="server" Text='<%# Eval("CuentaHijo")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblnFactura" runat="server" Text='<%# Eval("NFactura")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField />
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblimportePlanySerContr" runat="server" Text='<%# Eval("ImportePlanySerContr", "${0:N2}")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblimporteConsuAdicNaci" runat="server" Text='<%# Eval("ImporteConsuAdicNaci", "${0:N2}")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblimporteConsuAdicInternaci" runat="server" Text='<%# Eval("ImporteConsuAdicInternaci", "${0:N2}")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblimporteServCompl" runat="server" Text='<%# Eval("ImporteServCompl", "${0:N2}")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblimporteAjustes" runat="server" Text='<%# Eval("ImporteAjustes", "${0:N2}")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblimporteDescuentos" runat="server" Text='<%# Eval("ImporteDescuentos", "${0:N2}")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblimporteServiciosSusc" runat="server" Text='<%# Eval("ImporteServiciosSusc", "${0:N2}")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblimporteServiciosSuscTerceros" runat="server" Text='<%# Eval("ImporteServiciosSuscTerceros", "${0:N2}")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblimporteEquipo" runat="server" Text='<%# Eval("ImporteEquipo", "${0:N2}")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblimporteServXCuentaTerc" runat="server" Text='<%# Eval("ImporteServXCuentaTerc", "${0:N2}")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblimporteIVA" runat="server" Text='<%# Eval("ImporteIVA", "${0:N2}")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblimporte" runat="server" Text='<%# Eval("Importe", "${0:N2}")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="LnkVerDetalle" runat="server" OnClick="LnkVerDetalle_Click" CssClass="btn btn-circle btn-sm green "> <i class="fa fa-info"></i> </asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField />
</Columns>
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
<div id="DModalConceptos" class="modal ADS fade" role="dialog">
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UpConceptos" UpdateMode="Conditional">
<ContentTemplate>
<div class="modal-content">
<div class="modal-header ">
<h4 class="modal-title">Numero -
<asp:Literal ID="LtlNumeroConceptos" runat="server"> </asp:Literal></h4>
</div>
<div class="modal-body">
<asp:GridView ID="GVGetFacturasSimsDetalle" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall" AutoGenerateColumns="False"
OnRowDataBound="GVGetFacturasSimsDetalle_RowDataBound"
DataKeyNames="EsTitulo,Tipo,Conceptos,Incluidos,Consumidos,Excedentes,Total">
<Columns>
<asp:TemplateField HeaderText="Concepto">
<ItemTemplate>
<asp:Label ID="lblconceptos" runat="server" Text='<%# Eval("Conceptos")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Incluidos">
<ItemTemplate>
<asp:Label ID="lblincluidos" runat="server" Text='<%# Eval("Incluidos")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Consumidos">
<ItemTemplate>
<asp:Label ID="lblconsumidos" runat="server" Text='<%# Eval("Consumidos")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Excedentes">
<ItemTemplate>
<asp:Label ID="lblexcedentes" runat="server" Text='<%# Eval("Excedentes")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Total">
<ItemTemplate>
<asp:Label ID="lbltotal" runat="server" Text='<%# Eval("Total")%>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
<div class="modal-footer">
<div class="modal-btn text-right">
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
</div>
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<div id="DModalFacturasSims" class="modal ADS fade" role="dialog">
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UPModalFact" UpdateMode="Conditional">
<ContentTemplate>
<div class="modal-content">
<div class="modal-header ">
<h4 class="modal-title">Cargar Factura</h4>
</div>
<div class="modal-body">
Arrastre la factura:
<asp:TextBox ID="TxtCalibracion" CssClass="ADSdropzone hidden" data-maxFile="1" runat="server"></asp:TextBox>
</div>
<div class="modal-footer">
<div class="modal-btn">
<asp:Button ID="BtnFactADD" OnClick="BtnFactADD_Click" runat="server" Text="Agregar" CssClass="btn btn-primary" ValidationGroup="VGMFact" />
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
</div>
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
</asp:Content>