Validacion en WS

This commit is contained in:
2020-09-29 15:55:29 -07:00
parent 81b2ef824a
commit f53dc040c2

View File

@@ -548,15 +548,19 @@ Public Class WSApp
Salida.CveSubProyecto = UsuarioActual.CveSubProyecto
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
Salida.Cliente = ObjClientes.Nombre
Salida.CvePrecioLista = ObjClientes.CvePrecioLista
Salida.CveEstatusCliente = If(ObjClientes.Estatus, 1, 0)
End If
End If
retorno = JsonConvert.SerializeObject(Salida)
Salida.CveEstatusCliente = If(ObjClientes.Estatus, 1, 0)
retorno = JsonConvert.SerializeObject(Salida)
End If
Else
retorno = "{}"
End If
Else
retorno = "{}"
End If