option explicit
This commit is contained in:
@@ -98,8 +98,8 @@ Public Class E141 : Implements IHttpHandler
|
||||
Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
|
||||
Dim retorno As String = ""
|
||||
Try
|
||||
Dim Params = If(context.Request("P") = Nothing, "", context.Request("P").ToString())
|
||||
Dim ParamsV = If(context.Request("PV") = Nothing, "", context.Request("PV").ToString())
|
||||
Dim Params As String = If(context.Request("P") = Nothing, "", context.Request("P").ToString())
|
||||
Dim ParamsV As String = If(context.Request("PV") = Nothing, "", context.Request("PV").ToString())
|
||||
|
||||
Dim ParametrosNuevos As Boolean = False
|
||||
If Not String.IsNullOrEmpty(ParamsV) Then
|
||||
@@ -135,16 +135,16 @@ Public Class E141 : Implements IHttpHandler
|
||||
|
||||
Else
|
||||
|
||||
Dim Metodo = If(context.Request("Metodo") = Nothing, "", context.Request("Metodo").ToString())
|
||||
Dim Metodo As String = If(context.Request("Metodo") = Nothing, "", context.Request("Metodo").ToString())
|
||||
'OBTENER EXISTENCIAS
|
||||
If Metodo = "GetExistencia" Then
|
||||
context.Response.ContentType = "application/json"
|
||||
|
||||
Dim Codigo = If(context.Request("Sku") = Nothing, "", context.Request("Sku").ToString())
|
||||
Dim Codigo As String = If(context.Request("Sku") = Nothing, "", context.Request("Sku").ToString())
|
||||
retorno = GetExistencia(context, Codigo)
|
||||
ElseIf Metodo = "ConsultarRFC" Then
|
||||
context.Response.ContentType = "application/json"
|
||||
Dim Auth = ValidarSolicitud(context)
|
||||
Dim Auth As AuthMessage = ValidarSolicitud(context)
|
||||
|
||||
If Auth.IsSucces Then
|
||||
retorno = ConsultaRFC(context)
|
||||
@@ -155,7 +155,7 @@ Public Class E141 : Implements IHttpHandler
|
||||
|
||||
ElseIf Metodo = "ValidarCarrito" Then
|
||||
context.Response.ContentType = "application/json"
|
||||
Dim Auth = ValidarSolicitud(context)
|
||||
Dim Auth As AuthMessage = ValidarSolicitud(context)
|
||||
|
||||
If Auth.IsSucces Then
|
||||
retorno = ValidarCarrito(context)
|
||||
@@ -166,7 +166,7 @@ Public Class E141 : Implements IHttpHandler
|
||||
|
||||
ElseIf Metodo = "RegistrarPedido" Then
|
||||
context.Response.ContentType = "application/json"
|
||||
Dim Auth = ValidarSolicitud(context)
|
||||
Dim Auth As AuthMessage = ValidarSolicitud(context)
|
||||
|
||||
If Auth.IsSucces Then
|
||||
retorno = RegistrarPedido(context)
|
||||
|
||||
Reference in New Issue
Block a user