Simplificar referencias a logos en RDLC y más limpieza de código
This commit is contained in:
@@ -2919,7 +2919,7 @@ Partial Class Contratos_ContratoObra
|
||||
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)
|
||||
@@ -3418,7 +3418,7 @@ Partial Class Contratos_ContratoObra
|
||||
'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")
|
||||
@@ -3450,7 +3450,7 @@ Partial Class Contratos_ContratoObra
|
||||
'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
|
||||
|
||||
@@ -3490,7 +3490,7 @@ Partial Class Contratos_ContratoObra
|
||||
' 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
|
||||
@@ -3517,7 +3517,7 @@ Partial Class Contratos_ContratoObra
|
||||
' 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
|
||||
@@ -3545,7 +3545,7 @@ Partial Class Contratos_ContratoObra
|
||||
' GenerarPDFPPresupuesto()
|
||||
'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
|
||||
@@ -3576,7 +3576,7 @@ Partial Class Contratos_ContratoObra
|
||||
' 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