package gunav2.keymon.com.mx;


import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.B4AClass;
import anywheresoftware.b4a.BALayout;
import anywheresoftware.b4a.debug.*;

public class b4xmainpage extends B4AClass.ImplB4AClass implements BA.SubDelegator{
    private static java.util.HashMap<String, java.lang.reflect.Method> htSubs;
    private void innerInitialize(BA _ba) throws Exception {
        if (ba == null) {
            ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "gunav2.keymon.com.mx.b4xmainpage");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.b4xmainpage.class).invoke(this, new Object[] {null});
        else
            ba.raiseEvent2(null, true, "class_globals", false);
    }

 
    public void  innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{
        innerInitialize(_ba);
    }
    public Object callSub(String sub, Object sender, Object[] args) throws Exception {
        return BA.SubDelegator.SubNotFound;
    }
public anywheresoftware.b4a.keywords.Common __c = null;
public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
public gunav2.keymon.com.mx.b4xmainpage _login = null;
public gunav2.keymon.com.mx.c_principal _principal = null;
public gunav2.keymon.com.mx.c_clientes _clientes = null;
public gunav2.keymon.com.mx.c_cliente _cliente = null;
public gunav2.keymon.com.mx.c_productos _productos = null;
public gunav2.keymon.com.mx.c_updateavailable _updateavailable = null;
public gunav2.keymon.com.mx.c_mapas _mapas = null;
public gunav2.keymon.com.mx.c_nuevocliente _nuevocliente = null;
public gunav2.keymon.com.mx.c_ticketsdia _ticketsdia = null;
public gunav2.keymon.com.mx.c_noventa _noventa = null;
public gunav2.keymon.com.mx.c_nota _nota = null;
public gunav2.keymon.com.mx.c_pedidos _pedidos = null;
public gunav2.keymon.com.mx.c_promos _promos = null;
public gunav2.keymon.com.mx.c_historico _historico = null;
public gunav2.keymon.com.mx.c_clientescompletos _clientes_completos = null;
public gunav2.keymon.com.mx.v_tclientes _tclientes = null;
public gunav2.keymon.com.mx.c_historicobat _historicobat = null;
public gunav2.keymon.com.mx.dbrequestmanager _reqmanager = null;
public String _v = "";
public String _ruta = "";
public com.rootsoft.togglelibrary.ToggleLibrary _tgl = null;
public String _lat_gps = "";
public String _lon_gps = "";
public String _usuario = "";
public int _batt = 0;
public anywheresoftware.b4a.sql.SQL _skmt = null;
public String _montoactual = "";
public String _clientestotal = "";
public String _clientesventa = "";
public String _clientesvisitados = "";
public String _almacen = "";
public String _rutapreventa = "";
public String _server = "";
public String _fecharuta = "";
public boolean _logger = false;
public String _mac_impresora = "";
public anywheresoftware.b4a.phone.Phone.PhoneId _phn = null;
public anywheresoftware.b4a.objects.EditTextWrapper _user = null;
public anywheresoftware.b4a.objects.EditTextWrapper _pass = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
public String _existe = "";
public String _paso1 = "";
public anywheresoftware.b4a.objects.LabelWrapper _imen = null;
public String _imei = "";
public String _alterno = "";
public anywheresoftware.b4a.objects.ButtonWrapper _b_menu = null;
public com.rootsoft.rspopupmenu.RSPopupMenu _popupmenu = null;
public gunav2.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null;
public anywheresoftware.b4a.objects.ButtonWrapper _pdf = null;
public batteryprogressviewwrapper.batteryprogressviewWrapper _bpv1 = null;
public int[] _batterystatus = null;
public gunav2.keymon.com.mx.batteryutilities _bu = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_apk = null;
public anywheresoftware.b4a.objects.ImageViewWrapper _i_engrane = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_main = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_appupdate = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_regesar = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_version = null;
public anywheresoftware.b4a.objects.ImageViewWrapper _imageview1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
public anywheresoftware.b4a.objects.ButtonWrapper _entrar = null;
public String _tipo_venta = "";
public boolean _bterminarclicked = false;
public anywheresoftware.b4a.objects.ListViewWrapper _lv_server = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_server = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_enviobd = null;
public gunav2.keymon.com.mx.fileprovider _provider = null;
public String _rutabdbackup = "";
public gunav2.keymon.com.mx.b4xswitch _b4xswitch1 = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_validacion = null;
public gunav2.keymon.com.mx.b4xswitch _b4xswitch2 = null;
public int _x = 0;
public anywheresoftware.b4a.objects.EditTextWrapper _et_codigo = null;
public boolean _buscandoactualizacion = false;
public boolean _actualizacionrevisada = false;
public anywheresoftware.b4a.objects.ButtonWrapper _b_actualizacion = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_server = null;
public boolean _intentusado = false;
public anywheresoftware.b4a.objects.PanelWrapper _p_importarbdwa = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb_importarbdwa = null;
public anywheresoftware.b4a.phone.PackageManagerWrapper _pkg = null;
public b4a.example.dateutils _dateutils = null;
public gunav2.keymon.com.mx.main _main = null;
public gunav2.keymon.com.mx.starter _starter = null;
public gunav2.keymon.com.mx.subs _subs = null;
public gunav2.keymon.com.mx.appupdater _appupdater = null;
public gunav2.keymon.com.mx.tracker _tracker = null;
public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null;
public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public gunav2.keymon.com.mx.newinst2 _newinst2 = null;
public gunav2.keymon.com.mx.b4xpages _b4xpages = null;
public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null;
public gunav2.keymon.com.mx.httputils2service _httputils2service = null;
public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null;
public String  _b_aceptar_click(gunav2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_aceptar_click", false))
	 {return ((String) Debug.delegate(ba, "b_aceptar_click", null));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
String _rutades = "";
String _almacendes = "";
RDebugUtils.currentLine=2883584;
 //BA.debugLineNum = 2883584;BA.debugLine="Private Sub b_aceptar_Click";
RDebugUtils.currentLine=2883585;
 //BA.debugLineNum = 2883585;BA.debugLine="If et_codigo.Text <> \"\" Then";
if ((__ref._et_codigo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=2883586;
 //BA.debugLineNum = 2883586;BA.debugLine="Private c2 As Cursor = skmt.ExecQuery(\"select di";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct CAT_CL_RUTA from kmt_info3 where CAT_CL_RUTA not in (select * from ruta_suplencia)")));
RDebugUtils.currentLine=2883587;
 //BA.debugLineNum = 2883587;BA.debugLine="c2.Position = 0";
_c2.setPosition((int) (0));
RDebugUtils.currentLine=2883588;
 //BA.debugLineNum = 2883588;BA.debugLine="Private rutades As String = c2.GetString(\"CAT_CL";
_rutades = _c2.GetString("CAT_CL_RUTA");
RDebugUtils.currentLine=2883589;
 //BA.debugLineNum = 2883589;BA.debugLine="c2.Close";
_c2.Close();
RDebugUtils.currentLine=2883590;
 //BA.debugLineNum = 2883590;BA.debugLine="Private c2 As Cursor = skmt.ExecQuery(\"SELECT ID";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT ID_ALMACEN FROM CAT_ALMACEN")));
RDebugUtils.currentLine=2883591;
 //BA.debugLineNum = 2883591;BA.debugLine="c2.Position = 0";
_c2.setPosition((int) (0));
RDebugUtils.currentLine=2883592;
 //BA.debugLineNum = 2883592;BA.debugLine="Private almacendes As String = c2.GetString(\"ID_";
_almacendes = _c2.GetString("ID_ALMACEN");
RDebugUtils.currentLine=2883593;
 //BA.debugLineNum = 2883593;BA.debugLine="c2.Close";
_c2.Close();
RDebugUtils.currentLine=2883594;
 //BA.debugLineNum = 2883594;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=2883595;
 //BA.debugLineNum = 2883595;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=2883596;
 //BA.debugLineNum = 2883596;BA.debugLine="cmd.Name = \"select_geoPass_GUNA\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_geoPass_GUNA";
RDebugUtils.currentLine=2883597;
 //BA.debugLineNum = 2883597;BA.debugLine="cmd.Parameters = Array As Object(et_codigo.Text,";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._et_codigo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(_almacendes),(Object)(_rutades)};
RDebugUtils.currentLine=2883598;
 //BA.debugLineNum = 2883598;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"geopass\")";
__ref._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("geopass"));
 }else 
{RDebugUtils.currentLine=2883599;
 //BA.debugLineNum = 2883599;BA.debugLine="Else If et_codigo.Text = \"\" Then";
if ((__ref._et_codigo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("")) { 
RDebugUtils.currentLine=2883600;
 //BA.debugLineNum = 2883600;BA.debugLine="MsgboxAsync(\"Ingresa un codigo\",\"Atención\")";
__c.MsgboxAsync(BA.ObjectToCharSequence("Ingresa un codigo"),BA.ObjectToCharSequence("Atención"),ba);
RDebugUtils.currentLine=2883601;
 //BA.debugLineNum = 2883601;BA.debugLine="p_validacion.Visible = False";
__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=2883602;
 //BA.debugLineNum = 2883602;BA.debugLine="B4XSwitch2.Value = False";
__ref._b4xswitch2 /*gunav2.keymon.com.mx.b4xswitch*/ ._setvalue /*boolean*/ (null,__c.False);
RDebugUtils.currentLine=2883603;
 //BA.debugLineNum = 2883603;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE GPS SET HABILITADO =";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE GPS SET HABILITADO = (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(0)}));
RDebugUtils.currentLine=2883604;
 //BA.debugLineNum = 2883604;BA.debugLine="et_codigo.Text = \"\"";
__ref._et_codigo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
 }}
;
RDebugUtils.currentLine=2883632;
 //BA.debugLineNum = 2883632;BA.debugLine="End Sub";
return "";
}
public String  _b_actualizacion_click(gunav2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_actualizacion_click", false))
	 {return ((String) Debug.delegate(ba, "b_actualizacion_click", null));}
RDebugUtils.currentLine=3145728;
 //BA.debugLineNum = 3145728;BA.debugLine="Private Sub b_actualizacion_Click";
RDebugUtils.currentLine=3145729;
 //BA.debugLineNum = 3145729;BA.debugLine="CallSubDelayed(appUpdater, \"download_newApk\")";
__c.CallSubDelayed(ba,(Object)(_appupdater.getObject()),"download_newApk");
RDebugUtils.currentLine=3145730;
 //BA.debugLineNum = 3145730;BA.debugLine="End Sub";
return "";
}
public String  _b_apk_click(gunav2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_apk_click", false))
	 {return ((String) Debug.delegate(ba, "b_apk_click", null));}
RDebugUtils.currentLine=2162688;
 //BA.debugLineNum = 2162688;BA.debugLine="Sub b_apk_Click";
RDebugUtils.currentLine=2162689;
 //BA.debugLineNum = 2162689;BA.debugLine="StartService(appUpdater)";
__c.StartService(ba,(Object)(_appupdater.getObject()));
RDebugUtils.currentLine=2162690;
 //BA.debugLineNum = 2162690;BA.debugLine="End Sub";
return "";
}
public String  _b_cancelarcodigo_click(gunav2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_cancelarcodigo_click", false))
	 {return ((String) Debug.delegate(ba, "b_cancelarcodigo_click", null));}
RDebugUtils.currentLine=2818048;
 //BA.debugLineNum = 2818048;BA.debugLine="Private Sub b_cancelarcodigo_Click";
RDebugUtils.currentLine=2818049;
 //BA.debugLineNum = 2818049;BA.debugLine="p_validacion.Visible = False";
__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=2818050;
 //BA.debugLineNum = 2818050;BA.debugLine="et_codigo.Text = \"\"";
__ref._et_codigo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=2818051;
 //BA.debugLineNum = 2818051;BA.debugLine="B4XSwitch2.Value = False";
__ref._b4xswitch2 /*gunav2.keymon.com.mx.b4xswitch*/ ._setvalue /*boolean*/ (null,__c.False);
RDebugUtils.currentLine=2818052;
 //BA.debugLineNum = 2818052;BA.debugLine="End Sub";
return "";
}
public void  _b_enviobd_click(gunav2.keymon.com.mx.b4xmainpage __ref) throws Exception{
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_enviobd_click", false))
	 {Debug.delegate(ba, "b_enviobd_click", null); return;}
ResumableSub_b_envioBD_Click rsub = new ResumableSub_b_envioBD_Click(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_b_envioBD_Click extends BA.ResumableSub {
public ResumableSub_b_envioBD_Click(gunav2.keymon.com.mx.b4xmainpage parent,gunav2.keymon.com.mx.b4xmainpage __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
gunav2.keymon.com.mx.b4xmainpage __ref;
gunav2.keymon.com.mx.b4xmainpage parent;
String _filename = "";
anywheresoftware.b4a.phone.Phone.Email _email = null;
anywheresoftware.b4a.objects.IntentWrapper _in = null;

@Override
public void resume(BA ba, Object[] result) throws Exception{
RDebugUtils.currentModule="b4xmainpage";

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

case 0:
//C
this.state = -1;
RDebugUtils.currentLine=2555907;
 //BA.debugLineNum = 2555907;BA.debugLine="Dim FileName As String = \"kmt.db\"";
_filename = "kmt.db";
RDebugUtils.currentLine=2555909;
 //BA.debugLineNum = 2555909;BA.debugLine="Log(\"xxxxxx:\"&Provider.SharedFolder)";
parent.__c.LogImpl("02555909","xxxxxx:"+__ref._provider /*gunav2.keymon.com.mx.fileprovider*/ ._sharedfolder /*String*/ ,0);
RDebugUtils.currentLine=2555910;
 //BA.debugLineNum = 2555910;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "b_enviobd_click"),(int) (1000));
this.state = 1;
return;
case 1:
//C
this.state = -1;
;
RDebugUtils.currentLine=2555911;
 //BA.debugLineNum = 2555911;BA.debugLine="File.Copy(File.DirInternal, FileName, Provider.Sh";
parent.__c.File.Copy(parent.__c.File.getDirInternal(),_filename,__ref._provider /*gunav2.keymon.com.mx.fileprovider*/ ._sharedfolder /*String*/ ,_filename);
RDebugUtils.currentLine=2555912;
 //BA.debugLineNum = 2555912;BA.debugLine="Dim email As Email";
_email = new anywheresoftware.b4a.phone.Phone.Email();
RDebugUtils.currentLine=2555913;
 //BA.debugLineNum = 2555913;BA.debugLine="email.To.Add(\"cheveguerra@gmail.com\")";
_email.To.Add((Object)("cheveguerra@gmail.com"));
RDebugUtils.currentLine=2555914;
 //BA.debugLineNum = 2555914;BA.debugLine="email.Subject = \"subject\"";
_email.Subject = "subject";
RDebugUtils.currentLine=2555915;
 //BA.debugLineNum = 2555915;BA.debugLine="email.Attachments.Add(Provider.GetFileUri(FileNam";
_email.Attachments.Add(__ref._provider /*gunav2.keymon.com.mx.fileprovider*/ ._getfileuri /*Object*/ (null,_filename));
RDebugUtils.currentLine=2555917;
 //BA.debugLineNum = 2555917;BA.debugLine="Dim in As Intent = email.GetIntent";
_in = new anywheresoftware.b4a.objects.IntentWrapper();
_in = (anywheresoftware.b4a.objects.IntentWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.IntentWrapper(), (android.content.Intent)(_email.GetIntent()));
RDebugUtils.currentLine=2555918;
 //BA.debugLineNum = 2555918;BA.debugLine="in.Flags = 1 'FLAG_GRANT_READ_URI_PERMISSION";
_in.setFlags((int) (1));
RDebugUtils.currentLine=2555919;
 //BA.debugLineNum = 2555919;BA.debugLine="StartActivity(in)";
parent.__c.StartActivity(ba,(Object)(_in.getObject()));
RDebugUtils.currentLine=2555920;
 //BA.debugLineNum = 2555920;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _b_menu_click(gunav2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_menu_click", false))
	 {return ((String) Debug.delegate(ba, "b_menu_click", null));}
RDebugUtils.currentLine=1900544;
 //BA.debugLineNum = 1900544;BA.debugLine="Sub b_menu_Click";
RDebugUtils.currentLine=1900545;
 //BA.debugLineNum = 1900545;BA.debugLine="PopupMenu.Show";
__ref._popupmenu /*com.rootsoft.rspopupmenu.RSPopupMenu*/ .Show();
RDebugUtils.currentLine=1900546;
 //BA.debugLineNum = 1900546;BA.debugLine="End Sub";
return "";
}
public String  _b_regesar_click(gunav2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_regesar_click", false))
	 {return ((String) Debug.delegate(ba, "b_regesar_click", null));}
RDebugUtils.currentLine=2424832;
 //BA.debugLineNum = 2424832;BA.debugLine="Sub b_regesar_Click";
RDebugUtils.currentLine=2424834;
 //BA.debugLineNum = 2424834;BA.debugLine="p_appUpdate.Visible = False";
__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=2424835;
 //BA.debugLineNum = 2424835;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES whe";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("DBReqServer")}));
RDebugUtils.currentLine=2424836;
 //BA.debugLineNum = 2424836;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES(CAT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("DBReqServer"),(Object)(__ref._et_server /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())}));
RDebugUtils.currentLine=2424837;
 //BA.debugLineNum = 2424837;BA.debugLine="Starter.server =  et_server.Text";
_starter._server /*String*/  = __ref._et_server /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText();
RDebugUtils.currentLine=2424838;
 //BA.debugLineNum = 2424838;BA.debugLine="Starter.reqManager.Initialize(Me, et_server.Text)";
_starter._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,__ref._et_server /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText());
RDebugUtils.currentLine=2424839;
 //BA.debugLineNum = 2424839;BA.debugLine="End Sub";
return "";
}
public void  _b4xpage_appear(gunav2.keymon.com.mx.b4xmainpage __ref) throws Exception{
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b4xpage_appear", false))
	 {Debug.delegate(ba, "b4xpage_appear", null); return;}
ResumableSub_B4XPage_Appear rsub = new ResumableSub_B4XPage_Appear(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_B4XPage_Appear extends BA.ResumableSub {
public ResumableSub_B4XPage_Appear(gunav2.keymon.com.mx.b4xmainpage parent,gunav2.keymon.com.mx.b4xmainpage __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
gunav2.keymon.com.mx.b4xmainpage __ref;
gunav2.keymon.com.mx.b4xmainpage parent;
anywheresoftware.b4a.phone.Phone _ph = null;
String _deviceid = "";
String _permission = "";
boolean _result = false;
String _sdate = "";
String _stime = "";

@Override
public void resume(BA ba, Object[] result) throws Exception{
RDebugUtils.currentModule="b4xmainpage";

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

case 0:
//C
this.state = 1;
RDebugUtils.currentLine=1310729;
 //BA.debugLineNum = 1310729;BA.debugLine="cb_importarBDWA.Checked = Subs.traeUsarIntentBDWA";
__ref._cb_importarbdwa /*anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper*/ .setChecked(parent._subs._traeusarintentbdwa /*boolean*/ (ba));
RDebugUtils.currentLine=1310730;
 //BA.debugLineNum = 1310730;BA.debugLine="If user.Text.Trim = \"KMTS1\" Then";
if (true) break;

case 1:
//if
this.state = 6;
if ((__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText().trim()).equals("KMTS1")) { 
this.state = 3;
}else {
this.state = 5;
}if (true) break;

case 3:
//C
this.state = 6;
RDebugUtils.currentLine=1310731;
 //BA.debugLineNum = 1310731;BA.debugLine="p_importarBDWA.Visible = True";
__ref._p_importarbdwa /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.True);
 if (true) break;

case 5:
//C
this.state = 6;
RDebugUtils.currentLine=1310733;
 //BA.debugLineNum = 1310733;BA.debugLine="p_importarBDWA.Visible = False";
__ref._p_importarbdwa /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
 if (true) break;

case 6:
//C
this.state = 7;
;
RDebugUtils.currentLine=1310735;
 //BA.debugLineNum = 1310735;BA.debugLine="reqManager.Initialize(Me, Starter.server)";
__ref._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._initialize /*String*/ (null,ba,parent,parent._starter._server /*String*/ );
RDebugUtils.currentLine=1310736;
 //BA.debugLineNum = 1310736;BA.debugLine="If Starter.muestraProgreso = 1 Then";
if (true) break;

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

case 9:
//C
this.state = 10;
RDebugUtils.currentLine=1310737;
 //BA.debugLineNum = 1310737;BA.debugLine="muestraProgreso(\"Descargando nueva versión, un m";
__ref._muestraprogreso /*String*/ (null,"Descargando nueva versión, un momento por favor.");
RDebugUtils.currentLine=1310738;
 //BA.debugLineNum = 1310738;BA.debugLine="Starter.muestraProgreso = 0";
parent._starter._muestraprogreso /*String*/  = BA.NumberToString(0);
 if (true) break;

case 10:
//C
this.state = 11;
;
RDebugUtils.currentLine=1310740;
 //BA.debugLineNum = 1310740;BA.debugLine="Dim ph As Phone 'Get Id Device";
_ph = new anywheresoftware.b4a.phone.Phone();
RDebugUtils.currentLine=1310741;
 //BA.debugLineNum = 1310741;BA.debugLine="Dim DeviceID As String = ph.GetSettings(\"android_";
_deviceid = _ph.GetSettings("android_id").toUpperCase();
RDebugUtils.currentLine=1310743;
 //BA.debugLineNum = 1310743;BA.debugLine="LogColor(\"Revisa permisos Phone_State\", Colors.Gr";
parent.__c.LogImpl("01310743","Revisa permisos Phone_State",parent.__c.Colors.Green);
RDebugUtils.currentLine=1310744;
 //BA.debugLineNum = 1310744;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .CheckAndRequest(ba,parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_READ_PHONE_STATE);
RDebugUtils.currentLine=1310745;
 //BA.debugLineNum = 1310745;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
parent.__c.WaitFor("b4xpage_permissionresult", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "b4xpage_appear"), null);
this.state = 63;
return;
case 63:
//C
this.state = 11;
_permission = (String) result[1];
_result = (Boolean) result[2];
;
RDebugUtils.currentLine=1310746;
 //BA.debugLineNum = 1310746;BA.debugLine="If Result Then";
if (true) break;

case 11:
//if
this.state = 14;
if (_result) { 
this.state = 13;
}if (true) break;

case 13:
//C
this.state = 14;
RDebugUtils.currentLine=1310747;
 //BA.debugLineNum = 1310747;BA.debugLine="IMEN.Text =\"\"";
__ref._imen /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=1310748;
 //BA.debugLineNum = 1310748;BA.debugLine="IMEI = \"\"";
__ref._imei /*String*/  = "";
RDebugUtils.currentLine=1310750;
 //BA.debugLineNum = 1310750;BA.debugLine="IMEI=\"\"  'Pruebas";
__ref._imei /*String*/  = "";
 if (true) break;

case 14:
//C
this.state = 15;
;
RDebugUtils.currentLine=1310752;
 //BA.debugLineNum = 1310752;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .CheckAndRequest(ba,parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_ACCESS_FINE_LOCATION);
RDebugUtils.currentLine=1310753;
 //BA.debugLineNum = 1310753;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
parent.__c.WaitFor("b4xpage_permissionresult", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "b4xpage_appear"), null);
this.state = 64;
return;
case 64:
//C
this.state = 15;
_permission = (String) result[1];
_result = (Boolean) result[2];
;
RDebugUtils.currentLine=1310754;
 //BA.debugLineNum = 1310754;BA.debugLine="If Result Then";
if (true) break;

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

case 17:
//C
this.state = 20;
RDebugUtils.currentLine=1310755;
 //BA.debugLineNum = 1310755;BA.debugLine="StartService(Tracker)";
parent.__c.StartService(ba,(Object)(parent._tracker.getObject()));
RDebugUtils.currentLine=1310756;
 //BA.debugLineNum = 1310756;BA.debugLine="Log(\"Start Tracker\")";
parent.__c.LogImpl("01310756","Start Tracker",0);
 if (true) break;

case 19:
//C
this.state = 20;
RDebugUtils.currentLine=1310758;
 //BA.debugLineNum = 1310758;BA.debugLine="ToastMessageShow(\"Sin permisos de ubicacion\", Tr";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Sin permisos de ubicacion"),parent.__c.True);
 if (true) break;

case 20:
//C
this.state = 21;
;
RDebugUtils.currentLine=1310760;
 //BA.debugLineNum = 1310760;BA.debugLine="server = Starter.server";
__ref._server /*String*/  = parent._starter._server /*String*/ ;
RDebugUtils.currentLine=1310761;
 //BA.debugLineNum = 1310761;BA.debugLine="tgl.Initialize()";
__ref._tgl /*com.rootsoft.togglelibrary.ToggleLibrary*/ .Initialize(ba);
RDebugUtils.currentLine=1310762;
 //BA.debugLineNum = 1310762;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then";
if (true) break;

case 21:
//if
this.state = 24;
if (parent.__c.Not(parent._starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) { 
this.state = 23;
}if (true) break;

case 23:
//C
this.state = 24;
RDebugUtils.currentLine=1310763;
 //BA.debugLineNum = 1310763;BA.debugLine="ToastMessageShow(\"Es necesario tener el GPS ence";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Es necesario tener el GPS encendido"),parent.__c.True);
RDebugUtils.currentLine=1310764;
 //BA.debugLineNum = 1310764;BA.debugLine="Sleep(500)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "b4xpage_appear"),(int) (500));
this.state = 65;
return;
case 65:
//C
this.state = 24;
;
RDebugUtils.currentLine=1310765;
 //BA.debugLineNum = 1310765;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent";
parent.__c.StartActivity(ba,(Object)(parent._starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent()));
 if (true) break;

case 24:
//C
this.state = 25;
;
RDebugUtils.currentLine=1310767;
 //BA.debugLineNum = 1310767;BA.debugLine="c=skmt.ExecQuery2(\"select count(*) as CUANTOS fro";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select count(*) as CUANTOS from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"FECHA"})));
RDebugUtils.currentLine=1310768;
 //BA.debugLineNum = 1310768;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=1310769;
 //BA.debugLineNum = 1310769;BA.debugLine="If c.GetString(\"CUANTOS\") = 0 Then";
if (true) break;

case 25:
//if
this.state = 34;
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")).equals(BA.NumberToString(0))) { 
this.state = 27;
}else {
this.state = 29;
}if (true) break;

case 27:
//C
this.state = 34;
RDebugUtils.currentLine=1310770;
 //BA.debugLineNum = 1310770;BA.debugLine="LogColor($\"No hay fecha: ${c.GetString(\"CUANTOS\"";
parent.__c.LogImpl("01310770",("No hay fecha: "+parent.__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")))+""),parent.__c.Colors.Red);
RDebugUtils.currentLine=1310771;
 //BA.debugLineNum = 1310771;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=1310772;
 //BA.debugLineNum = 1310772;BA.debugLine="cmd.Name = \"select_fecha\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_fecha";
RDebugUtils.currentLine=1310773;
 //BA.debugLineNum = 1310773;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"fecha\")";
__ref._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("fecha"));
RDebugUtils.currentLine=1310774;
 //BA.debugLineNum = 1310774;BA.debugLine="Msgbox(\"AJUSTAR FECHA\",\"AVISO\") 'Ignore";
parent.__c.Msgbox(BA.ObjectToCharSequence("AJUSTAR FECHA"),BA.ObjectToCharSequence("AVISO"),ba);
RDebugUtils.currentLine=1310775;
 //BA.debugLineNum = 1310775;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
 if (true) break;

case 29:
//C
this.state = 30;
RDebugUtils.currentLine=1310777;
 //BA.debugLineNum = 1310777;BA.debugLine="LogColor($\"Si hay fecha: ${c.GetString(\"CUANTOS\"";
parent.__c.LogImpl("01310777",("Si hay fecha: "+parent.__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")))+""),parent.__c.Colors.Green);
RDebugUtils.currentLine=1310778;
 //BA.debugLineNum = 1310778;BA.debugLine="c=skmt.ExecQuery2(\"select CAT_VA_VALOR from CAT_";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"FECHA"})));
RDebugUtils.currentLine=1310779;
 //BA.debugLineNum = 1310779;BA.debugLine="c.Position =0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=1310780;
 //BA.debugLineNum = 1310780;BA.debugLine="Dim sDate, sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=1310781;
 //BA.debugLineNum = 1310781;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\"";
parent.__c.DateTime.setDateFormat("yyyyMMdd");
RDebugUtils.currentLine=1310782;
 //BA.debugLineNum = 1310782;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
_sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=1310787;
 //BA.debugLineNum = 1310787;BA.debugLine="If c.GetString(\"CAT_VA_VALOR\") > sDate Then";
if (true) break;

case 30:
//if
this.state = 33;
if ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_VA_VALOR")))>(double)(Double.parseDouble(_sdate))) { 
this.state = 32;
}if (true) break;

case 32:
//C
this.state = 33;
RDebugUtils.currentLine=1310788;
 //BA.debugLineNum = 1310788;BA.debugLine="Msgbox(\"AJUSTAR LA FECHA YA QUE ES MENOR AL SIS";
parent.__c.Msgbox(BA.ObjectToCharSequence("AJUSTAR LA FECHA YA QUE ES MENOR AL SISTEMA"),BA.ObjectToCharSequence("AVISO"),ba);
RDebugUtils.currentLine=1310789;
 //BA.debugLineNum = 1310789;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
 if (true) break;

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

case 34:
//C
this.state = 35;
;
RDebugUtils.currentLine=1310792;
 //BA.debugLineNum = 1310792;BA.debugLine="bu.Initialize";
__ref._bu /*gunav2.keymon.com.mx.batteryutilities*/ ._initialize /*String*/ (null,ba);
RDebugUtils.currentLine=1310793;
 //BA.debugLineNum = 1310793;BA.debugLine="batterystatus = bu.BatteryInformation";
__ref._batterystatus /*int[]*/  = __ref._bu /*gunav2.keymon.com.mx.batteryutilities*/ ._getbatteryinformation /*int[]*/ (null);
RDebugUtils.currentLine=1310795;
 //BA.debugLineNum = 1310795;BA.debugLine="CallSubDelayed(FirebaseMessaging, \"SubscribeToTop";
parent.__c.CallSubDelayed(ba,(Object)(parent._firebasemessaging.getObject()),"SubscribeToTopics");
RDebugUtils.currentLine=1310796;
 //BA.debugLineNum = 1310796;BA.debugLine="dameUsuario";
__ref._dameusuario /*String*/ (null);
RDebugUtils.currentLine=1310797;
 //BA.debugLineNum = 1310797;BA.debugLine="c = skmt.ExecQuery(\"SELECT HABILITADA FROM IMPRES";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HABILITADA FROM IMPRESORA")));
RDebugUtils.currentLine=1310798;
 //BA.debugLineNum = 1310798;BA.debugLine="If c.RowCount >  0 Then";
if (true) break;

case 35:
//if
this.state = 46;
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 37;
}else {
this.state = 45;
}if (true) break;

case 37:
//C
this.state = 38;
RDebugUtils.currentLine=1310799;
 //BA.debugLineNum = 1310799;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=1310800;
 //BA.debugLineNum = 1310800;BA.debugLine="If c.GetString(\"HABILITADA\") = 1 Then";
if (true) break;

case 38:
//if
this.state = 43;
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HABILITADA")).equals(BA.NumberToString(1))) { 
this.state = 40;
}else 
{RDebugUtils.currentLine=1310802;
 //BA.debugLineNum = 1310802;BA.debugLine="Else If c.GetString(\"HABILITADA\") = 0 Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HABILITADA")).equals(BA.NumberToString(0))) { 
this.state = 42;
}}
if (true) break;

case 40:
//C
this.state = 43;
RDebugUtils.currentLine=1310801;
 //BA.debugLineNum = 1310801;BA.debugLine="B4XSwitch1.Value = True";
__ref._b4xswitch1 /*gunav2.keymon.com.mx.b4xswitch*/ ._setvalue /*boolean*/ (null,parent.__c.True);
 if (true) break;

case 42:
//C
this.state = 43;
RDebugUtils.currentLine=1310803;
 //BA.debugLineNum = 1310803;BA.debugLine="B4XSwitch1.Value = False";
__ref._b4xswitch1 /*gunav2.keymon.com.mx.b4xswitch*/ ._setvalue /*boolean*/ (null,parent.__c.False);
 if (true) break;

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

case 45:
//C
this.state = 46;
RDebugUtils.currentLine=1310806;
 //BA.debugLineNum = 1310806;BA.debugLine="B4XSwitch1.Value = False";
__ref._b4xswitch1 /*gunav2.keymon.com.mx.b4xswitch*/ ._setvalue /*boolean*/ (null,parent.__c.False);
 if (true) break;

case 46:
//C
this.state = 47;
;
RDebugUtils.currentLine=1310808;
 //BA.debugLineNum = 1310808;BA.debugLine="c = skmt.ExecQuery(\"SELECT HABILITADO FROM GPS\")";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HABILITADO FROM GPS")));
RDebugUtils.currentLine=1310809;
 //BA.debugLineNum = 1310809;BA.debugLine="If c.RowCount = 0 Then";
if (true) break;

case 47:
//if
this.state = 50;
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
this.state = 49;
}if (true) break;

case 49:
//C
this.state = 50;
RDebugUtils.currentLine=1310810;
 //BA.debugLineNum = 1310810;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO GPS VALUES (?)\",";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO GPS VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(0)}));
 if (true) break;

case 50:
//C
this.state = 51;
;
RDebugUtils.currentLine=1310812;
 //BA.debugLineNum = 1310812;BA.debugLine="c = skmt.ExecQuery(\"SELECT HABILITADO FROM GPS\")";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HABILITADO FROM GPS")));
RDebugUtils.currentLine=1310813;
 //BA.debugLineNum = 1310813;BA.debugLine="If c.RowCount >  0 Then";
if (true) break;

case 51:
//if
this.state = 62;
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 53;
}else {
this.state = 61;
}if (true) break;

case 53:
//C
this.state = 54;
RDebugUtils.currentLine=1310814;
 //BA.debugLineNum = 1310814;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=1310815;
 //BA.debugLineNum = 1310815;BA.debugLine="If c.GetString(\"HABILITADO\") = 1 Then";
if (true) break;

case 54:
//if
this.state = 59;
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HABILITADO")).equals(BA.NumberToString(1))) { 
this.state = 56;
}else 
{RDebugUtils.currentLine=1310817;
 //BA.debugLineNum = 1310817;BA.debugLine="Else If c.GetString(\"HABILITADO\") = 0 Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HABILITADO")).equals(BA.NumberToString(0))) { 
this.state = 58;
}}
if (true) break;

case 56:
//C
this.state = 59;
RDebugUtils.currentLine=1310816;
 //BA.debugLineNum = 1310816;BA.debugLine="B4XSwitch2.Value = True";
__ref._b4xswitch2 /*gunav2.keymon.com.mx.b4xswitch*/ ._setvalue /*boolean*/ (null,parent.__c.True);
 if (true) break;

case 58:
//C
this.state = 59;
RDebugUtils.currentLine=1310818;
 //BA.debugLineNum = 1310818;BA.debugLine="B4XSwitch2.Value = False";
__ref._b4xswitch2 /*gunav2.keymon.com.mx.b4xswitch*/ ._setvalue /*boolean*/ (null,parent.__c.False);
 if (true) break;

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

case 61:
//C
this.state = 62;
RDebugUtils.currentLine=1310821;
 //BA.debugLineNum = 1310821;BA.debugLine="B4XSwitch2.Value = False";
__ref._b4xswitch2 /*gunav2.keymon.com.mx.b4xswitch*/ ._setvalue /*boolean*/ (null,parent.__c.False);
 if (true) break;

case 62:
//C
this.state = -1;
;
RDebugUtils.currentLine=1310823;
 //BA.debugLineNum = 1310823;BA.debugLine="Subs.guardaAppInfo";
parent._subs._guardaappinfo /*String*/ (ba);
RDebugUtils.currentLine=1310832;
 //BA.debugLineNum = 1310832;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _muestraprogreso(gunav2.keymon.com.mx.b4xmainpage __ref,String _mensaje) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "muestraprogreso", false))
	 {return ((String) Debug.delegate(ba, "muestraprogreso", new Object[] {_mensaje}));}
RDebugUtils.currentLine=2228224;
 //BA.debugLineNum = 2228224;BA.debugLine="Sub muestraProgreso(mensaje As String)";
RDebugUtils.currentLine=2228225;
 //BA.debugLineNum = 2228225;BA.debugLine="ProgressDialogShow(mensaje)";
__c.ProgressDialogShow(ba,BA.ObjectToCharSequence(_mensaje));
RDebugUtils.currentLine=2228226;
 //BA.debugLineNum = 2228226;BA.debugLine="End Sub";
return "";
}
public String  _dameusuario(gunav2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "dameusuario", false))
	 {return ((String) Debug.delegate(ba, "dameusuario", null));}
RDebugUtils.currentLine=2031616;
 //BA.debugLineNum = 2031616;BA.debugLine="Sub dameUsuario";
RDebugUtils.currentLine=2031617;
 //BA.debugLineNum = 2031617;BA.debugLine="c=skmt.ExecQuery2(\"select count(*) as EXISTE1 fro";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select count(*) as EXISTE1 from usuarioa where usuario = ?",new String[]{__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()})));
RDebugUtils.currentLine=2031618;
 //BA.debugLineNum = 2031618;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=2031619;
 //BA.debugLineNum = 2031619;BA.debugLine="existe = c.GetString(\"EXISTE1\")";
__ref._existe /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EXISTE1");
RDebugUtils.currentLine=2031620;
 //BA.debugLineNum = 2031620;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=2031621;
 //BA.debugLineNum = 2031621;BA.debugLine="If existe > 0 Then";
if ((double)(Double.parseDouble(__ref._existe /*String*/ ))>0) { 
RDebugUtils.currentLine=2031622;
 //BA.debugLineNum = 2031622;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
RDebugUtils.currentLine=2031623;
 //BA.debugLineNum = 2031623;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=2031624;
 //BA.debugLineNum = 2031624;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
 }else {
RDebugUtils.currentLine=2031626;
 //BA.debugLineNum = 2031626;BA.debugLine="usuario = \"SINUSUARIO\"";
__ref._usuario /*String*/  = "SINUSUARIO";
 };
RDebugUtils.currentLine=2031628;
 //BA.debugLineNum = 2031628;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper  _b4xpage_closerequest(gunav2.keymon.com.mx.b4xmainpage __ref) throws Exception{
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b4xpage_closerequest", false))
	 {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "b4xpage_closerequest", null));}
ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this,__ref);
rsub.resume(ba, null);
return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
}
public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
public ResumableSub_B4XPage_CloseRequest(gunav2.keymon.com.mx.b4xmainpage parent,gunav2.keymon.com.mx.b4xmainpage __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
gunav2.keymon.com.mx.b4xmainpage __ref;
gunav2.keymon.com.mx.b4xmainpage parent;

@Override
public void resume(BA ba, Object[] result) throws Exception{
RDebugUtils.currentModule="b4xmainpage";

    while (true) {
        switch (state) {
            case -1:
{
parent.__c.ReturnFromResumableSub(this,null);return;}
case 0:
//C
this.state = 1;
RDebugUtils.currentLine=1638401;
 //BA.debugLineNum = 1638401;BA.debugLine="Log(\"closreq\")";
parent.__c.LogImpl("01638401","closreq",0);
RDebugUtils.currentLine=1638402;
 //BA.debugLineNum = 1638402;BA.debugLine="Sleep(0)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "b4xpage_closerequest"),(int) (0));
this.state = 8;
return;
case 8:
//C
this.state = 1;
;
RDebugUtils.currentLine=1638403;
 //BA.debugLineNum = 1638403;BA.debugLine="If p_appUpdate.IsInitialized And p_appUpdate.Visi";
if (true) break;

case 1:
//if
this.state = 4;
if (__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .IsInitialized() && __ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { 
this.state = 3;
}if (true) break;

case 3:
//C
this.state = 4;
RDebugUtils.currentLine=1638404;
 //BA.debugLineNum = 1638404;BA.debugLine="p_appUpdate.Visible = False";
__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=1638405;
 //BA.debugLineNum = 1638405;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 if (true) break;
;
RDebugUtils.currentLine=1638407;
 //BA.debugLineNum = 1638407;BA.debugLine="If Not(p_appUpdate.Visible) Then";

case 4:
//if
this.state = 7;
if (parent.__c.Not(__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible())) { 
this.state = 6;
}if (true) break;

case 6:
//C
this.state = 7;
RDebugUtils.currentLine=1638408;
 //BA.debugLineNum = 1638408;BA.debugLine="Log(\"ExitApplication\")";
parent.__c.LogImpl("01638408","ExitApplication",0);
RDebugUtils.currentLine=1638409;
 //BA.debugLineNum = 1638409;BA.debugLine="ExitApplication";
parent.__c.ExitApplication();
 if (true) break;

case 7:
//C
this.state = -1;
;
RDebugUtils.currentLine=1638411;
 //BA.debugLineNum = 1638411;BA.debugLine="Return True";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.True));return;};
RDebugUtils.currentLine=1638412;
 //BA.debugLineNum = 1638412;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _b4xpage_created(gunav2.keymon.com.mx.b4xmainpage __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b4xpage_created", false))
	 {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));}
RDebugUtils.currentLine=1245184;
 //BA.debugLineNum = 1245184;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=1245185;
 //BA.debugLineNum = 1245185;BA.debugLine="Log(\"#####   CREAMOS MAINPAGE LOGIN\")";
__c.LogImpl("01245185","#####   CREAMOS MAINPAGE LOGIN",0);
RDebugUtils.currentLine=1245186;
 //BA.debugLineNum = 1245186;BA.debugLine="B4XPages.GetManager.LogEvents = True";
_b4xpages._getmanager /*gunav2.keymon.com.mx.b4xpagesmanager*/ (ba)._logevents /*boolean*/  = __c.True;
RDebugUtils.currentLine=1245187;
 //BA.debugLineNum = 1245187;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=1245188;
 //BA.debugLineNum = 1245188;BA.debugLine="Root.LoadLayout(\"login\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("login",ba);
RDebugUtils.currentLine=1245192;
 //BA.debugLineNum = 1245192;BA.debugLine="login.Initialize";
__ref._login /*gunav2.keymon.com.mx.b4xmainpage*/ ._initialize /*String*/ (null,ba);
RDebugUtils.currentLine=1245193;
 //BA.debugLineNum = 1245193;BA.debugLine="B4XPages.AddPage(\"Login\", login)";
_b4xpages._addpage /*String*/ (ba,"Login",(Object)(__ref._login /*gunav2.keymon.com.mx.b4xmainpage*/ ));
RDebugUtils.currentLine=1245194;
 //BA.debugLineNum = 1245194;BA.debugLine="principal.Initialize";
__ref._principal /*gunav2.keymon.com.mx.c_principal*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1245195;
 //BA.debugLineNum = 1245195;BA.debugLine="B4XPages.AddPage(\"Principal\", principal)";
_b4xpages._addpage /*String*/ (ba,"Principal",(Object)(__ref._principal /*gunav2.keymon.com.mx.c_principal*/ ));
RDebugUtils.currentLine=1245196;
 //BA.debugLineNum = 1245196;BA.debugLine="clientes.Initialize";
__ref._clientes /*gunav2.keymon.com.mx.c_clientes*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1245197;
 //BA.debugLineNum = 1245197;BA.debugLine="B4XPages.AddPage(\"Clientes\", clientes)";
_b4xpages._addpage /*String*/ (ba,"Clientes",(Object)(__ref._clientes /*gunav2.keymon.com.mx.c_clientes*/ ));
RDebugUtils.currentLine=1245198;
 //BA.debugLineNum = 1245198;BA.debugLine="cliente.Initialize";
__ref._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1245199;
 //BA.debugLineNum = 1245199;BA.debugLine="B4XPages.AddPage(\"Cliente\", cliente)";
_b4xpages._addpage /*String*/ (ba,"Cliente",(Object)(__ref._cliente /*gunav2.keymon.com.mx.c_cliente*/ ));
RDebugUtils.currentLine=1245200;
 //BA.debugLineNum = 1245200;BA.debugLine="productos.Initialize";
__ref._productos /*gunav2.keymon.com.mx.c_productos*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1245201;
 //BA.debugLineNum = 1245201;BA.debugLine="B4XPages.AddPage(\"Productos\", productos)";
_b4xpages._addpage /*String*/ (ba,"Productos",(Object)(__ref._productos /*gunav2.keymon.com.mx.c_productos*/ ));
RDebugUtils.currentLine=1245202;
 //BA.debugLineNum = 1245202;BA.debugLine="updateAvailable.Initialize";
__ref._updateavailable /*gunav2.keymon.com.mx.c_updateavailable*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1245203;
 //BA.debugLineNum = 1245203;BA.debugLine="B4XPages.AddPage(\"updateAvailable\", updateAvailab";
_b4xpages._addpage /*String*/ (ba,"updateAvailable",(Object)(__ref._updateavailable /*gunav2.keymon.com.mx.c_updateavailable*/ ));
RDebugUtils.currentLine=1245204;
 //BA.debugLineNum = 1245204;BA.debugLine="mapas.Initialize";
__ref._mapas /*gunav2.keymon.com.mx.c_mapas*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1245205;
 //BA.debugLineNum = 1245205;BA.debugLine="B4XPages.AddPage(\"Mapas\", mapas)";
_b4xpages._addpage /*String*/ (ba,"Mapas",(Object)(__ref._mapas /*gunav2.keymon.com.mx.c_mapas*/ ));
RDebugUtils.currentLine=1245206;
 //BA.debugLineNum = 1245206;BA.debugLine="nuevoCliente.Initialize";
__ref._nuevocliente /*gunav2.keymon.com.mx.c_nuevocliente*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1245207;
 //BA.debugLineNum = 1245207;BA.debugLine="B4XPages.AddPage(\"NuevoCliente\", nuevoCliente)";
_b4xpages._addpage /*String*/ (ba,"NuevoCliente",(Object)(__ref._nuevocliente /*gunav2.keymon.com.mx.c_nuevocliente*/ ));
RDebugUtils.currentLine=1245208;
 //BA.debugLineNum = 1245208;BA.debugLine="ticketsDia.Initialize";
__ref._ticketsdia /*gunav2.keymon.com.mx.c_ticketsdia*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1245209;
 //BA.debugLineNum = 1245209;BA.debugLine="B4XPages.AddPage(\"TicketsDia\", ticketsDia)";
_b4xpages._addpage /*String*/ (ba,"TicketsDia",(Object)(__ref._ticketsdia /*gunav2.keymon.com.mx.c_ticketsdia*/ ));
RDebugUtils.currentLine=1245210;
 //BA.debugLineNum = 1245210;BA.debugLine="noVenta.Initialize";
__ref._noventa /*gunav2.keymon.com.mx.c_noventa*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1245211;
 //BA.debugLineNum = 1245211;BA.debugLine="B4XPages.AddPage(\"NoVenta\", noVenta)";
_b4xpages._addpage /*String*/ (ba,"NoVenta",(Object)(__ref._noventa /*gunav2.keymon.com.mx.c_noventa*/ ));
RDebugUtils.currentLine=1245212;
 //BA.debugLineNum = 1245212;BA.debugLine="nota.Initialize";
__ref._nota /*gunav2.keymon.com.mx.c_nota*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1245213;
 //BA.debugLineNum = 1245213;BA.debugLine="B4XPages.AddPage(\"Nota\", nota)";
_b4xpages._addpage /*String*/ (ba,"Nota",(Object)(__ref._nota /*gunav2.keymon.com.mx.c_nota*/ ));
RDebugUtils.currentLine=1245214;
 //BA.debugLineNum = 1245214;BA.debugLine="pedidos.Initialize";
__ref._pedidos /*gunav2.keymon.com.mx.c_pedidos*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1245215;
 //BA.debugLineNum = 1245215;BA.debugLine="B4XPages.AddPage(\"Pedidos\", pedidos)";
_b4xpages._addpage /*String*/ (ba,"Pedidos",(Object)(__ref._pedidos /*gunav2.keymon.com.mx.c_pedidos*/ ));
RDebugUtils.currentLine=1245216;
 //BA.debugLineNum = 1245216;BA.debugLine="promos.Initialize";
__ref._promos /*gunav2.keymon.com.mx.c_promos*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1245217;
 //BA.debugLineNum = 1245217;BA.debugLine="B4XPages.AddPage(\"Promos\", promos)";
_b4xpages._addpage /*String*/ (ba,"Promos",(Object)(__ref._promos /*gunav2.keymon.com.mx.c_promos*/ ));
RDebugUtils.currentLine=1245218;
 //BA.debugLineNum = 1245218;BA.debugLine="historico.Initialize";
__ref._historico /*gunav2.keymon.com.mx.c_historico*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1245219;
 //BA.debugLineNum = 1245219;BA.debugLine="B4XPages.AddPage(\"Historico\", historico)";
_b4xpages._addpage /*String*/ (ba,"Historico",(Object)(__ref._historico /*gunav2.keymon.com.mx.c_historico*/ ));
RDebugUtils.currentLine=1245221;
 //BA.debugLineNum = 1245221;BA.debugLine="historicobat.Initialize";
__ref._historicobat /*gunav2.keymon.com.mx.c_historicobat*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1245222;
 //BA.debugLineNum = 1245222;BA.debugLine="B4XPages.AddPage(\"historicobat\", historicobat)";
_b4xpages._addpage /*String*/ (ba,"historicobat",(Object)(__ref._historicobat /*gunav2.keymon.com.mx.c_historicobat*/ ));
RDebugUtils.currentLine=1245224;
 //BA.debugLineNum = 1245224;BA.debugLine="Clientes_Completos.Initialize";
__ref._clientes_completos /*gunav2.keymon.com.mx.c_clientescompletos*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1245225;
 //BA.debugLineNum = 1245225;BA.debugLine="B4XPages.AddPage(\"Clientes_Completos\", Clientes_C";
_b4xpages._addpage /*String*/ (ba,"Clientes_Completos",(Object)(__ref._clientes_completos /*gunav2.keymon.com.mx.c_clientescompletos*/ ));
RDebugUtils.currentLine=1245227;
 //BA.debugLineNum = 1245227;BA.debugLine="Tclientes.Initialize";
__ref._tclientes /*gunav2.keymon.com.mx.v_tclientes*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1245228;
 //BA.debugLineNum = 1245228;BA.debugLine="B4XPages.AddPage(\"Tclientes\", Tclientes)";
_b4xpages._addpage /*String*/ (ba,"Tclientes",(Object)(__ref._tclientes /*gunav2.keymon.com.mx.v_tclientes*/ ));
RDebugUtils.currentLine=1245232;
 //BA.debugLineNum = 1245232;BA.debugLine="p_Main.Height = Root.Height";
__ref._p_main /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=1245233;
 //BA.debugLineNum = 1245233;BA.debugLine="p_Main.Width = Root.Width";
__ref._p_main /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=1245234;
 //BA.debugLineNum = 1245234;BA.debugLine="ruta = Starter.ruta";
__ref._ruta /*String*/  = _starter._ruta /*String*/ ;
RDebugUtils.currentLine=1245235;
 //BA.debugLineNum = 1245235;BA.debugLine="Provider.Initialize";
__ref._provider /*gunav2.keymon.com.mx.fileprovider*/ ._initialize /*String*/ (null,ba);
RDebugUtils.currentLine=1245236;
 //BA.debugLineNum = 1245236;BA.debugLine="If File.Exists(File.DirInternal, \"kmt.db\") = Fals";
if (__c.File.Exists(__c.File.getDirInternal(),"kmt.db")==__c.False) { 
RDebugUtils.currentLine=1245237;
 //BA.debugLineNum = 1245237;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", File.DirInte";
__c.File.Copy(__c.File.getDirAssets(),"kmt.db",__c.File.getDirInternal(),"kmt.db");
 };
RDebugUtils.currentLine=1245239;
 //BA.debugLineNum = 1245239;BA.debugLine="skmt.Initialize(File.DirInternal,\"kmt.db\", True)";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .Initialize(__c.File.getDirInternal(),"kmt.db",__c.True);
RDebugUtils.currentLine=1245240;
 //BA.debugLineNum = 1245240;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS IMP";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS IMPRESORA (HABILITADA)");
RDebugUtils.currentLine=1245242;
 //BA.debugLineNum = 1245242;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS FOT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS FOTOS (CLIENTE TEXT, FOTO BLOB, MOVIMIENTO TEXT)");
RDebugUtils.currentLine=1245243;
 //BA.debugLineNum = 1245243;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS PLA";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS PLAN_LEALTAD (PL_CLIENTE TEXT, PL_BANDERA TEXT)");
RDebugUtils.currentLine=1245245;
 //BA.debugLineNum = 1245245;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ABO";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS ABONOSP(NOTA TEXT, CLIENTE TEXT, SALDO_PENDIENTE TEXT, FECHA TEXT)");
RDebugUtils.currentLine=1245248;
 //BA.debugLineNum = 1245248;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS COM";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS COMENTARIOS (COMENTARTIO TEXT, CLIENTE TEXT, DESCARGADO TEXT)");
RDebugUtils.currentLine=1245250;
 //BA.debugLineNum = 1245250;BA.debugLine="Subs.agregaColumna(\"PLAN_LEALTAD\", \"DESCARGADO\",";
_subs._agregacolumna /*String*/ (ba,"PLAN_LEALTAD","DESCARGADO","TEXT");
RDebugUtils.currentLine=1245251;
 //BA.debugLineNum = 1245251;BA.debugLine="Subs.agregaColumna(\"PEDIDO_CLIENTE\", \"PC_FACTURA\"";
_subs._agregacolumna /*String*/ (ba,"PEDIDO_CLIENTE","PC_FACTURA","INTEGER");
RDebugUtils.currentLine=1245252;
 //BA.debugLineNum = 1245252;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS GPS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS GPS (HABILITADO)");
RDebugUtils.currentLine=1245254;
 //BA.debugLineNum = 1245254;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CAT_OBJETIVO_BAT (COB_VOLUMEN TEXT, COB_MARCAE TEXT, COB_PORTAFOLIO TEXT, COB_OBJPP TEXT, COB_GEV TEXT )");
RDebugUtils.currentLine=1245256;
 //BA.debugLineNum = 1245256;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("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)");
RDebugUtils.currentLine=1245258;
 //BA.debugLineNum = 1245258;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS his";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS hist_ventastodos (HVD_CLIENTE TEX, HVD_PRONOMBRE TEXT, HVD_CANT TEXT, HVD_COSTO_TOT TEXT, HVD_FECHA TEXT)");
RDebugUtils.currentLine=1245260;
 //BA.debugLineNum = 1245260;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CAT_GIRO(GIRO TEXT)");
RDebugUtils.currentLine=1245261;
 //BA.debugLineNum = 1245261;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CLI";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("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)");
RDebugUtils.currentLine=1245262;
 //BA.debugLineNum = 1245262;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("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)");
RDebugUtils.currentLine=1245263;
 //BA.debugLineNum = 1245263;BA.debugLine="Subs.agregaColumna(\"CAT_PROMOS_DESCUENTOS\", \"CAT_";
_subs._agregacolumna /*String*/ (ba,"CAT_PROMOS_DESCUENTOS","CAT_PD_RANGO2","INT");
RDebugUtils.currentLine=1245264;
 //BA.debugLineNum = 1245264;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("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 )");
RDebugUtils.currentLine=1245265;
 //BA.debugLineNum = 1245265;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS PRO";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS PROMO_ESP (HVD_CLIENTE)");
RDebugUtils.currentLine=1245266;
 //BA.debugLineNum = 1245266;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CAT_PROMO_ESP(CAT_PE_ID TEXT,CAT_PE_IDPROMO TEXT,CAT_PE_MONTO TEXT)");
RDebugUtils.currentLine=1245267;
 //BA.debugLineNum = 1245267;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("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)");
RDebugUtils.currentLine=1245268;
 //BA.debugLineNum = 1245268;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_GPS (HGDATE TEXT, HGLAT TEXT, HGLON TEXT)");
RDebugUtils.currentLine=1245269;
 //BA.debugLineNum = 1245269;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_STAY_STORE (HSS_CODIGO TEXT, HSS_IN TEXT, HSS_OUT TEXT, HSS_TOT TEXT)");
RDebugUtils.currentLine=1245270;
 //BA.debugLineNum = 1245270;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_STAY_OUT (HSO_INI TEXT, HSO_FIN TEXT)");
RDebugUtils.currentLine=1245271;
 //BA.debugLineNum = 1245271;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS INV";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS INVENT_X_ENVIAR (ALMACEN TEXT, PROID TEXT, CANTIDAD TEXT)");
RDebugUtils.currentLine=1245272;
 //BA.debugLineNum = 1245272;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("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)");
RDebugUtils.currentLine=1245273;
 //BA.debugLineNum = 1245273;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("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)");
RDebugUtils.currentLine=1245274;
 //BA.debugLineNum = 1245274;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_GEOCERCA (HGCLIENTE TEXT, HGDATE TEXT, HGLAT TEXT, HGLON TEXT)");
RDebugUtils.currentLine=1245275;
 //BA.debugLineNum = 1245275;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_FACE (HFCLIENTE TEXT, HFALIAS TEXT, HFRUTA TEXT, HFALMACEN TEXT)");
RDebugUtils.currentLine=1245276;
 //BA.debugLineNum = 1245276;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS RUT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS RUTA_GPS(FECHA INTEGER, LAT TEXT, LON TEXT)");
RDebugUtils.currentLine=1245277;
 //BA.debugLineNum = 1245277;BA.debugLine="skmt.ExecNonQuery(\"CREATE VIEW IF NOT EXISTS CATA";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("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");
RDebugUtils.currentLine=1245278;
 //BA.debugLineNum = 1245278;BA.debugLine="skmt.ExecNonQuery(\"CREATE VIEW IF NOT EXISTS tota";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("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");
RDebugUtils.currentLine=1245279;
 //BA.debugLineNum = 1245279;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_MARCAS_CUOTAS ( HMC_MARCA TEXT, HMC_TOTAL TEXT)");
RDebugUtils.currentLine=1245280;
 //BA.debugLineNum = 1245280;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_CODIGO_BARRAS(CODIGOKMTS TEXT, CODIGOB TEXT, LAT TEXT, LON TEXT)");
RDebugUtils.currentLine=1245281;
 //BA.debugLineNum = 1245281;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ENC";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("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)");
RDebugUtils.currentLine=1245282;
 //BA.debugLineNum = 1245282;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ENC";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS ENCUESTA_MODULO2 (CLIENTE TEXT, ALMACEN TEXT,P1 TEXT, P2 TEXT, P3 TEXT , P4 TEXT, P5 TEXT, P6 TEXT)");
RDebugUtils.currentLine=1245283;
 //BA.debugLineNum = 1245283;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("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)");
RDebugUtils.currentLine=1245284;
 //BA.debugLineNum = 1245284;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ENC";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("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)");
RDebugUtils.currentLine=1245285;
 //BA.debugLineNum = 1245285;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ENC";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("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)");
RDebugUtils.currentLine=1245286;
 //BA.debugLineNum = 1245286;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ENC";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("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)");
RDebugUtils.currentLine=1245287;
 //BA.debugLineNum = 1245287;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_ENCUESTA2(HE_CLIENTE TEXT)");
RDebugUtils.currentLine=1245288;
 //BA.debugLineNum = 1245288;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_ENCUESTA_CLIENTE (HEC_CLIENTE TEXT, HEC_MODULO TEXT)");
RDebugUtils.currentLine=1245289;
 //BA.debugLineNum = 1245289;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_ENCUESTA_AVISO_GIRO (HEAV_CLIENTE TEXT, HEAV_MODULO TEXT, HEAV_AVISO TEXT, HEAV_GIRO TEXT)");
RDebugUtils.currentLine=1245290;
 //BA.debugLineNum = 1245290;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("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)");
RDebugUtils.currentLine=1245291;
 //BA.debugLineNum = 1245291;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS kmt";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("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)");
RDebugUtils.currentLine=1245292;
 //BA.debugLineNum = 1245292;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_PRO2265(H_IDCLIENTE TEXT)");
RDebugUtils.currentLine=1245293;
 //BA.debugLineNum = 1245293;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ATI";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS ATIENDE(ATIENDE TEXT, CLIENTE TEXT)");
RDebugUtils.currentLine=1245295;
 //BA.debugLineNum = 1245295;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS COD";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CODIGOS_CREDITO(CODIGO TEXT, BANDERA TEXT)");
RDebugUtils.currentLine=1245297;
 //BA.debugLineNum = 1245297;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS TEL";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS TELEFONO(TELEFONO TEXT, CLIENTE TEXT)");
RDebugUtils.currentLine=1245298;
 //BA.debugLineNum = 1245298;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_PRO3054(H_IDCLIENTE TEXT)");
RDebugUtils.currentLine=1245299;
 //BA.debugLineNum = 1245299;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_PRO3055(H_IDCLIENTE TEXT)");
RDebugUtils.currentLine=1245300;
 //BA.debugLineNum = 1245300;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS RUT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS RUTA_SUPLENCIA(RS_RUTA TEXT)");
RDebugUtils.currentLine=1245301;
 //BA.debugLineNum = 1245301;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS TIC";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS TICKET_IMPRESO (idCliente TEXT)");
RDebugUtils.currentLine=1245303;
 //BA.debugLineNum = 1245303;BA.debugLine="Subs.agregaColumna(\"HIST_ENCUESTA\", \"HE_LAT\", \"TE";
_subs._agregacolumna /*String*/ (ba,"HIST_ENCUESTA","HE_LAT","TEXT");
RDebugUtils.currentLine=1245304;
 //BA.debugLineNum = 1245304;BA.debugLine="Subs.agregaColumna(\"HIST_ENCUESTA\", \"HE_FOTO\", \"B";
_subs._agregacolumna /*String*/ (ba,"HIST_ENCUESTA","HE_FOTO","BLOB");
RDebugUtils.currentLine=1245305;
 //BA.debugLineNum = 1245305;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"foto\", \"BLOB\")";
_subs._agregacolumna /*String*/ (ba,"kmt_info3","foto","BLOB");
RDebugUtils.currentLine=1245306;
 //BA.debugLineNum = 1245306;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_RECALCULO\", \"TEX";
_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_RECALCULO","TEXT");
RDebugUtils.currentLine=1245307;
 //BA.debugLineNum = 1245307;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_RECALCULADO\", \"T";
_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_RECALCULADO","TEXT");
RDebugUtils.currentLine=1245308;
 //BA.debugLineNum = 1245308;BA.debugLine="Subs.agregaColumna(\"CODIGOS_CREDITO\", \"CLIENTE\",";
_subs._agregacolumna /*String*/ (ba,"CODIGOS_CREDITO","CLIENTE","TEXT");
RDebugUtils.currentLine=1245309;
 //BA.debugLineNum = 1245309;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_RECCEDIS\", \"TEXT";
_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_RECCEDIS","TEXT");
RDebugUtils.currentLine=1245310;
 //BA.debugLineNum = 1245310;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_FUTURO\", \"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_FUTURO","TEXT");
RDebugUtils.currentLine=1245311;
 //BA.debugLineNum = 1245311;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_RECALCULOTOT\", \"";
_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_RECALCULOTOT","TEXT");
RDebugUtils.currentLine=1245312;
 //BA.debugLineNum = 1245312;BA.debugLine="Subs.agregaColumna(\"HIST_ENCUESTA\", \"HE_LON\", \"TE";
_subs._agregacolumna /*String*/ (ba,"HIST_ENCUESTA","HE_LON","TEXT");
RDebugUtils.currentLine=1245313;
 //BA.debugLineNum = 1245313;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\", \"HVD_FECHA\", \"T";
_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","HVD_FECHA","TEXT");
RDebugUtils.currentLine=1245314;
 //BA.debugLineNum = 1245314;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_NUMEROINT";
_subs._agregacolumna /*String*/ (ba,"kmt_info3","CAT_CL_NUMEROINT","TEXT");
RDebugUtils.currentLine=1245315;
 //BA.debugLineNum = 1245315;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_NUMEROEXT";
_subs._agregacolumna /*String*/ (ba,"kmt_info3","CAT_CL_NUMEROEXT","TEXT");
RDebugUtils.currentLine=1245316;
 //BA.debugLineNum = 1245316;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_REFERENCI";
_subs._agregacolumna /*String*/ (ba,"kmt_info3","CAT_CL_REFERENCIA","TEXT");
RDebugUtils.currentLine=1245317;
 //BA.debugLineNum = 1245317;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_NUMEROI";
_subs._agregacolumna /*String*/ (ba,"CLIENTES_NUEVOS","CN_NUMEROINT","TEXT");
RDebugUtils.currentLine=1245318;
 //BA.debugLineNum = 1245318;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_NUMEROE";
_subs._agregacolumna /*String*/ (ba,"CLIENTES_NUEVOS","CN_NUMEROEXT","TEXT");
RDebugUtils.currentLine=1245319;
 //BA.debugLineNum = 1245319;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_REFEREN";
_subs._agregacolumna /*String*/ (ba,"CLIENTES_NUEVOS","CN_REFERENCIA","TEXT");
RDebugUtils.currentLine=1245320;
 //BA.debugLineNum = 1245320;BA.debugLine="Subs.agregaColumna(\"COMENTARIOS\", \"comentario_tmp";
_subs._agregacolumna /*String*/ (ba,"COMENTARIOS","comentario_tmp","TEXT");
RDebugUtils.currentLine=1245322;
 //BA.debugLineNum = 1245322;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"encuesta\", \"TEXT";
_subs._agregacolumna /*String*/ (ba,"kmt_info3","encuesta","TEXT");
RDebugUtils.currentLine=1245323;
 //BA.debugLineNum = 1245323;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_CLASIFICA";
_subs._agregacolumna /*String*/ (ba,"kmt_info3","CAT_CL_CLASIFICADOR4","TEXT");
RDebugUtils.currentLine=1245324;
 //BA.debugLineNum = 1245324;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_CONVER";
_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_CONVERSION3","TEXT");
RDebugUtils.currentLine=1245325;
 //BA.debugLineNum = 1245325;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_CONVER";
_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_CONVERSION2","TEXT");
RDebugUtils.currentLine=1245326;
 //BA.debugLineNum = 1245326;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_CLASIFICA";
_subs._agregacolumna /*String*/ (ba,"kmt_info3","CAT_CL_CLASIFICADOR3","TEXT");
RDebugUtils.currentLine=1245327;
 //BA.debugLineNum = 1245327;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_CLASIFICA";
_subs._agregacolumna /*String*/ (ba,"kmt_info3","CAT_CL_CLASIFICADOR2","TEXT");
RDebugUtils.currentLine=1245328;
 //BA.debugLineNum = 1245328;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_TIPOCLIEN";
_subs._agregacolumna /*String*/ (ba,"kmt_info3","CAT_CL_TIPOCLIENTE","TEXT");
RDebugUtils.currentLine=1245329;
 //BA.debugLineNum = 1245329;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_LIMITECRE";
_subs._agregacolumna /*String*/ (ba,"kmt_info3","CAT_CL_LIMITECREDITO","TEXT");
RDebugUtils.currentLine=1245330;
 //BA.debugLineNum = 1245330;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_DIASCREDI";
_subs._agregacolumna /*String*/ (ba,"kmt_info3","CAT_CL_DIASCREDITO","TEXT");
RDebugUtils.currentLine=1245331;
 //BA.debugLineNum = 1245331;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CONFIRMADO\", \"TE";
_subs._agregacolumna /*String*/ (ba,"kmt_info3","CONFIRMADO","TEXT");
RDebugUtils.currentLine=1245332;
 //BA.debugLineNum = 1245332;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_BCREDITO\"";
_subs._agregacolumna /*String*/ (ba,"kmt_info3","CAT_CL_BCREDITO","TEXT");
RDebugUtils.currentLine=1245333;
 //BA.debugLineNum = 1245333;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_DEV\",";
_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_DEV","TEXT");
RDebugUtils.currentLine=1245334;
 //BA.debugLineNum = 1245334;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_PA_BSEGME";
_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_PA_BSEGMENTA","TEXT");
RDebugUtils.currentLine=1245335;
 //BA.debugLineNum = 1245335;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_LISTAPREC";
_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_LISTAPRECIO","TEXT");
RDebugUtils.currentLine=1245336;
 //BA.debugLineNum = 1245336;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_PA_SEGMEN";
_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_PA_SEGMENTAV","TEXT");
RDebugUtils.currentLine=1245337;
 //BA.debugLineNum = 1245337;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD2\", \"CAT_PA_BSEGM";
_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD2","CAT_PA_BSEGMENTA","TEXT");
RDebugUtils.currentLine=1245338;
 //BA.debugLineNum = 1245338;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD2\", \"CAT_PA_SEGME";
_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD2","CAT_PA_SEGMENTAV","TEXT");
RDebugUtils.currentLine=1245339;
 //BA.debugLineNum = 1245339;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_SOLICIT";
_subs._agregacolumna /*String*/ (ba,"CLIENTES_NUEVOS","CN_SOLICITA","TEXT");
RDebugUtils.currentLine=1245340;
 //BA.debugLineNum = 1245340;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_COLONIA";
_subs._agregacolumna /*String*/ (ba,"CLIENTES_NUEVOS","CN_COLONIA","TEXT");
RDebugUtils.currentLine=1245341;
 //BA.debugLineNum = 1245341;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_TELEFON";
_subs._agregacolumna /*String*/ (ba,"CLIENTES_NUEVOS","CN_TELEFONO","TEXT");
RDebugUtils.currentLine=1245342;
 //BA.debugLineNum = 1245342;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_CP\", \"T";
_subs._agregacolumna /*String*/ (ba,"CLIENTES_NUEVOS","CN_CP","TEXT");
RDebugUtils.currentLine=1245343;
 //BA.debugLineNum = 1245343;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_CALLE1\"";
_subs._agregacolumna /*String*/ (ba,"CLIENTES_NUEVOS","CN_CALLE1","TEXT");
RDebugUtils.currentLine=1245344;
 //BA.debugLineNum = 1245344;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_CALLE2\"";
_subs._agregacolumna /*String*/ (ba,"CLIENTES_NUEVOS","CN_CALLE2","TEXT");
RDebugUtils.currentLine=1245345;
 //BA.debugLineNum = 1245345;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_RECCANT\", \"TEXT\"";
_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_RECCANT","TEXT");
RDebugUtils.currentLine=1245346;
 //BA.debugLineNum = 1245346;BA.debugLine="Subs.agregaColumna(\"FOTOS\", \"FECHA\", \"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"FOTOS","FECHA","TEXT");
RDebugUtils.currentLine=1245347;
 //BA.debugLineNum = 1245347;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev";
try {RDebugUtils.currentLine=1245348;
 //BA.debugLineNum = 1245348;BA.debugLine="c=skmt.ExecQuery(\"SELECT COUNT(*) AS fCol FROM p";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS fCol FROM pragma_table_info('ENCUESTA_MODULO3') WHERE name='P10'")));
RDebugUtils.currentLine=1245349;
 //BA.debugLineNum = 1245349;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=1245350;
 //BA.debugLineNum = 1245350;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("fCol")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=1245351;
 //BA.debugLineNum = 1245351;BA.debugLine="skmt.ExecNonQuery(\"ALTER TABLE ENCUESTA_MODULO3";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("ALTER TABLE ENCUESTA_MODULO3 ADD COLUMN P10 TEXT");
 };
 } 
       catch (Exception e148) {
			ba.setLastException(e148);RDebugUtils.currentLine=1245354;
 //BA.debugLineNum = 1245354;BA.debugLine="Try";
try {RDebugUtils.currentLine=1245355;
 //BA.debugLineNum = 1245355;BA.debugLine="skmt.ExecNonQuery(\"ALTER TABLE ENCUESTA_MODULO3";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("ALTER TABLE ENCUESTA_MODULO3 ADD COLUMN P10 TEXT");
 } 
       catch (Exception e151) {
			ba.setLastException(e151);RDebugUtils.currentLine=1245357;
 //BA.debugLineNum = 1245357;BA.debugLine="Log(LastException)";
__c.LogImpl("01245357",BA.ObjectToString(__c.LastException(ba)),0);
 };
 };
RDebugUtils.currentLine=1245360;
 //BA.debugLineNum = 1245360;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev";
try {RDebugUtils.currentLine=1245361;
 //BA.debugLineNum = 1245361;BA.debugLine="c=skmt.ExecQuery(\"SELECT COUNT(*) AS fCol FROM p";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS fCol FROM pragma_table_info('ENCUESTA_MODULO3') WHERE name='P11'")));
RDebugUtils.currentLine=1245362;
 //BA.debugLineNum = 1245362;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=1245363;
 //BA.debugLineNum = 1245363;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("fCol")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=1245364;
 //BA.debugLineNum = 1245364;BA.debugLine="skmt.ExecNonQuery(\"ALTER TABLE ENCUESTA_MODULO3";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("ALTER TABLE ENCUESTA_MODULO3 ADD COLUMN P11 TEXT");
 };
 } 
       catch (Exception e161) {
			ba.setLastException(e161);RDebugUtils.currentLine=1245367;
 //BA.debugLineNum = 1245367;BA.debugLine="Try";
try {RDebugUtils.currentLine=1245368;
 //BA.debugLineNum = 1245368;BA.debugLine="skmt.ExecNonQuery(\"ALTER TABLE ENCUESTA_MODULO3";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("ALTER TABLE ENCUESTA_MODULO3 ADD COLUMN P11 TEXT");
 } 
       catch (Exception e164) {
			ba.setLastException(e164);RDebugUtils.currentLine=1245370;
 //BA.debugLineNum = 1245370;BA.debugLine="Log(LastException)";
__c.LogImpl("01245370",BA.ObjectToString(__c.LastException(ba)),0);
 };
 };
RDebugUtils.currentLine=1245373;
 //BA.debugLineNum = 1245373;BA.debugLine="c=skmt.ExecQuery(\"select  COUNT(*) AS CUANTOS fro";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select  COUNT(*) AS CUANTOS from HIST_STAY_OUT ")));
RDebugUtils.currentLine=1245374;
 //BA.debugLineNum = 1245374;BA.debugLine="C.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=1245375;
 //BA.debugLineNum = 1245375;BA.debugLine="If c.GetString(\"CUANTOS\")  = 0 Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=1245376;
 //BA.debugLineNum = 1245376;BA.debugLine="skmt.ExecNonQuery(\"INSERT INTO HIST_STAY_OUT(HSO";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("INSERT INTO HIST_STAY_OUT(HSO_INI, HSO_FIN) VALUES (0,0)");
 };
RDebugUtils.currentLine=1245378;
 //BA.debugLineNum = 1245378;BA.debugLine="C.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=1245382;
 //BA.debugLineNum = 1245382;BA.debugLine="l_version.Text = Application.VersionName";
__ref._l_version /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Application.getVersionName()));
RDebugUtils.currentLine=1245384;
 //BA.debugLineNum = 1245384;BA.debugLine="PopupMenu.Initialize(\"PopupMenu\", b_menu)";
__ref._popupmenu /*com.rootsoft.rspopupmenu.RSPopupMenu*/ .Initialize(ba,"PopupMenu",(anywheresoftware.b4a.objects.ConcreteViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ConcreteViewWrapper(), (android.view.View)(__ref._b_menu /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getObject())));
RDebugUtils.currentLine=1245385;
 //BA.debugLineNum = 1245385;BA.debugLine="PopupMenu.AddMenuItem(0, 0, \"View\")";
__ref._popupmenu /*com.rootsoft.rspopupmenu.RSPopupMenu*/ .AddMenuItem((int) (0),(int) (0),"View");
RDebugUtils.currentLine=1245386;
 //BA.debugLineNum = 1245386;BA.debugLine="PopupMenu.AddMenuItem(1, 1, \"Edit\")";
__ref._popupmenu /*com.rootsoft.rspopupmenu.RSPopupMenu*/ .AddMenuItem((int) (1),(int) (1),"Edit");
RDebugUtils.currentLine=1245387;
 //BA.debugLineNum = 1245387;BA.debugLine="PopupMenu.AddMenuItem(2, 2, \"Details\")";
__ref._popupmenu /*com.rootsoft.rspopupmenu.RSPopupMenu*/ .AddMenuItem((int) (2),(int) (2),"Details");
RDebugUtils.currentLine=1245388;
 //BA.debugLineNum = 1245388;BA.debugLine="PopupMenu.AddMenuItem(3, 3, \"Remove\")";
__ref._popupmenu /*com.rootsoft.rspopupmenu.RSPopupMenu*/ .AddMenuItem((int) (3),(int) (3),"Remove");
RDebugUtils.currentLine=1245390;
 //BA.debugLineNum = 1245390;BA.debugLine="montoActual  = 0";
__ref._montoactual /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=1245391;
 //BA.debugLineNum = 1245391;BA.debugLine="clientesTotal = 0";
__ref._clientestotal /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=1245392;
 //BA.debugLineNum = 1245392;BA.debugLine="clientesVenta =  0";
__ref._clientesventa /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=1245393;
 //BA.debugLineNum = 1245393;BA.debugLine="clientesVisitados = 0";
__ref._clientesvisitados /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=1245394;
 //BA.debugLineNum = 1245394;BA.debugLine="almacen = 0";
__ref._almacen /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=1245395;
 //BA.debugLineNum = 1245395;BA.debugLine="rutaPreventa =  0";
__ref._rutapreventa /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=1245396;
 //BA.debugLineNum = 1245396;BA.debugLine="p_appUpdate.Visible = False";
__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=1245398;
 //BA.debugLineNum = 1245398;BA.debugLine="If Subs.traeUsarIntentBDWA Then";
if (_subs._traeusarintentbdwa /*boolean*/ (ba)) { 
RDebugUtils.currentLine=1245399;
 //BA.debugLineNum = 1245399;BA.debugLine="Subs.importaBDDesdeWhatsApp";
_subs._importabddesdewhatsapp /*String*/ (ba);
 };
RDebugUtils.currentLine=1245401;
 //BA.debugLineNum = 1245401;BA.debugLine="End Sub";
return "";
}
public String  _initialize(gunav2.keymon.com.mx.b4xmainpage __ref,anywheresoftware.b4a.BA _ba) throws Exception{
__ref = this;
innerInitialize(_ba);
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "initialize", false))
	 {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba}));}
RDebugUtils.currentLine=1179648;
 //BA.debugLineNum = 1179648;BA.debugLine="Public Sub Initialize";
RDebugUtils.currentLine=1179650;
 //BA.debugLineNum = 1179650;BA.debugLine="End Sub";
return "";
}
public String  _b4xswitch1_valuechanged(gunav2.keymon.com.mx.b4xmainpage __ref,boolean _value) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b4xswitch1_valuechanged", false))
	 {return ((String) Debug.delegate(ba, "b4xswitch1_valuechanged", new Object[] {_value}));}
RDebugUtils.currentLine=2621440;
 //BA.debugLineNum = 2621440;BA.debugLine="Private Sub B4XSwitch1_ValueChanged (Value As Bool";
RDebugUtils.currentLine=2621441;
 //BA.debugLineNum = 2621441;BA.debugLine="If Value Then";
if (_value) { 
RDebugUtils.currentLine=2621442;
 //BA.debugLineNum = 2621442;BA.debugLine="Log(\"1\")";
__c.LogImpl("02621442","1",0);
RDebugUtils.currentLine=2621443;
 //BA.debugLineNum = 2621443;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE IMPRESORA SET HABILIT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE IMPRESORA SET HABILITADA = (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(1)}));
 }else {
RDebugUtils.currentLine=2621445;
 //BA.debugLineNum = 2621445;BA.debugLine="Log(\"desactivado\")";
__c.LogImpl("02621445","desactivado",0);
RDebugUtils.currentLine=2621446;
 //BA.debugLineNum = 2621446;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE IMPRESORA SET HABILIT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE IMPRESORA SET HABILITADA = (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(0)}));
 };
RDebugUtils.currentLine=2621448;
 //BA.debugLineNum = 2621448;BA.debugLine="End Sub";
return "";
}
public String  _b4xswitch2_valuechanged(gunav2.keymon.com.mx.b4xmainpage __ref,boolean _value2) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b4xswitch2_valuechanged", false))
	 {return ((String) Debug.delegate(ba, "b4xswitch2_valuechanged", new Object[] {_value2}));}
RDebugUtils.currentLine=2686976;
 //BA.debugLineNum = 2686976;BA.debugLine="Private Sub B4XSwitch2_ValueChanged (Value2 As Boo";
RDebugUtils.currentLine=2686977;
 //BA.debugLineNum = 2686977;BA.debugLine="c = skmt.ExecQuery2(\"SELECT CAT_VA_VALOR FROM CAT";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT CAT_VA_VALOR FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"CARGA_DIA"})));
RDebugUtils.currentLine=2686978;
 //BA.debugLineNum = 2686978;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=2686979;
 //BA.debugLineNum = 2686979;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=2686980;
 //BA.debugLineNum = 2686980;BA.debugLine="If c.GetString(\"CAT_VA_VALOR\") = 1 Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_VA_VALOR")).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=2686981;
 //BA.debugLineNum = 2686981;BA.debugLine="If Value2  Then";
if (_value2) { 
RDebugUtils.currentLine=2686982;
 //BA.debugLineNum = 2686982;BA.debugLine="p_validacion.Visible = True";
__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=2686983;
 //BA.debugLineNum = 2686983;BA.debugLine="p_validacion.Left = (Root.Width/2) - (p_appUpd";
__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setLeft((int) ((__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)2)-(__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth()/(double)2)));
RDebugUtils.currentLine=2686984;
 //BA.debugLineNum = 2686984;BA.debugLine="Subs.panelVisible(p_validacion,0,0)";
_subs._panelvisible /*String*/ (ba,__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
RDebugUtils.currentLine=2686985;
 //BA.debugLineNum = 2686985;BA.debugLine="p_validacion.Height = Root.Height";
__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=2686986;
 //BA.debugLineNum = 2686986;BA.debugLine="p_validacion.Width = Root.Width";
__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
 }else {
RDebugUtils.currentLine=2686988;
 //BA.debugLineNum = 2686988;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE GPS SET HABILITADO";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE GPS SET HABILITADO = (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(0)}));
 };
 }else {
RDebugUtils.currentLine=2686991;
 //BA.debugLineNum = 2686991;BA.debugLine="MsgboxAsync(\"Por favor primero haz carga de día";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor primero haz carga de día"),BA.ObjectToCharSequence("Atención"),ba);
RDebugUtils.currentLine=2686992;
 //BA.debugLineNum = 2686992;BA.debugLine="B4XSwitch2.Value = False";
__ref._b4xswitch2 /*gunav2.keymon.com.mx.b4xswitch*/ ._setvalue /*boolean*/ (null,__c.False);
 };
 }else {
RDebugUtils.currentLine=2686995;
 //BA.debugLineNum = 2686995;BA.debugLine="MsgboxAsync(\"Por favor primero haz carga de día\"";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor primero haz carga de día"),BA.ObjectToCharSequence("Atención"),ba);
RDebugUtils.currentLine=2686996;
 //BA.debugLineNum = 2686996;BA.debugLine="B4XSwitch2.Value = False";
__ref._b4xswitch2 /*gunav2.keymon.com.mx.b4xswitch*/ ._setvalue /*boolean*/ (null,__c.False);
 };
RDebugUtils.currentLine=2686998;
 //BA.debugLineNum = 2686998;BA.debugLine="End Sub";
return "";
}
public String  _cb_importarbdwa_checkedchange(gunav2.keymon.com.mx.b4xmainpage __ref,boolean _checked) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "cb_importarbdwa_checkedchange", false))
	 {return ((String) Debug.delegate(ba, "cb_importarbdwa_checkedchange", new Object[] {_checked}));}
RDebugUtils.currentLine=3211264;
 //BA.debugLineNum = 3211264;BA.debugLine="Private Sub cb_importarBDWA_CheckedChange(Checked";
RDebugUtils.currentLine=3211266;
 //BA.debugLineNum = 3211266;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_VARIAB";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = 'IMPORTAR_BD_WA'");
RDebugUtils.currentLine=3211267;
 //BA.debugLineNum = 3211267;BA.debugLine="Starter.skmt.ExecNonQuery($\"insert into CAT_VARIA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into CAT_VARIABLES (CAT_VA_DESCRIPCION, CAT_VA_VALOR) values ('IMPORTAR_BD_WA', '"+__c.SmartStringFormatter("",(Object)(_checked))+"')"));
RDebugUtils.currentLine=3211268;
 //BA.debugLineNum = 3211268;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(gunav2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
RDebugUtils.currentLine=1114112;
 //BA.debugLineNum = 1114112;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=1114113;
 //BA.debugLineNum = 1114113;BA.debugLine="Private Root As B4XView";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=1114114;
 //BA.debugLineNum = 1114114;BA.debugLine="Private xui As XUI";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=1114115;
 //BA.debugLineNum = 1114115;BA.debugLine="Public login As B4XMainPage";
_login = new gunav2.keymon.com.mx.b4xmainpage();
RDebugUtils.currentLine=1114116;
 //BA.debugLineNum = 1114116;BA.debugLine="Public principal As C_Principal";
_principal = new gunav2.keymon.com.mx.c_principal();
RDebugUtils.currentLine=1114117;
 //BA.debugLineNum = 1114117;BA.debugLine="Public clientes As C_Clientes";
_clientes = new gunav2.keymon.com.mx.c_clientes();
RDebugUtils.currentLine=1114118;
 //BA.debugLineNum = 1114118;BA.debugLine="Public cliente As C_Cliente";
_cliente = new gunav2.keymon.com.mx.c_cliente();
RDebugUtils.currentLine=1114119;
 //BA.debugLineNum = 1114119;BA.debugLine="Public productos As C_Productos";
_productos = new gunav2.keymon.com.mx.c_productos();
RDebugUtils.currentLine=1114120;
 //BA.debugLineNum = 1114120;BA.debugLine="Public updateAvailable As C_UpdateAvailable";
_updateavailable = new gunav2.keymon.com.mx.c_updateavailable();
RDebugUtils.currentLine=1114121;
 //BA.debugLineNum = 1114121;BA.debugLine="Public mapas As C_Mapas";
_mapas = new gunav2.keymon.com.mx.c_mapas();
RDebugUtils.currentLine=1114122;
 //BA.debugLineNum = 1114122;BA.debugLine="Public nuevoCliente As C_NuevoCliente";
_nuevocliente = new gunav2.keymon.com.mx.c_nuevocliente();
RDebugUtils.currentLine=1114123;
 //BA.debugLineNum = 1114123;BA.debugLine="Public ticketsDia As C_TicketsDia";
_ticketsdia = new gunav2.keymon.com.mx.c_ticketsdia();
RDebugUtils.currentLine=1114124;
 //BA.debugLineNum = 1114124;BA.debugLine="Public noVenta As C_NoVenta";
_noventa = new gunav2.keymon.com.mx.c_noventa();
RDebugUtils.currentLine=1114125;
 //BA.debugLineNum = 1114125;BA.debugLine="Public nota As C_Nota";
_nota = new gunav2.keymon.com.mx.c_nota();
RDebugUtils.currentLine=1114126;
 //BA.debugLineNum = 1114126;BA.debugLine="Public pedidos As C_Pedidos";
_pedidos = new gunav2.keymon.com.mx.c_pedidos();
RDebugUtils.currentLine=1114127;
 //BA.debugLineNum = 1114127;BA.debugLine="Public promos As C_Promos";
_promos = new gunav2.keymon.com.mx.c_promos();
RDebugUtils.currentLine=1114128;
 //BA.debugLineNum = 1114128;BA.debugLine="Public historico As C_Historico";
_historico = new gunav2.keymon.com.mx.c_historico();
RDebugUtils.currentLine=1114129;
 //BA.debugLineNum = 1114129;BA.debugLine="Public Clientes_Completos As C_ClientesCompletos";
_clientes_completos = new gunav2.keymon.com.mx.c_clientescompletos();
RDebugUtils.currentLine=1114130;
 //BA.debugLineNum = 1114130;BA.debugLine="Public Tclientes As V_Tclientes";
_tclientes = new gunav2.keymon.com.mx.v_tclientes();
RDebugUtils.currentLine=1114132;
 //BA.debugLineNum = 1114132;BA.debugLine="Public historicobat As C_historicobat";
_historicobat = new gunav2.keymon.com.mx.c_historicobat();
RDebugUtils.currentLine=1114134;
 //BA.debugLineNum = 1114134;BA.debugLine="Dim reqManager As DBRequestManager";
_reqmanager = new gunav2.keymon.com.mx.dbrequestmanager();
RDebugUtils.currentLine=1114135;
 //BA.debugLineNum = 1114135;BA.debugLine="Dim v As String = Application.VersionName";
_v = __c.Application.getVersionName();
RDebugUtils.currentLine=1114136;
 //BA.debugLineNum = 1114136;BA.debugLine="Dim ruta As String";
_ruta = "";
RDebugUtils.currentLine=1114137;
 //BA.debugLineNum = 1114137;BA.debugLine="Dim tgl As Toggle";
_tgl = new com.rootsoft.togglelibrary.ToggleLibrary();
RDebugUtils.currentLine=1114138;
 //BA.debugLineNum = 1114138;BA.debugLine="Dim lat_gps, lon_gps As String";
_lat_gps = "";
_lon_gps = "";
RDebugUtils.currentLine=1114139;
 //BA.debugLineNum = 1114139;BA.debugLine="Dim usuario As String";
_usuario = "";
RDebugUtils.currentLine=1114140;
 //BA.debugLineNum = 1114140;BA.debugLine="Dim batt As Int";
_batt = 0;
RDebugUtils.currentLine=1114141;
 //BA.debugLineNum = 1114141;BA.debugLine="Dim skmt As SQL";
_skmt = new anywheresoftware.b4a.sql.SQL();
RDebugUtils.currentLine=1114142;
 //BA.debugLineNum = 1114142;BA.debugLine="Dim montoActual, clientesTotal, clientesVenta, cl";
_montoactual = "";
_clientestotal = "";
_clientesventa = "";
_clientesvisitados = "";
_almacen = "";
_rutapreventa = "";
RDebugUtils.currentLine=1114143;
 //BA.debugLineNum = 1114143;BA.debugLine="Dim server, fechaRuta As String";
_server = "";
_fecharuta = "";
RDebugUtils.currentLine=1114144;
 //BA.debugLineNum = 1114144;BA.debugLine="Dim Logger As Boolean";
_logger = false;
RDebugUtils.currentLine=1114145;
 //BA.debugLineNum = 1114145;BA.debugLine="Dim mac_impresora As String";
_mac_impresora = "";
RDebugUtils.currentLine=1114146;
 //BA.debugLineNum = 1114146;BA.debugLine="Dim Phn As PhoneId";
_phn = new anywheresoftware.b4a.phone.Phone.PhoneId();
RDebugUtils.currentLine=1114148;
 //BA.debugLineNum = 1114148;BA.debugLine="Dim user As EditText";
_user = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=1114149;
 //BA.debugLineNum = 1114149;BA.debugLine="Dim pass As EditText";
_pass = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=1114150;
 //BA.debugLineNum = 1114150;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=1114151;
 //BA.debugLineNum = 1114151;BA.debugLine="Dim existe As String";
_existe = "";
RDebugUtils.currentLine=1114152;
 //BA.debugLineNum = 1114152;BA.debugLine="Dim paso1 As String";
_paso1 = "";
RDebugUtils.currentLine=1114153;
 //BA.debugLineNum = 1114153;BA.debugLine="Private IMEN As Label";
_imen = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=1114154;
 //BA.debugLineNum = 1114154;BA.debugLine="Dim IMEI As String = \"\"";
_imei = "";
RDebugUtils.currentLine=1114155;
 //BA.debugLineNum = 1114155;BA.debugLine="Dim alterno As String";
_alterno = "";
RDebugUtils.currentLine=1114156;
 //BA.debugLineNum = 1114156;BA.debugLine="Private b_menu As Button";
_b_menu = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=1114157;
 //BA.debugLineNum = 1114157;BA.debugLine="Dim PopupMenu As RSPopupMenu";
_popupmenu = new com.rootsoft.rspopupmenu.RSPopupMenu();
RDebugUtils.currentLine=1114158;
 //BA.debugLineNum = 1114158;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=1114159;
 //BA.debugLineNum = 1114159;BA.debugLine="Private PDF As Button";
_pdf = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=1114160;
 //BA.debugLineNum = 1114160;BA.debugLine="Private bpv1 As BatteryProgressView";
_bpv1 = new batteryprogressviewwrapper.batteryprogressviewWrapper();
RDebugUtils.currentLine=1114161;
 //BA.debugLineNum = 1114161;BA.debugLine="Dim batterystatus(11) As Int";
_batterystatus = new int[(int) (11)];
;
RDebugUtils.currentLine=1114162;
 //BA.debugLineNum = 1114162;BA.debugLine="Private bu As BatteryUtilities";
_bu = new gunav2.keymon.com.mx.batteryutilities();
RDebugUtils.currentLine=1114163;
 //BA.debugLineNum = 1114163;BA.debugLine="Private b_apk As Button";
_b_apk = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=1114164;
 //BA.debugLineNum = 1114164;BA.debugLine="Private i_engrane As ImageView";
_i_engrane = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=1114165;
 //BA.debugLineNum = 1114165;BA.debugLine="Private p_Main As Panel";
_p_main = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=1114166;
 //BA.debugLineNum = 1114166;BA.debugLine="Private p_appUpdate As Panel";
_p_appupdate = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=1114167;
 //BA.debugLineNum = 1114167;BA.debugLine="Private b_regesar As Button";
_b_regesar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=1114168;
 //BA.debugLineNum = 1114168;BA.debugLine="Private l_version As Label";
_l_version = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=1114169;
 //BA.debugLineNum = 1114169;BA.debugLine="Private ImageView1 As ImageView";
_imageview1 = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=1114170;
 //BA.debugLineNum = 1114170;BA.debugLine="Private Label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=1114171;
 //BA.debugLineNum = 1114171;BA.debugLine="Dim Entrar As Button";
_entrar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=1114172;
 //BA.debugLineNum = 1114172;BA.debugLine="Dim tipo_venta As String = Subs.traeTipoVentaDeBD";
_tipo_venta = _subs._traetipoventadebd /*String*/ (ba);
RDebugUtils.currentLine=1114173;
 //BA.debugLineNum = 1114173;BA.debugLine="Dim bTerminarClicked As Boolean = False";
_bterminarclicked = __c.False;
RDebugUtils.currentLine=1114174;
 //BA.debugLineNum = 1114174;BA.debugLine="Private lv_server As ListView";
_lv_server = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=1114175;
 //BA.debugLineNum = 1114175;BA.debugLine="Private l_server As Label";
_l_server = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=1114176;
 //BA.debugLineNum = 1114176;BA.debugLine="Private b_envioBD As Button";
_b_enviobd = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=1114177;
 //BA.debugLineNum = 1114177;BA.debugLine="Public Provider As FileProvider";
_provider = new gunav2.keymon.com.mx.fileprovider();
RDebugUtils.currentLine=1114178;
 //BA.debugLineNum = 1114178;BA.debugLine="Public rutaBDBackup = \"\"";
_rutabdbackup = "";
RDebugUtils.currentLine=1114179;
 //BA.debugLineNum = 1114179;BA.debugLine="Private B4XSwitch1 As B4XSwitch";
_b4xswitch1 = new gunav2.keymon.com.mx.b4xswitch();
RDebugUtils.currentLine=1114180;
 //BA.debugLineNum = 1114180;BA.debugLine="Private p_validacion As Panel";
_p_validacion = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=1114181;
 //BA.debugLineNum = 1114181;BA.debugLine="Private B4XSwitch2 As B4XSwitch";
_b4xswitch2 = new gunav2.keymon.com.mx.b4xswitch();
RDebugUtils.currentLine=1114182;
 //BA.debugLineNum = 1114182;BA.debugLine="Dim x As Int";
_x = 0;
RDebugUtils.currentLine=1114183;
 //BA.debugLineNum = 1114183;BA.debugLine="Private et_codigo As EditText";
_et_codigo = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=1114184;
 //BA.debugLineNum = 1114184;BA.debugLine="Dim buscandoActualizacion As Boolean = False";
_buscandoactualizacion = __c.False;
RDebugUtils.currentLine=1114185;
 //BA.debugLineNum = 1114185;BA.debugLine="Dim actualizacionRevisada As Boolean = False 'Par";
_actualizacionrevisada = __c.False;
RDebugUtils.currentLine=1114186;
 //BA.debugLineNum = 1114186;BA.debugLine="Private b_actualizacion As Button";
_b_actualizacion = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=1114187;
 //BA.debugLineNum = 1114187;BA.debugLine="Private et_server As EditText";
_et_server = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=1114188;
 //BA.debugLineNum = 1114188;BA.debugLine="Dim intentUsado As Boolean = False";
_intentusado = __c.False;
RDebugUtils.currentLine=1114189;
 //BA.debugLineNum = 1114189;BA.debugLine="Private p_importarBDWA As Panel";
_p_importarbdwa = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=1114190;
 //BA.debugLineNum = 1114190;BA.debugLine="Private cb_importarBDWA As CheckBox";
_cb_importarbdwa = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
RDebugUtils.currentLine=1114192;
 //BA.debugLineNum = 1114192;BA.debugLine="Dim pkg As PackageManager";
_pkg = new anywheresoftware.b4a.phone.PackageManagerWrapper();
RDebugUtils.currentLine=1114194;
 //BA.debugLineNum = 1114194;BA.debugLine="End Sub";
return "";
}
public void  _copiadb(gunav2.keymon.com.mx.b4xmainpage __ref) throws Exception{
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "copiadb", false))
	 {Debug.delegate(ba, "copiadb", null); return;}
ResumableSub_copiaDB rsub = new ResumableSub_copiaDB(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_copiaDB extends BA.ResumableSub {
public ResumableSub_copiaDB(gunav2.keymon.com.mx.b4xmainpage parent,gunav2.keymon.com.mx.b4xmainpage __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
gunav2.keymon.com.mx.b4xmainpage __ref;
gunav2.keymon.com.mx.b4xmainpage parent;
String _permission = "";
boolean _result = false;
String _thedir = "";

@Override
public void resume(BA ba, Object[] result) throws Exception{
RDebugUtils.currentModule="b4xmainpage";

    while (true) {
try {

        switch (state) {
            case -1:
return;

case 0:
//C
this.state = 1;
RDebugUtils.currentLine=2097153;
 //BA.debugLineNum = 2097153;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .CheckAndRequest(ba,parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_WRITE_EXTERNAL_STORAGE);
RDebugUtils.currentLine=2097154;
 //BA.debugLineNum = 2097154;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
parent.__c.WaitFor("b4xpage_permissionresult", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "copiadb"), null);
this.state = 19;
return;
case 19:
//C
this.state = 1;
_permission = (String) result[1];
_result = (Boolean) result[2];
;
RDebugUtils.currentLine=2097155;
 //BA.debugLineNum = 2097155;BA.debugLine="Dim theDir As String = \"\"";
_thedir = "";
RDebugUtils.currentLine=2097156;
 //BA.debugLineNum = 2097156;BA.debugLine="If Result Then";
if (true) break;

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

case 3:
//C
this.state = 4;
RDebugUtils.currentLine=2097157;
 //BA.debugLineNum = 2097157;BA.debugLine="Dim theDir As String";
_thedir = "";
RDebugUtils.currentLine=2097158;
 //BA.debugLineNum = 2097158;BA.debugLine="Try";
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;
RDebugUtils.currentLine=2097159;
 //BA.debugLineNum = 2097159;BA.debugLine="File.MakeDir(File.DirRootExternal,\"kmts\")";
parent.__c.File.MakeDir(parent.__c.File.getDirRootExternal(),"kmts");
RDebugUtils.currentLine=2097160;
 //BA.debugLineNum = 2097160;BA.debugLine="theDir = \"/kmts\"";
_thedir = "/kmts";
 if (true) break;

case 8:
//C
this.state = 9;
this.catchState = 0;
RDebugUtils.currentLine=2097162;
 //BA.debugLineNum = 2097162;BA.debugLine="theDir = \"\"";
_thedir = "";
 if (true) break;
if (true) break;

case 9:
//C
this.state = 10;
this.catchState = 0;
;
RDebugUtils.currentLine=2097164;
 //BA.debugLineNum = 2097164;BA.debugLine="rutaBDBackup = File.DirRootExternal&theDir";
__ref._rutabdbackup /*String*/  = parent.__c.File.getDirRootExternal()+_thedir;
RDebugUtils.currentLine=2097165;
 //BA.debugLineNum = 2097165;BA.debugLine="Try";
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;
RDebugUtils.currentLine=2097166;
 //BA.debugLineNum = 2097166;BA.debugLine="File.Copy(File.DirInternal,\"kmt.db\",File.DirRoo";
parent.__c.File.Copy(parent.__c.File.getDirInternal(),"kmt.db",parent.__c.File.getDirRootExternal()+_thedir,"cedex_kmt.db");
RDebugUtils.currentLine=2097167;
 //BA.debugLineNum = 2097167;BA.debugLine="ToastMessageShow(\"Listo\", False)";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Listo"),parent.__c.False);
 if (true) break;

case 14:
//C
this.state = 15;
this.catchState = 0;
RDebugUtils.currentLine=2097169;
 //BA.debugLineNum = 2097169;BA.debugLine="ToastMessageShow(\"No se pudo hacer la copia: \"&";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("No se pudo hacer la copia: "+BA.ObjectToString(parent.__c.LastException(ba))),parent.__c.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;
RDebugUtils.currentLine=2097172;
 //BA.debugLineNum = 2097172;BA.debugLine="ToastMessageShow(\"Sin permisos\", False)";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Sin permisos"),parent.__c.False);
 if (true) break;

case 18:
//C
this.state = -1;
;
RDebugUtils.currentLine=2097174;
 //BA.debugLineNum = 2097174;BA.debugLine="Log(rutaBDBackup)";
parent.__c.LogImpl("02097174",__ref._rutabdbackup /*String*/ ,0);
RDebugUtils.currentLine=2097175;
 //BA.debugLineNum = 2097175;BA.debugLine="End Sub";
if (true) break;
}} 
       catch (Exception e0) {
			
if (catchState == 0)
    throw e0;
else {
    state = catchState;
ba.setLastException(e0);}
            }
        }
    }
}
public String  _entrar_click(gunav2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "entrar_click", false))
	 {return ((String) Debug.delegate(ba, "entrar_click", null));}
anywheresoftware.b4a.agraham.reflection.Reflection _r = null;
int _api = 0;
anywheresoftware.b4a.phone.Phone _pp = null;
int _id = 0;
RDebugUtils.currentLine=1376256;
 //BA.debugLineNum = 1376256;BA.debugLine="Sub Entrar_Click";
RDebugUtils.currentLine=1376257;
 //BA.debugLineNum = 1376257;BA.debugLine="Dim r As Reflector";
_r = new anywheresoftware.b4a.agraham.reflection.Reflection();
RDebugUtils.currentLine=1376258;
 //BA.debugLineNum = 1376258;BA.debugLine="Dim Api As Int";
_api = 0;
RDebugUtils.currentLine=1376259;
 //BA.debugLineNum = 1376259;BA.debugLine="Dim PP As Phone";
_pp = new anywheresoftware.b4a.phone.Phone();
RDebugUtils.currentLine=1376260;
 //BA.debugLineNum = 1376260;BA.debugLine="user.Text = user.Text.trim";
__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText().trim()));
RDebugUtils.currentLine=1376261;
 //BA.debugLineNum = 1376261;BA.debugLine="LogColor(Starter.server, Colors.Blue)";
__c.LogImpl("01376261",_starter._server /*String*/ ,__c.Colors.Blue);
RDebugUtils.currentLine=1376262;
 //BA.debugLineNum = 1376262;BA.debugLine="Api = r.GetStaticField(\"android.os.Build$VERSION\"";
_api = (int)(BA.ObjectToNumber(_r.GetStaticField("android.os.Build$VERSION","SDK_INT")));
RDebugUtils.currentLine=1376263;
 //BA.debugLineNum = 1376263;BA.debugLine="If Api < 9 Then";
if (_api<9) { 
RDebugUtils.currentLine=1376265;
 //BA.debugLineNum = 1376265;BA.debugLine="If File.Exists(File.DirInternal, \"__id\") Then";
if (__c.File.Exists(__c.File.getDirInternal(),"__id")) { 
RDebugUtils.currentLine=1376266;
 //BA.debugLineNum = 1376266;BA.debugLine="IMEI =  File.ReadString(File.DirInternal, \"__id";
__ref._imei /*String*/  = __c.File.ReadString(__c.File.getDirInternal(),"__id");
RDebugUtils.currentLine=1376267;
 //BA.debugLineNum = 1376267;BA.debugLine="Log(1&\"-\"&IMEI)";
__c.LogImpl("01376267",BA.NumberToString(1)+"-"+__ref._imei /*String*/ ,0);
 }else {
RDebugUtils.currentLine=1376269;
 //BA.debugLineNum = 1376269;BA.debugLine="Dim id As Int";
_id = 0;
RDebugUtils.currentLine=1376270;
 //BA.debugLineNum = 1376270;BA.debugLine="id = Rnd(0x10000000, 0x7FFFFFFF)";
_id = __c.Rnd(((int)0x10000000),((int)0x7fffffff));
RDebugUtils.currentLine=1376271;
 //BA.debugLineNum = 1376271;BA.debugLine="File.WriteString(File.DirInternal, \"__id\", id)";
__c.File.WriteString(__c.File.getDirInternal(),"__id",BA.NumberToString(_id));
RDebugUtils.currentLine=1376272;
 //BA.debugLineNum = 1376272;BA.debugLine="IMEI =  id";
__ref._imei /*String*/  = BA.NumberToString(_id);
RDebugUtils.currentLine=1376273;
 //BA.debugLineNum = 1376273;BA.debugLine="Log(2&\"-\"&IMEI)";
__c.LogImpl("01376273",BA.NumberToString(2)+"-"+__ref._imei /*String*/ ,0);
 };
 }else {
RDebugUtils.currentLine=1376277;
 //BA.debugLineNum = 1376277;BA.debugLine="IMEI =  r.GetStaticField(\"android.os.Build\", \"SE";
__ref._imei /*String*/  = BA.ObjectToString(_r.GetStaticField("android.os.Build","SERIAL"));
RDebugUtils.currentLine=1376278;
 //BA.debugLineNum = 1376278;BA.debugLine="Log(3&\"-\"&IMEI)";
__c.LogImpl("01376278",BA.NumberToString(3)+"-"+__ref._imei /*String*/ ,0);
 };
RDebugUtils.currentLine=1376280;
 //BA.debugLineNum = 1376280;BA.debugLine="If IMEI.ToLowerCase = \"unknown\" Then";
if ((__ref._imei /*String*/ .toLowerCase()).equals("unknown")) { 
RDebugUtils.currentLine=1376281;
 //BA.debugLineNum = 1376281;BA.debugLine="IMEI = PP.GetSettings(\"android_id\")";
__ref._imei /*String*/  = _pp.GetSettings("android_id");
 };
RDebugUtils.currentLine=1376283;
 //BA.debugLineNum = 1376283;BA.debugLine="Log(\"IMEI = \" &  IMEI)";
__c.LogImpl("01376283","IMEI = "+__ref._imei /*String*/ ,0);
RDebugUtils.currentLine=1376284;
 //BA.debugLineNum = 1376284;BA.debugLine="If user.Text = \"ALTERNO\" Then";
if ((__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("ALTERNO")) { 
RDebugUtils.currentLine=1376285;
 //BA.debugLineNum = 1376285;BA.debugLine="c=skmt.ExecQuery2(\"select CAT_CO_CONFIGURACION,";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_CO_CONFIGURACION, CAT_CO_RESULTADO from CAT_CODIGOS where CAT_CO_PONDERACION =1 AND CAT_CO_ACCION = ?",new String[]{"SERVER"})));
RDebugUtils.currentLine=1376286;
 //BA.debugLineNum = 1376286;BA.debugLine="c.Position =0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=1376287;
 //BA.debugLineNum = 1376287;BA.debugLine="server = c.GetString(\"CAT_CO_CONFIGURACION\")";
__ref._server /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CO_CONFIGURACION");
RDebugUtils.currentLine=1376288;
 //BA.debugLineNum = 1376288;BA.debugLine="alterno = c.GetString(\"CAT_CO_RESULTADO\")";
__ref._alterno /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CO_RESULTADO");
RDebugUtils.currentLine=1376289;
 //BA.debugLineNum = 1376289;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=1376290;
 //BA.debugLineNum = 1376290;BA.debugLine="If alterno = 1 Then";
if ((__ref._alterno /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=1376291;
 //BA.debugLineNum = 1376291;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE CAT_CODIGOS SET CAT_";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE CAT_CODIGOS SET CAT_CO_PONDERACION = 1 WHERE CAT_CO_ACCION = ? AND CAT_CO_RESULTADO = 2",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"SERVER"}));
RDebugUtils.currentLine=1376292;
 //BA.debugLineNum = 1376292;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE CAT_CODIGOS SET CAT_";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE CAT_CODIGOS SET CAT_CO_PONDERACION = 0 WHERE CAT_CO_ACCION = ? AND CAT_CO_RESULTADO = 1",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"SERVER"}));
 }else 
{RDebugUtils.currentLine=1376293;
 //BA.debugLineNum = 1376293;BA.debugLine="Else if alterno = 2 Then";
if ((__ref._alterno /*String*/ ).equals(BA.NumberToString(2))) { 
RDebugUtils.currentLine=1376294;
 //BA.debugLineNum = 1376294;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE CAT_CODIGOS SET CAT_";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE CAT_CODIGOS SET CAT_CO_PONDERACION = 1 WHERE CAT_CO_ACCION = ? AND CAT_CO_RESULTADO = 1",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"SERVER"}));
RDebugUtils.currentLine=1376295;
 //BA.debugLineNum = 1376295;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE CAT_CODIGOS SET CAT_";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE CAT_CODIGOS SET CAT_CO_PONDERACION = 0 WHERE CAT_CO_ACCION = ? AND CAT_CO_RESULTADO = 2",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"SERVER"}));
 }}
;
RDebugUtils.currentLine=1376297;
 //BA.debugLineNum = 1376297;BA.debugLine="c=skmt.ExecQuery2(\"select CAT_CO_CONFIGURACION,";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_CO_CONFIGURACION, CAT_CO_RESULTADO from CAT_CODIGOS where CAT_CO_PONDERACION =1 AND CAT_CO_ACCION = ?",new String[]{"SERVER"})));
RDebugUtils.currentLine=1376298;
 //BA.debugLineNum = 1376298;BA.debugLine="c.Position =0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=1376299;
 //BA.debugLineNum = 1376299;BA.debugLine="server = c.GetString(\"CAT_CO_CONFIGURACION\")";
__ref._server /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CO_CONFIGURACION");
RDebugUtils.currentLine=1376300;
 //BA.debugLineNum = 1376300;BA.debugLine="user.Text = server";
__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(__ref._server /*String*/ ));
RDebugUtils.currentLine=1376301;
 //BA.debugLineNum = 1376301;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else 
{RDebugUtils.currentLine=1376303;
 //BA.debugLineNum = 1376303;BA.debugLine="else if user.Text = \"KMTS1\" Then";
if ((__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("KMTS1")) { 
RDebugUtils.currentLine=1376304;
 //BA.debugLineNum = 1376304;BA.debugLine="skmt.ExecNonQuery(\"delete from usuarioa\")";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from usuarioa");
RDebugUtils.currentLine=1376305;
 //BA.debugLineNum = 1376305;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO USUARIOA VALUES";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO USUARIOA VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._pass /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())}));
RDebugUtils.currentLine=1376306;
 //BA.debugLineNum = 1376306;BA.debugLine="skmt.ExecNonQuery(\"delete from cat_almacen\")";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_almacen");
RDebugUtils.currentLine=1376307;
 //BA.debugLineNum = 1376307;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_ALMACEN(ID_A";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._pass /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())}));
RDebugUtils.currentLine=1376308;
 //BA.debugLineNum = 1376308;BA.debugLine="skmt.ExecNonQuery(\"delete from VERSION\")";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION");
RDebugUtils.currentLine=1376309;
 //BA.debugLineNum = 1376309;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO VERSION(NOVERSIO";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("2.1")}));
RDebugUtils.currentLine=1376310;
 //BA.debugLineNum = 1376310;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
 }else 
{RDebugUtils.currentLine=1376311;
 //BA.debugLineNum = 1376311;BA.debugLine="else if user.Text = \"BERNA1\" Then";
if ((__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("BERNA1")) { 
RDebugUtils.currentLine=1376312;
 //BA.debugLineNum = 1376312;BA.debugLine="skmt.ExecNonQuery(\"delete from usuarioa\")";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from usuarioa");
RDebugUtils.currentLine=1376313;
 //BA.debugLineNum = 1376313;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO USUARIOA VALUES";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO USUARIOA VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)("1")}));
RDebugUtils.currentLine=1376314;
 //BA.debugLineNum = 1376314;BA.debugLine="skmt.ExecNonQuery(\"delete from cat_almacen\")";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_almacen");
RDebugUtils.currentLine=1376315;
 //BA.debugLineNum = 1376315;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_ALMACEN(ID_A";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("1")}));
RDebugUtils.currentLine=1376316;
 //BA.debugLineNum = 1376316;BA.debugLine="skmt.ExecNonQuery(\"delete from VERSION\")";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION");
RDebugUtils.currentLine=1376317;
 //BA.debugLineNum = 1376317;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO VERSION(NOVERSIO";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("2.1")}));
RDebugUtils.currentLine=1376318;
 //BA.debugLineNum = 1376318;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
 }else 
{RDebugUtils.currentLine=1376319;
 //BA.debugLineNum = 1376319;BA.debugLine="else if user.Text = \"IMEI\" Then";
if ((__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("IMEI")) { 
RDebugUtils.currentLine=1376320;
 //BA.debugLineNum = 1376320;BA.debugLine="user.Text = IMEI";
__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(__ref._imei /*String*/ ));
 }}}}
;
RDebugUtils.currentLine=1376322;
 //BA.debugLineNum = 1376322;BA.debugLine="c=skmt.ExecQuery2(\"select count(*) as EXISTE1 fro";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select count(*) as EXISTE1 from usuarioa where usuario = ?",new String[]{__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()})));
RDebugUtils.currentLine=1376323;
 //BA.debugLineNum = 1376323;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=1376324;
 //BA.debugLineNum = 1376324;BA.debugLine="existe = c.GetString(\"EXISTE1\")";
__ref._existe /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EXISTE1");
RDebugUtils.currentLine=1376325;
 //BA.debugLineNum = 1376325;BA.debugLine="If Subs.traeAlmacen <> \"NA\" Then";
if ((_subs._traealmacen /*String*/ (ba)).equals("NA") == false) { 
RDebugUtils.currentLine=1376326;
 //BA.debugLineNum = 1376326;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=1376327;
 //BA.debugLineNum = 1376327;BA.debugLine="cmd.Name = \"selectVersionAppGuna\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "selectVersionAppGuna";
RDebugUtils.currentLine=1376328;
 //BA.debugLineNum = 1376328;BA.debugLine="cmd.Parameters = Array As Object(Subs.traeAlmace";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_subs._traealmacen /*String*/ (ba))};
RDebugUtils.currentLine=1376329;
 //BA.debugLineNum = 1376329;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"traeVersion\")";
__ref._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("traeVersion"));
 };
RDebugUtils.currentLine=1376331;
 //BA.debugLineNum = 1376331;BA.debugLine="If existe = 0 Then";
if ((__ref._existe /*String*/ ).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=1376332;
 //BA.debugLineNum = 1376332;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=1376333;
 //BA.debugLineNum = 1376333;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=1376334;
 //BA.debugLineNum = 1376334;BA.debugLine="cmd.Name = \"select_usuario_guna_GV2_10\" 'Antes s";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_usuario_guna_GV2_10";
RDebugUtils.currentLine=1376335;
 //BA.debugLineNum = 1376335;BA.debugLine="cmd.Parameters = Array As Object(user.Text.Trim,";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText().trim()),(Object)(__ref._pass /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText().trim())};
RDebugUtils.currentLine=1376336;
 //BA.debugLineNum = 1376336;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"usuario_10\")";
__ref._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("usuario_10"));
RDebugUtils.currentLine=1376359;
 //BA.debugLineNum = 1376359;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=1376360;
 //BA.debugLineNum = 1376360;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=1376361;
 //BA.debugLineNum = 1376361;BA.debugLine="cmd.Name = \"select_version_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_version_GV2";
RDebugUtils.currentLine=1376362;
 //BA.debugLineNum = 1376362;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"version\")";
__ref._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("version"));
 }else {
RDebugUtils.currentLine=1376364;
 //BA.debugLineNum = 1376364;BA.debugLine="usuario = user.Text";
__ref._usuario /*String*/  = __ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText();
RDebugUtils.currentLine=1376365;
 //BA.debugLineNum = 1376365;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
 };
RDebugUtils.currentLine=1376367;
 //BA.debugLineNum = 1376367;BA.debugLine="End Sub";
return "";
}
public String  _entrar_longclick(gunav2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "entrar_longclick", false))
	 {return ((String) Debug.delegate(ba, "entrar_longclick", null));}
RDebugUtils.currentLine=1441792;
 //BA.debugLineNum = 1441792;BA.debugLine="Sub Entrar_LongClick";
RDebugUtils.currentLine=1441794;
 //BA.debugLineNum = 1441794;BA.debugLine="End Sub";
return "";
}
public String  _gps_locationchanged(gunav2.keymon.com.mx.b4xmainpage __ref,anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "gps_locationchanged", false))
	 {return ((String) Debug.delegate(ba, "gps_locationchanged", new Object[] {_location1}));}
RDebugUtils.currentLine=1703936;
 //BA.debugLineNum = 1703936;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
RDebugUtils.currentLine=1703937;
 //BA.debugLineNum = 1703937;BA.debugLine="If user.text = \"GPS\" Then";
if ((__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("GPS")) { 
RDebugUtils.currentLine=1703938;
 //BA.debugLineNum = 1703938;BA.debugLine="user.Text=Location1.Latitude";
__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_location1.getLatitude()));
RDebugUtils.currentLine=1703939;
 //BA.debugLineNum = 1703939;BA.debugLine="pass.text=Location1.Longitude";
__ref._pass /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_location1.getLongitude()));
 };
RDebugUtils.currentLine=1703941;
 //BA.debugLineNum = 1703941;BA.debugLine="End Sub";
return "";
}
public String  _i_engrane_click(gunav2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "i_engrane_click", false))
	 {return ((String) Debug.delegate(ba, "i_engrane_click", null));}
RDebugUtils.currentLine=2359296;
 //BA.debugLineNum = 2359296;BA.debugLine="Sub i_engrane_Click";
RDebugUtils.currentLine=2359297;
 //BA.debugLineNum = 2359297;BA.debugLine="p_appUpdate.Left = (Root.Width/2) - (p_appUpdate.";
__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .setLeft((int) ((__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)2)-(__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth()/(double)2)));
RDebugUtils.currentLine=2359298;
 //BA.debugLineNum = 2359298;BA.debugLine="lv_server.Clear";
__ref._lv_server /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=2359299;
 //BA.debugLineNum = 2359299;BA.debugLine="lv_server.AddSingleLine(\"http://keymon.net:1782\")";
__ref._lv_server /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddSingleLine(BA.ObjectToCharSequence("http://keymon.net:1782"));
RDebugUtils.currentLine=2359300;
 //BA.debugLineNum = 2359300;BA.debugLine="If user.Text = \"KMTS1\" Then lv_server.AddSingleLi";
if ((__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("KMTS1")) { 
__ref._lv_server /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddSingleLine(BA.ObjectToCharSequence("http://10.0.0.205:1782"));};
RDebugUtils.currentLine=2359301;
 //BA.debugLineNum = 2359301;BA.debugLine="l_server.Text = Starter.server";
__ref._l_server /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_starter._server /*String*/ ));
RDebugUtils.currentLine=2359302;
 //BA.debugLineNum = 2359302;BA.debugLine="et_server.Text = Starter.server";
__ref._et_server /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_starter._server /*String*/ ));
RDebugUtils.currentLine=2359303;
 //BA.debugLineNum = 2359303;BA.debugLine="Subs.panelVisible(p_appUpdate,0,0)";
_subs._panelvisible /*String*/ (ba,__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
RDebugUtils.currentLine=2359304;
 //BA.debugLineNum = 2359304;BA.debugLine="p_appUpdate.Height = Root.Height";
__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=2359305;
 //BA.debugLineNum = 2359305;BA.debugLine="p_appUpdate.Width = Root.Width";
__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=2359306;
 //BA.debugLineNum = 2359306;BA.debugLine="c = skmt.ExecQuery(\"SELECT HABILITADA FROM IMPRES";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HABILITADA FROM IMPRESORA")));
RDebugUtils.currentLine=2359307;
 //BA.debugLineNum = 2359307;BA.debugLine="If c.RowCount = 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
RDebugUtils.currentLine=2359308;
 //BA.debugLineNum = 2359308;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO IMPRESORA VALUES";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO IMPRESORA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(0)}));
 };
RDebugUtils.currentLine=2359310;
 //BA.debugLineNum = 2359310;BA.debugLine="c = skmt.ExecQuery(\"SELECT HABILITADO FROM GPS\")";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HABILITADO FROM GPS")));
RDebugUtils.currentLine=2359311;
 //BA.debugLineNum = 2359311;BA.debugLine="If c.RowCount = 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
RDebugUtils.currentLine=2359312;
 //BA.debugLineNum = 2359312;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO GPS VALUES (?)\",";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO GPS VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(0)}));
 };
RDebugUtils.currentLine=2359314;
 //BA.debugLineNum = 2359314;BA.debugLine="If user.Text.Trim = \"KMTS1\" Then";
if ((__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText().trim()).equals("KMTS1")) { 
RDebugUtils.currentLine=2359315;
 //BA.debugLineNum = 2359315;BA.debugLine="p_importarBDWA.Visible = True";
__ref._p_importarbdwa /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
 }else {
RDebugUtils.currentLine=2359317;
 //BA.debugLineNum = 2359317;BA.debugLine="p_importarBDWA.Visible = False";
__ref._p_importarbdwa /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
 };
RDebugUtils.currentLine=2359319;
 //BA.debugLineNum = 2359319;BA.debugLine="End Sub";
return "";
}
public String  _jobdone(gunav2.keymon.com.mx.b4xmainpage __ref,gunav2.keymon.com.mx.httpjob _job) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "jobdone", false))
	 {return ((String) Debug.delegate(ba, "jobdone", new Object[] {_job}));}
gunav2.keymon.com.mx.dbrequestmanager._dbresult _result = null;
Object[] _records = null;
String _cat_ve_version = "";
String _k = "";
String _id_almacen = "";
gunav2.keymon.com.mx.dbrequestmanager._dbresult _result1 = null;
String _cuantosencuesta = "";
String _sdate = "";
String _stime = "";
String _fecha_hoy = "";
String _name = "";
String _imei_base = "";
String _version = "";
String _versionador = "";
String _actualizaraplicacion = "";
String _cuenta = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
String _rutades = "";
String _almacendes = "";
String _cat_ep_id = "";
String _cat_ep_idtipopregunta = "";
String _cat_ce_descripcion = "";
String _cat_ep_pregunta = "";
String _cat_ep_res1_pred = "";
String _cat_ep_res2_pred = "";
String _cat_ep_res3_pred = "";
String _cat_ep_orden_pregunta = "";
RDebugUtils.currentLine=1572864;
 //BA.debugLineNum = 1572864;BA.debugLine="Sub JobDone(Job As HttpJob)";
RDebugUtils.currentLine=1572865;
 //BA.debugLineNum = 1572865;BA.debugLine="Log(\"JOBDONE MAINPAGE\")";
__c.LogImpl("01572865","JOBDONE MAINPAGE",0);
RDebugUtils.currentLine=1572866;
 //BA.debugLineNum = 1572866;BA.debugLine="Log(Job.Success)";
__c.LogImpl("01572866",BA.ObjectToString(_job._success /*boolean*/ ),0);
RDebugUtils.currentLine=1572867;
 //BA.debugLineNum = 1572867;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) { 
RDebugUtils.currentLine=1572868;
 //BA.debugLineNum = 1572868;BA.debugLine="LogColor(\"Error: \" & Job.tag & \" : \" & Subs.pars";
__c.LogImpl("01572868","Error: "+BA.ObjectToString(_job._tag /*Object*/ )+" : "+_subs._parsehttperror /*String*/ (ba,_job._errormessage /*String*/ ),__c.Colors.Red);
 }else {
RDebugUtils.currentLine=1572871;
 //BA.debugLineNum = 1572871;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
__c.LogImpl("01572871","JobDone: '"+BA.ObjectToString(__ref._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(__ref._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
RDebugUtils.currentLine=1572872;
 //BA.debugLineNum = 1572872;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=1572873;
 //BA.debugLineNum = 1572873;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=1572874;
 //BA.debugLineNum = 1572874;BA.debugLine="If result.Tag = \"version\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("version"))) { 
RDebugUtils.currentLine=1572875;
 //BA.debugLineNum = 1572875;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group10 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen10 = group10.getSize()
;int index10 = 0;
;
for (; index10 < groupLen10;index10++){
_records = (Object[])(group10.Get(index10));
RDebugUtils.currentLine=1572876;
 //BA.debugLineNum = 1572876;BA.debugLine="skmt.ExecNonQuery(\"delete from VERSION\")";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION");
RDebugUtils.currentLine=1572877;
 //BA.debugLineNum = 1572877;BA.debugLine="Dim CAT_VE_VERSION As String = records(result";
_cat_ve_version = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_VE_VERSION"))))]);
RDebugUtils.currentLine=1572878;
 //BA.debugLineNum = 1572878;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO VERSION(NOVER";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_ve_version)}));
 }
};
 };
RDebugUtils.currentLine=1572882;
 //BA.debugLineNum = 1572882;BA.debugLine="If result.Tag = \"select_fechat\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("select_fechat"))) { 
RDebugUtils.currentLine=1572883;
 //BA.debugLineNum = 1572883;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group17 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen17 = group17.getSize()
;int index17 = 0;
;
for (; index17 < groupLen17;index17++){
_records = (Object[])(group17.Get(index17));
RDebugUtils.currentLine=1572884;
 //BA.debugLineNum = 1572884;BA.debugLine="For Each k As String In result.Columns.Keys";
{
final anywheresoftware.b4a.BA.IterableList group18 = _result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
final int groupLen18 = group18.getSize()
;int index18 = 0;
;
for (; index18 < groupLen18;index18++){
_k = BA.ObjectToString(group18.Get(index18));
RDebugUtils.currentLine=1572885;
 //BA.debugLineNum = 1572885;BA.debugLine="Log(\"select_fechat: \" & k & \": \" & records(r";
__c.LogImpl("01572885","select_fechat: "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
 }
};
 }
};
 };
 };
RDebugUtils.currentLine=1572891;
 //BA.debugLineNum = 1572891;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=1572892;
 //BA.debugLineNum = 1572892;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=1572893;
 //BA.debugLineNum = 1572893;BA.debugLine="If result.Tag = \"agencia\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("agencia"))) { 
RDebugUtils.currentLine=1572894;
 //BA.debugLineNum = 1572894;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group27 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen27 = group27.getSize()
;int index27 = 0;
;
for (; index27 < groupLen27;index27++){
_records = (Object[])(group27.Get(index27));
RDebugUtils.currentLine=1572895;
 //BA.debugLineNum = 1572895;BA.debugLine="Dim ID_ALMACEN As String = records(result.Col";
_id_almacen = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("ID_ALMACEN"))))]);
 }
};
 };
 };
RDebugUtils.currentLine=1572900;
 //BA.debugLineNum = 1572900;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=1572901;
 //BA.debugLineNum = 1572901;BA.debugLine="Dim result1 As DBResult = B4XPages.MainPage.req";
_result1 = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=1572902;
 //BA.debugLineNum = 1572902;BA.debugLine="If result1.Tag = \"CHECAENCUESTA\" Then 'query ta";
if ((_result1.Tag /*Object*/ ).equals((Object)("CHECAENCUESTA"))) { 
RDebugUtils.currentLine=1572903;
 //BA.debugLineNum = 1572903;BA.debugLine="For Each records() As Object In result1.Rows";
{
final anywheresoftware.b4a.BA.IterableList group35 = _result1.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen35 = group35.getSize()
;int index35 = 0;
;
for (; index35 < groupLen35;index35++){
_records = (Object[])(group35.Get(index35));
RDebugUtils.currentLine=1572904;
 //BA.debugLineNum = 1572904;BA.debugLine="Dim CUANTOSENCUESTA As String = records(resul";
_cuantosencuesta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result1.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CUANTOS"))))]);
RDebugUtils.currentLine=1572905;
 //BA.debugLineNum = 1572905;BA.debugLine="Log(CUANTOSENCUESTA)";
__c.LogImpl("01572905",_cuantosencuesta,0);
 }
};
RDebugUtils.currentLine=1572907;
 //BA.debugLineNum = 1572907;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=1572908;
 //BA.debugLineNum = 1572908;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=1572909;
 //BA.debugLineNum = 1572909;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=1572910;
 //BA.debugLineNum = 1572910;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=1572911;
 //BA.debugLineNum = 1572911;BA.debugLine="If CUANTOSENCUESTA = \"0\" Then";
if ((_cuantosencuesta).equals("0")) { 
RDebugUtils.currentLine=1572912;
 //BA.debugLineNum = 1572912;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=1572913;
 //BA.debugLineNum = 1572913;BA.debugLine="cmd.Name =\"insert_drop_GV2_4\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_drop_GV2_4";
RDebugUtils.currentLine=1572914;
 //BA.debugLineNum = 1572914;BA.debugLine="cmd.Parameters = Array As Object(usuario,Subs";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._usuario /*String*/ ),(Object)(_subs._traeruta /*String*/ (ba)),(Object)(_sdate),(Object)(""),(Object)(_stime),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)("ENCUESTA"),(Object)(__ref._almacen /*String*/ ),(Object)(__c.Application.getVersionName()),(Object)(_starter._encuesta /*String*/ )};
RDebugUtils.currentLine=1572915;
 //BA.debugLineNum = 1572915;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(c";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("inst_drop"));
 };
 };
 };
RDebugUtils.currentLine=1572920;
 //BA.debugLineNum = 1572920;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=1572921;
 //BA.debugLineNum = 1572921;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=1572922;
 //BA.debugLineNum = 1572922;BA.debugLine="If result.Tag = \"fecha\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("fecha"))) { 
RDebugUtils.currentLine=1572923;
 //BA.debugLineNum = 1572923;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group54 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen54 = group54.getSize()
;int index54 = 0;
;
for (; index54 < groupLen54;index54++){
_records = (Object[])(group54.Get(index54));
RDebugUtils.currentLine=1572924;
 //BA.debugLineNum = 1572924;BA.debugLine="Dim FECHA_HOY As String = records(result.Colu";
_fecha_hoy = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("FECHA"))))]);
RDebugUtils.currentLine=1572925;
 //BA.debugLineNum = 1572925;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("FECHA")}));
RDebugUtils.currentLine=1572926;
 //BA.debugLineNum = 1572926;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("FECHA"),(Object)(_fecha_hoy)}));
 }
};
 };
 };
RDebugUtils.currentLine=1572931;
 //BA.debugLineNum = 1572931;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=1572932;
 //BA.debugLineNum = 1572932;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=1572933;
 //BA.debugLineNum = 1572933;BA.debugLine="If result.Tag = \"usuario\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("usuario"))) { 
RDebugUtils.currentLine=1572934;
 //BA.debugLineNum = 1572934;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group64 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen64 = group64.getSize()
;int index64 = 0;
;
for (; index64 < groupLen64;index64++){
_records = (Object[])(group64.Get(index64));
RDebugUtils.currentLine=1572935;
 //BA.debugLineNum = 1572935;BA.debugLine="Dim name As String = records(result.Columns.G";
_name = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("USUARIO"))))]);
RDebugUtils.currentLine=1572936;
 //BA.debugLineNum = 1572936;BA.debugLine="Dim ID_ALMACEN As String = records(result.Col";
_id_almacen = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_LO_AGENCIA"))))]);
RDebugUtils.currentLine=1572937;
 //BA.debugLineNum = 1572937;BA.debugLine="Dim IMEI_BASE As String = records(result.Colu";
_imei_base = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_LO_IDTELEFONO"))))]);
RDebugUtils.currentLine=1572938;
 //BA.debugLineNum = 1572938;BA.debugLine="Log(records(result.Columns.Get(\"CAT_LO_IDTELE";
__c.LogImpl("01572938",BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_LO_IDTELEFONO"))))]),0);
 }
};
RDebugUtils.currentLine=1572940;
 //BA.debugLineNum = 1572940;BA.debugLine="paso1 = 1";
__ref._paso1 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=1572941;
 //BA.debugLineNum = 1572941;BA.debugLine="ToastMessageShow(name, False)";
__c.ToastMessageShow(BA.ObjectToCharSequence(_name),__c.False);
 };
 };
RDebugUtils.currentLine=1572945;
 //BA.debugLineNum = 1572945;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=1572946;
 //BA.debugLineNum = 1572946;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=1572947;
 //BA.debugLineNum = 1572947;BA.debugLine="If result.Tag = \"usuario_10\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("usuario_10"))) { 
RDebugUtils.currentLine=1572948;
 //BA.debugLineNum = 1572948;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group77 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen77 = group77.getSize()
;int index77 = 0;
;
for (; index77 < groupLen77;index77++){
_records = (Object[])(group77.Get(index77));
RDebugUtils.currentLine=1572949;
 //BA.debugLineNum = 1572949;BA.debugLine="Dim name As String = records(result.Columns.G";
_name = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("USUARIO"))))]);
RDebugUtils.currentLine=1572950;
 //BA.debugLineNum = 1572950;BA.debugLine="Dim ID_ALMACEN As String = records(result.Col";
_id_almacen = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_LO_AGENCIA"))))]);
RDebugUtils.currentLine=1572951;
 //BA.debugLineNum = 1572951;BA.debugLine="Dim IMEI_BASE As String = records(result.Colu";
_imei_base = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_LO_IDTELEFONO"))))]);
RDebugUtils.currentLine=1572952;
 //BA.debugLineNum = 1572952;BA.debugLine="Private version As String =  records(result.C";
_version = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_VERSION"))))]);
RDebugUtils.currentLine=1572953;
 //BA.debugLineNum = 1572953;BA.debugLine="Private versionador As String =  records(resu";
_versionador = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_VERSIONADOR"))))]);
RDebugUtils.currentLine=1572954;
 //BA.debugLineNum = 1572954;BA.debugLine="Private actualizarAplicacion As String =  rec";
_actualizaraplicacion = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_ACTUALIZACION"))))]);
 }
};
RDebugUtils.currentLine=1572956;
 //BA.debugLineNum = 1572956;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("VERSION_NUEVA")}));
RDebugUtils.currentLine=1572957;
 //BA.debugLineNum = 1572957;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES(";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("VERSION_NUEVA"),(Object)(_version)}));
RDebugUtils.currentLine=1572958;
 //BA.debugLineNum = 1572958;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("FORZAR_ACTUALIZACION")}));
RDebugUtils.currentLine=1572959;
 //BA.debugLineNum = 1572959;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES(";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("FORZAR_ACTUALIZACION"),(Object)(_actualizaraplicacion)}));
RDebugUtils.currentLine=1572962;
 //BA.debugLineNum = 1572962;BA.debugLine="Log(\"|\"&name&\"|\")";
__c.LogImpl("01572962","|"+_name+"|",0);
RDebugUtils.currentLine=1572963;
 //BA.debugLineNum = 1572963;BA.debugLine="Log($\">>>>  GUARDAMOS NUEVA VERSION: ${version";
__c.LogImpl("01572963",(">>>>  GUARDAMOS NUEVA VERSION: "+__c.SmartStringFormatter("",(Object)(_version))+", "+__c.SmartStringFormatter("",(Object)(_actualizaraplicacion))+""),0);
RDebugUtils.currentLine=1572964;
 //BA.debugLineNum = 1572964;BA.debugLine="paso1 = 1";
__ref._paso1 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=1572965;
 //BA.debugLineNum = 1572965;BA.debugLine="IMEI_BASE = \"\"";
_imei_base = "";
RDebugUtils.currentLine=1572966;
 //BA.debugLineNum = 1572966;BA.debugLine="IMEI = \"\"";
__ref._imei /*String*/  = "";
 };
RDebugUtils.currentLine=1572969;
 //BA.debugLineNum = 1572969;BA.debugLine="If result.Tag = \"traeVersion\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("traeVersion"))) { 
RDebugUtils.currentLine=1572970;
 //BA.debugLineNum = 1572970;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group96 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen96 = group96.getSize()
;int index96 = 0;
;
for (; index96 < groupLen96;index96++){
_records = (Object[])(group96.Get(index96));
RDebugUtils.currentLine=1572971;
 //BA.debugLineNum = 1572971;BA.debugLine="Private version As String =  records(result.C";
_version = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_VERSION"))))]);
RDebugUtils.currentLine=1572972;
 //BA.debugLineNum = 1572972;BA.debugLine="Private actualizarAplicacion As String =  rec";
_actualizaraplicacion = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_ACTUALIZACION"))))]);
 }
};
RDebugUtils.currentLine=1572974;
 //BA.debugLineNum = 1572974;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("VERSION_NUEVA")}));
RDebugUtils.currentLine=1572975;
 //BA.debugLineNum = 1572975;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES(";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("VERSION_NUEVA"),(Object)(_version)}));
RDebugUtils.currentLine=1572976;
 //BA.debugLineNum = 1572976;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("FORZAR_ACTUALIZACION")}));
RDebugUtils.currentLine=1572977;
 //BA.debugLineNum = 1572977;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES(";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("FORZAR_ACTUALIZACION"),(Object)(_actualizaraplicacion)}));
RDebugUtils.currentLine=1572978;
 //BA.debugLineNum = 1572978;BA.debugLine="Log($\">>>>  GUARDAMOS NUEVA VERSION: ${version";
__c.LogImpl("01572978",(">>>>  GUARDAMOS NUEVA VERSION: "+__c.SmartStringFormatter("",(Object)(_version))+", "+__c.SmartStringFormatter("",(Object)(_actualizaraplicacion))+""),0);
 };
 };
RDebugUtils.currentLine=1572982;
 //BA.debugLineNum = 1572982;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=1572983;
 //BA.debugLineNum = 1572983;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=1572984;
 //BA.debugLineNum = 1572984;BA.debugLine="If result.Tag = \"geopass\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("geopass"))) { 
RDebugUtils.currentLine=1572985;
 //BA.debugLineNum = 1572985;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group110 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen110 = group110.getSize()
;int index110 = 0;
;
for (; index110 < groupLen110;index110++){
_records = (Object[])(group110.Get(index110));
RDebugUtils.currentLine=1572986;
 //BA.debugLineNum = 1572986;BA.debugLine="Dim cuenta As String = records(result.Columns";
_cuenta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CUENTA"))))]);
 }
};
RDebugUtils.currentLine=1572988;
 //BA.debugLineNum = 1572988;BA.debugLine="If cuenta = \"1\" Then";
if ((_cuenta).equals("1")) { 
RDebugUtils.currentLine=1572989;
 //BA.debugLineNum = 1572989;BA.debugLine="p_validacion.Visible = False";
__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=1572990;
 //BA.debugLineNum = 1572990;BA.debugLine="B4XSwitch2.Value = True";
__ref._b4xswitch2 /*gunav2.keymon.com.mx.b4xswitch*/ ._setvalue /*boolean*/ (null,__c.True);
RDebugUtils.currentLine=1572991;
 //BA.debugLineNum = 1572991;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE GPS SET HABILITADO";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE GPS SET HABILITADO = (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(1)}));
RDebugUtils.currentLine=1572992;
 //BA.debugLineNum = 1572992;BA.debugLine="et_codigo.Text = \"\"";
__ref._et_codigo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=1572993;
 //BA.debugLineNum = 1572993;BA.debugLine="Private c2 As Cursor = skmt.ExecQuery(\"select";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct CAT_CL_RUTA from kmt_info3 where CAT_CL_RUTA not in (select * from ruta_suplencia)")));
RDebugUtils.currentLine=1572994;
 //BA.debugLineNum = 1572994;BA.debugLine="c2.Position = 0";
_c2.setPosition((int) (0));
RDebugUtils.currentLine=1572995;
 //BA.debugLineNum = 1572995;BA.debugLine="Private rutades As String = c2.GetString(\"CAT";
_rutades = _c2.GetString("CAT_CL_RUTA");
RDebugUtils.currentLine=1572996;
 //BA.debugLineNum = 1572996;BA.debugLine="c2.Close";
_c2.Close();
RDebugUtils.currentLine=1572997;
 //BA.debugLineNum = 1572997;BA.debugLine="Private c2 As Cursor = skmt.ExecQuery(\"SELECT";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT ID_ALMACEN FROM CAT_ALMACEN")));
RDebugUtils.currentLine=1572998;
 //BA.debugLineNum = 1572998;BA.debugLine="c2.Position = 0";
_c2.setPosition((int) (0));
RDebugUtils.currentLine=1572999;
 //BA.debugLineNum = 1572999;BA.debugLine="Private almacendes As String = c2.GetString(\"";
_almacendes = _c2.GetString("ID_ALMACEN");
RDebugUtils.currentLine=1573000;
 //BA.debugLineNum = 1573000;BA.debugLine="c2.Close";
_c2.Close();
RDebugUtils.currentLine=1573001;
 //BA.debugLineNum = 1573001;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=1573002;
 //BA.debugLineNum = 1573002;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=1573003;
 //BA.debugLineNum = 1573003;BA.debugLine="cmd.Name = \"delete_geoPass_GUNA\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "delete_geoPass_GUNA";
RDebugUtils.currentLine=1573005;
 //BA.debugLineNum = 1573005;BA.debugLine="cmd.Parameters = Array As Object( almacendes,";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_almacendes),(Object)(_rutades)};
RDebugUtils.currentLine=1573006;
 //BA.debugLineNum = 1573006;BA.debugLine="reqManager.ExecuteCommand(cmd , \"traeGeoPass\"";
__ref._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("traeGeoPass"));
 }else 
{RDebugUtils.currentLine=1573007;
 //BA.debugLineNum = 1573007;BA.debugLine="Else If cuenta = \"0\" Then";
if ((_cuenta).equals("0")) { 
RDebugUtils.currentLine=1573008;
 //BA.debugLineNum = 1573008;BA.debugLine="MsgboxAsync(\"Codigo incorrecto\",\"Atención\")";
__c.MsgboxAsync(BA.ObjectToCharSequence("Codigo incorrecto"),BA.ObjectToCharSequence("Atención"),ba);
RDebugUtils.currentLine=1573009;
 //BA.debugLineNum = 1573009;BA.debugLine="p_validacion.Visible = False";
__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=1573010;
 //BA.debugLineNum = 1573010;BA.debugLine="B4XSwitch2.Value = False";
__ref._b4xswitch2 /*gunav2.keymon.com.mx.b4xswitch*/ ._setvalue /*boolean*/ (null,__c.False);
RDebugUtils.currentLine=1573011;
 //BA.debugLineNum = 1573011;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE GPS SET HABILITADO";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE GPS SET HABILITADO = (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(0)}));
RDebugUtils.currentLine=1573012;
 //BA.debugLineNum = 1573012;BA.debugLine="et_codigo.Text = \"\"";
__ref._et_codigo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
 }}
;
 };
 };
RDebugUtils.currentLine=1573017;
 //BA.debugLineNum = 1573017;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=1573018;
 //BA.debugLineNum = 1573018;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=1573019;
 //BA.debugLineNum = 1573019;BA.debugLine="If result.Tag = \"carga_encuesta\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("carga_encuesta"))) { 
RDebugUtils.currentLine=1573020;
 //BA.debugLineNum = 1573020;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group143 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen143 = group143.getSize()
;int index143 = 0;
;
for (; index143 < groupLen143;index143++){
_records = (Object[])(group143.Get(index143));
RDebugUtils.currentLine=1573021;
 //BA.debugLineNum = 1573021;BA.debugLine="Dim CAT_EP_ID As String = records(result.COLU";
_cat_ep_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_ID"))))]);
RDebugUtils.currentLine=1573022;
 //BA.debugLineNum = 1573022;BA.debugLine="Dim CAT_EP_IDTIPOPREGUNTA As String = records";
_cat_ep_idtipopregunta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_IDTIPOPREGUNTA"))))]);
RDebugUtils.currentLine=1573023;
 //BA.debugLineNum = 1573023;BA.debugLine="Dim CAT_CE_DESCRIPCION As String = records(re";
_cat_ce_descripcion = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CE_DESCRIPCION"))))]);
RDebugUtils.currentLine=1573024;
 //BA.debugLineNum = 1573024;BA.debugLine="Dim CAT_EP_PREGUNTA As String = records(resul";
_cat_ep_pregunta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_PREGUNTA"))))]);
RDebugUtils.currentLine=1573025;
 //BA.debugLineNum = 1573025;BA.debugLine="Dim CAT_EP_RES1_PRED As String = records(resu";
_cat_ep_res1_pred = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_RES1_PRED"))))]);
RDebugUtils.currentLine=1573026;
 //BA.debugLineNum = 1573026;BA.debugLine="Dim CAT_EP_RES2_PRED As String = records(resu";
_cat_ep_res2_pred = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_RES2_PRED"))))]);
RDebugUtils.currentLine=1573027;
 //BA.debugLineNum = 1573027;BA.debugLine="Dim CAT_EP_RES3_PRED As String = records(resu";
_cat_ep_res3_pred = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_RES3_PRED"))))]);
RDebugUtils.currentLine=1573028;
 //BA.debugLineNum = 1573028;BA.debugLine="Dim CAT_EP_ORDEN_PREGUNTA As String = records";
_cat_ep_orden_pregunta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_ORDEN_PREGUNTA"))))]);
RDebugUtils.currentLine=1573029;
 //BA.debugLineNum = 1573029;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_ENCUESTA_";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("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 (?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_ep_id),(Object)(_cat_ep_idtipopregunta),(Object)(_cat_ce_descripcion),(Object)(_cat_ep_pregunta),(Object)(_cat_ep_res1_pred),(Object)(_cat_ep_res2_pred),(Object)(_cat_ep_res3_pred),(Object)(_cat_ep_orden_pregunta)}));
 }
};
 };
 };
RDebugUtils.currentLine=1573033;
 //BA.debugLineNum = 1573033;BA.debugLine="Job.Release";
_job._release /*String*/ (null);
 };
RDebugUtils.currentLine=1573036;
 //BA.debugLineNum = 1573036;BA.debugLine="Log($\"Paso1 = ${paso1} - Name: ${name} - IMEI: ${";
__c.LogImpl("01573036",("Paso1 = "+__c.SmartStringFormatter("",(Object)(__ref._paso1 /*String*/ ))+" - Name: "+__c.SmartStringFormatter("",(Object)(_name))+" - IMEI: "+__c.SmartStringFormatter("",(Object)(__ref._imei /*String*/ ))+" - IMEI_BASE: "+__c.SmartStringFormatter("",(Object)(_imei_base))+""),0);
RDebugUtils.currentLine=1573037;
 //BA.debugLineNum = 1573037;BA.debugLine="If paso1 = 1 Then";
if ((__ref._paso1 /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=1573038;
 //BA.debugLineNum = 1573038;BA.debugLine="If IMEI = \"\" Then";
if ((__ref._imei /*String*/ ).equals("")) { 
RDebugUtils.currentLine=1573039;
 //BA.debugLineNum = 1573039;BA.debugLine="If user.Text = \"KMTS1\" Then name = \"OKActivo\"";
if ((__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("KMTS1")) { 
_name = "OKActivo";};
RDebugUtils.currentLine=1573040;
 //BA.debugLineNum = 1573040;BA.debugLine="If name = \"OKActivo\"  Then";
if ((_name).equals("OKActivo")) { 
RDebugUtils.currentLine=1573041;
 //BA.debugLineNum = 1573041;BA.debugLine="skmt.ExecNonQuery(\"delete from usuarioa\")";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from usuarioa");
RDebugUtils.currentLine=1573042;
 //BA.debugLineNum = 1573042;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO USUARIOA VALUE";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO USUARIOA VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._pass /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())}));
RDebugUtils.currentLine=1573043;
 //BA.debugLineNum = 1573043;BA.debugLine="skmt.ExecNonQuery(\"delete from cat_almacen\")";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_almacen");
RDebugUtils.currentLine=1573044;
 //BA.debugLineNum = 1573044;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_ALMACEN(ID";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_id_almacen)}));
RDebugUtils.currentLine=1573045;
 //BA.debugLineNum = 1573045;BA.debugLine="usuario = user.Text";
__ref._usuario /*String*/  = __ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText();
RDebugUtils.currentLine=1573046;
 //BA.debugLineNum = 1573046;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
 }else 
{RDebugUtils.currentLine=1573047;
 //BA.debugLineNum = 1573047;BA.debugLine="Else If name  = \"OKExpirado\" Then";
if ((_name).equals("OKExpirado")) { 
RDebugUtils.currentLine=1573048;
 //BA.debugLineNum = 1573048;BA.debugLine="Msgbox(\"Usuario Expirado llamar al administrad";
__c.Msgbox(BA.ObjectToCharSequence("Usuario Expirado llamar al administrador"),BA.ObjectToCharSequence(""),ba);
 }else 
{RDebugUtils.currentLine=1573049;
 //BA.debugLineNum = 1573049;BA.debugLine="Else If name = \"OKCancelado\" Then";
if ((_name).equals("OKCancelado")) { 
RDebugUtils.currentLine=1573050;
 //BA.debugLineNum = 1573050;BA.debugLine="Msgbox(\"Usuario Cancelado llamar al administra";
__c.Msgbox(BA.ObjectToCharSequence("Usuario Cancelado llamar al administrador"),BA.ObjectToCharSequence(""),ba);
 }else {
RDebugUtils.currentLine=1573052;
 //BA.debugLineNum = 1573052;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'Ig";
__c.Msgbox(BA.ObjectToCharSequence("Usuario o password No validos"),BA.ObjectToCharSequence(""),ba);
 }}}
;
RDebugUtils.currentLine=1573054;
 //BA.debugLineNum = 1573054;BA.debugLine="paso1 = 0";
__ref._paso1 /*String*/  = BA.NumberToString(0);
 }else {
RDebugUtils.currentLine=1573056;
 //BA.debugLineNum = 1573056;BA.debugLine="If name = \"OKActivo\" & IMEI And  IMEI = IMEI_BA";
if ((_name).equals("OKActivo"+__ref._imei /*String*/ ) && (__ref._imei /*String*/ ).equals(_imei_base)) { 
RDebugUtils.currentLine=1573057;
 //BA.debugLineNum = 1573057;BA.debugLine="If name = \"OKActivo\" & IMEI Then";
if ((_name).equals("OKActivo"+__ref._imei /*String*/ )) { 
RDebugUtils.currentLine=1573058;
 //BA.debugLineNum = 1573058;BA.debugLine="skmt.ExecNonQuery(\"delete from usuarioa\")";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from usuarioa");
RDebugUtils.currentLine=1573059;
 //BA.debugLineNum = 1573059;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO USUARIOA VALU";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO USUARIOA VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._pass /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())}));
RDebugUtils.currentLine=1573060;
 //BA.debugLineNum = 1573060;BA.debugLine="skmt.ExecNonQuery(\"delete from cat_almacen\")";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_almacen");
RDebugUtils.currentLine=1573061;
 //BA.debugLineNum = 1573061;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_ALMACEN(I";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_id_almacen)}));
RDebugUtils.currentLine=1573062;
 //BA.debugLineNum = 1573062;BA.debugLine="usuario = user.Text";
__ref._usuario /*String*/  = __ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText();
RDebugUtils.currentLine=1573063;
 //BA.debugLineNum = 1573063;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
 }else 
{RDebugUtils.currentLine=1573064;
 //BA.debugLineNum = 1573064;BA.debugLine="Else If name  = \"OKExpirado\"& IMEI Then";
if ((_name).equals("OKExpirado"+__ref._imei /*String*/ )) { 
RDebugUtils.currentLine=1573065;
 //BA.debugLineNum = 1573065;BA.debugLine="Msgbox(\"Usuario Expirado llamar al administra";
__c.Msgbox(BA.ObjectToCharSequence("Usuario Expirado llamar al administrador"),BA.ObjectToCharSequence(""),ba);
 }else 
{RDebugUtils.currentLine=1573066;
 //BA.debugLineNum = 1573066;BA.debugLine="Else If name = \"OKCancelado\"& IMEI Then";
if ((_name).equals("OKCancelado"+__ref._imei /*String*/ )) { 
RDebugUtils.currentLine=1573067;
 //BA.debugLineNum = 1573067;BA.debugLine="Msgbox(\"Usuario Cancelado llamar al administr";
__c.Msgbox(BA.ObjectToCharSequence("Usuario Cancelado llamar al administrador"),BA.ObjectToCharSequence(""),ba);
 }else {
RDebugUtils.currentLine=1573069;
 //BA.debugLineNum = 1573069;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'i";
__c.Msgbox(BA.ObjectToCharSequence("Usuario o password No validos"),BA.ObjectToCharSequence(""),ba);
 }}}
;
RDebugUtils.currentLine=1573071;
 //BA.debugLineNum = 1573071;BA.debugLine="paso1 = 0";
__ref._paso1 /*String*/  = BA.NumberToString(0);
 }else 
{RDebugUtils.currentLine=1573072;
 //BA.debugLineNum = 1573072;BA.debugLine="Else IF  name = \"OKActivo\" Then";
if ((_name).equals("OKActivo")) { 
RDebugUtils.currentLine=1573073;
 //BA.debugLineNum = 1573073;BA.debugLine="Msgbox(\"Telefono no VALIDO!\",\"\") 'ignore";
__c.Msgbox(BA.ObjectToCharSequence("Telefono no VALIDO!"),BA.ObjectToCharSequence(""),ba);
 }else {
RDebugUtils.currentLine=1573075;
 //BA.debugLineNum = 1573075;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'ig";
__c.Msgbox(BA.ObjectToCharSequence("Usuario o password No validos"),BA.ObjectToCharSequence(""),ba);
 }}
;
 };
 };
RDebugUtils.currentLine=1573079;
 //BA.debugLineNum = 1573079;BA.debugLine="End Sub";
return "";
}
public String  _lv_server_itemclick(gunav2.keymon.com.mx.b4xmainpage __ref,int _position,Object _value) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "lv_server_itemclick", false))
	 {return ((String) Debug.delegate(ba, "lv_server_itemclick", new Object[] {_position,_value}));}
RDebugUtils.currentLine=2490368;
 //BA.debugLineNum = 2490368;BA.debugLine="Private Sub lv_server_ItemClick (Position As Int,";
RDebugUtils.currentLine=2490369;
 //BA.debugLineNum = 2490369;BA.debugLine="Starter.server = Value";
_starter._server /*String*/  = BA.ObjectToString(_value);
RDebugUtils.currentLine=2490370;
 //BA.debugLineNum = 2490370;BA.debugLine="l_server.Text = Value";
__ref._l_server /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_value));
RDebugUtils.currentLine=2490371;
 //BA.debugLineNum = 2490371;BA.debugLine="et_server.Text = Value";
__ref._et_server /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_value));
RDebugUtils.currentLine=2490372;
 //BA.debugLineNum = 2490372;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES whe";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("DBReqServer")}));
RDebugUtils.currentLine=2490373;
 //BA.debugLineNum = 2490373;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES(CAT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("DBReqServer"),_value}));
RDebugUtils.currentLine=2490374;
 //BA.debugLineNum = 2490374;BA.debugLine="Starter.reqManager.Initialize(Me, Value)";
_starter._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,BA.ObjectToString(_value));
RDebugUtils.currentLine=2490375;
 //BA.debugLineNum = 2490375;BA.debugLine="ToastMessageShow(\"Servidor modificado\", False)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Servidor modificado"),__c.False);
RDebugUtils.currentLine=2490376;
 //BA.debugLineNum = 2490376;BA.debugLine="End Sub";
return "";
}
public String  _ocultaprogreso(gunav2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "ocultaprogreso", false))
	 {return ((String) Debug.delegate(ba, "ocultaprogreso", null));}
RDebugUtils.currentLine=2293760;
 //BA.debugLineNum = 2293760;BA.debugLine="Sub ocultaProgreso";
RDebugUtils.currentLine=2293761;
 //BA.debugLineNum = 2293761;BA.debugLine="ProgressDialogHide";
__c.ProgressDialogHide();
RDebugUtils.currentLine=2293762;
 //BA.debugLineNum = 2293762;BA.debugLine="End Sub";
return "";
}
public String  _p_validacion_click(gunav2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "p_validacion_click", false))
	 {return ((String) Debug.delegate(ba, "p_validacion_click", null));}
RDebugUtils.currentLine=2752512;
 //BA.debugLineNum = 2752512;BA.debugLine="Private Sub p_validacion_Click";
RDebugUtils.currentLine=2752513;
 //BA.debugLineNum = 2752513;BA.debugLine="End Sub";
return "";
}
public String  _pdf_click(gunav2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "pdf_click", false))
	 {return ((String) Debug.delegate(ba, "pdf_click", null));}
RDebugUtils.currentLine=1966080;
 //BA.debugLineNum = 1966080;BA.debugLine="Sub PDF_Click";
RDebugUtils.currentLine=1966082;
 //BA.debugLineNum = 1966082;BA.debugLine="End Sub";
return "";
}
public String  _popupmenu_dismiss(gunav2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "popupmenu_dismiss", false))
	 {return ((String) Debug.delegate(ba, "popupmenu_dismiss", null));}
RDebugUtils.currentLine=1769472;
 //BA.debugLineNum = 1769472;BA.debugLine="Sub PopupMenu_Dismiss";
RDebugUtils.currentLine=1769473;
 //BA.debugLineNum = 1769473;BA.debugLine="ToastMessageShow(\"PopupMenu dismissed\", False)";
__c.ToastMessageShow(BA.ObjectToCharSequence("PopupMenu dismissed"),__c.False);
RDebugUtils.currentLine=1769474;
 //BA.debugLineNum = 1769474;BA.debugLine="End Sub";
return "";
}
public boolean  _popupmenu_menuitemclick(gunav2.keymon.com.mx.b4xmainpage __ref,int _itemid) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "popupmenu_menuitemclick", false))
	 {return ((Boolean) Debug.delegate(ba, "popupmenu_menuitemclick", new Object[] {_itemid}));}
RDebugUtils.currentLine=1835008;
 //BA.debugLineNum = 1835008;BA.debugLine="Sub PopupMenu_MenuItemClick (ItemId As Int) As Boo";
RDebugUtils.currentLine=1835009;
 //BA.debugLineNum = 1835009;BA.debugLine="ToastMessageShow(\"Item \" & ItemId & \" clicked.\",";
__c.ToastMessageShow(BA.ObjectToCharSequence("Item "+BA.NumberToString(_itemid)+" clicked."),__c.False);
RDebugUtils.currentLine=1835010;
 //BA.debugLineNum = 1835010;BA.debugLine="Return False";
if (true) return __c.False;
RDebugUtils.currentLine=1835011;
 //BA.debugLineNum = 1835011;BA.debugLine="End Sub";
return false;
}
public void  _revisaactualizacion(gunav2.keymon.com.mx.b4xmainpage __ref) throws Exception{
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "revisaactualizacion", false))
	 {Debug.delegate(ba, "revisaactualizacion", null); return;}
ResumableSub_revisaActualizacion rsub = new ResumableSub_revisaActualizacion(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_revisaActualizacion extends BA.ResumableSub {
public ResumableSub_revisaActualizacion(gunav2.keymon.com.mx.b4xmainpage parent,gunav2.keymon.com.mx.b4xmainpage __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
gunav2.keymon.com.mx.b4xmainpage __ref;
gunav2.keymon.com.mx.b4xmainpage parent;
String _link = "";
gunav2.keymon.com.mx.httpjob _j = null;
String[] _app = null;

@Override
public void resume(BA ba, Object[] result) throws Exception{
RDebugUtils.currentModule="b4xmainpage";

    while (true) {
try {

        switch (state) {
            case -1:
return;

case 0:
//C
this.state = 1;
RDebugUtils.currentLine=2949126;
 //BA.debugLineNum = 2949126;BA.debugLine="LogColor(\"Buscarmos archivo Ver\", Colors.red)";
parent.__c.LogImpl("02949126","Buscarmos archivo Ver",parent.__c.Colors.Red);
RDebugUtils.currentLine=2949127;
 //BA.debugLineNum = 2949127;BA.debugLine="Private link As String = \"https://keymon.net/movi";
_link = "https://keymon.net/movil/guna/gunaPreventa.ver";
RDebugUtils.currentLine=2949128;
 //BA.debugLineNum = 2949128;BA.debugLine="Wait For (traeArchivoVer(Me, link)) JobDone (j As";
parent.__c.WaitFor("jobdone", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "revisaactualizacion"), (Object)(__ref._traearchivover /*gunav2.keymon.com.mx.httpjob*/ (null,parent,_link)));
this.state = 28;
return;
case 28:
//C
this.state = 1;
_j = (gunav2.keymon.com.mx.httpjob) result[1];
;
RDebugUtils.currentLine=2949129;
 //BA.debugLineNum = 2949129;BA.debugLine="If j.Success Then";
if (true) break;

case 1:
//if
this.state = 27;
if (_j._success /*boolean*/ ) { 
this.state = 3;
}else {
this.state = 22;
}if (true) break;

case 3:
//C
this.state = 4;
RDebugUtils.currentLine=2949130;
 //BA.debugLineNum = 2949130;BA.debugLine="LogColor(\"Archivo .VER encontrado.\", Colors.red)";
parent.__c.LogImpl("02949130","Archivo .VER encontrado.",parent.__c.Colors.Red);
RDebugUtils.currentLine=2949131;
 //BA.debugLineNum = 2949131;BA.debugLine="Try";
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;
RDebugUtils.currentLine=2949132;
 //BA.debugLineNum = 2949132;BA.debugLine="Dim app() As String = Regex.Split(Chr(9),j.GetS";
_app = parent.__c.Regex.Split(BA.ObjectToString(parent.__c.Chr((int) (9))),_j._getstring /*String*/ (null));
RDebugUtils.currentLine=2949134;
 //BA.debugLineNum = 2949134;BA.debugLine="Starter.newApp.appLink = app(3)   'Liga a nuevo";
parent._starter._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ .appLink /*String*/  = _app[(int) (3)];
RDebugUtils.currentLine=2949135;
 //BA.debugLineNum = 2949135;BA.debugLine="Starter.newApp.newMsg = app(1)  'Texto de que h";
parent._starter._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ .newMsg /*String*/  = _app[(int) (1)];
RDebugUtils.currentLine=2949136;
 //BA.debugLineNum = 2949136;BA.debugLine="Starter.newApp.okMsg = app(2)    'Texto de app";
parent._starter._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ .okMsg /*String*/  = _app[(int) (2)];
RDebugUtils.currentLine=2949137;
 //BA.debugLineNum = 2949137;BA.debugLine="Starter.newApp.version = app(0)   'Version actu";
parent._starter._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ .version /*String*/  = _app[(int) (0)];
RDebugUtils.currentLine=2949138;
 //BA.debugLineNum = 2949138;BA.debugLine="Log($\"Application.VersionName=${Application.Ver";
parent.__c.LogImpl("02949138",("Application.VersionName="+parent.__c.SmartStringFormatter("",(Object)(parent.__c.Application.getVersionName()))+", newApp="+parent.__c.SmartStringFormatter("",(Object)(parent._starter._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ ))+""),0);
RDebugUtils.currentLine=2949140;
 //BA.debugLineNum = 2949140;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\"";
parent.__c.DateTime.setDateFormat("yyyyMMdd");
RDebugUtils.currentLine=2949141;
 //BA.debugLineNum = 2949141;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES w";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("REVISION_APK")}));
RDebugUtils.currentLine=2949142;
 //BA.debugLineNum = 2949142;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES(C";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("REVISION_APK"),(Object)(parent.__c.DateTime.Date(parent.__c.DateTime.getNow()))}));
RDebugUtils.currentLine=2949144;
 //BA.debugLineNum = 2949144;BA.debugLine="If Starter.newApp.version = Application.Version";
if (true) break;

case 7:
//if
this.state = 10;
if ((parent._starter._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ .version /*String*/ ).equals(parent.__c.Application.getVersionName())) { 
this.state = 9;
}if (true) break;

case 9:
//C
this.state = 10;
RDebugUtils.currentLine=2949145;
 //BA.debugLineNum = 2949145;BA.debugLine="Starter.newApp.update = False";
parent._starter._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ .update /*boolean*/  = parent.__c.False;
RDebugUtils.currentLine=2949146;
 //BA.debugLineNum = 2949146;BA.debugLine="LogColor(\"No hay nuevo APK\", Colors.red)";
parent.__c.LogImpl("02949146","No hay nuevo APK",parent.__c.Colors.Red);
RDebugUtils.currentLine=2949147;
 //BA.debugLineNum = 2949147;BA.debugLine="B4XPages.MainPage.Entrar.Enabled = True";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._entrar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(parent.__c.True);
 if (true) break;
;
RDebugUtils.currentLine=2949149;
 //BA.debugLineNum = 2949149;BA.debugLine="If Starter.newApp.version <> Application.Versio";

case 10:
//if
this.state = 13;
if ((parent._starter._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ .version /*String*/ ).equals(parent.__c.Application.getVersionName()) == false) { 
this.state = 12;
}if (true) break;

case 12:
//C
this.state = 13;
RDebugUtils.currentLine=2949150;
 //BA.debugLineNum = 2949150;BA.debugLine="Starter.newApp.update = True";
parent._starter._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ .update /*boolean*/  = parent.__c.True;
RDebugUtils.currentLine=2949151;
 //BA.debugLineNum = 2949151;BA.debugLine="LogColor(\"Hay nuevo APK\", Colors.red)";
parent.__c.LogImpl("02949151","Hay nuevo APK",parent.__c.Colors.Red);
RDebugUtils.currentLine=2949152;
 //BA.debugLineNum = 2949152;BA.debugLine="b_actualizacion.Visible = True";
__ref._b_actualizacion /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(parent.__c.True);
RDebugUtils.currentLine=2949153;
 //BA.debugLineNum = 2949153;BA.debugLine="CallSubDelayed(appUpdater, \"download_newApk\")";
parent.__c.CallSubDelayed(ba,(Object)(parent._appupdater.getObject()),"download_newApk");
 if (true) break;

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

case 15:
//C
this.state = 16;
this.catchState = 0;
RDebugUtils.currentLine=2949156;
 //BA.debugLineNum = 2949156;BA.debugLine="LogColor(\"appUpdater(), Job Failed, error  \" &";
parent.__c.LogImpl("02949156","appUpdater(), Job Failed, error  "+parent.__c.LastException(ba).getMessage(),parent.__c.Colors.Red);
RDebugUtils.currentLine=2949157;
 //BA.debugLineNum = 2949157;BA.debugLine="If Msgbox2(\"Hubo un error: \" & LastException.Me";
if (true) break;

case 16:
//if
this.state = 19;
if (parent.__c.Msgbox2(BA.ObjectToCharSequence("Hubo un error: "+parent.__c.LastException(ba).getMessage()),BA.ObjectToCharSequence("FALLO LA ACTUALIZACIÓN"),"OK","","",(android.graphics.Bitmap)(parent.__c.Null),ba)==parent.__c.DialogResponse.POSITIVE) { 
this.state = 18;
}if (true) break;

case 18:
//C
this.state = 19;
RDebugUtils.currentLine=2949158;
 //BA.debugLineNum = 2949158;BA.debugLine="ExitApplication";
parent.__c.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;
RDebugUtils.currentLine=2949163;
 //BA.debugLineNum = 2949163;BA.debugLine="If Msgbox2(\"Es necesaria una conexión a internet";
if (true) break;

case 23:
//if
this.state = 26;
if (parent.__c.Msgbox2(BA.ObjectToCharSequence("Es necesaria una conexión a internet, por favor revise su conexión y vuelva a intentar"),BA.ObjectToCharSequence("ATENCIÓN"),"OK","","",(android.graphics.Bitmap)(parent.__c.Null),ba)==parent.__c.DialogResponse.POSITIVE) { 
this.state = 25;
}if (true) break;

case 25:
//C
this.state = 26;
RDebugUtils.currentLine=2949164;
 //BA.debugLineNum = 2949164;BA.debugLine="ExitApplication";
parent.__c.ExitApplication();
 if (true) break;

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

case 27:
//C
this.state = -1;
;
RDebugUtils.currentLine=2949167;
 //BA.debugLineNum = 2949167;BA.debugLine="j.Release";
_j._release /*String*/ (null);
RDebugUtils.currentLine=2949168;
 //BA.debugLineNum = 2949168;BA.debugLine="End Sub";
if (true) break;
}} 
       catch (Exception e0) {
			
if (catchState == 0)
    throw e0;
else {
    state = catchState;
ba.setLastException(e0);}
            }
        }
    }
}
public gunav2.keymon.com.mx.httpjob  _traearchivover(gunav2.keymon.com.mx.b4xmainpage __ref,Object _callback,String _link) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "traearchivover", false))
	 {return ((gunav2.keymon.com.mx.httpjob) Debug.delegate(ba, "traearchivover", new Object[] {_callback,_link}));}
gunav2.keymon.com.mx.httpjob _j = null;
RDebugUtils.currentLine=3014656;
 //BA.debugLineNum = 3014656;BA.debugLine="Sub traeArchivoVer (Callback As Object, link As St";
RDebugUtils.currentLine=3014657;
 //BA.debugLineNum = 3014657;BA.debugLine="Dim j As HttpJob";
_j = new gunav2.keymon.com.mx.httpjob();
RDebugUtils.currentLine=3014658;
 //BA.debugLineNum = 3014658;BA.debugLine="j.Initialize(\"\", Callback)";
_j._initialize /*String*/ (null,ba,"",_callback);
RDebugUtils.currentLine=3014659;
 //BA.debugLineNum = 3014659;BA.debugLine="j.GetRequest.Timeout = 5000";
_j._getrequest /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ (null).setTimeout((int) (5000));
RDebugUtils.currentLine=3014660;
 //BA.debugLineNum = 3014660;BA.debugLine="j.Download(link)";
_j._download /*String*/ (null,_link);
RDebugUtils.currentLine=3014661;
 //BA.debugLineNum = 3014661;BA.debugLine="Return j";
if (true) return _j;
RDebugUtils.currentLine=3014662;
 //BA.debugLineNum = 3014662;BA.debugLine="End Sub";
return null;
}
public String  _user_enterpressed(gunav2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "user_enterpressed", false))
	 {return ((String) Debug.delegate(ba, "user_enterpressed", null));}
RDebugUtils.currentLine=1507328;
 //BA.debugLineNum = 1507328;BA.debugLine="Private Sub user_EnterPressed";
RDebugUtils.currentLine=1507329;
 //BA.debugLineNum = 1507329;BA.debugLine="If user.text = \"KMTS1\" Then Entrar.Enabled = True";
if ((__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("KMTS1")) { 
__ref._entrar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True);};
RDebugUtils.currentLine=1507330;
 //BA.debugLineNum = 1507330;BA.debugLine="End Sub";
return "";
}
public boolean  _versionrevisadahoy(gunav2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "versionrevisadahoy", false))
	 {return ((Boolean) Debug.delegate(ba, "versionrevisadahoy", null));}
boolean _revisada = false;
RDebugUtils.currentLine=3080192;
 //BA.debugLineNum = 3080192;BA.debugLine="Sub versionRevisadaHoy As Boolean";
RDebugUtils.currentLine=3080193;
 //BA.debugLineNum = 3080193;BA.debugLine="Private revisada As Boolean = False";
_revisada = __c.False;
RDebugUtils.currentLine=3080194;
 //BA.debugLineNum = 3080194;BA.debugLine="c = skmt.ExecQuery2(\"select CAT_VA_VALOR from CAT";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"REVISION_APK"})));
RDebugUtils.currentLine=3080195;
 //BA.debugLineNum = 3080195;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3080196;
 //BA.debugLineNum = 3080196;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3080197;
 //BA.debugLineNum = 3080197;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\"";
__c.DateTime.setDateFormat("yyyyMMdd");
RDebugUtils.currentLine=3080198;
 //BA.debugLineNum = 3080198;BA.debugLine="If DateTime.Date(DateTime.Now) = c.GetString(\"CA";
if ((__c.DateTime.Date(__c.DateTime.getNow())).equals(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_VA_VALOR"))) { 
RDebugUtils.currentLine=3080199;
 //BA.debugLineNum = 3080199;BA.debugLine="revisada = True";
_revisada = __c.True;
RDebugUtils.currentLine=3080200;
 //BA.debugLineNum = 3080200;BA.debugLine="LogColor(\"La versión ya se revisó el día de hoy";
__c.LogImpl("03080200","La versión ya se revisó el día de hoy.",__c.Colors.Red);
 };
 };
RDebugUtils.currentLine=3080206;
 //BA.debugLineNum = 3080206;BA.debugLine="Return False";
if (true) return __c.False;
RDebugUtils.currentLine=3080208;
 //BA.debugLineNum = 3080208;BA.debugLine="End Sub";
return false;
}
}