mirror of
https://github.com/KeymonSoft/Medicomed-V2.git
synced 2026-04-27 09:30:31 +00:00
Version: 5.04.18_V2
Se corigue Query del JobDone del tag "marcas_rutas"
This commit is contained in:
@@ -149,9 +149,9 @@ public medicomed.keymon.com.mx.starter _starter = null;
|
||||
public medicomed.keymon.com.mx.appupdater _appupdater = null;
|
||||
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
|
||||
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
|
||||
public medicomed.keymon.com.mx.subs _subs = null;
|
||||
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
|
||||
public medicomed.keymon.com.mx.pendientes _pendientes = null;
|
||||
public medicomed.keymon.com.mx.subs _subs = null;
|
||||
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
|
||||
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
|
||||
public medicomed.keymon.com.mx.b4xcollections _b4xcollections = null;
|
||||
@@ -226,7 +226,7 @@ String _coords = "";
|
||||
if (_flp.GetLastKnownLocation().IsInitialized()) {
|
||||
//BA.debugLineNum = 140;BA.debugLine="If Starter.Logger Then LogColor($\"Mandamos UUC \"";
|
||||
if (mostCurrent._starter._logger /*boolean*/ ) {
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("777725699",("Mandamos UUC \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(_flp.GetLastKnownLocation().getTime()))))+"|Acc:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getAccuracy()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLatitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLongitude()))+"|Spd:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getSpeed()))+"|"),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (255),(int) (112),(int) (35)));};
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("541418755",("Mandamos UUC \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(_flp.GetLastKnownLocation().getTime()))))+"|Acc:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getAccuracy()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLatitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLongitude()))+"|Spd:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getSpeed()))+"|"),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (255),(int) (112),(int) (35)));};
|
||||
//BA.debugLineNum = 141;BA.debugLine="Dim coords As String = FLP.GetLastKnownLocation.";
|
||||
_coords = BA.NumberToString(_flp.GetLastKnownLocation().getLatitude())+","+BA.NumberToString(_flp.GetLastKnownLocation().getLongitude())+","+_formatofecha(BA.NumberToString(_flp.GetLastKnownLocation().getTime()));
|
||||
};
|
||||
@@ -236,7 +236,7 @@ return "";
|
||||
public static String _flp_connectionfailed(int _connectionresult1) throws Exception{
|
||||
//BA.debugLineNum = 56;BA.debugLine="Sub flp_ConnectionFailed(ConnectionResult1 As Int)";
|
||||
//BA.debugLineNum = 57;BA.debugLine="Log(\"Failed to connect to location provider\")";
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("777266945","Failed to connect to location provider",0);
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("540960001","Failed to connect to location provider",0);
|
||||
//BA.debugLineNum = 58;BA.debugLine="End Sub";
|
||||
return "";
|
||||
}
|
||||
@@ -276,7 +276,7 @@ mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (process
|
||||
}
|
||||
catch (Exception e13) {
|
||||
processBA.setLastException(e13); //BA.debugLineNum = 177;BA.debugLine="LogColor(LastException, Colors.Red)";
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("777856790",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("541549846",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
|
||||
};
|
||||
//BA.debugLineNum = 180;BA.debugLine="Dim coords As String = Location1.Latitude&\",\"&Loc";
|
||||
_coords = BA.NumberToString(_location1.getLatitude())+","+BA.NumberToString(_location1.getLongitude())+","+_formatofecha(BA.NumberToString(_location1.getTime()));
|
||||
@@ -333,7 +333,7 @@ public static String _revisaflp() throws Exception{
|
||||
boolean _todobienflp = false;
|
||||
//BA.debugLineNum = 225;BA.debugLine="Sub revisaFLP 'ignore";
|
||||
//BA.debugLineNum = 226;BA.debugLine="LogColor(\"**** **** Revisamos FLP **** ****\", Col";
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("778118913","**** **** Revisamos FLP **** ****",anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (78),(int) (0),(int) (227)));
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("541811969","**** **** Revisamos FLP **** ****",anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (78),(int) (0),(int) (227)));
|
||||
//BA.debugLineNum = 227;BA.debugLine="Private todoBienFLP As Boolean = True";
|
||||
_todobienflp = anywheresoftware.b4a.keywords.Common.True;
|
||||
//BA.debugLineNum = 228;BA.debugLine="Try";
|
||||
@@ -349,7 +349,7 @@ _todobienflp = anywheresoftware.b4a.keywords.Common.False;
|
||||
}
|
||||
catch (Exception e10) {
|
||||
processBA.setLastException(e10); //BA.debugLineNum = 235;BA.debugLine="LogColor(\"If Not(Tracker.FLP.IsInitialized) -->";
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("778118922","If Not(Tracker.FLP.IsInitialized) --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("541811978","If Not(Tracker.FLP.IsInitialized) --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
|
||||
};
|
||||
//BA.debugLineNum = 237;BA.debugLine="Try";
|
||||
try { //BA.debugLineNum = 238;BA.debugLine="If FLP.IsInitialized Then";
|
||||
@@ -367,7 +367,7 @@ _todobienflp = anywheresoftware.b4a.keywords.Common.False;
|
||||
}
|
||||
catch (Exception e21) {
|
||||
processBA.setLastException(e21); //BA.debugLineNum = 247;BA.debugLine="LogColor(\"If Not(Tracker.FLP.IsConnected) -->";
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("778118934","If Not(Tracker.FLP.IsConnected) --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("541811990","If Not(Tracker.FLP.IsConnected) --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
|
||||
};
|
||||
//BA.debugLineNum = 249;BA.debugLine="Try";
|
||||
try { //BA.debugLineNum = 250;BA.debugLine="If FLP.IsConnected And _ FLP.GetLastKnown";
|
||||
@@ -382,16 +382,16 @@ _todobienflp = anywheresoftware.b4a.keywords.Common.False;
|
||||
}
|
||||
catch (Exception e30) {
|
||||
processBA.setLastException(e30); //BA.debugLineNum = 258;BA.debugLine="LogColor(\"If FLP.IsConnectctd and FLP.getLKL.I";
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("778118945","If FLP.IsConnectctd and FLP.getLKL.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("541812001","If FLP.IsConnectctd and FLP.getLKL.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
|
||||
};
|
||||
};
|
||||
//BA.debugLineNum = 261;BA.debugLine="If todoBienFLP Then LogColor(\" +++ +++ Sin error";
|
||||
if (_todobienflp) {
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("778118948"," +++ +++ Sin errores en FLP",anywheresoftware.b4a.keywords.Common.Colors.Green);};
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("541812004"," +++ +++ Sin errores en FLP",anywheresoftware.b4a.keywords.Common.Colors.Green);};
|
||||
}
|
||||
catch (Exception e35) {
|
||||
processBA.setLastException(e35); //BA.debugLineNum = 263;BA.debugLine="LogColor(\"If Tracker.FLP.IsInitialized --> \"&Las";
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("778118950","If Tracker.FLP.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("541812006","If Tracker.FLP.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
|
||||
};
|
||||
//BA.debugLineNum = 266;BA.debugLine="End Sub";
|
||||
return "";
|
||||
@@ -409,14 +409,14 @@ if (_flp.GetLastKnownLocation().IsInitialized()) {
|
||||
_daa = (int) (_uugcoords.DistanceTo((android.location.Location)(_flp.GetLastKnownLocation().getObject())));
|
||||
//BA.debugLineNum = 278;BA.debugLine="If Starter.Logger Then LogColor($\"**** UUC \"$";
|
||||
if (mostCurrent._starter._logger /*boolean*/ ) {
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("778184456",("**** UUC \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(_flp.GetLastKnownLocation().getTime()))))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getAccuracy()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLatitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLongitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getSpeed()))+"|"),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (255),(int) (112),(int) (35)));};
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("541877512",("**** UUC \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(_flp.GetLastKnownLocation().getTime()))))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getAccuracy()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLatitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLongitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getSpeed()))+"|"),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (255),(int) (112),(int) (35)));};
|
||||
//BA.debugLineNum = 279;BA.debugLine="If daa > 40 And FLP.GetLastKnownLocation.Accu";
|
||||
if (_daa>40 && _flp.GetLastKnownLocation().getAccuracy()<35) {
|
||||
//BA.debugLineNum = 280;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
|
||||
mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO RUTA_GPS(fecha, lat, lon) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(_flp.GetLastKnownLocation().getTime()))),(Object)(_flp.GetLastKnownLocation().getLatitude()),(Object)(_flp.GetLastKnownLocation().getLongitude())}));
|
||||
//BA.debugLineNum = 281;BA.debugLine="If Starter.Logger Then Log(\"++++ Distancia a";
|
||||
if (mostCurrent._starter._logger /*boolean*/ ) {
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("778184459","++++ Distancia a anterior="+BA.NumberToString(_daa)+"|"+"Precision="+BA.NumberToString(_flp.GetLastKnownLocation().getAccuracy()),0);};
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("541877515","++++ Distancia a anterior="+BA.NumberToString(_daa)+"|"+"Precision="+BA.NumberToString(_flp.GetLastKnownLocation().getAccuracy()),0);};
|
||||
};
|
||||
//BA.debugLineNum = 283;BA.debugLine="UUGCoords = FLP.GetLastKnownLocation";
|
||||
_uugcoords = _flp.GetLastKnownLocation();
|
||||
@@ -424,18 +424,18 @@ _uugcoords = _flp.GetLastKnownLocation();
|
||||
}
|
||||
catch (Exception e14) {
|
||||
processBA.setLastException(e14); //BA.debugLineNum = 286;BA.debugLine="LogColor(\"FLP.GetLastKnownLocation.IsInitializ";
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("778184464","FLP.GetLastKnownLocation.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("541877520","FLP.GetLastKnownLocation.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
|
||||
};
|
||||
}else {
|
||||
//BA.debugLineNum = 289;BA.debugLine="Log(\"StartFLP\")";
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("778184467","StartFLP",0);
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("541877523","StartFLP",0);
|
||||
//BA.debugLineNum = 290;BA.debugLine="StartFLP";
|
||||
_startflp();
|
||||
};
|
||||
}
|
||||
catch (Exception e21) {
|
||||
processBA.setLastException(e21); //BA.debugLineNum = 293;BA.debugLine="LogColor(\"If FLP.IsInitialized --> \"&LastExcepti";
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("778184471","If FLP.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("541877527","If FLP.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
|
||||
};
|
||||
//BA.debugLineNum = 295;BA.debugLine="End Sub";
|
||||
return "";
|
||||
@@ -590,7 +590,7 @@ case 5:
|
||||
this.state = 1;
|
||||
;
|
||||
//BA.debugLineNum = 104;BA.debugLine="Log(\"sleeping\")";
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("777529092","sleeping",0);
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("541222148","sleeping",0);
|
||||
if (true) break;
|
||||
|
||||
case 4:
|
||||
@@ -636,7 +636,7 @@ if (true) return "";
|
||||
//BA.debugLineNum = 77;BA.debugLine="If Starter.rp.Check(Starter.rp.PERMISSION_ACCESS_";
|
||||
if (mostCurrent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .Check(mostCurrent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_ACCESS_FINE_LOCATION)==anywheresoftware.b4a.keywords.Common.False) {
|
||||
//BA.debugLineNum = 78;BA.debugLine="Log(\"No permission\")";
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("777398025","No permission",0);
|
||||
anywheresoftware.b4a.keywords.Common.LogImpl("541091081","No permission",0);
|
||||
//BA.debugLineNum = 79;BA.debugLine="Return";
|
||||
if (true) return "";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user