-- cambio en validación rutadb
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user