package gunav2.keymon.com.mx;

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

public class b4xmainpage_subs_0 {


public static RemoteObject  _b_aceptar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_aceptar_Click (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,996);
if (RapidSub.canDelegate("b_aceptar_click")) { return __ref.runUserSub(false, "b4xmainpage","b_aceptar_click", __ref);}
RemoteObject _c2 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _rutades = RemoteObject.createImmutable("");
RemoteObject _almacendes = RemoteObject.createImmutable("");
 BA.debugLineNum = 996;BA.debugLine="Private Sub b_aceptar_Click";
Debug.ShouldStop(8);
 BA.debugLineNum = 997;BA.debugLine="If et_codigo.Text <> \"\" Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_et_codigo" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString(""))) { 
 BA.debugLineNum = 998;BA.debugLine="Private c2 As Cursor = skmt.ExecQuery(\"select di";
Debug.ShouldStop(32);
_c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), __ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select distinct CAT_CL_RUTA from kmt_info3 where CAT_CL_RUTA not in (select * from ruta_suplencia)"))));Debug.locals.put("c2", _c2);Debug.locals.put("c2", _c2);
 BA.debugLineNum = 999;BA.debugLine="c2.Position = 0";
Debug.ShouldStop(64);
_c2.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1000;BA.debugLine="Private rutades As String = c2.GetString(\"CAT_CL";
Debug.ShouldStop(128);
_rutades = _c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_RUTA")));Debug.locals.put("rutades", _rutades);Debug.locals.put("rutades", _rutades);
 BA.debugLineNum = 1001;BA.debugLine="c2.Close";
Debug.ShouldStop(256);
_c2.runVoidMethod ("Close");
 BA.debugLineNum = 1002;BA.debugLine="Private c2 As Cursor = skmt.ExecQuery(\"SELECT ID";
Debug.ShouldStop(512);
_c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), __ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT ID_ALMACEN FROM CAT_ALMACEN"))));Debug.locals.put("c2", _c2);Debug.locals.put("c2", _c2);
 BA.debugLineNum = 1003;BA.debugLine="c2.Position = 0";
Debug.ShouldStop(1024);
_c2.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1004;BA.debugLine="Private almacendes As String = c2.GetString(\"ID_";
Debug.ShouldStop(2048);
_almacendes = _c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("ID_ALMACEN")));Debug.locals.put("almacendes", _almacendes);Debug.locals.put("almacendes", _almacendes);
 BA.debugLineNum = 1005;BA.debugLine="c2.Close";
Debug.ShouldStop(4096);
_c2.runVoidMethod ("Close");
 BA.debugLineNum = 1006;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(8192);
b4xmainpage._cmd = RemoteObject.createNew ("gunav2.keymon.com.mx.dbrequestmanager._dbcommand");__ref.setField("_cmd",b4xmainpage._cmd);
 BA.debugLineNum = 1007;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(16384);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1008;BA.debugLine="cmd.Name = \"select_geoPass_GUNA\"";
Debug.ShouldStop(32768);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_geoPass_GUNA"));
 BA.debugLineNum = 1009;BA.debugLine="cmd.Parameters = Array As Object(et_codigo.Text,";
Debug.ShouldStop(65536);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(__ref.getField(false,"_et_codigo" /*RemoteObject*/ ).runMethod(true,"getText")),(_almacendes),(_rutades)}));
 BA.debugLineNum = 1010;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"geopass\")";
Debug.ShouldStop(131072);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("geopass"))));
 }else 
{ BA.debugLineNum = 1011;BA.debugLine="Else If et_codigo.Text = \"\" Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_et_codigo" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString(""))) { 
 BA.debugLineNum = 1012;BA.debugLine="MsgboxAsync(\"Ingresa un codigo\",\"Atención\")";
Debug.ShouldStop(524288);
b4xmainpage.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Ingresa un codigo")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 1013;BA.debugLine="p_validacion.Visible = False";
Debug.ShouldStop(1048576);
__ref.getField(false,"_p_validacion" /*RemoteObject*/ ).runMethod(true,"setVisible",b4xmainpage.__c.getField(true,"False"));
 BA.debugLineNum = 1014;BA.debugLine="B4XSwitch2.Value = False";
Debug.ShouldStop(2097152);
__ref.getField(false,"_b4xswitch2" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.b4xswitch.class, "_setvalue" /*RemoteObject*/ ,b4xmainpage.__c.getField(true,"False"));
 BA.debugLineNum = 1015;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE GPS SET HABILITADO =";
Debug.ShouldStop(4194304);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE GPS SET HABILITADO = (?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {RemoteObject.createImmutable((0))})))));
 BA.debugLineNum = 1016;BA.debugLine="et_codigo.Text = \"\"";
Debug.ShouldStop(8388608);
__ref.getField(false,"_et_codigo" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 }}
;
 BA.debugLineNum = 1044;BA.debugLine="End Sub";
Debug.ShouldStop(524288);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_actualizacion_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_actualizacion_Click (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,1129);
if (RapidSub.canDelegate("b_actualizacion_click")) { return __ref.runUserSub(false, "b4xmainpage","b_actualizacion_click", __ref);}
 BA.debugLineNum = 1129;BA.debugLine="Private Sub b_actualizacion_Click";
Debug.ShouldStop(256);
 BA.debugLineNum = 1130;BA.debugLine="CallSubDelayed(appUpdater, \"download_newApk\")";
Debug.ShouldStop(512);
b4xmainpage.__c.runVoidMethod ("CallSubDelayed",__ref.getField(false, "ba"),(Object)((b4xmainpage._appupdater.getObject())),(Object)(RemoteObject.createImmutable("download_newApk")));
 BA.debugLineNum = 1131;BA.debugLine="End Sub";
Debug.ShouldStop(1024);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_apk_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_apk_Click (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,872);
if (RapidSub.canDelegate("b_apk_click")) { return __ref.runUserSub(false, "b4xmainpage","b_apk_click", __ref);}
 BA.debugLineNum = 872;BA.debugLine="Sub b_apk_Click";
Debug.ShouldStop(128);
 BA.debugLineNum = 873;BA.debugLine="StartService(appUpdater)";
Debug.ShouldStop(256);
b4xmainpage.__c.runVoidMethod ("StartService",__ref.getField(false, "ba"),(Object)((b4xmainpage._appupdater.getObject())));
 BA.debugLineNum = 874;BA.debugLine="End Sub";
Debug.ShouldStop(512);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_cancelarcodigo_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_cancelarcodigo_Click (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,990);
if (RapidSub.canDelegate("b_cancelarcodigo_click")) { return __ref.runUserSub(false, "b4xmainpage","b_cancelarcodigo_click", __ref);}
 BA.debugLineNum = 990;BA.debugLine="Private Sub b_cancelarcodigo_Click";
Debug.ShouldStop(536870912);
 BA.debugLineNum = 991;BA.debugLine="p_validacion.Visible = False";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_p_validacion" /*RemoteObject*/ ).runMethod(true,"setVisible",b4xmainpage.__c.getField(true,"False"));
 BA.debugLineNum = 992;BA.debugLine="et_codigo.Text = \"\"";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_et_codigo" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 993;BA.debugLine="B4XSwitch2.Value = False";
Debug.ShouldStop(1);
__ref.getField(false,"_b4xswitch2" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.b4xswitch.class, "_setvalue" /*RemoteObject*/ ,b4xmainpage.__c.getField(true,"False"));
 BA.debugLineNum = 994;BA.debugLine="End Sub";
Debug.ShouldStop(2);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static void  _b_enviobd_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_envioBD_Click (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,935);
if (RapidSub.canDelegate("b_enviobd_click")) { __ref.runUserSub(false, "b4xmainpage","b_enviobd_click", __ref); return;}
ResumableSub_b_envioBD_Click rsub = new ResumableSub_b_envioBD_Click(null,__ref);
rsub.resume(null, null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_b_envioBD_Click extends BA.ResumableSub {
public ResumableSub_b_envioBD_Click(gunav2.keymon.com.mx.b4xmainpage parent,RemoteObject __ref) {
this.parent = parent;
this.__ref = __ref;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
RemoteObject __ref;
gunav2.keymon.com.mx.b4xmainpage parent;
RemoteObject _filename = RemoteObject.createImmutable("");
RemoteObject _email = RemoteObject.declareNull("anywheresoftware.b4a.phone.Phone.Email");
RemoteObject _in = RemoteObject.declareNull("anywheresoftware.b4a.objects.IntentWrapper");

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("b_envioBD_Click (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,935);
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;

    while (true) {
        switch (state) {
            case -1:
return;

case 0:
//C
this.state = -1;
Debug.locals.put("_ref", __ref);
 BA.debugLineNum = 938;BA.debugLine="Dim FileName As String = \"kmt.db\"";
Debug.ShouldStop(512);
_filename = BA.ObjectToString("kmt.db");Debug.locals.put("FileName", _filename);Debug.locals.put("FileName", _filename);
 BA.debugLineNum = 940;BA.debugLine="Log(\"xxxxxx:\"&Provider.SharedFolder)";
Debug.ShouldStop(2048);
parent.__c.runVoidMethod ("LogImpl","02555909",RemoteObject.concat(RemoteObject.createImmutable("xxxxxx:"),__ref.getField(false,"_provider" /*RemoteObject*/ ).getField(true,"_sharedfolder" /*RemoteObject*/ )),0);
 BA.debugLineNum = 941;BA.debugLine="Sleep(1000)";
Debug.ShouldStop(4096);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "b4xmainpage", "b_enviobd_click"),BA.numberCast(int.class, 1000));
this.state = 1;
return;
case 1:
//C
this.state = -1;
;
 BA.debugLineNum = 942;BA.debugLine="File.Copy(File.DirInternal, FileName, Provider.Sh";
Debug.ShouldStop(8192);
parent.__c.getField(false,"File").runVoidMethod ("Copy",(Object)(parent.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(_filename),(Object)(__ref.getField(false,"_provider" /*RemoteObject*/ ).getField(true,"_sharedfolder" /*RemoteObject*/ )),(Object)(_filename));
 BA.debugLineNum = 943;BA.debugLine="Dim email As Email";
Debug.ShouldStop(16384);
_email = RemoteObject.createNew ("anywheresoftware.b4a.phone.Phone.Email");Debug.locals.put("email", _email);
 BA.debugLineNum = 944;BA.debugLine="email.To.Add(\"cheveguerra@gmail.com\")";
Debug.ShouldStop(32768);
_email.getField(false,"To").runVoidMethod ("Add",(Object)((RemoteObject.createImmutable("cheveguerra@gmail.com"))));
 BA.debugLineNum = 945;BA.debugLine="email.Subject = \"subject\"";
Debug.ShouldStop(65536);
_email.setField ("Subject",BA.ObjectToString("subject"));
 BA.debugLineNum = 946;BA.debugLine="email.Attachments.Add(Provider.GetFileUri(FileNam";
Debug.ShouldStop(131072);
_email.getField(false,"Attachments").runVoidMethod ("Add",(Object)(__ref.getField(false,"_provider" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.fileprovider.class, "_getfileuri" /*RemoteObject*/ ,(Object)(_filename))));
 BA.debugLineNum = 948;BA.debugLine="Dim in As Intent = email.GetIntent";
Debug.ShouldStop(524288);
_in = RemoteObject.createNew ("anywheresoftware.b4a.objects.IntentWrapper");
_in = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.IntentWrapper"), _email.runMethod(false,"GetIntent"));Debug.locals.put("in", _in);Debug.locals.put("in", _in);
 BA.debugLineNum = 949;BA.debugLine="in.Flags = 1 'FLAG_GRANT_READ_URI_PERMISSION";
Debug.ShouldStop(1048576);
_in.runMethod(true,"setFlags",BA.numberCast(int.class, 1));
 BA.debugLineNum = 950;BA.debugLine="StartActivity(in)";
Debug.ShouldStop(2097152);
parent.__c.runVoidMethod ("StartActivity",__ref.getField(false, "ba"),(Object)((_in.getObject())));
 BA.debugLineNum = 951;BA.debugLine="End Sub";
Debug.ShouldStop(4194304);
if (true) break;

            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static RemoteObject  _b_menu_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_menu_Click (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,809);
if (RapidSub.canDelegate("b_menu_click")) { return __ref.runUserSub(false, "b4xmainpage","b_menu_click", __ref);}
 BA.debugLineNum = 809;BA.debugLine="Sub b_menu_Click";
Debug.ShouldStop(256);
 BA.debugLineNum = 810;BA.debugLine="PopupMenu.Show";
Debug.ShouldStop(512);
__ref.getField(false,"_popupmenu" /*RemoteObject*/ ).runVoidMethod ("Show");
 BA.debugLineNum = 811;BA.debugLine="End Sub";
Debug.ShouldStop(1024);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_regesar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_regesar_Click (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,911);
if (RapidSub.canDelegate("b_regesar_click")) { return __ref.runUserSub(false, "b4xmainpage","b_regesar_click", __ref);}
 BA.debugLineNum = 911;BA.debugLine="Sub b_regesar_Click";
Debug.ShouldStop(16384);
 BA.debugLineNum = 913;BA.debugLine="p_appUpdate.Visible = False";
Debug.ShouldStop(65536);
__ref.getField(false,"_p_appupdate" /*RemoteObject*/ ).runMethod(true,"setVisible",b4xmainpage.__c.getField(true,"False"));
 BA.debugLineNum = 914;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES whe";
Debug.ShouldStop(131072);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.createImmutable("DBReqServer"))})))));
 BA.debugLineNum = 915;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES(CAT";
Debug.ShouldStop(262144);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("DBReqServer")),(__ref.getField(false,"_et_server" /*RemoteObject*/ ).runMethod(true,"getText"))})))));
 BA.debugLineNum = 916;BA.debugLine="Starter.server =  et_server.Text";
Debug.ShouldStop(524288);
b4xmainpage._starter._server /*RemoteObject*/  = __ref.getField(false,"_et_server" /*RemoteObject*/ ).runMethod(true,"getText");
 BA.debugLineNum = 917;BA.debugLine="Starter.reqManager.Initialize(Me, et_server.Text)";
Debug.ShouldStop(1048576);
b4xmainpage._starter._reqmanager /*RemoteObject*/ .runClassMethod (gunav2.keymon.com.mx.dbrequestmanager.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref),(Object)(__ref.getField(false,"_et_server" /*RemoteObject*/ ).runMethod(true,"getText")));
 BA.debugLineNum = 918;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static void  _b4xpage_appear(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_Appear (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,326);
if (RapidSub.canDelegate("b4xpage_appear")) { __ref.runUserSub(false, "b4xmainpage","b4xpage_appear", __ref); return;}
ResumableSub_B4XPage_Appear rsub = new ResumableSub_B4XPage_Appear(null,__ref);
rsub.resume(null, null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_B4XPage_Appear extends BA.ResumableSub {
public ResumableSub_B4XPage_Appear(gunav2.keymon.com.mx.b4xmainpage parent,RemoteObject __ref) {
this.parent = parent;
this.__ref = __ref;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
RemoteObject __ref;
gunav2.keymon.com.mx.b4xmainpage parent;
RemoteObject _ph = RemoteObject.declareNull("anywheresoftware.b4a.phone.Phone");
RemoteObject _deviceid = RemoteObject.createImmutable("");
RemoteObject _permission = RemoteObject.createImmutable("");
RemoteObject _result = RemoteObject.createImmutable(false);
RemoteObject _sdate = RemoteObject.createImmutable("");
RemoteObject _stime = RemoteObject.createImmutable("");

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_Appear (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,326);
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;

    while (true) {
        switch (state) {
            case -1:
return;

case 0:
//C
this.state = 1;
Debug.locals.put("_ref", __ref);
 BA.debugLineNum = 335;BA.debugLine="cb_importarBDWA.Checked = Subs.traeUsarIntentBDWA";
Debug.ShouldStop(16384);
__ref.getField(false,"_cb_importarbdwa" /*RemoteObject*/ ).runMethodAndSync(true,"setChecked",parent._subs.runMethod(true,"_traeusarintentbdwa" /*RemoteObject*/ ,__ref.getField(false, "ba")));
 BA.debugLineNum = 336;BA.debugLine="If user.Text.Trim = \"KMTS1\" Then";
Debug.ShouldStop(32768);
if (true) break;

case 1:
//if
this.state = 6;
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_user" /*RemoteObject*/ ).runMethod(true,"getText").runMethod(true,"trim"),BA.ObjectToString("KMTS1"))) { 
this.state = 3;
}else {
this.state = 5;
}if (true) break;

case 3:
//C
this.state = 6;
 BA.debugLineNum = 337;BA.debugLine="p_importarBDWA.Visible = True";
Debug.ShouldStop(65536);
__ref.getField(false,"_p_importarbdwa" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"True"));
 if (true) break;

case 5:
//C
this.state = 6;
 BA.debugLineNum = 339;BA.debugLine="p_importarBDWA.Visible = False";
Debug.ShouldStop(262144);
__ref.getField(false,"_p_importarbdwa" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 if (true) break;

case 6:
//C
this.state = 7;
;
 BA.debugLineNum = 341;BA.debugLine="reqManager.Initialize(Me, Starter.server)";
Debug.ShouldStop(1048576);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.dbrequestmanager.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref),(Object)(parent._starter._server /*RemoteObject*/ ));
 BA.debugLineNum = 342;BA.debugLine="If Starter.muestraProgreso = 1 Then";
Debug.ShouldStop(2097152);
if (true) break;

case 7:
//if
this.state = 10;
if (RemoteObject.solveBoolean("=",parent._starter._muestraprogreso /*RemoteObject*/ ,BA.NumberToString(1))) { 
this.state = 9;
}if (true) break;

case 9:
//C
this.state = 10;
 BA.debugLineNum = 343;BA.debugLine="muestraProgreso(\"Descargando nueva versión, un m";
Debug.ShouldStop(4194304);
__ref.runClassMethod (gunav2.keymon.com.mx.b4xmainpage.class, "_muestraprogreso" /*RemoteObject*/ ,(Object)(RemoteObject.createImmutable("Descargando nueva versión, un momento por favor.")));
 BA.debugLineNum = 344;BA.debugLine="Starter.muestraProgreso = 0";
Debug.ShouldStop(8388608);
parent._starter._muestraprogreso /*RemoteObject*/  = BA.NumberToString(0);
 if (true) break;

case 10:
//C
this.state = 11;
;
 BA.debugLineNum = 346;BA.debugLine="Dim ph As Phone 'Get Id Device";
Debug.ShouldStop(33554432);
_ph = RemoteObject.createNew ("anywheresoftware.b4a.phone.Phone");Debug.locals.put("ph", _ph);
 BA.debugLineNum = 347;BA.debugLine="Dim DeviceID As String = ph.GetSettings(\"android_";
Debug.ShouldStop(67108864);
_deviceid = _ph.runMethod(true,"GetSettings",(Object)(RemoteObject.createImmutable("android_id"))).runMethod(true,"toUpperCase");Debug.locals.put("DeviceID", _deviceid);Debug.locals.put("DeviceID", _deviceid);
 BA.debugLineNum = 349;BA.debugLine="LogColor(\"Revisa permisos Phone_State\", Colors.Gr";
Debug.ShouldStop(268435456);
parent.__c.runVoidMethod ("LogImpl","01310743",BA.ObjectToString("Revisa permisos Phone_State"),parent.__c.getField(false,"Colors").getField(true,"Green"));
 BA.debugLineNum = 350;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
Debug.ShouldStop(536870912);
parent._starter._rp /*RemoteObject*/ .runVoidMethod ("CheckAndRequest",__ref.getField(false, "ba"),(Object)(parent._starter._rp /*RemoteObject*/ .getField(true,"PERMISSION_READ_PHONE_STATE")));
 BA.debugLineNum = 351;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
Debug.ShouldStop(1073741824);
parent.__c.runVoidMethod ("WaitFor","b4xpage_permissionresult", __ref.getField(false, "ba"), anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "b4xmainpage", "b4xpage_appear"), null);
this.state = 63;
return;
case 63:
//C
this.state = 11;
_permission = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(1));Debug.locals.put("Permission", _permission);
_result = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(2));Debug.locals.put("Result", _result);
;
 BA.debugLineNum = 352;BA.debugLine="If Result Then";
Debug.ShouldStop(-2147483648);
if (true) break;

case 11:
//if
this.state = 14;
if (_result.<Boolean>get().booleanValue()) { 
this.state = 13;
}if (true) break;

case 13:
//C
this.state = 14;
 BA.debugLineNum = 353;BA.debugLine="IMEN.Text =\"\"";
Debug.ShouldStop(1);
__ref.getField(false,"_imen" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 354;BA.debugLine="IMEI = \"\"";
Debug.ShouldStop(2);
__ref.setField ("_imei" /*RemoteObject*/ ,BA.ObjectToString(""));
 BA.debugLineNum = 356;BA.debugLine="IMEI=\"\"  'Pruebas";
Debug.ShouldStop(8);
__ref.setField ("_imei" /*RemoteObject*/ ,BA.ObjectToString(""));
 if (true) break;

case 14:
//C
this.state = 15;
;
 BA.debugLineNum = 358;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
Debug.ShouldStop(32);
parent._starter._rp /*RemoteObject*/ .runVoidMethod ("CheckAndRequest",__ref.getField(false, "ba"),(Object)(parent._starter._rp /*RemoteObject*/ .getField(true,"PERMISSION_ACCESS_FINE_LOCATION")));
 BA.debugLineNum = 359;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
Debug.ShouldStop(64);
parent.__c.runVoidMethod ("WaitFor","b4xpage_permissionresult", __ref.getField(false, "ba"), anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "b4xmainpage", "b4xpage_appear"), null);
this.state = 64;
return;
case 64:
//C
this.state = 15;
_permission = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(1));Debug.locals.put("Permission", _permission);
_result = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(2));Debug.locals.put("Result", _result);
;
 BA.debugLineNum = 360;BA.debugLine="If Result Then";
Debug.ShouldStop(128);
if (true) break;

case 15:
//if
this.state = 20;
if (_result.<Boolean>get().booleanValue()) { 
this.state = 17;
}else {
this.state = 19;
}if (true) break;

case 17:
//C
this.state = 20;
 BA.debugLineNum = 361;BA.debugLine="StartService(Tracker)";
Debug.ShouldStop(256);
parent.__c.runVoidMethod ("StartService",__ref.getField(false, "ba"),(Object)((parent._tracker.getObject())));
 BA.debugLineNum = 362;BA.debugLine="Log(\"Start Tracker\")";
Debug.ShouldStop(512);
parent.__c.runVoidMethod ("LogImpl","01310756",RemoteObject.createImmutable("Start Tracker"),0);
 if (true) break;

case 19:
//C
this.state = 20;
 BA.debugLineNum = 364;BA.debugLine="ToastMessageShow(\"Sin permisos de ubicacion\", Tr";
Debug.ShouldStop(2048);
parent.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Sin permisos de ubicacion")),(Object)(parent.__c.getField(true,"True")));
 if (true) break;

case 20:
//C
this.state = 21;
;
 BA.debugLineNum = 366;BA.debugLine="server = Starter.server";
Debug.ShouldStop(8192);
__ref.setField ("_server" /*RemoteObject*/ ,parent._starter._server /*RemoteObject*/ );
 BA.debugLineNum = 367;BA.debugLine="tgl.Initialize()";
Debug.ShouldStop(16384);
__ref.getField(false,"_tgl" /*RemoteObject*/ ).runVoidMethod ("Initialize",__ref.getField(false, "ba"));
 BA.debugLineNum = 368;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then";
Debug.ShouldStop(32768);
if (true) break;

case 21:
//if
this.state = 24;
if (parent.__c.runMethod(true,"Not",(Object)(parent._starter._gps /*RemoteObject*/ .runMethod(true,"getGPSEnabled"))).<Boolean>get().booleanValue()) { 
this.state = 23;
}if (true) break;

case 23:
//C
this.state = 24;
 BA.debugLineNum = 369;BA.debugLine="ToastMessageShow(\"Es necesario tener el GPS ence";
Debug.ShouldStop(65536);
parent.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Es necesario tener el GPS encendido")),(Object)(parent.__c.getField(true,"True")));
 BA.debugLineNum = 370;BA.debugLine="Sleep(500)";
Debug.ShouldStop(131072);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "b4xmainpage", "b4xpage_appear"),BA.numberCast(int.class, 500));
this.state = 65;
return;
case 65:
//C
this.state = 24;
;
 BA.debugLineNum = 371;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent";
Debug.ShouldStop(262144);
parent.__c.runVoidMethod ("StartActivity",__ref.getField(false, "ba"),(Object)((parent._starter._gps /*RemoteObject*/ .runMethod(false,"getLocationSettingsIntent"))));
 if (true) break;

case 24:
//C
this.state = 25;
;
 BA.debugLineNum = 373;BA.debugLine="c=skmt.ExecQuery2(\"select count(*) as CUANTOS fro";
Debug.ShouldStop(1048576);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select count(*) as CUANTOS from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("FECHA")}))));
 BA.debugLineNum = 374;BA.debugLine="c.Position = 0";
Debug.ShouldStop(2097152);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 375;BA.debugLine="If c.GetString(\"CUANTOS\") = 0 Then";
Debug.ShouldStop(4194304);
if (true) break;

case 25:
//if
this.state = 34;
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS"))),BA.NumberToString(0))) { 
this.state = 27;
}else {
this.state = 29;
}if (true) break;

case 27:
//C
this.state = 34;
 BA.debugLineNum = 376;BA.debugLine="LogColor($\"No hay fecha: ${c.GetString(\"CUANTOS\"";
Debug.ShouldStop(8388608);
parent.__c.runVoidMethod ("LogImpl","01310770",(RemoteObject.concat(RemoteObject.createImmutable("No hay fecha: "),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))))),RemoteObject.createImmutable(""))),parent.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 377;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(16777216);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 378;BA.debugLine="cmd.Name = \"select_fecha\"";
Debug.ShouldStop(33554432);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_fecha"));
 BA.debugLineNum = 379;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"fecha\")";
Debug.ShouldStop(67108864);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("fecha"))));
 BA.debugLineNum = 380;BA.debugLine="Msgbox(\"AJUSTAR FECHA\",\"AVISO\") 'Ignore";
Debug.ShouldStop(134217728);
parent.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("AJUSTAR FECHA")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("AVISO"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 381;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(268435456);
__ref.runClassMethod (gunav2.keymon.com.mx.b4xmainpage.class, "_b4xpage_appear" /*void*/ );
 if (true) break;

case 29:
//C
this.state = 30;
 BA.debugLineNum = 383;BA.debugLine="LogColor($\"Si hay fecha: ${c.GetString(\"CUANTOS\"";
Debug.ShouldStop(1073741824);
parent.__c.runVoidMethod ("LogImpl","01310777",(RemoteObject.concat(RemoteObject.createImmutable("Si hay fecha: "),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))))),RemoteObject.createImmutable(""))),parent.__c.getField(false,"Colors").getField(true,"Green"));
 BA.debugLineNum = 384;BA.debugLine="c=skmt.ExecQuery2(\"select CAT_VA_VALOR from CAT_";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("FECHA")}))));
 BA.debugLineNum = 385;BA.debugLine="c.Position =0";
Debug.ShouldStop(1);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 386;BA.debugLine="Dim sDate, sTime As String";
Debug.ShouldStop(2);
_sdate = RemoteObject.createImmutable("");Debug.locals.put("sDate", _sdate);
_stime = RemoteObject.createImmutable("");Debug.locals.put("sTime", _stime);
 BA.debugLineNum = 387;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\"";
Debug.ShouldStop(4);
parent.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("yyyyMMdd"));
 BA.debugLineNum = 388;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(8);
_sdate = parent.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(parent.__c.getField(false,"DateTime").runMethod(true,"getNow")));Debug.locals.put("sDate", _sdate);
 BA.debugLineNum = 393;BA.debugLine="If c.GetString(\"CAT_VA_VALOR\") > sDate Then";
Debug.ShouldStop(256);
if (true) break;

case 30:
//if
this.state = 33;
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_VA_VALOR")))),BA.numberCast(double.class, _sdate))) { 
this.state = 32;
}if (true) break;

case 32:
//C
this.state = 33;
 BA.debugLineNum = 394;BA.debugLine="Msgbox(\"AJUSTAR LA FECHA YA QUE ES MENOR AL SIS";
Debug.ShouldStop(512);
parent.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("AJUSTAR LA FECHA YA QUE ES MENOR AL SISTEMA")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("AVISO"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 395;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(1024);
__ref.runClassMethod (gunav2.keymon.com.mx.b4xmainpage.class, "_b4xpage_appear" /*void*/ );
 if (true) break;

case 33:
//C
this.state = 34;
;
 if (true) break;

case 34:
//C
this.state = 35;
;
 BA.debugLineNum = 398;BA.debugLine="bu.Initialize";
Debug.ShouldStop(8192);
__ref.getField(false,"_bu" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.batteryutilities.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 399;BA.debugLine="batterystatus = bu.BatteryInformation";
Debug.ShouldStop(16384);
__ref.setField ("_batterystatus" /*RemoteObject*/ ,__ref.getField(false,"_bu" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.batteryutilities.class, "_getbatteryinformation" /*RemoteObject*/ ));
 BA.debugLineNum = 401;BA.debugLine="CallSubDelayed(FirebaseMessaging, \"SubscribeToTop";
Debug.ShouldStop(65536);
parent.__c.runVoidMethod ("CallSubDelayed",__ref.getField(false, "ba"),(Object)((parent._firebasemessaging.getObject())),(Object)(RemoteObject.createImmutable("SubscribeToTopics")));
 BA.debugLineNum = 402;BA.debugLine="dameUsuario";
Debug.ShouldStop(131072);
__ref.runClassMethod (gunav2.keymon.com.mx.b4xmainpage.class, "_dameusuario" /*RemoteObject*/ );
 BA.debugLineNum = 403;BA.debugLine="c = skmt.ExecQuery(\"SELECT HABILITADA FROM IMPRES";
Debug.ShouldStop(262144);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT HABILITADA FROM IMPRESORA"))));
 BA.debugLineNum = 404;BA.debugLine="If c.RowCount >  0 Then";
Debug.ShouldStop(524288);
if (true) break;

case 35:
//if
this.state = 46;
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
this.state = 37;
}else {
this.state = 45;
}if (true) break;

case 37:
//C
this.state = 38;
 BA.debugLineNum = 405;BA.debugLine="c.Position = 0";
Debug.ShouldStop(1048576);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 406;BA.debugLine="If c.GetString(\"HABILITADA\") = 1 Then";
Debug.ShouldStop(2097152);
if (true) break;

case 38:
//if
this.state = 43;
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HABILITADA"))),BA.NumberToString(1))) { 
this.state = 40;
}else 
{ BA.debugLineNum = 408;BA.debugLine="Else If c.GetString(\"HABILITADA\") = 0 Then";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HABILITADA"))),BA.NumberToString(0))) { 
this.state = 42;
}}
if (true) break;

case 40:
//C
this.state = 43;
 BA.debugLineNum = 407;BA.debugLine="B4XSwitch1.Value = True";
Debug.ShouldStop(4194304);
__ref.getField(false,"_b4xswitch1" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.b4xswitch.class, "_setvalue" /*RemoteObject*/ ,parent.__c.getField(true,"True"));
 if (true) break;

case 42:
//C
this.state = 43;
 BA.debugLineNum = 409;BA.debugLine="B4XSwitch1.Value = False";
Debug.ShouldStop(16777216);
__ref.getField(false,"_b4xswitch1" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.b4xswitch.class, "_setvalue" /*RemoteObject*/ ,parent.__c.getField(true,"False"));
 if (true) break;

case 43:
//C
this.state = 46;
;
 if (true) break;

case 45:
//C
this.state = 46;
 BA.debugLineNum = 412;BA.debugLine="B4XSwitch1.Value = False";
Debug.ShouldStop(134217728);
__ref.getField(false,"_b4xswitch1" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.b4xswitch.class, "_setvalue" /*RemoteObject*/ ,parent.__c.getField(true,"False"));
 if (true) break;

case 46:
//C
this.state = 47;
;
 BA.debugLineNum = 414;BA.debugLine="c = skmt.ExecQuery(\"SELECT HABILITADO FROM GPS\")";
Debug.ShouldStop(536870912);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT HABILITADO FROM GPS"))));
 BA.debugLineNum = 415;BA.debugLine="If c.RowCount = 0 Then";
Debug.ShouldStop(1073741824);
if (true) break;

case 47:
//if
this.state = 50;
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
this.state = 49;
}if (true) break;

case 49:
//C
this.state = 50;
 BA.debugLineNum = 416;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO GPS VALUES (?)\",";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO GPS VALUES (?)")),(Object)(parent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {RemoteObject.createImmutable((0))})))));
 if (true) break;

case 50:
//C
this.state = 51;
;
 BA.debugLineNum = 418;BA.debugLine="c = skmt.ExecQuery(\"SELECT HABILITADO FROM GPS\")";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT HABILITADO FROM GPS"))));
 BA.debugLineNum = 419;BA.debugLine="If c.RowCount >  0 Then";
Debug.ShouldStop(4);
if (true) break;

case 51:
//if
this.state = 62;
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
this.state = 53;
}else {
this.state = 61;
}if (true) break;

case 53:
//C
this.state = 54;
 BA.debugLineNum = 420;BA.debugLine="c.Position = 0";
Debug.ShouldStop(8);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 421;BA.debugLine="If c.GetString(\"HABILITADO\") = 1 Then";
Debug.ShouldStop(16);
if (true) break;

case 54:
//if
this.state = 59;
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HABILITADO"))),BA.NumberToString(1))) { 
this.state = 56;
}else 
{ BA.debugLineNum = 423;BA.debugLine="Else If c.GetString(\"HABILITADO\") = 0 Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HABILITADO"))),BA.NumberToString(0))) { 
this.state = 58;
}}
if (true) break;

case 56:
//C
this.state = 59;
 BA.debugLineNum = 422;BA.debugLine="B4XSwitch2.Value = True";
Debug.ShouldStop(32);
__ref.getField(false,"_b4xswitch2" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.b4xswitch.class, "_setvalue" /*RemoteObject*/ ,parent.__c.getField(true,"True"));
 if (true) break;

case 58:
//C
this.state = 59;
 BA.debugLineNum = 424;BA.debugLine="B4XSwitch2.Value = False";
Debug.ShouldStop(128);
__ref.getField(false,"_b4xswitch2" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.b4xswitch.class, "_setvalue" /*RemoteObject*/ ,parent.__c.getField(true,"False"));
 if (true) break;

case 59:
//C
this.state = 62;
;
 if (true) break;

case 61:
//C
this.state = 62;
 BA.debugLineNum = 427;BA.debugLine="B4XSwitch2.Value = False";
Debug.ShouldStop(1024);
__ref.getField(false,"_b4xswitch2" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.b4xswitch.class, "_setvalue" /*RemoteObject*/ ,parent.__c.getField(true,"False"));
 if (true) break;

case 62:
//C
this.state = -1;
;
 BA.debugLineNum = 429;BA.debugLine="Subs.guardaAppInfo";
Debug.ShouldStop(4096);
parent._subs.runVoidMethod ("_guardaappinfo" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 438;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
if (true) break;

            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static void  _b4xpage_permissionresult(RemoteObject __ref,RemoteObject _permission,RemoteObject _result) throws Exception{
}
public static RemoteObject  _b4xpage_closerequest(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_CloseRequest (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,779);
if (RapidSub.canDelegate("b4xpage_closerequest")) { return __ref.runUserSub(false, "b4xmainpage","b4xpage_closerequest", __ref);}
ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(null,__ref);
rsub.remoteResumableSub = anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSubForFilter();
rsub.resume(null, null);
return RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.keywords.Common.ResumableSubWrapper"), rsub.remoteResumableSub);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
public ResumableSub_B4XPage_CloseRequest(gunav2.keymon.com.mx.b4xmainpage parent,RemoteObject __ref) {
this.parent = parent;
this.__ref = __ref;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
RemoteObject __ref;
gunav2.keymon.com.mx.b4xmainpage parent;

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_CloseRequest (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,779);
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;

    while (true) {
        switch (state) {
            case -1:
{
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,RemoteObject.createImmutable(null));return;}
case 0:
//C
this.state = 1;
Debug.locals.put("_ref", __ref);
 BA.debugLineNum = 780;BA.debugLine="Log(\"closreq\")";
Debug.ShouldStop(2048);
parent.__c.runVoidMethod ("LogImpl","01638401",RemoteObject.createImmutable("closreq"),0);
 BA.debugLineNum = 781;BA.debugLine="Sleep(0)";
Debug.ShouldStop(4096);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "b4xmainpage", "b4xpage_closerequest"),BA.numberCast(int.class, 0));
this.state = 8;
return;
case 8:
//C
this.state = 1;
;
 BA.debugLineNum = 782;BA.debugLine="If p_appUpdate.IsInitialized And p_appUpdate.Visi";
Debug.ShouldStop(8192);
if (true) break;

case 1:
//if
this.state = 4;
if (RemoteObject.solveBoolean(".",__ref.getField(false,"_p_appupdate" /*RemoteObject*/ ).runMethod(true,"IsInitialized")) && RemoteObject.solveBoolean(".",__ref.getField(false,"_p_appupdate" /*RemoteObject*/ ).runMethod(true,"getVisible"))) { 
this.state = 3;
}if (true) break;

case 3:
//C
this.state = 4;
 BA.debugLineNum = 783;BA.debugLine="p_appUpdate.Visible = False";
Debug.ShouldStop(16384);
__ref.getField(false,"_p_appupdate" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 784;BA.debugLine="Return False";
Debug.ShouldStop(32768);
if (true) {
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,(parent.__c.getField(true,"False")));return;};
 if (true) break;
;
 BA.debugLineNum = 786;BA.debugLine="If Not(p_appUpdate.Visible) Then";
Debug.ShouldStop(131072);

case 4:
//if
this.state = 7;
if (parent.__c.runMethod(true,"Not",(Object)(__ref.getField(false,"_p_appupdate" /*RemoteObject*/ ).runMethod(true,"getVisible"))).<Boolean>get().booleanValue()) { 
this.state = 6;
}if (true) break;

case 6:
//C
this.state = 7;
 BA.debugLineNum = 787;BA.debugLine="Log(\"ExitApplication\")";
Debug.ShouldStop(262144);
parent.__c.runVoidMethod ("LogImpl","01638408",RemoteObject.createImmutable("ExitApplication"),0);
 BA.debugLineNum = 788;BA.debugLine="ExitApplication";
Debug.ShouldStop(524288);
parent.__c.runVoidMethod ("ExitApplication");
 if (true) break;

case 7:
//C
this.state = -1;
;
 BA.debugLineNum = 790;BA.debugLine="Return True";
Debug.ShouldStop(2097152);
if (true) {
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,(parent.__c.getField(true,"True")));return;};
 BA.debugLineNum = 791;BA.debugLine="End Sub";
Debug.ShouldStop(4194304);
if (true) break;

            }
        }
    }
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 (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,107);
if (RapidSub.canDelegate("b4xpage_created")) { return __ref.runUserSub(false, "b4xmainpage","b4xpage_created", __ref, _root1);}
Debug.locals.put("Root1", _root1);
 BA.debugLineNum = 107;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
Debug.ShouldStop(1024);
 BA.debugLineNum = 108;BA.debugLine="Log(\"#####   CREAMOS MAINPAGE LOGIN\")";
Debug.ShouldStop(2048);
b4xmainpage.__c.runVoidMethod ("LogImpl","01245185",RemoteObject.createImmutable("#####   CREAMOS MAINPAGE LOGIN"),0);
 BA.debugLineNum = 109;BA.debugLine="B4XPages.GetManager.LogEvents = True";
Debug.ShouldStop(4096);
b4xmainpage._b4xpages.runMethod(false,"_getmanager" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_logevents" /*RemoteObject*/ ,b4xmainpage.__c.getField(true,"True"));
 BA.debugLineNum = 110;BA.debugLine="Root = Root1";
Debug.ShouldStop(8192);
__ref.setField ("_root" /*RemoteObject*/ ,_root1);
 BA.debugLineNum = 111;BA.debugLine="Root.LoadLayout(\"login\")";
Debug.ShouldStop(16384);
__ref.getField(false,"_root" /*RemoteObject*/ ).runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("login")),__ref.getField(false, "ba"));
 BA.debugLineNum = 115;BA.debugLine="login.Initialize";
Debug.ShouldStop(262144);
__ref.getField(false,"_login" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.b4xmainpage.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 116;BA.debugLine="B4XPages.AddPage(\"Login\", login)";
Debug.ShouldStop(524288);
b4xmainpage._b4xpages.runVoidMethod ("_addpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("Login")),(Object)((__ref.getField(false,"_login" /*RemoteObject*/ ))));
 BA.debugLineNum = 117;BA.debugLine="principal.Initialize";
Debug.ShouldStop(1048576);
__ref.getField(false,"_principal" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.c_principal.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 118;BA.debugLine="B4XPages.AddPage(\"Principal\", principal)";
Debug.ShouldStop(2097152);
b4xmainpage._b4xpages.runVoidMethod ("_addpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("Principal")),(Object)((__ref.getField(false,"_principal" /*RemoteObject*/ ))));
 BA.debugLineNum = 119;BA.debugLine="clientes.Initialize";
Debug.ShouldStop(4194304);
__ref.getField(false,"_clientes" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.c_clientes.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 120;BA.debugLine="B4XPages.AddPage(\"Clientes\", clientes)";
Debug.ShouldStop(8388608);
b4xmainpage._b4xpages.runVoidMethod ("_addpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("Clientes")),(Object)((__ref.getField(false,"_clientes" /*RemoteObject*/ ))));
 BA.debugLineNum = 121;BA.debugLine="cliente.Initialize";
Debug.ShouldStop(16777216);
__ref.getField(false,"_cliente" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.c_cliente.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 122;BA.debugLine="B4XPages.AddPage(\"Cliente\", cliente)";
Debug.ShouldStop(33554432);
b4xmainpage._b4xpages.runVoidMethod ("_addpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("Cliente")),(Object)((__ref.getField(false,"_cliente" /*RemoteObject*/ ))));
 BA.debugLineNum = 123;BA.debugLine="productos.Initialize";
Debug.ShouldStop(67108864);
__ref.getField(false,"_productos" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.c_productos.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 124;BA.debugLine="B4XPages.AddPage(\"Productos\", productos)";
Debug.ShouldStop(134217728);
b4xmainpage._b4xpages.runVoidMethod ("_addpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("Productos")),(Object)((__ref.getField(false,"_productos" /*RemoteObject*/ ))));
 BA.debugLineNum = 125;BA.debugLine="updateAvailable.Initialize";
Debug.ShouldStop(268435456);
__ref.getField(false,"_updateavailable" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.c_updateavailable.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 126;BA.debugLine="B4XPages.AddPage(\"updateAvailable\", updateAvailab";
Debug.ShouldStop(536870912);
b4xmainpage._b4xpages.runVoidMethod ("_addpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("updateAvailable")),(Object)((__ref.getField(false,"_updateavailable" /*RemoteObject*/ ))));
 BA.debugLineNum = 127;BA.debugLine="mapas.Initialize";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_mapas" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.c_mapas.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 128;BA.debugLine="B4XPages.AddPage(\"Mapas\", mapas)";
Debug.ShouldStop(-2147483648);
b4xmainpage._b4xpages.runVoidMethod ("_addpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("Mapas")),(Object)((__ref.getField(false,"_mapas" /*RemoteObject*/ ))));
 BA.debugLineNum = 129;BA.debugLine="nuevoCliente.Initialize";
Debug.ShouldStop(1);
__ref.getField(false,"_nuevocliente" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.c_nuevocliente.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 130;BA.debugLine="B4XPages.AddPage(\"NuevoCliente\", nuevoCliente)";
Debug.ShouldStop(2);
b4xmainpage._b4xpages.runVoidMethod ("_addpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("NuevoCliente")),(Object)((__ref.getField(false,"_nuevocliente" /*RemoteObject*/ ))));
 BA.debugLineNum = 131;BA.debugLine="ticketsDia.Initialize";
Debug.ShouldStop(4);
__ref.getField(false,"_ticketsdia" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.c_ticketsdia.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 132;BA.debugLine="B4XPages.AddPage(\"TicketsDia\", ticketsDia)";
Debug.ShouldStop(8);
b4xmainpage._b4xpages.runVoidMethod ("_addpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("TicketsDia")),(Object)((__ref.getField(false,"_ticketsdia" /*RemoteObject*/ ))));
 BA.debugLineNum = 133;BA.debugLine="noVenta.Initialize";
Debug.ShouldStop(16);
__ref.getField(false,"_noventa" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.c_noventa.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 134;BA.debugLine="B4XPages.AddPage(\"NoVenta\", noVenta)";
Debug.ShouldStop(32);
b4xmainpage._b4xpages.runVoidMethod ("_addpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("NoVenta")),(Object)((__ref.getField(false,"_noventa" /*RemoteObject*/ ))));
 BA.debugLineNum = 135;BA.debugLine="nota.Initialize";
Debug.ShouldStop(64);
__ref.getField(false,"_nota" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.c_nota.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 136;BA.debugLine="B4XPages.AddPage(\"Nota\", nota)";
Debug.ShouldStop(128);
b4xmainpage._b4xpages.runVoidMethod ("_addpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("Nota")),(Object)((__ref.getField(false,"_nota" /*RemoteObject*/ ))));
 BA.debugLineNum = 137;BA.debugLine="pedidos.Initialize";
Debug.ShouldStop(256);
__ref.getField(false,"_pedidos" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.c_pedidos.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 138;BA.debugLine="B4XPages.AddPage(\"Pedidos\", pedidos)";
Debug.ShouldStop(512);
b4xmainpage._b4xpages.runVoidMethod ("_addpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("Pedidos")),(Object)((__ref.getField(false,"_pedidos" /*RemoteObject*/ ))));
 BA.debugLineNum = 139;BA.debugLine="promos.Initialize";
Debug.ShouldStop(1024);
__ref.getField(false,"_promos" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.c_promos.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 140;BA.debugLine="B4XPages.AddPage(\"Promos\", promos)";
Debug.ShouldStop(2048);
b4xmainpage._b4xpages.runVoidMethod ("_addpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("Promos")),(Object)((__ref.getField(false,"_promos" /*RemoteObject*/ ))));
 BA.debugLineNum = 141;BA.debugLine="historico.Initialize";
Debug.ShouldStop(4096);
__ref.getField(false,"_historico" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.c_historico.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 142;BA.debugLine="B4XPages.AddPage(\"Historico\", historico)";
Debug.ShouldStop(8192);
b4xmainpage._b4xpages.runVoidMethod ("_addpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("Historico")),(Object)((__ref.getField(false,"_historico" /*RemoteObject*/ ))));
 BA.debugLineNum = 144;BA.debugLine="historicobat.Initialize";
Debug.ShouldStop(32768);
__ref.getField(false,"_historicobat" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.c_historicobat.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 145;BA.debugLine="B4XPages.AddPage(\"historicobat\", historicobat)";
Debug.ShouldStop(65536);
b4xmainpage._b4xpages.runVoidMethod ("_addpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("historicobat")),(Object)((__ref.getField(false,"_historicobat" /*RemoteObject*/ ))));
 BA.debugLineNum = 147;BA.debugLine="Clientes_Completos.Initialize";
Debug.ShouldStop(262144);
__ref.getField(false,"_clientes_completos" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.c_clientescompletos.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 148;BA.debugLine="B4XPages.AddPage(\"Clientes_Completos\", Clientes_C";
Debug.ShouldStop(524288);
b4xmainpage._b4xpages.runVoidMethod ("_addpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("Clientes_Completos")),(Object)((__ref.getField(false,"_clientes_completos" /*RemoteObject*/ ))));
 BA.debugLineNum = 150;BA.debugLine="Tclientes.Initialize";
Debug.ShouldStop(2097152);
__ref.getField(false,"_tclientes" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.v_tclientes.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 151;BA.debugLine="B4XPages.AddPage(\"Tclientes\", Tclientes)";
Debug.ShouldStop(4194304);
b4xmainpage._b4xpages.runVoidMethod ("_addpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("Tclientes")),(Object)((__ref.getField(false,"_tclientes" /*RemoteObject*/ ))));
 BA.debugLineNum = 155;BA.debugLine="p_Main.Height = Root.Height";
Debug.ShouldStop(67108864);
__ref.getField(false,"_p_main" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 156;BA.debugLine="p_Main.Width = Root.Width";
Debug.ShouldStop(134217728);
__ref.getField(false,"_p_main" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"));
 BA.debugLineNum = 157;BA.debugLine="ruta = Starter.ruta";
Debug.ShouldStop(268435456);
__ref.setField ("_ruta" /*RemoteObject*/ ,b4xmainpage._starter._ruta /*RemoteObject*/ );
 BA.debugLineNum = 158;BA.debugLine="Provider.Initialize";
Debug.ShouldStop(536870912);
__ref.getField(false,"_provider" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.fileprovider.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 159;BA.debugLine="If File.Exists(File.DirInternal, \"kmt.db\") = Fals";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",b4xmainpage.__c.getField(false,"File").runMethod(true,"Exists",(Object)(b4xmainpage.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(RemoteObject.createImmutable("kmt.db"))),b4xmainpage.__c.getField(true,"False"))) { 
 BA.debugLineNum = 160;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", File.DirInte";
Debug.ShouldStop(-2147483648);
b4xmainpage.__c.getField(false,"File").runVoidMethod ("Copy",(Object)(b4xmainpage.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(BA.ObjectToString("kmt.db")),(Object)(b4xmainpage.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(RemoteObject.createImmutable("kmt.db")));
 };
 BA.debugLineNum = 162;BA.debugLine="skmt.Initialize(File.DirInternal,\"kmt.db\", True)";
Debug.ShouldStop(2);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("Initialize",(Object)(b4xmainpage.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(BA.ObjectToString("kmt.db")),(Object)(b4xmainpage.__c.getField(true,"True")));
 BA.debugLineNum = 163;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS IMP";
Debug.ShouldStop(4);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS IMPRESORA (HABILITADA)")));
 BA.debugLineNum = 165;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS FOT";
Debug.ShouldStop(16);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS FOTOS (CLIENTE TEXT, FOTO BLOB, MOVIMIENTO TEXT)")));
 BA.debugLineNum = 166;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS PLA";
Debug.ShouldStop(32);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS PLAN_LEALTAD (PL_CLIENTE TEXT, PL_BANDERA TEXT)")));
 BA.debugLineNum = 168;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ABO";
Debug.ShouldStop(128);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS ABONOSP(NOTA TEXT, CLIENTE TEXT, SALDO_PENDIENTE TEXT, FECHA TEXT)")));
 BA.debugLineNum = 171;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS COM";
Debug.ShouldStop(1024);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS COMENTARIOS (COMENTARTIO TEXT, CLIENTE TEXT, DESCARGADO TEXT)")));
 BA.debugLineNum = 173;BA.debugLine="Subs.agregaColumna(\"PLAN_LEALTAD\", \"DESCARGADO\",";
Debug.ShouldStop(4096);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("PLAN_LEALTAD")),(Object)(BA.ObjectToString("DESCARGADO")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 174;BA.debugLine="Subs.agregaColumna(\"PEDIDO_CLIENTE\", \"PC_FACTURA\"";
Debug.ShouldStop(8192);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("PEDIDO_CLIENTE")),(Object)(BA.ObjectToString("PC_FACTURA")),(Object)(RemoteObject.createImmutable("INTEGER")));
 BA.debugLineNum = 175;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS GPS";
Debug.ShouldStop(16384);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS GPS (HABILITADO)")));
 BA.debugLineNum = 177;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT";
Debug.ShouldStop(65536);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS CAT_OBJETIVO_BAT (COB_VOLUMEN TEXT, COB_MARCAE TEXT, COB_PORTAFOLIO TEXT, COB_OBJPP TEXT, COB_GEV TEXT )")));
 BA.debugLineNum = 179;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT";
Debug.ShouldStop(262144);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS CAT_CATCLIENTESTODOS (CAT_CL_TIPO_RUTA TEXT, CAT_CL_DIAS_VISITA TEXT, CAT_CL_CODIGO TEXT, CAT_CL_FOTO TEXT, CAT_CL_CLASIFICADOR3 TEXT, CAT_CL_CLASIFICADOR4 TEXT, CAT_CL_CLASIFICADOR2 TEXT, CAT_CL_RUTA TEXT, CAT_CL_NOMBRE TEXT, CAT_CL_ATIENDE1 TEXT, CAT_CL_ATIENTE2 TEXT, CAT_CL_TELEFONO TEXT, CAT_CL_EMAIL TEXT, CAT_CL_CALLE TEXT, CAT_CL_NOEXT TEXT, CAT_CL_NOINT TEXT, CAT_CL_CALLE1 TEXT, CAT_CL_CALLE2 TEXT, CAT_CL_COLONIA TEXT, CAT_CL_MUNI TEXT, CAT_CL_EDO TEXT, CAT_CL_CP TEXT, CAT_CL_LONG TEXT, CAT_CL_LAT TEXT, CAT_CL_MTOCOMPRA TEXT, CAT_CL_NUM_SERIEFISICO TEXT, CAT_CL_BCREDITO TEXT, CAT_CL_DIASCREDITO TEXT, CAT_CL_TIPOCLIENTE TEXT, CAT_CL_LIMITECREDITO TEXT)")));
 BA.debugLineNum = 181;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS his";
Debug.ShouldStop(1048576);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS hist_ventastodos (HVD_CLIENTE TEX, HVD_PRONOMBRE TEXT, HVD_CANT TEXT, HVD_COSTO_TOT TEXT, HVD_FECHA TEXT)")));
 BA.debugLineNum = 183;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT";
Debug.ShouldStop(4194304);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS CAT_GIRO(GIRO TEXT)")));
 BA.debugLineNum = 184;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CLI";
Debug.ShouldStop(8388608);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS CLIENTES_NUEVOS(CN_ID TEXT, CN_FECHA TEXT, CN_USER TEXT, CN_LAT TEXT, CN_LON TEXT, CN_NOMBRE TEXT, CN_DIRECCION TEXT, CN_FOTO TEXT, CN_ALMACEN TEXT, CN_RUTA TEXT,CN_GIRO TEXT)")));
 BA.debugLineNum = 185;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT";
Debug.ShouldStop(16777216);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS CAT_PROMOS_DESCUENTOS (CAT_PD_ALMACEN TEXT, CAT_PD_COD_PROMO TEXT, CAT_PD_RANGO INT, CAT_PD_VIGENCIA TEXT, CAT_PD_DESCUENTO TEXT, CAT_PD_PRODUCTO TEXT, CAT_PD_TIER TEXT)")));
 BA.debugLineNum = 186;BA.debugLine="Subs.agregaColumna(\"CAT_PROMOS_DESCUENTOS\", \"CAT_";
Debug.ShouldStop(33554432);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("CAT_PROMOS_DESCUENTOS")),(Object)(BA.ObjectToString("CAT_PD_RANGO2")),(Object)(RemoteObject.createImmutable("INT")));
 BA.debugLineNum = 187;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT";
Debug.ShouldStop(67108864);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS CAT_GUNAPROD2 (CAT_GP_CODPROMO TEXT, CAT_GP_INICIATIVA TEXT, CAT_GP_TIPOPROD TEXT, CAT_GP_DEV TEXT, CAT_GP_ALMACEN NUM, CAT_GP_ID TEXT, CAT_GP_NOMBRE TEXT, CAT_GP_IMP1 TEXT, CAT_GP_IMP2 TEXT, CAT_GP_PRECIO TEXT, CAT_GP_CLASIF TEXT, CAT_GP_STS TEXT, CAT_GP_TIPO TEXT, CAT_GP_SUBTIPO TEXT, CAT_GP_IMG )")));
 BA.debugLineNum = 188;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS PRO";
Debug.ShouldStop(134217728);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS PROMO_ESP (HVD_CLIENTE)")));
 BA.debugLineNum = 189;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT";
Debug.ShouldStop(268435456);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS CAT_PROMO_ESP(CAT_PE_ID TEXT,CAT_PE_IDPROMO TEXT,CAT_PE_MONTO TEXT)")));
 BA.debugLineNum = 190;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
Debug.ShouldStop(536870912);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS HIST_CUOTAS (HC_META6 TEXT, HC_META5 TEXT, HC_META4 TEXT, HC_META3 TEXT, HC_META2 TEXT, HC_META1 TEXT, HC_RUTA TEXT, HC_CUOTA1 TEXT, HC_CUOTA2 TEXT, HC_CUOTA3 TEXT, HC_CUOTA4 TEXT, HC_CUOTA5 TEXT, HC_CUOTA6 TEXT)")));
 BA.debugLineNum = 191;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS HIST_GPS (HGDATE TEXT, HGLAT TEXT, HGLON TEXT)")));
 BA.debugLineNum = 192;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS HIST_STAY_STORE (HSS_CODIGO TEXT, HSS_IN TEXT, HSS_OUT TEXT, HSS_TOT TEXT)")));
 BA.debugLineNum = 193;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
Debug.ShouldStop(1);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS HIST_STAY_OUT (HSO_INI TEXT, HSO_FIN TEXT)")));
 BA.debugLineNum = 194;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS INV";
Debug.ShouldStop(2);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS INVENT_X_ENVIAR (ALMACEN TEXT, PROID TEXT, CANTIDAD TEXT)")));
 BA.debugLineNum = 195;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
Debug.ShouldStop(4);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS HIST_RESUM_APK (HIST_RA_OBJMES TEXT, HIST_RA_VENTA TEXT, HIST_RA_TENDENCIA TEXT, HIST_RA_ALCANCE TEXT, HISR_RA_DRAOBJ TEXT, HIST_RA_DRAVTA TEXT, HIST_RA_DSOBJ TEXT, HIST_RA_DSVTA TEXT, HIST_RA_VPOOBJ TEXT, HIST_RA_VPOVTA TEXT, HIST_RA_COBCCC TEXT, HIST_RA_CTES TEXT, HIST_RA_ECO TEXT, HIST_RA_VISITPLAN TEXT, HIST_RA_VISIREAL TEXT, HIST_RA_COBVISIT TEXT, HIST_RA_FRECCOMPOBJ TEXT, HIST_RA_FRECCOMREAL TEXT, HIST_RA_VENTAMES1 TEXT, HIST_RA_VENTAMES2 TEXT, HIST_RA_VENTAMES3 TEXT, HIST_RA_VENTAMES4 TEXT, HIST_RA_RECHAZO TEXT, HIST_RA_RECHAZOPORCEN TEXT, HIST_RA_SEMANA1 TEXT, HIST_RA_SEMANA1_DIAS TEXT, HIST_RA_SEMANA1_DRA TEXT, HIST_RA_SEMANA2 TEXT, HIST_RA_SEMANA2_DIAS TEXT, HIST_RA_SEMANA2_DRA TEXT, HIST_RA_SEMANA3 TEXT, HIST_RA_SEMANA3_DIAS TEXT, HIST_RA_SEMANA4 TEXT, HIST_RA_SEMANA3_DRA TEXT, HIST_RA_SEMANA4_DIAS TEXT, HIST_RA_SEMANA4_DRA TEXT, HIST_RA_SEMANA5 TEXT, HIST_RA_SEMANA5_DIAS TEXT, HIST_RA_SEMANA5_DRA TEXT, HIST_RA_SEMANA1_LPT TEXT, HIST_RA_SEMANA2_LPT TEXT, HIST_RA_SEMANA3_LPT TEXT, HIST_RA_SEMANA4_LPT TEXT, HIST_RA_SEMANA5_LPT TEXT, HIST_RA_RUTA TEXT, HIST_RA_IDALMACEN TEXT)")));
 BA.debugLineNum = 196;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
Debug.ShouldStop(8);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS HIST_COMISIONES_MOVIL (HCM_IDALMACEN TEXT, HCM_RUTA TEXT, HCM_TOTAL_V TEXT, HCM_TOTAL_VIVE TEXT, HCM_TOTAL_GUNA TEXT,	HCM_TOTAL_BEB TEXT)")));
 BA.debugLineNum = 197;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
Debug.ShouldStop(16);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS HIST_GEOCERCA (HGCLIENTE TEXT, HGDATE TEXT, HGLAT TEXT, HGLON TEXT)")));
 BA.debugLineNum = 198;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
Debug.ShouldStop(32);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS HIST_FACE (HFCLIENTE TEXT, HFALIAS TEXT, HFRUTA TEXT, HFALMACEN TEXT)")));
 BA.debugLineNum = 199;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS RUT";
Debug.ShouldStop(64);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS RUTA_GPS(FECHA INTEGER, LAT TEXT, LON TEXT)")));
 BA.debugLineNum = 200;BA.debugLine="skmt.ExecNonQuery(\"CREATE VIEW IF NOT EXISTS CATA";
Debug.ShouldStop(128);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE VIEW IF NOT EXISTS CATALOGO AS Select CAT_GP_CLASIF, CAT_GP_ID FROM CAT_GUNAPROD UNION Select CAT_GP_CLASIF, CAT_GP_ID FROM CAT_GUNAPROD GROUP BY CAT_GP_CLASIF, CAT_GP_ID")));
 BA.debugLineNum = 201;BA.debugLine="skmt.ExecNonQuery(\"CREATE VIEW IF NOT EXISTS tota";
Debug.ShouldStop(256);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE VIEW IF NOT EXISTS total_marcas AS 	Select  cat_gp_clasif, sum(pe_costo_tot) As total from CATALOGO, pedido where pe_proid = cat_gp_id 	And pe_cliente <> 0 	group by cat_gp_clasif")));
 BA.debugLineNum = 202;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
Debug.ShouldStop(512);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS HIST_MARCAS_CUOTAS ( HMC_MARCA TEXT, HMC_TOTAL TEXT)")));
 BA.debugLineNum = 203;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
Debug.ShouldStop(1024);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS HIST_CODIGO_BARRAS(CODIGOKMTS TEXT, CODIGOB TEXT, LAT TEXT, LON TEXT)")));
 BA.debugLineNum = 204;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ENC";
Debug.ShouldStop(2048);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS ENCUESTA_MODULO1(CLIENTE TEXT,ALMACEN TEXT, P1 TEXT, P2 TEXT, P3 TEXT, P4 TEXT, P5 TEXT, P6 TEXT, P7 TEXT, P8 TEXT, P9 TEXT)")));
 BA.debugLineNum = 205;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ENC";
Debug.ShouldStop(4096);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS ENCUESTA_MODULO2 (CLIENTE TEXT, ALMACEN TEXT,P1 TEXT, P2 TEXT, P3 TEXT , P4 TEXT, P5 TEXT, P6 TEXT)")));
 BA.debugLineNum = 206;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT";
Debug.ShouldStop(8192);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS CAT_ENCUESTA_PREGUNTA (CAT_EP_ID TEXT,CAT_EP_IDTIPOPREGUNTA TEXT,CAT_CE_DESCRIPCION TEXT,CAT_EP_PREGUNTA TEXT,CAT_EP_RES1_PRED TEXT,CAT_EP_RES2_PRED TEXT,CAT_EP_RES3_PRED TEXT,CAT_EP_ORDEN_PREGUNTA TEXT)")));
 BA.debugLineNum = 207;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ENC";
Debug.ShouldStop(16384);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS ENCUESTA_MODULO3(CLIENTE TEXT,ALMACEN TEXT, P1 TEXT, P2 TEXT, P3 TEXT, P4 TEXT, P5 TEXT, P6 TEXT, P7 TEXT, P8 TEXT, P9 TEXT, P10 TEXT, P11 TEXT)")));
 BA.debugLineNum = 208;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ENC";
Debug.ShouldStop(32768);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS ENCUESTA_MODULO4 (CLIENTE TEXT, ALMACEN TEXT,P1 TEXT, P2 TEXT, P3 TEXT , P4 TEXT, P5 TEXT, P6 TEXT, P7 TEXT, P8 TEXT)")));
 BA.debugLineNum = 209;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ENC";
Debug.ShouldStop(65536);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS ENCUESTA_MODULO5 (CLIENTE TEXT, ALMACEN TEXT,P1 TEXT, P2 TEXT, P3 TEXT , P4 TEXT, P5 TEXT, P6 TEXT, P7 TEXT, P8 TEXT, P9 TEXT)")));
 BA.debugLineNum = 210;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
Debug.ShouldStop(131072);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS HIST_ENCUESTA2(HE_CLIENTE TEXT)")));
 BA.debugLineNum = 211;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
Debug.ShouldStop(262144);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS HIST_ENCUESTA_CLIENTE (HEC_CLIENTE TEXT, HEC_MODULO TEXT)")));
 BA.debugLineNum = 212;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
Debug.ShouldStop(524288);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS HIST_ENCUESTA_AVISO_GIRO (HEAV_CLIENTE TEXT, HEAV_MODULO TEXT, HEAV_AVISO TEXT, HEAV_GIRO TEXT)")));
 BA.debugLineNum = 213;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
Debug.ShouldStop(1048576);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS HIST_ENCUESTA (HE_CLIE TEXT, HE_RES TEXT, HE_FECHA TEXT, HE_TIPO TEXT, HE_LAT TEXT, HE_LON TEXT)")));
 BA.debugLineNum = 214;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS kmt";
Debug.ShouldStop(2097152);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS kmt_info3(CAT_CL_FOTO BLOB, CAT_CL_NUM_SERIEFISICO TEXT, CAT_CL_MTOCOMPRA TEXT, CAT_CL_CEDIS TEXT, CAT_CL_LAT TEXT, CAT_CL_LONG TEXT, CAT_CL_FBAJA TEXT, CAT_CL_FALTA TEXT, CAT_CL_CP TEXT, CAT_CL_EDO TEXT, CAT_CL_MUNI TEXT, CAT_CL_COLONIA TEXT, CAT_CL_CALLE2 TEXT, CAT_CL_CALLE1 TEXT, CAT_CL_NOINT TEXT, CAT_CL_NOEXT TEXT, CAT_CL_CALLE TEXT, CAT_CL_EMAIL TEXT, CAT_CL_TELEFONO TEXT, CAT_CL_ATIENTE2 TEXT, CAT_CL_ATIENDE1 TEXT, CAT_CL_NOMBRE TEXT, CAT_CL_GIRO TEXT, CAT_CL_DIAS_VISITA TEXT, CAT_CL_TIPO_RUTA TEXT, CAT_CL_RUTA TEXT, CAT_CL_CODIGO TEXT, gestion NUMERIC)")));
 BA.debugLineNum = 215;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
Debug.ShouldStop(4194304);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS HIST_PRO2265(H_IDCLIENTE TEXT)")));
 BA.debugLineNum = 216;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ATI";
Debug.ShouldStop(8388608);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS ATIENDE(ATIENDE TEXT, CLIENTE TEXT)")));
 BA.debugLineNum = 218;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS COD";
Debug.ShouldStop(33554432);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS CODIGOS_CREDITO(CODIGO TEXT, BANDERA TEXT)")));
 BA.debugLineNum = 220;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS TEL";
Debug.ShouldStop(134217728);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS TELEFONO(TELEFONO TEXT, CLIENTE TEXT)")));
 BA.debugLineNum = 221;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
Debug.ShouldStop(268435456);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS HIST_PRO3054(H_IDCLIENTE TEXT)")));
 BA.debugLineNum = 222;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
Debug.ShouldStop(536870912);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS HIST_PRO3055(H_IDCLIENTE TEXT)")));
 BA.debugLineNum = 223;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS RUT";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS RUTA_SUPLENCIA(RS_RUTA TEXT)")));
 BA.debugLineNum = 224;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS TIC";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("CREATE TABLE IF NOT EXISTS TICKET_IMPRESO (idCliente TEXT)")));
 BA.debugLineNum = 226;BA.debugLine="Subs.agregaColumna(\"HIST_ENCUESTA\", \"HE_LAT\", \"TE";
Debug.ShouldStop(2);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("HIST_ENCUESTA")),(Object)(BA.ObjectToString("HE_LAT")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 227;BA.debugLine="Subs.agregaColumna(\"HIST_ENCUESTA\", \"HE_FOTO\", \"B";
Debug.ShouldStop(4);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("HIST_ENCUESTA")),(Object)(BA.ObjectToString("HE_FOTO")),(Object)(RemoteObject.createImmutable("BLOB")));
 BA.debugLineNum = 228;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"foto\", \"BLOB\")";
Debug.ShouldStop(8);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("kmt_info3")),(Object)(BA.ObjectToString("foto")),(Object)(RemoteObject.createImmutable("BLOB")));
 BA.debugLineNum = 229;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_RECALCULO\", \"TEX";
Debug.ShouldStop(16);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("PEDIDO")),(Object)(BA.ObjectToString("PE_RECALCULO")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 230;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_RECALCULADO\", \"T";
Debug.ShouldStop(32);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("PEDIDO")),(Object)(BA.ObjectToString("PE_RECALCULADO")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 231;BA.debugLine="Subs.agregaColumna(\"CODIGOS_CREDITO\", \"CLIENTE\",";
Debug.ShouldStop(64);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("CODIGOS_CREDITO")),(Object)(BA.ObjectToString("CLIENTE")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 232;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_RECCEDIS\", \"TEXT";
Debug.ShouldStop(128);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("PEDIDO")),(Object)(BA.ObjectToString("PE_RECCEDIS")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 233;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_FUTURO\", \"TEXT\")";
Debug.ShouldStop(256);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("PEDIDO")),(Object)(BA.ObjectToString("PE_FUTURO")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 234;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_RECALCULOTOT\", \"";
Debug.ShouldStop(512);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("PEDIDO")),(Object)(BA.ObjectToString("PE_RECALCULOTOT")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 235;BA.debugLine="Subs.agregaColumna(\"HIST_ENCUESTA\", \"HE_LON\", \"TE";
Debug.ShouldStop(1024);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("HIST_ENCUESTA")),(Object)(BA.ObjectToString("HE_LON")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 236;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\", \"HVD_FECHA\", \"T";
Debug.ShouldStop(2048);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("HIST_VENTAS")),(Object)(BA.ObjectToString("HVD_FECHA")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 237;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_NUMEROINT";
Debug.ShouldStop(4096);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("kmt_info3")),(Object)(BA.ObjectToString("CAT_CL_NUMEROINT")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 238;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_NUMEROEXT";
Debug.ShouldStop(8192);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("kmt_info3")),(Object)(BA.ObjectToString("CAT_CL_NUMEROEXT")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 239;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_REFERENCI";
Debug.ShouldStop(16384);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("kmt_info3")),(Object)(BA.ObjectToString("CAT_CL_REFERENCIA")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 240;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_NUMEROI";
Debug.ShouldStop(32768);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("CLIENTES_NUEVOS")),(Object)(BA.ObjectToString("CN_NUMEROINT")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 241;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_NUMEROE";
Debug.ShouldStop(65536);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("CLIENTES_NUEVOS")),(Object)(BA.ObjectToString("CN_NUMEROEXT")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 242;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_REFEREN";
Debug.ShouldStop(131072);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("CLIENTES_NUEVOS")),(Object)(BA.ObjectToString("CN_REFERENCIA")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 243;BA.debugLine="Subs.agregaColumna(\"COMENTARIOS\", \"comentario_tmp";
Debug.ShouldStop(262144);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("COMENTARIOS")),(Object)(BA.ObjectToString("comentario_tmp")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 245;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"encuesta\", \"TEXT";
Debug.ShouldStop(1048576);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("kmt_info3")),(Object)(BA.ObjectToString("encuesta")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 246;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_CLASIFICA";
Debug.ShouldStop(2097152);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("kmt_info3")),(Object)(BA.ObjectToString("CAT_CL_CLASIFICADOR4")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 247;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_CONVER";
Debug.ShouldStop(4194304);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("CAT_GUNAPROD")),(Object)(BA.ObjectToString("CAT_GP_CONVERSION3")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 248;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_CONVER";
Debug.ShouldStop(8388608);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("CAT_GUNAPROD")),(Object)(BA.ObjectToString("CAT_GP_CONVERSION2")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 249;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_CLASIFICA";
Debug.ShouldStop(16777216);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("kmt_info3")),(Object)(BA.ObjectToString("CAT_CL_CLASIFICADOR3")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 250;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_CLASIFICA";
Debug.ShouldStop(33554432);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("kmt_info3")),(Object)(BA.ObjectToString("CAT_CL_CLASIFICADOR2")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 251;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_TIPOCLIEN";
Debug.ShouldStop(67108864);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("kmt_info3")),(Object)(BA.ObjectToString("CAT_CL_TIPOCLIENTE")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 252;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_LIMITECRE";
Debug.ShouldStop(134217728);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("kmt_info3")),(Object)(BA.ObjectToString("CAT_CL_LIMITECREDITO")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 253;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_DIASCREDI";
Debug.ShouldStop(268435456);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("kmt_info3")),(Object)(BA.ObjectToString("CAT_CL_DIASCREDITO")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 254;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CONFIRMADO\", \"TE";
Debug.ShouldStop(536870912);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("kmt_info3")),(Object)(BA.ObjectToString("CONFIRMADO")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 255;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_BCREDITO\"";
Debug.ShouldStop(1073741824);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("kmt_info3")),(Object)(BA.ObjectToString("CAT_CL_BCREDITO")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 256;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_DEV\",";
Debug.ShouldStop(-2147483648);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("CAT_GUNAPROD")),(Object)(BA.ObjectToString("CAT_GP_DEV")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 257;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_PA_BSEGME";
Debug.ShouldStop(1);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("CAT_GUNAPROD")),(Object)(BA.ObjectToString("CAT_PA_BSEGMENTA")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 258;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_LISTAPREC";
Debug.ShouldStop(2);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("CAT_GUNAPROD")),(Object)(BA.ObjectToString("CAT_LISTAPRECIO")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 259;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_PA_SEGMEN";
Debug.ShouldStop(4);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("CAT_GUNAPROD")),(Object)(BA.ObjectToString("CAT_PA_SEGMENTAV")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 260;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD2\", \"CAT_PA_BSEGM";
Debug.ShouldStop(8);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("CAT_GUNAPROD2")),(Object)(BA.ObjectToString("CAT_PA_BSEGMENTA")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 261;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD2\", \"CAT_PA_SEGME";
Debug.ShouldStop(16);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("CAT_GUNAPROD2")),(Object)(BA.ObjectToString("CAT_PA_SEGMENTAV")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 262;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_SOLICIT";
Debug.ShouldStop(32);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("CLIENTES_NUEVOS")),(Object)(BA.ObjectToString("CN_SOLICITA")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 263;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_COLONIA";
Debug.ShouldStop(64);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("CLIENTES_NUEVOS")),(Object)(BA.ObjectToString("CN_COLONIA")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 264;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_TELEFON";
Debug.ShouldStop(128);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("CLIENTES_NUEVOS")),(Object)(BA.ObjectToString("CN_TELEFONO")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 265;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_CP\", \"T";
Debug.ShouldStop(256);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("CLIENTES_NUEVOS")),(Object)(BA.ObjectToString("CN_CP")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 266;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_CALLE1\"";
Debug.ShouldStop(512);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("CLIENTES_NUEVOS")),(Object)(BA.ObjectToString("CN_CALLE1")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 267;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_CALLE2\"";
Debug.ShouldStop(1024);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("CLIENTES_NUEVOS")),(Object)(BA.ObjectToString("CN_CALLE2")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 268;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_RECCANT\", \"TEXT\"";
Debug.ShouldStop(2048);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("PEDIDO")),(Object)(BA.ObjectToString("PE_RECCANT")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 269;BA.debugLine="Subs.agregaColumna(\"FOTOS\", \"FECHA\", \"TEXT\")";
Debug.ShouldStop(4096);
b4xmainpage._subs.runVoidMethod ("_agregacolumna" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("FOTOS")),(Object)(BA.ObjectToString("FECHA")),(Object)(RemoteObject.createImmutable("TEXT")));
 BA.debugLineNum = 270;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev";
Debug.ShouldStop(8192);
try { BA.debugLineNum = 271;BA.debugLine="c=skmt.ExecQuery(\"SELECT COUNT(*) AS fCol FROM p";
Debug.ShouldStop(16384);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT COUNT(*) AS fCol FROM pragma_table_info('ENCUESTA_MODULO3') WHERE name='P10'"))));
 BA.debugLineNum = 272;BA.debugLine="c.Position = 0";
Debug.ShouldStop(32768);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 273;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("fCol"))),BA.NumberToString(0))) { 
 BA.debugLineNum = 274;BA.debugLine="skmt.ExecNonQuery(\"ALTER TABLE ENCUESTA_MODULO3";
Debug.ShouldStop(131072);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("ALTER TABLE ENCUESTA_MODULO3 ADD COLUMN P10 TEXT")));
 };
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e148) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e148.toString()); BA.debugLineNum = 277;BA.debugLine="Try";
Debug.ShouldStop(1048576);
try { BA.debugLineNum = 278;BA.debugLine="skmt.ExecNonQuery(\"ALTER TABLE ENCUESTA_MODULO3";
Debug.ShouldStop(2097152);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("ALTER TABLE ENCUESTA_MODULO3 ADD COLUMN P10 TEXT")));
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e151) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e151.toString()); BA.debugLineNum = 280;BA.debugLine="Log(LastException)";
Debug.ShouldStop(8388608);
b4xmainpage.__c.runVoidMethod ("LogImpl","01245357",BA.ObjectToString(b4xmainpage.__c.runMethod(false,"LastException",__ref.getField(false, "ba"))),0);
 };
 };
 BA.debugLineNum = 283;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev";
Debug.ShouldStop(67108864);
try { BA.debugLineNum = 284;BA.debugLine="c=skmt.ExecQuery(\"SELECT COUNT(*) AS fCol FROM p";
Debug.ShouldStop(134217728);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT COUNT(*) AS fCol FROM pragma_table_info('ENCUESTA_MODULO3') WHERE name='P11'"))));
 BA.debugLineNum = 285;BA.debugLine="c.Position = 0";
Debug.ShouldStop(268435456);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 286;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("fCol"))),BA.NumberToString(0))) { 
 BA.debugLineNum = 287;BA.debugLine="skmt.ExecNonQuery(\"ALTER TABLE ENCUESTA_MODULO3";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("ALTER TABLE ENCUESTA_MODULO3 ADD COLUMN P11 TEXT")));
 };
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e161) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e161.toString()); BA.debugLineNum = 290;BA.debugLine="Try";
Debug.ShouldStop(2);
try { BA.debugLineNum = 291;BA.debugLine="skmt.ExecNonQuery(\"ALTER TABLE ENCUESTA_MODULO3";
Debug.ShouldStop(4);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("ALTER TABLE ENCUESTA_MODULO3 ADD COLUMN P11 TEXT")));
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e164) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e164.toString()); BA.debugLineNum = 293;BA.debugLine="Log(LastException)";
Debug.ShouldStop(16);
b4xmainpage.__c.runVoidMethod ("LogImpl","01245370",BA.ObjectToString(b4xmainpage.__c.runMethod(false,"LastException",__ref.getField(false, "ba"))),0);
 };
 };
 BA.debugLineNum = 296;BA.debugLine="c=skmt.ExecQuery(\"select  COUNT(*) AS CUANTOS fro";
Debug.ShouldStop(128);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select  COUNT(*) AS CUANTOS from HIST_STAY_OUT "))));
 BA.debugLineNum = 297;BA.debugLine="C.Position = 0";
Debug.ShouldStop(256);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 298;BA.debugLine="If c.GetString(\"CUANTOS\")  = 0 Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS"))),BA.NumberToString(0))) { 
 BA.debugLineNum = 299;BA.debugLine="skmt.ExecNonQuery(\"INSERT INTO HIST_STAY_OUT(HSO";
Debug.ShouldStop(1024);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("INSERT INTO HIST_STAY_OUT(HSO_INI, HSO_FIN) VALUES (0,0)")));
 };
 BA.debugLineNum = 301;BA.debugLine="C.Close";
Debug.ShouldStop(4096);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 305;BA.debugLine="l_version.Text = Application.VersionName";
Debug.ShouldStop(65536);
__ref.getField(false,"_l_version" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(b4xmainpage.__c.getField(false,"Application").runMethod(true,"getVersionName")));
 BA.debugLineNum = 307;BA.debugLine="PopupMenu.Initialize(\"PopupMenu\", b_menu)";
Debug.ShouldStop(262144);
__ref.getField(false,"_popupmenu" /*RemoteObject*/ ).runVoidMethod ("Initialize",__ref.getField(false, "ba"),(Object)(BA.ObjectToString("PopupMenu")),RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.ConcreteViewWrapper"), __ref.getField(false,"_b_menu" /*RemoteObject*/ ).getObject()));
 BA.debugLineNum = 308;BA.debugLine="PopupMenu.AddMenuItem(0, 0, \"View\")";
Debug.ShouldStop(524288);
__ref.getField(false,"_popupmenu" /*RemoteObject*/ ).runVoidMethod ("AddMenuItem",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(RemoteObject.createImmutable("View")));
 BA.debugLineNum = 309;BA.debugLine="PopupMenu.AddMenuItem(1, 1, \"Edit\")";
Debug.ShouldStop(1048576);
__ref.getField(false,"_popupmenu" /*RemoteObject*/ ).runVoidMethod ("AddMenuItem",(Object)(BA.numberCast(int.class, 1)),(Object)(BA.numberCast(int.class, 1)),(Object)(RemoteObject.createImmutable("Edit")));
 BA.debugLineNum = 310;BA.debugLine="PopupMenu.AddMenuItem(2, 2, \"Details\")";
Debug.ShouldStop(2097152);
__ref.getField(false,"_popupmenu" /*RemoteObject*/ ).runVoidMethod ("AddMenuItem",(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(RemoteObject.createImmutable("Details")));
 BA.debugLineNum = 311;BA.debugLine="PopupMenu.AddMenuItem(3, 3, \"Remove\")";
Debug.ShouldStop(4194304);
__ref.getField(false,"_popupmenu" /*RemoteObject*/ ).runVoidMethod ("AddMenuItem",(Object)(BA.numberCast(int.class, 3)),(Object)(BA.numberCast(int.class, 3)),(Object)(RemoteObject.createImmutable("Remove")));
 BA.debugLineNum = 313;BA.debugLine="montoActual  = 0";
Debug.ShouldStop(16777216);
__ref.setField ("_montoactual" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 314;BA.debugLine="clientesTotal = 0";
Debug.ShouldStop(33554432);
__ref.setField ("_clientestotal" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 315;BA.debugLine="clientesVenta =  0";
Debug.ShouldStop(67108864);
__ref.setField ("_clientesventa" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 316;BA.debugLine="clientesVisitados = 0";
Debug.ShouldStop(134217728);
__ref.setField ("_clientesvisitados" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 317;BA.debugLine="almacen = 0";
Debug.ShouldStop(268435456);
__ref.setField ("_almacen" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 318;BA.debugLine="rutaPreventa =  0";
Debug.ShouldStop(536870912);
__ref.setField ("_rutapreventa" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 319;BA.debugLine="p_appUpdate.Visible = False";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_p_appupdate" /*RemoteObject*/ ).runMethod(true,"setVisible",b4xmainpage.__c.getField(true,"False"));
 BA.debugLineNum = 321;BA.debugLine="If Subs.traeUsarIntentBDWA Then";
Debug.ShouldStop(1);
if (b4xmainpage._subs.runMethod(true,"_traeusarintentbdwa" /*RemoteObject*/ ,__ref.getField(false, "ba")).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 322;BA.debugLine="Subs.importaBDDesdeWhatsApp";
Debug.ShouldStop(2);
b4xmainpage._subs.runVoidMethod ("_importabddesdewhatsapp" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 };
 BA.debugLineNum = 324;BA.debugLine="End Sub";
Debug.ShouldStop(8);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b4xswitch1_valuechanged(RemoteObject __ref,RemoteObject _value) throws Exception{
try {
		Debug.PushSubsStack("B4XSwitch1_ValueChanged (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,953);
if (RapidSub.canDelegate("b4xswitch1_valuechanged")) { return __ref.runUserSub(false, "b4xmainpage","b4xswitch1_valuechanged", __ref, _value);}
Debug.locals.put("Value", _value);
 BA.debugLineNum = 953;BA.debugLine="Private Sub B4XSwitch1_ValueChanged (Value As Bool";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 954;BA.debugLine="If Value Then";
Debug.ShouldStop(33554432);
if (_value.<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 955;BA.debugLine="Log(\"1\")";
Debug.ShouldStop(67108864);
b4xmainpage.__c.runVoidMethod ("LogImpl","02621442",RemoteObject.createImmutable("1"),0);
 BA.debugLineNum = 956;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE IMPRESORA SET HABILIT";
Debug.ShouldStop(134217728);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE IMPRESORA SET HABILITADA = (?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {RemoteObject.createImmutable((1))})))));
 }else {
 BA.debugLineNum = 958;BA.debugLine="Log(\"desactivado\")";
Debug.ShouldStop(536870912);
b4xmainpage.__c.runVoidMethod ("LogImpl","02621445",RemoteObject.createImmutable("desactivado"),0);
 BA.debugLineNum = 959;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE IMPRESORA SET HABILIT";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE IMPRESORA SET HABILITADA = (?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {RemoteObject.createImmutable((0))})))));
 };
 BA.debugLineNum = 961;BA.debugLine="End Sub";
Debug.ShouldStop(1);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b4xswitch2_valuechanged(RemoteObject __ref,RemoteObject _value2) throws Exception{
try {
		Debug.PushSubsStack("B4XSwitch2_ValueChanged (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,963);
if (RapidSub.canDelegate("b4xswitch2_valuechanged")) { return __ref.runUserSub(false, "b4xmainpage","b4xswitch2_valuechanged", __ref, _value2);}
Debug.locals.put("Value2", _value2);
 BA.debugLineNum = 963;BA.debugLine="Private Sub B4XSwitch2_ValueChanged (Value2 As Boo";
Debug.ShouldStop(4);
 BA.debugLineNum = 964;BA.debugLine="c = skmt.ExecQuery2(\"SELECT CAT_VA_VALOR FROM CAT";
Debug.ShouldStop(8);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT CAT_VA_VALOR FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("CARGA_DIA")}))));
 BA.debugLineNum = 965;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 966;BA.debugLine="c.Position = 0";
Debug.ShouldStop(32);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 967;BA.debugLine="If c.GetString(\"CAT_VA_VALOR\") = 1 Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_VA_VALOR"))),BA.NumberToString(1))) { 
 BA.debugLineNum = 968;BA.debugLine="If Value2  Then";
Debug.ShouldStop(128);
if (_value2.<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 969;BA.debugLine="p_validacion.Visible = True";
Debug.ShouldStop(256);
__ref.getField(false,"_p_validacion" /*RemoteObject*/ ).runMethod(true,"setVisible",b4xmainpage.__c.getField(true,"True"));
 BA.debugLineNum = 970;BA.debugLine="p_validacion.Left = (Root.Width/2) - (p_appUpd";
Debug.ShouldStop(512);
__ref.getField(false,"_p_validacion" /*RemoteObject*/ ).runMethod(true,"setLeft",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0)),(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_p_appupdate" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0))}, "-",1, 0)));
 BA.debugLineNum = 971;BA.debugLine="Subs.panelVisible(p_validacion,0,0)";
Debug.ShouldStop(1024);
b4xmainpage._subs.runVoidMethod ("_panelvisible" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p_validacion" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)));
 BA.debugLineNum = 972;BA.debugLine="p_validacion.Height = Root.Height";
Debug.ShouldStop(2048);
__ref.getField(false,"_p_validacion" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 973;BA.debugLine="p_validacion.Width = Root.Width";
Debug.ShouldStop(4096);
__ref.getField(false,"_p_validacion" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"));
 }else {
 BA.debugLineNum = 975;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE GPS SET HABILITADO";
Debug.ShouldStop(16384);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE GPS SET HABILITADO = (?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {RemoteObject.createImmutable((0))})))));
 };
 }else {
 BA.debugLineNum = 978;BA.debugLine="MsgboxAsync(\"Por favor primero haz carga de día";
Debug.ShouldStop(131072);
b4xmainpage.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Por favor primero haz carga de día")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 979;BA.debugLine="B4XSwitch2.Value = False";
Debug.ShouldStop(262144);
__ref.getField(false,"_b4xswitch2" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.b4xswitch.class, "_setvalue" /*RemoteObject*/ ,b4xmainpage.__c.getField(true,"False"));
 };
 }else {
 BA.debugLineNum = 982;BA.debugLine="MsgboxAsync(\"Por favor primero haz carga de día\"";
Debug.ShouldStop(2097152);
b4xmainpage.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Por favor primero haz carga de día")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 983;BA.debugLine="B4XSwitch2.Value = False";
Debug.ShouldStop(4194304);
__ref.getField(false,"_b4xswitch2" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.b4xswitch.class, "_setvalue" /*RemoteObject*/ ,b4xmainpage.__c.getField(true,"False"));
 };
 BA.debugLineNum = 985;BA.debugLine="End Sub";
Debug.ShouldStop(16777216);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _cb_importarbdwa_checkedchange(RemoteObject __ref,RemoteObject _checked) throws Exception{
try {
		Debug.PushSubsStack("cb_importarBDWA_CheckedChange (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,1133);
if (RapidSub.canDelegate("cb_importarbdwa_checkedchange")) { return __ref.runUserSub(false, "b4xmainpage","cb_importarbdwa_checkedchange", __ref, _checked);}
Debug.locals.put("Checked", _checked);
 BA.debugLineNum = 1133;BA.debugLine="Private Sub cb_importarBDWA_CheckedChange(Checked";
Debug.ShouldStop(4096);
 BA.debugLineNum = 1135;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_VARIAB";
Debug.ShouldStop(16384);
b4xmainpage._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = 'IMPORTAR_BD_WA'")));
 BA.debugLineNum = 1136;BA.debugLine="Starter.skmt.ExecNonQuery($\"insert into CAT_VARIA";
Debug.ShouldStop(32768);
b4xmainpage._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("insert into CAT_VARIABLES (CAT_VA_DESCRIPCION, CAT_VA_VALOR) values ('IMPORTAR_BD_WA', '"),b4xmainpage.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_checked))),RemoteObject.createImmutable("')")))));
 BA.debugLineNum = 1137;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _class_globals(RemoteObject __ref) throws Exception{
 //BA.debugLineNum = 18;BA.debugLine="Sub Class_Globals";
 //BA.debugLineNum = 19;BA.debugLine="Private Root As B4XView";
b4xmainpage._root = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_root",b4xmainpage._root);
 //BA.debugLineNum = 20;BA.debugLine="Private xui As XUI";
b4xmainpage._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");__ref.setField("_xui",b4xmainpage._xui);
 //BA.debugLineNum = 21;BA.debugLine="Public login As B4XMainPage";
b4xmainpage._login = RemoteObject.createNew ("gunav2.keymon.com.mx.b4xmainpage");__ref.setField("_login",b4xmainpage._login);
 //BA.debugLineNum = 22;BA.debugLine="Public principal As C_Principal";
b4xmainpage._principal = RemoteObject.createNew ("gunav2.keymon.com.mx.c_principal");__ref.setField("_principal",b4xmainpage._principal);
 //BA.debugLineNum = 23;BA.debugLine="Public clientes As C_Clientes";
b4xmainpage._clientes = RemoteObject.createNew ("gunav2.keymon.com.mx.c_clientes");__ref.setField("_clientes",b4xmainpage._clientes);
 //BA.debugLineNum = 24;BA.debugLine="Public cliente As C_Cliente";
b4xmainpage._cliente = RemoteObject.createNew ("gunav2.keymon.com.mx.c_cliente");__ref.setField("_cliente",b4xmainpage._cliente);
 //BA.debugLineNum = 25;BA.debugLine="Public productos As C_Productos";
b4xmainpage._productos = RemoteObject.createNew ("gunav2.keymon.com.mx.c_productos");__ref.setField("_productos",b4xmainpage._productos);
 //BA.debugLineNum = 26;BA.debugLine="Public updateAvailable As C_UpdateAvailable";
b4xmainpage._updateavailable = RemoteObject.createNew ("gunav2.keymon.com.mx.c_updateavailable");__ref.setField("_updateavailable",b4xmainpage._updateavailable);
 //BA.debugLineNum = 27;BA.debugLine="Public mapas As C_Mapas";
b4xmainpage._mapas = RemoteObject.createNew ("gunav2.keymon.com.mx.c_mapas");__ref.setField("_mapas",b4xmainpage._mapas);
 //BA.debugLineNum = 28;BA.debugLine="Public nuevoCliente As C_NuevoCliente";
b4xmainpage._nuevocliente = RemoteObject.createNew ("gunav2.keymon.com.mx.c_nuevocliente");__ref.setField("_nuevocliente",b4xmainpage._nuevocliente);
 //BA.debugLineNum = 29;BA.debugLine="Public ticketsDia As C_TicketsDia";
b4xmainpage._ticketsdia = RemoteObject.createNew ("gunav2.keymon.com.mx.c_ticketsdia");__ref.setField("_ticketsdia",b4xmainpage._ticketsdia);
 //BA.debugLineNum = 30;BA.debugLine="Public noVenta As C_NoVenta";
b4xmainpage._noventa = RemoteObject.createNew ("gunav2.keymon.com.mx.c_noventa");__ref.setField("_noventa",b4xmainpage._noventa);
 //BA.debugLineNum = 31;BA.debugLine="Public nota As C_Nota";
b4xmainpage._nota = RemoteObject.createNew ("gunav2.keymon.com.mx.c_nota");__ref.setField("_nota",b4xmainpage._nota);
 //BA.debugLineNum = 32;BA.debugLine="Public pedidos As C_Pedidos";
b4xmainpage._pedidos = RemoteObject.createNew ("gunav2.keymon.com.mx.c_pedidos");__ref.setField("_pedidos",b4xmainpage._pedidos);
 //BA.debugLineNum = 33;BA.debugLine="Public promos As C_Promos";
b4xmainpage._promos = RemoteObject.createNew ("gunav2.keymon.com.mx.c_promos");__ref.setField("_promos",b4xmainpage._promos);
 //BA.debugLineNum = 34;BA.debugLine="Public historico As C_Historico";
b4xmainpage._historico = RemoteObject.createNew ("gunav2.keymon.com.mx.c_historico");__ref.setField("_historico",b4xmainpage._historico);
 //BA.debugLineNum = 35;BA.debugLine="Public Clientes_Completos As C_ClientesCompletos";
b4xmainpage._clientes_completos = RemoteObject.createNew ("gunav2.keymon.com.mx.c_clientescompletos");__ref.setField("_clientes_completos",b4xmainpage._clientes_completos);
 //BA.debugLineNum = 36;BA.debugLine="Public Tclientes As V_Tclientes";
b4xmainpage._tclientes = RemoteObject.createNew ("gunav2.keymon.com.mx.v_tclientes");__ref.setField("_tclientes",b4xmainpage._tclientes);
 //BA.debugLineNum = 38;BA.debugLine="Public historicobat As C_historicobat";
b4xmainpage._historicobat = RemoteObject.createNew ("gunav2.keymon.com.mx.c_historicobat");__ref.setField("_historicobat",b4xmainpage._historicobat);
 //BA.debugLineNum = 40;BA.debugLine="Dim reqManager As DBRequestManager";
b4xmainpage._reqmanager = RemoteObject.createNew ("gunav2.keymon.com.mx.dbrequestmanager");__ref.setField("_reqmanager",b4xmainpage._reqmanager);
 //BA.debugLineNum = 41;BA.debugLine="Dim v As String = Application.VersionName";
b4xmainpage._v = b4xmainpage.__c.getField(false,"Application").runMethod(true,"getVersionName");__ref.setField("_v",b4xmainpage._v);
 //BA.debugLineNum = 42;BA.debugLine="Dim ruta As String";
b4xmainpage._ruta = RemoteObject.createImmutable("");__ref.setField("_ruta",b4xmainpage._ruta);
 //BA.debugLineNum = 43;BA.debugLine="Dim tgl As Toggle";
b4xmainpage._tgl = RemoteObject.createNew ("com.rootsoft.togglelibrary.ToggleLibrary");__ref.setField("_tgl",b4xmainpage._tgl);
 //BA.debugLineNum = 44;BA.debugLine="Dim lat_gps, lon_gps As String";
b4xmainpage._lat_gps = RemoteObject.createImmutable("");__ref.setField("_lat_gps",b4xmainpage._lat_gps);
b4xmainpage._lon_gps = RemoteObject.createImmutable("");__ref.setField("_lon_gps",b4xmainpage._lon_gps);
 //BA.debugLineNum = 45;BA.debugLine="Dim usuario As String";
b4xmainpage._usuario = RemoteObject.createImmutable("");__ref.setField("_usuario",b4xmainpage._usuario);
 //BA.debugLineNum = 46;BA.debugLine="Dim batt As Int";
b4xmainpage._batt = RemoteObject.createImmutable(0);__ref.setField("_batt",b4xmainpage._batt);
 //BA.debugLineNum = 47;BA.debugLine="Dim skmt As SQL";
b4xmainpage._skmt = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL");__ref.setField("_skmt",b4xmainpage._skmt);
 //BA.debugLineNum = 48;BA.debugLine="Dim montoActual, clientesTotal, clientesVenta, cl";
b4xmainpage._montoactual = RemoteObject.createImmutable("");__ref.setField("_montoactual",b4xmainpage._montoactual);
b4xmainpage._clientestotal = RemoteObject.createImmutable("");__ref.setField("_clientestotal",b4xmainpage._clientestotal);
b4xmainpage._clientesventa = RemoteObject.createImmutable("");__ref.setField("_clientesventa",b4xmainpage._clientesventa);
b4xmainpage._clientesvisitados = RemoteObject.createImmutable("");__ref.setField("_clientesvisitados",b4xmainpage._clientesvisitados);
b4xmainpage._almacen = RemoteObject.createImmutable("");__ref.setField("_almacen",b4xmainpage._almacen);
b4xmainpage._rutapreventa = RemoteObject.createImmutable("");__ref.setField("_rutapreventa",b4xmainpage._rutapreventa);
 //BA.debugLineNum = 49;BA.debugLine="Dim server, fechaRuta As String";
b4xmainpage._server = RemoteObject.createImmutable("");__ref.setField("_server",b4xmainpage._server);
b4xmainpage._fecharuta = RemoteObject.createImmutable("");__ref.setField("_fecharuta",b4xmainpage._fecharuta);
 //BA.debugLineNum = 50;BA.debugLine="Dim Logger As Boolean";
b4xmainpage._logger = RemoteObject.createImmutable(false);__ref.setField("_logger",b4xmainpage._logger);
 //BA.debugLineNum = 51;BA.debugLine="Dim mac_impresora As String";
b4xmainpage._mac_impresora = RemoteObject.createImmutable("");__ref.setField("_mac_impresora",b4xmainpage._mac_impresora);
 //BA.debugLineNum = 52;BA.debugLine="Dim Phn As PhoneId";
b4xmainpage._phn = RemoteObject.createNew ("anywheresoftware.b4a.phone.Phone.PhoneId");__ref.setField("_phn",b4xmainpage._phn);
 //BA.debugLineNum = 54;BA.debugLine="Dim user As EditText";
b4xmainpage._user = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_user",b4xmainpage._user);
 //BA.debugLineNum = 55;BA.debugLine="Dim pass As EditText";
b4xmainpage._pass = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_pass",b4xmainpage._pass);
 //BA.debugLineNum = 56;BA.debugLine="Dim c As Cursor";
b4xmainpage._c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_c",b4xmainpage._c);
 //BA.debugLineNum = 57;BA.debugLine="Dim existe As String";
b4xmainpage._existe = RemoteObject.createImmutable("");__ref.setField("_existe",b4xmainpage._existe);
 //BA.debugLineNum = 58;BA.debugLine="Dim paso1 As String";
b4xmainpage._paso1 = RemoteObject.createImmutable("");__ref.setField("_paso1",b4xmainpage._paso1);
 //BA.debugLineNum = 59;BA.debugLine="Private IMEN As Label";
b4xmainpage._imen = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_imen",b4xmainpage._imen);
 //BA.debugLineNum = 60;BA.debugLine="Dim IMEI As String = \"\"";
b4xmainpage._imei = BA.ObjectToString("");__ref.setField("_imei",b4xmainpage._imei);
 //BA.debugLineNum = 61;BA.debugLine="Dim alterno As String";
b4xmainpage._alterno = RemoteObject.createImmutable("");__ref.setField("_alterno",b4xmainpage._alterno);
 //BA.debugLineNum = 62;BA.debugLine="Private b_menu As Button";
b4xmainpage._b_menu = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_menu",b4xmainpage._b_menu);
 //BA.debugLineNum = 63;BA.debugLine="Dim PopupMenu As RSPopupMenu";
b4xmainpage._popupmenu = RemoteObject.createNew ("com.rootsoft.rspopupmenu.RSPopupMenu");__ref.setField("_popupmenu",b4xmainpage._popupmenu);
 //BA.debugLineNum = 64;BA.debugLine="Dim cmd As DBCommand";
b4xmainpage._cmd = RemoteObject.createNew ("gunav2.keymon.com.mx.dbrequestmanager._dbcommand");__ref.setField("_cmd",b4xmainpage._cmd);
 //BA.debugLineNum = 65;BA.debugLine="Private PDF As Button";
b4xmainpage._pdf = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_pdf",b4xmainpage._pdf);
 //BA.debugLineNum = 66;BA.debugLine="Private bpv1 As BatteryProgressView";
b4xmainpage._bpv1 = RemoteObject.createNew ("batteryprogressviewwrapper.batteryprogressviewWrapper");__ref.setField("_bpv1",b4xmainpage._bpv1);
 //BA.debugLineNum = 67;BA.debugLine="Dim batterystatus(11) As Int";
b4xmainpage._batterystatus = RemoteObject.createNewArray ("int", new int[] {11}, new Object[]{});__ref.setField("_batterystatus",b4xmainpage._batterystatus);
 //BA.debugLineNum = 68;BA.debugLine="Private bu As BatteryUtilities";
b4xmainpage._bu = RemoteObject.createNew ("gunav2.keymon.com.mx.batteryutilities");__ref.setField("_bu",b4xmainpage._bu);
 //BA.debugLineNum = 69;BA.debugLine="Private b_apk As Button";
b4xmainpage._b_apk = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_apk",b4xmainpage._b_apk);
 //BA.debugLineNum = 70;BA.debugLine="Private i_engrane As ImageView";
b4xmainpage._i_engrane = RemoteObject.createNew ("anywheresoftware.b4a.objects.ImageViewWrapper");__ref.setField("_i_engrane",b4xmainpage._i_engrane);
 //BA.debugLineNum = 71;BA.debugLine="Private p_Main As Panel";
b4xmainpage._p_main = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_main",b4xmainpage._p_main);
 //BA.debugLineNum = 72;BA.debugLine="Private p_appUpdate As Panel";
b4xmainpage._p_appupdate = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_appupdate",b4xmainpage._p_appupdate);
 //BA.debugLineNum = 73;BA.debugLine="Private b_regesar As Button";
b4xmainpage._b_regesar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_regesar",b4xmainpage._b_regesar);
 //BA.debugLineNum = 74;BA.debugLine="Private l_version As Label";
b4xmainpage._l_version = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_version",b4xmainpage._l_version);
 //BA.debugLineNum = 75;BA.debugLine="Private ImageView1 As ImageView";
b4xmainpage._imageview1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ImageViewWrapper");__ref.setField("_imageview1",b4xmainpage._imageview1);
 //BA.debugLineNum = 76;BA.debugLine="Private Label2 As Label";
b4xmainpage._label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_label2",b4xmainpage._label2);
 //BA.debugLineNum = 77;BA.debugLine="Dim Entrar As Button";
b4xmainpage._entrar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_entrar",b4xmainpage._entrar);
 //BA.debugLineNum = 78;BA.debugLine="Dim tipo_venta As String = Subs.traeTipoVentaDeBD";
b4xmainpage._tipo_venta = b4xmainpage._subs.runMethod(true,"_traetipoventadebd" /*RemoteObject*/ ,__ref.getField(false, "ba"));__ref.setField("_tipo_venta",b4xmainpage._tipo_venta);
 //BA.debugLineNum = 79;BA.debugLine="Dim bTerminarClicked As Boolean = False";
b4xmainpage._bterminarclicked = b4xmainpage.__c.getField(true,"False");__ref.setField("_bterminarclicked",b4xmainpage._bterminarclicked);
 //BA.debugLineNum = 80;BA.debugLine="Private lv_server As ListView";
b4xmainpage._lv_server = RemoteObject.createNew ("anywheresoftware.b4a.objects.ListViewWrapper");__ref.setField("_lv_server",b4xmainpage._lv_server);
 //BA.debugLineNum = 81;BA.debugLine="Private l_server As Label";
b4xmainpage._l_server = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_server",b4xmainpage._l_server);
 //BA.debugLineNum = 82;BA.debugLine="Private b_envioBD As Button";
b4xmainpage._b_enviobd = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_enviobd",b4xmainpage._b_enviobd);
 //BA.debugLineNum = 83;BA.debugLine="Public Provider As FileProvider";
b4xmainpage._provider = RemoteObject.createNew ("gunav2.keymon.com.mx.fileprovider");__ref.setField("_provider",b4xmainpage._provider);
 //BA.debugLineNum = 84;BA.debugLine="Public rutaBDBackup = \"\"";
b4xmainpage._rutabdbackup = BA.ObjectToString("");__ref.setField("_rutabdbackup",b4xmainpage._rutabdbackup);
 //BA.debugLineNum = 85;BA.debugLine="Private B4XSwitch1 As B4XSwitch";
b4xmainpage._b4xswitch1 = RemoteObject.createNew ("gunav2.keymon.com.mx.b4xswitch");__ref.setField("_b4xswitch1",b4xmainpage._b4xswitch1);
 //BA.debugLineNum = 86;BA.debugLine="Private p_validacion As Panel";
b4xmainpage._p_validacion = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_validacion",b4xmainpage._p_validacion);
 //BA.debugLineNum = 87;BA.debugLine="Private B4XSwitch2 As B4XSwitch";
b4xmainpage._b4xswitch2 = RemoteObject.createNew ("gunav2.keymon.com.mx.b4xswitch");__ref.setField("_b4xswitch2",b4xmainpage._b4xswitch2);
 //BA.debugLineNum = 88;BA.debugLine="Dim x As Int";
b4xmainpage._x = RemoteObject.createImmutable(0);__ref.setField("_x",b4xmainpage._x);
 //BA.debugLineNum = 89;BA.debugLine="Private et_codigo As EditText";
b4xmainpage._et_codigo = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_et_codigo",b4xmainpage._et_codigo);
 //BA.debugLineNum = 90;BA.debugLine="Dim buscandoActualizacion As Boolean = False";
b4xmainpage._buscandoactualizacion = b4xmainpage.__c.getField(true,"False");__ref.setField("_buscandoactualizacion",b4xmainpage._buscandoactualizacion);
 //BA.debugLineNum = 91;BA.debugLine="Dim actualizacionRevisada As Boolean = False 'Par";
b4xmainpage._actualizacionrevisada = b4xmainpage.__c.getField(true,"False");__ref.setField("_actualizacionrevisada",b4xmainpage._actualizacionrevisada);
 //BA.debugLineNum = 92;BA.debugLine="Private b_actualizacion As Button";
b4xmainpage._b_actualizacion = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_actualizacion",b4xmainpage._b_actualizacion);
 //BA.debugLineNum = 93;BA.debugLine="Private et_server As EditText";
b4xmainpage._et_server = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_et_server",b4xmainpage._et_server);
 //BA.debugLineNum = 94;BA.debugLine="Dim intentUsado As Boolean = False";
b4xmainpage._intentusado = b4xmainpage.__c.getField(true,"False");__ref.setField("_intentusado",b4xmainpage._intentusado);
 //BA.debugLineNum = 95;BA.debugLine="Private p_importarBDWA As Panel";
b4xmainpage._p_importarbdwa = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_importarbdwa",b4xmainpage._p_importarbdwa);
 //BA.debugLineNum = 96;BA.debugLine="Private cb_importarBDWA As CheckBox";
b4xmainpage._cb_importarbdwa = RemoteObject.createNew ("anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper");__ref.setField("_cb_importarbdwa",b4xmainpage._cb_importarbdwa);
 //BA.debugLineNum = 98;BA.debugLine="Dim pkg As PackageManager";
b4xmainpage._pkg = RemoteObject.createNew ("anywheresoftware.b4a.phone.PackageManagerWrapper");__ref.setField("_pkg",b4xmainpage._pkg);
 //BA.debugLineNum = 100;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
}
public static void  _copiadb(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("copiaDB (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,847);
if (RapidSub.canDelegate("copiadb")) { __ref.runUserSub(false, "b4xmainpage","copiadb", __ref); return;}
ResumableSub_copiaDB rsub = new ResumableSub_copiaDB(null,__ref);
rsub.resume(null, null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_copiaDB extends BA.ResumableSub {
public ResumableSub_copiaDB(gunav2.keymon.com.mx.b4xmainpage parent,RemoteObject __ref) {
this.parent = parent;
this.__ref = __ref;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
RemoteObject __ref;
gunav2.keymon.com.mx.b4xmainpage parent;
RemoteObject _permission = RemoteObject.createImmutable("");
RemoteObject _result = RemoteObject.createImmutable(false);
RemoteObject _thedir = RemoteObject.createImmutable("");

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("copiaDB (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,847);
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;

    while (true) {
try {

        switch (state) {
            case -1:
return;

case 0:
//C
this.state = 1;
Debug.locals.put("_ref", __ref);
 BA.debugLineNum = 848;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
Debug.ShouldStop(32768);
parent._starter._rp /*RemoteObject*/ .runVoidMethod ("CheckAndRequest",__ref.getField(false, "ba"),(Object)(parent._starter._rp /*RemoteObject*/ .getField(true,"PERMISSION_WRITE_EXTERNAL_STORAGE")));
 BA.debugLineNum = 849;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
Debug.ShouldStop(65536);
parent.__c.runVoidMethod ("WaitFor","b4xpage_permissionresult", __ref.getField(false, "ba"), anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "b4xmainpage", "copiadb"), null);
this.state = 19;
return;
case 19:
//C
this.state = 1;
_permission = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(1));Debug.locals.put("Permission", _permission);
_result = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(2));Debug.locals.put("Result", _result);
;
 BA.debugLineNum = 850;BA.debugLine="Dim theDir As String = \"\"";
Debug.ShouldStop(131072);
_thedir = BA.ObjectToString("");Debug.locals.put("theDir", _thedir);Debug.locals.put("theDir", _thedir);
 BA.debugLineNum = 851;BA.debugLine="If Result Then";
Debug.ShouldStop(262144);
if (true) break;

case 1:
//if
this.state = 18;
if (_result.<Boolean>get().booleanValue()) { 
this.state = 3;
}else {
this.state = 17;
}if (true) break;

case 3:
//C
this.state = 4;
 BA.debugLineNum = 852;BA.debugLine="Dim theDir As String";
Debug.ShouldStop(524288);
_thedir = RemoteObject.createImmutable("");Debug.locals.put("theDir", _thedir);
 BA.debugLineNum = 853;BA.debugLine="Try";
Debug.ShouldStop(1048576);
if (true) break;

case 4:
//try
this.state = 9;
this.catchState = 8;
this.state = 6;
if (true) break;

case 6:
//C
this.state = 9;
this.catchState = 8;
 BA.debugLineNum = 854;BA.debugLine="File.MakeDir(File.DirRootExternal,\"kmts\")";
Debug.ShouldStop(2097152);
parent.__c.getField(false,"File").runVoidMethod ("MakeDir",(Object)(parent.__c.getField(false,"File").runMethod(true,"getDirRootExternal")),(Object)(RemoteObject.createImmutable("kmts")));
 BA.debugLineNum = 855;BA.debugLine="theDir = \"/kmts\"";
Debug.ShouldStop(4194304);
_thedir = BA.ObjectToString("/kmts");Debug.locals.put("theDir", _thedir);
 Debug.CheckDeviceExceptions();
if (true) break;

case 8:
//C
this.state = 9;
this.catchState = 0;
 BA.debugLineNum = 857;BA.debugLine="theDir = \"\"";
Debug.ShouldStop(16777216);
_thedir = BA.ObjectToString("");Debug.locals.put("theDir", _thedir);
 if (true) break;
if (true) break;

case 9:
//C
this.state = 10;
this.catchState = 0;
;
 BA.debugLineNum = 859;BA.debugLine="rutaBDBackup = File.DirRootExternal&theDir";
Debug.ShouldStop(67108864);
__ref.setField ("_rutabdbackup" /*RemoteObject*/ ,RemoteObject.concat(parent.__c.getField(false,"File").runMethod(true,"getDirRootExternal"),_thedir));
 BA.debugLineNum = 860;BA.debugLine="Try";
Debug.ShouldStop(134217728);
if (true) break;

case 10:
//try
this.state = 15;
this.catchState = 14;
this.state = 12;
if (true) break;

case 12:
//C
this.state = 15;
this.catchState = 14;
 BA.debugLineNum = 861;BA.debugLine="File.Copy(File.DirInternal,\"kmt.db\",File.DirRoo";
Debug.ShouldStop(268435456);
parent.__c.getField(false,"File").runVoidMethod ("Copy",(Object)(parent.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(BA.ObjectToString("kmt.db")),(Object)(RemoteObject.concat(parent.__c.getField(false,"File").runMethod(true,"getDirRootExternal"),_thedir)),(Object)(RemoteObject.createImmutable("cedex_kmt.db")));
 BA.debugLineNum = 862;BA.debugLine="ToastMessageShow(\"Listo\", False)";
Debug.ShouldStop(536870912);
parent.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Listo")),(Object)(parent.__c.getField(true,"False")));
 Debug.CheckDeviceExceptions();
if (true) break;

case 14:
//C
this.state = 15;
this.catchState = 0;
 BA.debugLineNum = 864;BA.debugLine="ToastMessageShow(\"No se pudo hacer la copia: \"&";
Debug.ShouldStop(-2147483648);
parent.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("No se pudo hacer la copia: "),parent.__c.runMethod(false,"LastException",__ref.getField(false, "ba"))))),(Object)(parent.__c.getField(true,"True")));
 if (true) break;
if (true) break;

case 15:
//C
this.state = 18;
this.catchState = 0;
;
 if (true) break;

case 17:
//C
this.state = 18;
 BA.debugLineNum = 867;BA.debugLine="ToastMessageShow(\"Sin permisos\", False)";
Debug.ShouldStop(4);
parent.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Sin permisos")),(Object)(parent.__c.getField(true,"False")));
 if (true) break;

case 18:
//C
this.state = -1;
;
 BA.debugLineNum = 869;BA.debugLine="Log(rutaBDBackup)";
Debug.ShouldStop(16);
parent.__c.runVoidMethod ("LogImpl","02097174",__ref.getField(true,"_rutabdbackup" /*RemoteObject*/ ),0);
 BA.debugLineNum = 870;BA.debugLine="End Sub";
Debug.ShouldStop(32);
if (true) break;
}} 
       catch (Exception e0) {
			
if (catchState == 0)
    throw e0;
else {
    state = catchState;
BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e0.toString());}
            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static RemoteObject  _dameusuario(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("dameUsuario (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,817);
if (RapidSub.canDelegate("dameusuario")) { return __ref.runUserSub(false, "b4xmainpage","dameusuario", __ref);}
 BA.debugLineNum = 817;BA.debugLine="Sub dameUsuario";
Debug.ShouldStop(65536);
 BA.debugLineNum = 818;BA.debugLine="c=skmt.ExecQuery2(\"select count(*) as EXISTE1 fro";
Debug.ShouldStop(131072);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select count(*) as EXISTE1 from usuarioa where usuario = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {__ref.getField(false,"_user" /*RemoteObject*/ ).runMethod(true,"getText")}))));
 BA.debugLineNum = 819;BA.debugLine="c.Position=0";
Debug.ShouldStop(262144);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 820;BA.debugLine="existe = c.GetString(\"EXISTE1\")";
Debug.ShouldStop(524288);
__ref.setField ("_existe" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("EXISTE1"))));
 BA.debugLineNum = 821;BA.debugLine="c.Close";
Debug.ShouldStop(1048576);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 822;BA.debugLine="If existe > 0 Then";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(true,"_existe" /*RemoteObject*/ )),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 823;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")";
Debug.ShouldStop(4194304);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select USUARIO from usuarioa"))));
 BA.debugLineNum = 824;BA.debugLine="c.Position=0";
Debug.ShouldStop(8388608);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 825;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(16777216);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 }else {
 BA.debugLineNum = 827;BA.debugLine="usuario = \"SINUSUARIO\"";
Debug.ShouldStop(67108864);
__ref.setField ("_usuario" /*RemoteObject*/ ,BA.ObjectToString("SINUSUARIO"));
 };
 BA.debugLineNum = 829;BA.debugLine="End Sub";
Debug.ShouldStop(268435456);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _entrar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("Entrar_Click (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,441);
if (RapidSub.canDelegate("entrar_click")) { return __ref.runUserSub(false, "b4xmainpage","entrar_click", __ref);}
RemoteObject _r = RemoteObject.declareNull("anywheresoftware.b4a.agraham.reflection.Reflection");
RemoteObject _api = RemoteObject.createImmutable(0);
RemoteObject _pp = RemoteObject.declareNull("anywheresoftware.b4a.phone.Phone");
RemoteObject _id = RemoteObject.createImmutable(0);
 BA.debugLineNum = 441;BA.debugLine="Sub Entrar_Click";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 442;BA.debugLine="Dim r As Reflector";
Debug.ShouldStop(33554432);
_r = RemoteObject.createNew ("anywheresoftware.b4a.agraham.reflection.Reflection");Debug.locals.put("r", _r);
 BA.debugLineNum = 443;BA.debugLine="Dim Api As Int";
Debug.ShouldStop(67108864);
_api = RemoteObject.createImmutable(0);Debug.locals.put("Api", _api);
 BA.debugLineNum = 444;BA.debugLine="Dim PP As Phone";
Debug.ShouldStop(134217728);
_pp = RemoteObject.createNew ("anywheresoftware.b4a.phone.Phone");Debug.locals.put("PP", _pp);
 BA.debugLineNum = 445;BA.debugLine="user.Text = user.Text.trim";
Debug.ShouldStop(268435456);
__ref.getField(false,"_user" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_user" /*RemoteObject*/ ).runMethod(true,"getText").runMethod(true,"trim")));
 BA.debugLineNum = 446;BA.debugLine="LogColor(Starter.server, Colors.Blue)";
Debug.ShouldStop(536870912);
b4xmainpage.__c.runVoidMethod ("LogImpl","01376261",b4xmainpage._starter._server /*RemoteObject*/ ,b4xmainpage.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 447;BA.debugLine="Api = r.GetStaticField(\"android.os.Build$VERSION\"";
Debug.ShouldStop(1073741824);
_api = BA.numberCast(int.class, _r.runMethod(false,"GetStaticField",(Object)(BA.ObjectToString("android.os.Build$VERSION")),(Object)(RemoteObject.createImmutable("SDK_INT"))));Debug.locals.put("Api", _api);
 BA.debugLineNum = 448;BA.debugLine="If Api < 9 Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("<",_api,BA.numberCast(double.class, 9))) { 
 BA.debugLineNum = 450;BA.debugLine="If File.Exists(File.DirInternal, \"__id\") Then";
Debug.ShouldStop(2);
if (b4xmainpage.__c.getField(false,"File").runMethod(true,"Exists",(Object)(b4xmainpage.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(RemoteObject.createImmutable("__id"))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 451;BA.debugLine="IMEI =  File.ReadString(File.DirInternal, \"__id";
Debug.ShouldStop(4);
__ref.setField ("_imei" /*RemoteObject*/ ,b4xmainpage.__c.getField(false,"File").runMethod(true,"ReadString",(Object)(b4xmainpage.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(RemoteObject.createImmutable("__id"))));
 BA.debugLineNum = 452;BA.debugLine="Log(1&\"-\"&IMEI)";
Debug.ShouldStop(8);
b4xmainpage.__c.runVoidMethod ("LogImpl","01376267",RemoteObject.concat(RemoteObject.createImmutable(1),RemoteObject.createImmutable("-"),__ref.getField(true,"_imei" /*RemoteObject*/ )),0);
 }else {
 BA.debugLineNum = 454;BA.debugLine="Dim id As Int";
Debug.ShouldStop(32);
_id = RemoteObject.createImmutable(0);Debug.locals.put("id", _id);
 BA.debugLineNum = 455;BA.debugLine="id = Rnd(0x10000000, 0x7FFFFFFF)";
Debug.ShouldStop(64);
_id = b4xmainpage.__c.runMethod(true,"Rnd",(Object)(BA.numberCast(int.class, ((int)0x10000000))),(Object)(BA.numberCast(int.class, ((int)0x7fffffff))));Debug.locals.put("id", _id);
 BA.debugLineNum = 456;BA.debugLine="File.WriteString(File.DirInternal, \"__id\", id)";
Debug.ShouldStop(128);
b4xmainpage.__c.getField(false,"File").runVoidMethod ("WriteString",(Object)(b4xmainpage.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(BA.ObjectToString("__id")),(Object)(BA.NumberToString(_id)));
 BA.debugLineNum = 457;BA.debugLine="IMEI =  id";
Debug.ShouldStop(256);
__ref.setField ("_imei" /*RemoteObject*/ ,BA.NumberToString(_id));
 BA.debugLineNum = 458;BA.debugLine="Log(2&\"-\"&IMEI)";
Debug.ShouldStop(512);
b4xmainpage.__c.runVoidMethod ("LogImpl","01376273",RemoteObject.concat(RemoteObject.createImmutable(2),RemoteObject.createImmutable("-"),__ref.getField(true,"_imei" /*RemoteObject*/ )),0);
 };
 }else {
 BA.debugLineNum = 462;BA.debugLine="IMEI =  r.GetStaticField(\"android.os.Build\", \"SE";
Debug.ShouldStop(8192);
__ref.setField ("_imei" /*RemoteObject*/ ,BA.ObjectToString(_r.runMethod(false,"GetStaticField",(Object)(BA.ObjectToString("android.os.Build")),(Object)(RemoteObject.createImmutable("SERIAL")))));
 BA.debugLineNum = 463;BA.debugLine="Log(3&\"-\"&IMEI)";
Debug.ShouldStop(16384);
b4xmainpage.__c.runVoidMethod ("LogImpl","01376278",RemoteObject.concat(RemoteObject.createImmutable(3),RemoteObject.createImmutable("-"),__ref.getField(true,"_imei" /*RemoteObject*/ )),0);
 };
 BA.debugLineNum = 465;BA.debugLine="If IMEI.ToLowerCase = \"unknown\" Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_imei" /*RemoteObject*/ ).runMethod(true,"toLowerCase"),BA.ObjectToString("unknown"))) { 
 BA.debugLineNum = 466;BA.debugLine="IMEI = PP.GetSettings(\"android_id\")";
Debug.ShouldStop(131072);
__ref.setField ("_imei" /*RemoteObject*/ ,_pp.runMethod(true,"GetSettings",(Object)(RemoteObject.createImmutable("android_id"))));
 };
 BA.debugLineNum = 468;BA.debugLine="Log(\"IMEI = \" &  IMEI)";
Debug.ShouldStop(524288);
b4xmainpage.__c.runVoidMethod ("LogImpl","01376283",RemoteObject.concat(RemoteObject.createImmutable("IMEI = "),__ref.getField(true,"_imei" /*RemoteObject*/ )),0);
 BA.debugLineNum = 469;BA.debugLine="If user.Text = \"ALTERNO\" Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_user" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("ALTERNO"))) { 
 BA.debugLineNum = 470;BA.debugLine="c=skmt.ExecQuery2(\"select CAT_CO_CONFIGURACION,";
Debug.ShouldStop(2097152);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select CAT_CO_CONFIGURACION, CAT_CO_RESULTADO from CAT_CODIGOS where CAT_CO_PONDERACION =1 AND CAT_CO_ACCION = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("SERVER")}))));
 BA.debugLineNum = 471;BA.debugLine="c.Position =0";
Debug.ShouldStop(4194304);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 472;BA.debugLine="server = c.GetString(\"CAT_CO_CONFIGURACION\")";
Debug.ShouldStop(8388608);
__ref.setField ("_server" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CO_CONFIGURACION"))));
 BA.debugLineNum = 473;BA.debugLine="alterno = c.GetString(\"CAT_CO_RESULTADO\")";
Debug.ShouldStop(16777216);
__ref.setField ("_alterno" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CO_RESULTADO"))));
 BA.debugLineNum = 474;BA.debugLine="c.Close";
Debug.ShouldStop(33554432);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 475;BA.debugLine="If alterno = 1 Then";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_alterno" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 476;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE CAT_CODIGOS SET CAT_";
Debug.ShouldStop(134217728);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE CAT_CODIGOS SET CAT_CO_PONDERACION = 1 WHERE CAT_CO_ACCION = ? AND CAT_CO_RESULTADO = 2")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("SERVER")})))));
 BA.debugLineNum = 477;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE CAT_CODIGOS SET CAT_";
Debug.ShouldStop(268435456);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE CAT_CODIGOS SET CAT_CO_PONDERACION = 0 WHERE CAT_CO_ACCION = ? AND CAT_CO_RESULTADO = 1")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("SERVER")})))));
 }else 
{ BA.debugLineNum = 478;BA.debugLine="Else if alterno = 2 Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_alterno" /*RemoteObject*/ ),BA.NumberToString(2))) { 
 BA.debugLineNum = 479;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE CAT_CODIGOS SET CAT_";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE CAT_CODIGOS SET CAT_CO_PONDERACION = 1 WHERE CAT_CO_ACCION = ? AND CAT_CO_RESULTADO = 1")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("SERVER")})))));
 BA.debugLineNum = 480;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE CAT_CODIGOS SET CAT_";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE CAT_CODIGOS SET CAT_CO_PONDERACION = 0 WHERE CAT_CO_ACCION = ? AND CAT_CO_RESULTADO = 2")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("SERVER")})))));
 }}
;
 BA.debugLineNum = 482;BA.debugLine="c=skmt.ExecQuery2(\"select CAT_CO_CONFIGURACION,";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select CAT_CO_CONFIGURACION, CAT_CO_RESULTADO from CAT_CODIGOS where CAT_CO_PONDERACION =1 AND CAT_CO_ACCION = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("SERVER")}))));
 BA.debugLineNum = 483;BA.debugLine="c.Position =0";
Debug.ShouldStop(4);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 484;BA.debugLine="server = c.GetString(\"CAT_CO_CONFIGURACION\")";
Debug.ShouldStop(8);
__ref.setField ("_server" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CO_CONFIGURACION"))));
 BA.debugLineNum = 485;BA.debugLine="user.Text = server";
Debug.ShouldStop(16);
__ref.getField(false,"_user" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(__ref.getField(true,"_server" /*RemoteObject*/ )));
 BA.debugLineNum = 486;BA.debugLine="c.Close";
Debug.ShouldStop(32);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else 
{ BA.debugLineNum = 488;BA.debugLine="else if user.Text = \"KMTS1\" Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_user" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("KMTS1"))) { 
 BA.debugLineNum = 489;BA.debugLine="skmt.ExecNonQuery(\"delete from usuarioa\")";
Debug.ShouldStop(256);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from usuarioa")));
 BA.debugLineNum = 490;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO USUARIOA VALUES";
Debug.ShouldStop(512);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO USUARIOA VALUES (?,?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(false,"_user" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_pass" /*RemoteObject*/ ).runMethod(true,"getText"))})))));
 BA.debugLineNum = 491;BA.debugLine="skmt.ExecNonQuery(\"delete from cat_almacen\")";
Debug.ShouldStop(1024);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from cat_almacen")));
 BA.debugLineNum = 492;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_ALMACEN(ID_A";
Debug.ShouldStop(2048);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(false,"_pass" /*RemoteObject*/ ).runMethod(true,"getText"))})))));
 BA.debugLineNum = 493;BA.debugLine="skmt.ExecNonQuery(\"delete from VERSION\")";
Debug.ShouldStop(4096);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from VERSION")));
 BA.debugLineNum = 494;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO VERSION(NOVERSIO";
Debug.ShouldStop(8192);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO VERSION(NOVERSION) VALUES (?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.createImmutable("2.1"))})))));
 BA.debugLineNum = 495;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
Debug.ShouldStop(16384);
b4xmainpage._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Principal")));
 }else 
{ BA.debugLineNum = 496;BA.debugLine="else if user.Text = \"BERNA1\" Then";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_user" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("BERNA1"))) { 
 BA.debugLineNum = 497;BA.debugLine="skmt.ExecNonQuery(\"delete from usuarioa\")";
Debug.ShouldStop(65536);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from usuarioa")));
 BA.debugLineNum = 498;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO USUARIOA VALUES";
Debug.ShouldStop(131072);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO USUARIOA VALUES (?,?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(false,"_user" /*RemoteObject*/ ).runMethod(true,"getText")),(RemoteObject.createImmutable("1"))})))));
 BA.debugLineNum = 499;BA.debugLine="skmt.ExecNonQuery(\"delete from cat_almacen\")";
Debug.ShouldStop(262144);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from cat_almacen")));
 BA.debugLineNum = 500;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_ALMACEN(ID_A";
Debug.ShouldStop(524288);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.createImmutable("1"))})))));
 BA.debugLineNum = 501;BA.debugLine="skmt.ExecNonQuery(\"delete from VERSION\")";
Debug.ShouldStop(1048576);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from VERSION")));
 BA.debugLineNum = 502;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO VERSION(NOVERSIO";
Debug.ShouldStop(2097152);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO VERSION(NOVERSION) VALUES (?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.createImmutable("2.1"))})))));
 BA.debugLineNum = 503;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
Debug.ShouldStop(4194304);
b4xmainpage._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Principal")));
 }else 
{ BA.debugLineNum = 504;BA.debugLine="else if user.Text = \"IMEI\" Then";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_user" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("IMEI"))) { 
 BA.debugLineNum = 505;BA.debugLine="user.Text = IMEI";
Debug.ShouldStop(16777216);
__ref.getField(false,"_user" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(__ref.getField(true,"_imei" /*RemoteObject*/ )));
 }}}}
;
 BA.debugLineNum = 507;BA.debugLine="c=skmt.ExecQuery2(\"select count(*) as EXISTE1 fro";
Debug.ShouldStop(67108864);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select count(*) as EXISTE1 from usuarioa where usuario = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {__ref.getField(false,"_user" /*RemoteObject*/ ).runMethod(true,"getText")}))));
 BA.debugLineNum = 508;BA.debugLine="c.Position=0";
Debug.ShouldStop(134217728);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 509;BA.debugLine="existe = c.GetString(\"EXISTE1\")";
Debug.ShouldStop(268435456);
__ref.setField ("_existe" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("EXISTE1"))));
 BA.debugLineNum = 510;BA.debugLine="If Subs.traeAlmacen <> \"NA\" Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("!",b4xmainpage._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.ObjectToString("NA"))) { 
 BA.debugLineNum = 511;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 512;BA.debugLine="cmd.Name = \"selectVersionAppGuna\"";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("selectVersionAppGuna"));
 BA.debugLineNum = 513;BA.debugLine="cmd.Parameters = Array As Object(Subs.traeAlmace";
Debug.ShouldStop(1);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(b4xmainpage._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")))}));
 BA.debugLineNum = 514;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"traeVersion\")";
Debug.ShouldStop(2);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("traeVersion"))));
 };
 BA.debugLineNum = 516;BA.debugLine="If existe = 0 Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_existe" /*RemoteObject*/ ),BA.NumberToString(0))) { 
 BA.debugLineNum = 517;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(16);
b4xmainpage._cmd = RemoteObject.createNew ("gunav2.keymon.com.mx.dbrequestmanager._dbcommand");__ref.setField("_cmd",b4xmainpage._cmd);
 BA.debugLineNum = 518;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(32);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 519;BA.debugLine="cmd.Name = \"select_usuario_guna_GV2_10\" 'Antes s";
Debug.ShouldStop(64);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_usuario_guna_GV2_10"));
 BA.debugLineNum = 520;BA.debugLine="cmd.Parameters = Array As Object(user.Text.Trim,";
Debug.ShouldStop(128);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(false,"_user" /*RemoteObject*/ ).runMethod(true,"getText").runMethod(true,"trim")),(__ref.getField(false,"_pass" /*RemoteObject*/ ).runMethod(true,"getText").runMethod(true,"trim"))}));
 BA.debugLineNum = 521;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"usuario_10\")";
Debug.ShouldStop(256);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("usuario_10"))));
 BA.debugLineNum = 544;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(-2147483648);
b4xmainpage._cmd = RemoteObject.createNew ("gunav2.keymon.com.mx.dbrequestmanager._dbcommand");__ref.setField("_cmd",b4xmainpage._cmd);
 BA.debugLineNum = 545;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(1);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 546;BA.debugLine="cmd.Name = \"select_version_GV2\"";
Debug.ShouldStop(2);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_version_GV2"));
 BA.debugLineNum = 547;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"version\")";
Debug.ShouldStop(4);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("version"))));
 }else {
 BA.debugLineNum = 549;BA.debugLine="usuario = user.Text";
Debug.ShouldStop(16);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_user" /*RemoteObject*/ ).runMethod(true,"getText"));
 BA.debugLineNum = 550;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
Debug.ShouldStop(32);
b4xmainpage._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Principal")));
 };
 BA.debugLineNum = 552;BA.debugLine="End Sub";
Debug.ShouldStop(128);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _entrar_longclick(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("Entrar_LongClick (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,554);
if (RapidSub.canDelegate("entrar_longclick")) { return __ref.runUserSub(false, "b4xmainpage","entrar_longclick", __ref);}
 BA.debugLineNum = 554;BA.debugLine="Sub Entrar_LongClick";
Debug.ShouldStop(512);
 BA.debugLineNum = 556;BA.debugLine="End Sub";
Debug.ShouldStop(2048);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _gps_locationchanged(RemoteObject __ref,RemoteObject _location1) throws Exception{
try {
		Debug.PushSubsStack("GPS_LocationChanged (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,793);
if (RapidSub.canDelegate("gps_locationchanged")) { return __ref.runUserSub(false, "b4xmainpage","gps_locationchanged", __ref, _location1);}
Debug.locals.put("Location1", _location1);
 BA.debugLineNum = 793;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 794;BA.debugLine="If user.text = \"GPS\" Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_user" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("GPS"))) { 
 BA.debugLineNum = 795;BA.debugLine="user.Text=Location1.Latitude";
Debug.ShouldStop(67108864);
__ref.getField(false,"_user" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(_location1.runMethod(true,"getLatitude")));
 BA.debugLineNum = 796;BA.debugLine="pass.text=Location1.Longitude";
Debug.ShouldStop(134217728);
__ref.getField(false,"_pass" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(_location1.runMethod(true,"getLongitude")));
 };
 BA.debugLineNum = 798;BA.debugLine="End Sub";
Debug.ShouldStop(536870912);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _i_engrane_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("i_engrane_Click (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,886);
if (RapidSub.canDelegate("i_engrane_click")) { return __ref.runUserSub(false, "b4xmainpage","i_engrane_click", __ref);}
 BA.debugLineNum = 886;BA.debugLine="Sub i_engrane_Click";
Debug.ShouldStop(2097152);
 BA.debugLineNum = 887;BA.debugLine="p_appUpdate.Left = (Root.Width/2) - (p_appUpdate.";
Debug.ShouldStop(4194304);
__ref.getField(false,"_p_appupdate" /*RemoteObject*/ ).runMethod(true,"setLeft",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0)),(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_p_appupdate" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0))}, "-",1, 0)));
 BA.debugLineNum = 888;BA.debugLine="lv_server.Clear";
Debug.ShouldStop(8388608);
__ref.getField(false,"_lv_server" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 889;BA.debugLine="lv_server.AddSingleLine(\"http://keymon.net:1782\")";
Debug.ShouldStop(16777216);
__ref.getField(false,"_lv_server" /*RemoteObject*/ ).runVoidMethod ("AddSingleLine",(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("http://keymon.net:1782"))));
 BA.debugLineNum = 890;BA.debugLine="If user.Text = \"KMTS1\" Then lv_server.AddSingleLi";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_user" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("KMTS1"))) { 
__ref.getField(false,"_lv_server" /*RemoteObject*/ ).runVoidMethod ("AddSingleLine",(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("http://10.0.0.205:1782"))));};
 BA.debugLineNum = 891;BA.debugLine="l_server.Text = Starter.server";
Debug.ShouldStop(67108864);
__ref.getField(false,"_l_server" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(b4xmainpage._starter._server /*RemoteObject*/ ));
 BA.debugLineNum = 892;BA.debugLine="et_server.Text = Starter.server";
Debug.ShouldStop(134217728);
__ref.getField(false,"_et_server" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(b4xmainpage._starter._server /*RemoteObject*/ ));
 BA.debugLineNum = 893;BA.debugLine="Subs.panelVisible(p_appUpdate,0,0)";
Debug.ShouldStop(268435456);
b4xmainpage._subs.runVoidMethod ("_panelvisible" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p_appupdate" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)));
 BA.debugLineNum = 894;BA.debugLine="p_appUpdate.Height = Root.Height";
Debug.ShouldStop(536870912);
__ref.getField(false,"_p_appupdate" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 895;BA.debugLine="p_appUpdate.Width = Root.Width";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_p_appupdate" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"));
 BA.debugLineNum = 896;BA.debugLine="c = skmt.ExecQuery(\"SELECT HABILITADA FROM IMPRES";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT HABILITADA FROM IMPRESORA"))));
 BA.debugLineNum = 897;BA.debugLine="If c.RowCount = 0 Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 898;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO IMPRESORA VALUES";
Debug.ShouldStop(2);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO IMPRESORA VALUES (?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {RemoteObject.createImmutable((0))})))));
 };
 BA.debugLineNum = 900;BA.debugLine="c = skmt.ExecQuery(\"SELECT HABILITADO FROM GPS\")";
Debug.ShouldStop(8);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT HABILITADO FROM GPS"))));
 BA.debugLineNum = 901;BA.debugLine="If c.RowCount = 0 Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 902;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO GPS VALUES (?)\",";
Debug.ShouldStop(32);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO GPS VALUES (?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {RemoteObject.createImmutable((0))})))));
 };
 BA.debugLineNum = 904;BA.debugLine="If user.Text.Trim = \"KMTS1\" Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_user" /*RemoteObject*/ ).runMethod(true,"getText").runMethod(true,"trim"),BA.ObjectToString("KMTS1"))) { 
 BA.debugLineNum = 905;BA.debugLine="p_importarBDWA.Visible = True";
Debug.ShouldStop(256);
__ref.getField(false,"_p_importarbdwa" /*RemoteObject*/ ).runMethod(true,"setVisible",b4xmainpage.__c.getField(true,"True"));
 }else {
 BA.debugLineNum = 907;BA.debugLine="p_importarBDWA.Visible = False";
Debug.ShouldStop(1024);
__ref.getField(false,"_p_importarbdwa" /*RemoteObject*/ ).runMethod(true,"setVisible",b4xmainpage.__c.getField(true,"False"));
 };
 BA.debugLineNum = 909;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _initialize(RemoteObject __ref,RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("Initialize (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,102);
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "b4xmainpage","initialize", __ref, _ba);}
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
Debug.locals.put("ba", _ba);
 BA.debugLineNum = 102;BA.debugLine="Public Sub Initialize";
Debug.ShouldStop(32);
 BA.debugLineNum = 104;BA.debugLine="End Sub";
Debug.ShouldStop(128);
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 (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,562);
if (RapidSub.canDelegate("jobdone")) { return __ref.runUserSub(false, "b4xmainpage","jobdone", __ref, _job);}
RemoteObject _result = RemoteObject.declareNull("gunav2.keymon.com.mx.dbrequestmanager._dbresult");
RemoteObject _records = null;
RemoteObject _cat_ve_version = RemoteObject.createImmutable("");
RemoteObject _k = RemoteObject.createImmutable("");
RemoteObject _id_almacen = RemoteObject.createImmutable("");
RemoteObject _result1 = RemoteObject.declareNull("gunav2.keymon.com.mx.dbrequestmanager._dbresult");
RemoteObject _cuantosencuesta = RemoteObject.createImmutable("");
RemoteObject _sdate = RemoteObject.createImmutable("");
RemoteObject _stime = RemoteObject.createImmutable("");
RemoteObject _fecha_hoy = RemoteObject.createImmutable("");
RemoteObject _name = RemoteObject.createImmutable("");
RemoteObject _imei_base = RemoteObject.createImmutable("");
RemoteObject _version = RemoteObject.createImmutable("");
RemoteObject _versionador = RemoteObject.createImmutable("");
RemoteObject _actualizaraplicacion = RemoteObject.createImmutable("");
RemoteObject _cuenta = RemoteObject.createImmutable("");
RemoteObject _c2 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _rutades = RemoteObject.createImmutable("");
RemoteObject _almacendes = RemoteObject.createImmutable("");
RemoteObject _cat_ep_id = RemoteObject.createImmutable("");
RemoteObject _cat_ep_idtipopregunta = RemoteObject.createImmutable("");
RemoteObject _cat_ce_descripcion = RemoteObject.createImmutable("");
RemoteObject _cat_ep_pregunta = RemoteObject.createImmutable("");
RemoteObject _cat_ep_res1_pred = RemoteObject.createImmutable("");
RemoteObject _cat_ep_res2_pred = RemoteObject.createImmutable("");
RemoteObject _cat_ep_res3_pred = RemoteObject.createImmutable("");
RemoteObject _cat_ep_orden_pregunta = RemoteObject.createImmutable("");
Debug.locals.put("Job", _job);
 BA.debugLineNum = 562;BA.debugLine="Sub JobDone(Job As HttpJob)";
Debug.ShouldStop(131072);
 BA.debugLineNum = 563;BA.debugLine="Log(\"JOBDONE MAINPAGE\")";
Debug.ShouldStop(262144);
b4xmainpage.__c.runVoidMethod ("LogImpl","01572865",RemoteObject.createImmutable("JOBDONE MAINPAGE"),0);
 BA.debugLineNum = 564;BA.debugLine="Log(Job.Success)";
Debug.ShouldStop(524288);
b4xmainpage.__c.runVoidMethod ("LogImpl","01572866",BA.ObjectToString(_job.getField(true,"_success" /*RemoteObject*/ )),0);
 BA.debugLineNum = 565;BA.debugLine="If Job.Success = False Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_success" /*RemoteObject*/ ),b4xmainpage.__c.getField(true,"False"))) { 
 BA.debugLineNum = 566;BA.debugLine="LogColor(\"Error: \" & Job.tag & \" : \" & Subs.pars";
Debug.ShouldStop(2097152);
b4xmainpage.__c.runVoidMethod ("LogImpl","01572868",RemoteObject.concat(RemoteObject.createImmutable("Error: "),_job.getField(false,"_tag" /*RemoteObject*/ ),RemoteObject.createImmutable(" : "),b4xmainpage._subs.runMethod(true,"_parsehttperror" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_job.getField(true,"_errormessage" /*RemoteObject*/ )))),b4xmainpage.__c.getField(false,"Colors").getField(true,"Red"));
 }else {
 BA.debugLineNum = 569;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
Debug.ShouldStop(16777216);
b4xmainpage.__c.runVoidMethod ("LogImpl","01572871",RemoteObject.concat(RemoteObject.createImmutable("JobDone: '"),__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job)).getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable("' - Registros: "),__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job)).getField(false,"Rows" /*RemoteObject*/ ).runMethod(true,"getSize")),b4xmainpage.__c.getField(false,"Colors").getField(true,"Green"));
 BA.debugLineNum = 570;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 571;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(67108864);
_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 = 572;BA.debugLine="If result.Tag = \"version\" Then 'query tag";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("version")))) { 
 BA.debugLineNum = 573;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(268435456);
{
final RemoteObject group10 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen10 = group10.runMethod(true,"getSize").<Integer>get()
;int index10 = 0;
;
for (; index10 < groupLen10;index10++){
_records = (group10.runMethod(false,"Get",index10));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 574;BA.debugLine="skmt.ExecNonQuery(\"delete from VERSION\")";
Debug.ShouldStop(536870912);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from VERSION")));
 BA.debugLineNum = 575;BA.debugLine="Dim CAT_VE_VERSION As String = records(result";
Debug.ShouldStop(1073741824);
_cat_ve_version = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_VE_VERSION")))))));Debug.locals.put("CAT_VE_VERSION", _cat_ve_version);Debug.locals.put("CAT_VE_VERSION", _cat_ve_version);
 BA.debugLineNum = 576;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO VERSION(NOVER";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO VERSION(NOVERSION) VALUES (?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(_cat_ve_version)})))));
 }
}Debug.locals.put("records", _records);
;
 };
 BA.debugLineNum = 580;BA.debugLine="If result.Tag = \"select_fechat\" Then 'query tag";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("select_fechat")))) { 
 BA.debugLineNum = 581;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(16);
{
final RemoteObject group17 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen17 = group17.runMethod(true,"getSize").<Integer>get()
;int index17 = 0;
;
for (; index17 < groupLen17;index17++){
_records = (group17.runMethod(false,"Get",index17));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 582;BA.debugLine="For Each k As String In result.Columns.Keys";
Debug.ShouldStop(32);
{
final RemoteObject group18 = _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Keys");
final int groupLen18 = group18.runMethod(true,"getSize").<Integer>get()
;int index18 = 0;
;
for (; index18 < groupLen18;index18++){
_k = BA.ObjectToString(group18.runMethod(false,"Get",index18));Debug.locals.put("k", _k);
Debug.locals.put("k", _k);
 BA.debugLineNum = 583;BA.debugLine="Log(\"select_fechat: \" & k & \": \" & records(r";
Debug.ShouldStop(64);
b4xmainpage.__c.runVoidMethod ("LogImpl","01572885",RemoteObject.concat(RemoteObject.createImmutable("select_fechat: "),_k,RemoteObject.createImmutable(": "),_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((_k)))))),0);
 }
}Debug.locals.put("k", _k);
;
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 589;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 590;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(8192);
_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 = 591;BA.debugLine="If result.Tag = \"agencia\" Then 'query tag";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("agencia")))) { 
 BA.debugLineNum = 592;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(32768);
{
final RemoteObject group27 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen27 = group27.runMethod(true,"getSize").<Integer>get()
;int index27 = 0;
;
for (; index27 < groupLen27;index27++){
_records = (group27.runMethod(false,"Get",index27));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 593;BA.debugLine="Dim ID_ALMACEN As String = records(result.Col";
Debug.ShouldStop(65536);
_id_almacen = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("ID_ALMACEN")))))));Debug.locals.put("ID_ALMACEN", _id_almacen);Debug.locals.put("ID_ALMACEN", _id_almacen);
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 598;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 599;BA.debugLine="Dim result1 As DBResult = B4XPages.MainPage.req";
Debug.ShouldStop(4194304);
_result1 = b4xmainpage._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result1", _result1);Debug.locals.put("result1", _result1);
 BA.debugLineNum = 600;BA.debugLine="If result1.Tag = \"CHECAENCUESTA\" Then 'query ta";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",_result1.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("CHECAENCUESTA")))) { 
 BA.debugLineNum = 601;BA.debugLine="For Each records() As Object In result1.Rows";
Debug.ShouldStop(16777216);
{
final RemoteObject group35 = _result1.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen35 = group35.runMethod(true,"getSize").<Integer>get()
;int index35 = 0;
;
for (; index35 < groupLen35;index35++){
_records = (group35.runMethod(false,"Get",index35));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 602;BA.debugLine="Dim CUANTOSENCUESTA As String = records(resul";
Debug.ShouldStop(33554432);
_cuantosencuesta = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result1.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CUANTOS")))))));Debug.locals.put("CUANTOSENCUESTA", _cuantosencuesta);Debug.locals.put("CUANTOSENCUESTA", _cuantosencuesta);
 BA.debugLineNum = 603;BA.debugLine="Log(CUANTOSENCUESTA)";
Debug.ShouldStop(67108864);
b4xmainpage.__c.runVoidMethod ("LogImpl","01572905",_cuantosencuesta,0);
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 605;BA.debugLine="Dim sDate,sTime As String";
Debug.ShouldStop(268435456);
_sdate = RemoteObject.createImmutable("");Debug.locals.put("sDate", _sdate);
_stime = RemoteObject.createImmutable("");Debug.locals.put("sTime", _stime);
 BA.debugLineNum = 606;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(536870912);
b4xmainpage.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 607;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(1073741824);
_sdate = b4xmainpage.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(b4xmainpage.__c.getField(false,"DateTime").runMethod(true,"getNow")));Debug.locals.put("sDate", _sdate);
 BA.debugLineNum = 608;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(-2147483648);
_stime = b4xmainpage.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(b4xmainpage.__c.getField(false,"DateTime").runMethod(true,"getNow")));Debug.locals.put("sTime", _stime);
 BA.debugLineNum = 609;BA.debugLine="If CUANTOSENCUESTA = \"0\" Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("=",_cuantosencuesta,BA.ObjectToString("0"))) { 
 BA.debugLineNum = 610;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(2);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 611;BA.debugLine="cmd.Name =\"insert_drop_GV2_4\"";
Debug.ShouldStop(4);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_drop_GV2_4"));
 BA.debugLineNum = 612;BA.debugLine="cmd.Parameters = Array As Object(usuario,Subs";
Debug.ShouldStop(8);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {13},new Object[] {(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(b4xmainpage._subs.runMethod(true,"_traeruta" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(_sdate),RemoteObject.createImmutable(("")),(_stime),RemoteObject.createImmutable(("")),RemoteObject.createImmutable(("")),RemoteObject.createImmutable(("")),RemoteObject.createImmutable(("")),RemoteObject.createImmutable(("ENCUESTA")),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(b4xmainpage.__c.getField(false,"Application").runMethod(true,"getVersionName")),(b4xmainpage._starter._encuesta /*RemoteObject*/ )}));
 BA.debugLineNum = 613;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(c";
Debug.ShouldStop(16);
b4xmainpage._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("inst_drop"))));
 };
 };
 };
 BA.debugLineNum = 618;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 619;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(1024);
_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 = 620;BA.debugLine="If result.Tag = \"fecha\" Then 'query tag";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("fecha")))) { 
 BA.debugLineNum = 621;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(4096);
{
final RemoteObject group54 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen54 = group54.runMethod(true,"getSize").<Integer>get()
;int index54 = 0;
;
for (; index54 < groupLen54;index54++){
_records = (group54.runMethod(false,"Get",index54));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 622;BA.debugLine="Dim FECHA_HOY As String = records(result.Colu";
Debug.ShouldStop(8192);
_fecha_hoy = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("FECHA")))))));Debug.locals.put("FECHA_HOY", _fecha_hoy);Debug.locals.put("FECHA_HOY", _fecha_hoy);
 BA.debugLineNum = 623;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES";
Debug.ShouldStop(16384);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.createImmutable("FECHA"))})))));
 BA.debugLineNum = 624;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES";
Debug.ShouldStop(32768);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("FECHA")),(_fecha_hoy)})))));
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 629;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 630;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(2097152);
_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 = 631;BA.debugLine="If result.Tag = \"usuario\" Then 'query tag";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("usuario")))) { 
 BA.debugLineNum = 632;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(8388608);
{
final RemoteObject group64 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen64 = group64.runMethod(true,"getSize").<Integer>get()
;int index64 = 0;
;
for (; index64 < groupLen64;index64++){
_records = (group64.runMethod(false,"Get",index64));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 633;BA.debugLine="Dim name As String = records(result.Columns.G";
Debug.ShouldStop(16777216);
_name = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("USUARIO")))))));Debug.locals.put("name", _name);Debug.locals.put("name", _name);
 BA.debugLineNum = 634;BA.debugLine="Dim ID_ALMACEN As String = records(result.Col";
Debug.ShouldStop(33554432);
_id_almacen = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_LO_AGENCIA")))))));Debug.locals.put("ID_ALMACEN", _id_almacen);Debug.locals.put("ID_ALMACEN", _id_almacen);
 BA.debugLineNum = 635;BA.debugLine="Dim IMEI_BASE As String = records(result.Colu";
Debug.ShouldStop(67108864);
_imei_base = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_LO_IDTELEFONO")))))));Debug.locals.put("IMEI_BASE", _imei_base);Debug.locals.put("IMEI_BASE", _imei_base);
 BA.debugLineNum = 636;BA.debugLine="Log(records(result.Columns.Get(\"CAT_LO_IDTELE";
Debug.ShouldStop(134217728);
b4xmainpage.__c.runVoidMethod ("LogImpl","01572938",BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_LO_IDTELEFONO"))))))),0);
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 638;BA.debugLine="paso1 = 1";
Debug.ShouldStop(536870912);
__ref.setField ("_paso1" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 639;BA.debugLine="ToastMessageShow(name, False)";
Debug.ShouldStop(1073741824);
b4xmainpage.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence(_name)),(Object)(b4xmainpage.__c.getField(true,"False")));
 };
 };
 BA.debugLineNum = 643;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 644;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(8);
_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 = 645;BA.debugLine="If result.Tag = \"usuario_10\" Then 'query tag";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("usuario_10")))) { 
 BA.debugLineNum = 646;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(32);
{
final RemoteObject group77 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen77 = group77.runMethod(true,"getSize").<Integer>get()
;int index77 = 0;
;
for (; index77 < groupLen77;index77++){
_records = (group77.runMethod(false,"Get",index77));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 647;BA.debugLine="Dim name As String = records(result.Columns.G";
Debug.ShouldStop(64);
_name = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("USUARIO")))))));Debug.locals.put("name", _name);Debug.locals.put("name", _name);
 BA.debugLineNum = 648;BA.debugLine="Dim ID_ALMACEN As String = records(result.Col";
Debug.ShouldStop(128);
_id_almacen = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_LO_AGENCIA")))))));Debug.locals.put("ID_ALMACEN", _id_almacen);Debug.locals.put("ID_ALMACEN", _id_almacen);
 BA.debugLineNum = 649;BA.debugLine="Dim IMEI_BASE As String = records(result.Colu";
Debug.ShouldStop(256);
_imei_base = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_LO_IDTELEFONO")))))));Debug.locals.put("IMEI_BASE", _imei_base);Debug.locals.put("IMEI_BASE", _imei_base);
 BA.debugLineNum = 650;BA.debugLine="Private version As String =  records(result.C";
Debug.ShouldStop(512);
_version = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_AL_VERSION")))))));Debug.locals.put("version", _version);Debug.locals.put("version", _version);
 BA.debugLineNum = 651;BA.debugLine="Private versionador As String =  records(resu";
Debug.ShouldStop(1024);
_versionador = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_AL_VERSIONADOR")))))));Debug.locals.put("versionador", _versionador);Debug.locals.put("versionador", _versionador);
 BA.debugLineNum = 652;BA.debugLine="Private actualizarAplicacion As String =  rec";
Debug.ShouldStop(2048);
_actualizaraplicacion = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_AL_ACTUALIZACION")))))));Debug.locals.put("actualizarAplicacion", _actualizaraplicacion);Debug.locals.put("actualizarAplicacion", _actualizaraplicacion);
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 654;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES";
Debug.ShouldStop(8192);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.createImmutable("VERSION_NUEVA"))})))));
 BA.debugLineNum = 655;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES(";
Debug.ShouldStop(16384);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("VERSION_NUEVA")),(_version)})))));
 BA.debugLineNum = 656;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES";
Debug.ShouldStop(32768);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.createImmutable("FORZAR_ACTUALIZACION"))})))));
 BA.debugLineNum = 657;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES(";
Debug.ShouldStop(65536);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("FORZAR_ACTUALIZACION")),(_actualizaraplicacion)})))));
 BA.debugLineNum = 660;BA.debugLine="Log(\"|\"&name&\"|\")";
Debug.ShouldStop(524288);
b4xmainpage.__c.runVoidMethod ("LogImpl","01572962",RemoteObject.concat(RemoteObject.createImmutable("|"),_name,RemoteObject.createImmutable("|")),0);
 BA.debugLineNum = 661;BA.debugLine="Log($\">>>>  GUARDAMOS NUEVA VERSION: ${version";
Debug.ShouldStop(1048576);
b4xmainpage.__c.runVoidMethod ("LogImpl","01572963",(RemoteObject.concat(RemoteObject.createImmutable(">>>>  GUARDAMOS NUEVA VERSION: "),b4xmainpage.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_version))),RemoteObject.createImmutable(", "),b4xmainpage.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_actualizaraplicacion))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 662;BA.debugLine="paso1 = 1";
Debug.ShouldStop(2097152);
__ref.setField ("_paso1" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 663;BA.debugLine="IMEI_BASE = \"\"";
Debug.ShouldStop(4194304);
_imei_base = BA.ObjectToString("");Debug.locals.put("IMEI_BASE", _imei_base);
 BA.debugLineNum = 664;BA.debugLine="IMEI = \"\"";
Debug.ShouldStop(8388608);
__ref.setField ("_imei" /*RemoteObject*/ ,BA.ObjectToString(""));
 };
 BA.debugLineNum = 667;BA.debugLine="If result.Tag = \"traeVersion\" Then 'query tag";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("traeVersion")))) { 
 BA.debugLineNum = 668;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(134217728);
{
final RemoteObject group96 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen96 = group96.runMethod(true,"getSize").<Integer>get()
;int index96 = 0;
;
for (; index96 < groupLen96;index96++){
_records = (group96.runMethod(false,"Get",index96));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 669;BA.debugLine="Private version As String =  records(result.C";
Debug.ShouldStop(268435456);
_version = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_AL_VERSION")))))));Debug.locals.put("version", _version);Debug.locals.put("version", _version);
 BA.debugLineNum = 670;BA.debugLine="Private actualizarAplicacion As String =  rec";
Debug.ShouldStop(536870912);
_actualizaraplicacion = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_AL_ACTUALIZACION")))))));Debug.locals.put("actualizarAplicacion", _actualizaraplicacion);Debug.locals.put("actualizarAplicacion", _actualizaraplicacion);
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 672;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.createImmutable("VERSION_NUEVA"))})))));
 BA.debugLineNum = 673;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES(";
Debug.ShouldStop(1);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("VERSION_NUEVA")),(_version)})))));
 BA.debugLineNum = 674;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES";
Debug.ShouldStop(2);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.createImmutable("FORZAR_ACTUALIZACION"))})))));
 BA.debugLineNum = 675;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES(";
Debug.ShouldStop(4);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("FORZAR_ACTUALIZACION")),(_actualizaraplicacion)})))));
 BA.debugLineNum = 676;BA.debugLine="Log($\">>>>  GUARDAMOS NUEVA VERSION: ${version";
Debug.ShouldStop(8);
b4xmainpage.__c.runVoidMethod ("LogImpl","01572978",(RemoteObject.concat(RemoteObject.createImmutable(">>>>  GUARDAMOS NUEVA VERSION: "),b4xmainpage.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_version))),RemoteObject.createImmutable(", "),b4xmainpage.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_actualizaraplicacion))),RemoteObject.createImmutable(""))),0);
 };
 };
 BA.debugLineNum = 680;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 681;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(256);
_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 = 682;BA.debugLine="If result.Tag = \"geopass\" Then 'query tag";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("geopass")))) { 
 BA.debugLineNum = 683;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(1024);
{
final RemoteObject group110 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen110 = group110.runMethod(true,"getSize").<Integer>get()
;int index110 = 0;
;
for (; index110 < groupLen110;index110++){
_records = (group110.runMethod(false,"Get",index110));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 684;BA.debugLine="Dim cuenta As String = records(result.Columns";
Debug.ShouldStop(2048);
_cuenta = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CUENTA")))))));Debug.locals.put("cuenta", _cuenta);Debug.locals.put("cuenta", _cuenta);
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 686;BA.debugLine="If cuenta = \"1\" Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("=",_cuenta,BA.ObjectToString("1"))) { 
 BA.debugLineNum = 687;BA.debugLine="p_validacion.Visible = False";
Debug.ShouldStop(16384);
__ref.getField(false,"_p_validacion" /*RemoteObject*/ ).runMethod(true,"setVisible",b4xmainpage.__c.getField(true,"False"));
 BA.debugLineNum = 688;BA.debugLine="B4XSwitch2.Value = True";
Debug.ShouldStop(32768);
__ref.getField(false,"_b4xswitch2" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.b4xswitch.class, "_setvalue" /*RemoteObject*/ ,b4xmainpage.__c.getField(true,"True"));
 BA.debugLineNum = 689;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE GPS SET HABILITADO";
Debug.ShouldStop(65536);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE GPS SET HABILITADO = (?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {RemoteObject.createImmutable((1))})))));
 BA.debugLineNum = 690;BA.debugLine="et_codigo.Text = \"\"";
Debug.ShouldStop(131072);
__ref.getField(false,"_et_codigo" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 691;BA.debugLine="Private c2 As Cursor = skmt.ExecQuery(\"select";
Debug.ShouldStop(262144);
_c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), __ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select distinct CAT_CL_RUTA from kmt_info3 where CAT_CL_RUTA not in (select * from ruta_suplencia)"))));Debug.locals.put("c2", _c2);Debug.locals.put("c2", _c2);
 BA.debugLineNum = 692;BA.debugLine="c2.Position = 0";
Debug.ShouldStop(524288);
_c2.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 693;BA.debugLine="Private rutades As String = c2.GetString(\"CAT";
Debug.ShouldStop(1048576);
_rutades = _c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_RUTA")));Debug.locals.put("rutades", _rutades);Debug.locals.put("rutades", _rutades);
 BA.debugLineNum = 694;BA.debugLine="c2.Close";
Debug.ShouldStop(2097152);
_c2.runVoidMethod ("Close");
 BA.debugLineNum = 695;BA.debugLine="Private c2 As Cursor = skmt.ExecQuery(\"SELECT";
Debug.ShouldStop(4194304);
_c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), __ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT ID_ALMACEN FROM CAT_ALMACEN"))));Debug.locals.put("c2", _c2);Debug.locals.put("c2", _c2);
 BA.debugLineNum = 696;BA.debugLine="c2.Position = 0";
Debug.ShouldStop(8388608);
_c2.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 697;BA.debugLine="Private almacendes As String = c2.GetString(\"";
Debug.ShouldStop(16777216);
_almacendes = _c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("ID_ALMACEN")));Debug.locals.put("almacendes", _almacendes);Debug.locals.put("almacendes", _almacendes);
 BA.debugLineNum = 698;BA.debugLine="c2.Close";
Debug.ShouldStop(33554432);
_c2.runVoidMethod ("Close");
 BA.debugLineNum = 699;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(67108864);
b4xmainpage._cmd = RemoteObject.createNew ("gunav2.keymon.com.mx.dbrequestmanager._dbcommand");__ref.setField("_cmd",b4xmainpage._cmd);
 BA.debugLineNum = 700;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(134217728);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 701;BA.debugLine="cmd.Name = \"delete_geoPass_GUNA\"";
Debug.ShouldStop(268435456);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("delete_geoPass_GUNA"));
 BA.debugLineNum = 703;BA.debugLine="cmd.Parameters = Array As Object( almacendes,";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(_almacendes),(_rutades)}));
 BA.debugLineNum = 704;BA.debugLine="reqManager.ExecuteCommand(cmd , \"traeGeoPass\"";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("traeGeoPass"))));
 }else 
{ BA.debugLineNum = 705;BA.debugLine="Else If cuenta = \"0\" Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("=",_cuenta,BA.ObjectToString("0"))) { 
 BA.debugLineNum = 706;BA.debugLine="MsgboxAsync(\"Codigo incorrecto\",\"Atención\")";
Debug.ShouldStop(2);
b4xmainpage.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Codigo incorrecto")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 707;BA.debugLine="p_validacion.Visible = False";
Debug.ShouldStop(4);
__ref.getField(false,"_p_validacion" /*RemoteObject*/ ).runMethod(true,"setVisible",b4xmainpage.__c.getField(true,"False"));
 BA.debugLineNum = 708;BA.debugLine="B4XSwitch2.Value = False";
Debug.ShouldStop(8);
__ref.getField(false,"_b4xswitch2" /*RemoteObject*/ ).runClassMethod (gunav2.keymon.com.mx.b4xswitch.class, "_setvalue" /*RemoteObject*/ ,b4xmainpage.__c.getField(true,"False"));
 BA.debugLineNum = 709;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE GPS SET HABILITADO";
Debug.ShouldStop(16);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE GPS SET HABILITADO = (?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {RemoteObject.createImmutable((0))})))));
 BA.debugLineNum = 710;BA.debugLine="et_codigo.Text = \"\"";
Debug.ShouldStop(32);
__ref.getField(false,"_et_codigo" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 }}
;
 };
 };
 BA.debugLineNum = 715;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 716;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(2048);
_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 = 717;BA.debugLine="If result.Tag = \"carga_encuesta\" Then 'query ta";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("carga_encuesta")))) { 
 BA.debugLineNum = 718;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(8192);
{
final RemoteObject group143 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen143 = group143.runMethod(true,"getSize").<Integer>get()
;int index143 = 0;
;
for (; index143 < groupLen143;index143++){
_records = (group143.runMethod(false,"Get",index143));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 719;BA.debugLine="Dim CAT_EP_ID As String = records(result.COLU";
Debug.ShouldStop(16384);
_cat_ep_id = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_EP_ID")))))));Debug.locals.put("CAT_EP_ID", _cat_ep_id);Debug.locals.put("CAT_EP_ID", _cat_ep_id);
 BA.debugLineNum = 720;BA.debugLine="Dim CAT_EP_IDTIPOPREGUNTA As String = records";
Debug.ShouldStop(32768);
_cat_ep_idtipopregunta = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_EP_IDTIPOPREGUNTA")))))));Debug.locals.put("CAT_EP_IDTIPOPREGUNTA", _cat_ep_idtipopregunta);Debug.locals.put("CAT_EP_IDTIPOPREGUNTA", _cat_ep_idtipopregunta);
 BA.debugLineNum = 721;BA.debugLine="Dim CAT_CE_DESCRIPCION As String = records(re";
Debug.ShouldStop(65536);
_cat_ce_descripcion = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CE_DESCRIPCION")))))));Debug.locals.put("CAT_CE_DESCRIPCION", _cat_ce_descripcion);Debug.locals.put("CAT_CE_DESCRIPCION", _cat_ce_descripcion);
 BA.debugLineNum = 722;BA.debugLine="Dim CAT_EP_PREGUNTA As String = records(resul";
Debug.ShouldStop(131072);
_cat_ep_pregunta = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_EP_PREGUNTA")))))));Debug.locals.put("CAT_EP_PREGUNTA", _cat_ep_pregunta);Debug.locals.put("CAT_EP_PREGUNTA", _cat_ep_pregunta);
 BA.debugLineNum = 723;BA.debugLine="Dim CAT_EP_RES1_PRED As String = records(resu";
Debug.ShouldStop(262144);
_cat_ep_res1_pred = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_EP_RES1_PRED")))))));Debug.locals.put("CAT_EP_RES1_PRED", _cat_ep_res1_pred);Debug.locals.put("CAT_EP_RES1_PRED", _cat_ep_res1_pred);
 BA.debugLineNum = 724;BA.debugLine="Dim CAT_EP_RES2_PRED As String = records(resu";
Debug.ShouldStop(524288);
_cat_ep_res2_pred = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_EP_RES2_PRED")))))));Debug.locals.put("CAT_EP_RES2_PRED", _cat_ep_res2_pred);Debug.locals.put("CAT_EP_RES2_PRED", _cat_ep_res2_pred);
 BA.debugLineNum = 725;BA.debugLine="Dim CAT_EP_RES3_PRED As String = records(resu";
Debug.ShouldStop(1048576);
_cat_ep_res3_pred = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_EP_RES3_PRED")))))));Debug.locals.put("CAT_EP_RES3_PRED", _cat_ep_res3_pred);Debug.locals.put("CAT_EP_RES3_PRED", _cat_ep_res3_pred);
 BA.debugLineNum = 726;BA.debugLine="Dim CAT_EP_ORDEN_PREGUNTA As String = records";
Debug.ShouldStop(2097152);
_cat_ep_orden_pregunta = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_EP_ORDEN_PREGUNTA")))))));Debug.locals.put("CAT_EP_ORDEN_PREGUNTA", _cat_ep_orden_pregunta);Debug.locals.put("CAT_EP_ORDEN_PREGUNTA", _cat_ep_orden_pregunta);
 BA.debugLineNum = 727;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_ENCUESTA_";
Debug.ShouldStop(4194304);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_ENCUESTA_PREGUNTA (CAT_EP_ID ,CAT_EP_IDTIPOPREGUNTA ,CAT_CE_DESCRIPCION ,CAT_EP_PREGUNTA ,CAT_EP_RES1_PRED ,CAT_EP_RES2_PRED ,CAT_EP_RES3_PRED ,CAT_EP_ORDEN_PREGUNTA ) VALUES (?,?,?,?,?,?,?,?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {8},new Object[] {(_cat_ep_id),(_cat_ep_idtipopregunta),(_cat_ce_descripcion),(_cat_ep_pregunta),(_cat_ep_res1_pred),(_cat_ep_res2_pred),(_cat_ep_res3_pred),(_cat_ep_orden_pregunta)})))));
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 731;BA.debugLine="Job.Release";
Debug.ShouldStop(67108864);
_job.runClassMethod (gunav2.keymon.com.mx.httpjob.class, "_release" /*RemoteObject*/ );
 };
 BA.debugLineNum = 734;BA.debugLine="Log($\"Paso1 = ${paso1} - Name: ${name} - IMEI: ${";
Debug.ShouldStop(536870912);
b4xmainpage.__c.runVoidMethod ("LogImpl","01573036",(RemoteObject.concat(RemoteObject.createImmutable("Paso1 = "),b4xmainpage.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_paso1" /*RemoteObject*/ )))),RemoteObject.createImmutable(" - Name: "),b4xmainpage.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_name))),RemoteObject.createImmutable(" - IMEI: "),b4xmainpage.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_imei" /*RemoteObject*/ )))),RemoteObject.createImmutable(" - IMEI_BASE: "),b4xmainpage.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_imei_base))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 735;BA.debugLine="If paso1 = 1 Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_paso1" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 736;BA.debugLine="If IMEI = \"\" Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_imei" /*RemoteObject*/ ),BA.ObjectToString(""))) { 
 BA.debugLineNum = 737;BA.debugLine="If user.Text = \"KMTS1\" Then name = \"OKActivo\"";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_user" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("KMTS1"))) { 
_name = BA.ObjectToString("OKActivo");Debug.locals.put("name", _name);};
 BA.debugLineNum = 738;BA.debugLine="If name = \"OKActivo\"  Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("=",_name,BA.ObjectToString("OKActivo"))) { 
 BA.debugLineNum = 739;BA.debugLine="skmt.ExecNonQuery(\"delete from usuarioa\")";
Debug.ShouldStop(4);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from usuarioa")));
 BA.debugLineNum = 740;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO USUARIOA VALUE";
Debug.ShouldStop(8);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO USUARIOA VALUES (?,?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(false,"_user" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_pass" /*RemoteObject*/ ).runMethod(true,"getText"))})))));
 BA.debugLineNum = 741;BA.debugLine="skmt.ExecNonQuery(\"delete from cat_almacen\")";
Debug.ShouldStop(16);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from cat_almacen")));
 BA.debugLineNum = 742;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_ALMACEN(ID";
Debug.ShouldStop(32);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(_id_almacen)})))));
 BA.debugLineNum = 743;BA.debugLine="usuario = user.Text";
Debug.ShouldStop(64);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_user" /*RemoteObject*/ ).runMethod(true,"getText"));
 BA.debugLineNum = 744;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
Debug.ShouldStop(128);
b4xmainpage._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Principal")));
 }else 
{ BA.debugLineNum = 745;BA.debugLine="Else If name  = \"OKExpirado\" Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",_name,BA.ObjectToString("OKExpirado"))) { 
 BA.debugLineNum = 746;BA.debugLine="Msgbox(\"Usuario Expirado llamar al administrad";
Debug.ShouldStop(512);
b4xmainpage.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("Usuario Expirado llamar al administrador")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable(""))),__ref.getField(false, "ba"));
 }else 
{ BA.debugLineNum = 747;BA.debugLine="Else If name = \"OKCancelado\" Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",_name,BA.ObjectToString("OKCancelado"))) { 
 BA.debugLineNum = 748;BA.debugLine="Msgbox(\"Usuario Cancelado llamar al administra";
Debug.ShouldStop(2048);
b4xmainpage.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("Usuario Cancelado llamar al administrador")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable(""))),__ref.getField(false, "ba"));
 }else {
 BA.debugLineNum = 750;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'Ig";
Debug.ShouldStop(8192);
b4xmainpage.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("Usuario o password No validos")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable(""))),__ref.getField(false, "ba"));
 }}}
;
 BA.debugLineNum = 752;BA.debugLine="paso1 = 0";
Debug.ShouldStop(32768);
__ref.setField ("_paso1" /*RemoteObject*/ ,BA.NumberToString(0));
 }else {
 BA.debugLineNum = 754;BA.debugLine="If name = \"OKActivo\" & IMEI And  IMEI = IMEI_BA";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",_name,RemoteObject.concat(RemoteObject.createImmutable("OKActivo"),__ref.getField(true,"_imei" /*RemoteObject*/ ))) && RemoteObject.solveBoolean("=",__ref.getField(true,"_imei" /*RemoteObject*/ ),_imei_base)) { 
 BA.debugLineNum = 755;BA.debugLine="If name = \"OKActivo\" & IMEI Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("=",_name,RemoteObject.concat(RemoteObject.createImmutable("OKActivo"),__ref.getField(true,"_imei" /*RemoteObject*/ )))) { 
 BA.debugLineNum = 756;BA.debugLine="skmt.ExecNonQuery(\"delete from usuarioa\")";
Debug.ShouldStop(524288);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from usuarioa")));
 BA.debugLineNum = 757;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO USUARIOA VALU";
Debug.ShouldStop(1048576);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO USUARIOA VALUES (?,?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(false,"_user" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_pass" /*RemoteObject*/ ).runMethod(true,"getText"))})))));
 BA.debugLineNum = 758;BA.debugLine="skmt.ExecNonQuery(\"delete from cat_almacen\")";
Debug.ShouldStop(2097152);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from cat_almacen")));
 BA.debugLineNum = 759;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_ALMACEN(I";
Debug.ShouldStop(4194304);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(_id_almacen)})))));
 BA.debugLineNum = 760;BA.debugLine="usuario = user.Text";
Debug.ShouldStop(8388608);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_user" /*RemoteObject*/ ).runMethod(true,"getText"));
 BA.debugLineNum = 761;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
Debug.ShouldStop(16777216);
b4xmainpage._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Principal")));
 }else 
{ BA.debugLineNum = 762;BA.debugLine="Else If name  = \"OKExpirado\"& IMEI Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",_name,RemoteObject.concat(RemoteObject.createImmutable("OKExpirado"),__ref.getField(true,"_imei" /*RemoteObject*/ )))) { 
 BA.debugLineNum = 763;BA.debugLine="Msgbox(\"Usuario Expirado llamar al administra";
Debug.ShouldStop(67108864);
b4xmainpage.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("Usuario Expirado llamar al administrador")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable(""))),__ref.getField(false, "ba"));
 }else 
{ BA.debugLineNum = 764;BA.debugLine="Else If name = \"OKCancelado\"& IMEI Then";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean("=",_name,RemoteObject.concat(RemoteObject.createImmutable("OKCancelado"),__ref.getField(true,"_imei" /*RemoteObject*/ )))) { 
 BA.debugLineNum = 765;BA.debugLine="Msgbox(\"Usuario Cancelado llamar al administr";
Debug.ShouldStop(268435456);
b4xmainpage.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("Usuario Cancelado llamar al administrador")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable(""))),__ref.getField(false, "ba"));
 }else {
 BA.debugLineNum = 767;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'i";
Debug.ShouldStop(1073741824);
b4xmainpage.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("Usuario o password No validos")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable(""))),__ref.getField(false, "ba"));
 }}}
;
 BA.debugLineNum = 769;BA.debugLine="paso1 = 0";
Debug.ShouldStop(1);
__ref.setField ("_paso1" /*RemoteObject*/ ,BA.NumberToString(0));
 }else 
{ BA.debugLineNum = 770;BA.debugLine="Else IF  name = \"OKActivo\" Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("=",_name,BA.ObjectToString("OKActivo"))) { 
 BA.debugLineNum = 771;BA.debugLine="Msgbox(\"Telefono no VALIDO!\",\"\") 'ignore";
Debug.ShouldStop(4);
b4xmainpage.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("Telefono no VALIDO!")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable(""))),__ref.getField(false, "ba"));
 }else {
 BA.debugLineNum = 773;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'ig";
Debug.ShouldStop(16);
b4xmainpage.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("Usuario o password No validos")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable(""))),__ref.getField(false, "ba"));
 }}
;
 };
 };
 BA.debugLineNum = 777;BA.debugLine="End Sub";
Debug.ShouldStop(256);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _lv_server_itemclick(RemoteObject __ref,RemoteObject _position,RemoteObject _value) throws Exception{
try {
		Debug.PushSubsStack("lv_server_ItemClick (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,924);
if (RapidSub.canDelegate("lv_server_itemclick")) { return __ref.runUserSub(false, "b4xmainpage","lv_server_itemclick", __ref, _position, _value);}
Debug.locals.put("Position", _position);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 924;BA.debugLine="Private Sub lv_server_ItemClick (Position As Int,";
Debug.ShouldStop(134217728);
 BA.debugLineNum = 925;BA.debugLine="Starter.server = Value";
Debug.ShouldStop(268435456);
b4xmainpage._starter._server /*RemoteObject*/  = BA.ObjectToString(_value);
 BA.debugLineNum = 926;BA.debugLine="l_server.Text = Value";
Debug.ShouldStop(536870912);
__ref.getField(false,"_l_server" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_value));
 BA.debugLineNum = 927;BA.debugLine="et_server.Text = Value";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_et_server" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(_value));
 BA.debugLineNum = 928;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES whe";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.createImmutable("DBReqServer"))})))));
 BA.debugLineNum = 929;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES(CAT";
Debug.ShouldStop(1);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)")),(Object)(b4xmainpage.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("DBReqServer")),_value})))));
 BA.debugLineNum = 930;BA.debugLine="Starter.reqManager.Initialize(Me, Value)";
Debug.ShouldStop(2);
b4xmainpage._starter._reqmanager /*RemoteObject*/ .runClassMethod (gunav2.keymon.com.mx.dbrequestmanager.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref),(Object)(BA.ObjectToString(_value)));
 BA.debugLineNum = 931;BA.debugLine="ToastMessageShow(\"Servidor modificado\", False)";
Debug.ShouldStop(4);
b4xmainpage.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Servidor modificado")),(Object)(b4xmainpage.__c.getField(true,"False")));
 BA.debugLineNum = 932;BA.debugLine="End Sub";
Debug.ShouldStop(8);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _muestraprogreso(RemoteObject __ref,RemoteObject _mensaje) throws Exception{
try {
		Debug.PushSubsStack("muestraProgreso (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,877);
if (RapidSub.canDelegate("muestraprogreso")) { return __ref.runUserSub(false, "b4xmainpage","muestraprogreso", __ref, _mensaje);}
Debug.locals.put("mensaje", _mensaje);
 BA.debugLineNum = 877;BA.debugLine="Sub muestraProgreso(mensaje As String)";
Debug.ShouldStop(4096);
 BA.debugLineNum = 878;BA.debugLine="ProgressDialogShow(mensaje)";
Debug.ShouldStop(8192);
b4xmainpage.__c.runVoidMethod ("ProgressDialogShow",__ref.getField(false, "ba"),(Object)(BA.ObjectToCharSequence(_mensaje)));
 BA.debugLineNum = 879;BA.debugLine="End Sub";
Debug.ShouldStop(16384);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _ocultaprogreso(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("ocultaProgreso (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,882);
if (RapidSub.canDelegate("ocultaprogreso")) { return __ref.runUserSub(false, "b4xmainpage","ocultaprogreso", __ref);}
 BA.debugLineNum = 882;BA.debugLine="Sub ocultaProgreso";
Debug.ShouldStop(131072);
 BA.debugLineNum = 883;BA.debugLine="ProgressDialogHide";
Debug.ShouldStop(262144);
b4xmainpage.__c.runVoidMethod ("ProgressDialogHide");
 BA.debugLineNum = 884;BA.debugLine="End Sub";
Debug.ShouldStop(524288);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _p_validacion_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("p_validacion_Click (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,987);
if (RapidSub.canDelegate("p_validacion_click")) { return __ref.runUserSub(false, "b4xmainpage","p_validacion_click", __ref);}
 BA.debugLineNum = 987;BA.debugLine="Private Sub p_validacion_Click";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 988;BA.debugLine="End Sub";
Debug.ShouldStop(134217728);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _pdf_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("PDF_Click (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,813);
if (RapidSub.canDelegate("pdf_click")) { return __ref.runUserSub(false, "b4xmainpage","pdf_click", __ref);}
 BA.debugLineNum = 813;BA.debugLine="Sub PDF_Click";
Debug.ShouldStop(4096);
 BA.debugLineNum = 815;BA.debugLine="End Sub";
Debug.ShouldStop(16384);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _popupmenu_dismiss(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("PopupMenu_Dismiss (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,800);
if (RapidSub.canDelegate("popupmenu_dismiss")) { return __ref.runUserSub(false, "b4xmainpage","popupmenu_dismiss", __ref);}
 BA.debugLineNum = 800;BA.debugLine="Sub PopupMenu_Dismiss";
Debug.ShouldStop(-2147483648);
 BA.debugLineNum = 801;BA.debugLine="ToastMessageShow(\"PopupMenu dismissed\", False)";
Debug.ShouldStop(1);
b4xmainpage.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("PopupMenu dismissed")),(Object)(b4xmainpage.__c.getField(true,"False")));
 BA.debugLineNum = 802;BA.debugLine="End Sub";
Debug.ShouldStop(2);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _popupmenu_menuitemclick(RemoteObject __ref,RemoteObject _itemid) throws Exception{
try {
		Debug.PushSubsStack("PopupMenu_MenuItemClick (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,804);
if (RapidSub.canDelegate("popupmenu_menuitemclick")) { return __ref.runUserSub(false, "b4xmainpage","popupmenu_menuitemclick", __ref, _itemid);}
Debug.locals.put("ItemId", _itemid);
 BA.debugLineNum = 804;BA.debugLine="Sub PopupMenu_MenuItemClick (ItemId As Int) As Boo";
Debug.ShouldStop(8);
 BA.debugLineNum = 805;BA.debugLine="ToastMessageShow(\"Item \" & ItemId & \" clicked.\",";
Debug.ShouldStop(16);
b4xmainpage.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Item "),_itemid,RemoteObject.createImmutable(" clicked.")))),(Object)(b4xmainpage.__c.getField(true,"False")));
 BA.debugLineNum = 806;BA.debugLine="Return False";
Debug.ShouldStop(32);
if (true) return b4xmainpage.__c.getField(true,"False");
 BA.debugLineNum = 807;BA.debugLine="End Sub";
Debug.ShouldStop(64);
return RemoteObject.createImmutable(false);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static void  _revisaactualizacion(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("revisaActualizacion (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,1046);
if (RapidSub.canDelegate("revisaactualizacion")) { __ref.runUserSub(false, "b4xmainpage","revisaactualizacion", __ref); return;}
ResumableSub_revisaActualizacion rsub = new ResumableSub_revisaActualizacion(null,__ref);
rsub.resume(null, null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_revisaActualizacion extends BA.ResumableSub {
public ResumableSub_revisaActualizacion(gunav2.keymon.com.mx.b4xmainpage parent,RemoteObject __ref) {
this.parent = parent;
this.__ref = __ref;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
RemoteObject __ref;
gunav2.keymon.com.mx.b4xmainpage parent;
RemoteObject _link = RemoteObject.createImmutable("");
RemoteObject _j = RemoteObject.declareNull("gunav2.keymon.com.mx.httpjob");
RemoteObject _app = null;

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("revisaActualizacion (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,1046);
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;

    while (true) {
try {

        switch (state) {
            case -1:
return;

case 0:
//C
this.state = 1;
Debug.locals.put("_ref", __ref);
 BA.debugLineNum = 1052;BA.debugLine="LogColor(\"Buscarmos archivo Ver\", Colors.red)";
Debug.ShouldStop(134217728);
parent.__c.runVoidMethod ("LogImpl","02949126",BA.ObjectToString("Buscarmos archivo Ver"),parent.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 1053;BA.debugLine="Private link As String = \"https://keymon.net/movi";
Debug.ShouldStop(268435456);
_link = BA.ObjectToString("https://keymon.net/movil/guna/gunaPreventa.ver");Debug.locals.put("link", _link);Debug.locals.put("link", _link);
 BA.debugLineNum = 1054;BA.debugLine="Wait For (traeArchivoVer(Me, link)) JobDone (j As";
Debug.ShouldStop(536870912);
parent.__c.runVoidMethod ("WaitFor","jobdone", __ref.getField(false, "ba"), anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "b4xmainpage", "revisaactualizacion"), (__ref.runClassMethod (gunav2.keymon.com.mx.b4xmainpage.class, "_traearchivover" /*RemoteObject*/ ,(Object)(__ref),(Object)(_link))));
this.state = 28;
return;
case 28:
//C
this.state = 1;
_j = (RemoteObject) result.getArrayElement(false,RemoteObject.createImmutable(1));Debug.locals.put("j", _j);
;
 BA.debugLineNum = 1055;BA.debugLine="If j.Success Then";
Debug.ShouldStop(1073741824);
if (true) break;

case 1:
//if
this.state = 27;
if (_j.getField(true,"_success" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
this.state = 3;
}else {
this.state = 22;
}if (true) break;

case 3:
//C
this.state = 4;
 BA.debugLineNum = 1056;BA.debugLine="LogColor(\"Archivo .VER encontrado.\", Colors.red)";
Debug.ShouldStop(-2147483648);
parent.__c.runVoidMethod ("LogImpl","02949130",BA.ObjectToString("Archivo .VER encontrado."),parent.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 1057;BA.debugLine="Try";
Debug.ShouldStop(1);
if (true) break;

case 4:
//try
this.state = 20;
this.catchState = 15;
this.state = 6;
if (true) break;

case 6:
//C
this.state = 7;
this.catchState = 15;
 BA.debugLineNum = 1058;BA.debugLine="Dim app() As String = Regex.Split(Chr(9),j.GetS";
Debug.ShouldStop(2);
_app = parent.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(parent.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, 9))))),(Object)(_j.runClassMethod (gunav2.keymon.com.mx.httpjob.class, "_getstring" /*RemoteObject*/ )));Debug.locals.put("app", _app);Debug.locals.put("app", _app);
 BA.debugLineNum = 1060;BA.debugLine="Starter.newApp.appLink = app(3)   'Liga a nuevo";
Debug.ShouldStop(8);
parent._starter._newapp /*RemoteObject*/ .setField ("appLink" /*RemoteObject*/ ,_app.getArrayElement(true,BA.numberCast(int.class, 3)));
 BA.debugLineNum = 1061;BA.debugLine="Starter.newApp.newMsg = app(1)  'Texto de que h";
Debug.ShouldStop(16);
parent._starter._newapp /*RemoteObject*/ .setField ("newMsg" /*RemoteObject*/ ,_app.getArrayElement(true,BA.numberCast(int.class, 1)));
 BA.debugLineNum = 1062;BA.debugLine="Starter.newApp.okMsg = app(2)    'Texto de app";
Debug.ShouldStop(32);
parent._starter._newapp /*RemoteObject*/ .setField ("okMsg" /*RemoteObject*/ ,_app.getArrayElement(true,BA.numberCast(int.class, 2)));
 BA.debugLineNum = 1063;BA.debugLine="Starter.newApp.version = app(0)   'Version actu";
Debug.ShouldStop(64);
parent._starter._newapp /*RemoteObject*/ .setField ("version" /*RemoteObject*/ ,_app.getArrayElement(true,BA.numberCast(int.class, 0)));
 BA.debugLineNum = 1064;BA.debugLine="Log($\"Application.VersionName=${Application.Ver";
Debug.ShouldStop(128);
parent.__c.runVoidMethod ("LogImpl","02949138",(RemoteObject.concat(RemoteObject.createImmutable("Application.VersionName="),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((parent.__c.getField(false,"Application").runMethod(true,"getVersionName")))),RemoteObject.createImmutable(", newApp="),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((parent._starter._newapp /*RemoteObject*/ ))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 1066;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\"";
Debug.ShouldStop(512);
parent.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("yyyyMMdd"));
 BA.debugLineNum = 1067;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES w";
Debug.ShouldStop(1024);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?")),(Object)(parent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.createImmutable("REVISION_APK"))})))));
 BA.debugLineNum = 1068;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES(C";
Debug.ShouldStop(2048);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)")),(Object)(parent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("REVISION_APK")),(parent.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(parent.__c.getField(false,"DateTime").runMethod(true,"getNow"))))})))));
 BA.debugLineNum = 1070;BA.debugLine="If Starter.newApp.version = Application.Version";
Debug.ShouldStop(8192);
if (true) break;

case 7:
//if
this.state = 10;
if (RemoteObject.solveBoolean("=",parent._starter._newapp /*RemoteObject*/ .getField(true,"version" /*RemoteObject*/ ),parent.__c.getField(false,"Application").runMethod(true,"getVersionName"))) { 
this.state = 9;
}if (true) break;

case 9:
//C
this.state = 10;
 BA.debugLineNum = 1071;BA.debugLine="Starter.newApp.update = False";
Debug.ShouldStop(16384);
parent._starter._newapp /*RemoteObject*/ .setField ("update" /*RemoteObject*/ ,parent.__c.getField(true,"False"));
 BA.debugLineNum = 1072;BA.debugLine="LogColor(\"No hay nuevo APK\", Colors.red)";
Debug.ShouldStop(32768);
parent.__c.runVoidMethod ("LogImpl","02949146",BA.ObjectToString("No hay nuevo APK"),parent.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 1073;BA.debugLine="B4XPages.MainPage.Entrar.Enabled = True";
Debug.ShouldStop(65536);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_entrar" /*RemoteObject*/ ).runMethod(true,"setEnabled",parent.__c.getField(true,"True"));
 if (true) break;
;
 BA.debugLineNum = 1075;BA.debugLine="If Starter.newApp.version <> Application.Versio";
Debug.ShouldStop(262144);

case 10:
//if
this.state = 13;
if (RemoteObject.solveBoolean("!",parent._starter._newapp /*RemoteObject*/ .getField(true,"version" /*RemoteObject*/ ),parent.__c.getField(false,"Application").runMethod(true,"getVersionName"))) { 
this.state = 12;
}if (true) break;

case 12:
//C
this.state = 13;
 BA.debugLineNum = 1076;BA.debugLine="Starter.newApp.update = True";
Debug.ShouldStop(524288);
parent._starter._newapp /*RemoteObject*/ .setField ("update" /*RemoteObject*/ ,parent.__c.getField(true,"True"));
 BA.debugLineNum = 1077;BA.debugLine="LogColor(\"Hay nuevo APK\", Colors.red)";
Debug.ShouldStop(1048576);
parent.__c.runVoidMethod ("LogImpl","02949151",BA.ObjectToString("Hay nuevo APK"),parent.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 1078;BA.debugLine="b_actualizacion.Visible = True";
Debug.ShouldStop(2097152);
__ref.getField(false,"_b_actualizacion" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"True"));
 BA.debugLineNum = 1079;BA.debugLine="CallSubDelayed(appUpdater, \"download_newApk\")";
Debug.ShouldStop(4194304);
parent.__c.runVoidMethod ("CallSubDelayed",__ref.getField(false, "ba"),(Object)((parent._appupdater.getObject())),(Object)(RemoteObject.createImmutable("download_newApk")));
 if (true) break;

case 13:
//C
this.state = 20;
;
 Debug.CheckDeviceExceptions();
if (true) break;

case 15:
//C
this.state = 16;
this.catchState = 0;
 BA.debugLineNum = 1082;BA.debugLine="LogColor(\"appUpdater(), Job Failed, error  \" &";
Debug.ShouldStop(33554432);
parent.__c.runVoidMethod ("LogImpl","02949156",RemoteObject.concat(RemoteObject.createImmutable("appUpdater(), Job Failed, error  "),parent.__c.runMethod(false,"LastException",__ref.getField(false, "ba")).runMethod(true,"getMessage")),parent.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 1083;BA.debugLine="If Msgbox2(\"Hubo un error: \" & LastException.Me";
Debug.ShouldStop(67108864);
if (true) break;

case 16:
//if
this.state = 19;
if (RemoteObject.solveBoolean("=",parent.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Hubo un error: "),parent.__c.runMethod(false,"LastException",__ref.getField(false, "ba")).runMethod(true,"getMessage")))),(Object)(BA.ObjectToCharSequence("FALLO LA ACTUALIZACIÓN")),(Object)(BA.ObjectToString("OK")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("")),(Object)((parent.__c.getField(false,"Null"))),__ref.getField(false, "ba")),BA.numberCast(double.class, parent.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
this.state = 18;
}if (true) break;

case 18:
//C
this.state = 19;
 BA.debugLineNum = 1084;BA.debugLine="ExitApplication";
Debug.ShouldStop(134217728);
parent.__c.runVoidMethod ("ExitApplication");
 if (true) break;

case 19:
//C
this.state = 20;
;
 if (true) break;
if (true) break;

case 20:
//C
this.state = 27;
this.catchState = 0;
;
 if (true) break;

case 22:
//C
this.state = 23;
 BA.debugLineNum = 1089;BA.debugLine="If Msgbox2(\"Es necesaria una conexión a internet";
Debug.ShouldStop(1);
if (true) break;

case 23:
//if
this.state = 26;
if (RemoteObject.solveBoolean("=",parent.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence("Es necesaria una conexión a internet, por favor revise su conexión y vuelva a intentar")),(Object)(BA.ObjectToCharSequence("ATENCIÓN")),(Object)(BA.ObjectToString("OK")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("")),(Object)((parent.__c.getField(false,"Null"))),__ref.getField(false, "ba")),BA.numberCast(double.class, parent.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
this.state = 25;
}if (true) break;

case 25:
//C
this.state = 26;
 BA.debugLineNum = 1090;BA.debugLine="ExitApplication";
Debug.ShouldStop(2);
parent.__c.runVoidMethod ("ExitApplication");
 if (true) break;

case 26:
//C
this.state = 27;
;
 if (true) break;

case 27:
//C
this.state = -1;
;
 BA.debugLineNum = 1093;BA.debugLine="j.Release";
Debug.ShouldStop(16);
_j.runClassMethod (gunav2.keymon.com.mx.httpjob.class, "_release" /*RemoteObject*/ );
 BA.debugLineNum = 1094;BA.debugLine="End Sub";
Debug.ShouldStop(32);
if (true) break;
}} 
       catch (Exception e0) {
			
if (catchState == 0)
    throw e0;
else {
    state = catchState;
BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e0.toString());}
            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static RemoteObject  _traearchivover(RemoteObject __ref,RemoteObject _callback,RemoteObject _link) throws Exception{
try {
		Debug.PushSubsStack("traeArchivoVer (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,1102);
if (RapidSub.canDelegate("traearchivover")) { return __ref.runUserSub(false, "b4xmainpage","traearchivover", __ref, _callback, _link);}
RemoteObject _j = RemoteObject.declareNull("gunav2.keymon.com.mx.httpjob");
Debug.locals.put("Callback", _callback);
Debug.locals.put("link", _link);
 BA.debugLineNum = 1102;BA.debugLine="Sub traeArchivoVer (Callback As Object, link As St";
Debug.ShouldStop(8192);
 BA.debugLineNum = 1103;BA.debugLine="Dim j As HttpJob";
Debug.ShouldStop(16384);
_j = RemoteObject.createNew ("gunav2.keymon.com.mx.httpjob");Debug.locals.put("j", _j);
 BA.debugLineNum = 1104;BA.debugLine="j.Initialize(\"\", Callback)";
Debug.ShouldStop(32768);
_j.runClassMethod (gunav2.keymon.com.mx.httpjob.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("")),(Object)(_callback));
 BA.debugLineNum = 1105;BA.debugLine="j.GetRequest.Timeout = 5000";
Debug.ShouldStop(65536);
_j.runClassMethod (gunav2.keymon.com.mx.httpjob.class, "_getrequest" /*RemoteObject*/ ).runMethod(true,"setTimeout",BA.numberCast(int.class, 5000));
 BA.debugLineNum = 1106;BA.debugLine="j.Download(link)";
Debug.ShouldStop(131072);
_j.runClassMethod (gunav2.keymon.com.mx.httpjob.class, "_download" /*RemoteObject*/ ,(Object)(_link));
 BA.debugLineNum = 1107;BA.debugLine="Return j";
Debug.ShouldStop(262144);
if (true) return _j;
 BA.debugLineNum = 1108;BA.debugLine="End Sub";
Debug.ShouldStop(524288);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _user_enterpressed(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("user_EnterPressed (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,558);
if (RapidSub.canDelegate("user_enterpressed")) { return __ref.runUserSub(false, "b4xmainpage","user_enterpressed", __ref);}
 BA.debugLineNum = 558;BA.debugLine="Private Sub user_EnterPressed";
Debug.ShouldStop(8192);
 BA.debugLineNum = 559;BA.debugLine="If user.text = \"KMTS1\" Then Entrar.Enabled = True";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_user" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("KMTS1"))) { 
__ref.getField(false,"_entrar" /*RemoteObject*/ ).runMethod(true,"setEnabled",b4xmainpage.__c.getField(true,"True"));};
 BA.debugLineNum = 560;BA.debugLine="End Sub";
Debug.ShouldStop(32768);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _versionrevisadahoy(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("versionRevisadaHoy (b4xmainpage) ","b4xmainpage",2,__ref.getField(false, "ba"),__ref,1111);
if (RapidSub.canDelegate("versionrevisadahoy")) { return __ref.runUserSub(false, "b4xmainpage","versionrevisadahoy", __ref);}
RemoteObject _revisada = RemoteObject.createImmutable(false);
 BA.debugLineNum = 1111;BA.debugLine="Sub versionRevisadaHoy As Boolean";
Debug.ShouldStop(4194304);
 BA.debugLineNum = 1112;BA.debugLine="Private revisada As Boolean = False";
Debug.ShouldStop(8388608);
_revisada = b4xmainpage.__c.getField(true,"False");Debug.locals.put("revisada", _revisada);Debug.locals.put("revisada", _revisada);
 BA.debugLineNum = 1113;BA.debugLine="c = skmt.ExecQuery2(\"select CAT_VA_VALOR from CAT";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("REVISION_APK")}))));
 BA.debugLineNum = 1114;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1115;BA.debugLine="c.Position = 0";
Debug.ShouldStop(67108864);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1116;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\"";
Debug.ShouldStop(134217728);
b4xmainpage.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("yyyyMMdd"));
 BA.debugLineNum = 1117;BA.debugLine="If DateTime.Date(DateTime.Now) = c.GetString(\"CA";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",b4xmainpage.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(b4xmainpage.__c.getField(false,"DateTime").runMethod(true,"getNow"))),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_VA_VALOR"))))) { 
 BA.debugLineNum = 1118;BA.debugLine="revisada = True";
Debug.ShouldStop(536870912);
_revisada = b4xmainpage.__c.getField(true,"True");Debug.locals.put("revisada", _revisada);
 BA.debugLineNum = 1119;BA.debugLine="LogColor(\"La versión ya se revisó el día de hoy";
Debug.ShouldStop(1073741824);
b4xmainpage.__c.runVoidMethod ("LogImpl","03080200",BA.ObjectToString("La versión ya se revisó el día de hoy."),b4xmainpage.__c.getField(false,"Colors").getField(true,"Red"));
 };
 };
 BA.debugLineNum = 1125;BA.debugLine="Return False";
Debug.ShouldStop(16);
if (true) return b4xmainpage.__c.getField(true,"False");
 BA.debugLineNum = 1127;BA.debugLine="End Sub";
Debug.ShouldStop(64);
return RemoteObject.createImmutable(false);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}