mirror of
https://github.com/KeymonSoft/Mariana_Censos.git
synced 2026-04-21 06:39:14 +00:00
Correcciones de mapa y regresos
This commit is contained in:
@@ -368,10 +368,20 @@ Private Sub B4XPage_CloseRequest As ResumableSub
|
|||||||
' BACK key pressed
|
' BACK key pressed
|
||||||
q.encuestaIniciada = False
|
q.encuestaIniciada = False
|
||||||
q.ocultPanelPregunta
|
q.ocultPanelPregunta
|
||||||
|
If q.panelSombra.IsInitialized Then
|
||||||
|
Log(1)
|
||||||
|
q.panelSombra.Visible = False
|
||||||
|
End If
|
||||||
' Return True To close, False To cancel
|
' Return True To close, False To cancel
|
||||||
CallSubDelayed(Tracker, "StartFLP")
|
CallSubDelayed(Tracker, "StartFLP")
|
||||||
Return True
|
If Starter.dondeestoy = "1" Then
|
||||||
' Return False
|
StartActivity(MAPA_RUTAS)
|
||||||
|
Else
|
||||||
|
Log("AQUI")
|
||||||
|
B4XPages.ShowPage("Principal")
|
||||||
|
End If
|
||||||
|
' Return True
|
||||||
|
Return False
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub b_guardaCambios_Click
|
Private Sub b_guardaCambios_Click
|
||||||
|
|||||||
@@ -403,12 +403,22 @@ Sub B4XPage_CloseRequest As ResumableSub
|
|||||||
Log("CloseRequest NC")
|
Log("CloseRequest NC")
|
||||||
StopCamera2
|
StopCamera2
|
||||||
q.ocultPanelPregunta
|
q.ocultPanelPregunta
|
||||||
q.panelSombra.Visible = False
|
|
||||||
CallSubDelayed(Tracker, "StartFLP")
|
CallSubDelayed(Tracker, "StartFLP")
|
||||||
|
If q.panelSombra.IsInitialized Then
|
||||||
|
Log(1)
|
||||||
|
q.panelSombra.Visible = False
|
||||||
|
End If
|
||||||
If p_camara.Visible Then
|
If p_camara.Visible Then
|
||||||
|
Log(2)
|
||||||
p_camara.Visible = False
|
p_camara.Visible = False
|
||||||
Else
|
Else
|
||||||
B4XPages.ShowPage("Principal")
|
Log(3)
|
||||||
|
If Starter.dondeestoy = "1" Then
|
||||||
|
StartActivity(MAPA_RUTAS)
|
||||||
|
Else
|
||||||
|
Log("AQUI")
|
||||||
|
B4XPages.ShowPage("Principal")
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
Return False
|
Return False
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
@@ -1082,6 +1082,7 @@ Sub hacer_ped_Click
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Sub nvo_cliente_Click
|
Sub nvo_cliente_Click
|
||||||
|
Starter.dondeestoy = "2"
|
||||||
B4XPages.MainPage.nuevoCliente.cargarCliente = False
|
B4XPages.MainPage.nuevoCliente.cargarCliente = False
|
||||||
B4XPages.ShowPage("NuevoCliente")
|
B4XPages.ShowPage("NuevoCliente")
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
Binary file not shown.
@@ -120,6 +120,7 @@ Sub Activity_Create(FirstTime As Boolean)
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Sub Activity_Resume
|
Sub Activity_Resume
|
||||||
|
Starter.dondeestoy = "0"
|
||||||
Starter.rp.Check(Starter.rp.PERMISSION_ACCESS_FINE_LOCATION)
|
Starter.rp.Check(Starter.rp.PERMISSION_ACCESS_FINE_LOCATION)
|
||||||
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
|
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
|
||||||
If Result Then
|
If Result Then
|
||||||
@@ -140,6 +141,11 @@ Sub Activity_Resume
|
|||||||
todos = 1
|
todos = 1
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Sub Activity_KeyPress (KeyCode As Int) As Boolean
|
||||||
|
B4XPages.ShowPage("Principal")
|
||||||
|
Return False
|
||||||
|
End Sub
|
||||||
|
|
||||||
Sub MapFragment1_Ready
|
Sub MapFragment1_Ready
|
||||||
' Log("ENTRANDO MapFragment1_Ready")
|
' Log("ENTRANDO MapFragment1_Ready")
|
||||||
gmap = MapFragment1.GetMap
|
gmap = MapFragment1.GetMap
|
||||||
@@ -261,7 +267,7 @@ Sub OnInfoWindowClickListener1_click(Marker1 As Marker)
|
|||||||
skmt.ExecNonQuery("delete from CUENTAA")
|
skmt.ExecNonQuery("delete from CUENTAA")
|
||||||
skmt.ExecNonQuery2("INSERT INTO CUENTAA VALUES (?) ", Array As Object(Marker1.Title))
|
skmt.ExecNonQuery2("INSERT INTO CUENTAA VALUES (?) ", Array As Object(Marker1.Title))
|
||||||
Activity.Finish
|
Activity.Finish
|
||||||
|
Starter.dondeestoy = "1"
|
||||||
If Marker1.Title.As(String).StartsWith("N") Then
|
If Marker1.Title.As(String).StartsWith("N") Then
|
||||||
B4XPages.MainPage.nuevoCliente.cargarCliente = True
|
B4XPages.MainPage.nuevoCliente.cargarCliente = True
|
||||||
B4XPages.ShowPage("NuevoCliente")
|
B4XPages.ShowPage("NuevoCliente")
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ ModuleClosedNodes1=
|
|||||||
ModuleClosedNodes10=
|
ModuleClosedNodes10=
|
||||||
ModuleClosedNodes11=
|
ModuleClosedNodes11=
|
||||||
ModuleClosedNodes12=
|
ModuleClosedNodes12=
|
||||||
ModuleClosedNodes13=3,5
|
ModuleClosedNodes13=3
|
||||||
ModuleClosedNodes14=
|
ModuleClosedNodes14=
|
||||||
ModuleClosedNodes15=
|
ModuleClosedNodes15=
|
||||||
ModuleClosedNodes16=4,5,6,10,13,17,18,19
|
ModuleClosedNodes16=4,5,6,10,13,17,18,19
|
||||||
@@ -49,6 +49,6 @@ ModuleClosedNodes6=
|
|||||||
ModuleClosedNodes7=
|
ModuleClosedNodes7=
|
||||||
ModuleClosedNodes8=9,13,14,17
|
ModuleClosedNodes8=9,13,14,17
|
||||||
ModuleClosedNodes9=1
|
ModuleClosedNodes9=1
|
||||||
NavigationStack=C_NuevoCliente,Camera1_Ready,327,0,Diseñador Visual,cliente.bal,-100,1,Diseñador Visual,nuevocliente.bal,-100,2,Diseñador Visual,clienteDatos.bal,-100,1,C_NuevoCliente,B4XPage_CloseRequest,399,0,C_NuevoCliente,B_FOTO_Click,392,0,C_NuevoCliente,cb_giro_SelectedIndexChanged,500,0,C_Cliente,JobDone,447,0,C_Principal,b_subir_Click,433,0,C_NuevoCliente,mandaPendientesNuevosClientes,457,3
|
NavigationStack=MAPA_RUTAS,OnInfoWindowClickListener1_click,254,4,MAPA_RUTAS,Activity_Resume,137,4,MAPA_RUTAS,Activity_KeyPress,138,6,Diseñador Visual,principal.bal,-100,1,C_Clientes,Mods,0,0,C_Cliente,JobDone,447,0,C_NuevoCliente,B4XPage_CloseRequest,400,6,C_Cliente,B4XPage_CloseRequest,364,0,C_Principal,Btn_Ubicar_Click,1092,5,Main,Activity_KeyPress,41,0
|
||||||
SelectedBuild=0
|
SelectedBuild=0
|
||||||
VisibleModules=2,14,6,9,4,8,5,15,7,16
|
VisibleModules=2,14,6,9,4,8,5,15,7,16,13
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ Sub Process_Globals
|
|||||||
Dim logger As Boolean = False
|
Dim logger As Boolean = False
|
||||||
Dim marcaCel As String = ph.manufacturer
|
Dim marcaCel As String = ph.manufacturer
|
||||||
Public rp As RuntimePermissions
|
Public rp As RuntimePermissions
|
||||||
|
Public dondeestoy As Int
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Sub Service_Create
|
Sub Service_Create
|
||||||
|
|||||||
Reference in New Issue
Block a user