Validacion en WS
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user