package gunav2.keymon.com.mx;

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

public class c_bitacora_subs_0 {


public static RemoteObject  _agregacolumna(RemoteObject __ref,RemoteObject _tabla,RemoteObject _columna,RemoteObject _tipo) throws Exception{
try {
		Debug.PushSubsStack("agregaColumna (c_bitacora) ","c_bitacora",9,__ref.getField(false, "ba"),__ref,196);
if (RapidSub.canDelegate("agregacolumna")) { return __ref.runUserSub(false, "c_bitacora","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 = 196;BA.debugLine="Sub agregaColumna(tabla As String, columna As Stri";
Debug.ShouldStop(8);
 BA.debugLineNum = 197;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev";
Debug.ShouldStop(16);
try { BA.debugLineNum = 198;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exe";
Debug.ShouldStop(32);
_c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_bitacora._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("SELECT COUNT(*) AS fCol FROM pragma_table_info('"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tabla))),RemoteObject.createImmutable("') WHERE name='"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_columna))),RemoteObject.createImmutable("'"))))));Debug.locals.put("c", _c);Debug.locals.put("c", _c);
 BA.debugLineNum = 199;BA.debugLine="c.Position = 0";
Debug.ShouldStop(64);
_c.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 200;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("fCol"))),BA.NumberToString(0))) { 
 BA.debugLineNum = 201;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"ALTER TAB";
Debug.ShouldStop(256);
c_bitacora._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("ALTER TABLE "),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tabla))),RemoteObject.createImmutable(" ADD COLUMN "),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_columna))),RemoteObject.createImmutable(" "),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tipo))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 202;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
Debug.ShouldStop(512);
c_bitacora.__c.runVoidMethod ("LogImpl","069599238",(RemoteObject.concat(RemoteObject.createImmutable("Columna \""),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_columna))),RemoteObject.createImmutable(" "),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tipo))),RemoteObject.createImmutable("\", agregada a \""),c_bitacora.__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 = 206;BA.debugLine="Try";
Debug.ShouldStop(8192);
try { BA.debugLineNum = 207;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"ALTER TAB";
Debug.ShouldStop(16384);
c_bitacora._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("ALTER TABLE "),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tabla))),RemoteObject.createImmutable(" ADD COLUMN "),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_columna))),RemoteObject.createImmutable(" "),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tipo))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 208;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
Debug.ShouldStop(32768);
c_bitacora.__c.runVoidMethod ("LogImpl","069599244",(RemoteObject.concat(RemoteObject.createImmutable("Columna \""),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_columna))),RemoteObject.createImmutable(" "),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_tipo))),RemoteObject.createImmutable("\", agregada a \""),c_bitacora.__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 = 210;BA.debugLine="Log(LastException)";
Debug.ShouldStop(131072);
c_bitacora.__c.runVoidMethod ("LogImpl","069599246",BA.ObjectToString(c_bitacora.__c.runMethod(false,"LastException",__ref.getField(false, "ba"))),0);
 };
 BA.debugLineNum = 212;BA.debugLine="Log(2)";
Debug.ShouldStop(524288);
c_bitacora.__c.runVoidMethod ("LogImpl","069599248",BA.NumberToString(2),0);
 };
 BA.debugLineNum = 214;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_inicio_fin_venta2_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_Inicio_Fin_venta2_Click (c_bitacora) ","c_bitacora",9,__ref.getField(false, "ba"),__ref,128);
if (RapidSub.canDelegate("b_inicio_fin_venta2_click")) { return __ref.runUserSub(false, "c_bitacora","b_inicio_fin_venta2_click", __ref);}
 BA.debugLineNum = 128;BA.debugLine="Private Sub b_Inicio_Fin_venta2_Click";
Debug.ShouldStop(-2147483648);
 BA.debugLineNum = 131;BA.debugLine="contadorIniciarVenta = 0";
Debug.ShouldStop(4);
__ref.setField ("_contadoriniciarventa" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 132;BA.debugLine="IniVenNO = False";
Debug.ShouldStop(8);
__ref.setField ("_inivenno" /*RemoteObject*/ ,c_bitacora.__c.getField(true,"False"));
 BA.debugLineNum = 133;BA.debugLine="If dentroDeGeocerca Then precision = 1";
Debug.ShouldStop(16);
if (__ref.getField(true,"_dentrodegeocerca" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
__ref.setField ("_precision" /*RemoteObject*/ ,BA.numberCast(int.class, 1));};
 BA.debugLineNum = 135;BA.debugLine="LogColor($\">>>>>>>>>>>>   EN VENTA : ${enVenta}";
Debug.ShouldStop(64);
c_bitacora.__c.runVoidMethod ("LogImpl","069337095",(RemoteObject.concat(RemoteObject.createImmutable(">>>>>>>>>>>>   EN VENTA : "),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_enventa" /*RemoteObject*/ )))),RemoteObject.createImmutable("    <<<<<<<<<<<<"))),c_bitacora.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 136;BA.debugLine="motivoNoVenta = \"\"";
Debug.ShouldStop(128);
__ref.setField ("_motivonoventa" /*RemoteObject*/ ,BA.ObjectToString(""));
 BA.debugLineNum = 137;BA.debugLine="motivoNoVisita = \"\"";
Debug.ShouldStop(256);
__ref.setField ("_motivonovisita" /*RemoteObject*/ ,BA.ObjectToString(""));
 BA.debugLineNum = 138;BA.debugLine="p_transparenteInicioFin2.Visible = False";
Debug.ShouldStop(512);
__ref.getField(false,"_p_transparenteiniciofin2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_bitacora.__c.getField(true,"False"));
 BA.debugLineNum = 139;BA.debugLine="If b_Inicio_Fin_venta2.Text = \"TERMINAR VISITA\" T";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_b_inicio_fin_venta2" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("TERMINAR VISITA"))) { 
 BA.debugLineNum = 140;BA.debugLine="mandaBitacora(Subs.fechanormal(DateTime.Now), Su";
Debug.ShouldStop(2048);
__ref.runClassMethod (gunav2.keymon.com.mx.c_bitacora.class, "_mandabitacora" /*RemoteObject*/ ,(Object)(c_bitacora._subs.runMethod(true,"_fechanormal" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.NumberToString(c_bitacora.__c.getField(false,"DateTime").runMethod(true,"getNow"))))),(Object)(c_bitacora._subs.runMethod(true,"_traeusuariodebd" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_bitacora._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_bitacora._subs.runMethod(true,"_traerutabitacora" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(BA.ObjectToString("Termina Venta")),(Object)(c_bitacora._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(BA.ObjectToString("")),(Object)(c_bitacora._subs.runMethod(true,"_fechanormal" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.NumberToString(c_bitacora.__c.getField(false,"DateTime").runMethod(true,"getNow"))))),(Object)(c_bitacora._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ )),(Object)(c_bitacora._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(Object)(BA.NumberToString(__ref.getField(true,"_precision" /*RemoteObject*/ ))),(Object)(__ref.getField(true,"_motivonoventa" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_motivonovisita" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_banderageocerca" /*RemoteObject*/ )));
 BA.debugLineNum = 141;BA.debugLine="enVenta = False";
Debug.ShouldStop(4096);
__ref.setField ("_enventa" /*RemoteObject*/ ,c_bitacora.__c.getField(true,"False"));
 BA.debugLineNum = 142;BA.debugLine="LogColor($\">>>>>> EN VENTA: ${enVenta}\"$, Colors";
Debug.ShouldStop(8192);
c_bitacora.__c.runVoidMethod ("LogImpl","069337102",(RemoteObject.concat(RemoteObject.createImmutable(">>>>>> EN VENTA: "),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_enventa" /*RemoteObject*/ )))),RemoteObject.createImmutable(""))),c_bitacora.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 143;BA.debugLine="iniciamosVenta";
Debug.ShouldStop(16384);
__ref.runClassMethod (gunav2.keymon.com.mx.c_bitacora.class, "_iniciamosventa" /*RemoteObject*/ );
 BA.debugLineNum = 144;BA.debugLine="B4XPages.ShowPageAndRemovePreviousPages(\"Princip";
Debug.ShouldStop(32768);
c_bitacora._b4xpages.runVoidMethod ("_showpageandremovepreviouspages" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Principal")));
 }else 
{ BA.debugLineNum = 146;BA.debugLine="Else if b_Inicio_Fin_venta2.Text = \"INICIAR VISIT";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_b_inicio_fin_venta2" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("INICIAR VISITA"))) { 
 BA.debugLineNum = 147;BA.debugLine="contadorIniciarVenta = 0";
Debug.ShouldStop(262144);
__ref.setField ("_contadoriniciarventa" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 148;BA.debugLine="IniVenNO = False";
Debug.ShouldStop(524288);
__ref.setField ("_inivenno" /*RemoteObject*/ ,c_bitacora.__c.getField(true,"False"));
 BA.debugLineNum = 149;BA.debugLine="contadorIniciarVenta = contadorIniciarVenta + 1";
Debug.ShouldStop(1048576);
__ref.setField ("_contadoriniciarventa" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_contadoriniciarventa" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "+",1, 1));
 BA.debugLineNum = 150;BA.debugLine="If contadorIniciarVenta = 1 And IniVenNO = False";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_contadoriniciarventa" /*RemoteObject*/ ),BA.numberCast(double.class, 1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_inivenno" /*RemoteObject*/ ),c_bitacora.__c.getField(true,"False")) && RemoteObject.solveBoolean("!",__ref.getField(true,"_motivonoventa" /*RemoteObject*/ ),BA.ObjectToString("NO VENTA"))) { 
 BA.debugLineNum = 151;BA.debugLine="IniVenNO = True";
Debug.ShouldStop(4194304);
__ref.setField ("_inivenno" /*RemoteObject*/ ,c_bitacora.__c.getField(true,"True"));
 BA.debugLineNum = 152;BA.debugLine="mandaBitacora(Subs.fechanormal(DateTime.Now), S";
Debug.ShouldStop(8388608);
__ref.runClassMethod (gunav2.keymon.com.mx.c_bitacora.class, "_mandabitacora" /*RemoteObject*/ ,(Object)(c_bitacora._subs.runMethod(true,"_fechanormal" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.NumberToString(c_bitacora.__c.getField(false,"DateTime").runMethod(true,"getNow"))))),(Object)(c_bitacora._subs.runMethod(true,"_traeusuariodebd" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_bitacora._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_bitacora._subs.runMethod(true,"_traerutabitacora" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(BA.ObjectToString("Inicia Venta")),(Object)(c_bitacora._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_bitacora._subs.runMethod(true,"_fechanormal" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.NumberToString(c_bitacora.__c.getField(false,"DateTime").runMethod(true,"getNow"))))),(Object)(BA.ObjectToString("")),(Object)(c_bitacora._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ )),(Object)(c_bitacora._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(Object)(BA.NumberToString(__ref.getField(true,"_precision" /*RemoteObject*/ ))),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("")),(Object)(__ref.getField(true,"_banderageocerca" /*RemoteObject*/ )));
 BA.debugLineNum = 153;BA.debugLine="enVenta = True";
Debug.ShouldStop(16777216);
__ref.setField ("_enventa" /*RemoteObject*/ ,c_bitacora.__c.getField(true,"True"));
 BA.debugLineNum = 154;BA.debugLine="LogColor($\">>>>>> EN VENTA: ${enVenta}\"$, Color";
Debug.ShouldStop(33554432);
c_bitacora.__c.runVoidMethod ("LogImpl","069337114",(RemoteObject.concat(RemoteObject.createImmutable(">>>>>> EN VENTA: "),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_enventa" /*RemoteObject*/ )))),RemoteObject.createImmutable(""))),c_bitacora.__c.getField(false,"Colors").getField(true,"Red"));
 }else 
{ BA.debugLineNum = 156;BA.debugLine="Else If contadorIniciarVenta = 1 And IniVenNO =";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_contadoriniciarventa" /*RemoteObject*/ ),BA.numberCast(double.class, 1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_inivenno" /*RemoteObject*/ ),c_bitacora.__c.getField(true,"False")) && RemoteObject.solveBoolean("=",__ref.getField(true,"_motivonoventa" /*RemoteObject*/ ),BA.ObjectToString("NO VENTA"))) { 
 BA.debugLineNum = 157;BA.debugLine="IniVenNO = True";
Debug.ShouldStop(268435456);
__ref.setField ("_inivenno" /*RemoteObject*/ ,c_bitacora.__c.getField(true,"True"));
 BA.debugLineNum = 158;BA.debugLine="mandaBitacora(Subs.fechanormal(DateTime.Now), S";
Debug.ShouldStop(536870912);
__ref.runClassMethod (gunav2.keymon.com.mx.c_bitacora.class, "_mandabitacora" /*RemoteObject*/ ,(Object)(c_bitacora._subs.runMethod(true,"_fechanormal" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.NumberToString(c_bitacora.__c.getField(false,"DateTime").runMethod(true,"getNow"))))),(Object)(c_bitacora._subs.runMethod(true,"_traeusuariodebd" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_bitacora._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_bitacora._subs.runMethod(true,"_traerutabitacora" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(BA.ObjectToString("Inicia Venta")),(Object)(c_bitacora._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_bitacora._subs.runMethod(true,"_fechanormal" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.NumberToString(c_bitacora.__c.getField(false,"DateTime").runMethod(true,"getNow"))))),(Object)(BA.ObjectToString("")),(Object)(c_bitacora._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ )),(Object)(c_bitacora._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(Object)(BA.NumberToString(__ref.getField(true,"_precision" /*RemoteObject*/ ))),(Object)(__ref.getField(true,"_motivonoventa" /*RemoteObject*/ )),(Object)(BA.ObjectToString("")),(Object)(__ref.getField(true,"_banderageocerca" /*RemoteObject*/ )));
 BA.debugLineNum = 159;BA.debugLine="enVenta = True";
Debug.ShouldStop(1073741824);
__ref.setField ("_enventa" /*RemoteObject*/ ,c_bitacora.__c.getField(true,"True"));
 BA.debugLineNum = 160;BA.debugLine="LogColor($\">>>>>> EN VENTA: ${enVenta}\"$, Color";
Debug.ShouldStop(-2147483648);
c_bitacora.__c.runVoidMethod ("LogImpl","069337120",(RemoteObject.concat(RemoteObject.createImmutable(">>>>>> EN VENTA: "),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_enventa" /*RemoteObject*/ )))),RemoteObject.createImmutable(""))),c_bitacora.__c.getField(false,"Colors").getField(true,"Red"));
 }else 
{ BA.debugLineNum = 161;BA.debugLine="Else If contadorIniciarVenta > 1 Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean(">",__ref.getField(true,"_contadoriniciarventa" /*RemoteObject*/ ),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 162;BA.debugLine="p_transparenteInicioFin2.Visible = False";
Debug.ShouldStop(2);
__ref.getField(false,"_p_transparenteiniciofin2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_bitacora.__c.getField(true,"False"));
 }}}
;
 }}
;
 BA.debugLineNum = 165;BA.debugLine="p_transparenteInicioFin2.Visible = False";
Debug.ShouldStop(16);
__ref.getField(false,"_p_transparenteiniciofin2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_bitacora.__c.getField(true,"False"));
 BA.debugLineNum = 166;BA.debugLine="LogColor($\">>>>>>>>>>>>   EN VENTA : ${enVenta}";
Debug.ShouldStop(32);
c_bitacora.__c.runVoidMethod ("LogImpl","069337126",(RemoteObject.concat(RemoteObject.createImmutable(">>>>>>>>>>>>   EN VENTA : "),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_enventa" /*RemoteObject*/ )))),RemoteObject.createImmutable("    <<<<<<<<<<<<"))),c_bitacora.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 167;BA.debugLine="End Sub";
Debug.ShouldStop(64);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b4xpage_created(RemoteObject __ref,RemoteObject _root1) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_Created (c_bitacora) ","c_bitacora",9,__ref.getField(false, "ba"),__ref,28);
if (RapidSub.canDelegate("b4xpage_created")) { return __ref.runUserSub(false, "c_bitacora","b4xpage_created", __ref, _root1);}
Debug.locals.put("Root1", _root1);
 BA.debugLineNum = 28;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
Debug.ShouldStop(134217728);
 BA.debugLineNum = 29;BA.debugLine="Root = Root1";
Debug.ShouldStop(268435456);
__ref.setField ("_root" /*RemoteObject*/ ,_root1);
 BA.debugLineNum = 31;BA.debugLine="End Sub";
Debug.ShouldStop(1073741824);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _borradatosbitacora(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("borraDatosBitacora (c_bitacora) ","c_bitacora",9,__ref.getField(false, "ba"),__ref,217);
if (RapidSub.canDelegate("borradatosbitacora")) { return __ref.runUserSub(false, "c_bitacora","borradatosbitacora", __ref);}
 BA.debugLineNum = 217;BA.debugLine="Sub borraDatosBitacora";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 218;BA.debugLine="db.ExecNonQuery(\"DELETE FROM BITACORAGPS\")";
Debug.ShouldStop(33554432);
__ref.getField(false,"_db" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM BITACORAGPS")));
 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  _cargamospanel(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("cargamosPanel (c_bitacora) ","c_bitacora",9,__ref.getField(false, "ba"),__ref,170);
if (RapidSub.canDelegate("cargamospanel")) { return __ref.runUserSub(false, "c_bitacora","cargamospanel", __ref);}
 BA.debugLineNum = 170;BA.debugLine="private Sub cargamosPanel";
Debug.ShouldStop(512);
 BA.debugLineNum = 171;BA.debugLine="Log(p_transparenteInicioFin2.IsInitialized)";
Debug.ShouldStop(1024);
c_bitacora.__c.runVoidMethod ("LogImpl","069402625",BA.ObjectToString(__ref.getField(false,"_p_transparenteiniciofin2" /*RemoteObject*/ ).runMethod(true,"IsInitialized")),0);
 BA.debugLineNum = 173;BA.debugLine="If Not(p_transparenteInicioFin2.IsInitialized) Th";
Debug.ShouldStop(4096);
if (c_bitacora.__c.runMethod(true,"Not",(Object)(__ref.getField(false,"_p_transparenteiniciofin2" /*RemoteObject*/ ).runMethod(true,"IsInitialized"))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 174;BA.debugLine="LogColor(\">>>>>>>   CARGAMOS PANEL BITACORA\", Co";
Debug.ShouldStop(8192);
c_bitacora.__c.runVoidMethod ("LogImpl","069402628",BA.ObjectToString(">>>>>>>   CARGAMOS PANEL BITACORA"),c_bitacora.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 175;BA.debugLine="Root2.LoadLayout(\"inicioFinVenta\")";
Debug.ShouldStop(16384);
__ref.getField(false,"_root2" /*RemoteObject*/ ).runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("inicioFinVenta")),__ref.getField(false, "ba"));
 BA.debugLineNum = 176;BA.debugLine="p_transparenteInicioFin2.Width = Root2.Width";
Debug.ShouldStop(32768);
__ref.getField(false,"_p_transparenteiniciofin2" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_root2" /*RemoteObject*/ ).runMethod(true,"getWidth"));
 BA.debugLineNum = 177;BA.debugLine="p_transparenteInicioFin2.Height = Root2.Height";
Debug.ShouldStop(65536);
__ref.getField(false,"_p_transparenteiniciofin2" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_root2" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 178;BA.debugLine="b_Inicio_Fin_venta2.top = 700";
Debug.ShouldStop(131072);
__ref.getField(false,"_b_inicio_fin_venta2" /*RemoteObject*/ ).runMethod(true,"setTop",BA.numberCast(int.class, 700));
 BA.debugLineNum = 179;BA.debugLine="b_Inicio_Fin_venta2.Left = 5";
Debug.ShouldStop(262144);
__ref.getField(false,"_b_inicio_fin_venta2" /*RemoteObject*/ ).runMethod(true,"setLeft",BA.numberCast(int.class, 5));
 BA.debugLineNum = 180;BA.debugLine="b_Inicio_Fin_venta2.Width = Root2.Width - 20";
Debug.ShouldStop(524288);
__ref.getField(false,"_b_inicio_fin_venta2" /*RemoteObject*/ ).runMethod(true,"setWidth",RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root2" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(20)}, "-",1, 1));
 BA.debugLineNum = 181;BA.debugLine="b_Inicio_Fin_venta2.Text = \"INICIAR VISITA\"";
Debug.ShouldStop(1048576);
__ref.getField(false,"_b_inicio_fin_venta2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("INICIAR VISITA"));
 BA.debugLineNum = 182;BA.debugLine="p_transparenteInicioFin2.BringToFront";
Debug.ShouldStop(2097152);
__ref.getField(false,"_p_transparenteiniciofin2" /*RemoteObject*/ ).runVoidMethod ("BringToFront");
 };
 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  _class_globals(RemoteObject __ref) throws Exception{
 //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
 //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
c_bitacora._root = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_root",c_bitacora._root);
 //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
c_bitacora._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");__ref.setField("_xui",c_bitacora._xui);
 //BA.debugLineNum = 4;BA.debugLine="Dim db As SQL";
c_bitacora._db = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL");__ref.setField("_db",c_bitacora._db);
 //BA.debugLineNum = 5;BA.debugLine="Private Root2 As B4XView";
c_bitacora._root2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_root2",c_bitacora._root2);
 //BA.debugLineNum = 6;BA.debugLine="Dim p_transparenteInicioFin2 As Panel";
c_bitacora._p_transparenteiniciofin2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_transparenteiniciofin2",c_bitacora._p_transparenteiniciofin2);
 //BA.debugLineNum = 7;BA.debugLine="Dim b_Inicio_Fin_venta2 As Button";
c_bitacora._b_inicio_fin_venta2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_inicio_fin_venta2",c_bitacora._b_inicio_fin_venta2);
 //BA.debugLineNum = 8;BA.debugLine="Dim contadorIniciarVenta, precision As Int";
c_bitacora._contadoriniciarventa = RemoteObject.createImmutable(0);__ref.setField("_contadoriniciarventa",c_bitacora._contadoriniciarventa);
c_bitacora._precision = RemoteObject.createImmutable(0);__ref.setField("_precision",c_bitacora._precision);
 //BA.debugLineNum = 9;BA.debugLine="Dim IniVenNO, dentroDeGeocerca, enVenta As Boolea";
c_bitacora._inivenno = RemoteObject.createImmutable(false);__ref.setField("_inivenno",c_bitacora._inivenno);
c_bitacora._dentrodegeocerca = RemoteObject.createImmutable(false);__ref.setField("_dentrodegeocerca",c_bitacora._dentrodegeocerca);
c_bitacora._enventa = RemoteObject.createImmutable(false);__ref.setField("_enventa",c_bitacora._enventa);
 //BA.debugLineNum = 10;BA.debugLine="Dim motivoNoVenta, motivoNoVisita As String";
c_bitacora._motivonoventa = RemoteObject.createImmutable("");__ref.setField("_motivonoventa",c_bitacora._motivonoventa);
c_bitacora._motivonovisita = RemoteObject.createImmutable("");__ref.setField("_motivonovisita",c_bitacora._motivonovisita);
 //BA.debugLineNum = 11;BA.debugLine="Dim banderaGeoCerca As String";
c_bitacora._banderageocerca = RemoteObject.createImmutable("");__ref.setField("_banderageocerca",c_bitacora._banderageocerca);
 //BA.debugLineNum = 12;BA.debugLine="Private reqManager As DBRequestManager";
c_bitacora._reqmanager = RemoteObject.createNew ("gunav2.keymon.com.mx.dbrequestmanager");__ref.setField("_reqmanager",c_bitacora._reqmanager);
 //BA.debugLineNum = 13;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
}
public static RemoteObject  _iniciamosventa(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("iniciamosVenta (c_bitacora) ","c_bitacora",9,__ref.getField(false, "ba"),__ref,191);
if (RapidSub.canDelegate("iniciamosventa")) { return __ref.runUserSub(false, "c_bitacora","iniciamosventa", __ref);}
 BA.debugLineNum = 191;BA.debugLine="Sub iniciamosVenta";
Debug.ShouldStop(1073741824);
 BA.debugLineNum = 192;BA.debugLine="enVenta = False";
Debug.ShouldStop(-2147483648);
__ref.setField ("_enventa" /*RemoteObject*/ ,c_bitacora.__c.getField(true,"False"));
 BA.debugLineNum = 193;BA.debugLine="b_Inicio_Fin_venta2.Text = \"INICIAR VISITA\"";
Debug.ShouldStop(1);
__ref.getField(false,"_b_inicio_fin_venta2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("INICIAR VISITA"));
 BA.debugLineNum = 194;BA.debugLine="End Sub";
Debug.ShouldStop(2);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _iniciofin(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("inicioFin (c_bitacora) ","c_bitacora",9,__ref.getField(false, "ba"),__ref,112);
if (RapidSub.canDelegate("iniciofin")) { return __ref.runUserSub(false, "c_bitacora","iniciofin", __ref);}
 BA.debugLineNum = 112;BA.debugLine="Sub inicioFin";
Debug.ShouldStop(32768);
 BA.debugLineNum = 113;BA.debugLine="LogColor($\">>>>>>>>>>>>   XX EN VENTA : ${enVenta";
Debug.ShouldStop(65536);
c_bitacora.__c.runVoidMethod ("LogImpl","069271553",(RemoteObject.concat(RemoteObject.createImmutable(">>>>>>>>>>>>   XX EN VENTA : "),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_enventa" /*RemoteObject*/ )))),RemoteObject.createImmutable("    <<<<<<<<<<<<"))),c_bitacora.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 114;BA.debugLine="Log(b_Inicio_Fin_venta2.Text)";
Debug.ShouldStop(131072);
c_bitacora.__c.runVoidMethod ("LogImpl","069271554",__ref.getField(false,"_b_inicio_fin_venta2" /*RemoteObject*/ ).runMethod(true,"getText"),0);
 BA.debugLineNum = 115;BA.debugLine="If  enVenta = False Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_enventa" /*RemoteObject*/ ),c_bitacora.__c.getField(true,"False"))) { 
 BA.debugLineNum = 116;BA.debugLine="p_transparenteInicioFin2.BringToFront";
Debug.ShouldStop(524288);
__ref.getField(false,"_p_transparenteiniciofin2" /*RemoteObject*/ ).runVoidMethod ("BringToFront");
 BA.debugLineNum = 117;BA.debugLine="p_transparenteInicioFin2.Visible = True";
Debug.ShouldStop(1048576);
__ref.getField(false,"_p_transparenteiniciofin2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_bitacora.__c.getField(true,"True"));
 }else {
 BA.debugLineNum = 121;BA.debugLine="If b_Inicio_Fin_venta2.Text <> \"TERMINAR VISITA\"";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_b_inicio_fin_venta2" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("TERMINAR VISITA"))) { 
 BA.debugLineNum = 122;BA.debugLine="p_transparenteInicioFin2.Visible = False";
Debug.ShouldStop(33554432);
__ref.getField(false,"_p_transparenteiniciofin2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_bitacora.__c.getField(true,"False"));
 };
 };
 BA.debugLineNum = 126;BA.debugLine="End Sub";
Debug.ShouldStop(536870912);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _initialize(RemoteObject __ref,RemoteObject _ba,RemoteObject _vcallback,RemoteObject _veventname,RemoteObject _vroot,RemoteObject _db1,RemoteObject _dbreq) throws Exception{
try {
		Debug.PushSubsStack("Initialize (c_bitacora) ","c_bitacora",9,__ref.getField(false, "ba"),__ref,16);
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "c_bitacora","initialize", __ref, _ba, _vcallback, _veventname, _vroot, _db1, _dbreq);}
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
Debug.locals.put("ba", _ba);
Debug.locals.put("vCallback", _vcallback);
Debug.locals.put("vEventName", _veventname);
Debug.locals.put("vRoot", _vroot);
Debug.locals.put("db1", _db1);
Debug.locals.put("DBReq", _dbreq);
 BA.debugLineNum = 16;BA.debugLine="Public Sub Initialize (vCallback As Object, vEvent";
Debug.ShouldStop(32768);
 BA.debugLineNum = 17;BA.debugLine="db = db1";
Debug.ShouldStop(65536);
__ref.setField ("_db" /*RemoteObject*/ ,_db1);
 BA.debugLineNum = 18;BA.debugLine="Root2 = vRoot";
Debug.ShouldStop(131072);
__ref.setField ("_root2" /*RemoteObject*/ ,_vroot);
 BA.debugLineNum = 19;BA.debugLine="reqManager = DBReq";
Debug.ShouldStop(262144);
__ref.setField ("_reqmanager" /*RemoteObject*/ ,_dbreq);
 BA.debugLineNum = 20;BA.debugLine="db.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS BITAC";
Debug.ShouldStop(524288);
__ref.getField(false,"_db" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS BITACORAGPS(fechab TEXT, usuariob TEXT, almacenb TEXT, rutab TEXT, eventob TEXT, clienteb TEXT, iniciob TEXT, finb TEXT, latitudb TEXT, longitudb TEXT, precision TEXT, motivonoventa TEXT, motivonovisita TEXT, BAN_GEOB TEXT)")));
 BA.debugLineNum = 21;BA.debugLine="agregaColumna(\"BITACORAGPS\", \"BAN_GEOB\", \"TEXT\")";
Debug.ShouldStop(1048576);
__ref.runClassMethod (gunav2.keymon.com.mx.c_bitacora.class, "_agregacolumna" /*RemoteObject*/ ,(Object)(BA.ObjectToString("BITACORAGPS")),(Object)(BA.ObjectToString("BAN_GEOB")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 22;BA.debugLine="contadorIniciarVenta = 0";
Debug.ShouldStop(2097152);
__ref.setField ("_contadoriniciarventa" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 23;BA.debugLine="cargamosPanel";
Debug.ShouldStop(4194304);
__ref.runClassMethod (gunav2.keymon.com.mx.c_bitacora.class, "_cargamospanel" /*RemoteObject*/ );
 BA.debugLineNum = 24;BA.debugLine="Return Me";
Debug.ShouldStop(8388608);
if (true) return __ref;
 BA.debugLineNum = 25;BA.debugLine="End Sub";
Debug.ShouldStop(16777216);
return RemoteObject.createImmutable(null);
}
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_bitacora) ","c_bitacora",9,__ref.getField(false, "ba"),__ref,221);
if (RapidSub.canDelegate("jobdone")) { return __ref.runUserSub(false, "c_bitacora","jobdone", __ref, _job);}
RemoteObject _result = RemoteObject.declareNull("gunav2.keymon.com.mx.dbrequestmanager._dbresult");
Debug.locals.put("Job", _job);
 BA.debugLineNum = 221;BA.debugLine="Sub JobDone(Job As HttpJob)";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 222;BA.debugLine="Log(\"JOBDONE BITACORA\")";
Debug.ShouldStop(536870912);
c_bitacora.__c.runVoidMethod ("LogImpl","069730305",RemoteObject.createImmutable("JOBDONE BITACORA"),0);
 BA.debugLineNum = 223;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 224;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(Jo";
Debug.ShouldStop(-2147483648);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 225;BA.debugLine="Log($\"Tag: ${RESULT.tag}, success=${Job.Success}";
Debug.ShouldStop(1);
c_bitacora.__c.runVoidMethod ("LogImpl","069730308",(RemoteObject.concat(RemoteObject.createImmutable("Tag: "),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_result.getField(false,"Tag" /*RemoteObject*/ ))),RemoteObject.createImmutable(", success="),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_job.getField(true,"_success" /*RemoteObject*/ )))),RemoteObject.createImmutable(""))),0);
 };
 BA.debugLineNum = 228;BA.debugLine="If Job.Success = False Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_success" /*RemoteObject*/ ),c_bitacora.__c.getField(true,"False"))) { 
 BA.debugLineNum = 230;BA.debugLine="LogColor(\"Error: \" & Job.ErrorMessage, Colors.re";
Debug.ShouldStop(32);
c_bitacora.__c.runVoidMethod ("LogImpl","069730313",RemoteObject.concat(RemoteObject.createImmutable("Error: "),_job.getField(true,"_errormessage" /*RemoteObject*/ )),c_bitacora.__c.getField(false,"Colors").getField(true,"Red"));
 }else {
 };
 BA.debugLineNum = 234;BA.debugLine="End Sub";
Debug.ShouldStop(512);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _mandabitacora(RemoteObject __ref,RemoteObject _fechab,RemoteObject _usuariob,RemoteObject _almacenb,RemoteObject _rutab,RemoteObject _eventob,RemoteObject _clienteb,RemoteObject _iniciob,RemoteObject _finb,RemoteObject _latitudb,RemoteObject _longitudb,RemoteObject _precisionb,RemoteObject _motivonoventab,RemoteObject _motivonovisitab,RemoteObject _ban_geob) throws Exception{
try {
		Debug.PushSubsStack("mandaBitacora (c_bitacora) ","c_bitacora",9,__ref.getField(false, "ba"),__ref,37);
if (RapidSub.canDelegate("mandabitacora")) { return __ref.runUserSub(false, "c_bitacora","mandabitacora", __ref, _fechab, _usuariob, _almacenb, _rutab, _eventob, _clienteb, _iniciob, _finb, _latitudb, _longitudb, _precisionb, _motivonoventab, _motivonovisitab, _ban_geob);}
RemoteObject _cmd = RemoteObject.declareNull("gunav2.keymon.com.mx.dbrequestmanager._dbcommand");
RemoteObject _nombrecliente = RemoteObject.createImmutable("");
RemoteObject _e = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _c = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
Debug.locals.put("fechab", _fechab);
Debug.locals.put("usuariob", _usuariob);
Debug.locals.put("almacenb", _almacenb);
Debug.locals.put("rutab", _rutab);
Debug.locals.put("eventob", _eventob);
Debug.locals.put("clienteb", _clienteb);
Debug.locals.put("iniciob", _iniciob);
Debug.locals.put("finb", _finb);
Debug.locals.put("latitudb", _latitudb);
Debug.locals.put("longitudb", _longitudb);
Debug.locals.put("precisionb", _precisionb);
Debug.locals.put("motivoNoVentab", _motivonoventab);
Debug.locals.put("motivoNoVisitab", _motivonovisitab);
Debug.locals.put("BAN_GEOB", _ban_geob);
 BA.debugLineNum = 37;BA.debugLine="Sub mandaBitacora(fechab As String, usuariob As St";
Debug.ShouldStop(16);
 BA.debugLineNum = 38;BA.debugLine="Log(motivoNoVisitab)";
Debug.ShouldStop(32);
c_bitacora.__c.runVoidMethod ("LogImpl","069074945",_motivonovisitab,0);
 BA.debugLineNum = 40;BA.debugLine="Private cmd As DBCommand";
Debug.ShouldStop(128);
_cmd = RemoteObject.createNew ("gunav2.keymon.com.mx.dbrequestmanager._dbcommand");Debug.locals.put("cmd", _cmd);
 BA.debugLineNum = 41;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(256);
_cmd.runVoidMethod ("Initialize");
 BA.debugLineNum = 42;BA.debugLine="cmd.Name = \"mandaBitacora3_GUNA\"";
Debug.ShouldStop(512);
_cmd.setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("mandaBitacora3_GUNA"));
 BA.debugLineNum = 44;BA.debugLine="Private nombreCliente As String = traeNombreClien";
Debug.ShouldStop(2048);
_nombrecliente = __ref.runClassMethod (gunav2.keymon.com.mx.c_bitacora.class, "_traenombrecliente" /*RemoteObject*/ ,(Object)(_clienteb));Debug.locals.put("nombreCliente", _nombrecliente);Debug.locals.put("nombreCliente", _nombrecliente);
 BA.debugLineNum = 45;BA.debugLine="If eventob = \"Llega a almacen\" Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",_eventob,BA.ObjectToString("Llega a almacen"))) { 
 BA.debugLineNum = 46;BA.debugLine="nombreCliente = \"BOLETA\"";
Debug.ShouldStop(8192);
_nombrecliente = BA.ObjectToString("BOLETA");Debug.locals.put("nombreCliente", _nombrecliente);
 BA.debugLineNum = 47;BA.debugLine="clienteb = \"\"";
Debug.ShouldStop(16384);
_clienteb = BA.ObjectToString("");Debug.locals.put("clienteb", _clienteb);
 BA.debugLineNum = 48;BA.debugLine="finb = iniciob";
Debug.ShouldStop(32768);
_finb = _iniciob;Debug.locals.put("finb", _finb);
 };
 BA.debugLineNum = 50;BA.debugLine="If eventob = \"Salida almacen\" Then nombreCliente";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",_eventob,BA.ObjectToString("Salida almacen"))) { 
_nombrecliente = BA.ObjectToString("CHECKLIST");Debug.locals.put("nombreCliente", _nombrecliente);};
 BA.debugLineNum = 51;BA.debugLine="If eventob = \"Fin Día\" Then nombreCliente = \"FIN";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("=",_eventob,BA.ObjectToString("Fin Día"))) { 
_nombrecliente = BA.ObjectToString("FIN DIA");Debug.locals.put("nombreCliente", _nombrecliente);};
 BA.debugLineNum = 52;BA.debugLine="If eventob = \"Carga día\" Then nombreCliente = \"CA";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",_eventob,BA.ObjectToString("Carga día"))) { 
_nombrecliente = BA.ObjectToString("CARGA DIA");Debug.locals.put("nombreCliente", _nombrecliente);};
 BA.debugLineNum = 53;BA.debugLine="If eventob = \"Carga día suplencia\" Then nombreCli";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("=",_eventob,BA.ObjectToString("Carga día suplencia"))) { 
_nombrecliente = __ref.runClassMethod (gunav2.keymon.com.mx.c_bitacora.class, "_traerutassup" /*RemoteObject*/ );Debug.locals.put("nombreCliente", _nombrecliente);};
 BA.debugLineNum = 54;BA.debugLine="If eventob <> \"Termina Venta\" And eventob <> \"No";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("!",_eventob,BA.ObjectToString("Termina Venta")) && RemoteObject.solveBoolean("!",_eventob,BA.ObjectToString("No Venta"))) { 
 BA.debugLineNum = 55;BA.debugLine="db.ExecNonQuery($\"INSERT INTO BITACORAGPS (fecha";
Debug.ShouldStop(4194304);
__ref.getField(false,"_db" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("INSERT INTO BITACORAGPS (fechab, usuariob , almacenb , rutab , eventob , clienteb , iniciob , finb , latitudb, longitudb , precision , motivonoventa , motivonovisita, BAN_GEOB) VALUES ('"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_fechab))),RemoteObject.createImmutable("' ,'"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_usuariob))),RemoteObject.createImmutable("' , '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_almacenb))),RemoteObject.createImmutable("' , '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_rutab))),RemoteObject.createImmutable("' , '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_eventob))),RemoteObject.createImmutable("' , '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_clienteb))),RemoteObject.createImmutable("' , '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_iniciob))),RemoteObject.createImmutable("' , '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_finb))),RemoteObject.createImmutable("' , '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_latitudb))),RemoteObject.createImmutable("' , '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_longitudb))),RemoteObject.createImmutable("' , '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_precisionb))),RemoteObject.createImmutable("' , '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_motivonoventab))),RemoteObject.createImmutable("' , '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_motivonovisitab))),RemoteObject.createImmutable("', '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_ban_geob))),RemoteObject.createImmutable("')")))));
 }else {
 BA.debugLineNum = 57;BA.debugLine="Private e As Cursor = db.ExecQuery($\"select fech";
Debug.ShouldStop(16777216);
_e = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_e = 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 fechab from BITACORAGPS where usuariob = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_usuariob))),RemoteObject.createImmutable("' and almacenb = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_almacenb))),RemoteObject.createImmutable("' and rutab = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_rutab))),RemoteObject.createImmutable("' and clienteb = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_clienteb))),RemoteObject.createImmutable("' and eventob = 'Inicia Venta' order by fechab desc"))))));Debug.locals.put("e", _e);Debug.locals.put("e", _e);
 BA.debugLineNum = 58;BA.debugLine="If e.RowCount > 0 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean(">",_e.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 59;BA.debugLine="e.Position = 0";
Debug.ShouldStop(67108864);
_e.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 60;BA.debugLine="Log(\"ACTUALIZA BITACORA\")";
Debug.ShouldStop(134217728);
c_bitacora.__c.runVoidMethod ("LogImpl","069074967",RemoteObject.createImmutable("ACTUALIZA BITACORA"),0);
 BA.debugLineNum = 61;BA.debugLine="If eventob = \"Termina Venta\" Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",_eventob,BA.ObjectToString("Termina Venta"))) { 
 BA.debugLineNum = 62;BA.debugLine="db.ExecNonQuery($\"update BITACORAGPS set finb";
Debug.ShouldStop(536870912);
__ref.getField(false,"_db" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update BITACORAGPS set finb = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_finb))),RemoteObject.createImmutable("' where rutab = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_rutab))),RemoteObject.createImmutable("' and almacenb = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_almacenb))),RemoteObject.createImmutable("' and usuariob = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_usuariob))),RemoteObject.createImmutable("' and clienteb = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_clienteb))),RemoteObject.createImmutable("' and fechab = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_e.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("fechab")))))),RemoteObject.createImmutable("' ")))));
 BA.debugLineNum = 63;BA.debugLine="cmd.Parameters = Array As Object(finb, rutab,";
Debug.ShouldStop(1073741824);
_cmd.setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {7},new Object[] {(_finb),(_rutab),(_almacenb),(_usuariob),(_clienteb),RemoteObject.createImmutable(("Inicia Venta")),(_e.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("fechab"))))}));
 }else 
{ BA.debugLineNum = 64;BA.debugLine="else if  eventob = \"No Venta\" Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("=",_eventob,BA.ObjectToString("No Venta"))) { 
 BA.debugLineNum = 65;BA.debugLine="db.ExecNonQuery($\"update BITACORAGPS set finb";
Debug.ShouldStop(1);
__ref.getField(false,"_db" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update BITACORAGPS set finb = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_finb))),RemoteObject.createImmutable("', motivonoventa = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_motivonoventab))),RemoteObject.createImmutable("', motivonovisita = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_motivonovisitab))),RemoteObject.createImmutable("' where rutab = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_rutab))),RemoteObject.createImmutable("' and almacenb = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_almacenb))),RemoteObject.createImmutable("' and usuariob = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_usuariob))),RemoteObject.createImmutable("' and clienteb = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_clienteb))),RemoteObject.createImmutable("' and fechab = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_e.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("fechab")))))),RemoteObject.createImmutable("' ")))));
 BA.debugLineNum = 66;BA.debugLine="cmd.Parameters = Array As Object(finb, motivoN";
Debug.ShouldStop(2);
_cmd.setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {9},new Object[] {(_finb),(_motivonoventab),(_motivonovisitab),(_rutab),(_almacenb),(_usuariob),(_clienteb),RemoteObject.createImmutable(("Inicia Venta")),(_e.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("fechab"))))}));
 }}
;
 };
 };
 BA.debugLineNum = 70;BA.debugLine="If eventob <> \"Inicia Venta\" Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("!",_eventob,BA.ObjectToString("Inicia Venta"))) { 
 BA.debugLineNum = 71;BA.debugLine="Private c As Cursor = db.ExecQuery($\"select * fr";
Debug.ShouldStop(64);
_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 * from BITACORAGPS where usuariob = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_usuariob))),RemoteObject.createImmutable("' and almacenb = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_almacenb))),RemoteObject.createImmutable("' and rutab = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_rutab))),RemoteObject.createImmutable("' and clienteb = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_clienteb))),RemoteObject.createImmutable("' order by fechab desc"))))));Debug.locals.put("c", _c);Debug.locals.put("c", _c);
 BA.debugLineNum = 72;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean(">",_c.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 73;BA.debugLine="c.Position = 0";
Debug.ShouldStop(256);
_c.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 74;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"a";
Debug.ShouldStop(512);
_cmd.setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {15},new Object[] {(_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("almacenb")))),(_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("usuariob")))),(_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("rutab")))),(_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("eventob")))),(_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("clienteb")))),(_nombrecliente),(_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("iniciob")))),(_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("finb")))),(_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("latitudb")))),(_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("longitudb")))),(_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("precision")))),(_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("motivonoventa")))),(_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("motivonovisita")))),(_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("fechab")))),(_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("BAN_GEOB"))))}));
 BA.debugLineNum = 75;BA.debugLine="reqManager.ExecuteCommand(cmd , \"mandaBitacora\"";
Debug.ShouldStop(1024);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(_cmd),(Object)((RemoteObject.createImmutable("mandaBitacora"))));
 };
 };
 BA.debugLineNum = 79;BA.debugLine="End Sub";
Debug.ShouldStop(16384);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _p_transparenteiniciofin2_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("p_transparenteInicioFin2_click (c_bitacora) ","c_bitacora",9,__ref.getField(false, "ba"),__ref,186);
if (RapidSub.canDelegate("p_transparenteiniciofin2_click")) { return __ref.runUserSub(false, "c_bitacora","p_transparenteiniciofin2_click", __ref);}
 BA.debugLineNum = 186;BA.debugLine="Sub p_transparenteInicioFin2_click";
Debug.ShouldStop(33554432);
 BA.debugLineNum = 188;BA.debugLine="End Sub";
Debug.ShouldStop(134217728);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traenombrecliente(RemoteObject __ref,RemoteObject _id) throws Exception{
try {
		Debug.PushSubsStack("traeNombreCliente (c_bitacora) ","c_bitacora",9,__ref.getField(false, "ba"),__ref,82);
if (RapidSub.canDelegate("traenombrecliente")) { return __ref.runUserSub(false, "c_bitacora","traenombrecliente", __ref, _id);}
RemoteObject _c = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.ResultSetWrapper");
RemoteObject _n = RemoteObject.createImmutable("");
Debug.locals.put("id", _id);
 BA.debugLineNum = 82;BA.debugLine="Sub traeNombreCliente(id As String) As String";
Debug.ShouldStop(131072);
 BA.debugLineNum = 83;BA.debugLine="Private c As ResultSet = B4XPages.MainPage.skmt.E";
Debug.ShouldStop(262144);
_c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.ResultSetWrapper");
_c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.ResultSetWrapper"), c_bitacora._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select CAT_CL_NOMBRE from kmt_info3 where CAT_CL_CODIGO = '"),c_bitacora.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_id))),RemoteObject.createImmutable("'"))))));Debug.locals.put("c", _c);Debug.locals.put("c", _c);
 BA.debugLineNum = 84;BA.debugLine="Private n As String = \"N/A\"";
Debug.ShouldStop(524288);
_n = BA.ObjectToString("N/A");Debug.locals.put("n", _n);Debug.locals.put("n", _n);
 BA.debugLineNum = 85;BA.debugLine="Do While c.NextRow";
Debug.ShouldStop(1048576);
while (_c.runMethod(true,"NextRow").<Boolean>get().booleanValue()) {
 BA.debugLineNum = 86;BA.debugLine="n = c.GetString(\"CAT_CL_NOMBRE\")";
Debug.ShouldStop(2097152);
_n = _c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOMBRE")));Debug.locals.put("n", _n);
 }
;
 BA.debugLineNum = 88;BA.debugLine="Return n";
Debug.ShouldStop(8388608);
if (true) return _n;
 BA.debugLineNum = 89;BA.debugLine="End Sub";
Debug.ShouldStop(16777216);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traerutassup(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("traeRutasSup (c_bitacora) ","c_bitacora",9,__ref.getField(false, "ba"),__ref,92);
if (RapidSub.canDelegate("traerutassup")) { return __ref.runUserSub(false, "c_bitacora","traerutassup", __ref);}
RemoteObject _c = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _rutas = RemoteObject.createImmutable("");
int _i = 0;
 BA.debugLineNum = 92;BA.debugLine="Sub traeRutasSup As String";
Debug.ShouldStop(134217728);
 BA.debugLineNum = 93;BA.debugLine="Dim c As Cursor";
Debug.ShouldStop(268435456);
_c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");Debug.locals.put("c", _c);
 BA.debugLineNum = 94;BA.debugLine="Dim rutas As String";
Debug.ShouldStop(536870912);
_rutas = RemoteObject.createImmutable("");Debug.locals.put("rutas", _rutas);
 BA.debugLineNum = 95;BA.debugLine="rutas = \"\"";
Debug.ShouldStop(1073741824);
_rutas = BA.ObjectToString("");Debug.locals.put("rutas", _rutas);
 BA.debugLineNum = 97;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"SELECT CAT_";
Debug.ShouldStop(1);
_c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_bitacora._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT CAT_CL_RUTA FROM kmt_info3"))));Debug.locals.put("c", _c);
 BA.debugLineNum = 99;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean(">",_c.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 100;BA.debugLine="For i = 0 To c.RowCount - 1";
Debug.ShouldStop(8);
{
final int step6 = 1;
final int limit6 = RemoteObject.solve(new RemoteObject[] {_c.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step6 > 0 && _i <= limit6) || (step6 < 0 && _i >= limit6) ;_i = ((int)(0 + _i + step6))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 101;BA.debugLine="c.Position = i";
Debug.ShouldStop(16);
_c.runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 102;BA.debugLine="rutas = rutas & c.GetString(\"CAT_CL_RUTA\") & \",";
Debug.ShouldStop(32);
_rutas = RemoteObject.concat(_rutas,_c.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_RUTA"))),RemoteObject.createImmutable(", "));Debug.locals.put("rutas", _rutas);
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 104;BA.debugLine="If rutas.Length > 0 Then rutas = rutas.SubString";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean(">",_rutas.runMethod(true,"length"),BA.numberCast(double.class, 0))) { 
_rutas = _rutas.runMethod(true,"substring",(Object)(BA.numberCast(int.class, 0)),(Object)(RemoteObject.solve(new RemoteObject[] {_rutas.runMethod(true,"length"),RemoteObject.createImmutable(2)}, "-",1, 1)));Debug.locals.put("rutas", _rutas);};
 };
 BA.debugLineNum = 107;BA.debugLine="c.Close";
Debug.ShouldStop(1024);
_c.runVoidMethod ("Close");
 BA.debugLineNum = 108;BA.debugLine="Return rutas";
Debug.ShouldStop(2048);
if (true) return _rutas;
 BA.debugLineNum = 109;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}