-- eliminados

This commit is contained in:
2023-07-04 18:34:52 -07:00
parent 019ee97be9
commit 528ce885fa
4 changed files with 0 additions and 552 deletions

View File

@@ -1,132 +0,0 @@
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepABT.aspx.vb" Inherits="Ventas_RepABT" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HB" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="H" runat="Server">
<img src="/Imagenes/separador02.gif" alt="" />&nbsp;
<asp:ImageButton ID="ImgExcel" runat="server" ImageUrl="/Imagenes/IconoExcel.gif" Width="20px" Height="20px" />&nbsp;
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CP" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="CSS" runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="E" runat="Server">
<asp:Label ID="LbTitulo" Text="Reporte ABT" runat="server"></asp:Label>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="JS" runat="Server">
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
<%--<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" CssClass="btn btn-default" Text="Consultar" runat="server" />
<a href="javascript;" class="expand" data-original-title="" title=""></a>
</div>
<div class="titlefiltros caption ">
<div class="row">
<label class="col-md-1">Ejercicio:</label>
<div class="col-md-2">
<asp:DropDownList ID="DdlEjercicio" CssClass="form-control input-sm input-small select2me" runat="server" >
<asp:ListItem Text="2014" Value="2014"></asp:ListItem>
<asp:ListItem Text="2015" Value="2015"></asp:ListItem>
</asp:DropDownList></div>
<label class="col-md-1">Periodo:</label>
<div class="col-md-2">
<asp:DropDownList ID="DdlPeriodo" CssClass="form-control input-small input-sm select2me" runat="server" >
<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></div>
</div>
</div>
</div>
</div>
<%-- </ContentTemplate>
</asp:UpdatePanel>--%>
<br />
<br />
<asp:UpdatePanel ID="UpDatos" UpdateMode="Conditional" runat="server">
<ContentTemplate>
<asp:GridView ID="GvRepABT" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros">
<Columns>
<asp:TemplateField HeaderText="Reporte ABT">
<HeaderTemplate>
<table CssClass="table table-smallpadding Widthall">
<tr>
<td style="width: 5%">Tipo</td>
<td style="width: 5%">Folio</td>
<td style="width: 25%">Cliente</td>
<td style="width: 25%">Sucursal</td>
<td style="width: 10%">Fecha Venta</td>
<td style="width: 5%">Mesa</td>
<td style="width: 5%"># Per</td>
<td style="width: 10%">Fecha Corte</td>
<td style="width: 10%" align="right">Total</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table width="995px">
<tr>
<td style="width: 5%"><b><%# Eval("TipoDocto") %></b></td>
<td style="width: 5%"><b><%# Eval("SerieFolio") %></b></td>
<td style="width: 25%"><b><%# Eval("Cliente")%></b></td>
<td style="width: 25%"><b><%# Eval("Sucursal")%></b></td>
<td style="width: 10%"><b><%# Eval("FechaVenta", "{0:d}")%></td>
<td style="width: 5%"><b><%# Eval("Mesa")%></b></td>
<td style="width: 5%"><b><%# Eval("NumeroPersonas")%></b></td>
<td style="width: 10%"><b><%# Eval("FechaCorte", "{0:d}")%></b></td>
<td style="width: 10%" align="right"><b><%# Eval("TotalRemision", "{0:F2}")%></b></td>
</tr>
<tr>
<td colspan="4"></td>
<td colspan="5" align="right">
<asp:GridView ID="GvD" CssClass="table table-hover table-advance table-smallpadding Widthall" BorderWidth="0" GridLines="None" runat="server" AutoGenerateColumns="false" ShowHeader="false" >
<Columns>
<asp:BoundField DataField="Cantidad" HeaderText="Folio" ItemStyle-Width="5%"/>
<asp:BoundField DataField="Concepto" HeaderText="Concepto" ItemStyle-Width="80%"/>
<asp:BoundField DataField="TotalConcepto" HeaderText="TotalConcepto" DataFormatString="{0:F2}" ItemStyle-HorizontalAlign="right" ItemStyle-Width="15%"/>
</Columns>
</asp:GridView>
</td>
</tr>
</table>
<%--<asp:Label ID="Label1" runat="server" Text='<%# Bind("TipoDocto") %>'></asp:Label>--%>
</ItemTemplate>
</asp:TemplateField>
<%-- <asp:BoundField DataField="SerieFolio" HeaderText="Folio"/>
<asp:BoundField DataField="Cliente" HeaderText="Cliente"/>
<asp:BoundField DataField="Sucursal" HeaderText="Sucursal"/>
<asp:BoundField DataField="FechaVenta" HeaderText="Fecha Venta" DataFormatString="{0:dd/MM/yyyy}"/>
<asp:BoundField DataField="Mesa" HeaderText="Mesa"/>
<asp:BoundField DataField="NumeroPersonas" HeaderText="Número de Personas"/>
<asp:BoundField DataField="Cantidad" HeaderText="Cant."/>
<asp:BoundField DataField="Concepto" HeaderText="Concepto"/>
<asp:BoundField DataField="PU" HeaderText="P. U."/>
<asp:BoundField DataField="Descuento" HeaderText="Desct."/>
<asp:BoundField DataField="TotalConcepto" HeaderText="Total Concepto"/>
<asp:BoundField DataField="TotalRemision" HeaderText="Total Remisión"/>
<asp:BoundField DataField="FechaCorte" HeaderText="Fecha Corte" DataFormatString="{0:dd/MM/yyyy}"/>--%>
</Columns>
<HeaderStyle CssClass="Titulos" />
<AlternatingRowStyle CssClass="TextoAlterno" />
<RowStyle CssClass="Texto" />
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>

View File

@@ -1,73 +0,0 @@
Option Explicit On
Option Strict On
Imports Extensiones
Imports System.Data
Partial Class Ventas_RepABT
Inherits ClsPaginas
'Private ReadOnly Property Ejercicio As Integer
' Get
' Return ViewState("Ejercicio")
' End Get
'End Property
'Private ReadOnly Property Periodo As Integer
' Get
' Return ViewState("Periodo")
' End Get
'End Property
Private Property DtDatos As datatable
Get
Return CType(ViewState("DtDatos"), DataTable)
End Get
Set(value As datatable)
ViewState("DtDatos") = value
End Set
End Property
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
If Not IsPostBack Then
'If Request("Ejercicio") IsNot Nothing AndAlso IsNumeric(Request("Ejercicio")) Then
' ViewState("Ejercicio") = Request("Ejercicio")
'End If
'If Request("Periodo") IsNot Nothing AndAlso IsNumeric(Request("Periodo")) Then
' ViewState("Periodo") = Request("Periodo")
'End If
DdlEjercicio.SelectedValue = Now.Year.ToString
DdlPeriodo.SelectedValue = Now.Month.ToString
CargaDatos()
End If
End Sub
Private Sub CargaDatos()
Dim ObjVentas As New ClsVentas
If ObjVentas.GetRepABT(DdlEjercicio.SelectedValue.ToEntero, DdlPeriodo.SelectedValue.ToEntero) Then
GvRepABT.DataSource = ObjVentas.DtResultados.FiltraParametros("", DistinctColumns:={"CveVenta", "TipoDocto", "SerieFolio", "Cliente", "SubProyecto", "FechaVenta", "Mesa", "NumeroPersonas", "TotalRemision", "FechaCorte"})
Else
GvRepABT.DataSource = Nothing
End If
DtDatos = ObjVentas.DtResultados
ObjVentas.Dispose()
GvRepABT.DataBind()
End Sub
Protected Sub ImgExcel_Click(sender As Object, e As EventArgs) Handles ImgExcel.Click
GvRepABT.ExportToExcel("Reporte ABT")
End Sub
Protected Sub GvRepABT_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvRepABT.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
e.Row.FCGridView("GvD").DataSource = DtDatos.FiltraParametros(String.Format("CveVenta = {0}", e.Row.DBCampo("CveVenta")))
e.Row.FCGridView("GvD").DataBind()
End If
End Sub
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles BtnConsultar.Click
CargaDatos()
UpDatos.Update()
End Sub
End Class