Simplificar referencias a logos en RDLC y más limpieza de código
This commit is contained in:
@@ -2856,7 +2856,7 @@ Partial Class Contratos_Default
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
|
||||
Dim Imagen As New System.IO.FileInfo($"{UsuarioActual.Empresa.Ruta}/Logo.png")
|
||||
|
||||
|
||||
Dim params As New List(Of ReportParameter)
|
||||
@@ -3642,7 +3642,7 @@ Partial Class Contratos_Default
|
||||
End Sub
|
||||
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($"{UsuarioActual.Empresa.Ruta}/Logo.png")
|
||||
|
||||
|
||||
Dim dt As DataTable = DtAvanceDocumento.FiltraParametros("CveVenta > 0")
|
||||
@@ -3663,7 +3663,7 @@ Partial Class Contratos_Default
|
||||
ImprimirPDF("Empresas/Grales/Formatos/RepContratoAvanceDocumento.rdlc", dt, params, $"{Nombre}-AvanceDocumento", Formato:=Formato)
|
||||
End Sub
|
||||
Private Sub LBImprimirInformacionG_Click(sender As Object, e As EventArgs) Handles LBImprimirInformacionG.Click
|
||||
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
|
||||
Dim Imagen As New System.IO.FileInfo($"{UsuarioActual.Empresa.Ruta}/Logo.png")
|
||||
|
||||
|
||||
Dim dt As DataTable = DtAvanceDocumento
|
||||
@@ -3719,7 +3719,7 @@ Partial Class Contratos_Default
|
||||
End Sub
|
||||
Private Sub GenerarPDFGastos(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($"{UsuarioActual.Empresa.Ruta}/Logo.png")
|
||||
|
||||
Dim UtilidadGastos As String = IIf(LblUtilidad.Text <> "", LblUtilidad.Text, "-").ToString
|
||||
|
||||
@@ -3759,7 +3759,7 @@ Partial Class Contratos_Default
|
||||
GenerarPDFSuministros()
|
||||
End Sub
|
||||
Private Sub GenerarPDFSuministros(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($"{UsuarioActual.Empresa.Ruta}/Logo.png")
|
||||
|
||||
|
||||
Dim dt As DataTable = DtSuministros
|
||||
@@ -3786,7 +3786,7 @@ Partial Class Contratos_Default
|
||||
GenerarPDFAvance()
|
||||
End Sub
|
||||
Private Sub GenerarPDFAvance(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($"{UsuarioActual.Empresa.Ruta}/Logo.png")
|
||||
|
||||
|
||||
Dim dt As DataTable = DtAvance
|
||||
@@ -3817,7 +3817,7 @@ Partial Class Contratos_Default
|
||||
GenerarPDFPPresupuesto(Formato:="EXCEL")
|
||||
End Sub
|
||||
Private Sub GenerarPDFPPresupuesto(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($"{UsuarioActual.Empresa.Ruta}/Logo.png")
|
||||
|
||||
|
||||
Dim dt As DataTable = DtPresupuestos
|
||||
@@ -3848,7 +3848,7 @@ Partial Class Contratos_Default
|
||||
GenerarPDFActivosFijos("Excel")
|
||||
End Sub
|
||||
Private Sub GenerarPDFActivosFijos(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($"{UsuarioActual.Empresa.Ruta}/Logo.png")
|
||||
|
||||
|
||||
Dim dt As DataTable = Nothing
|
||||
|
||||
Reference in New Issue
Block a user