This commit is contained in:
2021-10-02 13:26:45 -07:00
parent 505ff3017e
commit e4f8386039

View File

@@ -595,10 +595,11 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
End If End If
DtRetorno = dt.FiltraParametros(String.Format("NombreComercial like '%{0}%' OR Nombre like '%{0}%' ", Name)) DtRetorno = dt.FiltraParametros(String.Format("NombreComercial like '%{0}%' OR Nombre like '%{0}%' ", Name))
End If
dt.Dispose() dt.Dispose()
End If End If
End If
If DtRetorno IsNot Nothing AndAlso DtRetorno.Rows.Count > 0 Then If DtRetorno IsNot Nothing AndAlso DtRetorno.Rows.Count > 0 Then
Dim i As Integer = 0 'limpieza de columnas Dim i As Integer = 0 'limpieza de columnas
While i < DtRetorno.Columns.Count While i < DtRetorno.Columns.Count
@@ -617,6 +618,7 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
context.Response.Write("[]") context.Response.Write("[]")
End If End If
DtRetorno.Dispose() DtRetorno.Dispose()
DtRetorno = Nothing
Return retorno Return retorno
End Function End Function
@@ -671,10 +673,11 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
retorno = JsonConvert.SerializeObject(DtRetorno).ToString retorno = JsonConvert.SerializeObject(DtRetorno).ToString
context.Response.Write(retorno) context.Response.Write(retorno)
DtRetorno.Dispose() DtRetorno.Dispose()
DtRetorno = Nothing
Else Else
context.Response.Write("[]") context.Response.Write("[]")
End If End If
DtRetorno.Dispose()
Return retorno Return retorno
End Function End Function
#End Region #End Region
@@ -946,6 +949,7 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
retorno = JsonConvert.SerializeObject(DtPSRetorno).ToString retorno = JsonConvert.SerializeObject(DtPSRetorno).ToString
context.Response.Write(retorno) context.Response.Write(retorno)
DtPSRetorno.Dispose() DtPSRetorno.Dispose()
DtPSRetorno = Nothing
Else Else
context.Response.Write("[]") context.Response.Write("[]")
End If End If