Ruta dinamica de carpeta "Empresas" asignar valor desde el web config
This commit is contained in:
@@ -109,7 +109,7 @@ Partial Class GPS_CatEventos
|
||||
Try
|
||||
If TxtUpImagen.getfiles().Archivos.Count > 0 Then
|
||||
Dim ArchivoImagen As Archivo = TxtUpImagen.getfiles().Archivos(0)
|
||||
Dim Path As String = $"{AppDomain.CurrentDomain.BaseDirectory}Imagenes"
|
||||
Dim Path As String = $"{ModExtensiones.DirectorioBaseEmpresas}Imagenes"
|
||||
If Not Directory.Exists(Path) Then
|
||||
Directory.CreateDirectory(Path)
|
||||
End If
|
||||
@@ -122,7 +122,7 @@ Partial Class GPS_CatEventos
|
||||
|
||||
If TxtUpSonido.getfiles().Archivos.Count > 0 Then
|
||||
Dim ArchivoSonido As Archivo = TxtUpSonido.getfiles().Archivos(0)
|
||||
Dim PathSonido As String = $"{AppDomain.CurrentDomain.BaseDirectory}Sonidos"
|
||||
Dim PathSonido As String = $"{ModExtensiones.DirectorioBaseEmpresas}Sonidos"
|
||||
Dim dirSonido As String = String.Format("{0}\{1}.{2}", PathSonido, Sonido, ArchivoSonido.Extencion)
|
||||
If File.Exists(dirSonido) Then
|
||||
My.Computer.FileSystem.DeleteFile(dirSonido)
|
||||
@@ -146,7 +146,7 @@ Partial Class GPS_CatEventos
|
||||
Try
|
||||
If TxtUpImagen.getfiles().Archivos.Count > 0 Then
|
||||
Dim ArchivoImagen As Archivo = TxtUpImagen.getfiles().Archivos(0)
|
||||
Dim Path As String = $"{AppDomain.CurrentDomain.BaseDirectory}Imagenes"
|
||||
Dim Path As String = $"{ModExtensiones.DirectorioBaseEmpresas}Imagenes"
|
||||
If Not Directory.Exists(Path) Then
|
||||
Directory.CreateDirectory(Path)
|
||||
End If
|
||||
@@ -159,7 +159,7 @@ Partial Class GPS_CatEventos
|
||||
|
||||
If TxtUpSonido.getfiles().Archivos.Count > 0 Then
|
||||
Dim ArchivoSonido As Archivo = TxtUpSonido.getfiles().Archivos(0)
|
||||
Dim PathSonido As String = $"{AppDomain.CurrentDomain.BaseDirectory}Sonidos"
|
||||
Dim PathSonido As String = $"{ModExtensiones.DirectorioBaseEmpresas}Sonidos"
|
||||
Dim dirSonido As String = String.Format("{0}\{1}", PathSonido)
|
||||
If File.Exists(dirSonido) Then
|
||||
My.Computer.FileSystem.DeleteFile(dirSonido)
|
||||
@@ -214,7 +214,7 @@ Partial Class GPS_CatEventos
|
||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
e.Row.VerticalAlign = VerticalAlign.Middle
|
||||
e.Row.FCLinkButton("ImgE").CommandArgument = e.Row.DataKey("CveEvento").ToString
|
||||
If File.Exists($"{AppDomain.CurrentDomain.BaseDirectory}Sonidos/{e.Row.DataKey("Sonido").ToString}") Then
|
||||
If File.Exists($"{ModExtensiones.DirectorioBaseEmpresas}Sonidos/{e.Row.DataKey("Sonido").ToString}") Then
|
||||
e.Row.FCLinkButton("PlaySonido").OnClientClick = $"javascript:PlaySonidito('{e.Row.DataKey("Sonido").ToString}');return false;"
|
||||
Else
|
||||
e.Row.FCLinkButton("PlaySonido").Visible = False
|
||||
|
||||
Reference in New Issue
Block a user