GPS. Bandera de rastreo solo en inicio para app gps
This commit is contained in:
@@ -135,6 +135,11 @@ Public Class WSGPSApp
|
|||||||
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
|
||||||
@@ -197,6 +202,14 @@ Public Class WSGPSApp
|
|||||||
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
|
||||||
@@ -1127,6 +1140,7 @@ Namespace ADGPSModels
|
|||||||
|
|
||||||
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