package SHARK2.keymon.com.mx;

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

public class c_subs_subs_0 {


public static RemoteObject  _agregacolumna(RemoteObject __ref,RemoteObject _tabla,RemoteObject _columna,RemoteObject _tipo) throws Exception{
try {
		Debug.PushSubsStack("agregaColumna (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,417);
if (RapidSub.canDelegate("agregacolumna")) { return __ref.runUserSub(false, "c_subs","agregacolumna", __ref, _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 = 417;BA.debugLine="Sub agregaColumna(tabla As String, columna As Stri";
Debug.ShouldStop(1);
 BA.debugLineNum = 418;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev";
Debug.ShouldStop(2);
try { BA.debugLineNum = 419;BA.debugLine="Private c As Cursor = db.ExecQuery($\"SELECT COUN";
Debug.ShouldStop(4);
_c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), __ref.getField(false,"_db" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("SELECT COUNT(*) AS fCol FROM pragma_table_info('"),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tabla))),RemoteObject.createImmutable("') WHERE name='"),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_columna))),RemoteObject.createImmutable("'"))))));Debug.locals.put("c", _c);Debug.locals.put("c", _c);
 BA.debugLineNum = 420;BA.debugLine="c.Position = 0";
Debug.ShouldStop(8);
_c.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 421;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("=",_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("fCol"))),BA.NumberToString(0))) { 
 BA.debugLineNum = 422;BA.debugLine="db.ExecNonQuery($\"ALTER TABLE ${tabla} ADD COLU";
Debug.ShouldStop(32);
__ref.getField(false,"_db" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("ALTER TABLE "),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tabla))),RemoteObject.createImmutable(" ADD COLUMN "),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_columna))),RemoteObject.createImmutable(" "),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tipo))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 423;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
Debug.ShouldStop(64);
c_subs.__c.runVoidMethod ("LogImpl","524969222",(RemoteObject.concat(RemoteObject.createImmutable("Columna \""),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_columna))),RemoteObject.createImmutable(" "),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tipo))),RemoteObject.createImmutable("\", agregada a \""),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tabla))),RemoteObject.createImmutable("\"."))),0);
 };
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e9) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e9.toString()); BA.debugLineNum = 426;BA.debugLine="Try";
Debug.ShouldStop(512);
try { BA.debugLineNum = 427;BA.debugLine="db.ExecNonQuery($\"ALTER TABLE ${tabla} ADD COLU";
Debug.ShouldStop(1024);
__ref.getField(false,"_db" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("ALTER TABLE "),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tabla))),RemoteObject.createImmutable(" ADD COLUMN "),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_columna))),RemoteObject.createImmutable(" "),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tipo))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 428;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
Debug.ShouldStop(2048);
c_subs.__c.runVoidMethod ("LogImpl","524969227",(RemoteObject.concat(RemoteObject.createImmutable("Columna \""),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_columna))),RemoteObject.createImmutable(" "),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tipo))),RemoteObject.createImmutable("\", agregada a \""),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tabla))),RemoteObject.createImmutable("\".."))),0);
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e13) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e13.toString()); BA.debugLineNum = 430;BA.debugLine="Log(LastException)";
Debug.ShouldStop(8192);
c_subs.__c.runVoidMethod ("LogImpl","524969229",BA.ObjectToString(c_subs.__c.runMethod(false,"LastException",__ref.runMethod(false,"getActivityBA"))),0);
 };
 };
 BA.debugLineNum = 433;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _borralogdb(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("borraLogDB (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,247);
if (RapidSub.canDelegate("borralogdb")) { return __ref.runUserSub(false, "c_subs","borralogdb", __ref);}
 BA.debugLineNum = 247;BA.debugLine="Sub borraLogDB 'ignore";
Debug.ShouldStop(4194304);
 BA.debugLineNum = 248;BA.debugLine="LogColor(\"Borramos BD de log\", Colors.Magenta)";
Debug.ShouldStop(8388608);
c_subs.__c.runVoidMethod ("LogImpl","524051713",BA.ObjectToString("Borramos BD de log"),c_subs.__c.getField(false,"Colors").getField(true,"Magenta"));
 BA.debugLineNum = 249;BA.debugLine="kmt.ExecNonQuery(\"delete from bitacora\")";
Debug.ShouldStop(16777216);
__ref.getField(false,"_kmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from bitacora")));
 BA.debugLineNum = 250;BA.debugLine="kmt.ExecNonQuery(\"vacuum;\")";
Debug.ShouldStop(33554432);
__ref.getField(false,"_kmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("vacuum;")));
 BA.debugLineNum = 251;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _buscadbusuario(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("buscaDBUsuario (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,369);
if (RapidSub.canDelegate("buscadbusuario")) { return __ref.runUserSub(false, "c_subs","buscadbusuario", __ref);}
RemoteObject _c = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _usuario = RemoteObject.createImmutable("");
 BA.debugLineNum = 369;BA.debugLine="Sub buscaDBUsuario As String 'ignore";
Debug.ShouldStop(65536);
 BA.debugLineNum = 370;BA.debugLine="Private c As Cursor";
Debug.ShouldStop(131072);
_c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");Debug.locals.put("c", _c);
 BA.debugLineNum = 371;BA.debugLine="Private usuario As String = \"SinUsuario\"";
Debug.ShouldStop(262144);
_usuario = BA.ObjectToString("SinUsuario");Debug.locals.put("usuario", _usuario);Debug.locals.put("usuario", _usuario);
 BA.debugLineNum = 372;BA.debugLine="c=kmt.ExecQuery(\"select USUARIO from usuarioa\")";
Debug.ShouldStop(524288);
_c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), __ref.getField(false,"_kmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select USUARIO from usuarioa"))));Debug.locals.put("c", _c);
 BA.debugLineNum = 373;BA.debugLine="c.Position=0";
Debug.ShouldStop(1048576);
_c.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 374;BA.debugLine="If c.RowCount > 0 Then usuario = c.GetString(\"USU";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean(">",_c.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
_usuario = _c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO")));Debug.locals.put("usuario", _usuario);};
 BA.debugLineNum = 375;BA.debugLine="Return usuario";
Debug.ShouldStop(4194304);
if (true) return _usuario;
 BA.debugLineNum = 376;BA.debugLine="End Sub";
Debug.ShouldStop(8388608);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _centraetiqueta(RemoteObject __ref,RemoteObject _elemento,RemoteObject _anchoelementosuperior) throws Exception{
try {
		Debug.PushSubsStack("centraEtiqueta (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,349);
if (RapidSub.canDelegate("centraetiqueta")) { return __ref.runUserSub(false, "c_subs","centraetiqueta", __ref, _elemento, _anchoelementosuperior);}
Debug.locals.put("elemento", _elemento);
Debug.locals.put("anchoElementoSuperior", _anchoelementosuperior);
 BA.debugLineNum = 349;BA.debugLine="Sub centraEtiqueta(elemento As Label, anchoElement";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 350;BA.debugLine="elemento.Left = Round(anchoElementoSuperior/2)-(e";
Debug.ShouldStop(536870912);
_elemento.runMethod(true,"setLeft",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {c_subs.__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 = 351;BA.debugLine="End Sub";
Debug.ShouldStop(1073741824);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _centrapanel(RemoteObject __ref,RemoteObject _elemento,RemoteObject _anchoelementosuperior) throws Exception{
try {
		Debug.PushSubsStack("centraPanel (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,354);
if (RapidSub.canDelegate("centrapanel")) { return __ref.runUserSub(false, "c_subs","centrapanel", __ref, _elemento, _anchoelementosuperior);}
Debug.locals.put("elemento", _elemento);
Debug.locals.put("anchoElementoSuperior", _anchoelementosuperior);
 BA.debugLineNum = 354;BA.debugLine="Sub centraPanel(elemento As Panel, anchoElementoSu";
Debug.ShouldStop(2);
 BA.debugLineNum = 355;BA.debugLine="elemento.Left = Round(anchoElementoSuperior/2)-(e";
Debug.ShouldStop(4);
_elemento.runMethod(true,"setLeft",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {c_subs.__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 = 356;BA.debugLine="End Sub";
Debug.ShouldStop(8);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _centrapanelv(RemoteObject __ref,RemoteObject _elemento,RemoteObject _altoelementosuperior) throws Exception{
try {
		Debug.PushSubsStack("centraPanelV (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,359);
if (RapidSub.canDelegate("centrapanelv")) { return __ref.runUserSub(false, "c_subs","centrapanelv", __ref, _elemento, _altoelementosuperior);}
Debug.locals.put("elemento", _elemento);
Debug.locals.put("altoElementoSuperior", _altoelementosuperior);
 BA.debugLineNum = 359;BA.debugLine="Sub centraPanelV(elemento As Panel, altoElementoSu";
Debug.ShouldStop(64);
 BA.debugLineNum = 360;BA.debugLine="elemento.Top = Round(altoElementoSuperior/2)-(ele";
Debug.ShouldStop(128);
_elemento.runMethod(true,"setTop",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {c_subs.__c.runMethod(true,"Round",(Object)(RemoteObject.solve(new RemoteObject[] {_altoelementosuperior,RemoteObject.createImmutable(2)}, "/",0, 0))),(RemoteObject.solve(new RemoteObject[] {_elemento.runMethod(true,"getHeight"),RemoteObject.createImmutable(2)}, "/",0, 0))}, "-",1, 0)));
 BA.debugLineNum = 361;BA.debugLine="End Sub";
Debug.ShouldStop(256);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _centraprogressbar(RemoteObject __ref,RemoteObject _elemento,RemoteObject _anchoelementosuperior) throws Exception{
try {
		Debug.PushSubsStack("centraProgressBar (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,364);
if (RapidSub.canDelegate("centraprogressbar")) { return __ref.runUserSub(false, "c_subs","centraprogressbar", __ref, _elemento, _anchoelementosuperior);}
Debug.locals.put("elemento", _elemento);
Debug.locals.put("anchoElementoSuperior", _anchoelementosuperior);
 BA.debugLineNum = 364;BA.debugLine="Sub centraProgressBar(elemento As ProgressBar, anc";
Debug.ShouldStop(2048);
 BA.debugLineNum = 365;BA.debugLine="elemento.Left = Round(anchoElementoSuperior/2)-(e";
Debug.ShouldStop(4096);
_elemento.runMethod(true,"setLeft",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {c_subs.__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 = 366;BA.debugLine="End Sub";
Debug.ShouldStop(8192);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _checknotificationaccess(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("CheckNotificationAccess (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,595);
if (RapidSub.canDelegate("checknotificationaccess")) { return __ref.runUserSub(false, "c_subs","checknotificationaccess", __ref);}
RemoteObject _ph = RemoteObject.declareNull("anywheresoftware.b4a.phone.Phone");
RemoteObject _nstr = RemoteObject.createImmutable("");
RemoteObject _pstr = RemoteObject.createImmutable("");
RemoteObject _r = RemoteObject.declareNull("anywheresoftware.b4a.agraham.reflection.Reflection");
 BA.debugLineNum = 595;BA.debugLine="Sub CheckNotificationAccess As Boolean 'ignore";
Debug.ShouldStop(262144);
 BA.debugLineNum = 596;BA.debugLine="Dim ph As Phone";
Debug.ShouldStop(524288);
_ph = RemoteObject.createNew ("anywheresoftware.b4a.phone.Phone");Debug.locals.put("ph", _ph);
 BA.debugLineNum = 597;BA.debugLine="Dim nstr, pstr As String";
Debug.ShouldStop(1048576);
_nstr = RemoteObject.createImmutable("");Debug.locals.put("nstr", _nstr);
_pstr = RemoteObject.createImmutable("");Debug.locals.put("pstr", _pstr);
 BA.debugLineNum = 598;BA.debugLine="Dim r As Reflector";
Debug.ShouldStop(2097152);
_r = RemoteObject.createNew ("anywheresoftware.b4a.agraham.reflection.Reflection");Debug.locals.put("r", _r);
 BA.debugLineNum = 599;BA.debugLine="pstr = r.GetStaticField(\"anywheresoftware.b4a.BA\"";
Debug.ShouldStop(4194304);
_pstr = BA.ObjectToString(_r.runMethod(false,"GetStaticField",(Object)(BA.ObjectToString("anywheresoftware.b4a.BA")),(Object)(RemoteObject.createImmutable("packageName"))));Debug.locals.put("pstr", _pstr);
 BA.debugLineNum = 600;BA.debugLine="nstr = ph.GetSettings(\"enabled_notification_liste";
Debug.ShouldStop(8388608);
_nstr = _ph.runMethod(true,"GetSettings",(Object)(RemoteObject.createImmutable("enabled_notification_listeners")));Debug.locals.put("nstr", _nstr);
 BA.debugLineNum = 601;BA.debugLine="Return nstr.Contains(pstr)";
Debug.ShouldStop(16777216);
if (true) return _nstr.runMethod(true,"contains",(Object)(_pstr));
 BA.debugLineNum = 602;BA.debugLine="End Sub";
Debug.ShouldStop(33554432);
return RemoteObject.createImmutable(false);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _class_globals(RemoteObject __ref) throws Exception{
 //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
 //BA.debugLineNum = 6;BA.debugLine="Dim reqManager As DBRequestManager";
c_subs._reqmanager = RemoteObject.createNew ("SHARK2.keymon.com.mx.dbrequestmanager");__ref.setField("_reqmanager",c_subs._reqmanager);
 //BA.debugLineNum = 7;BA.debugLine="Private EventName As String 'ignore";
c_subs._eventname = RemoteObject.createImmutable("");__ref.setField("_eventname",c_subs._eventname);
 //BA.debugLineNum = 8;BA.debugLine="Private CallBack As Object 'ignore";
c_subs._callback = RemoteObject.createNew ("Object");__ref.setField("_callback",c_subs._callback);
 //BA.debugLineNum = 9;BA.debugLine="Dim phn As Phone";
c_subs._phn = RemoteObject.createNew ("anywheresoftware.b4a.phone.Phone");__ref.setField("_phn",c_subs._phn);
 //BA.debugLineNum = 10;BA.debugLine="Dim devModel As String";
c_subs._devmodel = RemoteObject.createImmutable("");__ref.setField("_devmodel",c_subs._devmodel);
 //BA.debugLineNum = 11;BA.debugLine="Dim db, kmt, errorLog As SQL 'Requiere la libreri";
c_subs._db = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL");__ref.setField("_db",c_subs._db);
c_subs._kmt = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL");__ref.setField("_kmt",c_subs._kmt);
c_subs._errorlog = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL");__ref.setField("_errorlog",c_subs._errorlog);
 //BA.debugLineNum = 12;BA.debugLine="Dim ssid As String  'ignore";
c_subs._ssid = RemoteObject.createImmutable("");__ref.setField("_ssid",c_subs._ssid);
 //BA.debugLineNum = 13;BA.debugLine="Dim reqsList As List";
c_subs._reqslist = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_reqslist",c_subs._reqslist);
 //BA.debugLineNum = 14;BA.debugLine="Dim reqError As Boolean = False";
c_subs._reqerror = c_subs.__c.getField(true,"False");__ref.setField("_reqerror",c_subs._reqerror);
 //BA.debugLineNum = 15;BA.debugLine="Private subsLogs As Boolean = False";
c_subs._subslogs = c_subs.__c.getField(true,"False");__ref.setField("_subslogs",c_subs._subslogs);
 //BA.debugLineNum = 16;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
}
public static RemoteObject  _copiadb(RemoteObject __ref,RemoteObject _result) throws Exception{
try {
		Debug.PushSubsStack("copiaDB (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,307);
if (RapidSub.canDelegate("copiadb")) { return __ref.runUserSub(false, "c_subs","copiadb", __ref, _result);}
RemoteObject _p = RemoteObject.createImmutable("");
RemoteObject _thedir = RemoteObject.createImmutable("");
Debug.locals.put("result", _result);
 BA.debugLineNum = 307;BA.debugLine="Sub copiaDB(result As Boolean) 'ignore";
Debug.ShouldStop(262144);
 BA.debugLineNum = 308;BA.debugLine="ToastMessageShow(\"copiaDB\", False)";
Debug.ShouldStop(524288);
c_subs.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("copiaDB")),(Object)(c_subs.__c.getField(true,"False")));
 BA.debugLineNum = 309;BA.debugLine="If result Then";
Debug.ShouldStop(1048576);
if (_result.<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 310;BA.debugLine="Dim p As String";
Debug.ShouldStop(2097152);
_p = RemoteObject.createImmutable("");Debug.locals.put("p", _p);
 BA.debugLineNum = 311;BA.debugLine="If File.ExternalWritable Then";
Debug.ShouldStop(4194304);
if (c_subs.__c.getField(false,"File").runMethod(true,"getExternalWritable").<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 312;BA.debugLine="p = File.DirInternal";
Debug.ShouldStop(8388608);
_p = c_subs.__c.getField(false,"File").runMethod(true,"getDirInternal");Debug.locals.put("p", _p);
 }else {
 BA.debugLineNum = 315;BA.debugLine="p = File.DirInternal";
Debug.ShouldStop(67108864);
_p = c_subs.__c.getField(false,"File").runMethod(true,"getDirInternal");Debug.locals.put("p", _p);
 };
 BA.debugLineNum = 318;BA.debugLine="Dim theDir As String";
Debug.ShouldStop(536870912);
_thedir = RemoteObject.createImmutable("");Debug.locals.put("theDir", _thedir);
 BA.debugLineNum = 319;BA.debugLine="Try";
Debug.ShouldStop(1073741824);
try { BA.debugLineNum = 320;BA.debugLine="File.MakeDir(File.DirInternal,\"kmts\")";
Debug.ShouldStop(-2147483648);
c_subs.__c.getField(false,"File").runVoidMethod ("MakeDir",(Object)(c_subs.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(RemoteObject.createImmutable("kmts")));
 BA.debugLineNum = 321;BA.debugLine="theDir = \"/kmts\"";
Debug.ShouldStop(1);
_thedir = BA.ObjectToString("/kmts");Debug.locals.put("theDir", _thedir);
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e14) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e14.toString()); BA.debugLineNum = 323;BA.debugLine="theDir = \"\"";
Debug.ShouldStop(4);
_thedir = BA.ObjectToString("");Debug.locals.put("theDir", _thedir);
 };
 BA.debugLineNum = 325;BA.debugLine="Try";
Debug.ShouldStop(16);
try { BA.debugLineNum = 326;BA.debugLine="File.Copy(File.DirInternal,\"kmt.db\",File.DirInt";
Debug.ShouldStop(32);
c_subs.__c.getField(false,"File").runVoidMethod ("Copy",(Object)(c_subs.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(BA.ObjectToString("kmt.db")),(Object)(RemoteObject.concat(c_subs.__c.getField(false,"File").runMethod(true,"getDirInternal"),_thedir)),(Object)(RemoteObject.createImmutable("cedex_kmt.db")));
 BA.debugLineNum = 327;BA.debugLine="File.Copy(File.DirInternal,\"errorLog.db\",File.D";
Debug.ShouldStop(64);
c_subs.__c.getField(false,"File").runVoidMethod ("Copy",(Object)(c_subs.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(BA.ObjectToString("errorLog.db")),(Object)(RemoteObject.concat(c_subs.__c.getField(false,"File").runMethod(true,"getDirInternal"),_thedir)),(Object)(RemoteObject.createImmutable("cedex_errorLog.db")));
 BA.debugLineNum = 328;BA.debugLine="ToastMessageShow(\"BD copiada!\", False)";
Debug.ShouldStop(128);
c_subs.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("BD copiada!")),(Object)(c_subs.__c.getField(true,"False")));
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e21) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e21.toString()); BA.debugLineNum = 330;BA.debugLine="ToastMessageShow(\"No se pudo hacer la copia: \"&";
Debug.ShouldStop(512);
c_subs.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("No se pudo hacer la copia: "),c_subs.__c.runMethod(false,"LastException",__ref.runMethod(false,"getActivityBA"))))),(Object)(c_subs.__c.getField(true,"True")));
 };
 BA.debugLineNum = 332;BA.debugLine="Log(\"rootExternal=\"&p)";
Debug.ShouldStop(2048);
c_subs.__c.runVoidMethod ("LogImpl","524248345",RemoteObject.concat(RemoteObject.createImmutable("rootExternal="),_p),0);
 BA.debugLineNum = 333;BA.debugLine="Log(\"File.DirInternal=\"&File.DirInternal)";
Debug.ShouldStop(4096);
c_subs.__c.runVoidMethod ("LogImpl","524248346",RemoteObject.concat(RemoteObject.createImmutable("File.DirInternal="),c_subs.__c.getField(false,"File").runMethod(true,"getDirInternal")),0);
 BA.debugLineNum = 334;BA.debugLine="Log(\"File.DirInternal=\"&File.DirInternal)";
Debug.ShouldStop(8192);
c_subs.__c.runVoidMethod ("LogImpl","524248347",RemoteObject.concat(RemoteObject.createImmutable("File.DirInternal="),c_subs.__c.getField(false,"File").runMethod(true,"getDirInternal")),0);
 }else {
 BA.debugLineNum = 336;BA.debugLine="ToastMessageShow(\"Sin permisos\", False)";
Debug.ShouldStop(32768);
c_subs.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Sin permisos")),(Object)(c_subs.__c.getField(true,"False")));
 };
 BA.debugLineNum = 338;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _createnotification(RemoteObject __ref,RemoteObject _body) throws Exception{
try {
		Debug.PushSubsStack("CreateNotification (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,469);
if (RapidSub.canDelegate("createnotification")) { return __ref.runUserSub(false, "c_subs","createnotification", __ref, _body);}
RemoteObject _notification = RemoteObject.declareNull("anywheresoftware.b4a.objects.NotificationWrapper");
Debug.locals.put("Body", _body);
 BA.debugLineNum = 469;BA.debugLine="Sub CreateNotification (Body As String) As Notific";
Debug.ShouldStop(1048576);
 BA.debugLineNum = 470;BA.debugLine="Dim notification As Notification";
Debug.ShouldStop(2097152);
_notification = RemoteObject.createNew ("anywheresoftware.b4a.objects.NotificationWrapper");Debug.locals.put("notification", _notification);
 BA.debugLineNum = 471;BA.debugLine="notification.Initialize2(notification.IMPORTANCE_";
Debug.ShouldStop(4194304);
_notification.runVoidMethod ("Initialize2",(Object)(_notification.getField(true,"IMPORTANCE_LOW")));
 BA.debugLineNum = 472;BA.debugLine="notification.Icon = \"icon\"";
Debug.ShouldStop(8388608);
_notification.runVoidMethod ("setIcon",BA.ObjectToString("icon"));
 BA.debugLineNum = 473;BA.debugLine="notification.SetInfo(\"Tester\", Body, Main)";
Debug.ShouldStop(16777216);
_notification.runVoidMethod ("SetInfoNew",__ref.getField(false, "ba"),(Object)(BA.ObjectToCharSequence("Tester")),(Object)(BA.ObjectToCharSequence(_body)),(Object)((c_subs._main.getObject())));
 BA.debugLineNum = 474;BA.debugLine="Return notification";
Debug.ShouldStop(33554432);
if (true) return _notification;
 BA.debugLineNum = 475;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _dbinit(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("dbInit (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,30);
if (RapidSub.canDelegate("dbinit")) { return __ref.runUserSub(false, "c_subs","dbinit", __ref);}
 BA.debugLineNum = 30;BA.debugLine="Sub dbInit As SQL";
Debug.ShouldStop(536870912);
 BA.debugLineNum = 31;BA.debugLine="If File.Exists(File.DirInternal, \"kmt.db\") = Fals";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",c_subs.__c.getField(false,"File").runMethod(true,"Exists",(Object)(c_subs.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(RemoteObject.createImmutable("kmt.db"))),c_subs.__c.getField(true,"False"))) { 
c_subs.__c.getField(false,"File").runVoidMethod ("Copy",(Object)(c_subs.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(BA.ObjectToString("kmt.db")),(Object)(c_subs.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(RemoteObject.createImmutable("kmt.db")));};
 BA.debugLineNum = 32;BA.debugLine="db.Initialize(File.DirInternal,\"kmt.db\", True)";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_db" /*RemoteObject*/ ).runVoidMethod ("Initialize",(Object)(c_subs.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(BA.ObjectToString("kmt.db")),(Object)(c_subs.__c.getField(true,"True")));
 BA.debugLineNum = 33;BA.debugLine="dbOk(True)";
Debug.ShouldStop(1);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_subs.class, "_dbok" /*RemoteObject*/ ,(Object)(c_subs.__c.getField(true,"True")));
 BA.debugLineNum = 35;BA.debugLine="Return db";
Debug.ShouldStop(4);
if (true) return __ref.getField(false,"_db" /*RemoteObject*/ );
 BA.debugLineNum = 36;BA.debugLine="End Sub";
Debug.ShouldStop(8);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _dbok(RemoteObject __ref,RemoteObject _success) throws Exception{
try {
		Debug.PushSubsStack("dbOk (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,38);
if (RapidSub.canDelegate("dbok")) { return __ref.runUserSub(false, "c_subs","dbok", __ref, _success);}
Debug.locals.put("Success", _success);
 BA.debugLineNum = 38;BA.debugLine="Sub dbOk(Success As Boolean)";
Debug.ShouldStop(32);
 BA.debugLineNum = 39;BA.debugLine="If SubExists(CallBack, EventName & \"_dbOk\") Then";
Debug.ShouldStop(64);
if (c_subs.__c.runMethod(true,"SubExists",__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_callback" /*RemoteObject*/ )),(Object)(RemoteObject.concat(__ref.getField(true,"_eventname" /*RemoteObject*/ ),RemoteObject.createImmutable("_dbOk")))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 40;BA.debugLine="CallSub2(CallBack, EventName & \"_dbOk\", Success)";
Debug.ShouldStop(128);
c_subs.__c.runMethodAndSync(false,"CallSubNew2",__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_callback" /*RemoteObject*/ )),(Object)(RemoteObject.concat(__ref.getField(true,"_eventname" /*RemoteObject*/ ),RemoteObject.createImmutable("_dbOk"))),(Object)((_success)));
 };
 BA.debugLineNum = 42;BA.debugLine="End Sub";
Debug.ShouldStop(512);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _deleteerrorlog_db(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("deleteErrorLog_DB (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,180);
if (RapidSub.canDelegate("deleteerrorlog_db")) { return __ref.runUserSub(false, "c_subs","deleteerrorlog_db", __ref);}
 BA.debugLineNum = 180;BA.debugLine="Sub deleteErrorLog_DB 'ignore";
Debug.ShouldStop(524288);
 BA.debugLineNum = 181;BA.debugLine="errorLog.ExecNonQuery(\"delete from errores\")";
Debug.ShouldStop(1048576);
__ref.getField(false,"_errorlog" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from errores")));
 BA.debugLineNum = 182;BA.debugLine="errorLog.ExecNonQuery(\"vacuum;\")";
Debug.ShouldStop(2097152);
__ref.getField(false,"_errorlog" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("vacuum;")));
 BA.debugLineNum = 183;BA.debugLine="ToastMessageShow(\"BD Errores Borrada\", False)";
Debug.ShouldStop(4194304);
c_subs.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("BD Errores Borrada")),(Object)(c_subs.__c.getField(true,"False")));
 BA.debugLineNum = 184;BA.debugLine="End Sub";
Debug.ShouldStop(8388608);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _deletegps_db(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("deleteGPS_DB (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,173);
if (RapidSub.canDelegate("deletegps_db")) { return __ref.runUserSub(false, "c_subs","deletegps_db", __ref);}
 BA.debugLineNum = 173;BA.debugLine="Sub deleteGPS_DB 'ignore";
Debug.ShouldStop(4096);
 BA.debugLineNum = 174;BA.debugLine="kmt.ExecNonQuery(\"delete from RUTA_GPS\")";
Debug.ShouldStop(8192);
__ref.getField(false,"_kmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from RUTA_GPS")));
 BA.debugLineNum = 175;BA.debugLine="kmt.ExecNonQuery(\"vacuum;\")";
Debug.ShouldStop(16384);
__ref.getField(false,"_kmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("vacuum;")));
 BA.debugLineNum = 176;BA.debugLine="ToastMessageShow(\"Borramos BD Coords GPS\", False)";
Debug.ShouldStop(32768);
c_subs.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Borramos BD Coords GPS")),(Object)(c_subs.__c.getField(true,"False")));
 BA.debugLineNum = 177;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _enviook(RemoteObject __ref,RemoteObject _success) throws Exception{
try {
		Debug.PushSubsStack("envioOk (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,71);
if (RapidSub.canDelegate("enviook")) { return __ref.runUserSub(false, "c_subs","enviook", __ref, _success);}
Debug.locals.put("Success", _success);
 BA.debugLineNum = 71;BA.debugLine="Sub envioOk(Success As Boolean)";
Debug.ShouldStop(64);
 BA.debugLineNum = 73;BA.debugLine="If SubExists(CallBack, EventName & \"_envioOk\") Th";
Debug.ShouldStop(256);
if (c_subs.__c.runMethod(true,"SubExists",__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_callback" /*RemoteObject*/ )),(Object)(RemoteObject.concat(__ref.getField(true,"_eventname" /*RemoteObject*/ ),RemoteObject.createImmutable("_envioOk")))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 74;BA.debugLine="CallSub2(CallBack, EventName & \"_envioOk\", Succe";
Debug.ShouldStop(512);
c_subs.__c.runMethodAndSync(false,"CallSubNew2",__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_callback" /*RemoteObject*/ )),(Object)(RemoteObject.concat(__ref.getField(true,"_eventname" /*RemoteObject*/ ),RemoteObject.createImmutable("_envioOk"))),(Object)((_success)));
 };
 BA.debugLineNum = 76;BA.debugLine="End Sub";
Debug.ShouldStop(2048);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _enviotest(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("envioTest (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,58);
if (RapidSub.canDelegate("enviotest")) { return __ref.runUserSub(false, "c_subs","enviotest", __ref);}
RemoteObject _cmd = RemoteObject.declareNull("SHARK2.keymon.com.mx.dbrequestmanager._dbcommand");
int _i = 0;
 BA.debugLineNum = 58;BA.debugLine="Sub envioTest";
Debug.ShouldStop(33554432);
 BA.debugLineNum = 59;BA.debugLine="reqsList.Initialize ' Ponemos la lista de DBReque";
Debug.ShouldStop(67108864);
__ref.getField(false,"_reqslist" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 60;BA.debugLine="Private cmd As DBCommand";
Debug.ShouldStop(134217728);
_cmd = RemoteObject.createNew ("SHARK2.keymon.com.mx.dbrequestmanager._dbcommand");Debug.locals.put("cmd", _cmd);
 BA.debugLineNum = 61;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(268435456);
_cmd.runVoidMethod ("Initialize");
 BA.debugLineNum = 62;BA.debugLine="cmd.Name = \"select_fecha\"";
Debug.ShouldStop(536870912);
_cmd.setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_fecha"));
 BA.debugLineNum = 63;BA.debugLine="For i = 0 To 50";
Debug.ShouldStop(1073741824);
{
final int step5 = 1;
final int limit5 = 50;
_i = 0 ;
for (;(step5 > 0 && _i <= limit5) || (step5 < 0 && _i >= limit5) ;_i = ((int)(0 + _i + step5))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 65;BA.debugLine="reqManager.ExecuteQuery(cmd, 0, $\"select_fecha_$";
Debug.ShouldStop(1);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(_cmd),(Object)(BA.numberCast(int.class, 0)),(Object)(((RemoteObject.concat(RemoteObject.createImmutable("select_fecha_"),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(RemoteObject.createImmutable((_i)))),RemoteObject.createImmutable(""))))));
 BA.debugLineNum = 66;BA.debugLine="reqsList.Add($\"select_fecha_${i}\"$)";
Debug.ShouldStop(2);
__ref.getField(false,"_reqslist" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)(((RemoteObject.concat(RemoteObject.createImmutable("select_fecha_"),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(RemoteObject.createImmutable((_i)))),RemoteObject.createImmutable(""))))));
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 68;BA.debugLine="End Sub";
Debug.ShouldStop(8);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _fechainiciohoy(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("fechaInicioHoy (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,206);
if (RapidSub.canDelegate("fechainiciohoy")) { return __ref.runUserSub(false, "c_subs","fechainiciohoy", __ref);}
RemoteObject _origformat = RemoteObject.createImmutable("");
RemoteObject _h = RemoteObject.createImmutable("");
 BA.debugLineNum = 206;BA.debugLine="Sub fechaInicioHoy As String 'ignore";
Debug.ShouldStop(8192);
 BA.debugLineNum = 207;BA.debugLine="Dim OrigFormat As String = DateTime.DateFormat  '";
Debug.ShouldStop(16384);
_origformat = c_subs.__c.getField(false,"DateTime").runMethod(true,"getDateFormat");Debug.locals.put("OrigFormat", _origformat);Debug.locals.put("OrigFormat", _origformat);
 BA.debugLineNum = 208;BA.debugLine="DateTime.DateFormat=\"yyMMdd\"";
Debug.ShouldStop(32768);
c_subs.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("yyMMdd"));
 BA.debugLineNum = 209;BA.debugLine="Private h As String = DateTime.Date(DateTime.Now)";
Debug.ShouldStop(65536);
_h = RemoteObject.concat(c_subs.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_subs.__c.getField(false,"DateTime").runMethod(true,"getNow"))),RemoteObject.createImmutable("000000"));Debug.locals.put("h", _h);Debug.locals.put("h", _h);
 BA.debugLineNum = 210;BA.debugLine="DateTime.DateFormat=OrigFormat  'return to orig d";
Debug.ShouldStop(131072);
c_subs.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",_origformat);
 BA.debugLineNum = 211;BA.debugLine="Log(\"Hoy=\"&h)";
Debug.ShouldStop(262144);
c_subs.__c.runVoidMethod ("LogImpl","523789573",RemoteObject.concat(RemoteObject.createImmutable("Hoy="),_h),0);
 BA.debugLineNum = 212;BA.debugLine="Return h";
Debug.ShouldStop(524288);
if (true) return _h;
 BA.debugLineNum = 213;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _fechakmt(RemoteObject __ref,RemoteObject _fecha) throws Exception{
try {
		Debug.PushSubsStack("fechaKMT (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,133);
if (RapidSub.canDelegate("fechakmt")) { return __ref.runUserSub(false, "c_subs","fechakmt", __ref, _fecha);}
RemoteObject _origformat = RemoteObject.createImmutable("");
RemoteObject _nuevafecha = RemoteObject.createImmutable("");
Debug.locals.put("fecha", _fecha);
 BA.debugLineNum = 133;BA.debugLine="Sub fechaKMT(fecha As String) As String 'ignore";
Debug.ShouldStop(16);
 BA.debugLineNum = 135;BA.debugLine="Dim OrigFormat As String = DateTime.DateFormat  '";
Debug.ShouldStop(64);
_origformat = c_subs.__c.getField(false,"DateTime").runMethod(true,"getDateFormat");Debug.locals.put("OrigFormat", _origformat);Debug.locals.put("OrigFormat", _origformat);
 BA.debugLineNum = 136;BA.debugLine="DateTime.DateFormat=\"yyMMddHHmmss\"";
Debug.ShouldStop(128);
c_subs.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("yyMMddHHmmss"));
 BA.debugLineNum = 137;BA.debugLine="Dim nuevaFecha As String=DateTime.Date(fecha)";
Debug.ShouldStop(256);
_nuevafecha = c_subs.__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 = 138;BA.debugLine="DateTime.DateFormat=OrigFormat  'return to orig d";
Debug.ShouldStop(512);
c_subs.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",_origformat);
 BA.debugLineNum = 140;BA.debugLine="Return nuevaFecha";
Debug.ShouldStop(2048);
if (true) return _nuevafecha;
 BA.debugLineNum = 141;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _fechakmt2ticks(RemoteObject __ref,RemoteObject _fkmt) throws Exception{
try {
		Debug.PushSubsStack("fechaKMT2Ticks (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,275);
if (RapidSub.canDelegate("fechakmt2ticks")) { return __ref.runUserSub(false, "c_subs","fechakmt2ticks", __ref, _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 = 275;BA.debugLine="Sub fechaKMT2Ticks(fKMT As String) As Long 'ignore";
Debug.ShouldStop(262144);
 BA.debugLineNum = 276;BA.debugLine="Try";
Debug.ShouldStop(524288);
try { BA.debugLineNum = 277;BA.debugLine="If fKMT.Length = 12 Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("=",_fkmt.runMethod(true,"length"),BA.numberCast(double.class, 12))) { 
 BA.debugLineNum = 278;BA.debugLine="Private parteFecha As String = fKMT.SubString2(";
Debug.ShouldStop(2097152);
_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 = 279;BA.debugLine="Private parteHora As String = fKMT.SubString(6)";
Debug.ShouldStop(4194304);
_partehora = _fkmt.runMethod(true,"substring",(Object)(BA.numberCast(int.class, 6)));Debug.locals.put("parteHora", _partehora);Debug.locals.put("parteHora", _partehora);
 BA.debugLineNum = 280;BA.debugLine="Private OrigFormat As String = DateTime.DateFor";
Debug.ShouldStop(8388608);
_origformat = c_subs.__c.getField(false,"DateTime").runMethod(true,"getDateFormat");Debug.locals.put("OrigFormat", _origformat);Debug.locals.put("OrigFormat", _origformat);
 BA.debugLineNum = 281;BA.debugLine="DateTime.DateFormat=\"yymmdd\"";
Debug.ShouldStop(16777216);
c_subs.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("yymmdd"));
 BA.debugLineNum = 282;BA.debugLine="DateTime.TimeFormat=\"HHmmss\"";
Debug.ShouldStop(33554432);
c_subs.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HHmmss"));
 BA.debugLineNum = 283;BA.debugLine="Private ticks As Long = DateTime.DateTimeParse(";
Debug.ShouldStop(67108864);
_ticks = c_subs.__c.getField(false,"DateTime").runMethod(true,"DateTimeParse",(Object)(_partefecha),(Object)(_partehora));Debug.locals.put("ticks", _ticks);Debug.locals.put("ticks", _ticks);
 BA.debugLineNum = 284;BA.debugLine="DateTime.DateFormat=OrigFormat  'return to orig";
Debug.ShouldStop(134217728);
c_subs.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",_origformat);
 BA.debugLineNum = 285;BA.debugLine="Return ticks";
Debug.ShouldStop(268435456);
Debug.CheckDeviceExceptions();if (true) return _ticks;
 }else {
 BA.debugLineNum = 287;BA.debugLine="Log(\"Formato de fecha incorrecto, debe de ser '";
Debug.ShouldStop(1073741824);
c_subs.__c.runVoidMethod ("LogImpl","524117260",RemoteObject.concat(RemoteObject.createImmutable("Formato de fecha incorrecto, debe de ser 'YYMMDDHHMMSS', no '"),_fkmt,RemoteObject.createImmutable("' largo="),_fkmt.runMethod(true,"length")),0);
 BA.debugLineNum = 288;BA.debugLine="Return 0";
Debug.ShouldStop(-2147483648);
Debug.CheckDeviceExceptions();if (true) return BA.numberCast(long.class, 0);
 };
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e16) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e16.toString()); BA.debugLineNum = 291;BA.debugLine="Log(LastException)";
Debug.ShouldStop(4);
c_subs.__c.runVoidMethod ("LogImpl","524117264",BA.ObjectToString(c_subs.__c.runMethod(false,"LastException",__ref.runMethod(false,"getActivityBA"))),0);
 BA.debugLineNum = 292;BA.debugLine="LogColor($\"Fecha dada: ${fKMT}, Parte Fecha: ${p";
Debug.ShouldStop(8);
c_subs.__c.runVoidMethod ("LogImpl","524117265",(RemoteObject.concat(RemoteObject.createImmutable("Fecha dada: "),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_fkmt))),RemoteObject.createImmutable(", Parte Fecha: "),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_partefecha))),RemoteObject.createImmutable(", Parte Hora: "),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_partehora))),RemoteObject.createImmutable(""))),c_subs.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 293;BA.debugLine="Return 0";
Debug.ShouldStop(16);
if (true) return BA.numberCast(long.class, 0);
 };
 BA.debugLineNum = 295;BA.debugLine="End Sub";
Debug.ShouldStop(64);
return RemoteObject.createImmutable(0L);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _getphnid(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("getPhnId (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,113);
if (RapidSub.canDelegate("getphnid")) { return __ref.runUserSub(false, "c_subs","getphnid", __ref);}
RemoteObject _t = RemoteObject.createImmutable("");
RemoteObject _s = RemoteObject.createImmutable("");
 BA.debugLineNum = 113;BA.debugLine="Sub getPhnId As String 'ignore";
Debug.ShouldStop(65536);
 BA.debugLineNum = 115;BA.debugLine="devModel = phn.Model";
Debug.ShouldStop(262144);
__ref.setField ("_devmodel" /*RemoteObject*/ ,__ref.getField(false,"_phn" /*RemoteObject*/ ).runMethod(true,"getModel"));
 BA.debugLineNum = 116;BA.debugLine="If devModel.Length <= 3 Then 'Si phn.Model esta e";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("k",__ref.getField(true,"_devmodel" /*RemoteObject*/ ).runMethod(true,"length"),BA.numberCast(double.class, 3))) { 
 BA.debugLineNum = 117;BA.debugLine="Dim t As String = phn.GetSettings(\"android_id\")";
Debug.ShouldStop(1048576);
_t = __ref.getField(false,"_phn" /*RemoteObject*/ ).runMethod(true,"GetSettings",(Object)(RemoteObject.createImmutable("android_id")));Debug.locals.put("t", _t);Debug.locals.put("t", _t);
 BA.debugLineNum = 118;BA.debugLine="devModel = t";
Debug.ShouldStop(2097152);
__ref.setField ("_devmodel" /*RemoteObject*/ ,_t);
 };
 BA.debugLineNum = 120;BA.debugLine="If devModel.Length >= 3 Then 'Si tenemos valor pa";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("g",__ref.getField(true,"_devmodel" /*RemoteObject*/ ).runMethod(true,"length"),BA.numberCast(double.class, 3))) { 
 BA.debugLineNum = 121;BA.debugLine="File.WriteString(File.DirInternal, \"phnId.txt\",";
Debug.ShouldStop(16777216);
c_subs.__c.getField(false,"File").runVoidMethod ("WriteString",(Object)(c_subs.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(BA.ObjectToString("phnId.txt")),(Object)(__ref.getField(true,"_devmodel" /*RemoteObject*/ )));
 }else 
{ BA.debugLineNum = 123;BA.debugLine="Else If devModel.Length < 3 Then ' Si no tenemos";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("<",__ref.getField(true,"_devmodel" /*RemoteObject*/ ).runMethod(true,"length"),BA.numberCast(double.class, 3))) { 
 BA.debugLineNum = 124;BA.debugLine="Dim s As String = File.ReadString(File.DirIntern";
Debug.ShouldStop(134217728);
_s = c_subs.__c.getField(false,"File").runMethod(true,"ReadString",(Object)(c_subs.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(RemoteObject.createImmutable("phnId.txt")));Debug.locals.put("s", _s);Debug.locals.put("s", _s);
 BA.debugLineNum = 125;BA.debugLine="devModel = s";
Debug.ShouldStop(268435456);
__ref.setField ("_devmodel" /*RemoteObject*/ ,_s);
 }}
;
 BA.debugLineNum = 129;BA.debugLine="Return devModel";
Debug.ShouldStop(1);
if (true) return __ref.getField(true,"_devmodel" /*RemoteObject*/ );
 BA.debugLineNum = 130;BA.debugLine="End Sub";
Debug.ShouldStop(2);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _guardaappinfo(RemoteObject __ref,RemoteObject _skmt) throws Exception{
try {
		Debug.PushSubsStack("guardaAppInfo (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,387);
if (RapidSub.canDelegate("guardaappinfo")) { return __ref.runUserSub(false, "c_subs","guardaappinfo", __ref, _skmt);}
Debug.locals.put("skmt", _skmt);
 BA.debugLineNum = 387;BA.debugLine="Sub guardaAppInfo(skmt As SQL) 'ignore";
Debug.ShouldStop(4);
 BA.debugLineNum = 388;BA.debugLine="skmt.ExecNonQuery(\"delete from CAT_VARIABLES wher";
Debug.ShouldStop(8);
_skmt.runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = 'EMPRESA' or CAT_VA_DESCRIPCION = 'APP_NAME' or CAT_VA_DESCRIPCION = 'APP_VERSION'")));
 BA.debugLineNum = 389;BA.debugLine="skmt.ExecNonQuery($\"insert into CAT_VARIABLES (CA";
Debug.ShouldStop(16);
_skmt.runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("insert into CAT_VARIABLES (CAT_VA_DESCRIPCION, CAT_VA_VALOR) values ('APP_NAME', '"),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_subs.__c.getField(false,"Application").runMethod(true,"getLabelName")))),RemoteObject.createImmutable("')")))));
 BA.debugLineNum = 390;BA.debugLine="skmt.ExecNonQuery($\"insert into CAT_VARIABLES (CA";
Debug.ShouldStop(32);
_skmt.runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("insert into CAT_VARIABLES (CAT_VA_DESCRIPCION, CAT_VA_VALOR) values ('APP_VERSION', '"),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_subs.__c.getField(false,"Application").runMethod(true,"getVersionName")))),RemoteObject.createImmutable("')")))));
 BA.debugLineNum = 391;BA.debugLine="End Sub";
Debug.ShouldStop(64);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _guardainfoenarchivo(RemoteObject __ref,RemoteObject _coords) throws Exception{
try {
		Debug.PushSubsStack("guardaInfoEnArchivo (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,144);
if (RapidSub.canDelegate("guardainfoenarchivo")) { return __ref.runUserSub(false, "c_subs","guardainfoenarchivo", __ref, _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 = 144;BA.debugLine="Sub guardaInfoEnArchivo(coords As String) 'ignore";
Debug.ShouldStop(32768);
 BA.debugLineNum = 146;BA.debugLine="Dim OrigFormat As String=DateTime.DateFormat  'sa";
Debug.ShouldStop(131072);
_origformat = c_subs.__c.getField(false,"DateTime").runMethod(true,"getDateFormat");Debug.locals.put("OrigFormat", _origformat);Debug.locals.put("OrigFormat", _origformat);
 BA.debugLineNum = 147;BA.debugLine="DateTime.DateFormat=\"MMM-dd HH:mm:ss\"";
Debug.ShouldStop(262144);
c_subs.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MMM-dd HH:mm:ss"));
 BA.debugLineNum = 148;BA.debugLine="Dim lastUpdate As String=DateTime.Date(DateTime.N";
Debug.ShouldStop(524288);
_lastupdate = c_subs.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_subs.__c.getField(false,"DateTime").runMethod(true,"getNow")));Debug.locals.put("lastUpdate", _lastupdate);Debug.locals.put("lastUpdate", _lastupdate);
 BA.debugLineNum = 149;BA.debugLine="DateTime.DateFormat=OrigFormat  'return to orig d";
Debug.ShouldStop(1048576);
c_subs.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",_origformat);
 BA.debugLineNum = 151;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 = 152;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.Di";
Debug.ShouldStop(8388608);
_out = RemoteObject.createNew ("anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper");
_out = c_subs.__c.getField(false,"File").runMethod(false,"OpenOutput",(Object)(c_subs.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(BA.ObjectToString("gps.txt")),(Object)(c_subs.__c.getField(true,"True")));Debug.locals.put("out", _out);Debug.locals.put("out", _out);
 BA.debugLineNum = 153;BA.debugLine="Dim s As String = ubic & CRLF";
Debug.ShouldStop(16777216);
_s = RemoteObject.concat(_ubic,c_subs.__c.getField(true,"CRLF"));Debug.locals.put("s", _s);Debug.locals.put("s", _s);
 BA.debugLineNum = 154;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 = 155;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 = 156;BA.debugLine="out.Close";
Debug.ShouldStop(134217728);
_out.runVoidMethod ("Close");
 BA.debugLineNum = 157;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 __ref,RemoteObject _coords) throws Exception{
try {
		Debug.PushSubsStack("guardaInfoEnBD (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,160);
if (RapidSub.canDelegate("guardainfoenbd")) { return __ref.runUserSub(false, "c_subs","guardainfoenbd", __ref, _coords);}
RemoteObject _latlon = null;
Debug.locals.put("coords", _coords);
 BA.debugLineNum = 160;BA.debugLine="Sub guardaInfoEnBD(coords As String) 'ignore";
Debug.ShouldStop(-2147483648);
 BA.debugLineNum = 161;BA.debugLine="Log(\"Guardamos ubicacion en BD - \"&coords)";
Debug.ShouldStop(1);
c_subs.__c.runVoidMethod ("LogImpl","523592961",RemoteObject.concat(RemoteObject.createImmutable("Guardamos ubicacion en BD - "),_coords),0);
 BA.debugLineNum = 162;BA.debugLine="Try";
Debug.ShouldStop(2);
try { BA.debugLineNum = 163;BA.debugLine="Dim latlon() As String = Regex.Split(\"\\|\", coord";
Debug.ShouldStop(4);
_latlon = c_subs.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\|")),(Object)(_coords));Debug.locals.put("latlon", _latlon);Debug.locals.put("latlon", _latlon);
 BA.debugLineNum = 164;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 = c_subs.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(",")),(Object)(_coords));Debug.locals.put("latlon", _latlon);};
 BA.debugLineNum = 165;BA.debugLine="If subsLogs Then Log(\"LatLon=\"&latlon)";
Debug.ShouldStop(16);
if (__ref.getField(true,"_subslogs" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
c_subs.__c.runVoidMethod ("LogImpl","523592965",RemoteObject.concat(RemoteObject.createImmutable("LatLon="),_latlon),0);};
 BA.debugLineNum = 166;BA.debugLine="kmt.ExecNonQuery2(\"INSERT INTO RUTA_GPS(FECHA, L";
Debug.ShouldStop(32);
__ref.getField(false,"_kmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO RUTA_GPS(FECHA, LAT, LON) VALUES (?,?,?)")),(Object)(c_subs.__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",__ref.getField(false, "ba"), e8.toString()); BA.debugLineNum = 168;BA.debugLine="LogColor(LastException, Colors.red)";
Debug.ShouldStop(128);
c_subs.__c.runVoidMethod ("LogImpl","523592968",BA.ObjectToString(c_subs.__c.runMethod(false,"LastException",__ref.runMethod(false,"getActivityBA"))),c_subs.__c.getField(false,"Colors").getField(true,"Red"));
 };
 BA.debugLineNum = 170;BA.debugLine="End Sub";
Debug.ShouldStop(512);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _inicializabd(RemoteObject __ref,RemoteObject _ruta,RemoteObject _bdname) throws Exception{
try {
		Debug.PushSubsStack("inicializaBD (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,404);
if (RapidSub.canDelegate("inicializabd")) { return __ref.runUserSub(false, "c_subs","inicializabd", __ref, _ruta, _bdname);}
RemoteObject _skmt = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL");
Debug.locals.put("ruta", _ruta);
Debug.locals.put("BDName", _bdname);
 BA.debugLineNum = 404;BA.debugLine="Sub inicializaBD(ruta As String, BDName As String)";
Debug.ShouldStop(524288);
 BA.debugLineNum = 405;BA.debugLine="Dim skmt As SQL";
Debug.ShouldStop(1048576);
_skmt = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL");Debug.locals.put("skmt", _skmt);
 BA.debugLineNum = 406;BA.debugLine="If File.Exists(ruta, BDName) = False Then";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("=",c_subs.__c.getField(false,"File").runMethod(true,"Exists",(Object)(_ruta),(Object)(_bdname)),c_subs.__c.getField(true,"False"))) { 
 BA.debugLineNum = 407;BA.debugLine="File.Copy(File.DirAssets, BDName, ruta, BDName)";
Debug.ShouldStop(4194304);
c_subs.__c.getField(false,"File").runVoidMethod ("Copy",(Object)(c_subs.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(_bdname),(Object)(_ruta),(Object)(_bdname));
 BA.debugLineNum = 408;BA.debugLine="LogColor($\"Copiamos ${BDName} de ${File.DirAsset";
Debug.ShouldStop(8388608);
c_subs.__c.runVoidMethod ("LogImpl","524903684",(RemoteObject.concat(RemoteObject.createImmutable("Copiamos "),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_bdname))),RemoteObject.createImmutable(" de "),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_subs.__c.getField(false,"File").runMethod(true,"getDirAssets")))),RemoteObject.createImmutable(" a "),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_ruta))),RemoteObject.createImmutable(""))),c_subs.__c.getField(false,"Colors").getField(true,"Green"));
 };
 BA.debugLineNum = 410;BA.debugLine="skmt.Initialize(ruta, BDName, True)";
Debug.ShouldStop(33554432);
_skmt.runVoidMethod ("Initialize",(Object)(_ruta),(Object)(_bdname),(Object)(c_subs.__c.getField(true,"True")));
 BA.debugLineNum = 411;BA.debugLine="Return skmt";
Debug.ShouldStop(67108864);
if (true) return _skmt;
 BA.debugLineNum = 412;BA.debugLine="End Sub";
Debug.ShouldStop(134217728);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _initialize(RemoteObject __ref,RemoteObject _ba,RemoteObject _vcallback,RemoteObject _veventname) throws Exception{
try {
		Debug.PushSubsStack("Initialize (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,19);
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "c_subs","initialize", __ref, _ba, _vcallback, _veventname);}
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
Debug.locals.put("ba", _ba);
Debug.locals.put("vCallback", _vcallback);
Debug.locals.put("vEventName", _veventname);
 BA.debugLineNum = 19;BA.debugLine="Public Sub Initialize (vCallback As Object, vEvent";
Debug.ShouldStop(262144);
 BA.debugLineNum = 20;BA.debugLine="reqsList.Initialize";
Debug.ShouldStop(524288);
__ref.getField(false,"_reqslist" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 21;BA.debugLine="EventName = vEventName";
Debug.ShouldStop(1048576);
__ref.setField ("_eventname" /*RemoteObject*/ ,_veventname);
 BA.debugLineNum = 22;BA.debugLine="CallBack = vCallback";
Debug.ShouldStop(2097152);
__ref.setField ("_callback" /*RemoteObject*/ ,_vcallback);
 BA.debugLineNum = 23;BA.debugLine="db = dbInit";
Debug.ShouldStop(4194304);
__ref.setField ("_db" /*RemoteObject*/ ,__ref.runClassMethod (SHARK2.keymon.com.mx.c_subs.class, "_dbinit" /*RemoteObject*/ ));
 BA.debugLineNum = 24;BA.debugLine="reqManager = reqManagerInit";
Debug.ShouldStop(8388608);
__ref.setField ("_reqmanager" /*RemoteObject*/ ,__ref.runClassMethod (SHARK2.keymon.com.mx.c_subs.class, "_reqmanagerinit" /*RemoteObject*/ ));
 BA.debugLineNum = 25;BA.debugLine="Return Me";
Debug.ShouldStop(16777216);
if (true) return __ref;
 BA.debugLineNum = 26;BA.debugLine="End Sub";
Debug.ShouldStop(33554432);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _installapk(RemoteObject __ref,RemoteObject _dir,RemoteObject _apk) throws Exception{
try {
		Debug.PushSubsStack("InstallAPK (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,297);
if (RapidSub.canDelegate("installapk")) { return __ref.runUserSub(false, "c_subs","installapk", __ref, _dir, _apk);}
RemoteObject _i = RemoteObject.declareNull("anywheresoftware.b4a.objects.IntentWrapper");
Debug.locals.put("dir", _dir);
Debug.locals.put("apk", _apk);
 BA.debugLineNum = 297;BA.debugLine="Sub InstallAPK(dir As String, apk As String) 'igno";
Debug.ShouldStop(256);
 BA.debugLineNum = 298;BA.debugLine="If File.Exists(dir, apk) Then";
Debug.ShouldStop(512);
if (c_subs.__c.getField(false,"File").runMethod(true,"Exists",(Object)(_dir),(Object)(_apk)).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 299;BA.debugLine="Dim i As Intent";
Debug.ShouldStop(1024);
_i = RemoteObject.createNew ("anywheresoftware.b4a.objects.IntentWrapper");Debug.locals.put("i", _i);
 BA.debugLineNum = 300;BA.debugLine="i.Initialize(i.ACTION_VIEW, \"file://\" & File.Com";
Debug.ShouldStop(2048);
_i.runVoidMethod ("Initialize",(Object)(_i.getField(true,"ACTION_VIEW")),(Object)(RemoteObject.concat(RemoteObject.createImmutable("file://"),c_subs.__c.getField(false,"File").runMethod(true,"Combine",(Object)(_dir),(Object)(_apk)))));
 BA.debugLineNum = 301;BA.debugLine="i.SetType(\"application/vnd.android.package-archi";
Debug.ShouldStop(4096);
_i.runVoidMethod ("SetType",(Object)(RemoteObject.createImmutable("application/vnd.android.package-archive")));
 BA.debugLineNum = 302;BA.debugLine="StartActivity(i)";
Debug.ShouldStop(8192);
c_subs.__c.runVoidMethod ("StartActivity",__ref.getField(false, "ba"),(Object)((_i.getObject())));
 };
 BA.debugLineNum = 304;BA.debugLine="End Sub";
Debug.ShouldStop(32768);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _jobdone(RemoteObject __ref,RemoteObject _job) throws Exception{
try {
		Debug.PushSubsStack("JobDone (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,78);
if (RapidSub.canDelegate("jobdone")) { return __ref.runUserSub(false, "c_subs","jobdone", __ref, _job);}
RemoteObject _resultado = RemoteObject.declareNull("SHARK2.keymon.com.mx.dbrequestmanager._dbresult");
RemoteObject _records = null;
RemoteObject _k = RemoteObject.createImmutable("");
Debug.locals.put("Job", _job);
 BA.debugLineNum = 78;BA.debugLine="Sub JobDone(Job As HttpJob)";
Debug.ShouldStop(8192);
 BA.debugLineNum = 79;BA.debugLine="LogColor(\"C_SUBS JOBDONE - \" & Job.Success, Color";
Debug.ShouldStop(16384);
c_subs.__c.runVoidMethod ("LogImpl","523330817",RemoteObject.concat(RemoteObject.createImmutable("C_SUBS JOBDONE - "),_job.getField(true,"_success" /*RemoteObject*/ )),c_subs.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 80;BA.debugLine="If Job.Success = False Then";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_success" /*RemoteObject*/ ),c_subs.__c.getField(true,"False"))) { 
 BA.debugLineNum = 81;BA.debugLine="Log($\"Error en el request ${Job.Tag}\"$)";
Debug.ShouldStop(65536);
c_subs.__c.runVoidMethod ("LogImpl","523330819",(RemoteObject.concat(RemoteObject.createImmutable("Error en el request "),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_job.getField(false,"_tag" /*RemoteObject*/ ))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 82;BA.debugLine="LogColor(\"** \" & Job.Tag & \" Error: \" & Job.Erro";
Debug.ShouldStop(131072);
c_subs.__c.runVoidMethod ("LogImpl","523330820",RemoteObject.concat(RemoteObject.createImmutable("** "),_job.getField(false,"_tag" /*RemoteObject*/ ),RemoteObject.createImmutable(" Error: "),_job.getField(true,"_errormessage" /*RemoteObject*/ )),c_subs.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 83;BA.debugLine="If reqsList.IndexOf(Job.Tag) > -1 Then reqsList.";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_reqslist" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)(_job.getField(false,"_tag" /*RemoteObject*/ ))),BA.numberCast(double.class, -(double) (0 + 1)))) { 
__ref.getField(false,"_reqslist" /*RemoteObject*/ ).runVoidMethod ("RemoveAt",(Object)(__ref.getField(false,"_reqslist" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)(_job.getField(false,"_tag" /*RemoteObject*/ )))));};
 BA.debugLineNum = 84;BA.debugLine="reqError = True";
Debug.ShouldStop(524288);
__ref.setField ("_reqerror" /*RemoteObject*/ ,c_subs.__c.getField(true,"True"));
 }else {
 BA.debugLineNum = 86;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 87;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
Debug.ShouldStop(4194304);
_resultado = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("resultado", _resultado);Debug.locals.put("resultado", _resultado);
 BA.debugLineNum = 88;BA.debugLine="If reqsList.IndexOf(resultado.Tag) > -1 Then re";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_reqslist" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)(_resultado.getField(false,"Tag" /*RemoteObject*/ ))),BA.numberCast(double.class, -(double) (0 + 1)))) { 
__ref.getField(false,"_reqslist" /*RemoteObject*/ ).runVoidMethod ("RemoveAt",(Object)(__ref.getField(false,"_reqslist" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)(_resultado.getField(false,"Tag" /*RemoteObject*/ )))));};
 BA.debugLineNum = 89;BA.debugLine="If resultado.Tag = \"select_fecha\" Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",_resultado.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("select_fecha")))) { 
 BA.debugLineNum = 90;BA.debugLine="For Each records() As Object In resultado.Rows";
Debug.ShouldStop(33554432);
{
final RemoteObject group12 = _resultado.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen12 = group12.runMethod(true,"getSize").<Integer>get()
;int index12 = 0;
;
for (; index12 < groupLen12;index12++){
_records = (group12.runMethod(false,"Get",index12));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 91;BA.debugLine="For Each k As String In resultado.Columns.Key";
Debug.ShouldStop(67108864);
{
final RemoteObject group13 = _resultado.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Keys");
final int groupLen13 = group13.runMethod(true,"getSize").<Integer>get()
;int index13 = 0;
;
for (; index13 < groupLen13;index13++){
_k = BA.ObjectToString(group13.runMethod(false,"Get",index13));Debug.locals.put("k", _k);
Debug.locals.put("k", _k);
 BA.debugLineNum = 92;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
Debug.ShouldStop(134217728);
c_subs.__c.runVoidMethod ("LogImpl","523330830",RemoteObject.concat(_resultado.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(": "),_k,RemoteObject.createImmutable(": "),_records.getArrayElement(false,BA.numberCast(int.class, _resultado.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((_k)))))),0);
 }
}Debug.locals.put("k", _k);
;
 }
}Debug.locals.put("records", _records);
;
 };
 };
 };
 BA.debugLineNum = 98;BA.debugLine="Log(reqsList.Size)";
Debug.ShouldStop(2);
c_subs.__c.runVoidMethod ("LogImpl","523330836",BA.NumberToString(__ref.getField(false,"_reqslist" /*RemoteObject*/ ).runMethod(true,"getSize")),0);
 BA.debugLineNum = 99;BA.debugLine="If reqsList.Size = 0 Then 'Ya no hay DBReqs pendi";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_reqslist" /*RemoteObject*/ ).runMethod(true,"getSize"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 100;BA.debugLine="Log(reqError)";
Debug.ShouldStop(8);
c_subs.__c.runVoidMethod ("LogImpl","523330838",BA.ObjectToString(__ref.getField(true,"_reqerror" /*RemoteObject*/ )),0);
 BA.debugLineNum = 101;BA.debugLine="If Not(reqError) Then";
Debug.ShouldStop(16);
if (c_subs.__c.runMethod(true,"Not",(Object)(__ref.getField(true,"_reqerror" /*RemoteObject*/ ))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 102;BA.debugLine="envioOk(True)";
Debug.ShouldStop(32);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_subs.class, "_enviook" /*RemoteObject*/ ,(Object)(c_subs.__c.getField(true,"True")));
 }else {
 BA.debugLineNum = 104;BA.debugLine="envioOk(False)";
Debug.ShouldStop(128);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_subs.class, "_enviook" /*RemoteObject*/ ,(Object)(c_subs.__c.getField(true,"False")));
 };
 BA.debugLineNum = 106;BA.debugLine="reqError = False";
Debug.ShouldStop(512);
__ref.setField ("_reqerror" /*RemoteObject*/ ,c_subs.__c.getField(true,"False"));
 BA.debugLineNum = 107;BA.debugLine="Log(\"-= FIN =-\")";
Debug.ShouldStop(1024);
c_subs.__c.runVoidMethod ("LogImpl","523330845",RemoteObject.createImmutable("-= FIN =-"),0);
 };
 BA.debugLineNum = 109;BA.debugLine="Job.Release";
Debug.ShouldStop(4096);
_job.runClassMethod (SHARK2.keymon.com.mx.httpjob.class, "_release" /*RemoteObject*/ );
 BA.debugLineNum = 110;BA.debugLine="End Sub";
Debug.ShouldStop(8192);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _log2db(RemoteObject __ref,RemoteObject _texto) throws Exception{
try {
		Debug.PushSubsStack("log2DB (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,216);
if (RapidSub.canDelegate("log2db")) { return __ref.runUserSub(false, "c_subs","log2db", __ref, _texto);}
Debug.locals.put("texto", _texto);
 BA.debugLineNum = 216;BA.debugLine="Sub log2DB(texto As String) 'ignore";
Debug.ShouldStop(8388608);
 BA.debugLineNum = 217;BA.debugLine="LogColor(fechaKMT(DateTime.Now)&\" - log2BD: '\"&te";
Debug.ShouldStop(16777216);
c_subs.__c.runVoidMethod ("LogImpl","523855105",RemoteObject.concat(__ref.runClassMethod (SHARK2.keymon.com.mx.c_subs.class, "_fechakmt" /*RemoteObject*/ ,(Object)(BA.NumberToString(c_subs.__c.getField(false,"DateTime").runMethod(true,"getNow")))),RemoteObject.createImmutable(" - log2BD: '"),_texto,RemoteObject.createImmutable("'")),c_subs.__c.getField(false,"Colors").getField(true,"LightGray"));
 BA.debugLineNum = 218;BA.debugLine="kmt.ExecNonQuery2(\"INSERT INTO bitacora(fecha, te";
Debug.ShouldStop(33554432);
__ref.getField(false,"_kmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO bitacora(fecha, texto) VALUES (?,?)")),(Object)(c_subs.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.runClassMethod (SHARK2.keymon.com.mx.c_subs.class, "_fechakmt" /*RemoteObject*/ ,(Object)(BA.NumberToString(c_subs.__c.getField(false,"DateTime").runMethod(true,"getNow"))))),(_texto)})))));
 BA.debugLineNum = 219;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _logjobdoneresultados(RemoteObject __ref,RemoteObject _resultado) throws Exception{
try {
		Debug.PushSubsStack("logJobDoneResultados (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,394);
if (RapidSub.canDelegate("logjobdoneresultados")) { return __ref.runUserSub(false, "c_subs","logjobdoneresultados", __ref, _resultado);}
RemoteObject _records = null;
RemoteObject _k = RemoteObject.createImmutable("");
Debug.locals.put("resultado", _resultado);
 BA.debugLineNum = 394;BA.debugLine="Sub logJobDoneResultados(resultado As DBResult) 'i";
Debug.ShouldStop(512);
 BA.debugLineNum = 395;BA.debugLine="For Each records() As Object In resultado.Rows";
Debug.ShouldStop(1024);
{
final RemoteObject group1 = _resultado.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen1 = group1.runMethod(true,"getSize").<Integer>get()
;int index1 = 0;
;
for (; index1 < groupLen1;index1++){
_records = (group1.runMethod(false,"Get",index1));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 396;BA.debugLine="LogColor($\"====== ${resultado.Tag} - REGISTROS =";
Debug.ShouldStop(2048);
c_subs.__c.runVoidMethod ("LogImpl","524838146",(RemoteObject.concat(RemoteObject.createImmutable("====== "),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_resultado.getField(false,"Tag" /*RemoteObject*/ ))),RemoteObject.createImmutable(" - REGISTROS = "),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_resultado.getField(false,"Rows" /*RemoteObject*/ ).runMethod(true,"getSize")))),RemoteObject.createImmutable(""))),c_subs.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 215)),(Object)(BA.numberCast(int.class, 37)),(Object)(BA.numberCast(int.class, 0))));
 BA.debugLineNum = 397;BA.debugLine="For Each k As String In resultado.Columns.Keys";
Debug.ShouldStop(4096);
{
final RemoteObject group3 = _resultado.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Keys");
final int groupLen3 = group3.runMethod(true,"getSize").<Integer>get()
;int index3 = 0;
;
for (; index3 < groupLen3;index3++){
_k = BA.ObjectToString(group3.runMethod(false,"Get",index3));Debug.locals.put("k", _k);
Debug.locals.put("k", _k);
 BA.debugLineNum = 398;BA.debugLine="LogColor(k & \" = \" & records(resultado.Columns.";
Debug.ShouldStop(8192);
c_subs.__c.runVoidMethod ("LogImpl","524838148",RemoteObject.concat(_k,RemoteObject.createImmutable(" = "),_records.getArrayElement(false,BA.numberCast(int.class, _resultado.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((_k)))))),c_subs.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 215)),(Object)(BA.numberCast(int.class, 37)),(Object)(BA.numberCast(int.class, 0))));
 }
}Debug.locals.put("k", _k);
;
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 401;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _masdexxmins(RemoteObject __ref,RemoteObject _hora,RemoteObject _mins) throws Exception{
try {
		Debug.PushSubsStack("masDeXXMins (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,222);
if (RapidSub.canDelegate("masdexxmins")) { return __ref.runUserSub(false, "c_subs","masdexxmins", __ref, _hora, _mins);}
Debug.locals.put("hora", _hora);
Debug.locals.put("mins", _mins);
 BA.debugLineNum = 222;BA.debugLine="Sub masDeXXMins(hora As Int, mins As Int) As Boole";
Debug.ShouldStop(536870912);
 BA.debugLineNum = 223;BA.debugLine="If (hora + mins * DateTime.TicksPerMinute) < Date";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("<",(RemoteObject.solve(new RemoteObject[] {_hora,_mins,c_subs.__c.getField(false,"DateTime").getField(true,"TicksPerMinute")}, "+*",1, 2)),c_subs.__c.getField(false,"DateTime").runMethod(true,"getNow"))) { 
 BA.debugLineNum = 224;BA.debugLine="Return True";
Debug.ShouldStop(-2147483648);
if (true) return c_subs.__c.getField(true,"True");
 }else {
 BA.debugLineNum = 226;BA.debugLine="Return False";
Debug.ShouldStop(2);
if (true) return c_subs.__c.getField(true,"False");
 };
 BA.debugLineNum = 228;BA.debugLine="End Sub";
Debug.ShouldStop(8);
return RemoteObject.createImmutable(false);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _masdexxminskmt(RemoteObject __ref,RemoteObject _hora,RemoteObject _mins) throws Exception{
try {
		Debug.PushSubsStack("masDeXXMinsKMT (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,231);
if (RapidSub.canDelegate("masdexxminskmt")) { return __ref.runUserSub(false, "c_subs","masdexxminskmt", __ref, _hora, _mins);}
Debug.locals.put("hora", _hora);
Debug.locals.put("mins", _mins);
 BA.debugLineNum = 231;BA.debugLine="Sub masDeXXMinsKMT(hora As String, mins As Int) As";
Debug.ShouldStop(64);
 BA.debugLineNum = 232;BA.debugLine="Try";
Debug.ShouldStop(128);
try { BA.debugLineNum = 234;BA.debugLine="If fechaKMT2Ticks(hora) + mins * DateTime.TicksP";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("<",RemoteObject.solve(new RemoteObject[] {__ref.runClassMethod (SHARK2.keymon.com.mx.c_subs.class, "_fechakmt2ticks" /*RemoteObject*/ ,(Object)(_hora)),_mins,c_subs.__c.getField(false,"DateTime").getField(true,"TicksPerMinute")}, "+*",1, 2),c_subs.__c.getField(false,"DateTime").runMethod(true,"getNow"))) { 
 BA.debugLineNum = 236;BA.debugLine="Return True";
Debug.ShouldStop(2048);
Debug.CheckDeviceExceptions();if (true) return c_subs.__c.getField(true,"True");
 }else {
 BA.debugLineNum = 239;BA.debugLine="Return False";
Debug.ShouldStop(16384);
Debug.CheckDeviceExceptions();if (true) return c_subs.__c.getField(true,"False");
 };
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e8) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e8.toString()); BA.debugLineNum = 242;BA.debugLine="Log(LastException)";
Debug.ShouldStop(131072);
c_subs.__c.runVoidMethod ("LogImpl","523986187",BA.ObjectToString(c_subs.__c.runMethod(false,"LastException",__ref.runMethod(false,"getActivityBA"))),0);
 };
 BA.debugLineNum = 244;BA.debugLine="End Sub";
Debug.ShouldStop(524288);
return RemoteObject.createImmutable(false);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _notihigh(RemoteObject __ref,RemoteObject _title,RemoteObject _body,RemoteObject _id,RemoteObject _activity) throws Exception{
try {
		Debug.PushSubsStack("notiHigh (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,478);
if (RapidSub.canDelegate("notihigh")) { return __ref.runUserSub(false, "c_subs","notihigh", __ref, _title, _body, _id, _activity);}
RemoteObject _notif = RemoteObject.declareNull("anywheresoftware.b4a.objects.NotificationWrapper");
Debug.locals.put("title", _title);
Debug.locals.put("body", _body);
Debug.locals.put("id", _id);
Debug.locals.put("activity", _activity);
 BA.debugLineNum = 478;BA.debugLine="Sub notiHigh(title As String, body As String, id A";
Debug.ShouldStop(536870912);
 BA.debugLineNum = 479;BA.debugLine="activity = Main";
Debug.ShouldStop(1073741824);
_activity = (c_subs._main.getObject());Debug.locals.put("activity", _activity);
 BA.debugLineNum = 480;BA.debugLine="Private notif As Notification";
Debug.ShouldStop(-2147483648);
_notif = RemoteObject.createNew ("anywheresoftware.b4a.objects.NotificationWrapper");Debug.locals.put("notif", _notif);
 BA.debugLineNum = 481;BA.debugLine="notif.Initialize2(notif.IMPORTANCE_HIGH)";
Debug.ShouldStop(1);
_notif.runVoidMethod ("Initialize2",(Object)(_notif.getField(true,"IMPORTANCE_HIGH")));
 BA.debugLineNum = 482;BA.debugLine="notif.Icon = \"icon\"";
Debug.ShouldStop(2);
_notif.runVoidMethod ("setIcon",BA.ObjectToString("icon"));
 BA.debugLineNum = 483;BA.debugLine="notif.Vibrate = False";
Debug.ShouldStop(4);
_notif.runVoidMethod ("setVibrate",c_subs.__c.getField(true,"False"));
 BA.debugLineNum = 484;BA.debugLine="notif.Sound = False";
Debug.ShouldStop(8);
_notif.runVoidMethod ("setSound",c_subs.__c.getField(true,"False"));
 BA.debugLineNum = 485;BA.debugLine="notif.AutoCancel = True";
Debug.ShouldStop(16);
_notif.runVoidMethod ("setAutoCancel",c_subs.__c.getField(true,"True"));
 BA.debugLineNum = 487;BA.debugLine="notif.SetInfo(title, body, activity)";
Debug.ShouldStop(64);
_notif.runVoidMethod ("SetInfoNew",__ref.getField(false, "ba"),(Object)(BA.ObjectToCharSequence(_title)),(Object)(BA.ObjectToCharSequence(_body)),(Object)(_activity));
 BA.debugLineNum = 489;BA.debugLine="notif.Notify(id)";
Debug.ShouldStop(256);
_notif.runVoidMethod ("Notify",(Object)(BA.numberCast(int.class, _id)));
 BA.debugLineNum = 490;BA.debugLine="End Sub";
Debug.ShouldStop(512);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _notilowreturn(RemoteObject __ref,RemoteObject _title,RemoteObject _body,RemoteObject _id) throws Exception{
try {
		Debug.PushSubsStack("notiLowReturn (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,493);
if (RapidSub.canDelegate("notilowreturn")) { return __ref.runUserSub(false, "c_subs","notilowreturn", __ref, _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 = 493;BA.debugLine="Sub notiLowReturn(title As String, Body As String,";
Debug.ShouldStop(4096);
 BA.debugLineNum = 494;BA.debugLine="Private notification As Notification";
Debug.ShouldStop(8192);
_notification = RemoteObject.createNew ("anywheresoftware.b4a.objects.NotificationWrapper");Debug.locals.put("notification", _notification);
 BA.debugLineNum = 495;BA.debugLine="notification.Initialize2(notification.IMPORTANCE_";
Debug.ShouldStop(16384);
_notification.runVoidMethod ("Initialize2",(Object)(_notification.getField(true,"IMPORTANCE_LOW")));
 BA.debugLineNum = 497;BA.debugLine="notification.Icon = \"icon\"";
Debug.ShouldStop(65536);
_notification.runVoidMethod ("setIcon",BA.ObjectToString("icon"));
 BA.debugLineNum = 498;BA.debugLine="notification.Sound = False";
Debug.ShouldStop(131072);
_notification.runVoidMethod ("setSound",c_subs.__c.getField(true,"False"));
 BA.debugLineNum = 499;BA.debugLine="notification.Vibrate = False";
Debug.ShouldStop(262144);
_notification.runVoidMethod ("setVibrate",c_subs.__c.getField(true,"False"));
 BA.debugLineNum = 500;BA.debugLine="notification.SetInfo(title, Body, Main)";
Debug.ShouldStop(524288);
_notification.runVoidMethod ("SetInfoNew",__ref.getField(false, "ba"),(Object)(BA.ObjectToCharSequence(_title)),(Object)(BA.ObjectToCharSequence(_body)),(Object)((c_subs._main.getObject())));
 BA.debugLineNum = 501;BA.debugLine="notification.Notify(id)";
Debug.ShouldStop(1048576);
_notification.runVoidMethod ("Notify",(Object)(_id));
 BA.debugLineNum = 503;BA.debugLine="Return notification";
Debug.ShouldStop(4194304);
if (true) return _notification;
 BA.debugLineNum = 504;BA.debugLine="End Sub";
Debug.ShouldStop(8388608);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _panelvisible(RemoteObject __ref,RemoteObject _panel,RemoteObject _top,RemoteObject _left) throws Exception{
try {
		Debug.PushSubsStack("panelVisible (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,341);
if (RapidSub.canDelegate("panelvisible")) { return __ref.runUserSub(false, "c_subs","panelvisible", __ref, _panel, _top, _left);}
Debug.locals.put("panel", _panel);
Debug.locals.put("top", _top);
Debug.locals.put("left", _left);
 BA.debugLineNum = 341;BA.debugLine="Sub panelVisible(panel As Panel, top As Int, left";
Debug.ShouldStop(1048576);
 BA.debugLineNum = 342;BA.debugLine="panel.BringToFront";
Debug.ShouldStop(2097152);
_panel.runVoidMethod ("BringToFront");
 BA.debugLineNum = 343;BA.debugLine="panel.Visible = True";
Debug.ShouldStop(4194304);
_panel.runMethod(true,"setVisible",c_subs.__c.getField(true,"True"));
 BA.debugLineNum = 344;BA.debugLine="panel.Top = top";
Debug.ShouldStop(8388608);
_panel.runMethod(true,"setTop",_top);
 BA.debugLineNum = 345;BA.debugLine="panel.Left = left";
Debug.ShouldStop(16777216);
_panel.runMethod(true,"setLeft",_left);
 BA.debugLineNum = 346;BA.debugLine="End Sub";
Debug.ShouldStop(33554432);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _reqmanagerinit(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("reqManagerInit (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,45);
if (RapidSub.canDelegate("reqmanagerinit")) { return __ref.runUserSub(false, "c_subs","reqmanagerinit", __ref);}
RemoteObject _rm = RemoteObject.declareNull("SHARK2.keymon.com.mx.dbrequestmanager");
 BA.debugLineNum = 45;BA.debugLine="Sub reqManagerInit As DBRequestManager";
Debug.ShouldStop(4096);
 BA.debugLineNum = 46;BA.debugLine="Private rm As DBRequestManager";
Debug.ShouldStop(8192);
_rm = RemoteObject.createNew ("SHARK2.keymon.com.mx.dbrequestmanager");Debug.locals.put("rm", _rm);
 BA.debugLineNum = 47;BA.debugLine="rm.Initialize(Me, traeDBReqServerDeBD(db))";
Debug.ShouldStop(16384);
_rm.runClassMethod (SHARK2.keymon.com.mx.dbrequestmanager.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref),(Object)(__ref.runClassMethod (SHARK2.keymon.com.mx.c_subs.class, "_traedbreqserverdebd" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_db" /*RemoteObject*/ )))));
 BA.debugLineNum = 48;BA.debugLine="Log($\"Inicializamos reqManager con ${traeDBReqSer";
Debug.ShouldStop(32768);
c_subs.__c.runVoidMethod ("LogImpl","523068675",(RemoteObject.concat(RemoteObject.createImmutable("Inicializamos reqManager con "),c_subs.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.runClassMethod (SHARK2.keymon.com.mx.c_subs.class, "_traedbreqserverdebd" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_db" /*RemoteObject*/ )))))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 49;BA.debugLine="Return rm";
Debug.ShouldStop(65536);
if (true) return _rm;
 BA.debugLineNum = 50;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _reqmanagerreinit(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("reqManagerReInit (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,53);
if (RapidSub.canDelegate("reqmanagerreinit")) { return __ref.runUserSub(false, "c_subs","reqmanagerreinit", __ref);}
 BA.debugLineNum = 53;BA.debugLine="Sub reqManagerReInit";
Debug.ShouldStop(1048576);
 BA.debugLineNum = 54;BA.debugLine="Log(\"reqManager ReInit\")";
Debug.ShouldStop(2097152);
c_subs.__c.runVoidMethod ("LogImpl","523134209",RemoteObject.createImmutable("reqManager ReInit"),0);
 BA.debugLineNum = 55;BA.debugLine="reqManager = reqManagerInit";
Debug.ShouldStop(4194304);
__ref.setField ("_reqmanager" /*RemoteObject*/ ,__ref.runClassMethod (SHARK2.keymon.com.mx.c_subs.class, "_reqmanagerinit" /*RemoteObject*/ ));
 BA.debugLineNum = 56;BA.debugLine="End Sub";
Debug.ShouldStop(8388608);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traealmacen(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("traeAlmacen (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,507);
if (RapidSub.canDelegate("traealmacen")) { return __ref.runUserSub(false, "c_subs","traealmacen", __ref);}
RemoteObject _c = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _a = RemoteObject.createImmutable("");
 BA.debugLineNum = 507;BA.debugLine="Sub traeAlmacen As String 'ignore";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 508;BA.debugLine="Private c As Cursor";
Debug.ShouldStop(134217728);
_c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");Debug.locals.put("c", _c);
 BA.debugLineNum = 509;BA.debugLine="Private a As String";
Debug.ShouldStop(268435456);
_a = RemoteObject.createImmutable("");Debug.locals.put("a", _a);
 BA.debugLineNum = 510;BA.debugLine="c = db.ExecQuery(\"select  ID_ALMACEN from CAT_ALM";
Debug.ShouldStop(536870912);
_c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), __ref.getField(false,"_db" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select  ID_ALMACEN from CAT_ALMACEN"))));Debug.locals.put("c", _c);
 BA.debugLineNum = 511;BA.debugLine="c.Position = 0";
Debug.ShouldStop(1073741824);
_c.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 512;BA.debugLine="a = C.GetString(\"ID_ALMACEN\")";
Debug.ShouldStop(-2147483648);
_a = _c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("ID_ALMACEN")));Debug.locals.put("a", _a);
 BA.debugLineNum = 513;BA.debugLine="c.Close";
Debug.ShouldStop(1);
_c.runVoidMethod ("Close");
 BA.debugLineNum = 514;BA.debugLine="Return a";
Debug.ShouldStop(2);
if (true) return _a;
 BA.debugLineNum = 515;BA.debugLine="End Sub";
Debug.ShouldStop(4);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traedbreqserverdebd(RemoteObject __ref,RemoteObject _dbx) throws Exception{
try {
		Debug.PushSubsStack("traeDBReqServerDeBD (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,436);
if (RapidSub.canDelegate("traedbreqserverdebd")) { return __ref.runUserSub(false, "c_subs","traedbreqserverdebd", __ref, _dbx);}
RemoteObject _srvr = RemoteObject.createImmutable("");
RemoteObject _rs = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.ResultSetWrapper");
Debug.locals.put("dbx", _dbx);
 BA.debugLineNum = 436;BA.debugLine="Sub traeDBReqServerDeBD(dbx As SQL) As String 'ign";
Debug.ShouldStop(524288);
 BA.debugLineNum = 437;BA.debugLine="Dim srvr As String = \"N/A\"";
Debug.ShouldStop(1048576);
_srvr = BA.ObjectToString("N/A");Debug.locals.put("srvr", _srvr);Debug.locals.put("srvr", _srvr);
 BA.debugLineNum = 438;BA.debugLine="Dim rs As ResultSet = dbx.ExecQuery(\"select CAT_V";
Debug.ShouldStop(2097152);
_rs = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.ResultSetWrapper");
_rs = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.ResultSetWrapper"), _dbx.runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select CAT_VA_VALOR from cat_variables where CAT_VA_DESCRIPCION = 'SERVER'"))));Debug.locals.put("rs", _rs);Debug.locals.put("rs", _rs);
 BA.debugLineNum = 439;BA.debugLine="If rs.RowCount > 0 Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean(">",_rs.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 440;BA.debugLine="rs.NextRow";
Debug.ShouldStop(8388608);
_rs.runVoidMethod ("NextRow");
 BA.debugLineNum = 441;BA.debugLine="srvr = rs.GetString(\"CAT_VA_VALOR\")";
Debug.ShouldStop(16777216);
_srvr = _rs.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_VA_VALOR")));Debug.locals.put("srvr", _srvr);
 };
 BA.debugLineNum = 443;BA.debugLine="Return srvr";
Debug.ShouldStop(67108864);
if (true) return _srvr;
 BA.debugLineNum = 444;BA.debugLine="End Sub";
Debug.ShouldStop(134217728);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traefecha(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("traeFecha (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,379);
if (RapidSub.canDelegate("traefecha")) { return __ref.runUserSub(false, "c_subs","traefecha", __ref);}
RemoteObject _sdate = RemoteObject.createImmutable("");
RemoteObject _stime = RemoteObject.createImmutable("");
 BA.debugLineNum = 379;BA.debugLine="Sub traeFecha As String 'ignore";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 380;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(134217728);
c_subs.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 381;BA.debugLine="Private sDate As String = DateTime.Date(DateTime.";
Debug.ShouldStop(268435456);
_sdate = c_subs.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_subs.__c.getField(false,"DateTime").runMethod(true,"getNow")));Debug.locals.put("sDate", _sdate);Debug.locals.put("sDate", _sdate);
 BA.debugLineNum = 382;BA.debugLine="Private sTime As String = DateTime.Time(DateTime.";
Debug.ShouldStop(536870912);
_stime = c_subs.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_subs.__c.getField(false,"DateTime").runMethod(true,"getNow")));Debug.locals.put("sTime", _stime);Debug.locals.put("sTime", _stime);
 BA.debugLineNum = 383;BA.debugLine="Return sDate & sTime";
Debug.ShouldStop(1073741824);
if (true) return RemoteObject.concat(_sdate,_stime);
 BA.debugLineNum = 384;BA.debugLine="End Sub";
Debug.ShouldStop(-2147483648);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traeintervalodebd(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("traeIntervaloDeBD (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,447);
if (RapidSub.canDelegate("traeintervalodebd")) { return __ref.runUserSub(false, "c_subs","traeintervalodebd", __ref);}
RemoteObject _intrvl = RemoteObject.createImmutable("");
RemoteObject _rs = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.ResultSetWrapper");
 BA.debugLineNum = 447;BA.debugLine="Sub traeIntervaloDeBD As String 'ignore";
Debug.ShouldStop(1073741824);
 BA.debugLineNum = 448;BA.debugLine="Dim intrvl As String = \"30\"";
Debug.ShouldStop(-2147483648);
_intrvl = BA.ObjectToString("30");Debug.locals.put("intrvl", _intrvl);Debug.locals.put("intrvl", _intrvl);
 BA.debugLineNum = 449;BA.debugLine="Dim rs As ResultSet = db.ExecQuery(\"select valor";
Debug.ShouldStop(1);
_rs = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.ResultSetWrapper");
_rs = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.ResultSetWrapper"), __ref.getField(false,"_db" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select valor from cat_variables where nombre = 'intervalo'"))));Debug.locals.put("rs", _rs);Debug.locals.put("rs", _rs);
 BA.debugLineNum = 450;BA.debugLine="If rs.RowCount > 0 Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean(">",_rs.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 451;BA.debugLine="rs.NextRow";
Debug.ShouldStop(4);
_rs.runVoidMethod ("NextRow");
 BA.debugLineNum = 452;BA.debugLine="intrvl = rs.GetString(\"valor\")";
Debug.ShouldStop(8);
_intrvl = _rs.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("valor")));Debug.locals.put("intrvl", _intrvl);
 };
 BA.debugLineNum = 454;BA.debugLine="Return intrvl";
Debug.ShouldStop(32);
if (true) return _intrvl;
 BA.debugLineNum = 455;BA.debugLine="End Sub";
Debug.ShouldStop(64);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traeruta(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("traeRuta (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,518);
if (RapidSub.canDelegate("traeruta")) { return __ref.runUserSub(false, "c_subs","traeruta", __ref);}
RemoteObject _c = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _r = RemoteObject.createImmutable("");
 BA.debugLineNum = 518;BA.debugLine="Sub traeRuta As String 'ignore";
Debug.ShouldStop(32);
 BA.debugLineNum = 519;BA.debugLine="Private c As Cursor";
Debug.ShouldStop(64);
_c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");Debug.locals.put("c", _c);
 BA.debugLineNum = 520;BA.debugLine="Private r As String";
Debug.ShouldStop(128);
_r = RemoteObject.createImmutable("");Debug.locals.put("r", _r);
 BA.debugLineNum = 521;BA.debugLine="c = db.ExecQuery(\"select CAT_CL_RUTA from kmt_inf";
Debug.ShouldStop(256);
_c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), __ref.getField(false,"_db" /*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 = 522;BA.debugLine="r = \"0\"";
Debug.ShouldStop(512);
_r = BA.ObjectToString("0");Debug.locals.put("r", _r);
 BA.debugLineNum = 523;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean(">",_c.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 524;BA.debugLine="c.Position=0";
Debug.ShouldStop(2048);
_c.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 525;BA.debugLine="r = c.GetString(\"CAT_CL_RUTA\")";
Debug.ShouldStop(4096);
_r = _c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_RUTA")));Debug.locals.put("r", _r);
 };
 BA.debugLineNum = 527;BA.debugLine="c.Close";
Debug.ShouldStop(16384);
_c.runVoidMethod ("Close");
 BA.debugLineNum = 528;BA.debugLine="Return r";
Debug.ShouldStop(32768);
if (true) return _r;
 BA.debugLineNum = 529;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traetimeoutdebd(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("traeTimeoutDeBD (c_subs) ","c_subs",17,__ref.getField(false, "ba"),__ref,458);
if (RapidSub.canDelegate("traetimeoutdebd")) { return __ref.runUserSub(false, "c_subs","traetimeoutdebd", __ref);}
RemoteObject _tmout = RemoteObject.createImmutable("");
RemoteObject _rs = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.ResultSetWrapper");
 BA.debugLineNum = 458;BA.debugLine="Sub traeTimeoutDeBD As String 'ignore";
Debug.ShouldStop(512);
 BA.debugLineNum = 459;BA.debugLine="Dim tmout As String = \"9000\"";
Debug.ShouldStop(1024);
_tmout = BA.ObjectToString("9000");Debug.locals.put("tmout", _tmout);Debug.locals.put("tmout", _tmout);
 BA.debugLineNum = 460;BA.debugLine="Dim rs As ResultSet = db.ExecQuery(\"select valor";
Debug.ShouldStop(2048);
_rs = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.ResultSetWrapper");
_rs = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.ResultSetWrapper"), __ref.getField(false,"_db" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select valor from cat_variables where nombre = 'timeout'"))));Debug.locals.put("rs", _rs);Debug.locals.put("rs", _rs);
 BA.debugLineNum = 461;BA.debugLine="If rs.RowCount > 0 Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean(">",_rs.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 462;BA.debugLine="rs.NextRow";
Debug.ShouldStop(8192);
_rs.runVoidMethod ("NextRow");
 BA.debugLineNum = 463;BA.debugLine="tmout = rs.GetString(\"valor\")";
Debug.ShouldStop(16384);
_tmout = _rs.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("valor")));Debug.locals.put("tmout", _tmout);
 };
 BA.debugLineNum = 465;BA.debugLine="Return tmout";
Debug.ShouldStop(65536);
if (true) return _tmout;
 BA.debugLineNum = 466;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}