-- cambio en validación rutadb

This commit is contained in:
2024-06-19 19:12:28 -07:00
parent e96003fdb4
commit 4670732d90

View File

@@ -88,15 +88,13 @@ Public Class ClsPaginas
Public Shared ReadOnly Property UsuarioActualRutaDB() As String Public Shared ReadOnly Property UsuarioActualRutaDB() As String
Get Get
Try
If HttpContext.Current.Session("UsuarioSIG") Is Nothing Then If HttpContext.Current IsNot Nothing AndAlso HttpContext.Current.Session IsNot Nothing AndAlso HttpContext.Current.Session("UsuarioSIG") IsNot Nothing Then
Return "" Return DirectCast(HttpContext.Current.Session("UsuarioSIG"), Usuario).RutaDB
Else Else
Return DirectCast(HttpContext.Current.Session("UsuarioSIG"), Usuario).RutaDB
End If
Catch ex As Exception
Return "" Return ""
End Try End If
End Get End Get
End Property End Property
Public Property CveModulo As Integer Public Property CveModulo As Integer
@@ -7519,7 +7517,7 @@ Public Class ClsPaginas
If Not RutaReporte.ToUpper().StartsWith(bdir.ToUpper()) Then If Not RutaReporte.ToUpper().StartsWith(bdir.ToUpper()) Then
RutaReporte = String.Format("{0}{1}", bdir, RutaReporte) RutaReporte = String.Format("{0}{1}", bdir, RutaReporte)
End If End If
Dim urlHost As String = "http://localhost:2202/" Dim urlHost As String = "hhttp://sig.adssistemas.mx:7998/"
If EsProduccion Then If EsProduccion Then
urlHost = "http://sig.adssistemas.mx:6599/" urlHost = "http://sig.adssistemas.mx:6599/"
End If End If