package reparto_intmex.keymon.lat;


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, "reparto_intmex.keymon.lat.b4xmainpage");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", reparto_intmex.keymon.lat.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.RuntimePermissions _rp = null;
public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
public reparto_intmex.keymon.lat.b4xmainpage _login = null;
public reparto_intmex.keymon.lat.c_principal _principal = null;
public reparto_intmex.keymon.lat.c_clientes _clientes = null;
public reparto_intmex.keymon.lat.c_cliente _cliente = null;
public reparto_intmex.keymon.lat.c_productos _productos = null;
public reparto_intmex.keymon.lat.c_updateavailable _updateavailable = null;
public reparto_intmex.keymon.lat.c_mapas _mapas = null;
public reparto_intmex.keymon.lat.c_nuevocliente _nuevocliente = null;
public reparto_intmex.keymon.lat.c_ticketsdia _ticketsdia = null;
public reparto_intmex.keymon.lat.c_noventa _noventa = null;
public reparto_intmex.keymon.lat.c_pedidos _pedidos = null;
public reparto_intmex.keymon.lat.c_buscar _buscar = null;
public reparto_intmex.keymon.lat.c_detalleventa _detalleventa = null;
public reparto_intmex.keymon.lat.c_detalle_promo _detalle_promo = null;
public reparto_intmex.keymon.lat.dbrequestmanager _reqmanager = null;
public String _usuario = "";
public boolean _logger = false;
public String _lat_gps = "";
public String _lon_gps = "";
public String _server = "";
public String _montoactual = "";
public String _clientestotal = "";
public String _clientesventa = "";
public String _clientesrechazo = "";
public String _clientesvisitados = "";
public String _almacen = "";
public String _rutapreventa = "";
public String _cantidadprod = "";
public String _ultimaactualizaciongps = "";
public String _fecharuta = "";
public String _srvip = "";
public anywheresoftware.b4a.phone.Phone _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 anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_principal = null;
public anywheresoftware.b4a.objects.ButtonWrapper _entrar = null;
public reparto_intmex.keymon.lat.c_cheklist _checklist = null;
public reparto_intmex.keymon.lat.c_tabulador _tabulador = null;
public int _batt = 0;
public String _porvisitar = "";
public String _entregas = "";
public String _rechazos = "";
public String _montoentregado = "";
public String _montorechazado = "";
public anywheresoftware.b4a.objects.PanelWrapper _p_appupdate = null;
public anywheresoftware.b4a.objects.ImageViewWrapper _i_engrane = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_server = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_apk = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_enviobd = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_regesar = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_server = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_serverlist = null;
public anywheresoftware.b4a.objects.ListViewWrapper _lv_server = null;
public reparto_intmex.keymon.lat.fileprovider _provider = null;
public String _rutabdbackup = "";
public anywheresoftware.b4a.objects.ButtonWrapper _b_can_monto = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_aceptar_monto = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_add_monto = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_add_monto = null;
public String _sdate = "";
public String _stime = "";
public anywheresoftware.b4a.objects.PanelWrapper _p_validacion = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_cancelarcodigo = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_aceptar = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_codigo = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_ciego = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_terpc = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_pc_env = null;
public b4a.example3.customlistview _clv_pick_ciego = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_buspc = null;
public String _q_buscar = "";
public anywheresoftware.b4a.sql.SQL.CursorWrapper _d = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_pick_ciego = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_pick_ciego = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _a = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _f = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_abono = null;
public b4a.example.dateutils _dateutils = null;
public reparto_intmex.keymon.lat.main _main = null;
public reparto_intmex.keymon.lat.appupdater _appupdater = null;
public reparto_intmex.keymon.lat.foto _foto = null;
public reparto_intmex.keymon.lat.mapa_cliente _mapa_cliente = null;
public reparto_intmex.keymon.lat.mapa_rutas _mapa_rutas = null;
public reparto_intmex.keymon.lat.starter _starter = null;
public reparto_intmex.keymon.lat.subs _subs = null;
public reparto_intmex.keymon.lat.tracker _tracker = null;
public reparto_intmex.keymon.lat.newinst2 _newinst2 = null;
public reparto_intmex.keymon.lat.b4xpages _b4xpages = null;
public reparto_intmex.keymon.lat.b4xcollections _b4xcollections = null;
public reparto_intmex.keymon.lat.httputils2service _httputils2service = null;
public reparto_intmex.keymon.lat.xuiviewsutils _xuiviewsutils = null;
public String  _muestraprogreso(reparto_intmex.keymon.lat.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=37748736;
 //BA.debugLineNum = 37748736;BA.debugLine="Sub muestraProgreso(mensaje As String)";
RDebugUtils.currentLine=37748737;
 //BA.debugLineNum = 37748737;BA.debugLine="ProgressDialogShow(mensaje)";
__c.ProgressDialogShow(ba,BA.ObjectToCharSequence(_mensaje));
RDebugUtils.currentLine=37748738;
 //BA.debugLineNum = 37748738;BA.debugLine="End Sub";
return "";
}
public String  _ocultaprogreso(reparto_intmex.keymon.lat.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "ocultaprogreso", false))
	 {return ((String) Debug.delegate(ba, "ocultaprogreso", null));}
RDebugUtils.currentLine=37814272;
 //BA.debugLineNum = 37814272;BA.debugLine="Sub ocultaProgreso";
RDebugUtils.currentLine=37814273;
 //BA.debugLineNum = 37814273;BA.debugLine="ProgressDialogHide";
__c.ProgressDialogHide();
RDebugUtils.currentLine=37814274;
 //BA.debugLineNum = 37814274;BA.debugLine="End Sub";
return "";
}
public String  _b_aceptar_click(reparto_intmex.keymon.lat.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));}
RDebugUtils.currentLine=38469632;
 //BA.debugLineNum = 38469632;BA.debugLine="Private Sub b_aceptar_Click";
RDebugUtils.currentLine=38469633;
 //BA.debugLineNum = 38469633;BA.debugLine="Private f As Cursor=Starter.skmt.ExecQuery(\"selec";
_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA")));
RDebugUtils.currentLine=38469634;
 //BA.debugLineNum = 38469634;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=38469635;
 //BA.debugLineNum = 38469635;BA.debugLine="Private a As Cursor =Starter.skmt.ExecQuery(\"sele";
_a = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_a = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
RDebugUtils.currentLine=38469636;
 //BA.debugLineNum = 38469636;BA.debugLine="a.Position = 0";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=38469642;
 //BA.debugLineNum = 38469642;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=38469643;
 //BA.debugLineNum = 38469643;BA.debugLine="a.Close";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=38469648;
 //BA.debugLineNum = 38469648;BA.debugLine="End Sub";
return "";
}
public String  _b_apk_click(reparto_intmex.keymon.lat.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=37486592;
 //BA.debugLineNum = 37486592;BA.debugLine="Private Sub b_apk_Click";
RDebugUtils.currentLine=37486593;
 //BA.debugLineNum = 37486593;BA.debugLine="StartService(appUpdater)";
__c.StartService(ba,(Object)(_appupdater.getObject()));
RDebugUtils.currentLine=37486594;
 //BA.debugLineNum = 37486594;BA.debugLine="End Sub";
return "";
}
public String  _b_arqueocieego_click(reparto_intmex.keymon.lat.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_arqueocieego_click", false))
	 {return ((String) Debug.delegate(ba, "b_arqueocieego_click", null));}
RDebugUtils.currentLine=38141952;
 //BA.debugLineNum = 38141952;BA.debugLine="Private Sub b_arqueocieego_Click";
RDebugUtils.currentLine=38141953;
 //BA.debugLineNum = 38141953;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT *  FROM CAT_GU";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT *  FROM CAT_GUNAPROD3")));
RDebugUtils.currentLine=38141954;
 //BA.debugLineNum = 38141954;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=38141955;
 //BA.debugLineNum = 38141955;BA.debugLine="Subs.panelVisible(p_validacion,0,0)";
_subs._panelvisible /*String*/ (ba,__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
 }else {
RDebugUtils.currentLine=38141957;
 //BA.debugLineNum = 38141957;BA.debugLine="MsgboxAsync(\"No hay ruta cargada, favor de carga";
__c.MsgboxAsync(BA.ObjectToCharSequence("No hay ruta cargada, favor de cargar día"),BA.ObjectToCharSequence("Atención"),ba);
 };
RDebugUtils.currentLine=38141959;
 //BA.debugLineNum = 38141959;BA.debugLine="End Sub";
return "";
}
public String  _b_can_monto_click(reparto_intmex.keymon.lat.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_can_monto_click", false))
	 {return ((String) Debug.delegate(ba, "b_can_monto_click", null));}
RDebugUtils.currentLine=38076416;
 //BA.debugLineNum = 38076416;BA.debugLine="Private Sub B_Can_Monto_Click";
RDebugUtils.currentLine=38076417;
 //BA.debugLineNum = 38076417;BA.debugLine="p_add_monto.Visible = False";
__ref._p_add_monto /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=38076418;
 //BA.debugLineNum = 38076418;BA.debugLine="End Sub";
return "";
}
public String  _b_cancelarcodigo_click(reparto_intmex.keymon.lat.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=38600704;
 //BA.debugLineNum = 38600704;BA.debugLine="Private Sub b_cancelarcodigo_Click";
RDebugUtils.currentLine=38600705;
 //BA.debugLineNum = 38600705;BA.debugLine="p_validacion.Visible = False";
__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=38600706;
 //BA.debugLineNum = 38600706;BA.debugLine="End Sub";
return "";
}
public String  _b_cargarmonto_click(reparto_intmex.keymon.lat.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_cargarmonto_click", false))
	 {return ((String) Debug.delegate(ba, "b_cargarmonto_click", null));}
RDebugUtils.currentLine=37879808;
 //BA.debugLineNum = 37879808;BA.debugLine="Private Sub b_CargarMonto_Click";
RDebugUtils.currentLine=37879810;
 //BA.debugLineNum = 37879810;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT *  FROM kmt_in";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT *  FROM kmt_info")));
RDebugUtils.currentLine=37879811;
 //BA.debugLineNum = 37879811;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=37879812;
 //BA.debugLineNum = 37879812;BA.debugLine="If c.RowCount < 0 Or c.RowCount = 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()<0 || __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
RDebugUtils.currentLine=37879813;
 //BA.debugLineNum = 37879813;BA.debugLine="MsgboxAsync(\"No hay ruta cargada, favor de carga";
__c.MsgboxAsync(BA.ObjectToCharSequence("No hay ruta cargada, favor de cargar día"),BA.ObjectToCharSequence("Atención"),ba);
 }else {
RDebugUtils.currentLine=37879815;
 //BA.debugLineNum = 37879815;BA.debugLine="Subs.panelVisible(p_add_monto,0,0)";
_subs._panelvisible /*String*/ (ba,__ref._p_add_monto /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
 };
RDebugUtils.currentLine=37879817;
 //BA.debugLineNum = 37879817;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=37879819;
 //BA.debugLineNum = 37879819;BA.debugLine="End Sub";
return "";
}
public void  _b_enviobd_click(reparto_intmex.keymon.lat.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(reparto_intmex.keymon.lat.b4xmainpage parent,reparto_intmex.keymon.lat.b4xmainpage __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
reparto_intmex.keymon.lat.b4xmainpage __ref;
reparto_intmex.keymon.lat.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=37421059;
 //BA.debugLineNum = 37421059;BA.debugLine="Dim FileName As String = \"kmt.db\"";
_filename = "kmt.db";
RDebugUtils.currentLine=37421061;
 //BA.debugLineNum = 37421061;BA.debugLine="Log(\"xxxxxx:\"&Provider.SharedFolder)";
parent.__c.LogImpl("237421061","xxxxxx:"+__ref._provider /*reparto_intmex.keymon.lat.fileprovider*/ ._sharedfolder /*String*/ ,0);
RDebugUtils.currentLine=37421062;
 //BA.debugLineNum = 37421062;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=37421063;
 //BA.debugLineNum = 37421063;BA.debugLine="File.Copy(File.DirInternal, FileName, Provider.Sh";
parent.__c.File.Copy(parent.__c.File.getDirInternal(),_filename,__ref._provider /*reparto_intmex.keymon.lat.fileprovider*/ ._sharedfolder /*String*/ ,_filename);
RDebugUtils.currentLine=37421064;
 //BA.debugLineNum = 37421064;BA.debugLine="Dim email As Email";
_email = new anywheresoftware.b4a.phone.Phone.Email();
RDebugUtils.currentLine=37421065;
 //BA.debugLineNum = 37421065;BA.debugLine="email.To.Add(\"soporte@keymonsoft.com\")";
_email.To.Add((Object)("soporte@keymonsoft.com"));
RDebugUtils.currentLine=37421066;
 //BA.debugLineNum = 37421066;BA.debugLine="email.Subject = \"Base de datos para revisión\"";
_email.Subject = "Base de datos para revisión";
RDebugUtils.currentLine=37421067;
 //BA.debugLineNum = 37421067;BA.debugLine="email.Attachments.Add(Provider.GetFileUri(FileNam";
_email.Attachments.Add(__ref._provider /*reparto_intmex.keymon.lat.fileprovider*/ ._getfileuri /*Object*/ (null,_filename));
RDebugUtils.currentLine=37421069;
 //BA.debugLineNum = 37421069;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=37421070;
 //BA.debugLineNum = 37421070;BA.debugLine="in.Flags = 1 'FLAG_GRANT_READ_URI_PERMISSION";
_in.setFlags((int) (1));
RDebugUtils.currentLine=37421071;
 //BA.debugLineNum = 37421071;BA.debugLine="StartActivity(in)";
parent.__c.StartActivity(ba,(Object)(_in.getObject()));
RDebugUtils.currentLine=37421072;
 //BA.debugLineNum = 37421072;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _b_pc_env_click(reparto_intmex.keymon.lat.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_pc_env_click", false))
	 {return ((String) Debug.delegate(ba, "b_pc_env_click", null));}
int _i = 0;
anywheresoftware.b4a.objects.B4XViewWrapper _itempanel = null;
anywheresoftware.b4a.objects.B4XViewWrapper _innerpanel = null;
anywheresoftware.b4a.objects.B4XViewWrapper _edittext = null;
String _inputtext = "";
anywheresoftware.b4a.objects.B4XViewWrapper _idlabel = null;
String _idtext = "";
String[] _idparts = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _k = null;
String[] _fechatabulador = null;
String[] _fechatabulador2 = null;
String _fechatabulador3 = "";
RDebugUtils.currentLine=38273024;
 //BA.debugLineNum = 38273024;BA.debugLine="Private Sub B_PC_ENV_Click";
RDebugUtils.currentLine=38273025;
 //BA.debugLineNum = 38273025;BA.debugLine="Dim sDate, sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=38273026;
 //BA.debugLineNum = 38273026;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
__c.DateTime.setDateFormat("dd/MM/yyyy");
RDebugUtils.currentLine=38273027;
 //BA.debugLineNum = 38273027;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=38273028;
 //BA.debugLineNum = 38273028;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=38273029;
 //BA.debugLineNum = 38273029;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=38273032;
 //BA.debugLineNum = 38273032;BA.debugLine="For i = 0 To CLV_PICK_CIEGO.Size - 1";
{
final int step6 = 1;
final int limit6 = (int) (__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._getsize()-1);
_i = (int) (0) ;
for (;_i <= limit6 ;_i = _i + step6 ) {
RDebugUtils.currentLine=38273034;
 //BA.debugLineNum = 38273034;BA.debugLine="Dim itemPanel As B4XView = CLV_PICK_CIEGO.GetPan";
_itempanel = new anywheresoftware.b4a.objects.B4XViewWrapper();
_itempanel = __ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._getpanel(_i);
RDebugUtils.currentLine=38273035;
 //BA.debugLineNum = 38273035;BA.debugLine="Dim innerPanel As B4XView = itemPanel.GetView(0)";
_innerpanel = new anywheresoftware.b4a.objects.B4XViewWrapper();
_innerpanel = _itempanel.GetView((int) (0));
RDebugUtils.currentLine=38273036;
 //BA.debugLineNum = 38273036;BA.debugLine="Dim editText As B4XView = innerPanel.GetView(1)";
_edittext = new anywheresoftware.b4a.objects.B4XViewWrapper();
_edittext = _innerpanel.GetView((int) (1));
RDebugUtils.currentLine=38273037;
 //BA.debugLineNum = 38273037;BA.debugLine="Dim inputText As String = editText.As(EditText).";
_inputtext = ((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_edittext.getObject()))).getText();
RDebugUtils.currentLine=38273040;
 //BA.debugLineNum = 38273040;BA.debugLine="If Regex.IsMatch(\"^[0]+$\", inputText) Or inputTe";
if (__c.Regex.IsMatch("^[0]+$",_inputtext) || (_inputtext).equals("")) { 
RDebugUtils.currentLine=38273041;
 //BA.debugLineNum = 38273041;BA.debugLine="inputText = \"0\"";
_inputtext = "0";
 };
RDebugUtils.currentLine=38273045;
 //BA.debugLineNum = 38273045;BA.debugLine="Dim idLabel As B4XView = innerPanel.GetView(0)";
_idlabel = new anywheresoftware.b4a.objects.B4XViewWrapper();
_idlabel = _innerpanel.GetView((int) (0));
RDebugUtils.currentLine=38273046;
 //BA.debugLineNum = 38273046;BA.debugLine="Dim idText As String = idLabel.As(Label).Text";
_idtext = ((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(_idlabel.getObject()))).getText();
RDebugUtils.currentLine=38273047;
 //BA.debugLineNum = 38273047;BA.debugLine="Dim idParts() As String = Regex.Split(CRLF, idTe";
_idparts = __c.Regex.Split(__c.CRLF,_idtext);
RDebugUtils.currentLine=38273049;
 //BA.debugLineNum = 38273049;BA.debugLine="f=Starter.skmt.ExecQuery(\"select RUTAA from RUTA";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA")));
RDebugUtils.currentLine=38273050;
 //BA.debugLineNum = 38273050;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=38273051;
 //BA.debugLineNum = 38273051;BA.debugLine="Log(f.GetString(\"RUTAA\"))";
__c.LogImpl("238273051",__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"),0);
RDebugUtils.currentLine=38273052;
 //BA.debugLineNum = 38273052;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN from";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
RDebugUtils.currentLine=38273053;
 //BA.debugLineNum = 38273053;BA.debugLine="If a.RowCount>0 Then";
if (__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=38273054;
 //BA.debugLineNum = 38273054;BA.debugLine="a.Position=0";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
 };
RDebugUtils.currentLine=38273056;
 //BA.debugLineNum = 38273056;BA.debugLine="Dim k As Cursor = Starter.skmt.ExecQuery(\"SELECT";
_k = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_k = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS")));
RDebugUtils.currentLine=38273057;
 //BA.debugLineNum = 38273057;BA.debugLine="k.Position = 0";
_k.setPosition((int) (0));
RDebugUtils.currentLine=38273058;
 //BA.debugLineNum = 38273058;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\" \"";
_fechatabulador = __c.Regex.Split(" ",_k.GetString("HVD_FECHA"));
RDebugUtils.currentLine=38273059;
 //BA.debugLineNum = 38273059;BA.debugLine="Dim fechatabulador2() As String = Regex.Split(\"-";
_fechatabulador2 = __c.Regex.Split("-",_fechatabulador[(int) (0)]);
RDebugUtils.currentLine=38273060;
 //BA.debugLineNum = 38273060;BA.debugLine="Dim fechatabulador3 As String = fechatabulador2(";
_fechatabulador3 = _fechatabulador2[(int) (2)]+"/"+_fechatabulador2[(int) (1)]+"/"+_fechatabulador2[(int) (0)];
RDebugUtils.currentLine=38273061;
 //BA.debugLineNum = 38273061;BA.debugLine="k.Close";
_k.Close();
RDebugUtils.currentLine=38273062;
 //BA.debugLineNum = 38273062;BA.debugLine="If inputText <> \"\" Then";
if ((_inputtext).equals("") == false) { 
RDebugUtils.currentLine=38273063;
 //BA.debugLineNum = 38273063;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PICK";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?",new String[]{_idparts[(int) (0)]})));
RDebugUtils.currentLine=38273064;
 //BA.debugLineNum = 38273064;BA.debugLine="If c.RowCount = 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
RDebugUtils.currentLine=38273066;
 //BA.debugLineNum = 38273066;BA.debugLine="Log(f.GetString(\"RUTAA\"))";
__c.LogImpl("238273066",__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"),0);
RDebugUtils.currentLine=38273067;
 //BA.debugLineNum = 38273067;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PICK_C";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PICK_CIEGO(PC_ID_PROD, PC_NOM_PROD, PC_CANT, PC_ALMACEN, PC_RUTA, PC_FECHA) VALUES(?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],_inputtext,__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"),__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"),_fechatabulador3+" "+__ref._stime /*String*/ }));
 }else {
RDebugUtils.currentLine=38273070;
 //BA.debugLineNum = 38273070;BA.debugLine="Log(f.GetString(\"RUTAA\"))";
__c.LogImpl("238273070",__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"),0);
RDebugUtils.currentLine=38273071;
 //BA.debugLineNum = 38273071;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEGO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update PICK_CIEGO set PC_CANT = ?  WHERE PC_ID_PROD = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_inputtext,_idparts[(int) (0)]}));
 };
 };
RDebugUtils.currentLine=38273075;
 //BA.debugLineNum = 38273075;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=38273076;
 //BA.debugLineNum = 38273076;BA.debugLine="a.Close";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=38273077;
 //BA.debugLineNum = 38273077;BA.debugLine="Log(\"Processed item \" & i)";
__c.LogImpl("238273077","Processed item "+BA.NumberToString(_i),0);
 }
};
RDebugUtils.currentLine=38273079;
 //BA.debugLineNum = 38273079;BA.debugLine="et_buspc.Text = \"\"";
__ref._et_buspc /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=38273080;
 //BA.debugLineNum = 38273080;BA.debugLine="CLV_PICK_CIEGO.Clear";
__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=38273081;
 //BA.debugLineNum = 38273081;BA.debugLine="End Sub";
return "";
}
public String  _b_regesar_click(reparto_intmex.keymon.lat.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=37355520;
 //BA.debugLineNum = 37355520;BA.debugLine="Private Sub b_regesar_Click";
RDebugUtils.currentLine=37355521;
 //BA.debugLineNum = 37355521;BA.debugLine="p_principal.Visible = True";
__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=37355522;
 //BA.debugLineNum = 37355522;BA.debugLine="p_appUpdate.Visible = False";
__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=37355523;
 //BA.debugLineNum = 37355523;BA.debugLine="End Sub";
return "";
}
public String  _b_server_click(reparto_intmex.keymon.lat.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_server_click", false))
	 {return ((String) Debug.delegate(ba, "b_server_click", null));}
RDebugUtils.currentLine=37552128;
 //BA.debugLineNum = 37552128;BA.debugLine="Private Sub b_server_Click";
RDebugUtils.currentLine=37552129;
 //BA.debugLineNum = 37552129;BA.debugLine="Log(\"Guardar servidor\")";
__c.LogImpl("237552129","Guardar servidor",0);
RDebugUtils.currentLine=37552130;
 //BA.debugLineNum = 37552130;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_VARIA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("SERVER")}));
RDebugUtils.currentLine=37552131;
 //BA.debugLineNum = 37552131;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIA";
_starter._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)("SERVER"),(Object)(__ref._et_server /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())}));
RDebugUtils.currentLine=37552132;
 //BA.debugLineNum = 37552132;BA.debugLine="B4XPages.MainPage.server = et_server.text";
_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/  = __ref._et_server /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText();
RDebugUtils.currentLine=37552133;
 //BA.debugLineNum = 37552133;BA.debugLine="Starter.server = B4XPages.MainPage.server";
_starter._server /*String*/  = _b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ;
RDebugUtils.currentLine=37552134;
 //BA.debugLineNum = 37552134;BA.debugLine="If logger Then Log(\"Inicializamos reqManager con";
if (__ref._logger /*boolean*/ ) { 
__c.LogImpl("237552134","Inicializamos reqManager con "+_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ,0);};
RDebugUtils.currentLine=37552135;
 //BA.debugLineNum = 37552135;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
RDebugUtils.currentLine=37552136;
 //BA.debugLineNum = 37552136;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.server";
__c.LogImpl("237552136",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red);
RDebugUtils.currentLine=37552137;
 //BA.debugLineNum = 37552137;BA.debugLine="reinicializaReqManager";
__ref._reinicializareqmanager /*String*/ (null);
RDebugUtils.currentLine=37552138;
 //BA.debugLineNum = 37552138;BA.debugLine="p_appUpdate.Visible = False";
__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=37552140;
 //BA.debugLineNum = 37552140;BA.debugLine="End Sub";
return "";
}
public String  _reinicializareqmanager(reparto_intmex.keymon.lat.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "reinicializareqmanager", false))
	 {return ((String) Debug.delegate(ba, "reinicializareqmanager", null));}
RDebugUtils.currentLine=37683200;
 //BA.debugLineNum = 37683200;BA.debugLine="Sub reinicializaReqManager";
RDebugUtils.currentLine=37683201;
 //BA.debugLineNum = 37683201;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
RDebugUtils.currentLine=37683202;
 //BA.debugLineNum = 37683202;BA.debugLine="If logger Then Log(B4XPages.MainPage.server)";
if (__ref._logger /*boolean*/ ) { 
__c.LogImpl("237683202",_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ,0);};
RDebugUtils.currentLine=37683203;
 //BA.debugLineNum = 37683203;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.server";
__c.LogImpl("237683203",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red);
RDebugUtils.currentLine=37683204;
 //BA.debugLineNum = 37683204;BA.debugLine="End Sub";
return "";
}
public void  _b_terpc_click(reparto_intmex.keymon.lat.b4xmainpage __ref) throws Exception{
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_terpc_click", false))
	 {Debug.delegate(ba, "b_terpc_click", null); return;}
ResumableSub_b_terpc_Click rsub = new ResumableSub_b_terpc_Click(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_b_terpc_Click extends BA.ResumableSub {
public ResumableSub_b_terpc_Click(reparto_intmex.keymon.lat.b4xmainpage parent,reparto_intmex.keymon.lat.b4xmainpage __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
reparto_intmex.keymon.lat.b4xmainpage __ref;
reparto_intmex.keymon.lat.b4xmainpage parent;
int _resultado = 0;
int _i = 0;
anywheresoftware.b4a.objects.B4XViewWrapper _itempanel = null;
anywheresoftware.b4a.objects.B4XViewWrapper _innerpanel = null;
anywheresoftware.b4a.objects.B4XViewWrapper _edittext = null;
String _inputtext = "";
anywheresoftware.b4a.objects.B4XViewWrapper _idlabel = null;
String _idtext = "";
String[] _idparts = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _k = null;
String[] _fechatabulador = null;
String[] _fechatabulador2 = null;
String _fechatabulador3 = "";
int step12;
int limit12;

@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=38338561;
 //BA.debugLineNum = 38338561;BA.debugLine="Msgbox2Async(\"Una vez enviada la información no p";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Una vez enviada la información no podras hacer modificaciones"),BA.ObjectToCharSequence("Atención"),"SI","","",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
RDebugUtils.currentLine=38338562;
 //BA.debugLineNum = 38338562;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "b_terpc_click"), null);
this.state = 33;
return;
case 33:
//C
this.state = 1;
_resultado = (Integer) result[1];
;
RDebugUtils.currentLine=38338563;
 //BA.debugLineNum = 38338563;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 1:
//if
this.state = 32;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 3;
}if (true) break;

case 3:
//C
this.state = 4;
RDebugUtils.currentLine=38338564;
 //BA.debugLineNum = 38338564;BA.debugLine="Msgbox2Async(\"Estas seguro de enviar la informac";
parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Estas seguro de enviar la información?"),BA.ObjectToCharSequence("Atención"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
RDebugUtils.currentLine=38338565;
 //BA.debugLineNum = 38338565;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "b_terpc_click"), null);
this.state = 34;
return;
case 34:
//C
this.state = 4;
_resultado = (Integer) result[1];
;
RDebugUtils.currentLine=38338566;
 //BA.debugLineNum = 38338566;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
if (true) break;

case 4:
//if
this.state = 31;
if (_resultado==parent.__c.DialogResponse.POSITIVE) { 
this.state = 6;
}else {
this.state = 30;
}if (true) break;

case 6:
//C
this.state = 7;
RDebugUtils.currentLine=38338568;
 //BA.debugLineNum = 38338568;BA.debugLine="Dim sDate, sTime As String";
parent._sdate = "";
parent._stime = "";
RDebugUtils.currentLine=38338569;
 //BA.debugLineNum = 38338569;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
parent.__c.DateTime.setDateFormat("dd/MM/yyyy");
RDebugUtils.currentLine=38338570;
 //BA.debugLineNum = 38338570;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
parent.__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=38338571;
 //BA.debugLineNum = 38338571;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=38338572;
 //BA.debugLineNum = 38338572;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=38338574;
 //BA.debugLineNum = 38338574;BA.debugLine="For i = 0 To CLV_PICK_CIEGO.Size - 1";
if (true) break;

case 7:
//for
this.state = 28;
step12 = 1;
limit12 = (int) (__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._getsize()-1);
_i = (int) (0) ;
this.state = 35;
if (true) break;

case 35:
//C
this.state = 28;
if ((step12 > 0 && _i <= limit12) || (step12 < 0 && _i >= limit12)) this.state = 9;
if (true) break;

case 36:
//C
this.state = 35;
_i = ((int)(0 + _i + step12)) ;
if (true) break;

case 9:
//C
this.state = 10;
RDebugUtils.currentLine=38338576;
 //BA.debugLineNum = 38338576;BA.debugLine="Dim itemPanel As B4XView = CLV_PICK_CIEGO.GetP";
_itempanel = new anywheresoftware.b4a.objects.B4XViewWrapper();
_itempanel = __ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._getpanel(_i);
RDebugUtils.currentLine=38338577;
 //BA.debugLineNum = 38338577;BA.debugLine="Dim innerPanel As B4XView = itemPanel.GetView(";
_innerpanel = new anywheresoftware.b4a.objects.B4XViewWrapper();
_innerpanel = _itempanel.GetView((int) (0));
RDebugUtils.currentLine=38338578;
 //BA.debugLineNum = 38338578;BA.debugLine="Dim editText As B4XView = innerPanel.GetView(1";
_edittext = new anywheresoftware.b4a.objects.B4XViewWrapper();
_edittext = _innerpanel.GetView((int) (1));
RDebugUtils.currentLine=38338579;
 //BA.debugLineNum = 38338579;BA.debugLine="Dim inputText As String = editText.As(EditText";
_inputtext = ((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_edittext.getObject()))).getText();
RDebugUtils.currentLine=38338582;
 //BA.debugLineNum = 38338582;BA.debugLine="If Regex.IsMatch(\"^[0]+$\", inputText) Or input";
if (true) break;

case 10:
//if
this.state = 13;
if (parent.__c.Regex.IsMatch("^[0]+$",_inputtext) || (_inputtext).equals("")) { 
this.state = 12;
}if (true) break;

case 12:
//C
this.state = 13;
RDebugUtils.currentLine=38338583;
 //BA.debugLineNum = 38338583;BA.debugLine="inputText = \"0\"";
_inputtext = "0";
 if (true) break;

case 13:
//C
this.state = 14;
;
RDebugUtils.currentLine=38338587;
 //BA.debugLineNum = 38338587;BA.debugLine="Dim idLabel As B4XView = innerPanel.GetView(0)";
_idlabel = new anywheresoftware.b4a.objects.B4XViewWrapper();
_idlabel = _innerpanel.GetView((int) (0));
RDebugUtils.currentLine=38338588;
 //BA.debugLineNum = 38338588;BA.debugLine="Dim idText As String = idLabel.As(Label).Text";
_idtext = ((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(_idlabel.getObject()))).getText();
RDebugUtils.currentLine=38338589;
 //BA.debugLineNum = 38338589;BA.debugLine="Dim idParts() As String = Regex.Split(CRLF, id";
_idparts = parent.__c.Regex.Split(parent.__c.CRLF,_idtext);
RDebugUtils.currentLine=38338591;
 //BA.debugLineNum = 38338591;BA.debugLine="f=Starter.skmt.ExecQuery(\"select RUTAA from RU";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA")));
RDebugUtils.currentLine=38338592;
 //BA.debugLineNum = 38338592;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=38338593;
 //BA.debugLineNum = 38338593;BA.debugLine="Log(f.GetString(\"RUTAA\"))";
parent.__c.LogImpl("238338593",__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"),0);
RDebugUtils.currentLine=38338595;
 //BA.debugLineNum = 38338595;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN fr";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
RDebugUtils.currentLine=38338596;
 //BA.debugLineNum = 38338596;BA.debugLine="If a.RowCount>0 Then";
if (true) break;

case 14:
//if
this.state = 17;
if (__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 16;
}if (true) break;

case 16:
//C
this.state = 17;
RDebugUtils.currentLine=38338597;
 //BA.debugLineNum = 38338597;BA.debugLine="a.Position=0";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
 if (true) break;

case 17:
//C
this.state = 18;
;
RDebugUtils.currentLine=38338599;
 //BA.debugLineNum = 38338599;BA.debugLine="Log(a.GetString(\"ID_ALMACEN\"))";
parent.__c.LogImpl("238338599",__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"),0);
RDebugUtils.currentLine=38338601;
 //BA.debugLineNum = 38338601;BA.debugLine="Dim k As Cursor = Starter.skmt.ExecQuery(\"SELE";
_k = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_k = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS")));
RDebugUtils.currentLine=38338602;
 //BA.debugLineNum = 38338602;BA.debugLine="k.Position = 0";
_k.setPosition((int) (0));
RDebugUtils.currentLine=38338603;
 //BA.debugLineNum = 38338603;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\"";
_fechatabulador = parent.__c.Regex.Split(" ",_k.GetString("HVD_FECHA"));
RDebugUtils.currentLine=38338604;
 //BA.debugLineNum = 38338604;BA.debugLine="Dim fechatabulador2() As String = Regex.Split(";
_fechatabulador2 = parent.__c.Regex.Split("-",_fechatabulador[(int) (0)]);
RDebugUtils.currentLine=38338605;
 //BA.debugLineNum = 38338605;BA.debugLine="Dim fechatabulador3 As String = fechatabulador";
_fechatabulador3 = _fechatabulador2[(int) (2)]+"/"+_fechatabulador2[(int) (1)]+"/"+_fechatabulador2[(int) (0)];
RDebugUtils.currentLine=38338606;
 //BA.debugLineNum = 38338606;BA.debugLine="k.Close";
_k.Close();
RDebugUtils.currentLine=38338607;
 //BA.debugLineNum = 38338607;BA.debugLine="If inputText <> \"\" Then";
if (true) break;

case 18:
//if
this.state = 27;
if ((_inputtext).equals("") == false) { 
this.state = 20;
}if (true) break;

case 20:
//C
this.state = 21;
RDebugUtils.currentLine=38338608;
 //BA.debugLineNum = 38338608;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PI";
__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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?",new String[]{_idparts[(int) (0)]})));
RDebugUtils.currentLine=38338609;
 //BA.debugLineNum = 38338609;BA.debugLine="If c.RowCount = 0 Then";
if (true) break;

case 21:
//if
this.state = 26;
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
this.state = 23;
}else {
this.state = 25;
}if (true) break;

case 23:
//C
this.state = 26;
RDebugUtils.currentLine=38338611;
 //BA.debugLineNum = 38338611;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PICK";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PICK_CIEGO(PC_ID_PROD, PC_NOM_PROD, PC_CANT, PC_ALMACEN, PC_RUTA, PC_FECHA) VALUES(?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],_inputtext,__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"),__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"),_fechatabulador3+" "+__ref._stime /*String*/ }));
 if (true) break;

case 25:
//C
this.state = 26;
RDebugUtils.currentLine=38338613;
 //BA.debugLineNum = 38338613;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEG";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update PICK_CIEGO set PC_CANT = ?  WHERE PC_ID_PROD = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_inputtext,_idparts[(int) (0)]}));
 if (true) break;

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

case 27:
//C
this.state = 36;
;
RDebugUtils.currentLine=38338616;
 //BA.debugLineNum = 38338616;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=38338617;
 //BA.debugLineNum = 38338617;BA.debugLine="a.Close";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=38338618;
 //BA.debugLineNum = 38338618;BA.debugLine="Log(\"Processed item \" & i)";
parent.__c.LogImpl("238338618","Processed item "+BA.NumberToString(_i),0);
 if (true) break;
if (true) break;

case 28:
//C
this.state = 31;
;
RDebugUtils.currentLine=38338620;
 //BA.debugLineNum = 38338620;BA.debugLine="Log(\"Finished processing all items\")";
parent.__c.LogImpl("238338620","Finished processing all items",0);
RDebugUtils.currentLine=38338621;
 //BA.debugLineNum = 38338621;BA.debugLine="P_CIEGO.Visible = False";
__ref._p_ciego /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=38338622;
 //BA.debugLineNum = 38338622;BA.debugLine="et_buspc.Text = \"\"";
__ref._et_buspc /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=38338623;
 //BA.debugLineNum = 38338623;BA.debugLine="CLV_PICK_CIEGO.Clear";
__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=38338624;
 //BA.debugLineNum = 38338624;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT PC_ID_PROD,";
__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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT PC_ID_PROD, PC_ALMACEN, PC_RUTA, PC_FECHA FROM PICK_CIEGO")));
RDebugUtils.currentLine=38338635;
 //BA.debugLineNum = 38338635;BA.debugLine="c.close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 if (true) break;

case 30:
//C
this.state = 31;
 if (true) break;

case 31:
//C
this.state = 32;
;
 if (true) break;

case 32:
//C
this.state = -1;
;
RDebugUtils.currentLine=38338640;
 //BA.debugLineNum = 38338640;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public void  _b4xpage_appear(reparto_intmex.keymon.lat.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(reparto_intmex.keymon.lat.b4xmainpage parent,reparto_intmex.keymon.lat.b4xmainpage __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
reparto_intmex.keymon.lat.b4xmainpage __ref;
reparto_intmex.keymon.lat.b4xmainpage parent;
String _permission = "";
boolean _result = false;

@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=37027841;
 //BA.debugLineNum = 37027841;BA.debugLine="If Starter.muestraProgreso = 1 Then";
if (true) break;

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

case 3:
//C
this.state = 4;
RDebugUtils.currentLine=37027842;
 //BA.debugLineNum = 37027842;BA.debugLine="muestraProgreso(\"Descargando actualización\")";
__ref._muestraprogreso /*String*/ (null,"Descargando actualización");
RDebugUtils.currentLine=37027843;
 //BA.debugLineNum = 37027843;BA.debugLine="Starter.muestraProgreso = 0";
parent._starter._muestraprogreso /*String*/  = BA.NumberToString(0);
 if (true) break;

case 4:
//C
this.state = 5;
;
RDebugUtils.currentLine=37027845;
 //BA.debugLineNum = 37027845;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)";
parent._subs._centrapanel /*String*/ (ba,__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=37027846;
 //BA.debugLineNum = 37027846;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=37027848;
 //BA.debugLineNum = 37027848;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 = 21;
return;
case 21:
//C
this.state = 5;
_permission = (String) result[1];
_result = (Boolean) result[2];
;
RDebugUtils.currentLine=37027849;
 //BA.debugLineNum = 37027849;BA.debugLine="If Result Then";
if (true) break;

case 5:
//if
this.state = 16;
if (_result) { 
this.state = 7;
}else {
this.state = 15;
}if (true) break;

case 7:
//C
this.state = 8;
RDebugUtils.currentLine=37027850;
 //BA.debugLineNum = 37027850;BA.debugLine="If Not(Tracker.Tracking) Then StartService(Track";
if (true) break;

case 8:
//if
this.state = 13;
if (parent.__c.Not(parent._tracker._tracking /*boolean*/ )) { 
this.state = 10;
;}if (true) break;

case 10:
//C
this.state = 13;
parent.__c.StartService(ba,(Object)(parent._tracker.getObject()));
if (true) break;

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

case 15:
//C
this.state = 16;
RDebugUtils.currentLine=37027853;
 //BA.debugLineNum = 37027853;BA.debugLine="ToastMessageShow(\"No permission\", True)";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("No permission"),parent.__c.True);
RDebugUtils.currentLine=37027854;
 //BA.debugLineNum = 37027854;BA.debugLine="Log(\"Sin permisos\")";
parent.__c.LogImpl("237027854","Sin permisos",0);
 if (true) break;

case 16:
//C
this.state = 17;
;
RDebugUtils.currentLine=37027857;
 //BA.debugLineNum = 37027857;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu";
__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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
RDebugUtils.currentLine=37027858;
 //BA.debugLineNum = 37027858;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

case 17:
//if
this.state = 20;
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
this.state = 19;
}if (true) break;

case 19:
//C
this.state = 20;
RDebugUtils.currentLine=37027861;
 //BA.debugLineNum = 37027861;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=37027862;
 //BA.debugLineNum = 37027862;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
 if (true) break;

case 20:
//C
this.state = -1;
;
RDebugUtils.currentLine=37027864;
 //BA.debugLineNum = 37027864;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=37027870;
 //BA.debugLineNum = 37027870;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper  _b4xpage_closerequest(reparto_intmex.keymon.lat.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(reparto_intmex.keymon.lat.b4xmainpage parent,reparto_intmex.keymon.lat.b4xmainpage __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
reparto_intmex.keymon.lat.b4xmainpage __ref;
reparto_intmex.keymon.lat.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=37289986;
 //BA.debugLineNum = 37289986;BA.debugLine="If p_appUpdate.Visible Then";
if (true) break;

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

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

case 5:
//C
this.state = 6;
RDebugUtils.currentLine=37289989;
 //BA.debugLineNum = 37289989;BA.debugLine="Sleep(0)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "b4xpage_closerequest"),(int) (0));
this.state = 7;
return;
case 7:
//C
this.state = 6;
;
RDebugUtils.currentLine=37289990;
 //BA.debugLineNum = 37289990;BA.debugLine="ExitApplication";
parent.__c.ExitApplication();
 if (true) break;

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

            }
        }
    }
}
public String  _b4xpage_created(reparto_intmex.keymon.lat.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=36962304;
 //BA.debugLineNum = 36962304;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=36962305;
 //BA.debugLineNum = 36962305;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=36962306;
 //BA.debugLineNum = 36962306;BA.debugLine="B4XPages.GetManager.LogEvents = True";
_b4xpages._getmanager /*reparto_intmex.keymon.lat.b4xpagesmanager*/ (ba)._logevents /*boolean*/  = __c.True;
RDebugUtils.currentLine=36962307;
 //BA.debugLineNum = 36962307;BA.debugLine="Root.LoadLayout(\"login\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("login",ba);
RDebugUtils.currentLine=36962308;
 //BA.debugLineNum = 36962308;BA.debugLine="B4XPages.SetTitle(Me, \"Intmex Reparto\")";
_b4xpages._settitle /*String*/ (ba,this,(Object)("Intmex Reparto"));
RDebugUtils.currentLine=36962309;
 //BA.debugLineNum = 36962309;BA.debugLine="login.Initialize";
__ref._login /*reparto_intmex.keymon.lat.b4xmainpage*/ ._initialize /*String*/ (null,ba);
RDebugUtils.currentLine=36962310;
 //BA.debugLineNum = 36962310;BA.debugLine="B4XPages.AddPage(\"Login\", login)";
_b4xpages._addpage /*String*/ (ba,"Login",(Object)(__ref._login /*reparto_intmex.keymon.lat.b4xmainpage*/ ));
RDebugUtils.currentLine=36962311;
 //BA.debugLineNum = 36962311;BA.debugLine="principal.Initialize";
__ref._principal /*reparto_intmex.keymon.lat.c_principal*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=36962312;
 //BA.debugLineNum = 36962312;BA.debugLine="B4XPages.AddPage(\"Principal\", principal)";
_b4xpages._addpage /*String*/ (ba,"Principal",(Object)(__ref._principal /*reparto_intmex.keymon.lat.c_principal*/ ));
RDebugUtils.currentLine=36962313;
 //BA.debugLineNum = 36962313;BA.debugLine="clientes.Initialize";
__ref._clientes /*reparto_intmex.keymon.lat.c_clientes*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=36962314;
 //BA.debugLineNum = 36962314;BA.debugLine="B4XPages.AddPage(\"Clientes\", clientes)";
_b4xpages._addpage /*String*/ (ba,"Clientes",(Object)(__ref._clientes /*reparto_intmex.keymon.lat.c_clientes*/ ));
RDebugUtils.currentLine=36962315;
 //BA.debugLineNum = 36962315;BA.debugLine="cliente.Initialize";
__ref._cliente /*reparto_intmex.keymon.lat.c_cliente*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=36962316;
 //BA.debugLineNum = 36962316;BA.debugLine="B4XPages.AddPage(\"Cliente\", cliente)";
_b4xpages._addpage /*String*/ (ba,"Cliente",(Object)(__ref._cliente /*reparto_intmex.keymon.lat.c_cliente*/ ));
RDebugUtils.currentLine=36962319;
 //BA.debugLineNum = 36962319;BA.debugLine="productos.Initialize";
__ref._productos /*reparto_intmex.keymon.lat.c_productos*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=36962320;
 //BA.debugLineNum = 36962320;BA.debugLine="B4XPages.AddPage(\"Productos\", productos)";
_b4xpages._addpage /*String*/ (ba,"Productos",(Object)(__ref._productos /*reparto_intmex.keymon.lat.c_productos*/ ));
RDebugUtils.currentLine=36962321;
 //BA.debugLineNum = 36962321;BA.debugLine="updateAvailable.Initialize";
__ref._updateavailable /*reparto_intmex.keymon.lat.c_updateavailable*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=36962322;
 //BA.debugLineNum = 36962322;BA.debugLine="B4XPages.AddPage(\"updateAvailable\", updateAvailab";
_b4xpages._addpage /*String*/ (ba,"updateAvailable",(Object)(__ref._updateavailable /*reparto_intmex.keymon.lat.c_updateavailable*/ ));
RDebugUtils.currentLine=36962323;
 //BA.debugLineNum = 36962323;BA.debugLine="mapas.Initialize";
__ref._mapas /*reparto_intmex.keymon.lat.c_mapas*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=36962324;
 //BA.debugLineNum = 36962324;BA.debugLine="B4XPages.AddPage(\"Mapas\", mapas)";
_b4xpages._addpage /*String*/ (ba,"Mapas",(Object)(__ref._mapas /*reparto_intmex.keymon.lat.c_mapas*/ ));
RDebugUtils.currentLine=36962325;
 //BA.debugLineNum = 36962325;BA.debugLine="nuevoCliente.Initialize";
__ref._nuevocliente /*reparto_intmex.keymon.lat.c_nuevocliente*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=36962326;
 //BA.debugLineNum = 36962326;BA.debugLine="B4XPages.AddPage(\"NuevoCliente\", nuevoCliente)";
_b4xpages._addpage /*String*/ (ba,"NuevoCliente",(Object)(__ref._nuevocliente /*reparto_intmex.keymon.lat.c_nuevocliente*/ ));
RDebugUtils.currentLine=36962327;
 //BA.debugLineNum = 36962327;BA.debugLine="ticketsDia.Initialize";
__ref._ticketsdia /*reparto_intmex.keymon.lat.c_ticketsdia*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=36962328;
 //BA.debugLineNum = 36962328;BA.debugLine="B4XPages.AddPage(\"TicketsDia\", ticketsDia)";
_b4xpages._addpage /*String*/ (ba,"TicketsDia",(Object)(__ref._ticketsdia /*reparto_intmex.keymon.lat.c_ticketsdia*/ ));
RDebugUtils.currentLine=36962329;
 //BA.debugLineNum = 36962329;BA.debugLine="noVenta.Initialize";
__ref._noventa /*reparto_intmex.keymon.lat.c_noventa*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=36962330;
 //BA.debugLineNum = 36962330;BA.debugLine="B4XPages.AddPage(\"NoVenta\", noVenta)";
_b4xpages._addpage /*String*/ (ba,"NoVenta",(Object)(__ref._noventa /*reparto_intmex.keymon.lat.c_noventa*/ ));
RDebugUtils.currentLine=36962331;
 //BA.debugLineNum = 36962331;BA.debugLine="pedidos.Initialize";
__ref._pedidos /*reparto_intmex.keymon.lat.c_pedidos*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=36962332;
 //BA.debugLineNum = 36962332;BA.debugLine="B4XPages.AddPage(\"Pedidos\", pedidos)";
_b4xpages._addpage /*String*/ (ba,"Pedidos",(Object)(__ref._pedidos /*reparto_intmex.keymon.lat.c_pedidos*/ ));
RDebugUtils.currentLine=36962333;
 //BA.debugLineNum = 36962333;BA.debugLine="buscar.Initialize";
__ref._buscar /*reparto_intmex.keymon.lat.c_buscar*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=36962334;
 //BA.debugLineNum = 36962334;BA.debugLine="B4XPages.AddPage(\"Buscar\", buscar)";
_b4xpages._addpage /*String*/ (ba,"Buscar",(Object)(__ref._buscar /*reparto_intmex.keymon.lat.c_buscar*/ ));
RDebugUtils.currentLine=36962337;
 //BA.debugLineNum = 36962337;BA.debugLine="detalleVenta.Initialize";
__ref._detalleventa /*reparto_intmex.keymon.lat.c_detalleventa*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=36962338;
 //BA.debugLineNum = 36962338;BA.debugLine="B4XPages.AddPage(\"DetalleVenta\", detalleVenta)";
_b4xpages._addpage /*String*/ (ba,"DetalleVenta",(Object)(__ref._detalleventa /*reparto_intmex.keymon.lat.c_detalleventa*/ ));
RDebugUtils.currentLine=36962339;
 //BA.debugLineNum = 36962339;BA.debugLine="detalle_promo.Initialize";
__ref._detalle_promo /*reparto_intmex.keymon.lat.c_detalle_promo*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=36962340;
 //BA.debugLineNum = 36962340;BA.debugLine="B4XPages.AddPage(\"Detalle_Promo\", detalle_promo)";
_b4xpages._addpage /*String*/ (ba,"Detalle_Promo",(Object)(__ref._detalle_promo /*reparto_intmex.keymon.lat.c_detalle_promo*/ ));
RDebugUtils.currentLine=36962341;
 //BA.debugLineNum = 36962341;BA.debugLine="tabulador.Initialize";
__ref._tabulador /*reparto_intmex.keymon.lat.c_tabulador*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=36962342;
 //BA.debugLineNum = 36962342;BA.debugLine="B4XPages.AddPage(\"tabulador\", tabulador)";
_b4xpages._addpage /*String*/ (ba,"tabulador",(Object)(__ref._tabulador /*reparto_intmex.keymon.lat.c_tabulador*/ ));
RDebugUtils.currentLine=36962343;
 //BA.debugLineNum = 36962343;BA.debugLine="checklist.Initialize";
__ref._checklist /*reparto_intmex.keymon.lat.c_cheklist*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=36962344;
 //BA.debugLineNum = 36962344;BA.debugLine="B4XPages.AddPage(\"checklist\",checklist)";
_b4xpages._addpage /*String*/ (ba,"checklist",(Object)(__ref._checklist /*reparto_intmex.keymon.lat.c_cheklist*/ ));
RDebugUtils.currentLine=36962345;
 //BA.debugLineNum = 36962345;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CAT_GUNAPROD3 (CAT_GP_INICIATIVA TEXT, CAT_GP_TIPOPROD TEXT, CAT_GP_DEV TEXT, CAT_GP_ALMACEN NUMERIC, 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 BLOB)");
RDebugUtils.currentLine=36962346;
 //BA.debugLineNum = 36962346;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD3\", \"CAT_DP_CONVE";
_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD3","CAT_DP_CONVERSION1","TEXT");
RDebugUtils.currentLine=36962347;
 //BA.debugLineNum = 36962347;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD3\", \"CAT_DP_PRECI";
_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD3","CAT_DP_PRECIO4","TEXT");
RDebugUtils.currentLine=36962348;
 //BA.debugLineNum = 36962348;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD3\", \"CAT_DP_CANT_";
_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD3","CAT_DP_CANT_MIN_VENTA","TEXT");
RDebugUtils.currentLine=36962349;
 //BA.debugLineNum = 36962349;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS ABONOS (a_usuario TEXT, a_ruta TEXT, a_cliente TEXT, a_abono TEXT, a_fecha TEXT, a_enviado TEXT)");
RDebugUtils.currentLine=36962350;
 //BA.debugLineNum = 36962350;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS PAGARES (PA_ALMACEN TEXT, PA_RUTA_REP TEXT, PA_RUTAPREV TEXT, PA_FECHA_PREV TEXT, PA_CAPTURA TEXT, PA_MONTO TEXT, PA_USUARIO TEXT, PA_CLIENTE TEXT)");
RDebugUtils.currentLine=36962351;
 //BA.debugLineNum = 36962351;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS PICK_CIEGO (PC_ID_PROD TEXT, PC_NOM_PROD TEXT, PC_CANT TEXT, PC_ALMACEN TEXT, PC_RUTA TEXT, PC_FECHA TEXT)");
RDebugUtils.currentLine=36962352;
 //BA.debugLineNum = 36962352;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS ENV_MONTO_LIQ (EML_MONTO TEXT, EML_ALMACEN TEXT, EML_RUTA TEXT, EML_USUARIO TEXT, EML_FECHA_PED TEXT)");
RDebugUtils.currentLine=36962353;
 //BA.debugLineNum = 36962353;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS TABULADOR_MONEDAS(VEINTE TEXT, DIEZ TEXT, CINCO TEXT, DOS TEXT, PESO TEXT, CENTAVO TEXT, TOTAL TEXT)");
RDebugUtils.currentLine=36962354;
 //BA.debugLineNum = 36962354;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS TABULADOR_BILLETES(MIL TEXT, QUINIENTOS TEXT, DOCIENTOS TEXT, CIEN TEXT, CINCUENTA TEXT, VEINTE TEXT)");
RDebugUtils.currentLine=36962355;
 //BA.debugLineNum = 36962355;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_VENTAS2 (HVD_PARCIAL TEXT, HVD_RECHAZO TEXT, HVD_NUM_REGISTRO TEXT, HVD_NUM_TICKET TEXT, HVD_PROID TEXT, HVD_CODPROMO TEXT, HVD_FECHA TEXT, HVD_ESTATUS TEXT, HVD_CLIENTE TEXT, HVD_PRONOMBRE TEXT, HVD_CANT TEXT, HVD_COSTO_TOT TEXT)");
RDebugUtils.currentLine=36962357;
 //BA.debugLineNum = 36962357;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS RECHAZOS (R_FECHA TEXT, R_CLIENTE TEXT, R_CLI_ORIG TEXT, R_PRODID TEXT, R_CANT TEXT, R_RECHAZO INT)");
RDebugUtils.currentLine=36962358;
 //BA.debugLineNum = 36962358;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS VENTAS (V_FECHA TEXT, V_CLIENTE TEXT, V_CLI_ORIG TEXT, V_PRODID TEXT, V_CANT TEXT, V_RECHAZO INT)");
RDebugUtils.currentLine=36962359;
 //BA.debugLineNum = 36962359;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS ABONOSP(NOTA TEXT, CLIENTE TEXT, SALDO_PENDIENTE TEXT)");
RDebugUtils.currentLine=36962361;
 //BA.debugLineNum = 36962361;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CHECADO_CHECK(CHECADO TEXT)");
RDebugUtils.currentLine=36962362;
 //BA.debugLineNum = 36962362;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS BLOCKENVIO(ENVIADO TEXT)");
RDebugUtils.currentLine=36962364;
 //BA.debugLineNum = 36962364;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CHECKLIST(USUARIO TEXT, PLACA TEXT, FECHA_CAPTURA TEXT, TARJETA_CIRCULACION TEXT , POLIZA_SEGURO TEXT, LICENCIA_CONDUCIR TEXT, LIMPIA_EXTERNA TEXT, LIMPIA_INTERNA TEXT, TRIANGULO TEXT, GATO TEXT, LLANTA_REFACCION TEXT, CARROCERIA_BUENESTADO TEXT, CARROCERIA_MALESTADO TEXT, CARROCERIA_COMENTARIOS TEXT, LUCES_CORRECTO TEXT, LUCES_INCORRECTO TEXT, LUCES_COMENTARIOS TEXT, CONDICION_PLACAS_CORRECTO TEXT, CONDICION_PLACAS_INCORRECTO TEXT, CONDICION_PLACAS_COMENTARIOS TEXT, CONDICION_LLANTAS_DEL_DER TEXT, CONDICION_LLANTAS_DEL_IZQ TEXT, CONDICION_LLANTAS_TRASERA_DER TEXT, CONDICION_LLANTAS_TRASERA_IZQ TEXT, ACEITE TEXT, ANTICONGELANTE TEXT, FRENOS TEXT, AIRE TEXT, FUGAS TEXT, COMETARIOS_FUGAS TEXT, FOTO1 BLOB, FOTO12 BLOB, FOTO3 BLOB, FOTO4 BLOB)");
RDebugUtils.currentLine=36962365;
 //BA.debugLineNum = 36962365;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CHECKLIST2(USUARIO TEXT, PLACA TEXT, FECHA_CAPTURA TEXT, TARJETA_CIRCULACION TEXT, POLIZA_SEGURO TEXT, LICENCIA_CONDUCIR TEXT, LIMPIA_EXTERNA TEXT, LIMPIA_INTERNA TEXT, TRIANGULO TEXT, GATO TEXT, LLANTA_REFACCION TEXT, CARROCERIA TEXT, CARROCERIA_COMENTARIOS TEXT, LUCES TEXT, LUCES_COMENTARIOS TEXT, CONDICION_PLACAS TEXT, CONDICION_PLACAS_COMENTARIOS TEXT, CONDICION_LLANTAS_DEL_DER TEXT, CONDICION_LLANTAS_DEL_IZQ TEXT, CONDICION_LLANTAS_TRASERA_DER TEXT, CONDICION_LLANTAS_TRASERA_IZQ TEXT, ACEITE TEXT, ANTICONGELANTE TEXT, FRENOS TEXT, AIRE TEXT, FUGAS TEXT, COMETARIOS_FUGAS TEXT, FOTO1 BLOB, FOTO12 BLOB, FOTO3 BLOB, FOTO4 BLOB, KILIMETRAJE TEXT, RUTA TEXT)");
RDebugUtils.currentLine=36962366;
 //BA.debugLineNum = 36962366;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_PRODREGISTRO\",";
_subs._agregacolumna /*String*/ (ba,"REPARTO","REP_PRODREGISTRO","TEXT");
RDebugUtils.currentLine=36962367;
 //BA.debugLineNum = 36962367;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"TIPO_PAGO\",\"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"ABONOS","TIPO_PAGO","TEXT");
RDebugUtils.currentLine=36962368;
 //BA.debugLineNum = 36962368;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"CONSECUTIVO\",\"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"ABONOS","CONSECUTIVO","TEXT");
RDebugUtils.currentLine=36962369;
 //BA.debugLineNum = 36962369;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"NUM_TICKET\",\"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"ABONOS","NUM_TICKET","TEXT");
RDebugUtils.currentLine=36962370;
 //BA.debugLineNum = 36962370;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"RUTA_REP\",\"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"ABONOS","RUTA_REP","TEXT");
RDebugUtils.currentLine=36962371;
 //BA.debugLineNum = 36962371;BA.debugLine="Subs.agregaColumna(\"NOVENTA\", \"NV_RUTA\", \"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"NOVENTA","NV_RUTA","TEXT");
RDebugUtils.currentLine=36962372;
 //BA.debugLineNum = 36962372;BA.debugLine="Subs.agregaColumna(\"kmt_info\", \"SECUENCIA\", \"INT\"";
_subs._agregacolumna /*String*/ (ba,"kmt_info","SECUENCIA","INT");
RDebugUtils.currentLine=36962373;
 //BA.debugLineNum = 36962373;BA.debugLine="Subs.agregaColumna(\"kmt_info\", \"HORAENT\", \"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"kmt_info","HORAENT","TEXT");
RDebugUtils.currentLine=36962374;
 //BA.debugLineNum = 36962374;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_PRODID\", \"TEXT";
_subs._agregacolumna /*String*/ (ba,"REPARTO","REP_PRODID","TEXT");
RDebugUtils.currentLine=36962375;
 //BA.debugLineNum = 36962375;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_CLIENTEOR\", \"TEX";
_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_CLIENTEOR","TEXT");
RDebugUtils.currentLine=36962376;
 //BA.debugLineNum = 36962376;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_CAJAS\", \"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_CAJAS","TEXT");
RDebugUtils.currentLine=36962377;
 //BA.debugLineNum = 36962377;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_REGALO\", \"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_REGALO","TEXT");
RDebugUtils.currentLine=36962378;
 //BA.debugLineNum = 36962378;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_BCAJAS\", \"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_BCAJAS","TEXT");
RDebugUtils.currentLine=36962379;
 //BA.debugLineNum = 36962379;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"CONSECUTIVO\", \"TEXT";
_subs._agregacolumna /*String*/ (ba,"PEDIDO","CONSECUTIVO","TEXT");
RDebugUtils.currentLine=36962380;
 //BA.debugLineNum = 36962380;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"FECHA_PREV\", \"TEXT\"";
_subs._agregacolumna /*String*/ (ba,"PEDIDO","FECHA_PREV","TEXT");
RDebugUtils.currentLine=36962381;
 //BA.debugLineNum = 36962381;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"RUTA_REP\", \"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"PEDIDO","RUTA_REP","TEXT");
RDebugUtils.currentLine=36962382;
 //BA.debugLineNum = 36962382;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_CLI_ORIG\", \"TE";
_subs._agregacolumna /*String*/ (ba,"REPARTO","REP_CLI_ORIG","TEXT");
RDebugUtils.currentLine=36962383;
 //BA.debugLineNum = 36962383;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_PRECIO\", \"TEXT";
_subs._agregacolumna /*String*/ (ba,"REPARTO","REP_PRECIO","TEXT");
RDebugUtils.currentLine=36962384;
 //BA.debugLineNum = 36962384;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_RECHAZO\", \"INT";
_subs._agregacolumna /*String*/ (ba,"REPARTO","REP_RECHAZO","INTEGER");
RDebugUtils.currentLine=36962385;
 //BA.debugLineNum = 36962385;BA.debugLine="Subs.agregaColumna(\"RECHAZOS\", \"R_PRECIO\", \"TEXT\"";
_subs._agregacolumna /*String*/ (ba,"RECHAZOS","R_PRECIO","TEXT");
RDebugUtils.currentLine=36962386;
 //BA.debugLineNum = 36962386;BA.debugLine="Subs.agregaColumna(\"VENTAS\", \"V_PRECIO\", \"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"VENTAS","V_PRECIO","TEXT");
RDebugUtils.currentLine=36962387;
 //BA.debugLineNum = 36962387;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"PLACA\",\"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","PLACA","TEXT");
RDebugUtils.currentLine=36962388;
 //BA.debugLineNum = 36962388;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"HVD_RECHAZOCANT";
_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","HVD_RECHAZOCANT","TEXT");
RDebugUtils.currentLine=36962389;
 //BA.debugLineNum = 36962389;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"CONSECUTIVO\",\"T";
_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","CONSECUTIVO","TEXT");
RDebugUtils.currentLine=36962390;
 //BA.debugLineNum = 36962390;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"HVD_RECHAZOCANT";
_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","HVD_RECHAZOCANT","TEXT");
RDebugUtils.currentLine=36962391;
 //BA.debugLineNum = 36962391;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"ESPROMO\",\"TEXT\"";
_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","ESPROMO","TEXT");
RDebugUtils.currentLine=36962392;
 //BA.debugLineNum = 36962392;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"HVD_RECHAZOCANT";
_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","HVD_RECHAZOCANTC","TEXT");
RDebugUtils.currentLine=36962393;
 //BA.debugLineNum = 36962393;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"BCAJAS\",\"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","BCAJAS","TEXT");
RDebugUtils.currentLine=36962394;
 //BA.debugLineNum = 36962394;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"CANTC\",\"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","CANTC","TEXT");
RDebugUtils.currentLine=36962395;
 //BA.debugLineNum = 36962395;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"BCAJAS_OR\",\"TEX";
_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","BCAJAS_OR","TEXT");
RDebugUtils.currentLine=36962396;
 //BA.debugLineNum = 36962396;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"CANTC_OR\",\"TEXT";
_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","CANTC_OR","TEXT");
RDebugUtils.currentLine=36962397;
 //BA.debugLineNum = 36962397;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\",\"CONVERSION\",\"T";
_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CONVERSION","TEXT");
RDebugUtils.currentLine=36962398;
 //BA.debugLineNum = 36962398;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\",\"PRECIOCONVER\",";
_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","PRECIOCONVER","TEXT");
RDebugUtils.currentLine=36962399;
 //BA.debugLineNum = 36962399;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS RUTAA (RUTAA TEXT)");
RDebugUtils.currentLine=36962400;
 //BA.debugLineNum = 36962400;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS wayPoints (codigo TEXT, indice INT)");
RDebugUtils.currentLine=36962401;
 //BA.debugLineNum = 36962401;BA.debugLine="Dim server As String = \"http://keymon.net:1781\"";
_server = "http://keymon.net:1781";
RDebugUtils.currentLine=36962407;
 //BA.debugLineNum = 36962407;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
RDebugUtils.currentLine=36962408;
 //BA.debugLineNum = 36962408;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.server";
__c.LogImpl("236962408",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red);
RDebugUtils.currentLine=36962409;
 //BA.debugLineNum = 36962409;BA.debugLine="Label1.Text = Application.VersionName";
__ref._label1 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Application.getVersionName()));
RDebugUtils.currentLine=36962411;
 //BA.debugLineNum = 36962411;BA.debugLine="Log(\"provider\")";
__c.LogImpl("236962411","provider",0);
RDebugUtils.currentLine=36962412;
 //BA.debugLineNum = 36962412;BA.debugLine="Provider.Initialize";
__ref._provider /*reparto_intmex.keymon.lat.fileprovider*/ ._initialize /*String*/ (null,ba);
RDebugUtils.currentLine=36962420;
 //BA.debugLineNum = 36962420;BA.debugLine="End Sub";
return "";
}
public String  _initialize(reparto_intmex.keymon.lat.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=36896768;
 //BA.debugLineNum = 36896768;BA.debugLine="Public Sub Initialize";
RDebugUtils.currentLine=36896770;
 //BA.debugLineNum = 36896770;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(reparto_intmex.keymon.lat.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
RDebugUtils.currentLine=36831232;
 //BA.debugLineNum = 36831232;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=36831233;
 //BA.debugLineNum = 36831233;BA.debugLine="Dim rp As RuntimePermissions";
_rp = new anywheresoftware.b4a.objects.RuntimePermissions();
RDebugUtils.currentLine=36831234;
 //BA.debugLineNum = 36831234;BA.debugLine="Private Root As B4XView";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=36831235;
 //BA.debugLineNum = 36831235;BA.debugLine="Private xui As XUI";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=36831236;
 //BA.debugLineNum = 36831236;BA.debugLine="Private Root As B4XView";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=36831237;
 //BA.debugLineNum = 36831237;BA.debugLine="Public rp As RuntimePermissions";
_rp = new anywheresoftware.b4a.objects.RuntimePermissions();
RDebugUtils.currentLine=36831238;
 //BA.debugLineNum = 36831238;BA.debugLine="Public login As B4XMainPage";
_login = new reparto_intmex.keymon.lat.b4xmainpage();
RDebugUtils.currentLine=36831239;
 //BA.debugLineNum = 36831239;BA.debugLine="Public principal As C_Principal";
_principal = new reparto_intmex.keymon.lat.c_principal();
RDebugUtils.currentLine=36831240;
 //BA.debugLineNum = 36831240;BA.debugLine="Public clientes As C_Clientes";
_clientes = new reparto_intmex.keymon.lat.c_clientes();
RDebugUtils.currentLine=36831241;
 //BA.debugLineNum = 36831241;BA.debugLine="Public cliente As C_Cliente";
_cliente = new reparto_intmex.keymon.lat.c_cliente();
RDebugUtils.currentLine=36831243;
 //BA.debugLineNum = 36831243;BA.debugLine="Public productos As C_Productos";
_productos = new reparto_intmex.keymon.lat.c_productos();
RDebugUtils.currentLine=36831244;
 //BA.debugLineNum = 36831244;BA.debugLine="Public updateAvailable As C_UpdateAvailable";
_updateavailable = new reparto_intmex.keymon.lat.c_updateavailable();
RDebugUtils.currentLine=36831245;
 //BA.debugLineNum = 36831245;BA.debugLine="Public mapas As C_Mapas";
_mapas = new reparto_intmex.keymon.lat.c_mapas();
RDebugUtils.currentLine=36831246;
 //BA.debugLineNum = 36831246;BA.debugLine="Public nuevoCliente As C_NuevoCliente";
_nuevocliente = new reparto_intmex.keymon.lat.c_nuevocliente();
RDebugUtils.currentLine=36831247;
 //BA.debugLineNum = 36831247;BA.debugLine="Public ticketsDia As C_TicketsDia";
_ticketsdia = new reparto_intmex.keymon.lat.c_ticketsdia();
RDebugUtils.currentLine=36831248;
 //BA.debugLineNum = 36831248;BA.debugLine="Public noVenta As C_NoVenta";
_noventa = new reparto_intmex.keymon.lat.c_noventa();
RDebugUtils.currentLine=36831249;
 //BA.debugLineNum = 36831249;BA.debugLine="Public pedidos As C_Pedidos";
_pedidos = new reparto_intmex.keymon.lat.c_pedidos();
RDebugUtils.currentLine=36831250;
 //BA.debugLineNum = 36831250;BA.debugLine="Public buscar As C_Buscar";
_buscar = new reparto_intmex.keymon.lat.c_buscar();
RDebugUtils.currentLine=36831252;
 //BA.debugLineNum = 36831252;BA.debugLine="Public detalleVenta As C_DetalleVenta";
_detalleventa = new reparto_intmex.keymon.lat.c_detalleventa();
RDebugUtils.currentLine=36831253;
 //BA.debugLineNum = 36831253;BA.debugLine="Public detalle_promo As C_Detalle_Promo";
_detalle_promo = new reparto_intmex.keymon.lat.c_detalle_promo();
RDebugUtils.currentLine=36831254;
 //BA.debugLineNum = 36831254;BA.debugLine="Dim reqManager As DBRequestManager";
_reqmanager = new reparto_intmex.keymon.lat.dbrequestmanager();
RDebugUtils.currentLine=36831256;
 //BA.debugLineNum = 36831256;BA.debugLine="Dim usuario As String";
_usuario = "";
RDebugUtils.currentLine=36831257;
 //BA.debugLineNum = 36831257;BA.debugLine="Dim logger As Boolean = True";
_logger = __c.True;
RDebugUtils.currentLine=36831258;
 //BA.debugLineNum = 36831258;BA.debugLine="Dim lat_gps, lon_gps As String";
_lat_gps = "";
_lon_gps = "";
RDebugUtils.currentLine=36831260;
 //BA.debugLineNum = 36831260;BA.debugLine="Dim usuario As String";
_usuario = "";
RDebugUtils.currentLine=36831261;
 //BA.debugLineNum = 36831261;BA.debugLine="Dim server As String";
_server = "";
RDebugUtils.currentLine=36831262;
 //BA.debugLineNum = 36831262;BA.debugLine="Dim montoActual, clientesTotal, clientesVenta, cl";
_montoactual = "";
_clientestotal = "";
_clientesventa = "";
_clientesrechazo = "";
_clientesvisitados = "";
_almacen = "";
_rutapreventa = "";
_cantidadprod = "";
RDebugUtils.currentLine=36831263;
 //BA.debugLineNum = 36831263;BA.debugLine="Dim ultimaActualizacionGPS As String = 235959";
_ultimaactualizaciongps = BA.NumberToString(235959);
RDebugUtils.currentLine=36831264;
 //BA.debugLineNum = 36831264;BA.debugLine="Dim fechaRuta As String";
_fecharuta = "";
RDebugUtils.currentLine=36831267;
 //BA.debugLineNum = 36831267;BA.debugLine="Dim srvIp As String";
_srvip = "";
RDebugUtils.currentLine=36831268;
 //BA.debugLineNum = 36831268;BA.debugLine="Dim phn As Phone";
_phn = new anywheresoftware.b4a.phone.Phone();
RDebugUtils.currentLine=36831269;
 //BA.debugLineNum = 36831269;BA.debugLine="Dim user As EditText";
_user = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=36831270;
 //BA.debugLineNum = 36831270;BA.debugLine="Dim pass As EditText";
_pass = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=36831271;
 //BA.debugLineNum = 36831271;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=36831272;
 //BA.debugLineNum = 36831272;BA.debugLine="Dim existe As String";
_existe = "";
RDebugUtils.currentLine=36831273;
 //BA.debugLineNum = 36831273;BA.debugLine="Dim paso1 As String";
_paso1 = "";
RDebugUtils.currentLine=36831274;
 //BA.debugLineNum = 36831274;BA.debugLine="Private IMEN As Label";
_imen = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=36831275;
 //BA.debugLineNum = 36831275;BA.debugLine="Dim IMEI As String";
_imei = "";
RDebugUtils.currentLine=36831276;
 //BA.debugLineNum = 36831276;BA.debugLine="Private Label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=36831277;
 //BA.debugLineNum = 36831277;BA.debugLine="Dim server As String";
_server = "";
RDebugUtils.currentLine=36831278;
 //BA.debugLineNum = 36831278;BA.debugLine="Private p_principal As Panel";
_p_principal = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=36831279;
 //BA.debugLineNum = 36831279;BA.debugLine="Private Entrar As Button";
_entrar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=36831280;
 //BA.debugLineNum = 36831280;BA.debugLine="Public checklist As C_Cheklist";
_checklist = new reparto_intmex.keymon.lat.c_cheklist();
RDebugUtils.currentLine=36831281;
 //BA.debugLineNum = 36831281;BA.debugLine="Public tabulador As C_tabulador";
_tabulador = new reparto_intmex.keymon.lat.c_tabulador();
RDebugUtils.currentLine=36831282;
 //BA.debugLineNum = 36831282;BA.debugLine="Dim batt As Int";
_batt = 0;
RDebugUtils.currentLine=36831283;
 //BA.debugLineNum = 36831283;BA.debugLine="Dim porVisitar, entregas, rechazos, montoEntregad";
_porvisitar = "";
_entregas = "";
_rechazos = "";
_montoentregado = "";
_montorechazado = "";
RDebugUtils.currentLine=36831284;
 //BA.debugLineNum = 36831284;BA.debugLine="Private p_appUpdate As Panel";
_p_appupdate = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=36831285;
 //BA.debugLineNum = 36831285;BA.debugLine="Private i_engrane As ImageView";
_i_engrane = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=36831286;
 //BA.debugLineNum = 36831286;BA.debugLine="Private b_server As Button";
_b_server = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=36831287;
 //BA.debugLineNum = 36831287;BA.debugLine="Private b_apk As Button";
_b_apk = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=36831288;
 //BA.debugLineNum = 36831288;BA.debugLine="Private b_envioBD As Button";
_b_enviobd = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=36831289;
 //BA.debugLineNum = 36831289;BA.debugLine="Private b_regesar As Button";
_b_regesar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=36831290;
 //BA.debugLineNum = 36831290;BA.debugLine="Private et_server As EditText";
_et_server = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=36831291;
 //BA.debugLineNum = 36831291;BA.debugLine="Private p_serverList As Panel";
_p_serverlist = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=36831292;
 //BA.debugLineNum = 36831292;BA.debugLine="Private lv_server As ListView";
_lv_server = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=36831293;
 //BA.debugLineNum = 36831293;BA.debugLine="Public Provider As FileProvider";
_provider = new reparto_intmex.keymon.lat.fileprovider();
RDebugUtils.currentLine=36831294;
 //BA.debugLineNum = 36831294;BA.debugLine="Public rutaBDBackup As String = \"\"";
_rutabdbackup = "";
RDebugUtils.currentLine=36831295;
 //BA.debugLineNum = 36831295;BA.debugLine="Private B_Can_Monto As Button";
_b_can_monto = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=36831296;
 //BA.debugLineNum = 36831296;BA.debugLine="Private B_Aceptar_Monto As Button";
_b_aceptar_monto = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=36831297;
 //BA.debugLineNum = 36831297;BA.debugLine="Private ET_Add_Monto As EditText";
_et_add_monto = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=36831298;
 //BA.debugLineNum = 36831298;BA.debugLine="Private p_add_monto As Panel";
_p_add_monto = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=36831299;
 //BA.debugLineNum = 36831299;BA.debugLine="Dim sDate, sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=36831300;
 //BA.debugLineNum = 36831300;BA.debugLine="Private p_validacion As Panel";
_p_validacion = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=36831301;
 //BA.debugLineNum = 36831301;BA.debugLine="Private b_cancelarcodigo As Button";
_b_cancelarcodigo = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=36831302;
 //BA.debugLineNum = 36831302;BA.debugLine="Private b_aceptar As Button";
_b_aceptar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=36831303;
 //BA.debugLineNum = 36831303;BA.debugLine="Private et_codigo As EditText";
_et_codigo = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=36831304;
 //BA.debugLineNum = 36831304;BA.debugLine="Private P_CIEGO As Panel";
_p_ciego = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=36831305;
 //BA.debugLineNum = 36831305;BA.debugLine="Private b_terpc As Button";
_b_terpc = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=36831306;
 //BA.debugLineNum = 36831306;BA.debugLine="Private B_PC_ENV As Button";
_b_pc_env = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=36831307;
 //BA.debugLineNum = 36831307;BA.debugLine="Private CLV_PICK_CIEGO As CustomListView";
_clv_pick_ciego = new b4a.example3.customlistview();
RDebugUtils.currentLine=36831308;
 //BA.debugLineNum = 36831308;BA.debugLine="Private et_buspc As EditText";
_et_buspc = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=36831309;
 //BA.debugLineNum = 36831309;BA.debugLine="Dim q_buscar As String";
_q_buscar = "";
RDebugUtils.currentLine=36831310;
 //BA.debugLineNum = 36831310;BA.debugLine="Dim d As Cursor";
_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=36831311;
 //BA.debugLineNum = 36831311;BA.debugLine="Private L_PICK_CIEGO As Label";
_l_pick_ciego = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=36831312;
 //BA.debugLineNum = 36831312;BA.debugLine="Private ET_PICK_CIEGO As EditText";
_et_pick_ciego = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=36831313;
 //BA.debugLineNum = 36831313;BA.debugLine="Dim a As Cursor";
_a = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=36831314;
 //BA.debugLineNum = 36831314;BA.debugLine="Dim f As Cursor";
_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=36831315;
 //BA.debugLineNum = 36831315;BA.debugLine="Private b_abono As Button";
_b_abono = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=36831316;
 //BA.debugLineNum = 36831316;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.objects.PanelWrapper  _createlistitem(reparto_intmex.keymon.lat.b4xmainpage __ref,String _id_prod,String _prod,String _cant) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "createlistitem", false))
	 {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem", new Object[] {_id_prod,_prod,_cant}));}
anywheresoftware.b4a.objects.B4XViewWrapper _pa = null;
RDebugUtils.currentLine=38731776;
 //BA.debugLineNum = 38731776;BA.debugLine="Sub CreateListItem(Id_prod As String, Prod As Stri";
RDebugUtils.currentLine=38731777;
 //BA.debugLineNum = 38731777;BA.debugLine="Dim pa As B4XView = xui.CreatePanel(\"\")";
_pa = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pa = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"");
RDebugUtils.currentLine=38731778;
 //BA.debugLineNum = 38731778;BA.debugLine="pa.SetLayoutAnimated(0, 0, 0, 1, 10)";
_pa.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (1),(int) (10));
RDebugUtils.currentLine=38731779;
 //BA.debugLineNum = 38731779;BA.debugLine="pa.LoadLayout(\"PANEL_PICK_CIEGO\")";
_pa.LoadLayout("PANEL_PICK_CIEGO",ba);
RDebugUtils.currentLine=38731780;
 //BA.debugLineNum = 38731780;BA.debugLine="pa.Height = 55dip";
_pa.setHeight(__c.DipToCurrent((int) (55)));
RDebugUtils.currentLine=38731781;
 //BA.debugLineNum = 38731781;BA.debugLine="pa.Width = 298dip";
_pa.setWidth(__c.DipToCurrent((int) (298)));
RDebugUtils.currentLine=38731783;
 //BA.debugLineNum = 38731783;BA.debugLine="L_PICK_CIEGO.Text = Id_prod &  CRLF & Prod";
__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_id_prod+__c.CRLF+_prod));
RDebugUtils.currentLine=38731784;
 //BA.debugLineNum = 38731784;BA.debugLine="L_PICK_CIEGO.TextSize = 12";
__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (12));
RDebugUtils.currentLine=38731785;
 //BA.debugLineNum = 38731785;BA.debugLine="L_PICK_CIEGO.Gravity = Bit.Or(Gravity.CENTER_VERT";
__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setGravity(__c.Bit.Or(__c.Gravity.CENTER_VERTICAL,__c.Gravity.CENTER_HORIZONTAL));
RDebugUtils.currentLine=38731786;
 //BA.debugLineNum = 38731786;BA.debugLine="ET_PICK_CIEGO.Text = cant";
__ref._et_pick_ciego /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_cant));
RDebugUtils.currentLine=38731789;
 //BA.debugLineNum = 38731789;BA.debugLine="Return pa";
if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_pa.getObject()));
RDebugUtils.currentLine=38731790;
 //BA.debugLineNum = 38731790;BA.debugLine="End Sub";
return null;
}
public anywheresoftware.b4a.objects.PanelWrapper  _createlistitem2(reparto_intmex.keymon.lat.b4xmainpage __ref,String _id_prod,String _prod) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "createlistitem2", false))
	 {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem2", new Object[] {_id_prod,_prod}));}
anywheresoftware.b4a.objects.B4XViewWrapper _pa = null;
RDebugUtils.currentLine=38797312;
 //BA.debugLineNum = 38797312;BA.debugLine="Sub CreateListItem2(Id_prod As String, Prod As Str";
RDebugUtils.currentLine=38797313;
 //BA.debugLineNum = 38797313;BA.debugLine="Dim pa As B4XView = xui.CreatePanel(\"\")";
_pa = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pa = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"");
RDebugUtils.currentLine=38797314;
 //BA.debugLineNum = 38797314;BA.debugLine="pa.SetLayoutAnimated(0, 0, 0, 1, 10)";
_pa.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (1),(int) (10));
RDebugUtils.currentLine=38797315;
 //BA.debugLineNum = 38797315;BA.debugLine="pa.LoadLayout(\"PANEL_PICK_CIEGO\")";
_pa.LoadLayout("PANEL_PICK_CIEGO",ba);
RDebugUtils.currentLine=38797316;
 //BA.debugLineNum = 38797316;BA.debugLine="pa.Height = 55dip";
_pa.setHeight(__c.DipToCurrent((int) (55)));
RDebugUtils.currentLine=38797317;
 //BA.debugLineNum = 38797317;BA.debugLine="pa.Width = 298dip";
_pa.setWidth(__c.DipToCurrent((int) (298)));
RDebugUtils.currentLine=38797319;
 //BA.debugLineNum = 38797319;BA.debugLine="L_PICK_CIEGO.Text = Id_prod &  CRLF & Prod";
__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_id_prod+__c.CRLF+_prod));
RDebugUtils.currentLine=38797320;
 //BA.debugLineNum = 38797320;BA.debugLine="L_PICK_CIEGO.TextSize = 12";
__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (12));
RDebugUtils.currentLine=38797321;
 //BA.debugLineNum = 38797321;BA.debugLine="L_PICK_CIEGO.Gravity = Bit.Or(Gravity.CENTER_VERT";
__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setGravity(__c.Bit.Or(__c.Gravity.CENTER_VERTICAL,__c.Gravity.CENTER_HORIZONTAL));
RDebugUtils.currentLine=38797324;
 //BA.debugLineNum = 38797324;BA.debugLine="Return pa";
if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_pa.getObject()));
RDebugUtils.currentLine=38797325;
 //BA.debugLineNum = 38797325;BA.debugLine="End Sub";
return null;
}
public String  _entrar_click(reparto_intmex.keymon.lat.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "entrar_click", false))
	 {return ((String) Debug.delegate(ba, "entrar_click", null));}
reparto_intmex.keymon.lat.dbrequestmanager._dbcommand _cmd = null;
RDebugUtils.currentLine=37093376;
 //BA.debugLineNum = 37093376;BA.debugLine="Sub Entrar_Click";
RDebugUtils.currentLine=37093377;
 //BA.debugLineNum = 37093377;BA.debugLine="If pass.Text = \"YA\" Then";
if ((__ref._pass /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("YA")) { 
RDebugUtils.currentLine=37093378;
 //BA.debugLineNum = 37093378;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from usuarioa\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from usuarioa");
RDebugUtils.currentLine=37093379;
 //BA.debugLineNum = 37093379;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from VERSION\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION");
RDebugUtils.currentLine=37093380;
 //BA.debugLineNum = 37093380;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO USUARIOA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO USUARIOA VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("ROOT"),(Object)("ROOT")}));
RDebugUtils.currentLine=37093381;
 //BA.debugLineNum = 37093381;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_almac";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_almacen");
RDebugUtils.currentLine=37093382;
 //BA.debugLineNum = 37093382;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_ALMA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())}));
RDebugUtils.currentLine=37093383;
 //BA.debugLineNum = 37093383;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO VERSION(";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("2.1")}));
RDebugUtils.currentLine=37093386;
 //BA.debugLineNum = 37093386;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
 }else {
RDebugUtils.currentLine=37093388;
 //BA.debugLineNum = 37093388;BA.debugLine="c=Starter.skmt.ExecQuery2(\"select count(*) as EX";
__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)(_starter._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=37093389;
 //BA.debugLineNum = 37093389;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=37093390;
 //BA.debugLineNum = 37093390;BA.debugLine="existe = c.GetString(\"EXISTE1\")";
__ref._existe /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EXISTE1");
RDebugUtils.currentLine=37093391;
 //BA.debugLineNum = 37093391;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=37093393;
 //BA.debugLineNum = 37093393;BA.debugLine="If existe = 0 Then";
if ((__ref._existe /*String*/ ).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=37093395;
 //BA.debugLineNum = 37093395;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_intmex.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=37093396;
 //BA.debugLineNum = 37093396;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
RDebugUtils.currentLine=37093397;
 //BA.debugLineNum = 37093397;BA.debugLine="cmd.Name = \"select_usuario_INTMEX_REPG\"";
_cmd.Name /*String*/  = "select_usuario_INTMEX_REPG";
RDebugUtils.currentLine=37093398;
 //BA.debugLineNum = 37093398;BA.debugLine="cmd.Parameters = Array As Object(user.Text, pas";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._pass /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())};
RDebugUtils.currentLine=37093399;
 //BA.debugLineNum = 37093399;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"usuario\")";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,_cmd,(int) (0),(Object)("usuario"));
RDebugUtils.currentLine=37093401;
 //BA.debugLineNum = 37093401;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_intmex.keymon.lat.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=37093402;
 //BA.debugLineNum = 37093402;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
RDebugUtils.currentLine=37093403;
 //BA.debugLineNum = 37093403;BA.debugLine="cmd.Name = \"select_version_INTMEX\"";
_cmd.Name /*String*/  = "select_version_INTMEX";
RDebugUtils.currentLine=37093404;
 //BA.debugLineNum = 37093404;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"version\")";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,_cmd,(int) (0),(Object)("version"));
 }else {
RDebugUtils.currentLine=37093407;
 //BA.debugLineNum = 37093407;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
 };
 };
RDebugUtils.currentLine=37093410;
 //BA.debugLineNum = 37093410;BA.debugLine="End Sub";
return "";
}
public String  _enviarmonto(reparto_intmex.keymon.lat.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "enviarmonto", false))
	 {return ((String) Debug.delegate(ba, "enviarmonto", null));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _a2 = null;
String[] _fecha = null;
String[] _fecha2 = null;
String _fecha3 = "";
String[] _hora = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _ci = null;
String _u = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _g = null;
RDebugUtils.currentLine=38010880;
 //BA.debugLineNum = 38010880;BA.debugLine="Sub enviarmonto";
RDebugUtils.currentLine=38010882;
 //BA.debugLineNum = 38010882;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=38010883;
 //BA.debugLineNum = 38010883;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=38010884;
 //BA.debugLineNum = 38010884;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=38010886;
 //BA.debugLineNum = 38010886;BA.debugLine="Private f As Cursor=Starter.skmt.ExecQuery(\"selec";
_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA")));
RDebugUtils.currentLine=38010887;
 //BA.debugLineNum = 38010887;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=38010889;
 //BA.debugLineNum = 38010889;BA.debugLine="Private a As Cursor=Starter.skmt.ExecQuery(\"selec";
_a = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_a = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
RDebugUtils.currentLine=38010890;
 //BA.debugLineNum = 38010890;BA.debugLine="If a.RowCount>0 Then";
if (__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=38010891;
 //BA.debugLineNum = 38010891;BA.debugLine="a.Position=0";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
 };
RDebugUtils.currentLine=38010894;
 //BA.debugLineNum = 38010894;BA.debugLine="Private a2 As Cursor = Starter.skmt.ExecQuery(\"SE";
_a2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_a2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS")));
RDebugUtils.currentLine=38010895;
 //BA.debugLineNum = 38010895;BA.debugLine="If a2.RowCount>0 Then";
if (_a2.getRowCount()>0) { 
RDebugUtils.currentLine=38010896;
 //BA.debugLineNum = 38010896;BA.debugLine="a2.Position=0";
_a2.setPosition((int) (0));
RDebugUtils.currentLine=38010897;
 //BA.debugLineNum = 38010897;BA.debugLine="Dim fecha() As String = Regex.Split(\" \", a2.GetS";
_fecha = __c.Regex.Split(" ",_a2.GetString("HVD_FECHA"));
RDebugUtils.currentLine=38010898;
 //BA.debugLineNum = 38010898;BA.debugLine="Dim fecha2() As String = Regex.Split(\"-\", fecha(";
_fecha2 = __c.Regex.Split("-",_fecha[(int) (0)]);
RDebugUtils.currentLine=38010899;
 //BA.debugLineNum = 38010899;BA.debugLine="Dim fecha3 As String = fecha2(2)&\"/\"&fecha2(1)&\"";
_fecha3 = _fecha2[(int) (2)]+"/"+_fecha2[(int) (1)]+"/"+_fecha2[(int) (0)];
RDebugUtils.currentLine=38010900;
 //BA.debugLineNum = 38010900;BA.debugLine="Log(fecha3)";
__c.LogImpl("238010900",_fecha3,0);
RDebugUtils.currentLine=38010901;
 //BA.debugLineNum = 38010901;BA.debugLine="Dim hora() As String = Regex.Split(\"\\.\", fecha(1";
_hora = __c.Regex.Split("\\.",_fecha[(int) (1)]);
RDebugUtils.currentLine=38010902;
 //BA.debugLineNum = 38010902;BA.debugLine="Log(hora(0))";
__c.LogImpl("238010902",_hora[(int) (0)],0);
 };
RDebugUtils.currentLine=38010907;
 //BA.debugLineNum = 38010907;BA.debugLine="Private cI As Cursor";
_ci = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=38010908;
 //BA.debugLineNum = 38010908;BA.debugLine="Private u As String = \"SinUsuario\"";
_u = "SinUsuario";
RDebugUtils.currentLine=38010909;
 //BA.debugLineNum = 38010909;BA.debugLine="cI=Starter.skmt.ExecQuery(\"select USUARIO from us";
_ci = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
RDebugUtils.currentLine=38010910;
 //BA.debugLineNum = 38010910;BA.debugLine="cI.Position=0";
_ci.setPosition((int) (0));
RDebugUtils.currentLine=38010911;
 //BA.debugLineNum = 38010911;BA.debugLine="If cI.RowCount > 0 Then u = cI.GetString(\"USUARIO";
if (_ci.getRowCount()>0) { 
_u = _ci.GetString("USUARIO");};
RDebugUtils.currentLine=38010912;
 //BA.debugLineNum = 38010912;BA.debugLine="Private g As Cursor = Starter.skmt.ExecQuery(\"sel";
_g = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_g = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from ENV_MONTO_LIQ")));
RDebugUtils.currentLine=38010945;
 //BA.debugLineNum = 38010945;BA.debugLine="p_add_monto.Visible = False";
__ref._p_add_monto /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=38010947;
 //BA.debugLineNum = 38010947;BA.debugLine="End Sub";
return "";
}
public String  _et_buspc_textchanged(reparto_intmex.keymon.lat.b4xmainpage __ref,String _old,String _new) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "et_buspc_textchanged", false))
	 {return ((String) Debug.delegate(ba, "et_buspc_textchanged", new Object[] {_old,_new}));}
int _i = 0;
RDebugUtils.currentLine=38207488;
 //BA.debugLineNum = 38207488;BA.debugLine="Private Sub et_buspc_TextChanged (Old As String, N";
RDebugUtils.currentLine=38207489;
 //BA.debugLineNum = 38207489;BA.debugLine="If New = \"\" Then";
if ((_new).equals("")) { 
RDebugUtils.currentLine=38207490;
 //BA.debugLineNum = 38207490;BA.debugLine="CLV_PICK_CIEGO.Clear";
__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._clear();
 }else 
{RDebugUtils.currentLine=38207491;
 //BA.debugLineNum = 38207491;BA.debugLine="Else If New.Length >= 3 Then";
if (_new.length()>=3) { 
RDebugUtils.currentLine=38207492;
 //BA.debugLineNum = 38207492;BA.debugLine="CLV_PICK_CIEGO.Clear";
__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=38207494;
 //BA.debugLineNum = 38207494;BA.debugLine="q_buscar = \"%\" & et_buspc.Text & \"%\"";
__ref._q_buscar /*String*/  = "%"+__ref._et_buspc /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()+"%";
RDebugUtils.currentLine=38207495;
 //BA.debugLineNum = 38207495;BA.debugLine="Log(q_buscar)";
__c.LogImpl("238207495",__ref._q_buscar /*String*/ ,0);
RDebugUtils.currentLine=38207496;
 //BA.debugLineNum = 38207496;BA.debugLine="c=Starter.skmt.ExecQuery2($\"select CAT_GP_NOMBRE";
__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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_NOMBRE, CAT_GP_ID , ifnull(PC_CANT,0) AS PC_CANT FROM CAT_GUNAPROD3 INNER JOIN PICK_CIEGO ON PC_ID_PROD = CAT_GP_ID AND PC_NOM_PROD = CAT_GP_NOMBRE WHERE (CAT_GP_NOMBRE LIKE ? OR  CAT_GP_ID  LIKE ? ) and CAT_GP_CLASIF <> 'PROMOS'"),new String[]{__ref._q_buscar /*String*/ ,__ref._q_buscar /*String*/ })));
RDebugUtils.currentLine=38207497;
 //BA.debugLineNum = 38207497;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=38207500;
 //BA.debugLineNum = 38207500;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step9 = 1;
final int limit9 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit9 ;_i = _i + step9 ) {
RDebugUtils.currentLine=38207501;
 //BA.debugLineNum = 38207501;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=38207502;
 //BA.debugLineNum = 38207502;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem(c.GetString(";
__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_NOMBRE"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_CANT")).getObject())),(Object)(_i));
 }
};
RDebugUtils.currentLine=38207505;
 //BA.debugLineNum = 38207505;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=38207507;
 //BA.debugLineNum = 38207507;BA.debugLine="d=Starter.skmt.ExecQuery2($\"select CAT_GP_NOMBR";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_NOMBRE, CAT_GP_ID FROM CAT_GUNAPROD3 WHERE (CAT_GP_NOMBRE LIKE ? OR  CAT_GP_ID  LIKE ? ) and CAT_GP_CLASIF <> 'PROMOS'AND CAT_GP_ID NOT IN (SELECT PC_ID_PROD FROM PICK_CIEGO)"),new String[]{__ref._q_buscar /*String*/ ,__ref._q_buscar /*String*/ })));
RDebugUtils.currentLine=38207509;
 //BA.debugLineNum = 38207509;BA.debugLine="For i = 0 To d.RowCount - 1";
{
final int step15 = 1;
final int limit15 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit15 ;_i = _i + step15 ) {
RDebugUtils.currentLine=38207510;
 //BA.debugLineNum = 38207510;BA.debugLine="d.Position = i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=38207511;
 //BA.debugLineNum = 38207511;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem2(d.GetString";
__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem2 /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID"),__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_NOMBRE")).getObject())),(Object)(_i));
 }
};
RDebugUtils.currentLine=38207514;
 //BA.debugLineNum = 38207514;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else 
{RDebugUtils.currentLine=38207516;
 //BA.debugLineNum = 38207516;BA.debugLine="Else If c.RowCount = 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
RDebugUtils.currentLine=38207517;
 //BA.debugLineNum = 38207517;BA.debugLine="d=Starter.skmt.ExecQuery2($\"select CAT_GP_NOMBR";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_NOMBRE, CAT_GP_ID FROM CAT_GUNAPROD3 WHERE (CAT_GP_NOMBRE LIKE ? OR  CAT_GP_ID  LIKE ? ) and CAT_GP_CLASIF <> 'PROMOS'"),new String[]{__ref._q_buscar /*String*/ ,__ref._q_buscar /*String*/ })));
RDebugUtils.currentLine=38207519;
 //BA.debugLineNum = 38207519;BA.debugLine="For i = 0 To d.RowCount - 1";
{
final int step22 = 1;
final int limit22 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit22 ;_i = _i + step22 ) {
RDebugUtils.currentLine=38207520;
 //BA.debugLineNum = 38207520;BA.debugLine="d.Position = i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=38207521;
 //BA.debugLineNum = 38207521;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem2(d.GetString";
__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem2 /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID"),__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_NOMBRE")).getObject())),(Object)(_i));
 }
};
RDebugUtils.currentLine=38207524;
 //BA.debugLineNum = 38207524;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }}
;
 }}
;
RDebugUtils.currentLine=38207527;
 //BA.debugLineNum = 38207527;BA.debugLine="End Sub";
return "";
}
public String  _i_engrane_click(reparto_intmex.keymon.lat.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=37224448;
 //BA.debugLineNum = 37224448;BA.debugLine="Private Sub i_engrane_Click";
RDebugUtils.currentLine=37224449;
 //BA.debugLineNum = 37224449;BA.debugLine="p_appUpdate.Width = Root.Width";
__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=37224450;
 //BA.debugLineNum = 37224450;BA.debugLine="p_appUpdate.Height = Root.Height";
__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=37224451;
 //BA.debugLineNum = 37224451;BA.debugLine="Subs.centraPanel(p_serverList, Root.Width)";
_subs._centrapanel /*String*/ (ba,__ref._p_serverlist /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=37224452;
 //BA.debugLineNum = 37224452;BA.debugLine="Subs.centraBoton(b_server, Root.Width)";
_subs._centraboton /*String*/ (ba,__ref._b_server /*anywheresoftware.b4a.objects.ButtonWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=37224453;
 //BA.debugLineNum = 37224453;BA.debugLine="Subs.centraBoton(b_apk, Root.Width)";
_subs._centraboton /*String*/ (ba,__ref._b_apk /*anywheresoftware.b4a.objects.ButtonWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=37224454;
 //BA.debugLineNum = 37224454;BA.debugLine="Subs.centraBoton(b_envioBD, Root.Width)";
_subs._centraboton /*String*/ (ba,__ref._b_enviobd /*anywheresoftware.b4a.objects.ButtonWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=37224455;
 //BA.debugLineNum = 37224455;BA.debugLine="Subs.centraBoton(b_regesar, Root.Width)";
_subs._centraboton /*String*/ (ba,__ref._b_regesar /*anywheresoftware.b4a.objects.ButtonWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=37224456;
 //BA.debugLineNum = 37224456;BA.debugLine="Subs.centraBoton(b_server, p_serverList.Width)";
_subs._centraboton /*String*/ (ba,__ref._b_server /*anywheresoftware.b4a.objects.ButtonWrapper*/ ,__ref._p_serverlist /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth());
RDebugUtils.currentLine=37224457;
 //BA.debugLineNum = 37224457;BA.debugLine="lv_server.Clear";
__ref._lv_server /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=37224458;
 //BA.debugLineNum = 37224458;BA.debugLine="lv_server.AddSingleLine(\"http://keymon.lat:1782\")";
__ref._lv_server /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddSingleLine(BA.ObjectToCharSequence("http://keymon.lat:1782"));
RDebugUtils.currentLine=37224459;
 //BA.debugLineNum = 37224459;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=37224461;
 //BA.debugLineNum = 37224461;BA.debugLine="et_server.Text = server";
__ref._et_server /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(__ref._server /*String*/ ));
RDebugUtils.currentLine=37224462;
 //BA.debugLineNum = 37224462;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=37224463;
 //BA.debugLineNum = 37224463;BA.debugLine="End Sub";
return "";
}
public String  _imageview1_longclick(reparto_intmex.keymon.lat.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "imageview1_longclick", false))
	 {return ((String) Debug.delegate(ba, "imageview1_longclick", null));}
RDebugUtils.currentLine=38862848;
 //BA.debugLineNum = 38862848;BA.debugLine="Private Sub ImageView1_LongClick";
RDebugUtils.currentLine=38862850;
 //BA.debugLineNum = 38862850;BA.debugLine="End Sub";
return "";
}
public String  _jobdone(reparto_intmex.keymon.lat.b4xmainpage __ref,reparto_intmex.keymon.lat.httpjob _job) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "jobdone", false))
	 {return ((String) Debug.delegate(ba, "jobdone", new Object[] {_job}));}
reparto_intmex.keymon.lat.dbrequestmanager._dbresult _result = null;
Object[] _records = null;
String _cat_ve_version = "";
String _id_almacen = "";
double _lat = 0;
double _lon = 0;
String _name = "";
String _imei_base = "";
String _cat_pa_pass = "";
String _hvd_estatus = "";
String _cuenta = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
RDebugUtils.currentLine=37158912;
 //BA.debugLineNum = 37158912;BA.debugLine="Sub JobDone(Job As HttpJob)";
RDebugUtils.currentLine=37158913;
 //BA.debugLineNum = 37158913;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) { 
RDebugUtils.currentLine=37158914;
 //BA.debugLineNum = 37158914;BA.debugLine="ToastMessageShow(\"Error: \" & Job.ErrorMessage, T";
__c.ToastMessageShow(BA.ObjectToCharSequence("Error: "+_job._errormessage /*String*/ ),__c.True);
 }else {
RDebugUtils.currentLine=37158916;
 //BA.debugLineNum = 37158916;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=37158917;
 //BA.debugLineNum = 37158917;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=37158918;
 //BA.debugLineNum = 37158918;BA.debugLine="If result.Tag = \"version\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("version"))) { 
RDebugUtils.currentLine=37158919;
 //BA.debugLineNum = 37158919;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group7 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen7 = group7.getSize()
;int index7 = 0;
;
for (; index7 < groupLen7;index7++){
_records = (Object[])(group7.Get(index7));
RDebugUtils.currentLine=37158920;
 //BA.debugLineNum = 37158920;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from VERSIO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION");
RDebugUtils.currentLine=37158921;
 //BA.debugLineNum = 37158921;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=37158922;
 //BA.debugLineNum = 37158922;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO VERSI";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_ve_version)}));
 }
};
 };
 };
RDebugUtils.currentLine=37158927;
 //BA.debugLineNum = 37158927;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=37158928;
 //BA.debugLineNum = 37158928;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=37158929;
 //BA.debugLineNum = 37158929;BA.debugLine="If result.Tag = \"agencia\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("agencia"))) { 
RDebugUtils.currentLine=37158930;
 //BA.debugLineNum = 37158930;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=37158932;
 //BA.debugLineNum = 37158932;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=37158937;
 //BA.debugLineNum = 37158937;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=37158938;
 //BA.debugLineNum = 37158938;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=37158939;
 //BA.debugLineNum = 37158939;BA.debugLine="If result.Tag = \"coords_almacen\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("coords_almacen"))) { 
RDebugUtils.currentLine=37158940;
 //BA.debugLineNum = 37158940;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group25 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen25 = group25.getSize()
;int index25 = 0;
;
for (; index25 < groupLen25;index25++){
_records = (Object[])(group25.Get(index25));
RDebugUtils.currentLine=37158941;
 //BA.debugLineNum = 37158941;BA.debugLine="Log(\"Coordenadas del almacen: \" & records(res";
__c.LogImpl("237158941","Coordenadas del almacen: "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))])+","+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))]),0);
RDebugUtils.currentLine=37158942;
 //BA.debugLineNum = 37158942;BA.debugLine="Private lat, lon As Double";
_lat = 0;
_lon = 0;
RDebugUtils.currentLine=37158943;
 //BA.debugLineNum = 37158943;BA.debugLine="lat = 0.0";
_lat = 0.0;
RDebugUtils.currentLine=37158944;
 //BA.debugLineNum = 37158944;BA.debugLine="lon = 0.0";
_lon = 0.0;
RDebugUtils.currentLine=37158945;
 //BA.debugLineNum = 37158945;BA.debugLine="If IsNumber(records(result.Columns.Get(\"CAT_A";
if (__c.IsNumber(BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))])) && __c.IsNumber(BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))]))) { 
RDebugUtils.currentLine=37158946;
 //BA.debugLineNum = 37158946;BA.debugLine="lat = records(result.Columns.Get(\"CAT_AL_LAT";
_lat = (double)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))]));
RDebugUtils.currentLine=37158947;
 //BA.debugLineNum = 37158947;BA.debugLine="lon = records(result.Columns.Get(\"CAT_AL_LON";
_lon = (double)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))]));
 };
RDebugUtils.currentLine=37158949;
 //BA.debugLineNum = 37158949;BA.debugLine="Starter.cedisLocation.Latitude = lat";
_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLatitude(_lat);
RDebugUtils.currentLine=37158950;
 //BA.debugLineNum = 37158950;BA.debugLine="Starter.cedisLocation.Longitude = lon";
_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLongitude(_lon);
RDebugUtils.currentLine=37158951;
 //BA.debugLineNum = 37158951;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_V";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("COORDS_ALMACEN")}));
RDebugUtils.currentLine=37158952;
 //BA.debugLineNum = 37158952;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_V";
_starter._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)("COORDS_ALMACEN"),(Object)(BA.NumberToString(_lon)+","+BA.NumberToString(_lat))}));
 }
};
 };
 };
RDebugUtils.currentLine=37158958;
 //BA.debugLineNum = 37158958;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=37158959;
 //BA.debugLineNum = 37158959;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=37158960;
 //BA.debugLineNum = 37158960;BA.debugLine="If result.Tag = \"usuario\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("usuario"))) { 
RDebugUtils.currentLine=37158961;
 //BA.debugLineNum = 37158961;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group44 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen44 = group44.getSize()
;int index44 = 0;
;
for (; index44 < groupLen44;index44++){
_records = (Object[])(group44.Get(index44));
RDebugUtils.currentLine=37158962;
 //BA.debugLineNum = 37158962;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=37158963;
 //BA.debugLineNum = 37158963;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=37158964;
 //BA.debugLineNum = 37158964;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=37158966;
 //BA.debugLineNum = 37158966;BA.debugLine="paso1 = 1";
__ref._paso1 /*String*/  = BA.NumberToString(1);
 };
 };
RDebugUtils.currentLine=37158970;
 //BA.debugLineNum = 37158970;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=37158971;
 //BA.debugLineNum = 37158971;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=37158972;
 //BA.debugLineNum = 37158972;BA.debugLine="If result.Tag = \"contrasena\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("contrasena"))) { 
RDebugUtils.currentLine=37158973;
 //BA.debugLineNum = 37158973;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group55 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen55 = group55.getSize()
;int index55 = 0;
;
for (; index55 < groupLen55;index55++){
_records = (Object[])(group55.Get(index55));
RDebugUtils.currentLine=37158974;
 //BA.debugLineNum = 37158974;BA.debugLine="Dim CAT_PA_PASS As String = records(result.Co";
_cat_pa_pass = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PA_PASS"))))]);
RDebugUtils.currentLine=37158975;
 //BA.debugLineNum = 37158975;BA.debugLine="If CAT_PA_PASS = et_codigo.Text Then";
if ((_cat_pa_pass).equals(__ref._et_codigo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())) { 
RDebugUtils.currentLine=37158976;
 //BA.debugLineNum = 37158976;BA.debugLine="Log(CAT_PA_PASS)";
__c.LogImpl("237158976",_cat_pa_pass,0);
RDebugUtils.currentLine=37158977;
 //BA.debugLineNum = 37158977;BA.debugLine="p_validacion.Visible = False";
__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=37158978;
 //BA.debugLineNum = 37158978;BA.debugLine="et_codigo.Text = \"\"";
__ref._et_codigo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=37158980;
 //BA.debugLineNum = 37158980;BA.debugLine="Subs.panelVisible(P_CIEGO,0,0)";
_subs._panelvisible /*String*/ (ba,__ref._p_ciego /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
 }else {
RDebugUtils.currentLine=37158983;
 //BA.debugLineNum = 37158983;BA.debugLine="MsgboxAsync(\"Contraseña incorrecta\",\"Atenció";
__c.MsgboxAsync(BA.ObjectToCharSequence("Contraseña incorrecta"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }
};
 };
 };
RDebugUtils.currentLine=37159032;
 //BA.debugLineNum = 37159032;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=37159033;
 //BA.debugLineNum = 37159033;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=37159034;
 //BA.debugLineNum = 37159034;BA.debugLine="If result.Tag = \"estatus\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("estatus"))) { 
RDebugUtils.currentLine=37159035;
 //BA.debugLineNum = 37159035;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group71 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen71 = group71.getSize()
;int index71 = 0;
;
for (; index71 < groupLen71;index71++){
_records = (Object[])(group71.Get(index71));
RDebugUtils.currentLine=37159036;
 //BA.debugLineNum = 37159036;BA.debugLine="Dim hvd_estatus As String = records(result.Co";
_hvd_estatus = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_ESTATUS"))))]);
RDebugUtils.currentLine=37159037;
 //BA.debugLineNum = 37159037;BA.debugLine="If hvd_estatus = \"Liquidado\" Then";
if ((_hvd_estatus).equals("Liquidado")) { 
RDebugUtils.currentLine=37159039;
 //BA.debugLineNum = 37159039;BA.debugLine="MsgboxAsync(\"La venta ya fue liquidada\",\"Ate";
__c.MsgboxAsync(BA.ObjectToCharSequence("La venta ya fue liquidada"),BA.ObjectToCharSequence("Atención"),ba);
 }else {
RDebugUtils.currentLine=37159041;
 //BA.debugLineNum = 37159041;BA.debugLine="enviarmonto";
__ref._enviarmonto /*String*/ (null);
 };
 }
};
 };
 };
RDebugUtils.currentLine=37159047;
 //BA.debugLineNum = 37159047;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=37159048;
 //BA.debugLineNum = 37159048;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=37159049;
 //BA.debugLineNum = 37159049;BA.debugLine="If result.Tag = \"estatus2\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("estatus2"))) { 
RDebugUtils.currentLine=37159050;
 //BA.debugLineNum = 37159050;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group84 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen84 = group84.getSize()
;int index84 = 0;
;
for (; index84 < groupLen84;index84++){
_records = (Object[])(group84.Get(index84));
RDebugUtils.currentLine=37159051;
 //BA.debugLineNum = 37159051;BA.debugLine="Dim hvd_estatus As String = records(result.Co";
_hvd_estatus = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_ESTATUS"))))]);
RDebugUtils.currentLine=37159052;
 //BA.debugLineNum = 37159052;BA.debugLine="If hvd_estatus = \"Liquidado\" Then";
if ((_hvd_estatus).equals("Liquidado")) { 
RDebugUtils.currentLine=37159054;
 //BA.debugLineNum = 37159054;BA.debugLine="MsgboxAsync(\"La venta ya fue liquidada\",\"Ate";
__c.MsgboxAsync(BA.ObjectToCharSequence("La venta ya fue liquidada"),BA.ObjectToCharSequence("Atención"),ba);
 }else {
RDebugUtils.currentLine=37159056;
 //BA.debugLineNum = 37159056;BA.debugLine="passaquci";
__ref._passaquci /*String*/ (null);
 };
 }
};
 };
 };
RDebugUtils.currentLine=37159062;
 //BA.debugLineNum = 37159062;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=37159063;
 //BA.debugLineNum = 37159063;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=37159064;
 //BA.debugLineNum = 37159064;BA.debugLine="If result.Tag = \"SelectMontoLiq\" Then";
if ((_result.Tag /*Object*/ ).equals((Object)("SelectMontoLiq"))) { 
RDebugUtils.currentLine=37159065;
 //BA.debugLineNum = 37159065;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group97 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen97 = group97.getSize()
;int index97 = 0;
;
for (; index97 < groupLen97;index97++){
_records = (Object[])(group97.Get(index97));
RDebugUtils.currentLine=37159066;
 //BA.debugLineNum = 37159066;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=37159068;
 //BA.debugLineNum = 37159068;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=37159069;
 //BA.debugLineNum = 37159069;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=37159070;
 //BA.debugLineNum = 37159070;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=37159071;
 //BA.debugLineNum = 37159071;BA.debugLine="Private f As Cursor=Starter.skmt.ExecQuery(\"s";
_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA")));
RDebugUtils.currentLine=37159072;
 //BA.debugLineNum = 37159072;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=37159073;
 //BA.debugLineNum = 37159073;BA.debugLine="Private a As Cursor =Starter.skmt.ExecQuery(\"";
_a = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_a = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
RDebugUtils.currentLine=37159074;
 //BA.debugLineNum = 37159074;BA.debugLine="a.Position = 0";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=37159076;
 //BA.debugLineNum = 37159076;BA.debugLine="Private c2 As Cursor";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=37159077;
 //BA.debugLineNum = 37159077;BA.debugLine="c2=Starter.skmt.ExecQuery(\"select USUARIO fro";
_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
RDebugUtils.currentLine=37159078;
 //BA.debugLineNum = 37159078;BA.debugLine="c2.Position=0";
_c2.setPosition((int) (0));
RDebugUtils.currentLine=37159079;
 //BA.debugLineNum = 37159079;BA.debugLine="If c2.RowCount > 0 Then c2.GetString(\"USUARIO";
if (_c2.getRowCount()>0) { 
_c2.GetString("USUARIO");};
RDebugUtils.currentLine=37159081;
 //BA.debugLineNum = 37159081;BA.debugLine="Log(CUENTA & \"----------------------!!\")";
__c.LogImpl("237159081",_cuenta+"----------------------!!",0);
RDebugUtils.currentLine=37159082;
 //BA.debugLineNum = 37159082;BA.debugLine="If CUENTA = \"0\" Then";
if ((_cuenta).equals("0")) { 
 }else 
{RDebugUtils.currentLine=37159097;
 //BA.debugLineNum = 37159097;BA.debugLine="Else if CUENTA > \"0\" Then";
if ((double)(Double.parseDouble(_cuenta))>(double)(Double.parseDouble("0"))) { 
 }}
;
RDebugUtils.currentLine=37159115;
 //BA.debugLineNum = 37159115;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=37159116;
 //BA.debugLineNum = 37159116;BA.debugLine="a.Close";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }
};
 };
 };
RDebugUtils.currentLine=37159121;
 //BA.debugLineNum = 37159121;BA.debugLine="Job.Release";
_job._release /*String*/ (null);
 };
RDebugUtils.currentLine=37159124;
 //BA.debugLineNum = 37159124;BA.debugLine="If paso1 = 1 Then";
if ((__ref._paso1 /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=37159125;
 //BA.debugLineNum = 37159125;BA.debugLine="If name = \"OKActivo\" Then";
if ((_name).equals("OKActivo")) { 
RDebugUtils.currentLine=37159126;
 //BA.debugLineNum = 37159126;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from usuarioa";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from usuarioa");
RDebugUtils.currentLine=37159127;
 //BA.debugLineNum = 37159127;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO USUARIO";
_starter._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=37159128;
 //BA.debugLineNum = 37159128;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_alma";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_almacen");
RDebugUtils.currentLine=37159129;
 //BA.debugLineNum = 37159129;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_ALM";
_starter._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=37159130;
 //BA.debugLineNum = 37159130;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
 }else 
{RDebugUtils.currentLine=37159131;
 //BA.debugLineNum = 37159131;BA.debugLine="Else If name  = \"OKExpirado\"& IMEI Then";
if ((_name).equals("OKExpirado"+__ref._imei /*String*/ )) { 
RDebugUtils.currentLine=37159132;
 //BA.debugLineNum = 37159132;BA.debugLine="Msgbox(\"Usuario Expirado llamar al administrado";
__c.Msgbox(BA.ObjectToCharSequence("Usuario Expirado llamar al administrador"),BA.ObjectToCharSequence(""),ba);
 }else 
{RDebugUtils.currentLine=37159133;
 //BA.debugLineNum = 37159133;BA.debugLine="Else If name = \"OKCancelado\"& IMEI Then";
if ((_name).equals("OKCancelado"+__ref._imei /*String*/ )) { 
RDebugUtils.currentLine=37159134;
 //BA.debugLineNum = 37159134;BA.debugLine="Msgbox(\"Usuario Cancelado llamar al administrad";
__c.Msgbox(BA.ObjectToCharSequence("Usuario Cancelado llamar al administrador"),BA.ObjectToCharSequence(""),ba);
 }else {
RDebugUtils.currentLine=37159136;
 //BA.debugLineNum = 37159136;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'ign";
__c.Msgbox(BA.ObjectToCharSequence("Usuario o password No validos"),BA.ObjectToCharSequence(""),ba);
 }}}
;
RDebugUtils.currentLine=37159138;
 //BA.debugLineNum = 37159138;BA.debugLine="paso1 = 0";
__ref._paso1 /*String*/  = BA.NumberToString(0);
 };
RDebugUtils.currentLine=37159140;
 //BA.debugLineNum = 37159140;BA.debugLine="End Sub";
return "";
}
public String  _passaquci(reparto_intmex.keymon.lat.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "passaquci", false))
	 {return ((String) Debug.delegate(ba, "passaquci", null));}
RDebugUtils.currentLine=38535168;
 //BA.debugLineNum = 38535168;BA.debugLine="Sub passaquci";
RDebugUtils.currentLine=38535169;
 //BA.debugLineNum = 38535169;BA.debugLine="f=Starter.skmt.ExecQuery(\"select CAT_CL_RUTA from";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info")));
RDebugUtils.currentLine=38535170;
 //BA.debugLineNum = 38535170;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=38535172;
 //BA.debugLineNum = 38535172;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN from";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
RDebugUtils.currentLine=38535173;
 //BA.debugLineNum = 38535173;BA.debugLine="If a.RowCount>0 Then";
if (__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=38535174;
 //BA.debugLineNum = 38535174;BA.debugLine="a.Position=0";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
 };
RDebugUtils.currentLine=38535176;
 //BA.debugLineNum = 38535176;BA.debugLine="Log(a.GetString(\"ID_ALMACEN\"))";
__c.LogImpl("238535176",__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"),0);
RDebugUtils.currentLine=38535177;
 //BA.debugLineNum = 38535177;BA.debugLine="Log(f.GetString(\"CAT_CL_RUTA\"))";
__c.LogImpl("238535177",__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA"),0);
RDebugUtils.currentLine=38535192;
 //BA.debugLineNum = 38535192;BA.debugLine="End Sub";
return "";
}
public String  _lv_server_itemclick(reparto_intmex.keymon.lat.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=37617664;
 //BA.debugLineNum = 37617664;BA.debugLine="Private Sub lv_server_ItemClick (Position As Int,";
RDebugUtils.currentLine=37617665;
 //BA.debugLineNum = 37617665;BA.debugLine="server = Value";
__ref._server /*String*/  = BA.ObjectToString(_value);
RDebugUtils.currentLine=37617667;
 //BA.debugLineNum = 37617667;BA.debugLine="et_server.Text = Value";
__ref._et_server /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_value));
RDebugUtils.currentLine=37617668;
 //BA.debugLineNum = 37617668;BA.debugLine="reqManager.Initialize(Me, Value)";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,BA.ObjectToString(_value));
RDebugUtils.currentLine=37617669;
 //BA.debugLineNum = 37617669;BA.debugLine="LogColor($\"ReqServer = ${Value}\"$, Colors.red)";
__c.LogImpl("237617669",("ReqServer = "+__c.SmartStringFormatter("",_value)+""),__c.Colors.Red);
RDebugUtils.currentLine=37617670;
 //BA.debugLineNum = 37617670;BA.debugLine="ToastMessageShow(\"Servidor modificado\", False)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Servidor modificado"),__c.False);
RDebugUtils.currentLine=37617671;
 //BA.debugLineNum = 37617671;BA.debugLine="End Sub";
return "";
}
public String  _p_add_monto_click(reparto_intmex.keymon.lat.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "p_add_monto_click", false))
	 {return ((String) Debug.delegate(ba, "p_add_monto_click", null));}
RDebugUtils.currentLine=37945344;
 //BA.debugLineNum = 37945344;BA.debugLine="Private Sub p_add_monto_Click";
RDebugUtils.currentLine=37945346;
 //BA.debugLineNum = 37945346;BA.debugLine="End Sub";
return "";
}
public String  _p_ciego_click(reparto_intmex.keymon.lat.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "p_ciego_click", false))
	 {return ((String) Debug.delegate(ba, "p_ciego_click", null));}
RDebugUtils.currentLine=38404096;
 //BA.debugLineNum = 38404096;BA.debugLine="Private Sub P_CIEGO_Click";
RDebugUtils.currentLine=38404098;
 //BA.debugLineNum = 38404098;BA.debugLine="End Sub";
return "";
}
public String  _p_validacion_click(reparto_intmex.keymon.lat.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=38666240;
 //BA.debugLineNum = 38666240;BA.debugLine="Private Sub p_validacion_Click";
RDebugUtils.currentLine=38666242;
 //BA.debugLineNum = 38666242;BA.debugLine="End Sub";
return "";
}
}