acomodo de layout en reportes

This commit is contained in:
Antonio Gonzalez
2020-10-13 18:36:03 -07:00
parent eb399787a6
commit fdce588151
6 changed files with 94 additions and 120 deletions

View File

@@ -118,23 +118,19 @@ Partial Class Compras_ProveedoresAuxiliar
Dim OpcionP = If(DdlOpcion.SelectedValue = "-1", "", $"&emsp;<b>Opción:</b> {DdlOpcion.SelectedItem.Text}") Dim OpcionP = If(DdlOpcion.SelectedValue = "-1", "", $"&emsp;<b>Opción:</b> {DdlOpcion.SelectedItem.Text}")
Dim TipoProv = If(DdlTipoProveedor.SelectedValue = "-1", "", $"&emsp;<b>Tipo Proveedor:</b> {DdlTipoProveedor.SelectedItem.Text}") Dim TipoProv = If(DdlTipoProveedor.SelectedValue = "-1", "", $"&emsp;<b>Tipo Proveedor:</b> {DdlTipoProveedor.SelectedItem.Text}")
Dim ContaP = If(DdlOpcionContabilizable.SelectedValue = "-1", "", $"&emsp;<b>Contabilizable:</b> {DdlOpcionContabilizable.SelectedItem.Text}") Dim ContaP = If(DdlOpcionContabilizable.SelectedValue = "-1", "", $"&emsp;<b>Contabilizable:</b> {DdlOpcionContabilizable.SelectedItem.Text}")
If DtDatos IsNot Nothing AndAlso DtDatos.Rows.Count > 0 Then Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
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)
Dim logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa) Dim params As New List(Of ReportParameter)
Dim params As New List(Of ReportParameter) params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa))
params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa)) params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre)) params.Add(New ReportParameter("FechaImpresion", Now.ToString))
params.Add(New ReportParameter("FechaImpresion", Now.ToString)) params.Add(New ReportParameter("Filtros", $"<b>Filtros:</b> {Proveedor}{FechaIn}{FechaFn}{OpcionP}{TipoProv}{ContaP}"))
params.Add(New ReportParameter("Filtros", $"<b>Filtros:</b> {Proveedor}{FechaIn}{FechaFn}{OpcionP}{TipoProv}{ContaP}")) If Imagen.Exists Then
If Imagen.Exists Then params.Add(New ReportParameter("LogoPath", logouri))
params.Add(New ReportParameter("LogoPath", logouri))
Else
params.Add(New ReportParameter("LogoPath", ""))
End If
ImprimirPDF("Empresas/Grales/Formatos/AuxiliarProveedor.rdlc", DtDatos, params, "AuxiliarProveedor", Opcion)
Else Else
Alert("No hay datos consultados", TipoMensaje.MsgAdvertencia) params.Add(New ReportParameter("LogoPath", ""))
End If End If
ImprimirPDF("Empresas/Grales/Formatos/AuxiliarProveedor.rdlc", DtDatos, params, "AuxiliarProveedor", Opcion)
End Sub End Sub
Protected Sub LnkPdf_Click(sender As Object, e As EventArgs) Handles LnkPdf.Click Protected Sub LnkPdf_Click(sender As Object, e As EventArgs) Handles LnkPdf.Click
GenerarPDF("PDF") GenerarPDF("PDF")

View File

@@ -108,34 +108,34 @@
<TablixBody> <TablixBody>
<TablixColumns> <TablixColumns>
<TablixColumn> <TablixColumn>
<Width>1.82858cm</Width> <Width>3.4316cm</Width>
</TablixColumn> </TablixColumn>
<TablixColumn> <TablixColumn>
<Width>5.84308cm</Width> <Width>3.4316cm</Width>
</TablixColumn> </TablixColumn>
<TablixColumn> <TablixColumn>
<Width>1.40241cm</Width> <Width>1.7158cm</Width>
</TablixColumn> </TablixColumn>
<TablixColumn> <TablixColumn>
<Width>1.59046cm</Width> <Width>1.7158cm</Width>
</TablixColumn> </TablixColumn>
<TablixColumn> <TablixColumn>
<Width>1.59046cm</Width> <Width>1.7158cm</Width>
</TablixColumn> </TablixColumn>
<TablixColumn> <TablixColumn>
<Width>1.3846cm</Width> <Width>1.7158cm</Width>
</TablixColumn> </TablixColumn>
<TablixColumn> <TablixColumn>
<Width>1.62687cm</Width> <Width>1.7158cm</Width>
</TablixColumn> </TablixColumn>
<TablixColumn> <TablixColumn>
<Width>1.99138cm</Width> <Width>1.7158cm</Width>
</TablixColumn> </TablixColumn>
<TablixColumn> <TablixColumn>
<Width>1.7797cm</Width> <Width>1.7158cm</Width>
</TablixColumn> </TablixColumn>
<TablixColumn> <TablixColumn>
<Width>1.865cm</Width> <Width>1.7158cm</Width>
</TablixColumn> </TablixColumn>
</TablixColumns> </TablixColumns>
<TablixRows> <TablixRows>
@@ -193,7 +193,7 @@
</TablixCell> </TablixCell>
<TablixCell> <TablixCell>
<CellContents> <CellContents>
<Textbox Name="Textbox9"> <Textbox Name="Textbox1">
<CanGrow>true</CanGrow> <CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether> <KeepTogether>true</KeepTogether>
<Paragraphs> <Paragraphs>
@@ -211,7 +211,7 @@
</Style> </Style>
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox9</rd:DefaultName> <rd:DefaultName>Textbox1</rd:DefaultName>
<Style> <Style>
<Border> <Border>
<Style>None</Style> <Style>None</Style>
@@ -266,26 +266,9 @@
<Color>White</Color> <Color>White</Color>
<Style>Solid</Style> <Style>Solid</Style>
</Border> </Border>
<TopBorder>
<Color>White</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</TopBorder>
<BottomBorder>
<Color>White</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</BottomBorder>
<LeftBorder> <LeftBorder>
<Color>White</Color> <Style>None</Style>
<Style>Solid</Style>
<Width>1pt</Width>
</LeftBorder> </LeftBorder>
<RightBorder>
<Color>White</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</RightBorder>
<BackgroundColor>#d3d3d3</BackgroundColor> <BackgroundColor>#d3d3d3</BackgroundColor>
<PaddingLeft>2pt</PaddingLeft> <PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight> <PaddingRight>2pt</PaddingRight>
@@ -308,7 +291,7 @@
<Paragraph> <Paragraph>
<TextRuns> <TextRuns>
<TextRun> <TextRun>
<Value>Importe</Value> <Value />
<Style> <Style>
<FontWeight>SemiBold</FontWeight> <FontWeight>SemiBold</FontWeight>
</Style> </Style>
@@ -422,7 +405,7 @@
<Paragraph> <Paragraph>
<TextRuns> <TextRuns>
<TextRun> <TextRun>
<Value>Articulos</Value> <Value>Artículos</Value>
<Style> <Style>
<FontSize>9pt</FontSize> <FontSize>9pt</FontSize>
<FontWeight>SemiBold</FontWeight> <FontWeight>SemiBold</FontWeight>
@@ -491,23 +474,15 @@
<Style>Solid</Style> <Style>Solid</Style>
</Border> </Border>
<TopBorder> <TopBorder>
<Color>White</Color>
<Style>Solid</Style>
<Width>1pt</Width> <Width>1pt</Width>
</TopBorder> </TopBorder>
<BottomBorder> <BottomBorder>
<Color>White</Color>
<Style>Solid</Style>
<Width>1pt</Width> <Width>1pt</Width>
</BottomBorder> </BottomBorder>
<LeftBorder> <LeftBorder>
<Color>White</Color> <Style>None</Style>
<Style>Solid</Style>
<Width>1pt</Width>
</LeftBorder> </LeftBorder>
<RightBorder> <RightBorder>
<Color>White</Color>
<Style>Solid</Style>
<Width>1pt</Width> <Width>1pt</Width>
</RightBorder> </RightBorder>
<BackgroundColor>#d3d3d3</BackgroundColor> <BackgroundColor>#d3d3d3</BackgroundColor>
@@ -1763,9 +1738,8 @@
</TablixRowHierarchy> </TablixRowHierarchy>
<DataSetName>DataSet1</DataSetName> <DataSetName>DataSet1</DataSetName>
<Top>0.20849cm</Top> <Top>0.20849cm</Top>
<Left>0.00415cm</Left>
<Height>2.52171cm</Height> <Height>2.52171cm</Height>
<Width>20.90254cm</Width> <Width>20.5896cm</Width>
<Style> <Style>
<Border> <Border>
<Style>None</Style> <Style>None</Style>
@@ -1776,7 +1750,7 @@
<Height>1.16692in</Height> <Height>1.16692in</Height>
<Style /> <Style />
</Body> </Body>
<Width>8.2362in</Width> <Width>8.11008in</Width>
<Page> <Page>
<PageHeader> <PageHeader>
<Height>4.57869cm</Height> <Height>4.57869cm</Height>
@@ -1797,14 +1771,15 @@
</Style> </Style>
</TextRun> </TextRun>
</TextRuns> </TextRuns>
<Style /> <Style>
<TextAlign>Center</TextAlign>
</Style>
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox1</rd:DefaultName> <rd:DefaultName>Textbox1</rd:DefaultName>
<Top>0.22049cm</Top> <Top>0.22049cm</Top>
<Left>2.78201cm</Left>
<Height>0.6cm</Height> <Height>0.6cm</Height>
<Width>12.60299cm</Width> <Width>20.5896cm</Width>
<Style> <Style>
<Border> <Border>
<Style>None</Style> <Style>None</Style>
@@ -1850,9 +1825,8 @@
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox2</rd:DefaultName> <rd:DefaultName>Textbox2</rd:DefaultName>
<Top>1.13799cm</Top> <Top>1.13799cm</Top>
<Left>4.68157cm</Left>
<Height>0.52945cm</Height> <Height>0.52945cm</Height>
<Width>9.98771cm</Width> <Width>20.5896cm</Width>
<ZIndex>1</ZIndex> <ZIndex>1</ZIndex>
<Style> <Style>
<Border> <Border>
@@ -1868,9 +1842,8 @@
<Source>External</Source> <Source>External</Source>
<Value>= Parameters!pImg.Value</Value> <Value>= Parameters!pImg.Value</Value>
<Sizing>FitProportional</Sizing> <Sizing>FitProportional</Sizing>
<Left>0.01325cm</Left> <Height>1.66744cm</Height>
<Height>2.22362cm</Height> <Width>3.4316cm</Width>
<Width>2.33715cm</Width>
<ZIndex>2</ZIndex> <ZIndex>2</ZIndex>
<Style> <Style>
<Border> <Border>
@@ -1895,9 +1868,8 @@
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox15</rd:DefaultName> <rd:DefaultName>Textbox15</rd:DefaultName>
<Top>2.40001cm</Top> <Top>2.40001cm</Top>
<Left>0.01325cm</Left>
<Height>1.8259cm</Height> <Height>1.8259cm</Height>
<Width>20.89344cm</Width> <Width>20.5896cm</Width>
<ZIndex>3</ZIndex> <ZIndex>3</ZIndex>
<Style> <Style>
<Border> <Border>
@@ -1911,9 +1883,8 @@
</Textbox> </Textbox>
<Line Name="Line1"> <Line Name="Line1">
<Top>4.4023cm</Top> <Top>4.4023cm</Top>
<Left>0.01325cm</Left>
<Height>0cm</Height> <Height>0cm</Height>
<Width>20.90669cm</Width> <Width>20.5896cm</Width>
<ZIndex>4</ZIndex> <ZIndex>4</ZIndex>
<Style> <Style>
<Border> <Border>
@@ -1954,9 +1925,9 @@
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox3</rd:DefaultName> <rd:DefaultName>Textbox3</rd:DefaultName>
<Top>0.28575cm</Top> <Top>0.28575cm</Top>
<Left>15.06595cm</Left> <Left>15.4422cm</Left>
<Height>0.44125cm</Height> <Height>0.44125cm</Height>
<Width>5.51625cm</Width> <Width>5.1474cm</Width>
<Style> <Style>
<Border> <Border>
<Style>None</Style> <Style>None</Style>
@@ -1988,9 +1959,8 @@
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox8</rd:DefaultName> <rd:DefaultName>Textbox8</rd:DefaultName>
<Top>0.28575cm</Top> <Top>0.28575cm</Top>
<Left>0.6059cm</Left>
<Height>0.44125cm</Height> <Height>0.44125cm</Height>
<Width>1.60042cm</Width> <Width>1.7158cm</Width>
<ZIndex>1</ZIndex> <ZIndex>1</ZIndex>
<Style> <Style>
<Border> <Border>
@@ -2022,9 +1992,9 @@
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox9</rd:DefaultName> <rd:DefaultName>Textbox9</rd:DefaultName>
<Top>0.28575cm</Top> <Top>0.28575cm</Top>
<Left>2.15023cm</Left> <Left>1.7158cm</Left>
<Height>0.44125cm</Height> <Height>0.44125cm</Height>
<Width>5.14936cm</Width> <Width>5.1474cm</Width>
<ZIndex>2</ZIndex> <ZIndex>2</ZIndex>
<Style> <Style>
<Border> <Border>
@@ -2057,9 +2027,9 @@
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox10</rd:DefaultName> <rd:DefaultName>Textbox10</rd:DefaultName>
<Top>0.28575cm</Top> <Top>0.28575cm</Top>
<Left>7.47001cm</Left> <Left>7.65695cm</Left>
<Height>0.44125cm</Height> <Height>0.44125cm</Height>
<Width>2.92333cm</Width> <Width>2.63785cm</Width>
<ZIndex>3</ZIndex> <ZIndex>3</ZIndex>
<Style> <Style>
<Border> <Border>
@@ -2092,9 +2062,9 @@
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox11</rd:DefaultName> <rd:DefaultName>Textbox11</rd:DefaultName>
<Top>0.28575cm</Top> <Top>0.28575cm</Top>
<Left>10.37923cm</Left> <Left>10.2948cm</Left>
<Height>0.44125cm</Height> <Height>0.44125cm</Height>
<Width>4.32745cm</Width> <Width>3.4316cm</Width>
<ZIndex>4</ZIndex> <ZIndex>4</ZIndex>
<Style> <Style>
<Border> <Border>
@@ -2109,7 +2079,7 @@
<Line Name="Line2"> <Line Name="Line2">
<Top>0.127cm</Top> <Top>0.127cm</Top>
<Height>0cm</Height> <Height>0cm</Height>
<Width>20.90669cm</Width> <Width>20.59cm</Width>
<ZIndex>5</ZIndex> <ZIndex>5</ZIndex>
<Style> <Style>
<Border> <Border>
@@ -2150,8 +2120,9 @@
<Prompt>ReportParameter1</Prompt> <Prompt>ReportParameter1</Prompt>
</ReportParameter> </ReportParameter>
<ReportParameter Name="FechaFinal"> <ReportParameter Name="FechaFinal">
<DataType>DateTime</DataType> <DataType>String</DataType>
<Nullable>true</Nullable> <Nullable>true</Nullable>
<AllowBlank>true</AllowBlank>
<Prompt>ReportParameter1</Prompt> <Prompt>ReportParameter1</Prompt>
</ReportParameter> </ReportParameter>
<ReportParameter Name="AgrupadoPor"> <ReportParameter Name="AgrupadoPor">
@@ -2171,12 +2142,6 @@
<AllowBlank>true</AllowBlank> <AllowBlank>true</AllowBlank>
<Prompt>ReportParameter1</Prompt> <Prompt>ReportParameter1</Prompt>
</ReportParameter> </ReportParameter>
<ReportParameter Name="DomicilioFiscal">
<DataType>String</DataType>
<Nullable>true</Nullable>
<AllowBlank>true</AllowBlank>
<Prompt>ReportParameter1</Prompt>
</ReportParameter>
</ReportParameters> </ReportParameters>
<rd:ReportUnitType>Cm</rd:ReportUnitType> <rd:ReportUnitType>Cm</rd:ReportUnitType>
<rd:ReportID>1d5d9525-4bdd-4783-9df6-cce93069c30f</rd:ReportID> <rd:ReportID>1d5d9525-4bdd-4783-9df6-cce93069c30f</rd:ReportID>

View File

@@ -92,10 +92,10 @@
<TablixBody> <TablixBody>
<TablixColumns> <TablixColumns>
<TablixColumn> <TablixColumn>
<Width>2.5cm</Width> <Width>5cm</Width>
</TablixColumn> </TablixColumn>
<TablixColumn> <TablixColumn>
<Width>3.17009cm</Width> <Width>5cm</Width>
</TablixColumn> </TablixColumn>
</TablixColumns> </TablixColumns>
<TablixRows> <TablixRows>
@@ -274,7 +274,7 @@
</SortExpression> </SortExpression>
</SortExpressions> </SortExpressions>
<TablixHeader> <TablixHeader>
<Size>6.90208cm</Size> <Size>5cm</Size>
<CellContents> <CellContents>
<Textbox Name="Almacen"> <Textbox Name="Almacen">
<KeepTogether>true</KeepTogether> <KeepTogether>true</KeepTogether>
@@ -309,7 +309,7 @@
<TablixMembers> <TablixMembers>
<TablixMember> <TablixMember>
<TablixHeader> <TablixHeader>
<Size>6.13624cm</Size> <Size>5cm</Size>
<CellContents> <CellContents>
<Textbox Name="TipoAlmacen1"> <Textbox Name="TipoAlmacen1">
<CanGrow>true</CanGrow> <CanGrow>true</CanGrow>
@@ -350,7 +350,7 @@
<DataSetName>DataSet1</DataSetName> <DataSetName>DataSet1</DataSetName>
<Top>0.38751in</Top> <Top>0.38751in</Top>
<Height>0.7502cm</Height> <Height>0.7502cm</Height>
<Width>18.70841cm</Width> <Width>20cm</Width>
<Style> <Style>
<Border> <Border>
<Style>None</Style> <Style>None</Style>
@@ -379,7 +379,7 @@
<rd:DefaultName>Filtros</rd:DefaultName> <rd:DefaultName>Filtros</rd:DefaultName>
<Top>0.20788cm</Top> <Top>0.20788cm</Top>
<Height>0.6cm</Height> <Height>0.6cm</Height>
<Width>18.70841cm</Width> <Width>20cm</Width>
<ZIndex>1</ZIndex> <ZIndex>1</ZIndex>
<Style> <Style>
<Border> <Border>
@@ -395,7 +395,7 @@
<Height>0.81828in</Height> <Height>0.81828in</Height>
<Style /> <Style />
</Body> </Body>
<Width>7.58635in</Width> <Width>7.87402in</Width>
<Page> <Page>
<PageHeader> <PageHeader>
<Height>2.32946cm</Height> <Height>2.32946cm</Height>
@@ -422,9 +422,9 @@
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox1</rd:DefaultName> <rd:DefaultName>Textbox1</rd:DefaultName>
<Top>0.18521cm</Top> <Top>0.18521cm</Top>
<Left>3.59188cm</Left> <Left>5cm</Left>
<Height>0.6cm</Height> <Height>0.6cm</Height>
<Width>12.60299cm</Width> <Width>10cm</Width>
<Style> <Style>
<Border> <Border>
<Style>None</Style> <Style>None</Style>
@@ -470,9 +470,9 @@
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox2</rd:DefaultName> <rd:DefaultName>Textbox2</rd:DefaultName>
<Top>1.10271cm</Top> <Top>1.10271cm</Top>
<Left>3.59188cm</Left> <Left>5cm</Left>
<Height>0.52945cm</Height> <Height>0.52945cm</Height>
<Width>12.60299cm</Width> <Width>10cm</Width>
<ZIndex>1</ZIndex> <ZIndex>1</ZIndex>
<Style> <Style>
<Border> <Border>
@@ -488,10 +488,8 @@
<Source>External</Source> <Source>External</Source>
<Value>=Parameters!LogoPath.Value</Value> <Value>=Parameters!LogoPath.Value</Value>
<Sizing>FitProportional</Sizing> <Sizing>FitProportional</Sizing>
<Top>0.04167in</Top> <Height>1.63216cm</Height>
<Left>0.42624cm</Left> <Width>5cm</Width>
<Height>2.22362cm</Height>
<Width>2.33715cm</Width>
<ZIndex>2</ZIndex> <ZIndex>2</ZIndex>
<Style> <Style>
<Border> <Border>
@@ -532,9 +530,9 @@
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox3</rd:DefaultName> <rd:DefaultName>Textbox3</rd:DefaultName>
<Top>0.06cm</Top> <Top>0.06cm</Top>
<Left>16.60846cm</Left> <Left>15cm</Left>
<Height>0.68085cm</Height> <Height>0.68085cm</Height>
<Width>2.43629cm</Width> <Width>5cm</Width>
<Style> <Style>
<Border> <Border>
<Style>None</Style> <Style>None</Style>
@@ -597,7 +595,7 @@
<Top>0.06cm</Top> <Top>0.06cm</Top>
<Left>1.60042cm</Left> <Left>1.60042cm</Left>
<Height>0.68085cm</Height> <Height>0.68085cm</Height>
<Width>5.14936cm</Width> <Width>2.6852cm</Width>
<ZIndex>2</ZIndex> <ZIndex>2</ZIndex>
<Style> <Style>
<Border> <Border>
@@ -623,14 +621,16 @@
</Style> </Style>
</TextRun> </TextRun>
</TextRuns> </TextRuns>
<Style /> <Style>
<TextAlign>Right</TextAlign>
</Style>
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox10</rd:DefaultName> <rd:DefaultName>Textbox10</rd:DefaultName>
<Top>0.06cm</Top> <Top>0.06cm</Top>
<Left>7.24367cm</Left> <Left>5cm</Left>
<Height>0.68085cm</Height> <Height>0.68085cm</Height>
<Width>2.92333cm</Width> <Width>5cm</Width>
<ZIndex>3</ZIndex> <ZIndex>3</ZIndex>
<Style> <Style>
<Border> <Border>
@@ -663,9 +663,9 @@
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox11</rd:DefaultName> <rd:DefaultName>Textbox11</rd:DefaultName>
<Top>0.06cm</Top> <Top>0.06cm</Top>
<Left>10.20228cm</Left> <Left>10cm</Left>
<Height>0.68085cm</Height> <Height>0.68085cm</Height>
<Width>4.64495cm</Width> <Width>5cm</Width>
<ZIndex>4</ZIndex> <ZIndex>4</ZIndex>
<Style> <Style>
<Border> <Border>
@@ -678,7 +678,6 @@
</Style> </Style>
</Textbox> </Textbox>
<Line Name="Line1"> <Line Name="Line1">
<Top>0cm</Top>
<Height>0cm</Height> <Height>0cm</Height>
<Width>19.26933cm</Width> <Width>19.26933cm</Width>
<ZIndex>5</ZIndex> <ZIndex>5</ZIndex>
@@ -707,7 +706,7 @@
<rd:DefaultName>Textbox13</rd:DefaultName> <rd:DefaultName>Textbox13</rd:DefaultName>
<Top>0.48502cm</Top> <Top>0.48502cm</Top>
<Height>0.45889cm</Height> <Height>0.45889cm</Height>
<Width>6.74978cm</Width> <Width>4.28563cm</Width>
<ZIndex>6</ZIndex> <ZIndex>6</ZIndex>
<Style> <Style>
<Border> <Border>

View File

@@ -77,11 +77,11 @@ Partial Class Inventarios_RepAlmacen
#Region "I M P R I M I R <i class='fa fa-print'></i>" #Region "I M P R I M I R <i class='fa fa-print'></i>"
Protected Sub LnkExportar_Click(sender As Object, e As EventArgs) Handles LnkExportar.Click Protected Sub LnkExportar_Click(sender As Object, e As EventArgs) Handles LnkExportar.Click
'GVAlmacen.ExportToExcel("RepFacturas_" & Now.ToShortDateString())
GVAlmacen.ExportToExcel("RepFacturas_" & Now.ToShortDateString()) GenerarPDF("EXCEL")
End Sub End Sub
Private Sub GenerarPDF() Private Sub GenerarPDF(Optional Formato As String = "PDF")
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta)) 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) Dim logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa)
Dim StrFiltro As New StringBuilder Dim StrFiltro As New StringBuilder
@@ -100,7 +100,7 @@ Partial Class Inventarios_RepAlmacen
Else Else
params.Add(New ReportParameter("LogoPath", "")) params.Add(New ReportParameter("LogoPath", ""))
End If End If
ImprimirPDF("Empresas/Grales/Formatos/RepAlmacen.rdlc", TmpDT, params, "ReporteAlmacen") ImprimirPDF("Empresas/Grales/Formatos/RepAlmacen.rdlc", TmpDT, params, "ReporteAlmacen", Formato)
End Sub End Sub
Protected Sub LnkPdf_Click(sender As Object, e As EventArgs) Handles LnkPdf.Click Protected Sub LnkPdf_Click(sender As Object, e As EventArgs) Handles LnkPdf.Click
GenerarPDF() GenerarPDF()
@@ -243,5 +243,6 @@ Partial Class Inventarios_RepAlmacen
End Sub End Sub
#End Region #End Region
Public Overrides Sub VerifyRenderingInServerForm(control As Control)
End Sub
End Class End Class

View File

@@ -5369,6 +5369,7 @@
<div class="form-group form-md-line-input input-iconright" id="DivPSSAT" runat="server" visible="false"> <div class="form-group form-md-line-input input-iconright" id="DivPSSAT" runat="server" visible="false">
<ADS:Dropdownlost runat="server" ID="DdlSATPS" CssStyle="width: 100%;" CssClass="form-control input-sm select2me" DataTextField="Descripcion" DataValueField="CveSATPS" /> <ADS:Dropdownlost runat="server" ID="DdlSATPS" CssStyle="width: 100%;" CssClass="form-control input-sm select2me" DataTextField="Descripcion" DataValueField="CveSATPS" />
<%--<asp:RequiredFieldValidator ID="RfvDdlSATPS" runat="server" CssClass="help-block errorimput" ControlToValidate="DdlSATPS" InitialValue="" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Producto SAT''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAddPS"></asp:RequiredFieldValidator>--%>
<label for="<%= DdlSATPS.ClientID.ToString()%>">Producto SAT:</label> <label for="<%= DdlSATPS.ClientID.ToString()%>">Producto SAT:</label>
</div> </div>

View File

@@ -1985,7 +1985,6 @@ Partial Class Ventas
DdlSATPS.setEsWebService(True) : DdlSATPS.Attributes.Add("data-metodo", "getpssat") DdlSATPS.setEsWebService(True) : DdlSATPS.Attributes.Add("data-metodo", "getpssat")
DivPSSAT.Visible = True DivPSSAT.Visible = True
SetValues() SetValues()
CvePresupuesto = 0 CvePresupuesto = 0
@@ -21286,6 +21285,11 @@ Partial Class Ventas
Return Return
End If End If
If DdlSATPS.SelectedValue = "" OrElse DdlSATPS.SelectedValue = "46920" Then
Alert("Producto SAT no valido", TipoMensaje.MsgAdvertencia)
Return
End If
Dim CveMetodoInventario As Integer = 0 Dim CveMetodoInventario As Integer = 0
If ChkRequiereSerie.Checked Then CveMetodoInventario = 5 Else CveMetodoInventario = 1 If ChkRequiereSerie.Checked Then CveMetodoInventario = 5 Else CveMetodoInventario = 1
@@ -27321,4 +27325,12 @@ Partial Class Ventas
#End Region #End Region
Protected Sub DdlClasificacionPS_SelectedIndex(sender As Object, e As EventArgs) Handles DdlClasificacionPS.SelectedIndexChanged
Dim SATPS As DataTable = GlobalDTClasificaciones(CveEmpresa:=UsuarioActual.CveEmpresa, CveClasificacion:=DdlClasificacionPS.SelectedValue.ToEntero)
Dim CveSATPS As String = SATPS.FiltroPrimeroValor("CveSATPS")
Dim SatPSText As String = SATPS.FiltroPrimeroValor("SATClaveProductoServicio")
DdlSATPS.SelectedValue = CveSATPS
DdlSATPS.SelectedText = SatPSText
End Sub
End Class End Class