Reportes impresiones con proceso 201, oculttar columnas en las impresiones

This commit is contained in:
rakcsle
2023-08-04 08:29:53 -07:00
parent 474ec51356
commit 2bdf079d8d
11 changed files with 5158 additions and 4910 deletions

View File

@@ -432,8 +432,8 @@ Partial Class Compras_ReembolsosComprobaciones
FoliosFechasValFechaDocumentoMesInferior.AppendLine($"Folio: { gvRowVal.DataKey("SerieFolio") } fecha: {gvRowVal.DataKey("FechaCompra").ToDate.ToString("dd/MM/yyyy") } <br/>") FoliosFechasValFechaDocumentoMesInferior.AppendLine($"Folio: { gvRowVal.DataKey("SerieFolio") } fecha: {gvRowVal.DataKey("FechaCompra").ToDate.ToString("dd/MM/yyyy") } <br/>")
ValFechaDocumento = True ValFechaDocumento = True
ElseIf AnioFactura = AnioDocumento And MesDocumento > MesFactura Then ElseIf AnioFactura = AnioDocumento And MesDocumento > MesFactura Then
FoliosFechasValFechaDocumentoPagoMesSuperior.AppendLine($"Folio: { gvRowVal.DataKey("SerieFolio") } fecha: {gvRowVal.DataKey("FechaCompra").ToDate.ToString("dd/MM/yyyy") } <br/>") 'FoliosFechasValFechaDocumentoPagoMesSuperior.AppendLine($"Folio: { gvRowVal.DataKey("SerieFolio") } fecha: {gvRowVal.DataKey("FechaCompra").ToDate.ToString("dd/MM/yyyy") } <br/>")
ValFechaDocumento = True 'ValFechaDocumento = True
End If End If
End If End If

View File

@@ -320,6 +320,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox18</rd:DefaultName> <rd:DefaultName>Textbox18</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Color>White</Color> <Color>White</Color>
@@ -723,6 +726,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox19</rd:DefaultName> <rd:DefaultName>Textbox19</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Color>White</Color> <Color>White</Color>
@@ -779,6 +785,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox22</rd:DefaultName> <rd:DefaultName>Textbox22</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Color>White</Color> <Color>White</Color>
@@ -835,6 +844,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox25</rd:DefaultName> <rd:DefaultName>Textbox25</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Color>White</Color> <Color>White</Color>
@@ -891,6 +903,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox28</rd:DefaultName> <rd:DefaultName>Textbox28</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Color>White</Color> <Color>White</Color>
@@ -1210,6 +1225,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>SaldoIniImp</rd:DefaultName> <rd:DefaultName>SaldoIniImp</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Style>None</Style> <Style>None</Style>
@@ -1255,6 +1273,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>EntradaImp</rd:DefaultName> <rd:DefaultName>EntradaImp</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Style>None</Style> <Style>None</Style>
@@ -1300,6 +1321,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>SalidaImp</rd:DefaultName> <rd:DefaultName>SalidaImp</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Style>None</Style> <Style>None</Style>
@@ -1345,6 +1369,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>SaldoFImp</rd:DefaultName> <rd:DefaultName>SaldoFImp</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Style>None</Style> <Style>None</Style>
@@ -1598,6 +1625,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox30</rd:DefaultName> <rd:DefaultName>Textbox30</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Color>LightGrey</Color> <Color>LightGrey</Color>
@@ -1610,6 +1640,7 @@
<PaddingBottom>2pt</PaddingBottom> <PaddingBottom>2pt</PaddingBottom>
</Style> </Style>
</Textbox> </Textbox>
<rd:Selected>true</rd:Selected>
</CellContents> </CellContents>
</TablixCell> </TablixCell>
<TablixCell> <TablixCell>
@@ -1634,6 +1665,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox31</rd:DefaultName> <rd:DefaultName>Textbox31</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Color>LightGrey</Color> <Color>LightGrey</Color>
@@ -1670,6 +1704,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox32</rd:DefaultName> <rd:DefaultName>Textbox32</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Color>LightGrey</Color> <Color>LightGrey</Color>
@@ -1706,6 +1743,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox33</rd:DefaultName> <rd:DefaultName>Textbox33</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Color>LightGrey</Color> <Color>LightGrey</Color>
@@ -2176,6 +2216,12 @@
<AllowBlank>true</AllowBlank> <AllowBlank>true</AllowBlank>
<Prompt>ReportParameter1</Prompt> <Prompt>ReportParameter1</Prompt>
</ReportParameter> </ReportParameter>
<ReportParameter Name="OcultarImportes">
<DataType>String</DataType>
<Nullable>true</Nullable>
<AllowBlank>true</AllowBlank>
<Prompt>ReportParameter1</Prompt>
</ReportParameter>
</ReportParameters> </ReportParameters>
<EmbeddedImages> <EmbeddedImages>
<EmbeddedImage Name="LOGOSERVECENJPG"> <EmbeddedImage Name="LOGOSERVECENJPG">

File diff suppressed because it is too large Load Diff

View File

@@ -303,6 +303,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox18</rd:DefaultName> <rd:DefaultName>Textbox18</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Color>White</Color> <Color>White</Color>
@@ -698,6 +701,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox19</rd:DefaultName> <rd:DefaultName>Textbox19</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Color>White</Color> <Color>White</Color>
@@ -754,6 +760,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox22</rd:DefaultName> <rd:DefaultName>Textbox22</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Color>White</Color> <Color>White</Color>
@@ -810,6 +819,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox25</rd:DefaultName> <rd:DefaultName>Textbox25</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Color>White</Color> <Color>White</Color>
@@ -866,6 +878,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox28</rd:DefaultName> <rd:DefaultName>Textbox28</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Color>White</Color> <Color>White</Color>
@@ -1185,6 +1200,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>SaldoIniImp</rd:DefaultName> <rd:DefaultName>SaldoIniImp</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Style>None</Style> <Style>None</Style>
@@ -1217,7 +1235,6 @@
<Value>=IIF(Fields!EntradaImp.Value = "0", "-", Fields!EntradaImp.Value)</Value> <Value>=IIF(Fields!EntradaImp.Value = "0", "-", Fields!EntradaImp.Value)</Value>
<Style> <Style>
<FontSize>8pt</FontSize> <FontSize>8pt</FontSize>
<FontWeight>=Iif(Fields!CvePS.Value=-1, "Medium","Default")</FontWeight>
<Format>#,0.00</Format> <Format>#,0.00</Format>
<Color>=Iif(Fields!CvePS.Value=-1, "White","Black")</Color> <Color>=Iif(Fields!CvePS.Value=-1, "White","Black")</Color>
<Language>es-MX</Language> <Language>es-MX</Language>
@@ -1230,6 +1247,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>EntradaImp</rd:DefaultName> <rd:DefaultName>EntradaImp</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Style>None</Style> <Style>None</Style>
@@ -1262,7 +1282,6 @@
<Value>=IIF(Fields!SalidaImp.Value = "0", "-", Fields!SalidaImp.Value)</Value> <Value>=IIF(Fields!SalidaImp.Value = "0", "-", Fields!SalidaImp.Value)</Value>
<Style> <Style>
<FontSize>8pt</FontSize> <FontSize>8pt</FontSize>
<FontWeight>=Iif(Fields!CvePS.Value=-1, "Medium","Default")</FontWeight>
<Format>#,0.00</Format> <Format>#,0.00</Format>
<Color>=Iif(Fields!CvePS.Value=-1, "White","Black")</Color> <Color>=Iif(Fields!CvePS.Value=-1, "White","Black")</Color>
<Language>es-MX</Language> <Language>es-MX</Language>
@@ -1275,6 +1294,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>SalidaImp</rd:DefaultName> <rd:DefaultName>SalidaImp</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Style>None</Style> <Style>None</Style>
@@ -1307,7 +1329,6 @@
<Value>=IIF(Fields!SaldoFImp.Value = "0", "-", Fields!SaldoFImp.Value)</Value> <Value>=IIF(Fields!SaldoFImp.Value = "0", "-", Fields!SaldoFImp.Value)</Value>
<Style> <Style>
<FontSize>8pt</FontSize> <FontSize>8pt</FontSize>
<FontWeight>=Iif(Fields!CvePS.Value=-1, "Medium","Default")</FontWeight>
<Format>#,0.00</Format> <Format>#,0.00</Format>
<Color>=Iif(Fields!CvePS.Value=-1, "White","Black")</Color> <Color>=Iif(Fields!CvePS.Value=-1, "White","Black")</Color>
<Language>es-MX</Language> <Language>es-MX</Language>
@@ -1320,6 +1341,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>SaldoFImp</rd:DefaultName> <rd:DefaultName>SaldoFImp</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Style>None</Style> <Style>None</Style>
@@ -1573,6 +1597,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox30</rd:DefaultName> <rd:DefaultName>Textbox30</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Color>LightGrey</Color> <Color>LightGrey</Color>
@@ -1599,7 +1626,6 @@
<Value>=Sum(Fields!EntradaImp.Value, "DataSet1")</Value> <Value>=Sum(Fields!EntradaImp.Value, "DataSet1")</Value>
<Style> <Style>
<FontSize>8pt</FontSize> <FontSize>8pt</FontSize>
<FontWeight>=Iif(Fields!CvePS.Value=-1, "Medium","Default")</FontWeight>
<Format>#,0.00</Format> <Format>#,0.00</Format>
<Language>es-MX</Language> <Language>es-MX</Language>
</Style> </Style>
@@ -1609,6 +1635,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox31</rd:DefaultName> <rd:DefaultName>Textbox31</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Color>LightGrey</Color> <Color>LightGrey</Color>
@@ -1635,7 +1664,6 @@
<Value>=Sum(Fields!SalidaImp.Value, "DataSet1")</Value> <Value>=Sum(Fields!SalidaImp.Value, "DataSet1")</Value>
<Style> <Style>
<FontSize>8pt</FontSize> <FontSize>8pt</FontSize>
<FontWeight>=Iif(Fields!CvePS.Value=-1, "Medium","Default")</FontWeight>
<Format>#,0.00</Format> <Format>#,0.00</Format>
<Language>es-MX</Language> <Language>es-MX</Language>
</Style> </Style>
@@ -1645,6 +1673,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox32</rd:DefaultName> <rd:DefaultName>Textbox32</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Color>LightGrey</Color> <Color>LightGrey</Color>
@@ -1671,7 +1702,6 @@
<Value>=Sum(Fields!SaldoFImp.Value, "DataSet1")</Value> <Value>=Sum(Fields!SaldoFImp.Value, "DataSet1")</Value>
<Style> <Style>
<FontSize>8pt</FontSize> <FontSize>8pt</FontSize>
<FontWeight>=Iif(Fields!CvePS.Value=-1, "Medium","Default")</FontWeight>
<Format>#,0.00</Format> <Format>#,0.00</Format>
<Language>es-MX</Language> <Language>es-MX</Language>
</Style> </Style>
@@ -1681,6 +1711,9 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox33</rd:DefaultName> <rd:DefaultName>Textbox33</rd:DefaultName>
<Visibility>
<Hidden>=IIF(Parameters!OcultarImportes.Value.ToString() = "False", True,False)</Hidden>
</Visibility>
<Style> <Style>
<Border> <Border>
<Color>LightGrey</Color> <Color>LightGrey</Color>
@@ -1693,6 +1726,7 @@
<PaddingBottom>2pt</PaddingBottom> <PaddingBottom>2pt</PaddingBottom>
</Style> </Style>
</Textbox> </Textbox>
<rd:Selected>true</rd:Selected>
</CellContents> </CellContents>
</TablixCell> </TablixCell>
</TablixCells> </TablixCells>
@@ -2108,15 +2142,20 @@
<ReportParameters> <ReportParameters>
<ReportParameter Name="pEmp"> <ReportParameter Name="pEmp">
<DataType>String</DataType> <DataType>String</DataType>
<Nullable>true</Nullable>
<AllowBlank>true</AllowBlank>
<Prompt>ReportParameter1</Prompt> <Prompt>ReportParameter1</Prompt>
</ReportParameter> </ReportParameter>
<ReportParameter Name="pImg"> <ReportParameter Name="pImg">
<DataType>String</DataType> <DataType>String</DataType>
<Nullable>true</Nullable>
<AllowBlank>true</AllowBlank>
<Prompt>ReportParameter1</Prompt> <Prompt>ReportParameter1</Prompt>
</ReportParameter> </ReportParameter>
<ReportParameter Name="FechaInicial"> <ReportParameter Name="FechaInicial">
<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="FechaFinal"> <ReportParameter Name="FechaFinal">
@@ -2133,6 +2172,7 @@
</ReportParameter> </ReportParameter>
<ReportParameter Name="UsuarioImprimio"> <ReportParameter Name="UsuarioImprimio">
<DataType>String</DataType> <DataType>String</DataType>
<Nullable>true</Nullable>
<AllowBlank>true</AllowBlank> <AllowBlank>true</AllowBlank>
<Prompt>ReportParameter1</Prompt> <Prompt>ReportParameter1</Prompt>
</ReportParameter> </ReportParameter>
@@ -2142,6 +2182,12 @@
<AllowBlank>true</AllowBlank> <AllowBlank>true</AllowBlank>
<Prompt>ReportParameter1</Prompt> <Prompt>ReportParameter1</Prompt>
</ReportParameter> </ReportParameter>
<ReportParameter Name="OcultarImportes">
<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>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -474,6 +474,7 @@ Partial Class Inventarios_Kardex
params.Add(New ReportParameter("AgrupadoPor", $"<b>Agrupado Por:</b>&nbsp;{SerieAgrupado}{EntradaSalida}{Almacen}{UM}{FechaIn}{FechaFn}")) params.Add(New ReportParameter("AgrupadoPor", $"<b>Agrupado Por:</b>&nbsp;{SerieAgrupado}{EntradaSalida}{Almacen}{UM}{FechaIn}{FechaFn}"))
params.Add(New ReportParameter("LogoPath", If(Imagen.Exists, $"file://{Imagen.FullName}", ""))) params.Add(New ReportParameter("LogoPath", If(Imagen.Exists, $"file://{Imagen.FullName}", "")))
params.Add(New ReportParameter("OcultarImportes", UsuarioActual.TienePermisoProceso(201).ToString))
ImprimirPDF("Empresas/Grales/Formatos/RepKardex.rdlc", dt, params, "ReporteKardex", Formato) ImprimirPDF("Empresas/Grales/Formatos/RepKardex.rdlc", dt, params, "ReporteKardex", Formato)
Else Else
Alert("No hay datos consultados", TipoMensaje.MsgAdvertencia) Alert("No hay datos consultados", TipoMensaje.MsgAdvertencia)

View File

@@ -4,10 +4,10 @@
<asp:UpdatePanel ID="UPAcciones" runat="server" UpdateMode="Conditional"> <asp:UpdatePanel ID="UPAcciones" runat="server" UpdateMode="Conditional">
<ContentTemplate> <ContentTemplate>
<li> <li>
<asp:LinkButton ID="LnkImprimir" runat="server"><i class="fa fa-ad-pdf"></i> Generar PDF</asp:LinkButton> <asp:LinkButton ID="LnkImprimir" runat="server"><i class="fa fa-file-pdf-o"></i> PDF</asp:LinkButton>
</li> </li>
<li> <li>
<asp:LinkButton ID="LnkExportar" runat="server"><i class="fa fa-ad-excel"></i> Generar Excel</asp:LinkButton> <asp:LinkButton ID="LnkExportar" runat="server"><i class="fa fa-file-excel-o"></i> Excel</asp:LinkButton>
</li> </li>
<li> <li>

View File

@@ -366,6 +366,7 @@ Partial Class Inventarios_ReporteEntradasSalidas
Dim PS = If(DdlPS.SelectedValue = "-1", "", $"&emsp;<b>PS:</b>&nbsp;{DdlPS.SelectedText}") Dim PS = If(DdlPS.SelectedValue = "-1", "", $"&emsp;<b>PS:</b>&nbsp;{DdlPS.SelectedText}")
Dim FechaIn As String = $"&emsp;<b>Fecha&nbsp;Inicio:</b>&nbsp;{TxtFechaI.Text}" Dim FechaIn As String = $"&emsp;<b>Fecha&nbsp;Inicio:</b>&nbsp;{TxtFechaI.Text}"
Dim FechaFn As String = $"&emsp;<b>Fecha&nbsp;Fin:</b>&nbsp;{TxtFechaF.Text}" Dim FechaFn As String = $"&emsp;<b>Fecha&nbsp;Fin:</b>&nbsp;{TxtFechaF.Text}"
If TxtFechaI.Text = "" Then FechaIn = "" If TxtFechaI.Text = "" Then FechaIn = ""
If TxtFechaF.Text = "" Then FechaFn = "" If TxtFechaF.Text = "" Then FechaFn = ""
@@ -379,6 +380,8 @@ Partial Class Inventarios_ReporteEntradasSalidas
Dim Ruta As String = UsuarioActual.Empresa.Ruta Dim Ruta As String = UsuarioActual.Empresa.Ruta
Dim NombreArchivoDescarga = "ReporteEntradas-Salidas" Dim NombreArchivoDescarga = "ReporteEntradas-Salidas"
Dim params As New List(Of ReportParameter)
If UsuarioActual.CveEmpresa.Contiene(119) Then If UsuarioActual.CveEmpresa.Contiene(119) Then
If FormatoInventario Then If FormatoInventario Then
@@ -401,7 +404,8 @@ Partial Class Inventarios_ReporteEntradasSalidas
RutaPDF = "Empresas/Grales/Formatos/EntradasSalidas.rdlc" RutaPDF = "Empresas/Grales/Formatos/EntradasSalidas.rdlc"
End If End If
Dim params As New List(Of ReportParameter)
params.Add(New ReportParameter("pEmp", UsuarioActual.Empresa.Empresa)) params.Add(New ReportParameter("pEmp", UsuarioActual.Empresa.Empresa))
Dim Imagen As New System.IO.FileInfo($"{UsuarioActual.Empresa.Ruta}/Logo.png") Dim Imagen As New System.IO.FileInfo($"{UsuarioActual.Empresa.Ruta}/Logo.png")
params.Add(New ReportParameter("pImg", If(Imagen.Exists, $"file://{Imagen.FullName}", ""))) params.Add(New ReportParameter("pImg", If(Imagen.Exists, $"file://{Imagen.FullName}", "")))
@@ -415,6 +419,8 @@ Partial Class Inventarios_ReporteEntradasSalidas
params.Add(New ReportParameter("FechaFinal", FechaF)) params.Add(New ReportParameter("FechaFinal", FechaF))
params.Add(New ReportParameter("AgrupadoPor", $"{Almacen}{TipoMov}{Moneda}{SoloConMov}{Proveedor}{Clasificacion}{Familia}{SubFamilia}{PS}{FechaIn}{FechaFn}")) params.Add(New ReportParameter("AgrupadoPor", $"{Almacen}{TipoMov}{Moneda}{SoloConMov}{Proveedor}{Clasificacion}{Familia}{SubFamilia}{PS}{FechaIn}{FechaFn}"))
End If End If
params.Add(New ReportParameter("OcultarImportes", UsuarioActual.TienePermisoProceso(201).ToString))
ImprimirPDF(RutaPDF, If(FormatoInventario, dt.FiltraParametros("", "RazonSocial, PS ASC"), dt), params, NombreArchivoDescarga, Formato:=Formato) ImprimirPDF(RutaPDF, If(FormatoInventario, dt.FiltraParametros("", "RazonSocial, PS ASC"), dt), params, NombreArchivoDescarga, Formato:=Formato)
End Sub End Sub

View File

@@ -20,10 +20,10 @@
</asp:Content> </asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server"> <asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
<li> <li>
<asp:LinkButton ID="LnkImprimir" runat="server"><i class="fa fa-ad-pdf"></i> Generar PDF</asp:LinkButton> <asp:LinkButton ID="LnkImprimir" runat="server"><i class="fa fa-file-pdf-o"></i> PDF</asp:LinkButton>
</li> </li>
<li> <li>
<asp:LinkButton ID="LnkExportar" runat="server"><i class="fa fa-ad-excel"></i> Generar Excel</asp:LinkButton> <asp:LinkButton ID="LnkExportar" runat="server"><i class="fa fa-file-excel-o"></i> Excel</asp:LinkButton>
</li> </li>
<li> <li>
<asp:HyperLink NavigateUrl="#" data-toggle="modal" data-target="#DivPersonalizar" ID="ImgPersonalizar" runat="server"> <i class="fa fa-pencil"></i> Personalizar</asp:HyperLink> <asp:HyperLink NavigateUrl="#" data-toggle="modal" data-target="#DivPersonalizar" ID="ImgPersonalizar" runat="server"> <i class="fa fa-pencil"></i> Personalizar</asp:HyperLink>
@@ -152,10 +152,13 @@
<asp:BoundField HeaderText="Activo Fijo" DataField="CodigoAF" ItemStyle-HorizontalAlign="Left" Visible="false" /> <asp:BoundField HeaderText="Activo Fijo" DataField="CodigoAF" ItemStyle-HorizontalAlign="Left" Visible="false" />
<asp:BoundField HeaderText="SubProyecto" DataField="SubProyecto" ItemStyle-HorizontalAlign="Left" Visible="false" /> <asp:BoundField HeaderText="SubProyecto" DataField="SubProyecto" ItemStyle-HorizontalAlign="Left" Visible="false" />
<asp:BoundField HeaderText="Entradas" ItemStyle-Width="75px" DataField="Entradas" DataFormatString="{0:#,###.##}" ItemStyle-HorizontalAlign="Right"/> <asp:BoundField HeaderText="Entradas" ItemStyle-Width="75px" DataField="Entradas" DataFormatString="{0:#,###.##}" ItemStyle-HorizontalAlign="Right"/>
<asp:BoundField HeaderText="Costo" ItemStyle-Width="100px" DataField="CostoE" DataFormatString="{0:#,###.##}" ItemStyle-HorizontalAlign="Right"/> <asp:BoundField HeaderText="Costo" ItemStyle-Width="100px" DataField="CostoE" DataFormatString="{0:#,###.##}" ItemStyle-HorizontalAlign="Right"/>
<asp:BoundField HeaderText="Salidas" ItemStyle-Width="75px" DataField="Salidas" DataFormatString="{0:#,###.##}" ItemStyle-HorizontalAlign="Right"/> <asp:BoundField HeaderText="Salidas" ItemStyle-Width="75px" DataField="Salidas" DataFormatString="{0:#,###.##}" ItemStyle-HorizontalAlign="Right"/>
<asp:BoundField HeaderText="Costo" ItemStyle-Width="100px" DataField="CostoS" DataFormatString="{0:#,###.##}" ItemStyle-HorizontalAlign="Right"/> <asp:BoundField HeaderText="Costo" ItemStyle-Width="100px" DataField="CostoS" DataFormatString="{0:#,###.##}" ItemStyle-HorizontalAlign="Right"/>
<asp:BoundField HeaderText="Existencia" ItemStyle-Width="75px" DataField="ExistenciaAcum" DataFormatString="{0:#,###.##}" ItemStyle-HorizontalAlign="Right"/> <asp:BoundField HeaderText="Existencia" ItemStyle-Width="75px" DataField="ExistenciaAcum" DataFormatString="{0:#,###.##}" ItemStyle-HorizontalAlign="Right"/>
<asp:BoundField HeaderText="Valor" ItemStyle-Width="100px" DataField="ValorAcum" DataFormatString="{0:#,###.##}" ItemStyle-HorizontalAlign="Right"/> <asp:BoundField HeaderText="Valor" ItemStyle-Width="100px" DataField="ValorAcum" DataFormatString="{0:#,###.##}" ItemStyle-HorizontalAlign="Right"/>
</Columns> </Columns>
</asp:GridView> </asp:GridView>

View File

@@ -298,6 +298,7 @@ Partial Class Inventarios_RepExistenciasCostos
params.Add(New ReportParameter("FechaImpresion", Now.ToDateTime.ToShortDateString)) params.Add(New ReportParameter("FechaImpresion", Now.ToDateTime.ToShortDateString))
params.Add(New ReportParameter("Filtros", $"{FechaIn} {FechaFn} {Proveedor} {Concepto} {Almacen} {Clasificacion} {PS} {Moneda}")) params.Add(New ReportParameter("Filtros", $"{FechaIn} {FechaFn} {Proveedor} {Concepto} {Almacen} {Clasificacion} {PS} {Moneda}"))
params.Add(New ReportParameter("LogoPath", If(Imagen.Exists, $"file://{Imagen.FullName}", ""))) params.Add(New ReportParameter("LogoPath", If(Imagen.Exists, $"file://{Imagen.FullName}", "")))
params.Add(New ReportParameter("OcultarImportes", UsuarioActual.TienePermisoProceso(201).ToString))
ImprimirPDF("Empresas/Grales/Formatos/RepExistenciasCostos.rdlc", DtData, params, "ReporteExistenciasCostos", Formato:=reporte) ImprimirPDF("Empresas/Grales/Formatos/RepExistenciasCostos.rdlc", DtData, params, "ReporteExistenciasCostos", Formato:=reporte)
Else Else
Alert("No hay datos consultados", TipoMensaje.MsgAdvertencia) Alert("No hay datos consultados", TipoMensaje.MsgAdvertencia)