mirror of
https://github.com/KeymonSoft/Mariana.git
synced 2026-04-20 22:29:29 +00:00
-VERSION 5.06.26
- Cambio de 50 segundos a 10 segundos en la revision de la hora para los recordatorios. - Cambio en el envio de la ruta para la contraseña de la geocerca, si no habia cliente seleccionado, no regresaba la ruta correcta.
This commit is contained in:
@@ -61,7 +61,7 @@ Sub Service_Start (StartingIntent As Intent)
|
||||
If s.traeDBReqServerDeBD(skmt) <> "N/A" Then DBReqServer = s.traeDBReqServerDeBD(skmt)
|
||||
reqManager.Initialize(Me, DBReqServer)
|
||||
' StartService(NotificationService)
|
||||
timerRecordatorio.Initialize("timerRecordatorio", 50 * 1000)
|
||||
timerRecordatorio.Initialize("timerRecordatorio", 10 * 1000)
|
||||
timerRecordatorio.Enabled = True
|
||||
End Sub
|
||||
|
||||
@@ -165,6 +165,7 @@ End Sub
|
||||
|
||||
Private Sub timerRecordatorio_Tick
|
||||
'10:30, 13:00 y 15:30
|
||||
Log($"${DateTime.GetHour(DateTime.now)}:${DateTime.GetMinute(DateTime.now)}"$)
|
||||
Log("Revisando la hora - UltimoRecordatorio: " & ultimoRecordatorio)
|
||||
If ultimoRecordatorio <> DateTime.GetHour(DateTime.now) & DateTime.GetMinute(DateTime.now) Then
|
||||
If (DateTime.GetHour(DateTime.now) = 10 And DateTime.GetMinute(DateTime.now) = 20) _ 'Recordatorio de las 10:20
|
||||
@@ -179,7 +180,8 @@ Private Sub timerRecordatorio_Tick
|
||||
Or (DateTime.GetHour(DateTime.now) = 15 And DateTime.GetMinute(DateTime.now) = 25) _ 'Recordatorio de las 15:25
|
||||
Or (DateTime.GetHour(DateTime.now) = 15 And DateTime.GetMinute(DateTime.now) = 29) _ 'Recordatorio de las 15:29
|
||||
Or (DateTime.GetHour(DateTime.now) = 15 And DateTime.GetMinute(DateTime.now) = 30) _ 'Recordatorio de las 15:30
|
||||
Or (DateTime.GetHour(DateTime.now) = 17 And DateTime.GetMinute(DateTime.now) = 70) Then ' HORARIO DE PRUEBA
|
||||
Or (DateTime.GetHour(DateTime.now) = 10 And DateTime.GetMinute(DateTime.now) = 70) Then ' HORARIO DE PRUEBA
|
||||
Log("¡¡MANDAMOS RECORDATORIO!!")
|
||||
If Not(B4XPages.GetManager.IsForeground) Then Subs.notiHigh("¡¡ATENCION!!", "Recuerda enviar tu venta.", Main)
|
||||
If B4XPages.MainPage.IsInitialized And B4XPages.MainPage.pantallaActual.IsInitialized Then
|
||||
B4XPages.MainPage.recordatorio.agregaPanelRecordatorio(B4XPages.MainPage.pantallaActual)
|
||||
|
||||
Reference in New Issue
Block a user