mejora
This commit is contained in:
@@ -595,8 +595,9 @@ 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))
|
||||||
|
dt.Dispose()
|
||||||
End If
|
End If
|
||||||
dt.Dispose()
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If DtRetorno IsNot Nothing AndAlso DtRetorno.Rows.Count > 0 Then
|
If DtRetorno IsNot Nothing AndAlso DtRetorno.Rows.Count > 0 Then
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user