232 lines
13 KiB
Plaintext
232 lines
13 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepAnticiposEspeciales.aspx.vb" Inherits="Ventas_RepAnticiposEspeciales" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
</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 de Anticipos Especiales
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
|
<asp:UpdatePanel ID="UpGral" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<%--Tabla con los campos para filtrar--%>
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<div class="portlet solid grey-cascade portlet-filter" style="">
|
|
<div class="portlet-title portlet-filterT smalltitle" style="min-height: 49px; position: relative;">
|
|
<div class="tools">
|
|
<asp:Button ID="btConsultar" OnClick="btConsultar_Click" CssClass="btn btn-primary" runat="server" ValidationGroup="GrpConsultar" Text="Consultar" /></td>
|
|
<a href="javascript:;" data-idchekbox="<%= chkexpand.ClientID%>" class=" <%= IIf(chkexpand.Checked = True, "collapse", "expand")%>"></a>
|
|
<asp:CheckBox ID="chkexpand" CssClass="hidden" runat="server" />
|
|
</div>
|
|
<div class="titlefiltros caption magindate">
|
|
<div class="row">
|
|
|
|
<div class="col-md-1 truncate" style="text-align: right!important">Fecha Inicio:</div>
|
|
<div class="col-md-1">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 95px !important; padding: 0px;">
|
|
<asp:TextBox Style="width: 80px !important;" ID="TxtFechaI" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgFechaI" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
</div>
|
|
<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="TxtFechaI" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CEFechaI" TargetControlID="TxtFechaI" PopupButtonID="ImgFechaI" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
</div>
|
|
|
|
<div class="col-md-1 truncate" style="text-align: right!important">Fecha Fin:</div>
|
|
<div class="col-md-1 ">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 95px !important; padding: 0px;">
|
|
<asp:TextBox Style="width: 80px !important;" ID="TxtFechaF" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgFechaF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
</div>
|
|
<ajax:MaskedEditExtender ID="MEEFechaF" runat="server" TargetControlID="TxtFechaF" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender1" TargetControlID="TxtFechaF" PopupButtonID="ImgFechaF" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
</div>
|
|
|
|
<div class="col-md-1 truncate" style="text-align: right!important">Sucursal:</div>
|
|
<div class="col-md-1">
|
|
<asp:DropDownList ID="DdlSucursal" CssClass="form-control input-sm select2me" runat="server" Width="100px" DataTextField="SubProyecto" DataValueField="CveSubProyecto">
|
|
</asp:DropDownList>
|
|
</div>
|
|
|
|
<div class="col-md-1 truncate" style="text-align: right!important">Especiales:</div>
|
|
<div class="col-md-1">
|
|
<asp:DropDownList ID="DdlEspeciales" CssClass="form-control input-sm select2me" runat="server" Width="100px" DataTextField="NombreComercial" DataValueField="CveCliente">
|
|
<asp:ListItem Value="-1">Todos</asp:ListItem>
|
|
<asp:ListItem Value="0">Anticipos</asp:ListItem>
|
|
<asp:ListItem Value="1">Especiales</asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body magindate" <%= IIf(chkexpand.Checked = True, "", "style=""display:none;""")%>>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<div class="row">
|
|
<div class="Widthall" style="text-align: right!important; margin-top: 20px!important; margin-bottom: 2px!important">
|
|
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvAnticiposEspeciales.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvAnticiposEspeciales.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row" style="margin: 5px">
|
|
<asp:UpdatePanel ID="UPGvAnticiposEspeciales" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<asp:GridView ID="GvAnticiposEspeciales" runat="server" AutoGenerateColumns="False"
|
|
EmptyDataText="No se encontraron registros" ToolTip="Listado de Temas"
|
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
|
data-sort="true"
|
|
data-freezerows="1"
|
|
GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Folio">
|
|
<ItemTemplate>
|
|
<asp:hyperlink ID="LblAnticiposEspeciales" runat="server" Text='<%# Eval("SerieFolio") %>' NavigateUrl='<%# Eval("CveVenta","/Ventas/Ventas.aspx?CveVenta={0}") %>'>></asp:hyperlink>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="Fecha" ItemStyle-HorizontalAlign="Center" >
|
|
<ItemTemplate>
|
|
<asp:Literal runat="server" Text='<%# Eval("Fecha", "{0:d}")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="Sucursal">
|
|
<ItemTemplate>
|
|
<asp:Literal runat="server" Text='<%# Eval("SubProyecto") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="SubTotal" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Literal runat="server" Text='<%# Eval("SubTotal", "{0:N2}")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="IVA" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Literal runat="server" Text='<%# Eval("IVA", "{0:N2}")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="IEPS" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Literal runat="server" Text='<%# Eval("IEPS", "{0:N2}")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Literal runat="server" Text='<%# Eval("Total", "{0:N2}")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="Saldo" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Literal runat="server" Text='<%# Eval("Saldo", "{0:N2}")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="% Por Amortizar" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Literal runat="server" Text='<%# Eval("PorcentajePorAmortizar", "{0:N2}")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="Moneda">
|
|
<ItemTemplate>
|
|
<asp:Literal runat="server" Text='<%# Eval("Abreviatura") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="Anticipo Especial">
|
|
<ItemTemplate>
|
|
<asp:Literal runat="server" Text='<%# Eval("AnticipoEspecial") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="Estatus">
|
|
<ItemTemplate>
|
|
<asp:Literal runat="server" Text='<%# Eval("EstatusFactura") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
</Columns>
|
|
</asp:GridView>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content9" ContentPlaceHolderID="JS" runat="Server">
|
|
</asp:Content>
|
|
|
|
|