Tracker GPS

This commit is contained in:
2020-10-15 20:03:23 -07:00
parent 6eb4cd9814
commit 184471fc7b

View File

@@ -1,4 +1,4 @@
<%@ WebService Language="VB" Class="WSGPSApp" %> <%@ WebService Language="VB" Class="WSGPSApp" %>
Option Strict On Option Strict On
Imports System.Web Imports System.Web
@@ -31,8 +31,8 @@ Public Class WSGPSApp
Inherits System.Web.Services.WebService Inherits System.Web.Services.WebService
Private Const LongValue As Long = &H100000000 Private Const LongValue As Long = &H100000000
Public Property Credentials As AuthHeader Public Property Credentials As AuthHeader
#Region "G L O B A L S" #Region "G L O B A L S"
Property GlobalDTDispositivos(CveCliente As Integer) As DataTable Property GlobalDTDispositivos(CveCliente As Integer) As DataTable
Get Get
@@ -90,7 +90,7 @@ Public Class WSGPSApp
Set(value As DataTable) Set(value As DataTable)
Application("GlobalDTDispositivosUsuarios") = value Application("GlobalDTDispositivosUsuarios") = value
End Set End Set
End Property End Property
#End Region #End Region
<SoapHeader("Credentials")> <SoapHeader("Credentials")>
<WebMethod> <WebMethod>
@@ -411,7 +411,7 @@ Public Class WSGPSApp
Public Function AddTramaApp(DevID As String, Lat As Double, Lng As Double, FechaTrama As DateTime, SO As String, Speed As Double) As Boolean Public Function AddTramaApp(DevID As String, Lat As Double, Lng As Double, FechaTrama As DateTime, SO As String, Speed As Double) As Boolean
Dim Retorno As Boolean = False Dim Retorno As Boolean = False
Using ObjGPS As New ClsGPS Using ObjGPS As New ClsGPS
Retorno = ObjGPS.AddTrama(DevID,"", Lat, Lng, FechaTrama, Speed, String.Format("App{0}", SO)) Retorno = ObjGPS.AddTrama(DevID, "", Lat, Lng, FechaTrama, Speed)
End Using End Using
Return Retorno Return Retorno
End Function End Function
@@ -990,8 +990,8 @@ Public Class WSGPSApp
Return Retorno Return Retorno
End Function End Function
#Region "F U N C I O N E S" #Region "F U N C I O N E S"
Private Sub CreaObjetoEmpresa(ByRef UsuarioActual As Usuario) Private Sub CreaObjetoEmpresa(ByRef UsuarioActual As Usuario)
Dim ObjEmpresa As New ClsSisEmpresas() Dim ObjEmpresa As New ClsSisEmpresas()
@@ -1107,7 +1107,7 @@ Public Class WSGPSApp
OnError("Acceso no autorizado", New SoapException("Unauthorized", SoapException.ClientFaultCode)) OnError("Acceso no autorizado", New SoapException("Unauthorized", SoapException.ClientFaultCode))
Return False Return False
End If End If
End Function End Function
#End Region #End Region
End Class End Class
Namespace ADGPSModels Namespace ADGPSModels