.
This commit is contained in:
@@ -3975,6 +3975,7 @@ Public Class ClsPaginas
|
||||
PaginaDict.Add("/Compras/RepDocumentacionProveedor.aspx".ToUpper(), 1206)
|
||||
PaginaDict.Add("/Compras/CatPaqueteriasGuiasTipo.aspx".ToUpper(), 753)
|
||||
PaginaDict.Add("/Compras/RepEvaluacionesProveedores.aspx".ToUpper(), 754)
|
||||
PaginaDict.Add("/Ventas/RepTopCientesVentas.aspx".ToUpper(), 755)
|
||||
|
||||
#End Region
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
</li>
|
||||
<li runat="server" id="LiImprimir" visible="true">
|
||||
<asp:LinkButton ID="LnkImprimir" runat="server" Visible="false">
|
||||
<i class="fa fa-print"></i> Imprimir Reembolso
|
||||
<i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> PDF
|
||||
</asp:LinkButton>
|
||||
</li>
|
||||
</ContentTemplate>
|
||||
|
||||
@@ -540,10 +540,11 @@
|
||||
</Style>
|
||||
</TextRun>
|
||||
<TextRun>
|
||||
<Value>=CountRows("DsInventarios")</Value>
|
||||
<Value>=Sum(Fields!Cantidad.Value, "DsInventarios")</Value>
|
||||
<Style>
|
||||
<FontSize>8pt</FontSize>
|
||||
<FontWeight>Normal</FontWeight>
|
||||
<Format>#,0;(#,0)</Format>
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
@@ -579,10 +580,11 @@
|
||||
</Style>
|
||||
</TextRun>
|
||||
<TextRun>
|
||||
<Value>=Sum(iif(Fields!Clasificacion.Value = "USADOS",1,0),"DsInventarios")</Value>
|
||||
<Value>=Sum(iif(Fields!Clasificacion.Value = "USADOS",Fields!Cantidad.Value,0),"DsInventarios")</Value>
|
||||
<Style>
|
||||
<FontSize>8pt</FontSize>
|
||||
<FontWeight>Normal</FontWeight>
|
||||
<Format>#,0;(#,0)</Format>
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
|
||||
72
Ventas/RepTopClientesVentas.aspx
Normal file
72
Ventas/RepTopClientesVentas.aspx
Normal file
@@ -0,0 +1,72 @@
|
||||
<%@ Page Title="Reporte de Top de Ventas por Cliente" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepTopClientesVentas.aspx.vb" Inherits="Ventas_RepTopClientesVentas" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
|
||||
<style>
|
||||
</style>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content8" ContentPlaceHolderID="HA" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||||
<li>
|
||||
<asp:LinkButton ID="ImgImprimir" runat="server"> <i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> PDF</asp:LinkButton>
|
||||
</li>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||||
Reporte de Top de Ventas por Cliente
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="portlet solid grey-cascade portlet-filter" id="idnecesaria">
|
||||
<div class="portlet-title portlet-filterT smalltitle">
|
||||
<div class="tools">
|
||||
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-primary" />
|
||||
<a href="javascript:;" class="expand"></a>
|
||||
</div>
|
||||
<div class="titlefiltros caption">
|
||||
<div class="row" style="height: 32px;">
|
||||
<label class="col-md-1">Mes: </label>
|
||||
<div class="col-md-2">
|
||||
<asp:DropDownList CssClass="table-group-action-input form-control input-inline input-small input-sm select2me" ID="DdlMes" runat="server" AutoPostBack="false">
|
||||
<asp:ListItem Selected="True" 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>
|
||||
<label class="col-md-1">Mes: </label>
|
||||
<div class="col-md-2">
|
||||
<asp:DropDownList CssClass="table-group-action-input form-control input-inline input-small input-sm select2me" ID="DdlAño" DataValueField="IdAño" DataTextField="Año" runat="server" AutoPostBack="false">
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
|
||||
<label class="col-md-1 ">Grupo:</label>
|
||||
<div class="col-md-2">
|
||||
<asp:DropDownList ID="DdlGrupo" runat="server" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||
<script>
|
||||
</script>
|
||||
</asp:Content>
|
||||
42
Ventas/RepTopClientesVentas.aspx.vb
Normal file
42
Ventas/RepTopClientesVentas.aspx.vb
Normal file
@@ -0,0 +1,42 @@
|
||||
Option Explicit On
|
||||
Option Strict On
|
||||
|
||||
Imports System.Data
|
||||
Imports System.Web.Compilation
|
||||
Imports Extensiones
|
||||
Imports Microsoft.Reporting.WebForms
|
||||
|
||||
Partial Class Ventas_RepTopClientesVentas
|
||||
Inherits ClsPaginas
|
||||
|
||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||
If Not IsPostBack Then
|
||||
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub CargarFiltros()
|
||||
Dim tablaAños As New DataTable
|
||||
|
||||
Dim idAño As New DataColumn
|
||||
idAño.ColumnName = "idAño"
|
||||
idAño.Caption = "idAño"
|
||||
idAño.DataType = System.Type.GetType("System.Int32")
|
||||
|
||||
Dim Año As New DataColumn
|
||||
Año.ColumnName = "Año"
|
||||
Año.Caption = "Año"
|
||||
Año.DataType = System.Type.GetType("System.Int32")
|
||||
|
||||
tablaAños.Columns.Add(idAño)
|
||||
tablaAños.Columns.Add(Año)
|
||||
|
||||
Dim añoActual As Integer = DateTime.Now.Year
|
||||
|
||||
For AñoIndex As Integer = añoActual To (añoActual - 10) Step -1
|
||||
Dim row As DataRow = tablaAños.NewRow()
|
||||
'row["idAño"] =
|
||||
Next
|
||||
|
||||
End Sub
|
||||
End Class
|
||||
Reference in New Issue
Block a user