package reparto_mazapa.keymon.lat;

import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.pc.*;

public class subs_subs_0 {


public static RemoteObject  _agregacolumna(RemoteObject _ba,RemoteObject _tabla,RemoteObject _columna,RemoteObject _tipo) throws Exception{
try {
		Debug.PushSubsStack("agregaColumna (subs) ","subs",8,_ba,subs.mostCurrent,924);
if (RapidSub.canDelegate("agregacolumna")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","agregacolumna", _ba, _tabla, _columna, _tipo);}
RemoteObject _c = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
;
Debug.locals.put("tabla", _tabla);
Debug.locals.put("columna", _columna);
Debug.locals.put("tipo", _tipo);
 BA.debugLineNum = 924;BA.debugLine="Sub agregaColumna(tabla As String, columna As Stri";
Debug.ShouldStop(134217728);
 BA.debugLineNum = 925;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev";
Debug.ShouldStop(268435456);
try { BA.debugLineNum = 926;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery($\"S";
Debug.ShouldStop(536870912);
_c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs.mostCurrent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("SELECT COUNT(*) AS fCol FROM pragma_table_info('"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tabla))),RemoteObject.createImmutable("') WHERE name='"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_columna))),RemoteObject.createImmutable("'"))))));Debug.locals.put("c", _c);Debug.locals.put("c", _c);
 BA.debugLineNum = 927;BA.debugLine="c.Position = 0";
Debug.ShouldStop(1073741824);
_c.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 928;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("=",_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("fCol"))),BA.NumberToString(0))) { 
 BA.debugLineNum = 929;BA.debugLine="Starter.skmt.ExecNonQuery($\"ALTER TABLE ${tabla";
Debug.ShouldStop(1);
subs.mostCurrent._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("ALTER TABLE "),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tabla))),RemoteObject.createImmutable(" ADD COLUMN "),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_columna))),RemoteObject.createImmutable(" "),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tipo))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 930;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
Debug.ShouldStop(2);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","314286854",(RemoteObject.concat(RemoteObject.createImmutable("Columna \""),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_columna))),RemoteObject.createImmutable(" "),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tipo))),RemoteObject.createImmutable("\", agregada a \""),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tabla))),RemoteObject.createImmutable("\"."))),0);
 };
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e9) {
			BA.rdebugUtils.runVoidMethod("setLastException",BA.rdebugUtils.runMethod(false, "processBAFromBA", _ba), e9.toString()); BA.debugLineNum = 933;BA.debugLine="Try";
Debug.ShouldStop(16);
try { BA.debugLineNum = 934;BA.debugLine="Starter.skmt.ExecNonQuery($\"ALTER TABLE ${tabla";
Debug.ShouldStop(32);
subs.mostCurrent._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("ALTER TABLE "),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tabla))),RemoteObject.createImmutable(" ADD COLUMN "),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_columna))),RemoteObject.createImmutable(" "),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tipo))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 935;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
Debug.ShouldStop(64);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","314286859",(RemoteObject.concat(RemoteObject.createImmutable("Columna \""),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_columna))),RemoteObject.createImmutable(" "),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tipo))),RemoteObject.createImmutable("\", agregada a \""),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tabla))),RemoteObject.createImmutable("\".."))),0);
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e13) {
			BA.rdebugUtils.runVoidMethod("setLastException",BA.rdebugUtils.runMethod(false, "processBAFromBA", _ba), e13.toString()); BA.debugLineNum = 937;BA.debugLine="Log(LastException)";
Debug.ShouldStop(256);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","314286861",BA.ObjectToString(subs.mostCurrent.__c.runMethod(false,"LastException",_ba)),0);
 };
 };
 BA.debugLineNum = 940;BA.debugLine="End Sub";
Debug.ShouldStop(2048);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _borraarribade100errores(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("borraArribaDe100Errores (subs) ","subs",8,_ba,subs.mostCurrent,414);
if (RapidSub.canDelegate("borraarribade100errores")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","borraarribade100errores", _ba);}
;
 BA.debugLineNum = 414;BA.debugLine="Sub borraArribaDe100Errores 'ignore";
Debug.ShouldStop(536870912);
 BA.debugLineNum = 415;BA.debugLine="If Not(errorLog.IsInitialized) Then revisaBD";
Debug.ShouldStop(1073741824);
if (subs.mostCurrent.__c.runMethod(true,"Not",(Object)(subs._errorlog.runMethod(true,"IsInitialized"))).<Boolean>get().booleanValue()) { 
_revisabd(_ba);};
 BA.debugLineNum = 416;BA.debugLine="LogColor(\"Recortamos la tabla de Errores, limite";
Debug.ShouldStop(-2147483648);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","312189698",BA.ObjectToString("Recortamos la tabla de Errores, limite de 100"),subs.mostCurrent.__c.getField(false,"Colors").getField(true,"Magenta"));
 BA.debugLineNum = 417;BA.debugLine="errorLog.ExecNonQuery(\"DELETE FROM errores WHERE";
Debug.ShouldStop(1);
subs._errorlog.runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM errores WHERE fecha NOT in (SELECT fecha FROM errores ORDER BY fecha desc LIMIT 99 )")));
 BA.debugLineNum = 418;BA.debugLine="errorLog.ExecNonQuery(\"vacuum;\")";
Debug.ShouldStop(2);
subs._errorlog.runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("vacuum;")));
 BA.debugLineNum = 420;BA.debugLine="End Sub";
Debug.ShouldStop(8);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _borraarribade600renglonesbitacora(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("borraArribaDe600RenglonesBitacora (subs) ","subs",8,_ba,subs.mostCurrent,423);
if (RapidSub.canDelegate("borraarribade600renglonesbitacora")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","borraarribade600renglonesbitacora", _ba);}
RemoteObject _c = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
;
 BA.debugLineNum = 423;BA.debugLine="Sub borraArribaDe600RenglonesBitacora 'ignore";
Debug.ShouldStop(64);
 BA.debugLineNum = 424;BA.debugLine="revisaBD";
Debug.ShouldStop(128);
_revisabd(_ba);
 BA.debugLineNum = 425;BA.debugLine="LogColor(\"Recortamos la tabla de la Bitacora, lim";
Debug.ShouldStop(256);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","312255234",BA.ObjectToString("Recortamos la tabla de la Bitacora, limite de 600"),subs.mostCurrent.__c.getField(false,"Colors").getField(true,"Magenta"));
 BA.debugLineNum = 426;BA.debugLine="Private c As Cursor";
Debug.ShouldStop(512);
_c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");Debug.locals.put("c", _c);
 BA.debugLineNum = 427;BA.debugLine="c = kmt.ExecQuery(\"select fecha from bitacora\")";
Debug.ShouldStop(1024);
_c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs._kmt.runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select fecha from bitacora"))));Debug.locals.put("c", _c);
 BA.debugLineNum = 428;BA.debugLine="c.Position = 0";
Debug.ShouldStop(2048);
_c.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 429;BA.debugLine="If c.RowCount > 650 Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean(">",_c.runMethod(true,"getRowCount"),BA.numberCast(double.class, 650))) { 
 BA.debugLineNum = 430;BA.debugLine="kmt.ExecNonQuery(\"DELETE FROM bitacora WHERE fec";
Debug.ShouldStop(8192);
subs._kmt.runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM bitacora WHERE fecha NOT in (SELECT fecha FROM bitacora ORDER BY fecha desc LIMIT 599 )")));
 BA.debugLineNum = 431;BA.debugLine="kmt.ExecNonQuery(\"vacuum;\")";
Debug.ShouldStop(16384);
subs._kmt.runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("vacuum;")));
 };
 BA.debugLineNum = 434;BA.debugLine="c.Close";
Debug.ShouldStop(131072);
_c.runVoidMethod ("Close");
 BA.debugLineNum = 435;BA.debugLine="End Sub";
Debug.ShouldStop(262144);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _borralogdb(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("borraLogDB (subs) ","subs",8,_ba,subs.mostCurrent,302);
if (RapidSub.canDelegate("borralogdb")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","borralogdb", _ba);}
;
 BA.debugLineNum = 302;BA.debugLine="Sub borraLogDB 'ignore";
Debug.ShouldStop(8192);
 BA.debugLineNum = 303;BA.debugLine="LogColor(\"Borramos BD de log\", Colors.Magenta)";
Debug.ShouldStop(16384);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","311862017",BA.ObjectToString("Borramos BD de log"),subs.mostCurrent.__c.getField(false,"Colors").getField(true,"Magenta"));
 BA.debugLineNum = 304;BA.debugLine="kmt.ExecNonQuery(\"delete from bitacora\")";
Debug.ShouldStop(32768);
subs._kmt.runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from bitacora")));
 BA.debugLineNum = 305;BA.debugLine="kmt.ExecNonQuery(\"vacuum;\")";
Debug.ShouldStop(65536);
subs._kmt.runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("vacuum;")));
 BA.debugLineNum = 306;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _borramosarchivogps(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("borramosArchivoGPS (subs) ","subs",8,_ba,subs.mostCurrent,186);
if (RapidSub.canDelegate("borramosarchivogps")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","borramosarchivogps", _ba);}
RemoteObject _out = RemoteObject.declareNull("anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper");
RemoteObject _s = RemoteObject.createImmutable("");
RemoteObject _t = null;
;
 BA.debugLineNum = 186;BA.debugLine="Sub borramosArchivoGPS 'ignore";
Debug.ShouldStop(33554432);
 BA.debugLineNum = 187;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.Di";
Debug.ShouldStop(67108864);
_out = RemoteObject.createNew ("anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper");
_out = subs.mostCurrent.__c.getField(false,"File").runMethod(false,"OpenOutput",(Object)(subs.mostCurrent.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(BA.ObjectToString("gps.txt")),(Object)(subs.mostCurrent.__c.getField(true,"False")));Debug.locals.put("out", _out);Debug.locals.put("out", _out);
 BA.debugLineNum = 188;BA.debugLine="Dim s As String = \"\"";
Debug.ShouldStop(134217728);
_s = BA.ObjectToString("");Debug.locals.put("s", _s);Debug.locals.put("s", _s);
 BA.debugLineNum = 189;BA.debugLine="Dim t() As Byte = s.GetBytes(\"UTF-8\")";
Debug.ShouldStop(268435456);
_t = _s.runMethod(false,"getBytes",(Object)(RemoteObject.createImmutable("UTF-8")));Debug.locals.put("t", _t);Debug.locals.put("t", _t);
 BA.debugLineNum = 190;BA.debugLine="out.WriteBytes(t, 0, t.Length)";
Debug.ShouldStop(536870912);
_out.runVoidMethod ("WriteBytes",(Object)(_t),(Object)(BA.numberCast(int.class, 0)),(Object)(_t.getField(true,"length")));
 BA.debugLineNum = 191;BA.debugLine="out.Close";
Debug.ShouldStop(1073741824);
_out.runVoidMethod ("Close");
 BA.debugLineNum = 192;BA.debugLine="End Sub";
Debug.ShouldStop(-2147483648);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _centraboton(RemoteObject _ba,RemoteObject _elemento,RemoteObject _anchoelementosuperior) throws Exception{
try {
		Debug.PushSubsStack("centraBoton (subs) ","subs",8,_ba,subs.mostCurrent,592);
if (RapidSub.canDelegate("centraboton")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","centraboton", _ba, _elemento, _anchoelementosuperior);}
;
Debug.locals.put("elemento", _elemento);
Debug.locals.put("anchoElementoSuperior", _anchoelementosuperior);
 BA.debugLineNum = 592;BA.debugLine="Sub centraBoton(elemento As Button, anchoElementoS";
Debug.ShouldStop(32768);
 BA.debugLineNum = 593;BA.debugLine="elemento.Left = Round(anchoElementoSuperior/2)-(e";
Debug.ShouldStop(65536);
_elemento.runMethod(true,"setLeft",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {subs.mostCurrent.__c.runMethod(true,"Round",(Object)(RemoteObject.solve(new RemoteObject[] {_anchoelementosuperior,RemoteObject.createImmutable(2)}, "/",0, 0))),(RemoteObject.solve(new RemoteObject[] {_elemento.runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0))}, "-",1, 0)));
 BA.debugLineNum = 594;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _centraetiqueta(RemoteObject _ba,RemoteObject _elemento,RemoteObject _anchoelementosuperior) throws Exception{
try {
		Debug.PushSubsStack("centraEtiqueta (subs) ","subs",8,_ba,subs.mostCurrent,587);
if (RapidSub.canDelegate("centraetiqueta")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","centraetiqueta", _ba, _elemento, _anchoelementosuperior);}
;
Debug.locals.put("elemento", _elemento);
Debug.locals.put("anchoElementoSuperior", _anchoelementosuperior);
 BA.debugLineNum = 587;BA.debugLine="Sub centraEtiqueta(elemento As Label, anchoElement";
Debug.ShouldStop(1024);
 BA.debugLineNum = 588;BA.debugLine="elemento.Left = Round(anchoElementoSuperior/2)-(e";
Debug.ShouldStop(2048);
_elemento.runMethod(true,"setLeft",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {subs.mostCurrent.__c.runMethod(true,"Round",(Object)(RemoteObject.solve(new RemoteObject[] {_anchoelementosuperior,RemoteObject.createImmutable(2)}, "/",0, 0))),(RemoteObject.solve(new RemoteObject[] {_elemento.runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0))}, "-",1, 0)));
 BA.debugLineNum = 589;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _centralistview(RemoteObject _ba,RemoteObject _elemento,RemoteObject _anchoelementosuperior) throws Exception{
try {
		Debug.PushSubsStack("centraListView (subs) ","subs",8,_ba,subs.mostCurrent,577);
if (RapidSub.canDelegate("centralistview")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","centralistview", _ba, _elemento, _anchoelementosuperior);}
;
Debug.locals.put("elemento", _elemento);
Debug.locals.put("anchoElementoSuperior", _anchoelementosuperior);
 BA.debugLineNum = 577;BA.debugLine="Sub centraListView(elemento As ListView, anchoElem";
Debug.ShouldStop(1);
 BA.debugLineNum = 578;BA.debugLine="elemento.Left = Round(anchoElementoSuperior/2)-(e";
Debug.ShouldStop(2);
_elemento.runMethod(true,"setLeft",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {subs.mostCurrent.__c.runMethod(true,"Round",(Object)(RemoteObject.solve(new RemoteObject[] {_anchoelementosuperior,RemoteObject.createImmutable(2)}, "/",0, 0))),(RemoteObject.solve(new RemoteObject[] {_elemento.runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0))}, "-",1, 0)));
 BA.debugLineNum = 579;BA.debugLine="End Sub";
Debug.ShouldStop(4);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _centrapanel(RemoteObject _ba,RemoteObject _elemento,RemoteObject _anchoelementosuperior) throws Exception{
try {
		Debug.PushSubsStack("centraPanel (subs) ","subs",8,_ba,subs.mostCurrent,582);
if (RapidSub.canDelegate("centrapanel")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","centrapanel", _ba, _elemento, _anchoelementosuperior);}
;
Debug.locals.put("elemento", _elemento);
Debug.locals.put("anchoElementoSuperior", _anchoelementosuperior);
 BA.debugLineNum = 582;BA.debugLine="Sub centraPanel(elemento As Panel, anchoElementoSu";
Debug.ShouldStop(32);
 BA.debugLineNum = 583;BA.debugLine="elemento.Left = Round(anchoElementoSuperior/2)-(e";
Debug.ShouldStop(64);
_elemento.runMethod(true,"setLeft",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {subs.mostCurrent.__c.runMethod(true,"Round",(Object)(RemoteObject.solve(new RemoteObject[] {_anchoelementosuperior,RemoteObject.createImmutable(2)}, "/",0, 0))),(RemoteObject.solve(new RemoteObject[] {_elemento.runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0))}, "-",1, 0)));
 BA.debugLineNum = 584;BA.debugLine="End Sub";
Debug.ShouldStop(128);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _compress(RemoteObject _ba,RemoteObject _str) throws Exception{
try {
		Debug.PushSubsStack("compress (subs) ","subs",8,_ba,subs.mostCurrent,39);
if (RapidSub.canDelegate("compress")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","compress", _ba, _str);}
RemoteObject _compressed = null;
RemoteObject _base64 = RemoteObject.createImmutable("");
;
Debug.locals.put("str", _str);
 BA.debugLineNum = 39;BA.debugLine="Sub compress(str As String) As String 'ignore";
Debug.ShouldStop(64);
 BA.debugLineNum = 41;BA.debugLine="Dim compressed() As Byte = GZip.compress(str)";
Debug.ShouldStop(256);
_compressed = subs._gzip.runMethod(false,"compress",(Object)(_str));Debug.locals.put("compressed", _compressed);Debug.locals.put("compressed", _compressed);
 BA.debugLineNum = 44;BA.debugLine="Dim base64 As String = su.EncodeBase64(compressed";
Debug.ShouldStop(2048);
_base64 = subs._su.runMethod(true,"EncodeBase64",(Object)(_compressed));Debug.locals.put("base64", _base64);Debug.locals.put("base64", _base64);
 BA.debugLineNum = 45;BA.debugLine="Log($\"Comprimido: ${base64.Length}\"$)";
Debug.ShouldStop(4096);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","310485766",(RemoteObject.concat(RemoteObject.createImmutable("Comprimido: "),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_base64.runMethod(true,"length")))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 47;BA.debugLine="Return base64";
Debug.ShouldStop(16384);
if (true) return _base64;
 BA.debugLineNum = 48;BA.debugLine="End Sub";
Debug.ShouldStop(32768);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _copiadb(RemoteObject _ba,RemoteObject _result) throws Exception{
try {
		Debug.PushSubsStack("copiaDB (subs) ","subs",8,_ba,subs.mostCurrent,511);
if (RapidSub.canDelegate("copiadb")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","copiadb", _ba, _result);}
RemoteObject _p = RemoteObject.createImmutable("");
RemoteObject _thedir = RemoteObject.createImmutable("");
;
Debug.locals.put("result", _result);
 BA.debugLineNum = 511;BA.debugLine="Sub copiaDB(result As Boolean) 'ignore";
Debug.ShouldStop(1073741824);
 BA.debugLineNum = 512;BA.debugLine="If result Then";
Debug.ShouldStop(-2147483648);
if (_result.<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 513;BA.debugLine="Dim p As String";
Debug.ShouldStop(1);
_p = RemoteObject.createImmutable("");Debug.locals.put("p", _p);
 BA.debugLineNum = 514;BA.debugLine="If File.ExternalWritable Then";
Debug.ShouldStop(2);
if (subs.mostCurrent.__c.getField(false,"File").runMethod(true,"getExternalWritable").<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 515;BA.debugLine="p = File.DirInternal";
Debug.ShouldStop(4);
_p = subs.mostCurrent.__c.getField(false,"File").runMethod(true,"getDirInternal");Debug.locals.put("p", _p);
 }else {
 BA.debugLineNum = 518;BA.debugLine="p = File.DirInternal";
Debug.ShouldStop(32);
_p = subs.mostCurrent.__c.getField(false,"File").runMethod(true,"getDirInternal");Debug.locals.put("p", _p);
 };
 BA.debugLineNum = 521;BA.debugLine="Dim theDir As String";
Debug.ShouldStop(256);
_thedir = RemoteObject.createImmutable("");Debug.locals.put("theDir", _thedir);
 BA.debugLineNum = 522;BA.debugLine="Try";
Debug.ShouldStop(512);
try { BA.debugLineNum = 523;BA.debugLine="File.MakeDir(File.DirInternal,\"kmts\")";
Debug.ShouldStop(1024);
subs.mostCurrent.__c.getField(false,"File").runVoidMethod ("MakeDir",(Object)(subs.mostCurrent.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(RemoteObject.createImmutable("kmts")));
 BA.debugLineNum = 524;BA.debugLine="theDir = \"/kmts\"";
Debug.ShouldStop(2048);
_thedir = BA.ObjectToString("/kmts");Debug.locals.put("theDir", _thedir);
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e13) {
			BA.rdebugUtils.runVoidMethod("setLastException",BA.rdebugUtils.runMethod(false, "processBAFromBA", _ba), e13.toString()); BA.debugLineNum = 526;BA.debugLine="theDir = \"\"";
Debug.ShouldStop(8192);
_thedir = BA.ObjectToString("");Debug.locals.put("theDir", _thedir);
 };
 BA.debugLineNum = 528;BA.debugLine="Try";
Debug.ShouldStop(32768);
try { BA.debugLineNum = 529;BA.debugLine="File.Copy(File.DirInternal,\"kmt.db\",File.DirInt";
Debug.ShouldStop(65536);
subs.mostCurrent.__c.getField(false,"File").runVoidMethod ("Copy",(Object)(subs.mostCurrent.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(BA.ObjectToString("kmt.db")),(Object)(RemoteObject.concat(subs.mostCurrent.__c.getField(false,"File").runMethod(true,"getDirInternal"),_thedir)),(Object)(RemoteObject.createImmutable("guna_rep_kmt.db")));
 BA.debugLineNum = 530;BA.debugLine="ToastMessageShow(\"BD copiada!\", False)";
Debug.ShouldStop(131072);
subs.mostCurrent.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("BD copiada!")),(Object)(subs.mostCurrent.__c.getField(true,"False")));
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e19) {
			BA.rdebugUtils.runVoidMethod("setLastException",BA.rdebugUtils.runMethod(false, "processBAFromBA", _ba), e19.toString()); BA.debugLineNum = 532;BA.debugLine="ToastMessageShow(\"No se pudo hacer la copia: \"&";
Debug.ShouldStop(524288);
subs.mostCurrent.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("No se pudo hacer la copia: "),subs.mostCurrent.__c.runMethod(false,"LastException",_ba)))),(Object)(subs.mostCurrent.__c.getField(true,"True")));
 };
 BA.debugLineNum = 534;BA.debugLine="Log(\"rootExternal=\"&p)";
Debug.ShouldStop(2097152);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","312582935",RemoteObject.concat(RemoteObject.createImmutable("rootExternal="),_p),0);
 BA.debugLineNum = 535;BA.debugLine="Log(\"File.DirInternal=\"&File.DirInternal)";
Debug.ShouldStop(4194304);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","312582936",RemoteObject.concat(RemoteObject.createImmutable("File.DirInternal="),subs.mostCurrent.__c.getField(false,"File").runMethod(true,"getDirInternal")),0);
 BA.debugLineNum = 536;BA.debugLine="Log(\"File.DirInternal=\"&File.DirInternal)";
Debug.ShouldStop(8388608);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","312582937",RemoteObject.concat(RemoteObject.createImmutable("File.DirInternal="),subs.mostCurrent.__c.getField(false,"File").runMethod(true,"getDirInternal")),0);
 }else {
 BA.debugLineNum = 538;BA.debugLine="ToastMessageShow(\"Sin permisos\", False)";
Debug.ShouldStop(33554432);
subs.mostCurrent.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Sin permisos")),(Object)(subs.mostCurrent.__c.getField(true,"False")));
 };
 BA.debugLineNum = 540;BA.debugLine="End Sub";
Debug.ShouldStop(134217728);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _dameerroresjson(RemoteObject _ba,RemoteObject _sql,RemoteObject _maxerrores,RemoteObject _comprimido) throws Exception{
try {
		Debug.PushSubsStack("dameErroresJSON (subs) ","subs",8,_ba,subs.mostCurrent,448);
if (RapidSub.canDelegate("dameerroresjson")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","dameerroresjson", _ba, _sql, _maxerrores, _comprimido);}
RemoteObject _j = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.JSONParser.JSONGenerator");
RemoteObject _lim = RemoteObject.createImmutable("");
RemoteObject _cur = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.ResultSetWrapper");
RemoteObject _l = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _i = RemoteObject.createImmutable(0);
RemoteObject _m = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _m2 = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
;
Debug.locals.put("SQL", _sql);
Debug.locals.put("maxErrores", _maxerrores);
Debug.locals.put("comprimido", _comprimido);
 BA.debugLineNum = 448;BA.debugLine="Sub dameErroresJSON(SQL As SQL, maxErrores As Int,";
Debug.ShouldStop(-2147483648);
 BA.debugLineNum = 449;BA.debugLine="Log(\"dameErroresJSON\")";
Debug.ShouldStop(1);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","312386305",RemoteObject.createImmutable("dameErroresJSON"),0);
 BA.debugLineNum = 450;BA.debugLine="Private j As JSONGenerator";
Debug.ShouldStop(2);
_j = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.JSONParser.JSONGenerator");Debug.locals.put("j", _j);
 BA.debugLineNum = 451;BA.debugLine="Private lim As String";
Debug.ShouldStop(4);
_lim = RemoteObject.createImmutable("");Debug.locals.put("lim", _lim);
 BA.debugLineNum = 452;BA.debugLine="Private cur As ResultSet";
Debug.ShouldStop(8);
_cur = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.ResultSetWrapper");Debug.locals.put("cur", _cur);
 BA.debugLineNum = 453;BA.debugLine="Private l As List";
Debug.ShouldStop(16);
_l = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");Debug.locals.put("l", _l);
 BA.debugLineNum = 454;BA.debugLine="Private i As Int = 0";
Debug.ShouldStop(32);
_i = BA.numberCast(int.class, 0);Debug.locals.put("i", _i);Debug.locals.put("i", _i);
 BA.debugLineNum = 455;BA.debugLine="l.Initialize";
Debug.ShouldStop(64);
_l.runVoidMethod ("Initialize");
 BA.debugLineNum = 456;BA.debugLine="Dim m, m2 As Map";
Debug.ShouldStop(128);
_m = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");Debug.locals.put("m", _m);
_m2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");Debug.locals.put("m2", _m2);
 BA.debugLineNum = 457;BA.debugLine="m2.Initialize";
Debug.ShouldStop(256);
_m2.runVoidMethod ("Initialize");
 BA.debugLineNum = 458;BA.debugLine="If maxErrores = 0 Then lim = \"\" Else lim = \"limit";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("=",_maxerrores,BA.numberCast(double.class, 0))) { 
_lim = BA.ObjectToString("");Debug.locals.put("lim", _lim);}
else {
_lim = RemoteObject.concat(RemoteObject.createImmutable("limit "),_maxerrores);Debug.locals.put("lim", _lim);};
 BA.debugLineNum = 459;BA.debugLine="cur = SQL.ExecQuery(\"select * from errores order";
Debug.ShouldStop(1024);
_cur = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.ResultSetWrapper"), _sql.runMethod(false,"ExecQuery",(Object)(RemoteObject.concat(RemoteObject.createImmutable("select * from errores order by fecha desc "),_lim))));Debug.locals.put("cur", _cur);
 BA.debugLineNum = 460;BA.debugLine="Do While cur.NextRow";
Debug.ShouldStop(2048);
while (_cur.runMethod(true,"NextRow").<Boolean>get().booleanValue()) {
 BA.debugLineNum = 461;BA.debugLine="m.Initialize";
Debug.ShouldStop(4096);
_m.runVoidMethod ("Initialize");
 BA.debugLineNum = 462;BA.debugLine="m.Put(\"fecha\", cur.GetString(\"fecha\"))";
Debug.ShouldStop(8192);
_m.runVoidMethod ("Put",(Object)(RemoteObject.createImmutable(("fecha"))),(Object)((_cur.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("fecha"))))));
 BA.debugLineNum = 463;BA.debugLine="m.Put(\"error\", cur.GetString(\"error\"))";
Debug.ShouldStop(16384);
_m.runVoidMethod ("Put",(Object)(RemoteObject.createImmutable(("error"))),(Object)((_cur.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("error"))))));
 BA.debugLineNum = 464;BA.debugLine="m2.Put(i,m)";
Debug.ShouldStop(32768);
_m2.runVoidMethod ("Put",(Object)((_i)),(Object)((_m.getObject())));
 BA.debugLineNum = 465;BA.debugLine="i = i + 1";
Debug.ShouldStop(65536);
_i = RemoteObject.solve(new RemoteObject[] {_i,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("i", _i);
 }
;
 BA.debugLineNum = 467;BA.debugLine="cur.Close";
Debug.ShouldStop(262144);
_cur.runVoidMethod ("Close");
 BA.debugLineNum = 468;BA.debugLine="j.Initialize(m2)";
Debug.ShouldStop(524288);
_j.runVoidMethod ("Initialize",(Object)(_m2));
 BA.debugLineNum = 469;BA.debugLine="Log(j.ToString)";
Debug.ShouldStop(1048576);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","312386325",_j.runMethod(true,"ToString"),0);
 BA.debugLineNum = 470;BA.debugLine="If comprimido Then";
Debug.ShouldStop(2097152);
if (_comprimido.<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 471;BA.debugLine="Return compress(j.ToString)";
Debug.ShouldStop(4194304);
if (true) return _compress(_ba,_j.runMethod(true,"ToString"));
 }else {
 BA.debugLineNum = 473;BA.debugLine="Return j.ToString";
Debug.ShouldStop(16777216);
if (true) return _j.runMethod(true,"ToString");
 };
 BA.debugLineNum = 475;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _dameruta(RemoteObject _ba,RemoteObject _inicioruta,RemoteObject _origenruta) throws Exception{
try {
		Debug.PushSubsStack("dameRuta (subs) ","subs",8,_ba,subs.mostCurrent,142);
if (RapidSub.canDelegate("dameruta")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","dameruta", _ba, _inicioruta, _origenruta);}
RemoteObject _fechainicio = RemoteObject.createImmutable("");
RemoteObject _c = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _ruta2 = RemoteObject.createImmutable("");
int _i = 0;
;
Debug.locals.put("inicioRuta", _inicioruta);
Debug.locals.put("origenRuta", _origenruta);
 BA.debugLineNum = 142;BA.debugLine="Sub dameRuta(inicioRuta As String, origenRuta As S";
Debug.ShouldStop(8192);
 BA.debugLineNum = 144;BA.debugLine="Dim fechaInicio As String";
Debug.ShouldStop(32768);
_fechainicio = RemoteObject.createImmutable("");Debug.locals.put("fechaInicio", _fechainicio);
 BA.debugLineNum = 145;BA.debugLine="Try 'incioRuta es numero";
Debug.ShouldStop(65536);
try { BA.debugLineNum = 146;BA.debugLine="inicioRuta = inicioRuta * 1";
Debug.ShouldStop(131072);
_inicioruta = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _inicioruta),RemoteObject.createImmutable(1)}, "*",0, 0));Debug.locals.put("inicioRuta", _inicioruta);
 BA.debugLineNum = 148;BA.debugLine="fechaInicio = fechaKMT(DateTime.Now - (DateTime.";
Debug.ShouldStop(524288);
_fechainicio = _fechakmt(_ba,BA.NumberToString(RemoteObject.solve(new RemoteObject[] {subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"getNow"),(RemoteObject.solve(new RemoteObject[] {subs.mostCurrent.__c.getField(false,"DateTime").getField(true,"TicksPerHour"),BA.numberCast(double.class, _inicioruta)}, "*",0, 0))}, "-",1, 0)));Debug.locals.put("fechaInicio", _fechainicio);
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e6) {
			BA.rdebugUtils.runVoidMethod("setLastException",BA.rdebugUtils.runMethod(false, "processBAFromBA", _ba), e6.toString()); BA.debugLineNum = 150;BA.debugLine="fechaInicio = fechaInicioHoy";
Debug.ShouldStop(2097152);
_fechainicio = _fechainiciohoy(_ba);Debug.locals.put("fechaInicio", _fechainicio);
 };
 BA.debugLineNum = 153;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"fechaInicio";
Debug.ShouldStop(16777216);
if (subs.mostCurrent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,_ba).getField(true,"_logger" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
subs.mostCurrent.__c.runVoidMethod ("LogImpl","311010059",RemoteObject.concat(RemoteObject.createImmutable("fechaInicio: "),_fechainicio,RemoteObject.createImmutable(" | rutaHrsAtras="),subs._rutahrsatras),0);};
 BA.debugLineNum = 154;BA.debugLine="Dim c As Cursor";
Debug.ShouldStop(33554432);
_c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");Debug.locals.put("c", _c);
 BA.debugLineNum = 155;BA.debugLine="If kmt.IsInitialized = False Then kmt.Initialize(";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("=",subs._kmt.runMethod(true,"IsInitialized"),subs.mostCurrent.__c.getField(true,"False"))) { 
subs._kmt.runVoidMethod ("Initialize",(Object)(subs.mostCurrent._starter._ruta /*RemoteObject*/ ),(Object)(BA.ObjectToString("kmt.db")),(Object)(subs.mostCurrent.__c.getField(true,"True")));};
 BA.debugLineNum = 156;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"select FECH";
Debug.ShouldStop(134217728);
if (subs.mostCurrent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,_ba).getField(true,"_logger" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
subs.mostCurrent.__c.runVoidMethod ("LogImpl","311010062",RemoteObject.concat(RemoteObject.createImmutable("select FECHA, LAT, LON from "),_origenruta,RemoteObject.createImmutable(" where FECHA > "),_fechainicio,RemoteObject.createImmutable(" order by FECHA desc limit "),subs._rutamaxpoints),0);};
 BA.debugLineNum = 157;BA.debugLine="c = kmt.ExecQuery(\"select FECHA, LAT, LON from \"&";
Debug.ShouldStop(268435456);
_c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs._kmt.runMethod(false,"ExecQuery",(Object)(RemoteObject.concat(RemoteObject.createImmutable("select FECHA, LAT, LON from "),_origenruta,RemoteObject.createImmutable(" where FECHA > "),_fechainicio,RemoteObject.createImmutable(" order by FECHA desc limit "),subs._rutamaxpoints))));Debug.locals.put("c", _c);
 BA.debugLineNum = 158;BA.debugLine="c.Position = 0";
Debug.ShouldStop(536870912);
_c.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 159;BA.debugLine="Dim ruta2 As String = \"\"";
Debug.ShouldStop(1073741824);
_ruta2 = BA.ObjectToString("");Debug.locals.put("ruta2", _ruta2);Debug.locals.put("ruta2", _ruta2);
 BA.debugLineNum = 160;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean(">",_c.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 161;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(1);
{
final int step16 = 1;
final int limit16 = RemoteObject.solve(new RemoteObject[] {_c.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step16 > 0 && _i <= limit16) || (step16 < 0 && _i >= limit16) ;_i = ((int)(0 + _i + step16))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 162;BA.debugLine="c.Position=i";
Debug.ShouldStop(2);
_c.runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 163;BA.debugLine="ruta2=ruta2&CRLF&c.GetString(\"LAT\")&\",\"&c.GetSt";
Debug.ShouldStop(4);
_ruta2 = RemoteObject.concat(_ruta2,subs.mostCurrent.__c.getField(true,"CRLF"),_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("LAT"))),RemoteObject.createImmutable(","),_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("LON"))),RemoteObject.createImmutable(","),_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("FECHA"))));Debug.locals.put("ruta2", _ruta2);
 BA.debugLineNum = 164;BA.debugLine="B4XPages.MainPage.fechaRuta = c.GetString(\"FECH";
Debug.ShouldStop(8);
subs.mostCurrent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,_ba).setField ("_fecharuta" /*RemoteObject*/ ,_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("FECHA"))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 167;BA.debugLine="c.Close";
Debug.ShouldStop(64);
_c.runVoidMethod ("Close");
 BA.debugLineNum = 168;BA.debugLine="Return compress(ruta2)";
Debug.ShouldStop(128);
if (true) return _compress(_ba,_ruta2);
 BA.debugLineNum = 169;BA.debugLine="End Sub";
Debug.ShouldStop(256);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _dameusuariodedb(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("dameUsuarioDeDB (subs) ","subs",8,_ba,subs.mostCurrent,556);
if (RapidSub.canDelegate("dameusuariodedb")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","dameusuariodedb", _ba);}
RemoteObject _c = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _u = RemoteObject.createImmutable("");
;
 BA.debugLineNum = 556;BA.debugLine="Sub dameUsuarioDeDB As String 'ignore";
Debug.ShouldStop(2048);
 BA.debugLineNum = 557;BA.debugLine="Private c As Cursor";
Debug.ShouldStop(4096);
_c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");Debug.locals.put("c", _c);
 BA.debugLineNum = 558;BA.debugLine="Private u As String = \"SinUsuario\"";
Debug.ShouldStop(8192);
_u = BA.ObjectToString("SinUsuario");Debug.locals.put("u", _u);Debug.locals.put("u", _u);
 BA.debugLineNum = 559;BA.debugLine="If Not(kmt.IsInitialized) Then revisaBD";
Debug.ShouldStop(16384);
if (subs.mostCurrent.__c.runMethod(true,"Not",(Object)(subs._kmt.runMethod(true,"IsInitialized"))).<Boolean>get().booleanValue()) { 
_revisabd(_ba);};
 BA.debugLineNum = 560;BA.debugLine="c=kmt.ExecQuery(\"select USUARIO from usuarioa\")";
Debug.ShouldStop(32768);
_c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs._kmt.runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select USUARIO from usuarioa"))));Debug.locals.put("c", _c);
 BA.debugLineNum = 561;BA.debugLine="c.Position=0";
Debug.ShouldStop(65536);
_c.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 562;BA.debugLine="If c.RowCount > 0 Then u = c.GetString(\"USUARIO\")";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean(">",_c.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
_u = _c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO")));Debug.locals.put("u", _u);};
 BA.debugLineNum = 563;BA.debugLine="c.Close";
Debug.ShouldStop(262144);
_c.runVoidMethod ("Close");
 BA.debugLineNum = 564;BA.debugLine="Return u";
Debug.ShouldStop(524288);
if (true) return _u;
 BA.debugLineNum = 565;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _decompress(RemoteObject _ba,RemoteObject _base64) throws Exception{
try {
		Debug.PushSubsStack("decompress (subs) ","subs",8,_ba,subs.mostCurrent,51);
if (RapidSub.canDelegate("decompress")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","decompress", _ba, _base64);}
RemoteObject _decompressedbytes = null;
RemoteObject _bc = RemoteObject.declareNull("anywheresoftware.b4a.agraham.byteconverter.ByteConverter");
RemoteObject _uncompressed = RemoteObject.createImmutable("");
;
Debug.locals.put("base64", _base64);
 BA.debugLineNum = 51;BA.debugLine="Sub decompress(base64 As String) As String 'ignore";
Debug.ShouldStop(262144);
 BA.debugLineNum = 52;BA.debugLine="Dim decompressedbytes() As Byte = su.DecodeBase64";
Debug.ShouldStop(524288);
_decompressedbytes = subs._su.runMethod(false,"DecodeBase64",(Object)(_base64));Debug.locals.put("decompressedbytes", _decompressedbytes);Debug.locals.put("decompressedbytes", _decompressedbytes);
 BA.debugLineNum = 54;BA.debugLine="Dim bc As ByteConverter";
Debug.ShouldStop(2097152);
_bc = RemoteObject.createNew ("anywheresoftware.b4a.agraham.byteconverter.ByteConverter");Debug.locals.put("bc", _bc);
 BA.debugLineNum = 55;BA.debugLine="Dim uncompressed As String = bc.StringFromBytes(d";
Debug.ShouldStop(4194304);
_uncompressed = _bc.runMethod(true,"StringFromBytes",(Object)(_decompressedbytes),(Object)(RemoteObject.createImmutable("UTF8")));Debug.locals.put("uncompressed", _uncompressed);Debug.locals.put("uncompressed", _uncompressed);
 BA.debugLineNum = 56;BA.debugLine="Log($\"Descomprimido: ${uncompressed.Length}\"$)";
Debug.ShouldStop(8388608);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","310551301",(RemoteObject.concat(RemoteObject.createImmutable("Descomprimido: "),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_uncompressed.runMethod(true,"length")))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 58;BA.debugLine="Return uncompressed";
Debug.ShouldStop(33554432);
if (true) return _uncompressed;
 BA.debugLineNum = 59;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _deleteerrorlog_db(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("deleteErrorLog_DB (subs) ","subs",8,_ba,subs.mostCurrent,178);
if (RapidSub.canDelegate("deleteerrorlog_db")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","deleteerrorlog_db", _ba);}
;
 BA.debugLineNum = 178;BA.debugLine="Sub deleteErrorLog_DB 'ignore";
Debug.ShouldStop(131072);
 BA.debugLineNum = 179;BA.debugLine="If Not(errorLog.IsInitialized) Then revisaBD";
Debug.ShouldStop(262144);
if (subs.mostCurrent.__c.runMethod(true,"Not",(Object)(subs._errorlog.runMethod(true,"IsInitialized"))).<Boolean>get().booleanValue()) { 
_revisabd(_ba);};
 BA.debugLineNum = 180;BA.debugLine="errorLog.ExecNonQuery(\"delete from errores\")";
Debug.ShouldStop(524288);
subs._errorlog.runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from errores")));
 BA.debugLineNum = 181;BA.debugLine="errorLog.ExecNonQuery(\"vacuum;\")";
Debug.ShouldStop(1048576);
subs._errorlog.runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("vacuum;")));
 BA.debugLineNum = 182;BA.debugLine="ToastMessageShow(\"Borrada\", False)";
Debug.ShouldStop(2097152);
subs.mostCurrent.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Borrada")),(Object)(subs.mostCurrent.__c.getField(true,"False")));
 BA.debugLineNum = 183;BA.debugLine="End Sub";
Debug.ShouldStop(4194304);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _deletegps_db(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("deleteGPS_DB (subs) ","subs",8,_ba,subs.mostCurrent,172);
if (RapidSub.canDelegate("deletegps_db")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","deletegps_db", _ba);}
;
 BA.debugLineNum = 172;BA.debugLine="Sub deleteGPS_DB 'ignore";
Debug.ShouldStop(2048);
 BA.debugLineNum = 173;BA.debugLine="kmt.ExecNonQuery(\"delete from RUTA_GPS\")";
Debug.ShouldStop(4096);
subs._kmt.runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from RUTA_GPS")));
 BA.debugLineNum = 174;BA.debugLine="kmt.ExecNonQuery(\"vacuum;\")";
Debug.ShouldStop(8192);
subs._kmt.runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("vacuum;")));
 BA.debugLineNum = 175;BA.debugLine="End Sub";
Debug.ShouldStop(16384);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _fechainiciohoy(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("fechaInicioHoy (subs) ","subs",8,_ba,subs.mostCurrent,261);
if (RapidSub.canDelegate("fechainiciohoy")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","fechainiciohoy", _ba);}
RemoteObject _origformat = RemoteObject.createImmutable("");
RemoteObject _h = RemoteObject.createImmutable("");
;
 BA.debugLineNum = 261;BA.debugLine="Sub fechaInicioHoy As String 'ignore";
Debug.ShouldStop(16);
 BA.debugLineNum = 262;BA.debugLine="Dim OrigFormat As String = DateTime.DateFormat";
Debug.ShouldStop(32);
_origformat = subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"getDateFormat");Debug.locals.put("OrigFormat", _origformat);Debug.locals.put("OrigFormat", _origformat);
 BA.debugLineNum = 263;BA.debugLine="DateTime.DateFormat=\"yyMMdd\"";
Debug.ShouldStop(64);
subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("yyMMdd"));
 BA.debugLineNum = 264;BA.debugLine="Private h As String = DateTime.Date(DateTime.Now";
Debug.ShouldStop(128);
_h = RemoteObject.concat(subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"getNow"))),RemoteObject.createImmutable("000000"));Debug.locals.put("h", _h);Debug.locals.put("h", _h);
 BA.debugLineNum = 265;BA.debugLine="DateTime.DateFormat=OrigFormat  'return to orig";
Debug.ShouldStop(256);
subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",_origformat);
 BA.debugLineNum = 266;BA.debugLine="Log(\"Hoy=\"&h)";
Debug.ShouldStop(512);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","311599877",RemoteObject.concat(RemoteObject.createImmutable("Hoy="),_h),0);
 BA.debugLineNum = 267;BA.debugLine="Return h";
Debug.ShouldStop(1024);
if (true) return _h;
 BA.debugLineNum = 268;BA.debugLine="End Sub";
Debug.ShouldStop(2048);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _fechakmt(RemoteObject _ba,RemoteObject _fecha) throws Exception{
try {
		Debug.PushSubsStack("fechaKMT (subs) ","subs",8,_ba,subs.mostCurrent,62);
if (RapidSub.canDelegate("fechakmt")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","fechakmt", _ba, _fecha);}
RemoteObject _origformat = RemoteObject.createImmutable("");
RemoteObject _nuevafecha = RemoteObject.createImmutable("");
;
Debug.locals.put("fecha", _fecha);
 BA.debugLineNum = 62;BA.debugLine="Sub fechaKMT(fecha As String) As String 'ignore";
Debug.ShouldStop(536870912);
 BA.debugLineNum = 64;BA.debugLine="Dim OrigFormat As String = DateTime.DateFormat  '";
Debug.ShouldStop(-2147483648);
_origformat = subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"getDateFormat");Debug.locals.put("OrigFormat", _origformat);Debug.locals.put("OrigFormat", _origformat);
 BA.debugLineNum = 65;BA.debugLine="DateTime.DateFormat=\"yyMMddHHmmss\"";
Debug.ShouldStop(1);
subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("yyMMddHHmmss"));
 BA.debugLineNum = 66;BA.debugLine="Dim nuevaFecha As String=DateTime.Date(fecha)";
Debug.ShouldStop(2);
_nuevafecha = subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(BA.numberCast(long.class, _fecha)));Debug.locals.put("nuevaFecha", _nuevafecha);Debug.locals.put("nuevaFecha", _nuevafecha);
 BA.debugLineNum = 67;BA.debugLine="DateTime.DateFormat=OrigFormat  'return to orig d";
Debug.ShouldStop(4);
subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",_origformat);
 BA.debugLineNum = 69;BA.debugLine="Return nuevaFecha";
Debug.ShouldStop(16);
if (true) return _nuevafecha;
 BA.debugLineNum = 70;BA.debugLine="End Sub";
Debug.ShouldStop(32);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _fechakmt2ticks(RemoteObject _ba,RemoteObject _fkmt) throws Exception{
try {
		Debug.PushSubsStack("fechaKMT2Ticks (subs) ","subs",8,_ba,subs.mostCurrent,478);
if (RapidSub.canDelegate("fechakmt2ticks")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","fechakmt2ticks", _ba, _fkmt);}
RemoteObject _partefecha = RemoteObject.createImmutable("");
RemoteObject _partehora = RemoteObject.createImmutable("");
RemoteObject _origformat = RemoteObject.createImmutable("");
RemoteObject _ticks = RemoteObject.createImmutable(0L);
;
Debug.locals.put("fKMT", _fkmt);
 BA.debugLineNum = 478;BA.debugLine="Sub fechaKMT2Ticks(fKMT As String) As Long 'ignore";
Debug.ShouldStop(536870912);
 BA.debugLineNum = 479;BA.debugLine="Try";
Debug.ShouldStop(1073741824);
try { BA.debugLineNum = 480;BA.debugLine="If fKMT.Length = 12 Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("=",_fkmt.runMethod(true,"length"),BA.numberCast(double.class, 12))) { 
 BA.debugLineNum = 481;BA.debugLine="Private parteFecha As String = fKMT.SubString2(";
Debug.ShouldStop(1);
_partefecha = _fkmt.runMethod(true,"substring",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 6)));Debug.locals.put("parteFecha", _partefecha);Debug.locals.put("parteFecha", _partefecha);
 BA.debugLineNum = 482;BA.debugLine="Private parteHora As String = fKMT.SubString(6)";
Debug.ShouldStop(2);
_partehora = _fkmt.runMethod(true,"substring",(Object)(BA.numberCast(int.class, 6)));Debug.locals.put("parteHora", _partehora);Debug.locals.put("parteHora", _partehora);
 BA.debugLineNum = 483;BA.debugLine="Private OrigFormat As String = DateTime.DateFor";
Debug.ShouldStop(4);
_origformat = subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"getDateFormat");Debug.locals.put("OrigFormat", _origformat);Debug.locals.put("OrigFormat", _origformat);
 BA.debugLineNum = 484;BA.debugLine="DateTime.DateFormat=\"yyMMdd\"";
Debug.ShouldStop(8);
subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("yyMMdd"));
 BA.debugLineNum = 485;BA.debugLine="DateTime.TimeFormat=\"HHmmss\"";
Debug.ShouldStop(16);
subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HHmmss"));
 BA.debugLineNum = 486;BA.debugLine="Private ticks As Long = DateTime.DateTimeParse(";
Debug.ShouldStop(32);
_ticks = subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"DateTimeParse",(Object)(_partefecha),(Object)(_partehora));Debug.locals.put("ticks", _ticks);Debug.locals.put("ticks", _ticks);
 BA.debugLineNum = 488;BA.debugLine="DateTime.DateFormat=OrigFormat  'return to orig";
Debug.ShouldStop(128);
subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",_origformat);
 BA.debugLineNum = 489;BA.debugLine="Return ticks";
Debug.ShouldStop(256);
Debug.CheckDeviceExceptions();if (true) return _ticks;
 }else {
 BA.debugLineNum = 491;BA.debugLine="Log(\"Formato de fecha incorrecto, debe de ser '";
Debug.ShouldStop(1024);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","312451853",RemoteObject.concat(RemoteObject.createImmutable("Formato de fecha incorrecto, debe de ser 'YYMMDDHHMMSS', no '"),_fkmt,RemoteObject.createImmutable("' largo="),_fkmt.runMethod(true,"length")),0);
 BA.debugLineNum = 492;BA.debugLine="Return 0";
Debug.ShouldStop(2048);
Debug.CheckDeviceExceptions();if (true) return BA.numberCast(long.class, 0);
 };
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e16) {
			BA.rdebugUtils.runVoidMethod("setLastException",BA.rdebugUtils.runMethod(false, "processBAFromBA", _ba), e16.toString()); BA.debugLineNum = 495;BA.debugLine="Log(LastException)";
Debug.ShouldStop(16384);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","312451857",BA.ObjectToString(subs.mostCurrent.__c.runMethod(false,"LastException",_ba)),0);
 BA.debugLineNum = 496;BA.debugLine="LogColor($\"Fecha dada: ${fKMT}, Parte Fecha: ${p";
Debug.ShouldStop(32768);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","312451858",(RemoteObject.concat(RemoteObject.createImmutable("Fecha dada: "),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_fkmt))),RemoteObject.createImmutable(", Parte Fecha: "),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_partefecha))),RemoteObject.createImmutable(", Parte Hora: "),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_partehora))),RemoteObject.createImmutable(""))),subs.mostCurrent.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 497;BA.debugLine="Return 0";
Debug.ShouldStop(65536);
if (true) return BA.numberCast(long.class, 0);
 };
 BA.debugLineNum = 499;BA.debugLine="End Sub";
Debug.ShouldStop(262144);
return RemoteObject.createImmutable(0L);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _getphnid(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("getPhnId (subs) ","subs",8,_ba,subs.mostCurrent,19);
if (RapidSub.canDelegate("getphnid")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","getphnid", _ba);}
RemoteObject _t = RemoteObject.createImmutable("");
RemoteObject _s = RemoteObject.createImmutable("");
;
 BA.debugLineNum = 19;BA.debugLine="Sub getPhnId As String 'ignore";
Debug.ShouldStop(262144);
 BA.debugLineNum = 21;BA.debugLine="devModel = phn.Model";
Debug.ShouldStop(1048576);
subs._devmodel = subs._phn.runMethod(true,"getModel");
 BA.debugLineNum = 22;BA.debugLine="If devModel.Length <= 3 Then 'Si phn.Model esta e";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("k",subs._devmodel.runMethod(true,"length"),BA.numberCast(double.class, 3))) { 
 BA.debugLineNum = 23;BA.debugLine="Dim t As String = phn.GetSettings(\"android_id\")";
Debug.ShouldStop(4194304);
_t = subs._phn.runMethod(true,"GetSettings",(Object)(RemoteObject.createImmutable("android_id")));Debug.locals.put("t", _t);Debug.locals.put("t", _t);
 BA.debugLineNum = 24;BA.debugLine="devModel = t";
Debug.ShouldStop(8388608);
subs._devmodel = _t;
 };
 BA.debugLineNum = 26;BA.debugLine="If devModel.Length >= 3 Then 'Si tenemos valor pa";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("g",subs._devmodel.runMethod(true,"length"),BA.numberCast(double.class, 3))) { 
 BA.debugLineNum = 27;BA.debugLine="File.WriteString(File.DirInternal, \"phnId.txt\",";
Debug.ShouldStop(67108864);
subs.mostCurrent.__c.getField(false,"File").runVoidMethod ("WriteString",(Object)(subs.mostCurrent.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(BA.ObjectToString("phnId.txt")),(Object)(subs._devmodel));
 }else 
{ BA.debugLineNum = 29;BA.debugLine="Else If devModel.Length < 3 Then ' Si no tenemos";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("<",subs._devmodel.runMethod(true,"length"),BA.numberCast(double.class, 3))) { 
 BA.debugLineNum = 30;BA.debugLine="Dim s As String = File.ReadString(File.DirIntern";
Debug.ShouldStop(536870912);
_s = subs.mostCurrent.__c.getField(false,"File").runMethod(true,"ReadString",(Object)(subs.mostCurrent.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(RemoteObject.createImmutable("phnId.txt")));Debug.locals.put("s", _s);Debug.locals.put("s", _s);
 BA.debugLineNum = 31;BA.debugLine="devModel = s";
Debug.ShouldStop(1073741824);
subs._devmodel = _s;
 }}
;
 BA.debugLineNum = 35;BA.debugLine="Return devModel";
Debug.ShouldStop(4);
if (true) return subs._devmodel;
 BA.debugLineNum = 36;BA.debugLine="End Sub";
Debug.ShouldStop(8);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _getssid(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("getSSID (subs) ","subs",8,_ba,subs.mostCurrent,209);
if (RapidSub.canDelegate("getssid")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","getssid", _ba);}
;
 BA.debugLineNum = 209;BA.debugLine="Sub getSSID  'ignore";
Debug.ShouldStop(65536);
 BA.debugLineNum = 214;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _guardainfoenarchivo(RemoteObject _ba,RemoteObject _coords) throws Exception{
try {
		Debug.PushSubsStack("guardaInfoEnArchivo (subs) ","subs",8,_ba,subs.mostCurrent,112);
if (RapidSub.canDelegate("guardainfoenarchivo")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","guardainfoenarchivo", _ba, _coords);}
RemoteObject _origformat = RemoteObject.createImmutable("");
RemoteObject _lastupdate = RemoteObject.createImmutable("");
RemoteObject _ubic = RemoteObject.createImmutable("");
RemoteObject _out = RemoteObject.declareNull("anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper");
RemoteObject _s = RemoteObject.createImmutable("");
RemoteObject _t = null;
;
Debug.locals.put("coords", _coords);
 BA.debugLineNum = 112;BA.debugLine="Sub guardaInfoEnArchivo(coords As String) 'ignore";
Debug.ShouldStop(32768);
 BA.debugLineNum = 114;BA.debugLine="Dim OrigFormat As String=DateTime.DateFormat  'sa";
Debug.ShouldStop(131072);
_origformat = subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"getDateFormat");Debug.locals.put("OrigFormat", _origformat);Debug.locals.put("OrigFormat", _origformat);
 BA.debugLineNum = 115;BA.debugLine="DateTime.DateFormat=\"MMM-dd HH:mm:ss\"";
Debug.ShouldStop(262144);
subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MMM-dd HH:mm:ss"));
 BA.debugLineNum = 116;BA.debugLine="Dim lastUpdate As String=DateTime.Date(DateTime.N";
Debug.ShouldStop(524288);
_lastupdate = subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"getNow")));Debug.locals.put("lastUpdate", _lastupdate);Debug.locals.put("lastUpdate", _lastupdate);
 BA.debugLineNum = 117;BA.debugLine="DateTime.DateFormat=OrigFormat  'return to orig d";
Debug.ShouldStop(1048576);
subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",_origformat);
 BA.debugLineNum = 119;BA.debugLine="Dim ubic As String = coords&\",\"&lastUpdate";
Debug.ShouldStop(4194304);
_ubic = RemoteObject.concat(_coords,RemoteObject.createImmutable(","),_lastupdate);Debug.locals.put("ubic", _ubic);Debug.locals.put("ubic", _ubic);
 BA.debugLineNum = 120;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.Di";
Debug.ShouldStop(8388608);
_out = RemoteObject.createNew ("anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper");
_out = subs.mostCurrent.__c.getField(false,"File").runMethod(false,"OpenOutput",(Object)(subs.mostCurrent.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(BA.ObjectToString("gps.txt")),(Object)(subs.mostCurrent.__c.getField(true,"True")));Debug.locals.put("out", _out);Debug.locals.put("out", _out);
 BA.debugLineNum = 121;BA.debugLine="Dim s As String = ubic & CRLF";
Debug.ShouldStop(16777216);
_s = RemoteObject.concat(_ubic,subs.mostCurrent.__c.getField(true,"CRLF"));Debug.locals.put("s", _s);Debug.locals.put("s", _s);
 BA.debugLineNum = 122;BA.debugLine="Dim t() As Byte = s.GetBytes(\"UTF-8\")";
Debug.ShouldStop(33554432);
_t = _s.runMethod(false,"getBytes",(Object)(RemoteObject.createImmutable("UTF-8")));Debug.locals.put("t", _t);Debug.locals.put("t", _t);
 BA.debugLineNum = 123;BA.debugLine="out.WriteBytes(t, 0, t.Length)";
Debug.ShouldStop(67108864);
_out.runVoidMethod ("WriteBytes",(Object)(_t),(Object)(BA.numberCast(int.class, 0)),(Object)(_t.getField(true,"length")));
 BA.debugLineNum = 124;BA.debugLine="out.Close";
Debug.ShouldStop(134217728);
_out.runVoidMethod ("Close");
 BA.debugLineNum = 125;BA.debugLine="End Sub";
Debug.ShouldStop(268435456);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _guardainfoenbd(RemoteObject _ba,RemoteObject _coords) throws Exception{
try {
		Debug.PushSubsStack("guardaInfoEnBD (subs) ","subs",8,_ba,subs.mostCurrent,128);
if (RapidSub.canDelegate("guardainfoenbd")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","guardainfoenbd", _ba, _coords);}
RemoteObject _latlon = null;
;
Debug.locals.put("coords", _coords);
 BA.debugLineNum = 128;BA.debugLine="Sub guardaInfoEnBD(coords As String) 'ignore";
Debug.ShouldStop(-2147483648);
 BA.debugLineNum = 129;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Guardamos u";
Debug.ShouldStop(1);
if (subs.mostCurrent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,_ba).getField(true,"_logger" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
subs.mostCurrent.__c.runVoidMethod ("LogImpl","310944513",RemoteObject.concat(RemoteObject.createImmutable("Guardamos ubicacion en BD - "),_coords),0);};
 BA.debugLineNum = 130;BA.debugLine="Try";
Debug.ShouldStop(2);
try { BA.debugLineNum = 131;BA.debugLine="Dim latlon() As String = Regex.Split(\"\\|\", coord";
Debug.ShouldStop(4);
_latlon = subs.mostCurrent.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\|")),(Object)(_coords));Debug.locals.put("latlon", _latlon);Debug.locals.put("latlon", _latlon);
 BA.debugLineNum = 132;BA.debugLine="If latlon.Length < 2 Then latlon = Regex.Split(\"";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("<",_latlon.getField(true,"length"),BA.numberCast(double.class, 2))) { 
_latlon = subs.mostCurrent.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(",")),(Object)(_coords));Debug.locals.put("latlon", _latlon);};
 BA.debugLineNum = 134;BA.debugLine="If Not(kmt.IsInitialized) Then revisaBD";
Debug.ShouldStop(32);
if (subs.mostCurrent.__c.runMethod(true,"Not",(Object)(subs._kmt.runMethod(true,"IsInitialized"))).<Boolean>get().booleanValue()) { 
_revisabd(_ba);};
 BA.debugLineNum = 135;BA.debugLine="kmt.ExecNonQuery2(\"INSERT INTO RUTA_GPS(fecha, l";
Debug.ShouldStop(64);
subs._kmt.runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO RUTA_GPS(fecha, lat, lon) VALUES (?,?,?)")),(Object)(subs.mostCurrent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(_latlon.getArrayElement(true,BA.numberCast(int.class, 2))),(_latlon.getArrayElement(true,BA.numberCast(int.class, 0))),(_latlon.getArrayElement(true,BA.numberCast(int.class, 1)))})))));
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e8) {
			BA.rdebugUtils.runVoidMethod("setLastException",BA.rdebugUtils.runMethod(false, "processBAFromBA", _ba), e8.toString()); BA.debugLineNum = 137;BA.debugLine="Log(LastException)";
Debug.ShouldStop(256);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","310944521",BA.ObjectToString(subs.mostCurrent.__c.runMethod(false,"LastException",_ba)),0);
 };
 BA.debugLineNum = 139;BA.debugLine="End Sub";
Debug.ShouldStop(1024);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _hmskmt(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("hmsKMT (subs) ","subs",8,_ba,subs.mostCurrent,73);
if (RapidSub.canDelegate("hmskmt")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","hmskmt", _ba);}
RemoteObject _origformat = RemoteObject.createImmutable("");
RemoteObject _nuevahora = RemoteObject.createImmutable("");
;
 BA.debugLineNum = 73;BA.debugLine="Sub hmsKMT As String 'ignore";
Debug.ShouldStop(256);
 BA.debugLineNum = 75;BA.debugLine="Dim OrigFormat As String = DateTime.DateFormat  '";
Debug.ShouldStop(1024);
_origformat = subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"getDateFormat");Debug.locals.put("OrigFormat", _origformat);Debug.locals.put("OrigFormat", _origformat);
 BA.debugLineNum = 76;BA.debugLine="DateTime.DateFormat=\"HHmmss\"";
Debug.ShouldStop(2048);
subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("HHmmss"));
 BA.debugLineNum = 77;BA.debugLine="Private nuevaHora As String=DateTime.Date(DateTim";
Debug.ShouldStop(4096);
_nuevahora = subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"getNow")));Debug.locals.put("nuevaHora", _nuevahora);Debug.locals.put("nuevaHora", _nuevahora);
 BA.debugLineNum = 78;BA.debugLine="DateTime.DateFormat=OrigFormat  'return to orig d";
Debug.ShouldStop(8192);
subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",_origformat);
 BA.debugLineNum = 80;BA.debugLine="Return nuevaHora";
Debug.ShouldStop(32768);
if (true) return _nuevahora;
 BA.debugLineNum = 81;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _insertaenerrores(RemoteObject _ba,RemoteObject _error) throws Exception{
try {
		Debug.PushSubsStack("insertaEnErrores (subs) ","subs",8,_ba,subs.mostCurrent,550);
if (RapidSub.canDelegate("insertaenerrores")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","insertaenerrores", _ba, _error);}
;
Debug.locals.put("error", _error);
 BA.debugLineNum = 550;BA.debugLine="Sub insertaEnErrores(error As String)  'ignore";
Debug.ShouldStop(32);
 BA.debugLineNum = 551;BA.debugLine="If Not(errorLog.IsInitialized) Then revisaBD";
Debug.ShouldStop(64);
if (subs.mostCurrent.__c.runMethod(true,"Not",(Object)(subs._errorlog.runMethod(true,"IsInitialized"))).<Boolean>get().booleanValue()) { 
_revisabd(_ba);};
 BA.debugLineNum = 552;BA.debugLine="errorLog.ExecNonQuery2(\"INSERT INTO errores(fecha";
Debug.ShouldStop(128);
subs._errorlog.runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO errores(fecha, error) VALUES (?,?)")),(Object)(subs.mostCurrent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(_fechakmt(_ba,BA.NumberToString(subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"getNow")))),(_error)})))));
 BA.debugLineNum = 553;BA.debugLine="End Sub";
Debug.ShouldStop(256);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _insertarenglonespruebaenerrorlog(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("insertaRenglonesPruebaEnErrorLog (subs) ","subs",8,_ba,subs.mostCurrent,438);
if (RapidSub.canDelegate("insertarenglonespruebaenerrorlog")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","insertarenglonespruebaenerrorlog", _ba);}
int _x = 0;
;
 BA.debugLineNum = 438;BA.debugLine="Sub insertaRenglonesPruebaEnErrorLog 'ignore";
Debug.ShouldStop(2097152);
 BA.debugLineNum = 439;BA.debugLine="If Not(errorLog.IsInitialized) Then revisaBD";
Debug.ShouldStop(4194304);
if (subs.mostCurrent.__c.runMethod(true,"Not",(Object)(subs._errorlog.runMethod(true,"IsInitialized"))).<Boolean>get().booleanValue()) { 
_revisabd(_ba);};
 BA.debugLineNum = 440;BA.debugLine="Log(\"insertamos 50 renglones a errorLog\")";
Debug.ShouldStop(8388608);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","312320770",RemoteObject.createImmutable("insertamos 50 renglones a errorLog"),0);
 BA.debugLineNum = 441;BA.debugLine="For x = 1 To 50";
Debug.ShouldStop(16777216);
{
final int step3 = 1;
final int limit3 = 50;
_x = 1 ;
for (;(step3 > 0 && _x <= limit3) || (step3 < 0 && _x >= limit3) ;_x = ((int)(0 + _x + step3))  ) {
Debug.locals.put("x", _x);
 BA.debugLineNum = 442;BA.debugLine="errorLog.ExecNonQuery2(\"INSERT INTO errores(fech";
Debug.ShouldStop(33554432);
subs._errorlog.runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO errores(fecha, error) VALUES (?,?)")),(Object)(subs.mostCurrent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(_fechakmt(_ba,BA.NumberToString(subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"getNow")))),(RemoteObject.createImmutable("abc"))})))));
 BA.debugLineNum = 443;BA.debugLine="Log(x)";
Debug.ShouldStop(67108864);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","312320773",BA.NumberToString(_x),0);
 }
}Debug.locals.put("x", _x);
;
 BA.debugLineNum = 445;BA.debugLine="End Sub";
Debug.ShouldStop(268435456);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _installapk(RemoteObject _ba,RemoteObject _dir,RemoteObject _apk) throws Exception{
try {
		Debug.PushSubsStack("InstallAPK (subs) ","subs",8,_ba,subs.mostCurrent,501);
if (RapidSub.canDelegate("installapk")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","installapk", _ba, _dir, _apk);}
RemoteObject _i = RemoteObject.declareNull("anywheresoftware.b4a.objects.IntentWrapper");
;
Debug.locals.put("dir", _dir);
Debug.locals.put("apk", _apk);
 BA.debugLineNum = 501;BA.debugLine="Sub InstallAPK(dir As String, apk As String) 'igno";
Debug.ShouldStop(1048576);
 BA.debugLineNum = 502;BA.debugLine="If File.Exists(dir, apk) Then";
Debug.ShouldStop(2097152);
if (subs.mostCurrent.__c.getField(false,"File").runMethod(true,"Exists",(Object)(_dir),(Object)(_apk)).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 503;BA.debugLine="Dim i As Intent";
Debug.ShouldStop(4194304);
_i = RemoteObject.createNew ("anywheresoftware.b4a.objects.IntentWrapper");Debug.locals.put("i", _i);
 BA.debugLineNum = 504;BA.debugLine="i.Initialize(i.ACTION_VIEW, \"file://\" & File.Com";
Debug.ShouldStop(8388608);
_i.runVoidMethod ("Initialize",(Object)(_i.getField(true,"ACTION_VIEW")),(Object)(RemoteObject.concat(RemoteObject.createImmutable("file://"),subs.mostCurrent.__c.getField(false,"File").runMethod(true,"Combine",(Object)(_dir),(Object)(_apk)))));
 BA.debugLineNum = 505;BA.debugLine="i.SetType(\"application/vnd.android.package-archi";
Debug.ShouldStop(16777216);
_i.runVoidMethod ("SetType",(Object)(RemoteObject.createImmutable("application/vnd.android.package-archive")));
 BA.debugLineNum = 506;BA.debugLine="StartActivity(i)";
Debug.ShouldStop(33554432);
subs.mostCurrent.__c.runVoidMethod ("StartActivity",BA.rdebugUtils.runMethod(false, "processBAFromBA", _ba),(Object)((_i.getObject())));
 };
 BA.debugLineNum = 508;BA.debugLine="End Sub";
Debug.ShouldStop(134217728);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _json2map(RemoteObject _ba,RemoteObject _thejson) throws Exception{
try {
		Debug.PushSubsStack("JSON2Map (subs) ","subs",8,_ba,subs.mostCurrent,217);
if (RapidSub.canDelegate("json2map")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","json2map", _ba, _thejson);}
RemoteObject _json = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.JSONParser");
RemoteObject _m = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
;
Debug.locals.put("theJson", _thejson);
 BA.debugLineNum = 217;BA.debugLine="Sub JSON2Map(theJson As String) As Map 'ignore";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 219;BA.debugLine="Try";
Debug.ShouldStop(67108864);
try { BA.debugLineNum = 220;BA.debugLine="Private json As JSONParser";
Debug.ShouldStop(134217728);
_json = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.JSONParser");Debug.locals.put("json", _json);
 BA.debugLineNum = 221;BA.debugLine="json.Initialize(theJson)";
Debug.ShouldStop(268435456);
_json.runVoidMethod ("Initialize",(Object)(_thejson));
 BA.debugLineNum = 222;BA.debugLine="Return json.NextObject";
Debug.ShouldStop(536870912);
Debug.CheckDeviceExceptions();if (true) return _json.runMethod(false,"NextObject");
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e6) {
			BA.rdebugUtils.runVoidMethod("setLastException",BA.rdebugUtils.runMethod(false, "processBAFromBA", _ba), e6.toString()); BA.debugLineNum = 224;BA.debugLine="Log(LastException)";
Debug.ShouldStop(-2147483648);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","311403271",BA.ObjectToString(subs.mostCurrent.__c.runMethod(false,"LastException",_ba)),0);
 BA.debugLineNum = 225;BA.debugLine="log2DB(\"JSON2Map: \"&LastException)";
Debug.ShouldStop(1);
_log2db(_ba,RemoteObject.concat(RemoteObject.createImmutable("JSON2Map: "),subs.mostCurrent.__c.runMethod(false,"LastException",_ba)));
 BA.debugLineNum = 226;BA.debugLine="Private m As Map = CreateMap(\"title\":\"Error gene";
Debug.ShouldStop(2);
_m = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_m = subs.mostCurrent.__c.runMethod(false, "createMap", (Object)(new RemoteObject[] {RemoteObject.createImmutable(("title")),RemoteObject.createImmutable(("Error generating JSON")),RemoteObject.createImmutable(("t")),RemoteObject.createImmutable(("Error")),RemoteObject.createImmutable(("Message")),(subs.mostCurrent.__c.runMethod(false,"LastException",_ba).getObject()),RemoteObject.createImmutable(("text")),(subs.mostCurrent.__c.runMethod(false,"LastException",_ba).getObject())}));Debug.locals.put("m", _m);Debug.locals.put("m", _m);
 BA.debugLineNum = 227;BA.debugLine="Return m";
Debug.ShouldStop(4);
if (true) return _m;
 };
 BA.debugLineNum = 229;BA.debugLine="End Sub";
Debug.ShouldStop(16);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _log2db(RemoteObject _ba,RemoteObject _texto) throws Exception{
try {
		Debug.PushSubsStack("log2DB (subs) ","subs",8,_ba,subs.mostCurrent,271);
if (RapidSub.canDelegate("log2db")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","log2db", _ba, _texto);}
;
Debug.locals.put("texto", _texto);
 BA.debugLineNum = 271;BA.debugLine="Sub log2DB(texto As String) 'ignore";
Debug.ShouldStop(16384);
 BA.debugLineNum = 272;BA.debugLine="LogColor(fechaKMT(DateTime.Now)&\" - log2BD: '\"&te";
Debug.ShouldStop(32768);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","311665409",RemoteObject.concat(_fechakmt(_ba,BA.NumberToString(subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"getNow"))),RemoteObject.createImmutable(" - log2BD: '"),_texto,RemoteObject.createImmutable("'")),subs.mostCurrent.__c.getField(false,"Colors").getField(true,"Magenta"));
 BA.debugLineNum = 273;BA.debugLine="If kmt.IsInitialized Then kmt.ExecNonQuery2(\"INSE";
Debug.ShouldStop(65536);
if (subs._kmt.runMethod(true,"IsInitialized").<Boolean>get().booleanValue()) { 
subs._kmt.runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO bitacora(fecha, texto) VALUES (?,?)")),(Object)(subs.mostCurrent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(_fechakmt(_ba,BA.NumberToString(subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"getNow")))),(_texto)})))));};
 BA.debugLineNum = 274;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _mandamosloc(RemoteObject _ba,RemoteObject _coords) throws Exception{
try {
		Debug.PushSubsStack("mandamosLoc (subs) ","subs",8,_ba,subs.mostCurrent,242);
if (RapidSub.canDelegate("mandamosloc")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","mandamosloc", _ba, _coords);}
;
Debug.locals.put("coords", _coords);
 BA.debugLineNum = 242;BA.debugLine="Sub mandamosLoc(coords As String) 'ignore";
Debug.ShouldStop(131072);
 BA.debugLineNum = 258;BA.debugLine="End Sub";
Debug.ShouldStop(2);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _map2json(RemoteObject _ba,RemoteObject _m) throws Exception{
try {
		Debug.PushSubsStack("map2JSON (subs) ","subs",8,_ba,subs.mostCurrent,232);
if (RapidSub.canDelegate("map2json")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","map2json", _ba, _m);}
RemoteObject _jg = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.JSONParser.JSONGenerator");
RemoteObject _t = RemoteObject.createImmutable("");
;
Debug.locals.put("m", _m);
 BA.debugLineNum = 232;BA.debugLine="Sub map2JSON(m As Map) As String 'ignore";
Debug.ShouldStop(128);
 BA.debugLineNum = 235;BA.debugLine="Dim jg As JSONGenerator";
Debug.ShouldStop(1024);
_jg = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.JSONParser.JSONGenerator");Debug.locals.put("jg", _jg);
 BA.debugLineNum = 236;BA.debugLine="jg.Initialize(m)";
Debug.ShouldStop(2048);
_jg.runVoidMethod ("Initialize",(Object)(_m));
 BA.debugLineNum = 237;BA.debugLine="Dim t As String = jg.ToString";
Debug.ShouldStop(4096);
_t = _jg.runMethod(true,"ToString");Debug.locals.put("t", _t);Debug.locals.put("t", _t);
 BA.debugLineNum = 238;BA.debugLine="Return t";
Debug.ShouldStop(8192);
if (true) return _t;
 BA.debugLineNum = 239;BA.debugLine="End Sub";
Debug.ShouldStop(16384);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _masdexxmins(RemoteObject _ba,RemoteObject _hora,RemoteObject _mins) throws Exception{
try {
		Debug.PushSubsStack("masDeXXMins (subs) ","subs",8,_ba,subs.mostCurrent,277);
if (RapidSub.canDelegate("masdexxmins")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","masdexxmins", _ba, _hora, _mins);}
;
Debug.locals.put("hora", _hora);
Debug.locals.put("mins", _mins);
 BA.debugLineNum = 277;BA.debugLine="Sub masDeXXMins(hora As Int, mins As Int) As Boole";
Debug.ShouldStop(1048576);
 BA.debugLineNum = 278;BA.debugLine="If (hora + mins * DateTime.TicksPerMinute) < Date";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("<",(RemoteObject.solve(new RemoteObject[] {_hora,_mins,subs.mostCurrent.__c.getField(false,"DateTime").getField(true,"TicksPerMinute")}, "+*",1, 2)),subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"getNow"))) { 
 BA.debugLineNum = 279;BA.debugLine="Return True";
Debug.ShouldStop(4194304);
if (true) return subs.mostCurrent.__c.getField(true,"True");
 }else {
 BA.debugLineNum = 281;BA.debugLine="Return False";
Debug.ShouldStop(16777216);
if (true) return subs.mostCurrent.__c.getField(true,"False");
 };
 BA.debugLineNum = 283;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable(false);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _masdexxminskmt(RemoteObject _ba,RemoteObject _hora,RemoteObject _mins) throws Exception{
try {
		Debug.PushSubsStack("masDeXXMinsKMT (subs) ","subs",8,_ba,subs.mostCurrent,286);
if (RapidSub.canDelegate("masdexxminskmt")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","masdexxminskmt", _ba, _hora, _mins);}
;
Debug.locals.put("hora", _hora);
Debug.locals.put("mins", _mins);
 BA.debugLineNum = 286;BA.debugLine="Sub masDeXXMinsKMT(hora As String, mins As Int) As";
Debug.ShouldStop(536870912);
 BA.debugLineNum = 287;BA.debugLine="Try";
Debug.ShouldStop(1073741824);
try { BA.debugLineNum = 289;BA.debugLine="If fechaKMT2Ticks(hora) + mins * DateTime.TicksP";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("<",RemoteObject.solve(new RemoteObject[] {_fechakmt2ticks(_ba,_hora),_mins,subs.mostCurrent.__c.getField(false,"DateTime").getField(true,"TicksPerMinute")}, "+*",1, 2),subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"getNow"))) { 
 BA.debugLineNum = 291;BA.debugLine="Return True";
Debug.ShouldStop(4);
Debug.CheckDeviceExceptions();if (true) return subs.mostCurrent.__c.getField(true,"True");
 }else {
 BA.debugLineNum = 294;BA.debugLine="Return False";
Debug.ShouldStop(32);
Debug.CheckDeviceExceptions();if (true) return subs.mostCurrent.__c.getField(true,"False");
 };
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e8) {
			BA.rdebugUtils.runVoidMethod("setLastException",BA.rdebugUtils.runMethod(false, "processBAFromBA", _ba), e8.toString()); BA.debugLineNum = 297;BA.debugLine="Log(LastException)";
Debug.ShouldStop(256);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","311796491",BA.ObjectToString(subs.mostCurrent.__c.runMethod(false,"LastException",_ba)),0);
 };
 BA.debugLineNum = 299;BA.debugLine="End Sub";
Debug.ShouldStop(1024);
return RemoteObject.createImmutable(false);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _monitor(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("Monitor (subs) ","subs",8,_ba,subs.mostCurrent,309);
if (RapidSub.canDelegate("monitor")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","monitor", _ba);}
;
 BA.debugLineNum = 309;BA.debugLine="Sub Monitor 'ignore";
Debug.ShouldStop(1048576);
 BA.debugLineNum = 327;BA.debugLine="End Sub";
Debug.ShouldStop(64);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _notihigh(RemoteObject _ba,RemoteObject _title,RemoteObject _body,RemoteObject _activity) throws Exception{
try {
		Debug.PushSubsStack("notiHigh (subs) ","subs",8,_ba,subs.mostCurrent,84);
if (RapidSub.canDelegate("notihigh")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","notihigh", _ba, _title, _body, _activity);}
RemoteObject _notif = RemoteObject.declareNull("anywheresoftware.b4a.objects.NotificationWrapper");
;
Debug.locals.put("title", _title);
Debug.locals.put("body", _body);
Debug.locals.put("activity", _activity);
 BA.debugLineNum = 84;BA.debugLine="Sub notiHigh(title As String, body As String, acti";
Debug.ShouldStop(524288);
 BA.debugLineNum = 85;BA.debugLine="Private notif As Notification";
Debug.ShouldStop(1048576);
_notif = RemoteObject.createNew ("anywheresoftware.b4a.objects.NotificationWrapper");Debug.locals.put("notif", _notif);
 BA.debugLineNum = 86;BA.debugLine="notif.Initialize2(notif.IMPORTANCE_HIGH)";
Debug.ShouldStop(2097152);
_notif.runVoidMethod ("Initialize2",(Object)(_notif.getField(true,"IMPORTANCE_HIGH")));
 BA.debugLineNum = 87;BA.debugLine="notif.Icon = \"icon\"";
Debug.ShouldStop(4194304);
_notif.runVoidMethod ("setIcon",BA.ObjectToString("icon"));
 BA.debugLineNum = 88;BA.debugLine="notif.Vibrate = False";
Debug.ShouldStop(8388608);
_notif.runVoidMethod ("setVibrate",subs.mostCurrent.__c.getField(true,"False"));
 BA.debugLineNum = 89;BA.debugLine="notif.Sound = False";
Debug.ShouldStop(16777216);
_notif.runVoidMethod ("setSound",subs.mostCurrent.__c.getField(true,"False"));
 BA.debugLineNum = 90;BA.debugLine="notif.AutoCancel = True";
Debug.ShouldStop(33554432);
_notif.runVoidMethod ("setAutoCancel",subs.mostCurrent.__c.getField(true,"True"));
 BA.debugLineNum = 91;BA.debugLine="Log(\"notiHigh: \"&title)";
Debug.ShouldStop(67108864);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","310747911",RemoteObject.concat(RemoteObject.createImmutable("notiHigh: "),_title),0);
 BA.debugLineNum = 92;BA.debugLine="notif.SetInfo(title, body, activity)";
Debug.ShouldStop(134217728);
_notif.runVoidMethod ("SetInfoNew",BA.rdebugUtils.runMethod(false, "processBAFromBA", _ba),(Object)(BA.ObjectToCharSequence(_title)),(Object)(BA.ObjectToCharSequence(_body)),(Object)(_activity));
 BA.debugLineNum = 94;BA.debugLine="notif.Notify(777)";
Debug.ShouldStop(536870912);
_notif.runVoidMethod ("Notify",(Object)(BA.numberCast(int.class, 777)));
 BA.debugLineNum = 95;BA.debugLine="End Sub";
Debug.ShouldStop(1073741824);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _notilowreturn(RemoteObject _ba,RemoteObject _title,RemoteObject _body,RemoteObject _id) throws Exception{
try {
		Debug.PushSubsStack("notiLowReturn (subs) ","subs",8,_ba,subs.mostCurrent,98);
if (RapidSub.canDelegate("notilowreturn")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","notilowreturn", _ba, _title, _body, _id);}
RemoteObject _notification = RemoteObject.declareNull("anywheresoftware.b4a.objects.NotificationWrapper");
;
Debug.locals.put("title", _title);
Debug.locals.put("Body", _body);
Debug.locals.put("id", _id);
 BA.debugLineNum = 98;BA.debugLine="Sub notiLowReturn(title As String, Body As String,";
Debug.ShouldStop(2);
 BA.debugLineNum = 99;BA.debugLine="Private notification As Notification";
Debug.ShouldStop(4);
_notification = RemoteObject.createNew ("anywheresoftware.b4a.objects.NotificationWrapper");Debug.locals.put("notification", _notification);
 BA.debugLineNum = 100;BA.debugLine="notification.Initialize2(notification.IMPORTANCE_";
Debug.ShouldStop(8);
_notification.runVoidMethod ("Initialize2",(Object)(_notification.getField(true,"IMPORTANCE_LOW")));
 BA.debugLineNum = 101;BA.debugLine="Log(\"notiLowReturn: \"&title)";
Debug.ShouldStop(16);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","310813443",RemoteObject.concat(RemoteObject.createImmutable("notiLowReturn: "),_title),0);
 BA.debugLineNum = 102;BA.debugLine="notification.Icon = \"icon\"";
Debug.ShouldStop(32);
_notification.runVoidMethod ("setIcon",BA.ObjectToString("icon"));
 BA.debugLineNum = 103;BA.debugLine="notification.Sound = False";
Debug.ShouldStop(64);
_notification.runVoidMethod ("setSound",subs.mostCurrent.__c.getField(true,"False"));
 BA.debugLineNum = 104;BA.debugLine="notification.Vibrate = False";
Debug.ShouldStop(128);
_notification.runVoidMethod ("setVibrate",subs.mostCurrent.__c.getField(true,"False"));
 BA.debugLineNum = 105;BA.debugLine="notification.SetInfo(title, Body, Main)";
Debug.ShouldStop(256);
_notification.runVoidMethod ("SetInfoNew",BA.rdebugUtils.runMethod(false, "processBAFromBA", _ba),(Object)(BA.ObjectToCharSequence(_title)),(Object)(BA.ObjectToCharSequence(_body)),(Object)((subs.mostCurrent._main.getObject())));
 BA.debugLineNum = 106;BA.debugLine="notification.Notify(id)";
Debug.ShouldStop(512);
_notification.runVoidMethod ("Notify",(Object)(_id));
 BA.debugLineNum = 108;BA.debugLine="Return notification";
Debug.ShouldStop(2048);
if (true) return _notification;
 BA.debugLineNum = 109;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _panelvisible(RemoteObject _ba,RemoteObject _panel,RemoteObject _top,RemoteObject _left) throws Exception{
try {
		Debug.PushSubsStack("panelVisible (subs) ","subs",8,_ba,subs.mostCurrent,543);
if (RapidSub.canDelegate("panelvisible")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","panelvisible", _ba, _panel, _top, _left);}
;
Debug.locals.put("panel", _panel);
Debug.locals.put("top", _top);
Debug.locals.put("left", _left);
 BA.debugLineNum = 543;BA.debugLine="Sub panelVisible(panel As Panel, top As Int, left";
Debug.ShouldStop(1073741824);
 BA.debugLineNum = 544;BA.debugLine="panel.BringToFront";
Debug.ShouldStop(-2147483648);
_panel.runVoidMethod ("BringToFront");
 BA.debugLineNum = 545;BA.debugLine="panel.Visible = True";
Debug.ShouldStop(1);
_panel.runMethod(true,"setVisible",subs.mostCurrent.__c.getField(true,"True"));
 BA.debugLineNum = 546;BA.debugLine="panel.Top = top";
Debug.ShouldStop(2);
_panel.runMethod(true,"setTop",_top);
 BA.debugLineNum = 547;BA.debugLine="panel.Left = left";
Debug.ShouldStop(4);
_panel.runMethod(true,"setLeft",_left);
 BA.debugLineNum = 548;BA.debugLine="End Sub";
Debug.ShouldStop(8);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _process_globals() throws Exception{
 //BA.debugLineNum = 3;BA.debugLine="Sub Process_Globals";
 //BA.debugLineNum = 6;BA.debugLine="Public GZip As GZipStrings";
subs._gzip = RemoteObject.createNew ("de.donmanfred.GZipStringswrapper");
 //BA.debugLineNum = 7;BA.debugLine="Private su As StringUtils";
subs._su = RemoteObject.createNew ("anywheresoftware.b4a.objects.StringUtils");
 //BA.debugLineNum = 8;BA.debugLine="Dim phn As Phone";
subs._phn = RemoteObject.createNew ("anywheresoftware.b4a.phone.Phone");
 //BA.debugLineNum = 9;BA.debugLine="Dim devModel As String";
subs._devmodel = RemoteObject.createImmutable("");
 //BA.debugLineNum = 10;BA.debugLine="Dim kmt, errorLog As SQL 'Requiere la libreria \"S";
subs._kmt = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL");
subs._errorlog = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL");
 //BA.debugLineNum = 12;BA.debugLine="Dim ssid As String  'ignore";
subs._ssid = RemoteObject.createImmutable("");
 //BA.debugLineNum = 13;BA.debugLine="Dim rutaMaxPoints As Int = 3000";
subs._rutamaxpoints = BA.numberCast(int.class, 3000);
 //BA.debugLineNum = 14;BA.debugLine="Dim rutaHrsAtras As Int = 48";
subs._rutahrsatras = BA.numberCast(int.class, 48);
 //BA.debugLineNum = 16;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
}
public static RemoteObject  _prodrechazo(RemoteObject _ba,RemoteObject _clienteoriginal,RemoteObject _prodid) throws Exception{
try {
		Debug.PushSubsStack("prodRechazo (subs) ","subs",8,_ba,subs.mostCurrent,782);
if (RapidSub.canDelegate("prodrechazo")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","prodrechazo", _ba, _clienteoriginal, _prodid);}
RemoteObject _rr = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _chv = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _precio = RemoteObject.createImmutable("");
;
Debug.locals.put("clienteOriginal", _clienteoriginal);
Debug.locals.put("prodId", _prodid);
 BA.debugLineNum = 782;BA.debugLine="Sub prodRechazo(clienteOriginal As String, prodId";
Debug.ShouldStop(8192);
 BA.debugLineNum = 783;BA.debugLine="Log(\"RECHAZO DEVOLUCION\")";
Debug.ShouldStop(16384);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","313893633",RemoteObject.createImmutable("RECHAZO DEVOLUCION"),0);
 BA.debugLineNum = 784;BA.debugLine="Private rr As Cursor = Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(32768);
_rr = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_rr = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs.mostCurrent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select count(REP_CLIENTE) as hayRechazo from REPARTO where rep_prodid = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodid))),RemoteObject.createImmutable("' and REP_CLIENTE in (Select CUENTA from cuentaa)"))))));Debug.locals.put("rr", _rr);Debug.locals.put("rr", _rr);
 BA.debugLineNum = 785;BA.debugLine="rr.Position = 0";
Debug.ShouldStop(65536);
_rr.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 786;BA.debugLine="If rr.GetString(\"hayRechazo\") = 0 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",_rr.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("hayRechazo"))),BA.NumberToString(0))) { 
 BA.debugLineNum = 787;BA.debugLine="Log(\"INSERTAMOS EN REPARTO\")";
Debug.ShouldStop(262144);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","313893637",RemoteObject.createImmutable("INSERTAMOS EN REPARTO"),0);
 BA.debugLineNum = 789;BA.debugLine="Private chv As Cursor = Starter.skmt.ExecQuery($";
Debug.ShouldStop(1048576);
_chv = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_chv = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs.mostCurrent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select * from hist_ventas where hvd_cliente in (select cuenta from cuentaa) and hvd_proid = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodid))),RemoteObject.createImmutable("'"))))));Debug.locals.put("chv", _chv);Debug.locals.put("chv", _chv);
 BA.debugLineNum = 791;BA.debugLine="If chv.RowCount > 0 Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean(">",_chv.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 792;BA.debugLine="chv.Position = 0";
Debug.ShouldStop(8388608);
_chv.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 794;BA.debugLine="Private precio As String = traePrecio(prodId, t";
Debug.ShouldStop(33554432);
_precio = _traeprecio(_ba,_prodid,_traealmacen(_ba));Debug.locals.put("precio", _precio);Debug.locals.put("precio", _precio);
 BA.debugLineNum = 795;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into reparto";
Debug.ShouldStop(67108864);
subs.mostCurrent._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_CLI_ORIG)  VALUES (?,?,?,?,?,1,?,?,?) ")),(Object)(subs.mostCurrent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {8},new Object[] {_traecliente(_ba),_chv.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE"))),BA.NumberToString(1),_precio,_chv.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_FECHA"))),_prodid,_precio,_traecliente(_ba)})))));
 BA.debugLineNum = 796;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into reparto";
Debug.ShouldStop(134217728);
subs.mostCurrent._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_CLI_ORIG)  VALUES (?,?,?,?,?,0,?,?,?) ")),(Object)(subs.mostCurrent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {8},new Object[] {_traecliente(_ba),_chv.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE"))),BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _chv.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))),RemoteObject.createImmutable(1)}, "-",1, 0)),BA.NumberToString(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _chv.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))),RemoteObject.createImmutable(1)}, "-",1, 0)),BA.numberCast(double.class, _precio)}, "*",0, 0)),_chv.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_FECHA"))),_prodid,_precio,_traecliente(_ba)})))));
 BA.debugLineNum = 797;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS";
Debug.ShouldStop(268435456);
subs.mostCurrent._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update HIST_VENTAS set HVD_PARCIAL = 1, HVD_CANT = 0, HVD_COSTO_TOT = '0' where HVD_PROID = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodid))),RemoteObject.createImmutable("' and HVD_CLIENTE in (Select CUENTA from cuentaa)")))));
 };
 }else {
 BA.debugLineNum = 800;BA.debugLine="Log($\"ACTUALIZAMOS REPARTO\"$)";
Debug.ShouldStop(-2147483648);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","313893650",(RemoteObject.createImmutable("ACTUALIZAMOS REPARTO")),0);
 BA.debugLineNum = 801;BA.debugLine="Private precio As String = traePrecio(prodId, tr";
Debug.ShouldStop(1);
_precio = _traeprecio(_ba,_prodid,_traealmacen(_ba));Debug.locals.put("precio", _precio);Debug.locals.put("precio", _precio);
 BA.debugLineNum = 802;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update HIST_VENTAS s";
Debug.ShouldStop(2);
subs.mostCurrent._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("update HIST_VENTAS set HVD_PARCIAL = 1, HVD_CANT = 0, HVD_COSTO_TOT = '0' WHERE HVD_PROID = ? and HVD_CLIENTE in (Select CUENTA from cuentaa)")),(Object)(subs.mostCurrent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {_prodid})))));
 BA.debugLineNum = 803;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set R";
Debug.ShouldStop(4);
subs.mostCurrent._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update reparto set REP_CANT = REP_CANT + 1 where REP_CLIENTE = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_clienteoriginal))),RemoteObject.createImmutable("' and REP_CLI_ORIG = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_clienteoriginal))),RemoteObject.createImmutable("' and REP_RECHAZO = 1 and REP_PRODID = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodid))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 804;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set R";
Debug.ShouldStop(8);
subs.mostCurrent._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update reparto set REP_CANT = REP_CANT - 1 where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_clienteoriginal))),RemoteObject.createImmutable("' and REP_RECHAZO = 0 and REP_PRODID = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodid))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 807;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set R";
Debug.ShouldStop(64);
subs.mostCurrent._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update reparto set REP_COSTO_TOT = REP_CANT * "),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_precio))),RemoteObject.createImmutable(", REP_PRECIO = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_precio))),RemoteObject.createImmutable("' where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_clienteoriginal))),RemoteObject.createImmutable("'  and REP_PRODID = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodid))),RemoteObject.createImmutable("'")))));
 };
 BA.debugLineNum = 809;BA.debugLine="End Sub";
Debug.ShouldStop(256);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _prodventa(RemoteObject _ba,RemoteObject _clienteoriginal,RemoteObject _prodid) throws Exception{
try {
		Debug.PushSubsStack("prodVenta (subs) ","subs",8,_ba,subs.mostCurrent,751);
if (RapidSub.canDelegate("prodventa")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","prodventa", _ba, _clienteoriginal, _prodid);}
RemoteObject _precio = RemoteObject.createImmutable("");
;
Debug.locals.put("clienteOriginal", _clienteoriginal);
Debug.locals.put("prodId", _prodid);
 BA.debugLineNum = 751;BA.debugLine="Sub prodVenta(clienteOriginal As String, prodId As";
Debug.ShouldStop(16384);
 BA.debugLineNum = 753;BA.debugLine="Private precio As String = traePrecio(prodId, tra";
Debug.ShouldStop(65536);
_precio = _traeprecio(_ba,_prodid,_traealmacen(_ba));Debug.locals.put("precio", _precio);Debug.locals.put("precio", _precio);
 BA.debugLineNum = 754;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set RE";
Debug.ShouldStop(131072);
subs.mostCurrent._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update reparto set REP_CANT = REP_CANT - 1 where REP_CLIENTE = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_clienteoriginal))),RemoteObject.createImmutable("' and REP_CLI_ORIG = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_clienteoriginal))),RemoteObject.createImmutable("' and REP_RECHAZO = 1 and REP_PRODID = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodid))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 755;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set RE";
Debug.ShouldStop(262144);
subs.mostCurrent._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update reparto set REP_CANT = REP_CANT + 1 where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_clienteoriginal))),RemoteObject.createImmutable("' and REP_RECHAZO = 0 and REP_PRODID = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodid))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 756;BA.debugLine="Log($\"update reparto set REP_CANT = REP_CANT - 1";
Debug.ShouldStop(524288);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","313828101",(RemoteObject.concat(RemoteObject.createImmutable("update reparto set REP_CANT = REP_CANT - 1 where REP_CLIENTE = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_clienteoriginal))),RemoteObject.createImmutable("' and REP_CLI_ORIG = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_clienteoriginal))),RemoteObject.createImmutable("' and REP_RECHAZO = 1 and REP_PRODID = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodid))),RemoteObject.createImmutable("'"))),0);
 BA.debugLineNum = 757;BA.debugLine="Log($\"update reparto set REP_CANT = REP_CANT + 1";
Debug.ShouldStop(1048576);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","313828102",(RemoteObject.concat(RemoteObject.createImmutable("update reparto set REP_CANT = REP_CANT + 1 where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_clienteoriginal))),RemoteObject.createImmutable("' and REP_RECHAZO = 0 and REP_PRODID = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodid))),RemoteObject.createImmutable("'"))),0);
 BA.debugLineNum = 758;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set RE";
Debug.ShouldStop(2097152);
subs.mostCurrent._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update reparto set REP_COSTO_TOT = REP_CANT * "),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_precio))),RemoteObject.createImmutable(", REP_PRECIO = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_precio))),RemoteObject.createImmutable("' where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_clienteoriginal))),RemoteObject.createImmutable("' and REP_RECHAZO = 0 and REP_PRODID = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodid))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 779;BA.debugLine="End Sub";
Debug.ShouldStop(1024);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _revisabd(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("revisaBD (subs) ","subs",8,_ba,subs.mostCurrent,195);
if (RapidSub.canDelegate("revisabd")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","revisabd", _ba);}
;
 BA.debugLineNum = 195;BA.debugLine="Sub revisaBD 'ignore";
Debug.ShouldStop(4);
 BA.debugLineNum = 196;BA.debugLine="If Not(File.Exists(Starter.ruta, \"kmt.db\")) Then";
Debug.ShouldStop(8);
if (subs.mostCurrent.__c.runMethod(true,"Not",(Object)(subs.mostCurrent.__c.getField(false,"File").runMethod(true,"Exists",(Object)(subs.mostCurrent._starter._ruta /*RemoteObject*/ ),(Object)(RemoteObject.createImmutable("kmt.db"))))).<Boolean>get().booleanValue()) { 
subs.mostCurrent.__c.getField(false,"File").runVoidMethod ("Copy",(Object)(subs.mostCurrent.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(BA.ObjectToString("kmt.db")),(Object)(subs.mostCurrent._starter._ruta /*RemoteObject*/ ),(Object)(RemoteObject.createImmutable("kmt.db")));};
 BA.debugLineNum = 197;BA.debugLine="If Not(kmt.IsInitialized) Then kmt.Initialize(Sta";
Debug.ShouldStop(16);
if (subs.mostCurrent.__c.runMethod(true,"Not",(Object)(subs._kmt.runMethod(true,"IsInitialized"))).<Boolean>get().booleanValue()) { 
subs._kmt.runVoidMethod ("Initialize",(Object)(subs.mostCurrent._starter._ruta /*RemoteObject*/ ),(Object)(BA.ObjectToString("kmt.db")),(Object)(subs.mostCurrent.__c.getField(true,"True")));};
 BA.debugLineNum = 198;BA.debugLine="kmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS RUTA";
Debug.ShouldStop(32);
subs._kmt.runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS RUTA_GPS(FECHA INTEGER, LAT TEXT, LON TEXT)")));
 BA.debugLineNum = 200;BA.debugLine="kmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS bita";
Debug.ShouldStop(128);
subs._kmt.runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS bitacora(fecha INTEGER, texto TEXT)")));
 BA.debugLineNum = 202;BA.debugLine="kmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS REPA";
Debug.ShouldStop(512);
subs._kmt.runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS REPARTO_GEO (CLIENTE TEXT, USUARIO TEXT, FECHA_PUNTEO TEXT, LATITUD TEXT, LONGITUD TEXT, ALMACEN TEXT, RUTA_REPARTO TEXT, RUTA_PREV TEXT, FECHA_PREVENTA TEXT, MOTIVO TEXT, COMENTARIO TEXT, TIPO TEXT, ENVIO TEXT)")));
 BA.debugLineNum = 204;BA.debugLine="If Not(errorLog.IsInitialized) Then errorLog.Init";
Debug.ShouldStop(2048);
if (subs.mostCurrent.__c.runMethod(true,"Not",(Object)(subs._errorlog.runMethod(true,"IsInitialized"))).<Boolean>get().booleanValue()) { 
subs._errorlog.runVoidMethod ("Initialize",(Object)(subs.mostCurrent._starter._ruta /*RemoteObject*/ ),(Object)(BA.ObjectToString("errorLog.db")),(Object)(subs.mostCurrent.__c.getField(true,"True")));};
 BA.debugLineNum = 205;BA.debugLine="errorLog.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS";
Debug.ShouldStop(4096);
subs._errorlog.runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS errores(fecha INTEGER, error TEXT)")));
 BA.debugLineNum = 206;BA.debugLine="End Sub";
Debug.ShouldStop(8192);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _revisaflp(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("revisaFLP (subs) ","subs",8,_ba,subs.mostCurrent,345);
if (RapidSub.canDelegate("revisaflp")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","revisaflp", _ba);}
RemoteObject _todobienflp = RemoteObject.createImmutable(false);
;
 BA.debugLineNum = 345;BA.debugLine="Sub revisaFLP 'ignore";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 346;BA.debugLine="LogColor($\"**** **** Revisamos FLP - ${fechaKMT(D";
Debug.ShouldStop(33554432);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","312058625",(RemoteObject.concat(RemoteObject.createImmutable("**** **** Revisamos FLP - "),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_fechakmt(_ba,BA.NumberToString(subs.mostCurrent.__c.getField(false,"DateTime").runMethod(true,"getNow")))))),RemoteObject.createImmutable("**** ****"))),subs.mostCurrent.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 78)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 227))));
 BA.debugLineNum = 347;BA.debugLine="Private todoBienFLP As Boolean = True";
Debug.ShouldStop(67108864);
_todobienflp = subs.mostCurrent.__c.getField(true,"True");Debug.locals.put("todoBienFLP", _todobienflp);Debug.locals.put("todoBienFLP", _todobienflp);
 BA.debugLineNum = 348;BA.debugLine="If Not(Tracker.FLP.IsInitialized) Then";
Debug.ShouldStop(134217728);
if (subs.mostCurrent.__c.runMethod(true,"Not",(Object)(subs.mostCurrent._tracker._flp /*RemoteObject*/ .runMethod(true,"IsInitialized"))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 349;BA.debugLine="log2DB(\"revisaFLP: No esta inicializado ... 'Rei";
Debug.ShouldStop(268435456);
_log2db(_ba,RemoteObject.createImmutable("revisaFLP: No esta inicializado ... 'Reinicializando FLP'"));
 BA.debugLineNum = 350;BA.debugLine="Tracker.FLP.Initialize(\"flp\")";
Debug.ShouldStop(536870912);
subs.mostCurrent._tracker._flp /*RemoteObject*/ .runVoidMethod ("Initialize",BA.rdebugUtils.runMethod(false, "processBAFromBA", _ba),(Object)(RemoteObject.createImmutable("flp")));
 BA.debugLineNum = 351;BA.debugLine="todoBienFLP = False";
Debug.ShouldStop(1073741824);
_todobienflp = subs.mostCurrent.__c.getField(true,"False");Debug.locals.put("todoBienFLP", _todobienflp);
 };
 BA.debugLineNum = 353;BA.debugLine="If Tracker.FLP.IsInitialized Then";
Debug.ShouldStop(1);
if (subs.mostCurrent._tracker._flp /*RemoteObject*/ .runMethod(true,"IsInitialized").<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 354;BA.debugLine="If Not(Tracker.FLP.IsConnected) Then";
Debug.ShouldStop(2);
if (subs.mostCurrent.__c.runMethod(true,"Not",(Object)(subs.mostCurrent._tracker._flp /*RemoteObject*/ .runMethod(true,"IsConnected"))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 355;BA.debugLine="log2DB(\"revisaFLP: No esta conectado ... 'Recon";
Debug.ShouldStop(4);
_log2db(_ba,RemoteObject.createImmutable("revisaFLP: No esta conectado ... 'Reconectando FLP'"));
 BA.debugLineNum = 357;BA.debugLine="CallSubDelayed(Tracker,\"StartFLP\")";
Debug.ShouldStop(16);
subs.mostCurrent.__c.runVoidMethod ("CallSubDelayed",BA.rdebugUtils.runMethod(false, "processBAFromBA", _ba),(Object)((subs.mostCurrent._tracker.getObject())),(Object)(RemoteObject.createImmutable("StartFLP")));
 BA.debugLineNum = 358;BA.debugLine="todoBienFLP = False";
Debug.ShouldStop(32);
_todobienflp = subs.mostCurrent.__c.getField(true,"False");Debug.locals.put("todoBienFLP", _todobienflp);
 };
 BA.debugLineNum = 360;BA.debugLine="If	Tracker.FLP.IsConnected And _ 			Tracker.FLP.";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean(".",subs.mostCurrent._tracker._flp /*RemoteObject*/ .runMethod(true,"IsConnected")) && RemoteObject.solveBoolean(".",subs.mostCurrent._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"IsInitialized")) && RemoteObject.solveBoolean(">",subs.mostCurrent._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"DistanceTo",(Object)((subs.mostCurrent._tracker._uugcoords /*RemoteObject*/ .getObject()))),BA.numberCast(double.class, 500))) { 
 BA.debugLineNum = 363;BA.debugLine="log2DB(\"revisaFLP: 'No se esta actualizando, lo";
Debug.ShouldStop(1024);
_log2db(_ba,RemoteObject.createImmutable("revisaFLP: 'No se esta actualizando, lo reiniciamos ...'"));
 BA.debugLineNum = 364;BA.debugLine="StartService(Tracker)";
Debug.ShouldStop(2048);
subs.mostCurrent.__c.runVoidMethod ("StartService",BA.rdebugUtils.runMethod(false, "processBAFromBA", _ba),(Object)((subs.mostCurrent._tracker.getObject())));
 BA.debugLineNum = 365;BA.debugLine="todoBienFLP = False";
Debug.ShouldStop(4096);
_todobienflp = subs.mostCurrent.__c.getField(true,"False");Debug.locals.put("todoBienFLP", _todobienflp);
 };
 };
 BA.debugLineNum = 368;BA.debugLine="If todoBienFLP Then LogColor(\" +++ +++ Sin errore";
Debug.ShouldStop(32768);
if (_todobienflp.<Boolean>get().booleanValue()) { 
subs.mostCurrent.__c.runVoidMethod ("LogImpl","312058647",BA.ObjectToString(" +++ +++ Sin errores en FLP"),subs.mostCurrent.__c.getField(false,"Colors").getField(true,"Green"));};
 BA.debugLineNum = 370;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _revisapushservice(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("revisaPushService (subs) ","subs",8,_ba,subs.mostCurrent,373);
if (RapidSub.canDelegate("revisapushservice")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","revisapushservice", _ba);}
;
 BA.debugLineNum = 373;BA.debugLine="Sub revisaPushService 'ignore";
Debug.ShouldStop(1048576);
 BA.debugLineNum = 411;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _revisauug(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("revisaUUG (subs) ","subs",8,_ba,subs.mostCurrent,331);
if (RapidSub.canDelegate("revisauug")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","revisauug", _ba);}
RemoteObject _daa = RemoteObject.createImmutable(0);
;
 BA.debugLineNum = 331;BA.debugLine="Sub revisaUUG 'ignore";
Debug.ShouldStop(1024);
 BA.debugLineNum = 332;BA.debugLine="revisaFLP";
Debug.ShouldStop(2048);
_revisaflp(_ba);
 BA.debugLineNum = 333;BA.debugLine="If Tracker.FLP.GetLastKnownLocation.IsInitialized";
Debug.ShouldStop(4096);
if (subs.mostCurrent._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"IsInitialized").<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 334;BA.debugLine="Dim daa As Int = Tracker.UUGCoords.DistanceTo(Tr";
Debug.ShouldStop(8192);
_daa = BA.numberCast(int.class, subs.mostCurrent._tracker._uugcoords /*RemoteObject*/ .runMethod(true,"DistanceTo",(Object)((subs.mostCurrent._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").getObject()))));Debug.locals.put("daa", _daa);Debug.locals.put("daa", _daa);
 BA.debugLineNum = 335;BA.debugLine="If B4XPages.MainPage.Logger Then LogColor($\"****";
Debug.ShouldStop(16384);
if (subs.mostCurrent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,_ba).getField(true,"_logger" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
subs.mostCurrent.__c.runVoidMethod ("LogImpl","311993092",(RemoteObject.concat(RemoteObject.createImmutable("**** UUC \""),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_fechakmt(_ba,BA.NumberToString(subs.mostCurrent._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"getTime")))))),RemoteObject.createImmutable("|"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("0.2")),(Object)((subs.mostCurrent._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"getAccuracy")))),RemoteObject.createImmutable("|"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("0.8")),(Object)((subs.mostCurrent._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"getLatitude")))),RemoteObject.createImmutable("|"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("0.8")),(Object)((subs.mostCurrent._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"getLongitude")))),RemoteObject.createImmutable("|"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("0.2")),(Object)((subs.mostCurrent._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"getSpeed")))),RemoteObject.createImmutable("|"))),subs.mostCurrent.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 255)),(Object)(BA.numberCast(int.class, 112)),(Object)(BA.numberCast(int.class, 35))));};
 BA.debugLineNum = 336;BA.debugLine="If daa > 40 And Tracker.FLP.GetLastKnownLocation";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean(">",_daa,BA.numberCast(double.class, 40)) && RemoteObject.solveBoolean("<",subs.mostCurrent._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"getAccuracy"),BA.numberCast(double.class, 35))) { 
 BA.debugLineNum = 337;BA.debugLine="kmt.ExecNonQuery2(\"INSERT INTO RUTA_GPS(fecha,";
Debug.ShouldStop(65536);
subs._kmt.runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO RUTA_GPS(fecha, lat, lon) VALUES (?,?,?)")),(Object)(subs.mostCurrent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(_fechakmt(_ba,BA.NumberToString(subs.mostCurrent._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"getTime")))),(subs.mostCurrent._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"getLatitude")),(subs.mostCurrent._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"getLongitude"))})))));
 BA.debugLineNum = 338;BA.debugLine="If B4XPages.MainPage.Logger Then Log(\"++++ Dist";
Debug.ShouldStop(131072);
if (subs.mostCurrent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,_ba).getField(true,"_logger" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
subs.mostCurrent.__c.runVoidMethod ("LogImpl","311993095",RemoteObject.concat(RemoteObject.createImmutable("++++ Distancia a anterior="),_daa,RemoteObject.createImmutable("|"),RemoteObject.createImmutable("Precision="),subs.mostCurrent._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"getAccuracy")),0);};
 };
 BA.debugLineNum = 340;BA.debugLine="Tracker.UUGCoords = Tracker.FLP.GetLastKnownLoca";
Debug.ShouldStop(524288);
subs.mostCurrent._tracker._uugcoords /*RemoteObject*/  = subs.mostCurrent._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation");
 };
 BA.debugLineNum = 342;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _setdivider(RemoteObject _ba,RemoteObject _lv,RemoteObject _color,RemoteObject _height) throws Exception{
try {
		Debug.PushSubsStack("SetDivider (subs) ","subs",8,_ba,subs.mostCurrent,567);
if (RapidSub.canDelegate("setdivider")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","setdivider", _ba, _lv, _color, _height);}
RemoteObject _r = RemoteObject.declareNull("anywheresoftware.b4a.agraham.reflection.Reflection");
RemoteObject _cd = RemoteObject.declareNull("anywheresoftware.b4a.objects.drawable.ColorDrawable");
;
Debug.locals.put("lv", _lv);
Debug.locals.put("Color", _color);
Debug.locals.put("Height", _height);
 BA.debugLineNum = 567;BA.debugLine="Sub SetDivider(lv As ListView, Color As Int, Heigh";
Debug.ShouldStop(4194304);
 BA.debugLineNum = 568;BA.debugLine="Dim r As Reflector";
Debug.ShouldStop(8388608);
_r = RemoteObject.createNew ("anywheresoftware.b4a.agraham.reflection.Reflection");Debug.locals.put("r", _r);
 BA.debugLineNum = 569;BA.debugLine="r.Target = lv";
Debug.ShouldStop(16777216);
_r.setField ("Target",(_lv.getObject()));
 BA.debugLineNum = 570;BA.debugLine="Dim CD As ColorDrawable";
Debug.ShouldStop(33554432);
_cd = RemoteObject.createNew ("anywheresoftware.b4a.objects.drawable.ColorDrawable");Debug.locals.put("CD", _cd);
 BA.debugLineNum = 571;BA.debugLine="CD.Initialize(Color, 0)";
Debug.ShouldStop(67108864);
_cd.runVoidMethod ("Initialize",(Object)(_color),(Object)(BA.numberCast(int.class, 0)));
 BA.debugLineNum = 572;BA.debugLine="r.RunMethod4(\"setDivider\", Array As Object(CD), A";
Debug.ShouldStop(134217728);
_r.runVoidMethod ("RunMethod4",(Object)(BA.ObjectToString("setDivider")),(Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(_cd.getObject())})),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("android.graphics.drawable.Drawable")})));
 BA.debugLineNum = 573;BA.debugLine="r.RunMethod2(\"setDividerHeight\", Height, \"java.la";
Debug.ShouldStop(268435456);
_r.runVoidMethod ("RunMethod2",(Object)(BA.ObjectToString("setDividerHeight")),(Object)(BA.NumberToString(_height)),(Object)(RemoteObject.createImmutable("java.lang.int")));
 BA.debugLineNum = 574;BA.debugLine="End Sub";
Debug.ShouldStop(536870912);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traealmacen(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("traeAlmacen (subs) ","subs",8,_ba,subs.mostCurrent,957);
if (RapidSub.canDelegate("traealmacen")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","traealmacen", _ba);}
RemoteObject _c = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _a = RemoteObject.createImmutable("");
;
 BA.debugLineNum = 957;BA.debugLine="Sub traeAlmacen As String 'ignore";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 958;BA.debugLine="Private c As Cursor";
Debug.ShouldStop(536870912);
_c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");Debug.locals.put("c", _c);
 BA.debugLineNum = 959;BA.debugLine="Private a As String";
Debug.ShouldStop(1073741824);
_a = RemoteObject.createImmutable("");Debug.locals.put("a", _a);
 BA.debugLineNum = 960;BA.debugLine="c = Starter.skmt.ExecQuery(\"select ID_ALMACEN fro";
Debug.ShouldStop(-2147483648);
_c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs.mostCurrent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select ID_ALMACEN from CAT_ALMACEN"))));Debug.locals.put("c", _c);
 BA.debugLineNum = 961;BA.debugLine="c.Position = 0";
Debug.ShouldStop(1);
_c.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 962;BA.debugLine="a = C.GetString(\"ID_ALMACEN\")";
Debug.ShouldStop(2);
_a = _c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("ID_ALMACEN")));Debug.locals.put("a", _a);
 BA.debugLineNum = 963;BA.debugLine="c.Close";
Debug.ShouldStop(4);
_c.runVoidMethod ("Close");
 BA.debugLineNum = 964;BA.debugLine="Return a";
Debug.ShouldStop(8);
if (true) return _a;
 BA.debugLineNum = 965;BA.debugLine="End Sub";
Debug.ShouldStop(16);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traecantidadrechazada(RemoteObject _ba,RemoteObject _cliente,RemoteObject _prodid) throws Exception{
try {
		Debug.PushSubsStack("traeCantidadRechazada (subs) ","subs",8,_ba,subs.mostCurrent,715);
if (RapidSub.canDelegate("traecantidadrechazada")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","traecantidadrechazada", _ba, _cliente, _prodid);}
RemoteObject _cant = RemoteObject.createImmutable(0);
RemoteObject _cr = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
;
Debug.locals.put("cliente", _cliente);
Debug.locals.put("prodId", _prodid);
 BA.debugLineNum = 715;BA.debugLine="Sub traeCantidadRechazada(cliente As String, prodI";
Debug.ShouldStop(1024);
 BA.debugLineNum = 716;BA.debugLine="Private cant As Int = 0";
Debug.ShouldStop(2048);
_cant = BA.numberCast(int.class, 0);Debug.locals.put("cant", _cant);Debug.locals.put("cant", _cant);
 BA.debugLineNum = 717;BA.debugLine="Private cr As Cursor = Starter.skmt.ExecQuery($\"S";
Debug.ShouldStop(4096);
_cr = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_cr = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs.mostCurrent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("Select rep_cliente, rep_prodid, REP_CANT, REP_RECHAZO from reparto where rep_cliente = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cliente))),RemoteObject.createImmutable("' and rep_prodid = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodid))),RemoteObject.createImmutable("' and REP_RECHAZO = 1"))))));Debug.locals.put("cr", _cr);Debug.locals.put("cr", _cr);
 BA.debugLineNum = 718;BA.debugLine="If cr.RowCount > 0 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean(">",_cr.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 719;BA.debugLine="cr.Position = 0";
Debug.ShouldStop(16384);
_cr.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 720;BA.debugLine="cant = cr.GetString(\"REP_CANT\")";
Debug.ShouldStop(32768);
_cant = BA.numberCast(int.class, _cr.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("REP_CANT"))));Debug.locals.put("cant", _cant);
 };
 BA.debugLineNum = 722;BA.debugLine="Log($\"${cliente}, ${prodId}, rowcont:${cr.RowCoun";
Debug.ShouldStop(131072);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","313631495",(RemoteObject.concat(RemoteObject.createImmutable(""),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cliente))),RemoteObject.createImmutable(", "),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodid))),RemoteObject.createImmutable(", rowcont:"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cr.runMethod(true,"getRowCount")))),RemoteObject.createImmutable(", cant: "),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cant))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 723;BA.debugLine="Return cant";
Debug.ShouldStop(262144);
if (true) return _cant;
 BA.debugLineNum = 724;BA.debugLine="End Sub";
Debug.ShouldStop(524288);
return RemoteObject.createImmutable(0);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traecantidadvendida(RemoteObject _ba,RemoteObject _cliente,RemoteObject _prodid) throws Exception{
try {
		Debug.PushSubsStack("traeCantidadVendida (subs) ","subs",8,_ba,subs.mostCurrent,727);
if (RapidSub.canDelegate("traecantidadvendida")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","traecantidadvendida", _ba, _cliente, _prodid);}
RemoteObject _cant = RemoteObject.createImmutable(0);
RemoteObject _cr = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
;
Debug.locals.put("cliente", _cliente);
Debug.locals.put("prodId", _prodid);
 BA.debugLineNum = 727;BA.debugLine="Sub traeCantidadVendida(cliente As String, prodId";
Debug.ShouldStop(4194304);
 BA.debugLineNum = 728;BA.debugLine="Private cant As Int = 0";
Debug.ShouldStop(8388608);
_cant = BA.numberCast(int.class, 0);Debug.locals.put("cant", _cant);Debug.locals.put("cant", _cant);
 BA.debugLineNum = 729;BA.debugLine="Private cr As Cursor = Starter.skmt.ExecQuery($\"S";
Debug.ShouldStop(16777216);
_cr = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_cr = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs.mostCurrent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("Select rep_cliente, rep_prodid, REP_CANT, REP_RECHAZO from reparto where rep_cli_orig = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cliente))),RemoteObject.createImmutable("' and rep_prodid = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodid))),RemoteObject.createImmutable("' and REP_RECHAZO = 0 and REP_CANT > 0"))))));Debug.locals.put("cr", _cr);Debug.locals.put("cr", _cr);
 BA.debugLineNum = 731;BA.debugLine="If cr.RowCount > 0 Then";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean(">",_cr.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 732;BA.debugLine="cr.Position = 0";
Debug.ShouldStop(134217728);
_cr.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 733;BA.debugLine="cant = cr.GetString(\"REP_CANT\")";
Debug.ShouldStop(268435456);
_cant = BA.numberCast(int.class, _cr.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("REP_CANT"))));Debug.locals.put("cant", _cant);
 };
 BA.debugLineNum = 735;BA.debugLine="Return cant";
Debug.ShouldStop(1073741824);
if (true) return _cant;
 BA.debugLineNum = 736;BA.debugLine="End Sub";
Debug.ShouldStop(-2147483648);
return RemoteObject.createImmutable(0);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traecantymonto2(RemoteObject _ba,RemoteObject _cliente) throws Exception{
try {
		Debug.PushSubsStack("traeCantYMonto2 (subs) ","subs",8,_ba,subs.mostCurrent,839);
if (RapidSub.canDelegate("traecantymonto2")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","traecantymonto2", _ba, _cliente);}
RemoteObject _cant = RemoteObject.createImmutable(0);
RemoteObject _monto = RemoteObject.createImmutable(0f);
RemoteObject _ccym = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
int _i = 0;
;
Debug.locals.put("cliente", _cliente);
 BA.debugLineNum = 839;BA.debugLine="Sub traeCantYMonto2(cliente As String) As Map";
Debug.ShouldStop(64);
 BA.debugLineNum = 841;BA.debugLine="Private cant As Int = 0";
Debug.ShouldStop(256);
_cant = BA.numberCast(int.class, 0);Debug.locals.put("cant", _cant);Debug.locals.put("cant", _cant);
 BA.debugLineNum = 842;BA.debugLine="Private monto As Float = 0";
Debug.ShouldStop(512);
_monto = BA.numberCast(float.class, 0);Debug.locals.put("monto", _monto);Debug.locals.put("monto", _monto);
 BA.debugLineNum = 843;BA.debugLine="Private ccym As Cursor = Starter.skmt.ExecQuery($";
Debug.ShouldStop(1024);
_ccym = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_ccym = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs.mostCurrent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("Select hvd_codpromo, hvd_proid, HVD_CANT, (Select CAT_GP_PRECIO from cat_gunaprod where cat_gp_id = hvd_proid) As precio from HIST_VENTAS where HVD_CLIENTE = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cliente))),RemoteObject.createImmutable("'"))))));Debug.locals.put("ccym", _ccym);Debug.locals.put("ccym", _ccym);
 BA.debugLineNum = 844;BA.debugLine="If ccym.RowCount > 0 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean(">",_ccym.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 845;BA.debugLine="For i=0 To ccym.RowCount -1";
Debug.ShouldStop(4096);
{
final int step5 = 1;
final int limit5 = RemoteObject.solve(new RemoteObject[] {_ccym.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step5 > 0 && _i <= limit5) || (step5 < 0 && _i >= limit5) ;_i = ((int)(0 + _i + step5))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 846;BA.debugLine="ccym.Position = i";
Debug.ShouldStop(8192);
_ccym.runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 847;BA.debugLine="If ccym.GetString(\"HVD_CODPROMO\") <> ccym.GetSt";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("!",_ccym.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO"))),_ccym.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))) && RemoteObject.solveBoolean("N",_ccym.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("precio"))))) { 
 BA.debugLineNum = 848;BA.debugLine="cant = cant + ccym.GetString(\"HVD_CANT\")";
Debug.ShouldStop(32768);
_cant = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_cant,BA.numberCast(double.class, _ccym.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT"))))}, "+",1, 0));Debug.locals.put("cant", _cant);
 BA.debugLineNum = 850;BA.debugLine="monto = monto + (ccym.GetString(\"HVD_CANT\") *";
Debug.ShouldStop(131072);
_monto = BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_monto,(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _ccym.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))),BA.numberCast(double.class, _traeprecio(_ba,_ccym.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID"))),_ccym.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO")))))}, "*",0, 0))}, "+",1, 0));Debug.locals.put("monto", _monto);
 };
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 856;BA.debugLine="ccym = Starter.skmt.ExecQuery($\"Select rep_prodid";
Debug.ShouldStop(8388608);
_ccym = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs.mostCurrent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("Select rep_prodid, iFNULL(REP_CANT, 0) AS REP_CANT, iFNULL((Select CAT_GP_PRECIO from cat_gunaprod where cat_gp_id = rep_prodid),0) As precio from REPARTO where REP_CLIENTE in (Select cuenta from cuentaa) And REP_RECHAZO = '0' and REP_CANT > 0")))));Debug.locals.put("ccym", _ccym);
 BA.debugLineNum = 857;BA.debugLine="If ccym.RowCount > 0 Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean(">",_ccym.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 858;BA.debugLine="For i=0 To ccym.RowCount -1";
Debug.ShouldStop(33554432);
{
final int step15 = 1;
final int limit15 = RemoteObject.solve(new RemoteObject[] {_ccym.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step15 > 0 && _i <= limit15) || (step15 < 0 && _i >= limit15) ;_i = ((int)(0 + _i + step15))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 859;BA.debugLine="ccym.Position = i";
Debug.ShouldStop(67108864);
_ccym.runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 860;BA.debugLine="If ccym.GetString(\"REP_CANT\") <> Null Then cant";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean("N",_ccym.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("REP_CANT"))))) { 
_cant = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_cant,BA.numberCast(double.class, _ccym.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("REP_CANT"))))}, "+",1, 0));Debug.locals.put("cant", _cant);};
 BA.debugLineNum = 861;BA.debugLine="monto = monto + (ccym.GetString(\"REP_CANT\") * c";
Debug.ShouldStop(268435456);
_monto = BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_monto,(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _ccym.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("REP_CANT")))),BA.numberCast(double.class, _ccym.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("precio"))))}, "*",0, 0))}, "+",1, 0));Debug.locals.put("monto", _monto);
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 863;BA.debugLine="Log($\"CANT=${cant}, MONTO=${monto}\"$)";
Debug.ShouldStop(1073741824);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","314024728",(RemoteObject.concat(RemoteObject.createImmutable("CANT="),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cant))),RemoteObject.createImmutable(", MONTO="),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_monto))),RemoteObject.createImmutable(""))),0);
 };
 BA.debugLineNum = 866;BA.debugLine="ccym.Close";
Debug.ShouldStop(2);
_ccym.runVoidMethod ("Close");
 BA.debugLineNum = 867;BA.debugLine="Return CreateMap(\"cantidad\":cant, \"monto\":monto)";
Debug.ShouldStop(4);
if (true) return subs.mostCurrent.__c.runMethod(false, "createMap", (Object)(new RemoteObject[] {RemoteObject.createImmutable(("cantidad")),(_cant),RemoteObject.createImmutable(("monto")),(_monto)}));
 BA.debugLineNum = 868;BA.debugLine="End Sub";
Debug.ShouldStop(8);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traecliente(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("traeCliente (subs) ","subs",8,_ba,subs.mostCurrent,695);
if (RapidSub.canDelegate("traecliente")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","traecliente", _ba);}
RemoteObject _cli = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _cl = RemoteObject.createImmutable("");
;
 BA.debugLineNum = 695;BA.debugLine="Sub traeCliente As String 'ignore";
Debug.ShouldStop(4194304);
 BA.debugLineNum = 696;BA.debugLine="Private cli As Cursor = Starter.skmt.ExecQuery(\"S";
Debug.ShouldStop(8388608);
_cli = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_cli = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs.mostCurrent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select CUENTA from cuentaa"))));Debug.locals.put("cli", _cli);Debug.locals.put("cli", _cli);
 BA.debugLineNum = 697;BA.debugLine="cli.Position = 0";
Debug.ShouldStop(16777216);
_cli.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 698;BA.debugLine="Private cl As String = cli.GetString(\"CUENTA\")";
Debug.ShouldStop(33554432);
_cl = _cli.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA")));Debug.locals.put("cl", _cl);Debug.locals.put("cl", _cl);
 BA.debugLineNum = 699;BA.debugLine="cli.Close";
Debug.ShouldStop(67108864);
_cli.runVoidMethod ("Close");
 BA.debugLineNum = 700;BA.debugLine="Return cl";
Debug.ShouldStop(134217728);
if (true) return _cl;
 BA.debugLineNum = 701;BA.debugLine="End Sub";
Debug.ShouldStop(268435456);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traeconversion(RemoteObject _ba,RemoteObject _id) throws Exception{
try {
		Debug.PushSubsStack("traeConversion (subs) ","subs",8,_ba,subs.mostCurrent,679);
if (RapidSub.canDelegate("traeconversion")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","traeconversion", _ba, _id);}
RemoteObject _pu = RemoteObject.createImmutable("");
RemoteObject _idc = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
;
Debug.locals.put("id", _id);
 BA.debugLineNum = 679;BA.debugLine="Sub traeConversion(id As String) As String";
Debug.ShouldStop(64);
 BA.debugLineNum = 680;BA.debugLine="Private pu As String = \"0\"";
Debug.ShouldStop(128);
_pu = BA.ObjectToString("0");Debug.locals.put("pu", _pu);Debug.locals.put("pu", _pu);
 BA.debugLineNum = 682;BA.debugLine="Private idc As Cursor = kmt.ExecQuery($\"select C";
Debug.ShouldStop(512);
_idc = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_idc = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs._kmt.runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_id))),RemoteObject.createImmutable("'"))))));Debug.locals.put("idc", _idc);Debug.locals.put("idc", _idc);
 BA.debugLineNum = 683;BA.debugLine="If idc.RowCount > 0 Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean(">",_idc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 684;BA.debugLine="idc.Position=0";
Debug.ShouldStop(2048);
_idc.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 685;BA.debugLine="If idc.RowCount > 0 And IsNumber(idc.GetString(";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean(">",_idc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean(".",subs.mostCurrent.__c.runMethod(true,"IsNumber",(Object)(_idc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONVERSION"))))))) { 
_pu = _idc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONVERSION")));Debug.locals.put("pu", _pu);};
 };
 BA.debugLineNum = 688;BA.debugLine="idc.Close";
Debug.ShouldStop(32768);
_idc.runVoidMethod ("Close");
 BA.debugLineNum = 690;BA.debugLine="Return pu";
Debug.ShouldStop(131072);
if (true) return _pu;
 BA.debugLineNum = 691;BA.debugLine="End Sub";
Debug.ShouldStop(262144);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traeentregados(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("traeEntregados (subs) ","subs",8,_ba,subs.mostCurrent,871);
if (RapidSub.canDelegate("traeentregados")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","traeentregados", _ba);}
RemoteObject _m = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _cant = RemoteObject.createImmutable(0);
RemoteObject _monto = RemoteObject.createImmutable("");
RemoteObject _rc = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
;
 BA.debugLineNum = 871;BA.debugLine="Sub traeEntregados As Map";
Debug.ShouldStop(64);
 BA.debugLineNum = 872;BA.debugLine="Private m As Map";
Debug.ShouldStop(128);
_m = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");Debug.locals.put("m", _m);
 BA.debugLineNum = 873;BA.debugLine="Private cant As Int = 0";
Debug.ShouldStop(256);
_cant = BA.numberCast(int.class, 0);Debug.locals.put("cant", _cant);Debug.locals.put("cant", _cant);
 BA.debugLineNum = 874;BA.debugLine="Private monto As String = 0";
Debug.ShouldStop(512);
_monto = BA.NumberToString(0);Debug.locals.put("monto", _monto);Debug.locals.put("monto", _monto);
 BA.debugLineNum = 875;BA.debugLine="Private rc As Cursor = Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(1024);
_rc = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_rc = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs.mostCurrent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("select sum(HVD_CANT) as CUANTOS, sum(HVD_COSTO_TOT) as CUANTO from HIST_VENTAS where HVD_ESTATUS = '1' and HVD_COSTO_TOT <> '0'")))));Debug.locals.put("rc", _rc);Debug.locals.put("rc", _rc);
 BA.debugLineNum = 876;BA.debugLine="If rc.RowCount > 0 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean(">",_rc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 877;BA.debugLine="rc.Position = 0";
Debug.ShouldStop(4096);
_rc.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 878;BA.debugLine="If rc.GetString(\"CUANTOS\") <> Null Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("N",_rc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS"))))) { 
 BA.debugLineNum = 879;BA.debugLine="cant = cant + rc.GetString(\"CUANTOS\")";
Debug.ShouldStop(16384);
_cant = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_cant,BA.numberCast(double.class, _rc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS"))))}, "+",1, 0));Debug.locals.put("cant", _cant);
 BA.debugLineNum = 880;BA.debugLine="monto = monto + rc.GetString(\"CUANTO\")";
Debug.ShouldStop(32768);
_monto = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _monto),BA.numberCast(double.class, _rc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTO"))))}, "+",1, 0));Debug.locals.put("monto", _monto);
 };
 };
 BA.debugLineNum = 884;BA.debugLine="Return CreateMap(\"cantidad\": cant, \"monto\": monto";
Debug.ShouldStop(524288);
if (true) return subs.mostCurrent.__c.runMethod(false, "createMap", (Object)(new RemoteObject[] {RemoteObject.createImmutable(("cantidad")),(_cant),RemoteObject.createImmutable(("monto")),(_monto)}));
 BA.debugLineNum = 885;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traefechaprev(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("traefECHAPREV (subs) ","subs",8,_ba,subs.mostCurrent,978);
if (RapidSub.canDelegate("traefechaprev")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","traefechaprev", _ba);}
RemoteObject _c = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _a = RemoteObject.createImmutable("");
RemoteObject _clienteasing = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _fecha = null;
RemoteObject _fecha2 = null;
RemoteObject _fecha3 = RemoteObject.createImmutable("");
RemoteObject _hora = null;
;
 BA.debugLineNum = 978;BA.debugLine="Sub traefECHAPREV As String 'ignore";
Debug.ShouldStop(131072);
 BA.debugLineNum = 979;BA.debugLine="Private c As Cursor";
Debug.ShouldStop(262144);
_c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");Debug.locals.put("c", _c);
 BA.debugLineNum = 980;BA.debugLine="Private a As String";
Debug.ShouldStop(524288);
_a = RemoteObject.createImmutable("");Debug.locals.put("a", _a);
 BA.debugLineNum = 981;BA.debugLine="Private clienteasing As Cursor = Starter.skmt.Exe";
Debug.ShouldStop(1048576);
_clienteasing = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_clienteasing = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs.mostCurrent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT CUENTA FROM CUENTAA"))));Debug.locals.put("clienteasing", _clienteasing);Debug.locals.put("clienteasing", _clienteasing);
 BA.debugLineNum = 982;BA.debugLine="clienteasing.Position = 0";
Debug.ShouldStop(2097152);
_clienteasing.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 983;BA.debugLine="If clienteasing.GetString(\"CUENTA\") <> \"63403\" Th";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("!",_clienteasing.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA"))),BA.ObjectToString("63403"))) { 
 BA.debugLineNum = 984;BA.debugLine="c = Starter.skmt.ExecQuery(\"select HVD_FECHA fro";
Debug.ShouldStop(8388608);
_c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs.mostCurrent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select HVD_FECHA from HIST_VENTAS where HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))));Debug.locals.put("c", _c);
 BA.debugLineNum = 985;BA.debugLine="c.Position = 0";
Debug.ShouldStop(16777216);
_c.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 986;BA.debugLine="Dim fecha() As String = Regex.Split(\" \", c.GetSt";
Debug.ShouldStop(33554432);
_fecha = subs.mostCurrent.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(" ")),(Object)(_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_FECHA")))));Debug.locals.put("fecha", _fecha);Debug.locals.put("fecha", _fecha);
 BA.debugLineNum = 987;BA.debugLine="Dim fecha2() As String = Regex.Split(\"-\", fecha(";
Debug.ShouldStop(67108864);
_fecha2 = subs.mostCurrent.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("-")),(Object)(_fecha.getArrayElement(true,BA.numberCast(int.class, 0))));Debug.locals.put("fecha2", _fecha2);Debug.locals.put("fecha2", _fecha2);
 BA.debugLineNum = 988;BA.debugLine="Dim fecha3 As String = fecha2(2)&\"/\"&fecha2(1)&\"";
Debug.ShouldStop(134217728);
_fecha3 = RemoteObject.concat(_fecha2.getArrayElement(true,BA.numberCast(int.class, 2)),RemoteObject.createImmutable("/"),_fecha2.getArrayElement(true,BA.numberCast(int.class, 1)),RemoteObject.createImmutable("/"),_fecha2.getArrayElement(true,BA.numberCast(int.class, 0)));Debug.locals.put("fecha3", _fecha3);Debug.locals.put("fecha3", _fecha3);
 BA.debugLineNum = 989;BA.debugLine="Log(fecha3)";
Debug.ShouldStop(268435456);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","314549003",_fecha3,0);
 BA.debugLineNum = 990;BA.debugLine="Dim hora() As String = Regex.Split(\"\\.\", fecha(1";
Debug.ShouldStop(536870912);
_hora = subs.mostCurrent.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\.")),(Object)(_fecha.getArrayElement(true,BA.numberCast(int.class, 1))));Debug.locals.put("hora", _hora);Debug.locals.put("hora", _hora);
 BA.debugLineNum = 991;BA.debugLine="a = fecha3 & \" \" & hora(0)";
Debug.ShouldStop(1073741824);
_a = RemoteObject.concat(_fecha3,RemoteObject.createImmutable(" "),_hora.getArrayElement(true,BA.numberCast(int.class, 0)));Debug.locals.put("a", _a);
 BA.debugLineNum = 992;BA.debugLine="c.Close";
Debug.ShouldStop(-2147483648);
_c.runVoidMethod ("Close");
 }else 
{ BA.debugLineNum = 993;BA.debugLine="Else If clienteasing.GetString(\"CUENTA\") = \"63403";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("=",_clienteasing.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA"))),BA.ObjectToString("63403"))) { 
 BA.debugLineNum = 994;BA.debugLine="c = Starter.skmt.ExecQuery(\"select HVD_FECHA fro";
Debug.ShouldStop(2);
_c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs.mostCurrent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select HVD_FECHA from HIST_VENTAS"))));Debug.locals.put("c", _c);
 BA.debugLineNum = 995;BA.debugLine="c.Position = 0";
Debug.ShouldStop(4);
_c.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 996;BA.debugLine="Dim fecha() As String = Regex.Split(\" \", c.GetSt";
Debug.ShouldStop(8);
_fecha = subs.mostCurrent.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(" ")),(Object)(_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_FECHA")))));Debug.locals.put("fecha", _fecha);Debug.locals.put("fecha", _fecha);
 BA.debugLineNum = 997;BA.debugLine="Dim fecha2() As String = Regex.Split(\"-\", fecha(";
Debug.ShouldStop(16);
_fecha2 = subs.mostCurrent.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("-")),(Object)(_fecha.getArrayElement(true,BA.numberCast(int.class, 0))));Debug.locals.put("fecha2", _fecha2);Debug.locals.put("fecha2", _fecha2);
 BA.debugLineNum = 998;BA.debugLine="Dim fecha3 As String = fecha2(2)&\"/\"&fecha2(1)&\"";
Debug.ShouldStop(32);
_fecha3 = RemoteObject.concat(_fecha2.getArrayElement(true,BA.numberCast(int.class, 2)),RemoteObject.createImmutable("/"),_fecha2.getArrayElement(true,BA.numberCast(int.class, 1)),RemoteObject.createImmutable("/"),_fecha2.getArrayElement(true,BA.numberCast(int.class, 0)));Debug.locals.put("fecha3", _fecha3);Debug.locals.put("fecha3", _fecha3);
 BA.debugLineNum = 999;BA.debugLine="Log(fecha3)";
Debug.ShouldStop(64);
subs.mostCurrent.__c.runVoidMethod ("LogImpl","314549013",_fecha3,0);
 BA.debugLineNum = 1000;BA.debugLine="Dim hora() As String = Regex.Split(\"\\.\", fecha(1";
Debug.ShouldStop(128);
_hora = subs.mostCurrent.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\.")),(Object)(_fecha.getArrayElement(true,BA.numberCast(int.class, 1))));Debug.locals.put("hora", _hora);Debug.locals.put("hora", _hora);
 BA.debugLineNum = 1001;BA.debugLine="a = fecha3 & \" \" & hora(0)";
Debug.ShouldStop(256);
_a = RemoteObject.concat(_fecha3,RemoteObject.createImmutable(" "),_hora.getArrayElement(true,BA.numberCast(int.class, 0)));Debug.locals.put("a", _a);
 BA.debugLineNum = 1002;BA.debugLine="c.Close";
Debug.ShouldStop(512);
_c.runVoidMethod ("Close");
 }}
;
 BA.debugLineNum = 1004;BA.debugLine="Return a";
Debug.ShouldStop(2048);
if (true) return _a;
 BA.debugLineNum = 1005;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traefechareparto(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("traeFechaReparto (subs) ","subs",8,_ba,subs.mostCurrent,703);
if (RapidSub.canDelegate("traefechareparto")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","traefechareparto", _ba);}
RemoteObject _fe = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _f = RemoteObject.createImmutable("");
;
 BA.debugLineNum = 703;BA.debugLine="Sub traeFechaReparto As String";
Debug.ShouldStop(1073741824);
 BA.debugLineNum = 704;BA.debugLine="Private fe As Cursor = Starter.skmt.ExecQuery(\"se";
Debug.ShouldStop(-2147483648);
_fe = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_fe = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs.mostCurrent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select HVD_FECHA from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa)"))));Debug.locals.put("fe", _fe);Debug.locals.put("fe", _fe);
 BA.debugLineNum = 705;BA.debugLine="Private f As String = \"-\"";
Debug.ShouldStop(1);
_f = BA.ObjectToString("-");Debug.locals.put("f", _f);Debug.locals.put("f", _f);
 BA.debugLineNum = 706;BA.debugLine="If fe.RowCount > 0 Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean(">",_fe.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 707;BA.debugLine="fe.Position = 0";
Debug.ShouldStop(4);
_fe.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 708;BA.debugLine="f = fe.GetString(\"HVD_FECHA\")";
Debug.ShouldStop(8);
_f = _fe.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_FECHA")));Debug.locals.put("f", _f);
 };
 BA.debugLineNum = 710;BA.debugLine="fe.Close";
Debug.ShouldStop(32);
_fe.runVoidMethod ("Close");
 BA.debugLineNum = 711;BA.debugLine="Return f";
Debug.ShouldStop(64);
if (true) return _f;
 BA.debugLineNum = 712;BA.debugLine="End Sub";
Debug.ShouldStop(128);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traemaxcantidad(RemoteObject _ba,RemoteObject _cliente,RemoteObject _prodid) throws Exception{
try {
		Debug.PushSubsStack("traeMaxCantidad (subs) ","subs",8,_ba,subs.mostCurrent,739);
if (RapidSub.canDelegate("traemaxcantidad")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","traemaxcantidad", _ba, _cliente, _prodid);}
RemoteObject _cant = RemoteObject.createImmutable(0);
RemoteObject _cr = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
;
Debug.locals.put("cliente", _cliente);
Debug.locals.put("prodId", _prodid);
 BA.debugLineNum = 739;BA.debugLine="Sub traeMaxCantidad(cliente As String, prodId As S";
Debug.ShouldStop(4);
 BA.debugLineNum = 740;BA.debugLine="Private cant As Int = 0";
Debug.ShouldStop(8);
_cant = BA.numberCast(int.class, 0);Debug.locals.put("cant", _cant);Debug.locals.put("cant", _cant);
 BA.debugLineNum = 741;BA.debugLine="Private cr As Cursor = Starter.skmt.ExecQuery($\"S";
Debug.ShouldStop(16);
_cr = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_cr = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs.mostCurrent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("Select hvd_cant from hist_ventas2 where hvd_cliente = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cliente))),RemoteObject.createImmutable("' and hvd_proid = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodid))),RemoteObject.createImmutable("'"))))));Debug.locals.put("cr", _cr);Debug.locals.put("cr", _cr);
 BA.debugLineNum = 743;BA.debugLine="If cr.RowCount > 0 Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean(">",_cr.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 744;BA.debugLine="cr.Position = 0";
Debug.ShouldStop(128);
_cr.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 745;BA.debugLine="cant = cr.GetString(\"HVD_CANT\")";
Debug.ShouldStop(256);
_cant = BA.numberCast(int.class, _cr.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT"))));Debug.locals.put("cant", _cant);
 };
 BA.debugLineNum = 747;BA.debugLine="Return cant";
Debug.ShouldStop(1024);
if (true) return _cant;
 BA.debugLineNum = 748;BA.debugLine="End Sub";
Debug.ShouldStop(2048);
return RemoteObject.createImmutable(0);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traemoscantymonto(RemoteObject _ba,RemoteObject _clv) throws Exception{
try {
		Debug.PushSubsStack("traemosCantYMonto (subs) ","subs",8,_ba,subs.mostCurrent,811);
if (RapidSub.canDelegate("traemoscantymonto")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","traemoscantymonto", _ba, _clv);}
RemoteObject _cant = RemoteObject.createImmutable(0);
RemoteObject _monto = RemoteObject.createImmutable(0f);
int _i = 0;
RemoteObject _p0 = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _p = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _cant1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _cant2 = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _estetag = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
;
Debug.locals.put("clv", _clv);
 BA.debugLineNum = 811;BA.debugLine="Sub traemosCantYMonto(clv As CustomListView) As Ma";
Debug.ShouldStop(1024);
 BA.debugLineNum = 813;BA.debugLine="Private cant As Int = 0";
Debug.ShouldStop(4096);
_cant = BA.numberCast(int.class, 0);Debug.locals.put("cant", _cant);Debug.locals.put("cant", _cant);
 BA.debugLineNum = 814;BA.debugLine="Private monto As Float = 0";
Debug.ShouldStop(8192);
_monto = BA.numberCast(float.class, 0);Debug.locals.put("monto", _monto);Debug.locals.put("monto", _monto);
 BA.debugLineNum = 815;BA.debugLine="For i = 0 To clv.GetSize - 1";
Debug.ShouldStop(16384);
{
final int step3 = 1;
final int limit3 = RemoteObject.solve(new RemoteObject[] {_clv.runMethod(true,"_getsize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step3 > 0 && _i <= limit3) || (step3 < 0 && _i >= limit3) ;_i = ((int)(0 + _i + step3))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 816;BA.debugLine="Private p0 As B4XView = clv.GetPanel(i)";
Debug.ShouldStop(32768);
_p0 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_p0 = _clv.runMethod(false,"_getpanel",(Object)(BA.numberCast(int.class, _i)));Debug.locals.put("p0", _p0);Debug.locals.put("p0", _p0);
 BA.debugLineNum = 817;BA.debugLine="Private p As B4XView = p0.GetView(0)";
Debug.ShouldStop(65536);
_p = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_p = _p0.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 0)));Debug.locals.put("p", _p);Debug.locals.put("p", _p);
 BA.debugLineNum = 818;BA.debugLine="Private cant1 As B4XView = p.GetView(2).GetView(";
Debug.ShouldStop(131072);
_cant1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_cant1 = _p.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 2))).runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 3)));Debug.locals.put("cant1", _cant1);Debug.locals.put("cant1", _cant1);
 BA.debugLineNum = 819;BA.debugLine="Private cant2 As B4XView = p.GetView(3).GetView(";
Debug.ShouldStop(262144);
_cant2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_cant2 = _p.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 3))).runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 3)));Debug.locals.put("cant2", _cant2);Debug.locals.put("cant2", _cant2);
 BA.debugLineNum = 821;BA.debugLine="If cant1.text <> \"\" Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("!",_cant1.runMethod(true,"getText"),BA.ObjectToString(""))) { 
 BA.debugLineNum = 822;BA.debugLine="If cant1.Text = \"\" Then cant1.Text = 0";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("=",_cant1.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_cant1.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 823;BA.debugLine="Private esteTag As List = Regex.Split(\"\\|\", can";
Debug.ShouldStop(4194304);
_estetag = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
_estetag = subs.mostCurrent.__c.runMethod(false, "ArrayToList", (Object)(subs.mostCurrent.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\|")),(Object)(BA.ObjectToString(_cant1.runMethod(false,"getTag"))))));Debug.locals.put("esteTag", _estetag);Debug.locals.put("esteTag", _estetag);
 BA.debugLineNum = 825;BA.debugLine="If esteTag.Get(2) <> esteTag.Get(3) Then cant =";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("!",_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))),_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 3))))) { 
_cant = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_cant,BA.numberCast(double.class, _cant1.runMethod(true,"getText"))}, "+",1, 0));Debug.locals.put("cant", _cant);};
 BA.debugLineNum = 826;BA.debugLine="monto = monto + (esteTag.Get(0) * cant1.Text)";
Debug.ShouldStop(33554432);
_monto = BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_monto,(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 0)))),BA.numberCast(double.class, _cant1.runMethod(true,"getText"))}, "*",0, 0))}, "+",1, 0));Debug.locals.put("monto", _monto);
 }else {
 BA.debugLineNum = 828;BA.debugLine="If cant2.Text = \"\" Then cant2.Text = 0";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean("=",_cant2.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_cant2.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 829;BA.debugLine="Private esteTag As List = Regex.Split(\"\\|\", can";
Debug.ShouldStop(268435456);
_estetag = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
_estetag = subs.mostCurrent.__c.runMethod(false, "ArrayToList", (Object)(subs.mostCurrent.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\|")),(Object)(BA.ObjectToString(_cant2.runMethod(false,"getTag"))))));Debug.locals.put("esteTag", _estetag);Debug.locals.put("esteTag", _estetag);
 BA.debugLineNum = 831;BA.debugLine="If esteTag.Get(2) <> esteTag.Get(3) Then cant =";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("!",_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))),_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 3))))) { 
_cant = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_cant,BA.numberCast(double.class, _cant2.runMethod(true,"getText"))}, "+",1, 0));Debug.locals.put("cant", _cant);};
 BA.debugLineNum = 832;BA.debugLine="monto = monto + (esteTag.Get(0) * cant2.Text)";
Debug.ShouldStop(-2147483648);
_monto = BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_monto,(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 0)))),BA.numberCast(double.class, _cant2.runMethod(true,"getText"))}, "*",0, 0))}, "+",1, 0));Debug.locals.put("monto", _monto);
 };
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 836;BA.debugLine="Return CreateMap(\"cantidad\":cant, \"monto\":monto)";
Debug.ShouldStop(8);
if (true) return subs.mostCurrent.__c.runMethod(false, "createMap", (Object)(new RemoteObject[] {RemoteObject.createImmutable(("cantidad")),(_cant),RemoteObject.createImmutable(("monto")),(_monto)}));
 BA.debugLineNum = 837;BA.debugLine="End Sub";
Debug.ShouldStop(16);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traenombre(RemoteObject _ba,RemoteObject _id) throws Exception{
try {
		Debug.PushSubsStack("traeNombre (subs) ","subs",8,_ba,subs.mostCurrent,597);
if (RapidSub.canDelegate("traenombre")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","traenombre", _ba, _id);}
RemoteObject _nombre = RemoteObject.createImmutable("");
RemoteObject _idc = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
;
Debug.locals.put("id", _id);
 BA.debugLineNum = 597;BA.debugLine="Sub traeNombre(id As String) As String";
Debug.ShouldStop(1048576);
 BA.debugLineNum = 598;BA.debugLine="Private nombre As String";
Debug.ShouldStop(2097152);
_nombre = RemoteObject.createImmutable("");Debug.locals.put("nombre", _nombre);
 BA.debugLineNum = 599;BA.debugLine="Private idc As Cursor = kmt.ExecQuery($\"select HV";
Debug.ShouldStop(4194304);
_idc = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_idc = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs._kmt.runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select HVD_PRONOMBRE from HIST_VENTAS where HVD_PROID = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_id))),RemoteObject.createImmutable("'"))))));Debug.locals.put("idc", _idc);Debug.locals.put("idc", _idc);
 BA.debugLineNum = 600;BA.debugLine="idc.Position=0";
Debug.ShouldStop(8388608);
_idc.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 601;BA.debugLine="If idc.RowCount > 0 Then nombre = idc.GetString(\"";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean(">",_idc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
_nombre = _idc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE")));Debug.locals.put("nombre", _nombre);};
 BA.debugLineNum = 602;BA.debugLine="idc.Close";
Debug.ShouldStop(33554432);
_idc.runVoidMethod ("Close");
 BA.debugLineNum = 604;BA.debugLine="Return nombre";
Debug.ShouldStop(134217728);
if (true) return _nombre;
 BA.debugLineNum = 605;BA.debugLine="End Sub";
Debug.ShouldStop(268435456);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traeprecio(RemoteObject _ba,RemoteObject _id,RemoteObject _quepromo) throws Exception{
try {
		Debug.PushSubsStack("traePrecio (subs) ","subs",8,_ba,subs.mostCurrent,608);
if (RapidSub.canDelegate("traeprecio")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","traeprecio", _ba, _id, _quepromo);}
RemoteObject _pu = RemoteObject.createImmutable("");
RemoteObject _idc = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _pc = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
;
Debug.locals.put("id", _id);
Debug.locals.put("quePromo", _quepromo);
 BA.debugLineNum = 608;BA.debugLine="Sub traePrecio(id As String, quePromo As String) A";
Debug.ShouldStop(-2147483648);
 BA.debugLineNum = 609;BA.debugLine="Private pu As String = \"0\"";
Debug.ShouldStop(1);
_pu = BA.ObjectToString("0");Debug.locals.put("pu", _pu);Debug.locals.put("pu", _pu);
 BA.debugLineNum = 611;BA.debugLine="If quePromo = traeAlmacen Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",_quepromo,_traealmacen(_ba))) { 
 BA.debugLineNum = 612;BA.debugLine="Private idc As Cursor = kmt.ExecQuery($\"select C";
Debug.ShouldStop(8);
_idc = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_idc = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs._kmt.runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_id))),RemoteObject.createImmutable("'"))))));Debug.locals.put("idc", _idc);Debug.locals.put("idc", _idc);
 BA.debugLineNum = 613;BA.debugLine="If idc.RowCount > 0 Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean(">",_idc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 614;BA.debugLine="idc.Position=0";
Debug.ShouldStop(32);
_idc.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 615;BA.debugLine="If idc.RowCount > 0 And IsNumber(idc.GetString(";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean(">",_idc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean(".",subs.mostCurrent.__c.runMethod(true,"IsNumber",(Object)(_idc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO"))))))) { 
_pu = _idc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO")));Debug.locals.put("pu", _pu);};
 };
 BA.debugLineNum = 618;BA.debugLine="idc.Close";
Debug.ShouldStop(512);
_idc.runVoidMethod ("Close");
 }else {
 BA.debugLineNum = 620;BA.debugLine="Private pc As Cursor = Starter.skmt.ExecQuery($\"";
Debug.ShouldStop(2048);
_pc = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_pc = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs.mostCurrent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select HVD_CANT, HVD_COSTO_TOT from HIST_VENTAS2 where HVD_CLIENTE in (select cuenta from cuentaa) and HVD_PROID = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_id))),RemoteObject.createImmutable("' and HVD_CODPROMO = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_quepromo))),RemoteObject.createImmutable("'"))))));Debug.locals.put("pc", _pc);Debug.locals.put("pc", _pc);
 BA.debugLineNum = 621;BA.debugLine="If pc.RowCount > 0 Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean(">",_pc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 622;BA.debugLine="pc.Position = 0";
Debug.ShouldStop(8192);
_pc.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 624;BA.debugLine="If pc.GetString(\"HVD_COSTO_TOT\")<> Null And pc.";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("N",_pc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))) && RemoteObject.solveBoolean("N",_pc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT"))))) { 
 BA.debugLineNum = 625;BA.debugLine="pu = pc.GetString(\"HVD_COSTO_TOT\") / pc.GetStr";
Debug.ShouldStop(65536);
_pu = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _pc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, _pc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT"))))}, "/",0, 0));Debug.locals.put("pu", _pu);
 };
 };
 BA.debugLineNum = 629;BA.debugLine="pc.Close";
Debug.ShouldStop(1048576);
_pc.runVoidMethod ("Close");
 };
 BA.debugLineNum = 632;BA.debugLine="Return pu";
Debug.ShouldStop(8388608);
if (true) return _pu;
 BA.debugLineNum = 634;BA.debugLine="End Sub";
Debug.ShouldStop(33554432);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traeprecio2(RemoteObject _ba,RemoteObject _id,RemoteObject _quepromo,RemoteObject _consecutivo) throws Exception{
try {
		Debug.PushSubsStack("traePrecio2 (subs) ","subs",8,_ba,subs.mostCurrent,637);
if (RapidSub.canDelegate("traeprecio2")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","traeprecio2", _ba, _id, _quepromo, _consecutivo);}
RemoteObject _pu = RemoteObject.createImmutable("");
RemoteObject _idc = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _pc = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
;
Debug.locals.put("id", _id);
Debug.locals.put("quePromo", _quepromo);
Debug.locals.put("consecutivo", _consecutivo);
 BA.debugLineNum = 637;BA.debugLine="Sub traePrecio2(id As String, quePromo As String,";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 638;BA.debugLine="Private pu As String = \"0\"";
Debug.ShouldStop(536870912);
_pu = BA.ObjectToString("0");Debug.locals.put("pu", _pu);Debug.locals.put("pu", _pu);
 BA.debugLineNum = 640;BA.debugLine="If quePromo = traeAlmacen Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("=",_quepromo,_traealmacen(_ba))) { 
 BA.debugLineNum = 641;BA.debugLine="Private idc As Cursor = kmt.ExecQuery($\"select C";
Debug.ShouldStop(1);
_idc = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_idc = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs._kmt.runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_id))),RemoteObject.createImmutable("'"))))));Debug.locals.put("idc", _idc);Debug.locals.put("idc", _idc);
 BA.debugLineNum = 642;BA.debugLine="If idc.RowCount > 0 Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean(">",_idc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 643;BA.debugLine="idc.Position=0";
Debug.ShouldStop(4);
_idc.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 644;BA.debugLine="If idc.RowCount > 0 And IsNumber(idc.GetString(";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean(">",_idc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean(".",subs.mostCurrent.__c.runMethod(true,"IsNumber",(Object)(_idc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO"))))))) { 
_pu = _idc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO")));Debug.locals.put("pu", _pu);};
 };
 BA.debugLineNum = 647;BA.debugLine="idc.Close";
Debug.ShouldStop(64);
_idc.runVoidMethod ("Close");
 }else {
 BA.debugLineNum = 649;BA.debugLine="Private pc As Cursor = Starter.skmt.ExecQuery($\"";
Debug.ShouldStop(256);
_pc = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_pc = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs.mostCurrent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select HVD_CANT, HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) and HVD_PROID = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_id))),RemoteObject.createImmutable("' and HVD_CODPROMO = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_quepromo))),RemoteObject.createImmutable("' AND CONSECUTIVO = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_consecutivo))),RemoteObject.createImmutable("'"))))));Debug.locals.put("pc", _pc);Debug.locals.put("pc", _pc);
 BA.debugLineNum = 650;BA.debugLine="If pc.RowCount > 0 Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean(">",_pc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 651;BA.debugLine="pc.Position = 0";
Debug.ShouldStop(1024);
_pc.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 653;BA.debugLine="If pc.GetString(\"HVD_COSTO_TOT\")<> Null And pc.";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("N",_pc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))) && RemoteObject.solveBoolean("N",_pc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT"))))) { 
 BA.debugLineNum = 654;BA.debugLine="pu = pc.GetString(\"HVD_COSTO_TOT\") / pc.GetStr";
Debug.ShouldStop(8192);
_pu = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _pc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, _pc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT"))))}, "/",0, 0));Debug.locals.put("pu", _pu);
 };
 };
 BA.debugLineNum = 658;BA.debugLine="pc.Close";
Debug.ShouldStop(131072);
_pc.runVoidMethod ("Close");
 };
 BA.debugLineNum = 661;BA.debugLine="Return pu";
Debug.ShouldStop(1048576);
if (true) return _pu;
 BA.debugLineNum = 663;BA.debugLine="End Sub";
Debug.ShouldStop(4194304);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traeprecioc(RemoteObject _ba,RemoteObject _id) throws Exception{
try {
		Debug.PushSubsStack("traePrecioC (subs) ","subs",8,_ba,subs.mostCurrent,666);
if (RapidSub.canDelegate("traeprecioc")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","traeprecioc", _ba, _id);}
RemoteObject _pu = RemoteObject.createImmutable("");
RemoteObject _idc = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
;
Debug.locals.put("id", _id);
 BA.debugLineNum = 666;BA.debugLine="Sub traePrecioC(id As String) As String";
Debug.ShouldStop(33554432);
 BA.debugLineNum = 667;BA.debugLine="Private pu As String = \"0\"";
Debug.ShouldStop(67108864);
_pu = BA.ObjectToString("0");Debug.locals.put("pu", _pu);Debug.locals.put("pu", _pu);
 BA.debugLineNum = 668;BA.debugLine="Private idc As Cursor = kmt.ExecQuery($\"select PR";
Debug.ShouldStop(134217728);
_idc = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_idc = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs._kmt.runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select PRECIOCONVER from CAT_GUNAPROD where CAT_GP_ID = '"),subs.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_id))),RemoteObject.createImmutable("'"))))));Debug.locals.put("idc", _idc);Debug.locals.put("idc", _idc);
 BA.debugLineNum = 669;BA.debugLine="If idc.RowCount > 0 Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean(">",_idc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 670;BA.debugLine="idc.Position=0";
Debug.ShouldStop(536870912);
_idc.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 671;BA.debugLine="If idc.RowCount > 0 And IsNumber(idc.GetString(\"";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean(">",_idc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean(".",subs.mostCurrent.__c.runMethod(true,"IsNumber",(Object)(_idc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PRECIOCONVER"))))))) { 
_pu = _idc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PRECIOCONVER")));Debug.locals.put("pu", _pu);};
 };
 BA.debugLineNum = 674;BA.debugLine="idc.Close";
Debug.ShouldStop(2);
_idc.runVoidMethod ("Close");
 BA.debugLineNum = 675;BA.debugLine="Return pu";
Debug.ShouldStop(4);
if (true) return _pu;
 BA.debugLineNum = 676;BA.debugLine="End Sub";
Debug.ShouldStop(8);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traerechazados(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("traeRechazados (subs) ","subs",8,_ba,subs.mostCurrent,888);
if (RapidSub.canDelegate("traerechazados")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","traerechazados", _ba);}
RemoteObject _m = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _cant = RemoteObject.createImmutable(0);
RemoteObject _monto = RemoteObject.createImmutable("");
RemoteObject _rc = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
;
 BA.debugLineNum = 888;BA.debugLine="Sub traeRechazados As Map";
Debug.ShouldStop(8388608);
 BA.debugLineNum = 889;BA.debugLine="Private m As Map";
Debug.ShouldStop(16777216);
_m = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");Debug.locals.put("m", _m);
 BA.debugLineNum = 890;BA.debugLine="Private cant As Int = 0";
Debug.ShouldStop(33554432);
_cant = BA.numberCast(int.class, 0);Debug.locals.put("cant", _cant);Debug.locals.put("cant", _cant);
 BA.debugLineNum = 891;BA.debugLine="Private monto As String = 0";
Debug.ShouldStop(67108864);
_monto = BA.NumberToString(0);Debug.locals.put("monto", _monto);Debug.locals.put("monto", _monto);
 BA.debugLineNum = 892;BA.debugLine="Private rc As Cursor = Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(134217728);
_rc = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_rc = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs.mostCurrent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("select sum(REP_CANT) as CUANTOS, sum(REP_CANT * REP_PRECIO) as CUANTO from REPARTO where REP_RECHAZO = '1' and REP_CANT <> '0'")))));Debug.locals.put("rc", _rc);Debug.locals.put("rc", _rc);
 BA.debugLineNum = 893;BA.debugLine="If rc.RowCount > 0 Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean(">",_rc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 894;BA.debugLine="rc.Position = 0";
Debug.ShouldStop(536870912);
_rc.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 895;BA.debugLine="If rc.GetString(\"CUANTOS\") <> Null Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("N",_rc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS"))))) { 
 BA.debugLineNum = 896;BA.debugLine="cant = cant + rc.GetString(\"CUANTOS\")";
Debug.ShouldStop(-2147483648);
_cant = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_cant,BA.numberCast(double.class, _rc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS"))))}, "+",1, 0));Debug.locals.put("cant", _cant);
 BA.debugLineNum = 897;BA.debugLine="monto = monto + rc.GetString(\"CUANTO\")";
Debug.ShouldStop(1);
_monto = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _monto),BA.numberCast(double.class, _rc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTO"))))}, "+",1, 0));Debug.locals.put("monto", _monto);
 };
 };
 BA.debugLineNum = 901;BA.debugLine="Return CreateMap(\"cantidad\": cant, \"monto\": monto";
Debug.ShouldStop(16);
if (true) return subs.mostCurrent.__c.runMethod(false, "createMap", (Object)(new RemoteObject[] {RemoteObject.createImmutable(("cantidad")),(_cant),RemoteObject.createImmutable(("monto")),(_monto)}));
 BA.debugLineNum = 902;BA.debugLine="End Sub";
Debug.ShouldStop(32);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traerutaprev(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("traerUTAPREV (subs) ","subs",8,_ba,subs.mostCurrent,1007);
if (RapidSub.canDelegate("traerutaprev")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","traerutaprev", _ba);}
RemoteObject _c = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _a = RemoteObject.createImmutable("");
;
 BA.debugLineNum = 1007;BA.debugLine="Sub traerUTAPREV As String 'ignore";
Debug.ShouldStop(16384);
 BA.debugLineNum = 1008;BA.debugLine="Private c As Cursor";
Debug.ShouldStop(32768);
_c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");Debug.locals.put("c", _c);
 BA.debugLineNum = 1009;BA.debugLine="Private a As String";
Debug.ShouldStop(65536);
_a = RemoteObject.createImmutable("");Debug.locals.put("a", _a);
 BA.debugLineNum = 1010;BA.debugLine="c = Starter.skmt.ExecQuery(\"select CAT_CL_RUTA fr";
Debug.ShouldStop(131072);
_c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs.mostCurrent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select CAT_CL_RUTA from kmt_info where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))));Debug.locals.put("c", _c);
 BA.debugLineNum = 1011;BA.debugLine="c.Position = 0";
Debug.ShouldStop(262144);
_c.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1012;BA.debugLine="a = C.GetString(\"CAT_CL_RUTA\")";
Debug.ShouldStop(524288);
_a = _c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_RUTA")));Debug.locals.put("a", _a);
 BA.debugLineNum = 1013;BA.debugLine="c.Close";
Debug.ShouldStop(1048576);
_c.runVoidMethod ("Close");
 BA.debugLineNum = 1014;BA.debugLine="Return a";
Debug.ShouldStop(2097152);
if (true) return _a;
 BA.debugLineNum = 1015;BA.debugLine="End Sub";
Debug.ShouldStop(4194304);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traerutareparto(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("traeRutaReparto (subs) ","subs",8,_ba,subs.mostCurrent,943);
if (RapidSub.canDelegate("traerutareparto")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","traerutareparto", _ba);}
RemoteObject _c = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _r = RemoteObject.createImmutable("");
;
 BA.debugLineNum = 943;BA.debugLine="Sub traeRutaReparto As String 'ignore";
Debug.ShouldStop(16384);
 BA.debugLineNum = 944;BA.debugLine="Private c As Cursor";
Debug.ShouldStop(32768);
_c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");Debug.locals.put("c", _c);
 BA.debugLineNum = 945;BA.debugLine="Private r As String";
Debug.ShouldStop(65536);
_r = RemoteObject.createImmutable("");Debug.locals.put("r", _r);
 BA.debugLineNum = 946;BA.debugLine="c=Starter.skmt.ExecQuery(\"select RUTAA from RUTAA";
Debug.ShouldStop(131072);
_c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs.mostCurrent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select RUTAA from RUTAA"))));Debug.locals.put("c", _c);
 BA.debugLineNum = 947;BA.debugLine="r = \"0\"";
Debug.ShouldStop(262144);
_r = BA.ObjectToString("0");Debug.locals.put("r", _r);
 BA.debugLineNum = 948;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean(">",_c.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 949;BA.debugLine="c.Position=0";
Debug.ShouldStop(1048576);
_c.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 950;BA.debugLine="r = c.GetString(\"RUTAA\")";
Debug.ShouldStop(2097152);
_r = _c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("RUTAA")));Debug.locals.put("r", _r);
 };
 BA.debugLineNum = 952;BA.debugLine="c.Close";
Debug.ShouldStop(8388608);
_c.runVoidMethod ("Close");
 BA.debugLineNum = 953;BA.debugLine="Return r";
Debug.ShouldStop(16777216);
if (true) return _r;
 BA.debugLineNum = 954;BA.debugLine="End Sub";
Debug.ShouldStop(33554432);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traeusuario(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("traeUsuario (subs) ","subs",8,_ba,subs.mostCurrent,967);
if (RapidSub.canDelegate("traeusuario")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","traeusuario", _ba);}
RemoteObject _c = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _a = RemoteObject.createImmutable("");
;
 BA.debugLineNum = 967;BA.debugLine="Sub traeUsuario As String 'ignore";
Debug.ShouldStop(64);
 BA.debugLineNum = 968;BA.debugLine="Private c As Cursor";
Debug.ShouldStop(128);
_c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");Debug.locals.put("c", _c);
 BA.debugLineNum = 969;BA.debugLine="Private a As String";
Debug.ShouldStop(256);
_a = RemoteObject.createImmutable("");Debug.locals.put("a", _a);
 BA.debugLineNum = 970;BA.debugLine="c = Starter.skmt.ExecQuery(\"select USUARIO from U";
Debug.ShouldStop(512);
_c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs.mostCurrent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select USUARIO from USUARIOA"))));Debug.locals.put("c", _c);
 BA.debugLineNum = 971;BA.debugLine="c.Position = 0";
Debug.ShouldStop(1024);
_c.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 972;BA.debugLine="a = C.GetString(\"USUARIO\")";
Debug.ShouldStop(2048);
_a = _c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO")));Debug.locals.put("a", _a);
 BA.debugLineNum = 973;BA.debugLine="c.Close";
Debug.ShouldStop(4096);
_c.runVoidMethod ("Close");
 BA.debugLineNum = 974;BA.debugLine="Return a";
Debug.ShouldStop(8192);
if (true) return _a;
 BA.debugLineNum = 975;BA.debugLine="End Sub";
Debug.ShouldStop(16384);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traevendidos(RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("traeVendidos (subs) ","subs",8,_ba,subs.mostCurrent,905);
if (RapidSub.canDelegate("traevendidos")) { return reparto_mazapa.keymon.lat.subs.remoteMe.runUserSub(false, "subs","traevendidos", _ba);}
RemoteObject _m = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _cant = RemoteObject.createImmutable(0);
RemoteObject _monto = RemoteObject.createImmutable("");
RemoteObject _rc = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
;
 BA.debugLineNum = 905;BA.debugLine="Sub traeVendidos As Map";
Debug.ShouldStop(256);
 BA.debugLineNum = 906;BA.debugLine="Private m As Map";
Debug.ShouldStop(512);
_m = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");Debug.locals.put("m", _m);
 BA.debugLineNum = 907;BA.debugLine="Private cant As Int = 0";
Debug.ShouldStop(1024);
_cant = BA.numberCast(int.class, 0);Debug.locals.put("cant", _cant);Debug.locals.put("cant", _cant);
 BA.debugLineNum = 908;BA.debugLine="Private monto As String = 0";
Debug.ShouldStop(2048);
_monto = BA.NumberToString(0);Debug.locals.put("monto", _monto);Debug.locals.put("monto", _monto);
 BA.debugLineNum = 909;BA.debugLine="Private rc As Cursor = Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(4096);
_rc = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_rc = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), subs.mostCurrent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("select sum(REP_CANT) as CUANTOS, sum(REP_CANT * REP_PRECIO) as CUANTO from REPARTO where REP_RECHAZO = '0' and REP_CANT <> '0'")))));Debug.locals.put("rc", _rc);Debug.locals.put("rc", _rc);
 BA.debugLineNum = 910;BA.debugLine="If rc.RowCount > 0 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean(">",_rc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 911;BA.debugLine="rc.Position = 0";
Debug.ShouldStop(16384);
_rc.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 912;BA.debugLine="If rc.GetString(\"CUANTOS\") <> Null Then";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("N",_rc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS"))))) { 
 BA.debugLineNum = 913;BA.debugLine="cant = cant + rc.GetString(\"CUANTOS\")";
Debug.ShouldStop(65536);
_cant = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_cant,BA.numberCast(double.class, _rc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS"))))}, "+",1, 0));Debug.locals.put("cant", _cant);
 BA.debugLineNum = 914;BA.debugLine="monto = monto + rc.GetString(\"CUANTO\")";
Debug.ShouldStop(131072);
_monto = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _monto),BA.numberCast(double.class, _rc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTO"))))}, "+",1, 0));Debug.locals.put("monto", _monto);
 };
 };
 BA.debugLineNum = 918;BA.debugLine="Return CreateMap(\"cantidad\": cant, \"monto\": monto";
Debug.ShouldStop(2097152);
if (true) return subs.mostCurrent.__c.runMethod(false, "createMap", (Object)(new RemoteObject[] {RemoteObject.createImmutable(("cantidad")),(_cant),RemoteObject.createImmutable(("monto")),(_monto)}));
 BA.debugLineNum = 919;BA.debugLine="End Sub";
Debug.ShouldStop(4194304);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}