mirror of
https://github.com/KeymonSoft/Marquez_Reparto.git
synced 2026-04-20 06:09:17 +00:00
- VERSION 4.07.28
- Se agregó el nuevo ruteo dinamico
This commit is contained in:
@@ -154,7 +154,8 @@ Private Sub B4XPage_Created (Root1 As B4XView)
|
||||
Starter.skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS RUTAA (RUTAA TEXT)")
|
||||
Starter.skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS wayPoints (codigo TEXT, indice INT)")
|
||||
' Dim server As String = "http://187.189.244.154:1781"
|
||||
Dim server As String = "http://11.0.0.168:1781"
|
||||
' Dim server As String = "http://11.0.0.168:1781"
|
||||
Dim server As String = "http://keymon.lat:9000"
|
||||
' server = "http://10.0.0.205:1782"
|
||||
' server = "http://11.0.0.44:1782"
|
||||
reqManager.Initialize(Me, B4XPages.MainPage.server)
|
||||
@@ -266,7 +267,28 @@ Sub JobDone(Job As HttpJob)
|
||||
Next
|
||||
End If
|
||||
End If
|
||||
|
||||
|
||||
If Job.JobName = "DBRequest" Then
|
||||
Dim result As DBResult = reqManager.HandleJob(Job)
|
||||
If result.Tag = "coords_almacen" Then 'query tag
|
||||
For Each records() As Object In result.Rows
|
||||
Log("Coordenadas del almacen: " & records(result.Columns.Get("CAT_AL_LATITUD")) & "," & records(result.Columns.Get("CAT_AL_LONGITUD")))
|
||||
Private lat, lon As Double
|
||||
lat = 0.0
|
||||
lon = 0.0
|
||||
If IsNumber(records(result.Columns.Get("CAT_AL_LATITUD"))) And IsNumber(records(result.Columns.Get("CAT_AL_LONGITUD"))) Then
|
||||
lat = records(result.Columns.Get("CAT_AL_LATITUD"))
|
||||
lon = records(result.Columns.Get("CAT_AL_LONGITUD"))
|
||||
End If
|
||||
Starter.cedisLocation.Latitude = lat
|
||||
Starter.cedisLocation.Longitude = lon
|
||||
Starter.skmt.ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?", Array As Object ("COORDS_ALMACEN"))
|
||||
Starter.skmt.ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)", Array As Object ("COORDS_ALMACEN",lon&","&lat))
|
||||
'19.48118148992086,-99.15295579261536
|
||||
Next
|
||||
End If
|
||||
End If
|
||||
|
||||
If Job.JobName = "DBRequest" Then
|
||||
Dim result As DBResult = reqManager.HandleJob(Job)
|
||||
If result.Tag = "usuario" Then 'query tag
|
||||
|
||||
Reference in New Issue
Block a user