This commit is contained in:
rrene
2020-04-13 16:28:20 -07:00
10 changed files with 212 additions and 263 deletions

View File

@@ -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

View File

@@ -2115,8 +2115,27 @@ Partial Class PopUpVerFactura
params.Add(New ReportParameter("AlmacenOrigen", Almacen))
params.Add(New ReportParameter("AlmacenDestino", AlmacenDestino))
DtMovimientos = DtMovimientos.FiltraParametros("", "PS")
ElseIf UsuarioActual.CveEmpresa = 140 Then
params.Add(New ReportParameter("CantidadProductos", "500"))
params.Add(New ReportParameter("CantidadUsados", "500"))
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
Dim logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa)
If Imagen.Exists Then
params.Add(New ReportParameter("LogoPath", logouri))
Else
params.Add(New ReportParameter("LogoPath", ""))
End If
params.Add(New ReportParameter("Origen", Almacen))
params.Add(New ReportParameter("Destino", AlmacenDestino))
params.Add(New ReportParameter("FechaImpresion", DateTime.Now.ToString("dd/MM/yyyy")))
params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
params.Add(New ReportParameter("Empresa", UsuarioActual.Empresa.Empresa))
End If
ImprimirPDF(String.Format("{0}Formatos\Traslado.rdlc", UsuarioActual.Empresa.Ruta), DtMovimientos, params, String.Format("Recepción de Traslado - {0}", Folio), RDSName:="DsInventarios")
Else
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))

View File

@@ -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>

View File

@@ -15,7 +15,7 @@
<Width>2.19837cm</Width>
</TablixColumn>
<TablixColumn>
<Width>9.27592cm</Width>
<Width>8.85259cm</Width>
</TablixColumn>
<TablixColumn>
<Width>1.41521cm</Width>
@@ -519,7 +519,7 @@
<Top>0.07056cm</Top>
<Left>0.00711cm</Left>
<Height>0.73434cm</Height>
<Width>19.56807cm</Width>
<Width>19.14474cm</Width>
<Style>
<Border>
<Style>None</Style>
@@ -540,10 +540,11 @@
</Style>
</TextRun>
<TextRun>
<Value>=Parameters!CantidadProductos.Value</Value>
<Value>=Sum(Fields!Cantidad.Value, "DsInventarios")</Value>
<Style>
<FontSize>8pt</FontSize>
<FontWeight>Normal</FontWeight>
<Format>#,0;(#,0)</Format>
</Style>
</TextRun>
</TextRuns>
@@ -552,7 +553,6 @@
</Paragraphs>
<rd:DefaultName>TotalProductos</rd:DefaultName>
<Top>0.98129cm</Top>
<Left>0cm</Left>
<Height>0.6cm</Height>
<Width>5.49393cm</Width>
<ZIndex>1</ZIndex>
@@ -580,10 +580,11 @@
</Style>
</TextRun>
<TextRun>
<Value>=Parameters!CantidadUsados.Value</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>
@@ -1278,7 +1279,7 @@
<Paragraph>
<TextRuns>
<TextRun>
<Value>=IIF(Parameters!NombreAccion.Value=-1,"",Parameters!NombreAccion.Value)</Value>
<Value>=IIF(Parameters!NombreAccion.Value="-1","",Parameters!NombreAccion.Value)</Value>
<Style />
</TextRun>
</TextRuns>
@@ -1585,6 +1586,10 @@
<DataField>Almacen</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="Clasificacion">
<DataField>Clasificacion</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
</Fields>
<rd:DataSetInfo>
<rd:DataSetName>DsInventarios</rd:DataSetName>
@@ -1690,6 +1695,36 @@
<Nullable>true</Nullable>
<Prompt>ReportParameter1</Prompt>
</ReportParameter>
<ReportParameter Name="CveAlmacen">
<DataType>String</DataType>
<Nullable>true</Nullable>
<AllowBlank>true</AllowBlank>
<Prompt>ReportParameter1</Prompt>
</ReportParameter>
<ReportParameter Name="CveTipoAlmacenDestino">
<DataType>String</DataType>
<Nullable>true</Nullable>
<AllowBlank>true</AllowBlank>
<Prompt>ReportParameter1</Prompt>
</ReportParameter>
<ReportParameter Name="CveVentaDetalle">
<DataType>String</DataType>
<Nullable>true</Nullable>
<AllowBlank>true</AllowBlank>
<Prompt>ReportParameter1</Prompt>
</ReportParameter>
<ReportParameter Name="FacturadoA">
<DataType>String</DataType>
<Nullable>true</Nullable>
<AllowBlank>true</AllowBlank>
<Prompt>ReportParameter1</Prompt>
</ReportParameter>
<ReportParameter Name="Factura">
<DataType>String</DataType>
<Nullable>true</Nullable>
<AllowBlank>true</AllowBlank>
<Prompt>ReportParameter1</Prompt>
</ReportParameter>
</ReportParameters>
<EmbeddedImages>
<EmbeddedImage Name="compuproveedores">

View File

@@ -1145,6 +1145,7 @@
</Textbox>
<Textbox Name="Textbox1">
<CanGrow>true</CanGrow>
<CanShrink>true</CanShrink>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
@@ -1163,7 +1164,7 @@
<rd:DefaultName>Textbox1</rd:DefaultName>
<Top>8.04874cm</Top>
<Left>1.89472cm</Left>
<Height>1.09816cm</Height>
<Height>0.56899cm</Height>
<Width>19.15264cm</Width>
<ZIndex>2</ZIndex>
<Style>
@@ -1512,6 +1513,7 @@
</Textbox>
<Textbox Name="Textbox20">
<CanGrow>true</CanGrow>
<CanShrink>true</CanShrink>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
@@ -1577,31 +1579,6 @@
</TextRuns>
<Style />
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Value />
<Style>
<FontFamily>calibri</FontFamily>
<FontSize>9pt</FontSize>
<FontWeight>Normal</FontWeight>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Value />
<Style>
<FontFamily>Calibri</FontFamily>
<FontWeight>Normal</FontWeight>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox4</rd:DefaultName>
<Top>3.20357cm</Top>
@@ -1621,6 +1598,7 @@
</Textbox>
<Textbox Name="Textbox30">
<CanGrow>true</CanGrow>
<CanShrink>true</CanShrink>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
@@ -1665,31 +1643,6 @@
</TextRuns>
<Style />
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Value />
<Style>
<FontFamily>calibri</FontFamily>
<FontSize>9pt</FontSize>
<FontWeight>Normal</FontWeight>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Value />
<Style>
<FontFamily>Calibri</FontFamily>
<FontWeight>Normal</FontWeight>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox4</rd:DefaultName>
<Top>3.50094cm</Top>
@@ -1805,31 +1758,6 @@
</TextRuns>
<Style />
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Value />
<Style>
<FontFamily>calibri</FontFamily>
<FontSize>9pt</FontSize>
<FontWeight>Normal</FontWeight>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Value />
<Style>
<FontFamily>Calibri</FontFamily>
<FontWeight>Normal</FontWeight>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox4</rd:DefaultName>
<Top>4.29364cm</Top>
@@ -1917,6 +1845,7 @@
</Textbox>
<Textbox Name="Textbox36">
<CanGrow>true</CanGrow>
<CanShrink>true</CanShrink>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
@@ -1935,31 +1864,6 @@
</TextRuns>
<Style />
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Value />
<Style>
<FontFamily>calibri</FontFamily>
<FontSize>9pt</FontSize>
<FontWeight>Normal</FontWeight>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Value />
<Style>
<FontFamily>Calibri</FontFamily>
<FontWeight>Normal</FontWeight>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox4</rd:DefaultName>
<Top>6.7641cm</Top>
@@ -2091,7 +1995,7 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox4</rd:DefaultName>
<Top>9.21745cm</Top>
<Top>8.7412cm</Top>
<Left>0.22108cm</Left>
<Height>2.03224cm</Height>
<Width>20.79751cm</Width>
@@ -2121,7 +2025,7 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox5</rd:DefaultName>
<Top>12.95331cm</Top>
<Top>12.47706cm</Top>
<Left>0.19009cm</Left>
<Height>0.05496cm</Height>
<Width>20.88652cm</Width>
@@ -2141,7 +2045,7 @@
<Source>Embedded</Source>
<Value>ID5</Value>
<Sizing>FitProportional</Sizing>
<Top>11.49964cm</Top>
<Top>11.02339cm</Top>
<Left>0.17151cm</Left>
<Height>0.96488cm</Height>
<Width>3.75909cm</Width>
@@ -2154,6 +2058,7 @@
</Image>
<Textbox Name="Textbox47">
<CanGrow>true</CanGrow>
<CanShrink>true</CanShrink>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
@@ -2172,34 +2077,9 @@
</TextRuns>
<Style />
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Value />
<Style>
<FontFamily>calibri</FontFamily>
<FontSize>9pt</FontSize>
<FontWeight>Normal</FontWeight>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Value />
<Style>
<FontFamily>Calibri</FontFamily>
<FontWeight>Normal</FontWeight>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox4</rd:DefaultName>
<Top>12.51148cm</Top>
<Top>12.03523cm</Top>
<Left>0.19008cm</Left>
<Height>0.40655cm</Height>
<Width>12.88812cm</Width>
@@ -2218,7 +2098,7 @@
<Source>Embedded</Source>
<Value>ID4</Value>
<Sizing>FitProportional</Sizing>
<Top>11.49964cm</Top>
<Top>11.02339cm</Top>
<Left>4.34941cm</Left>
<Height>0.91769cm</Height>
<Width>3.03541cm</Width>
@@ -2233,7 +2113,7 @@
<Source>Embedded</Source>
<Value>ID1</Value>
<Sizing>FitProportional</Sizing>
<Top>11.49964cm</Top>
<Top>11.02339cm</Top>
<Left>7.56121cm</Left>
<Height>0.97656cm</Height>
<Width>4.16281cm</Width>
@@ -2248,7 +2128,7 @@
<Source>Embedded</Source>
<Value>ID6</Value>
<Sizing>FitProportional</Sizing>
<Top>11.49964cm</Top>
<Top>11.02339cm</Top>
<Left>11.90634cm</Left>
<Height>1.01184cm</Height>
<Width>3.76809cm</Width>
@@ -2263,7 +2143,7 @@
<Source>Embedded</Source>
<Value>ID3</Value>
<Sizing>FitProportional</Sizing>
<Top>11.84646cm</Top>
<Top>11.37021cm</Top>
<Left>15.67443cm</Left>
<Height>0.93046cm</Height>
<Width>5.37042cm</Width>
@@ -2295,7 +2175,7 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox60</rd:DefaultName>
<Top>11.3082cm</Top>
<Top>10.83195cm</Top>
<Left>15.67443cm</Left>
<Height>0.50299cm</Height>
<Width>5.42547cm</Width>
@@ -2494,7 +2374,7 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox4</rd:DefaultName>
<Top>13.4316cm</Top>
<Top>12.95535cm</Top>
<Left>0.16383cm</Left>
<Height>2.44366cm</Height>
<Width>15.5106cm</Width>
@@ -2529,7 +2409,7 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox19</rd:DefaultName>
<Top>5.19081in</Top>
<Top>5.00331in</Top>
<Left>6.24049in</Left>
<Height>0.21875in</Height>
<Width>0.94607in</Width>
@@ -2564,7 +2444,7 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox19</rd:DefaultName>
<Top>5.40689in</Top>
<Top>5.21939in</Top>
<Left>6.24048in</Left>
<Height>0.21875in</Height>
<Width>0.94607in</Width>
@@ -2599,7 +2479,7 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox19</rd:DefaultName>
<Top>5.61977in</Top>
<Top>5.43227in</Top>
<Left>6.24048in</Left>
<Height>0.21875in</Height>
<Width>0.94607in</Width>
@@ -2634,7 +2514,7 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox19</rd:DefaultName>
<Top>5.83852in</Top>
<Top>5.65102in</Top>
<Left>6.24048in</Left>
<Height>0.21875in</Height>
<Width>0.94607in</Width>
@@ -2670,7 +2550,7 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox19</rd:DefaultName>
<Top>6.05415in</Top>
<Top>5.86665in</Top>
<Left>6.24048in</Left>
<Height>0.21875in</Height>
<Width>0.94607in</Width>
@@ -2706,7 +2586,7 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox42</rd:DefaultName>
<Top>5.19081in</Top>
<Top>5.00331in</Top>
<Left>7.18656in</Left>
<Height>0.21875in</Height>
<Width>0.98426in</Width>
@@ -2741,7 +2621,7 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox42</rd:DefaultName>
<Top>5.40956in</Top>
<Top>5.22206in</Top>
<Left>7.18656in</Left>
<Height>0.20486in</Height>
<Width>0.98425in</Width>
@@ -2776,7 +2656,7 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox42</rd:DefaultName>
<Top>5.61977in</Top>
<Top>5.43227in</Top>
<Left>7.18656in</Left>
<Height>0.19899in</Height>
<Width>0.98425in</Width>
@@ -2812,7 +2692,7 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox42</rd:DefaultName>
<Top>5.83852in</Top>
<Top>5.65102in</Top>
<Left>7.18656in</Left>
<Height>0.19284in</Height>
<Width>0.98425in</Width>
@@ -2848,7 +2728,7 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox42</rd:DefaultName>
<Top>6.05415in</Top>
<Top>5.86665in</Top>
<Left>7.18656in</Left>
<Height>0.19596in</Height>
<Width>0.98425in</Width>
@@ -2913,7 +2793,7 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox5</rd:DefaultName>
<Top>16.1575cm</Top>
<Top>15.68125cm</Top>
<Left>0.19009cm</Left>
<Height>0.05496cm</Height>
<Width>20.88652cm</Width>
@@ -2930,7 +2810,7 @@
</Style>
</Textbox>
</ReportItems>
<Height>16.64639cm</Height>
<Height>15.93202cm</Height>
<Style />
</Body>
<Width>21.16666cm</Width>

View File

@@ -1734,33 +1734,6 @@
<LineHeight>1pt</LineHeight>
</Style>
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Value />
<Style>
<FontFamily>calibri</FontFamily>
<FontSize>9pt</FontSize>
<FontWeight>Normal</FontWeight>
</Style>
</TextRun>
</TextRuns>
<Style>
<LineHeight>1pt</LineHeight>
</Style>
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Value />
<Style>
<FontFamily>Calibri</FontFamily>
<FontWeight>Normal</FontWeight>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox4</rd:DefaultName>
<Top>2.88607cm</Top>
@@ -1841,31 +1814,6 @@
</TextRuns>
<Style />
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Value />
<Style>
<FontFamily>calibri</FontFamily>
<FontSize>9pt</FontSize>
<FontWeight>Normal</FontWeight>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Value />
<Style>
<FontFamily>Calibri</FontFamily>
<FontWeight>Normal</FontWeight>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox4</rd:DefaultName>
<Top>2.86594cm</Top>
@@ -2099,6 +2047,7 @@
</Textbox>
<Textbox Name="Textbox36">
<CanGrow>true</CanGrow>
<CanShrink>true</CanShrink>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
@@ -2117,31 +2066,6 @@
</TextRuns>
<Style />
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Value />
<Style>
<FontFamily>calibri</FontFamily>
<FontSize>9pt</FontSize>
<FontWeight>Normal</FontWeight>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Value />
<Style>
<FontFamily>Calibri</FontFamily>
<FontWeight>Normal</FontWeight>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox4</rd:DefaultName>
<Top>5.8751cm</Top>
@@ -2346,6 +2270,7 @@
</Image>
<Textbox Name="Textbox47">
<CanGrow>true</CanGrow>
<CanShrink>true</CanShrink>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
@@ -2364,31 +2289,6 @@
</TextRuns>
<Style />
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Value />
<Style>
<FontFamily>calibri</FontFamily>
<FontSize>9pt</FontSize>
<FontWeight>Normal</FontWeight>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Value />
<Style>
<FontFamily>Calibri</FontFamily>
<FontWeight>Normal</FontWeight>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox4</rd:DefaultName>
<Top>12.13048cm</Top>

View File

@@ -229,8 +229,8 @@
<Sizing>FitProportional</Sizing>
<Top>5.8661in</Top>
<Left>0.03915in</Left>
<Height>1.1811in</Height>
<Width>1.1811in</Width>
<Height>1.10236in</Height>
<Width>1.10236in</Width>
<ZIndex>5</ZIndex>
<Style>
<Border>

View File

@@ -1449,8 +1449,8 @@
<Sizing>FitProportional</Sizing>
<Top>3.09526in</Top>
<Left>0.15526in</Left>
<Height>1.1811in</Height>
<Width>1.1811in</Width>
<Height>1.13682in</Height>
<Width>1.49755in</Width>
<ZIndex>6</ZIndex>
<Style>
<Border>
@@ -1733,7 +1733,7 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox10</rd:DefaultName>
<Top>4.81542in</Top>
<Top>4.69042in</Top>
<Left>0.09346in</Left>
<Height>2.35306in</Height>
<Width>7.84119in</Width>
@@ -1769,7 +1769,7 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>ImporteLetra</rd:DefaultName>
<Top>4.37097in</Top>
<Top>4.24597in</Top>
<Left>0.09346in</Left>
<Height>0.24069in</Height>
<Width>7.88716in</Width>

View 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>

View 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