mirror of
https://github.com/KeymonSoft/Intmex_Reparto_Vieja.git
synced 2026-04-17 21:06:13 +00:00
Para que se muestre los clientes si tiene coordenadas en 0
This commit is contained in:
@@ -197,6 +197,9 @@ Sub ListView1_ItemClick (Position As Int, Value As Object)
|
||||
If c2.GetString("CAT_CL_LONG").Length > 3 Then thisLoc.Longitude = c2.GetString("CAT_CL_LONG")
|
||||
Private distancia As Int = Tracker.UUGCoords.DistanceTo(thisLoc) 'Calculamos la distancia de la posicion ACTUAL a la tienda.
|
||||
Private esteCliente As Map = CreateMap("distancia": distancia, "ubicacion": thisLoc.Longitude&","&thisLoc.Latitude, "codigo": c2.GetString("CAT_CL_CODIGO"), "nomDirDist": $"${c2.GetString("CAT_CL_NOMBRE")} CALLE: ${c2.GetString("CAT_CL_CALLE")} ${CRLF}Distancia: $1.1{(distancia/1000)} kms"$)
|
||||
If c2.GetString("CAT_CL_LAT").Length < 3 Then
|
||||
distancia = i
|
||||
End If
|
||||
distOrderedMap.Put(distancia, esteCliente)
|
||||
Next
|
||||
distOrderedMap.Keys.Sort(True) 'Ordenamos la mapa de clientes por distancia.
|
||||
|
||||
Reference in New Issue
Block a user