Validacion en WS
This commit is contained in:
@@ -548,15 +548,19 @@ Public Class WSApp
|
|||||||
Salida.CveSubProyecto = UsuarioActual.CveSubProyecto
|
Salida.CveSubProyecto = UsuarioActual.CveSubProyecto
|
||||||
Salida.Procesos = UsuarioActual.Procesos.Values.Cast(Of String).ToList()
|
Salida.Procesos = UsuarioActual.Procesos.Values.Cast(Of String).ToList()
|
||||||
|
|
||||||
If ObjClientes.GetClientes(UsuarioActual.CveCliente, "-1", "-1", "-1", "-1", "-1", "-1", -1, UsuarioActual.CveEmpresa) Then
|
If UsuarioActual.CveCliente > 0 AndAlso ObjClientes.GetClientes(UsuarioActual.CveCliente, "-1", "-1", "-1", "-1", "-1", "-1", -1, UsuarioActual.CveEmpresa) Then
|
||||||
If ObjClientes.DtResultados.Rows.Count > 0 Then
|
If ObjClientes.DtResultados.Rows.Count > 0 Then
|
||||||
Salida.Cliente = ObjClientes.Nombre
|
Salida.Cliente = ObjClientes.Nombre
|
||||||
Salida.CvePrecioLista = ObjClientes.CvePrecioLista
|
Salida.CvePrecioLista = ObjClientes.CvePrecioLista
|
||||||
Salida.CveEstatusCliente = If(ObjClientes.Estatus, 1, 0)
|
Salida.CveEstatusCliente = If(ObjClientes.Estatus, 1, 0)
|
||||||
|
|
||||||
|
retorno = JsonConvert.SerializeObject(Salida)
|
||||||
End If
|
End If
|
||||||
|
Else
|
||||||
|
retorno = "{}"
|
||||||
End If
|
End If
|
||||||
|
|
||||||
retorno = JsonConvert.SerializeObject(Salida)
|
|
||||||
Else
|
Else
|
||||||
retorno = "{}"
|
retorno = "{}"
|
||||||
End If
|
End If
|
||||||
|
|||||||
Reference in New Issue
Block a user