GPS. Bandera de rastreo solo en inicio para app gps
This commit is contained in:
@@ -134,7 +134,12 @@ Public Class WSGPSApp
|
|||||||
Clientes.Add(New WsClientePortalGPS With {.CveCliente = Row("CveCliente").ToString.ToEntero, .Cliente = Row("Cliente").ToString})
|
Clientes.Add(New WsClientePortalGPS With {.CveCliente = Row("CveCliente").ToString.ToEntero, .Cliente = Row("Cliente").ToString})
|
||||||
Next
|
Next
|
||||||
If UsuarioActual.CveCliente <= 0 AndAlso Clientes.Any() Then
|
If UsuarioActual.CveCliente <= 0 AndAlso Clientes.Any() Then
|
||||||
UsuarioRetorno.CveCliente = Clientes.FirstOrDefault().CveCliente
|
UsuarioRetorno.CveCliente = Clientes.FirstOrDefault().CveCliente
|
||||||
|
If UsuarioRetorno.CveCliente > 0 Then
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(704).Contiene(UsuarioRetorno.CveCliente.ToString()) Then
|
||||||
|
UsuarioRetorno.RastreoSoloInicio = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -196,7 +201,15 @@ Public Class WSGPSApp
|
|||||||
Clientes.Add(New WsClientePortalGPS With {.CveCliente = Row("CveCliente").ToString.ToEntero, .Cliente = Row("Cliente").ToString})
|
Clientes.Add(New WsClientePortalGPS With {.CveCliente = Row("CveCliente").ToString.ToEntero, .Cliente = Row("Cliente").ToString})
|
||||||
Next
|
Next
|
||||||
If UsuarioActual.CveCliente <= 0 AndAlso Clientes.Any() Then
|
If UsuarioActual.CveCliente <= 0 AndAlso Clientes.Any() Then
|
||||||
UsuarioRetorno.CveCliente = Clientes.FirstOrDefault().CveCliente
|
UsuarioRetorno.CveCliente = Clientes.FirstOrDefault().CveCliente
|
||||||
|
If UsuarioActual.CveCliente <= 0 AndAlso Clientes.Any() Then
|
||||||
|
UsuarioRetorno.CveCliente = Clientes.FirstOrDefault().CveCliente
|
||||||
|
If UsuarioRetorno.CveCliente > 0 Then
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(704).Contiene(UsuarioRetorno.CveCliente.ToString()) Then
|
||||||
|
UsuarioRetorno.RastreoSoloInicio = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -1126,7 +1139,8 @@ Namespace ADGPSModels
|
|||||||
Public Property Contrasenia As String
|
Public Property Contrasenia As String
|
||||||
|
|
||||||
Public Property TienePermisoOC As Boolean
|
Public Property TienePermisoOC As Boolean
|
||||||
Public Property TienePermisoPS As Boolean
|
Public Property TienePermisoPS As Boolean
|
||||||
|
Public Property RastreoSoloInicio As Boolean = False
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
<Serializable>
|
<Serializable>
|
||||||
|
|||||||
Reference in New Issue
Block a user