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 BA(_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 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.starter _starter = 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.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  _b_aceptar_click() throws Exception{
 //BA.debugLineNum = 921;BA.debugLine="Private Sub b_aceptar_Click";
 //BA.debugLineNum = 922;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")));
 //BA.debugLineNum = 923;BA.debugLine="f.Position=0";
_f.setPosition((int) (0));
 //BA.debugLineNum = 924;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")));
 //BA.debugLineNum = 925;BA.debugLine="a.Position = 0";
_a.setPosition((int) (0));
 //BA.debugLineNum = 931;BA.debugLine="f.Close";
_f.Close();
 //BA.debugLineNum = 932;BA.debugLine="a.Close";
_a.Close();
 //BA.debugLineNum = 937;BA.debugLine="End Sub";
return "";
}
public String  _b_apk_click() throws Exception{
 //BA.debugLineNum = 579;BA.debugLine="Private Sub b_apk_Click";
 //BA.debugLineNum = 580;BA.debugLine="StartService(appUpdater)";
__c.StartService(ba,(Object)(_appupdater.getObject()));
 //BA.debugLineNum = 581;BA.debugLine="End Sub";
return "";
}
public String  _b_arqueocieego_click() throws Exception{
 //BA.debugLineNum = 726;BA.debugLine="Private Sub b_arqueocieego_Click";
 //BA.debugLineNum = 727;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT *  FROM CAT_GU";
_c = (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")));
 //BA.debugLineNum = 728;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 729;BA.debugLine="Subs.panelVisible(p_validacion,0,0)";
_subs._panelvisible /*String*/ (ba,_p_validacion,(int) (0),(int) (0));
 }else {
 //BA.debugLineNum = 731;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);
 };
 //BA.debugLineNum = 733;BA.debugLine="End Sub";
return "";
}
public String  _b_can_monto_click() throws Exception{
 //BA.debugLineNum = 722;BA.debugLine="Private Sub B_Can_Monto_Click";
 //BA.debugLineNum = 723;BA.debugLine="p_add_monto.Visible = False";
_p_add_monto.setVisible(__c.False);
 //BA.debugLineNum = 724;BA.debugLine="End Sub";
return "";
}
public String  _b_cancelarcodigo_click() throws Exception{
 //BA.debugLineNum = 965;BA.debugLine="Private Sub b_cancelarcodigo_Click";
 //BA.debugLineNum = 966;BA.debugLine="p_validacion.Visible = False";
_p_validacion.setVisible(__c.False);
 //BA.debugLineNum = 967;BA.debugLine="End Sub";
return "";
}
public String  _b_cargarmonto_click() throws Exception{
 //BA.debugLineNum = 622;BA.debugLine="Private Sub b_CargarMonto_Click";
 //BA.debugLineNum = 624;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT *  FROM kmt_in";
_c = (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")));
 //BA.debugLineNum = 625;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 626;BA.debugLine="If c.RowCount < 0 Or c.RowCount = 0 Then";
if (_c.getRowCount()<0 || _c.getRowCount()==0) { 
 //BA.debugLineNum = 627;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 {
 //BA.debugLineNum = 629;BA.debugLine="Subs.panelVisible(p_add_monto,0,0)";
_subs._panelvisible /*String*/ (ba,_p_add_monto,(int) (0),(int) (0));
 };
 //BA.debugLineNum = 631;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 633;BA.debugLine="End Sub";
return "";
}
public void  _b_enviobd_click() throws Exception{
ResumableSub_b_envioBD_Click rsub = new ResumableSub_b_envioBD_Click(this);
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) {
this.parent = parent;
}
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{

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

case 0:
//C
this.state = -1;
 //BA.debugLineNum = 564;BA.debugLine="Dim FileName As String = \"kmt.db\"";
_filename = "kmt.db";
 //BA.debugLineNum = 566;BA.debugLine="Log(\"xxxxxx:\"&Provider.SharedFolder)";
parent.__c.LogImpl("81769477","xxxxxx:"+parent._provider._sharedfolder /*String*/ ,0);
 //BA.debugLineNum = 567;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,this,(int) (1000));
this.state = 1;
return;
case 1:
//C
this.state = -1;
;
 //BA.debugLineNum = 568;BA.debugLine="File.Copy(File.DirInternal, FileName, Provider.Sh";
parent.__c.File.Copy(parent.__c.File.getDirInternal(),_filename,parent._provider._sharedfolder /*String*/ ,_filename);
 //BA.debugLineNum = 569;BA.debugLine="Dim email As Email";
_email = new anywheresoftware.b4a.phone.Phone.Email();
 //BA.debugLineNum = 570;BA.debugLine="email.To.Add(\"soporte@keymonsoft.com\")";
_email.To.Add((Object)("soporte@keymonsoft.com"));
 //BA.debugLineNum = 571;BA.debugLine="email.Subject = \"Base de datos para revisión\"";
_email.Subject = "Base de datos para revisión";
 //BA.debugLineNum = 572;BA.debugLine="email.Attachments.Add(Provider.GetFileUri(FileNam";
_email.Attachments.Add(parent._provider._getfileuri /*Object*/ (_filename));
 //BA.debugLineNum = 574;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()));
 //BA.debugLineNum = 575;BA.debugLine="in.Flags = 1 'FLAG_GRANT_READ_URI_PERMISSION";
_in.setFlags((int) (1));
 //BA.debugLineNum = 576;BA.debugLine="StartActivity(in)";
parent.__c.StartActivity(ba,(Object)(_in.getObject()));
 //BA.debugLineNum = 577;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _b_pc_env_click() throws Exception{
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 = "";
 //BA.debugLineNum = 776;BA.debugLine="Private Sub B_PC_ENV_Click";
 //BA.debugLineNum = 777;BA.debugLine="Dim sDate, sTime As String";
_sdate = "";
_stime = "";
 //BA.debugLineNum = 778;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
__c.DateTime.setDateFormat("dd/MM/yyyy");
 //BA.debugLineNum = 779;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
 //BA.debugLineNum = 780;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
 //BA.debugLineNum = 781;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
 //BA.debugLineNum = 784;BA.debugLine="For i = 0 To CLV_PICK_CIEGO.Size - 1";
{
final int step6 = 1;
final int limit6 = (int) (_clv_pick_ciego._getsize()-1);
_i = (int) (0) ;
for (;_i <= limit6 ;_i = _i + step6 ) {
 //BA.debugLineNum = 786;BA.debugLine="Dim itemPanel As B4XView = CLV_PICK_CIEGO.GetPan";
_itempanel = new anywheresoftware.b4a.objects.B4XViewWrapper();
_itempanel = _clv_pick_ciego._getpanel(_i);
 //BA.debugLineNum = 787;BA.debugLine="Dim innerPanel As B4XView = itemPanel.GetView(0)";
_innerpanel = new anywheresoftware.b4a.objects.B4XViewWrapper();
_innerpanel = _itempanel.GetView((int) (0));
 //BA.debugLineNum = 788;BA.debugLine="Dim editText As B4XView = innerPanel.GetView(1)";
_edittext = new anywheresoftware.b4a.objects.B4XViewWrapper();
_edittext = _innerpanel.GetView((int) (1));
 //BA.debugLineNum = 789;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();
 //BA.debugLineNum = 792;BA.debugLine="If Regex.IsMatch(\"^[0]+$\", inputText) Or inputTe";
if (__c.Regex.IsMatch("^[0]+$",_inputtext) || (_inputtext).equals("")) { 
 //BA.debugLineNum = 793;BA.debugLine="inputText = \"0\"";
_inputtext = "0";
 };
 //BA.debugLineNum = 797;BA.debugLine="Dim idLabel As B4XView = innerPanel.GetView(0)";
_idlabel = new anywheresoftware.b4a.objects.B4XViewWrapper();
_idlabel = _innerpanel.GetView((int) (0));
 //BA.debugLineNum = 798;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();
 //BA.debugLineNum = 799;BA.debugLine="Dim idParts() As String = Regex.Split(CRLF, idTe";
_idparts = __c.Regex.Split(__c.CRLF,_idtext);
 //BA.debugLineNum = 801;BA.debugLine="f=Starter.skmt.ExecQuery(\"select RUTAA from RUTA";
_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")));
 //BA.debugLineNum = 802;BA.debugLine="f.Position=0";
_f.setPosition((int) (0));
 //BA.debugLineNum = 803;BA.debugLine="Log(f.GetString(\"RUTAA\"))";
__c.LogImpl("82621467",_f.GetString("RUTAA"),0);
 //BA.debugLineNum = 804;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN from";
_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")));
 //BA.debugLineNum = 805;BA.debugLine="If a.RowCount>0 Then";
if (_a.getRowCount()>0) { 
 //BA.debugLineNum = 806;BA.debugLine="a.Position=0";
_a.setPosition((int) (0));
 };
 //BA.debugLineNum = 808;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")));
 //BA.debugLineNum = 809;BA.debugLine="k.Position = 0";
_k.setPosition((int) (0));
 //BA.debugLineNum = 810;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\" \"";
_fechatabulador = __c.Regex.Split(" ",_k.GetString("HVD_FECHA"));
 //BA.debugLineNum = 811;BA.debugLine="Dim fechatabulador2() As String = Regex.Split(\"-";
_fechatabulador2 = __c.Regex.Split("-",_fechatabulador[(int) (0)]);
 //BA.debugLineNum = 812;BA.debugLine="Dim fechatabulador3 As String = fechatabulador2(";
_fechatabulador3 = _fechatabulador2[(int) (2)]+"/"+_fechatabulador2[(int) (1)]+"/"+_fechatabulador2[(int) (0)];
 //BA.debugLineNum = 813;BA.debugLine="k.Close";
_k.Close();
 //BA.debugLineNum = 814;BA.debugLine="If inputText <> \"\" Then";
if ((_inputtext).equals("") == false) { 
 //BA.debugLineNum = 815;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PICK";
_c = (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)]})));
 //BA.debugLineNum = 816;BA.debugLine="If c.RowCount = 0 Then";
if (_c.getRowCount()==0) { 
 //BA.debugLineNum = 818;BA.debugLine="Log(f.GetString(\"RUTAA\"))";
__c.LogImpl("82621482",_f.GetString("RUTAA"),0);
 //BA.debugLineNum = 819;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,_a.GetString("ID_ALMACEN"),_f.GetString("RUTAA"),_fechatabulador3+" "+_stime}));
 }else {
 //BA.debugLineNum = 822;BA.debugLine="Log(f.GetString(\"RUTAA\"))";
__c.LogImpl("82621486",_f.GetString("RUTAA"),0);
 //BA.debugLineNum = 823;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)]}));
 };
 };
 //BA.debugLineNum = 827;BA.debugLine="f.Close";
_f.Close();
 //BA.debugLineNum = 828;BA.debugLine="a.Close";
_a.Close();
 //BA.debugLineNum = 829;BA.debugLine="Log(\"Processed item \" & i)";
__c.LogImpl("82621493","Processed item "+BA.NumberToString(_i),0);
 }
};
 //BA.debugLineNum = 831;BA.debugLine="et_buspc.Text = \"\"";
_et_buspc.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 832;BA.debugLine="CLV_PICK_CIEGO.Clear";
_clv_pick_ciego._clear();
 //BA.debugLineNum = 833;BA.debugLine="End Sub";
return "";
}
public String  _b_regesar_click() throws Exception{
 //BA.debugLineNum = 555;BA.debugLine="Private Sub b_regesar_Click";
 //BA.debugLineNum = 556;BA.debugLine="p_principal.Visible = True";
_p_principal.setVisible(__c.True);
 //BA.debugLineNum = 557;BA.debugLine="p_appUpdate.Visible = False";
_p_appupdate.setVisible(__c.False);
 //BA.debugLineNum = 558;BA.debugLine="End Sub";
return "";
}
public String  _b_server_click() throws Exception{
 //BA.debugLineNum = 583;BA.debugLine="Private Sub b_server_Click";
 //BA.debugLineNum = 584;BA.debugLine="Log(\"Guardar servidor\")";
__c.LogImpl("81900545","Guardar servidor",0);
 //BA.debugLineNum = 585;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")}));
 //BA.debugLineNum = 586;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)(_et_server.getText())}));
 //BA.debugLineNum = 587;BA.debugLine="B4XPages.MainPage.server = et_server.text";
_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/  = _et_server.getText();
 //BA.debugLineNum = 588;BA.debugLine="Starter.server = B4XPages.MainPage.server";
_starter._server /*String*/  = _b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ;
 //BA.debugLineNum = 589;BA.debugLine="If logger Then Log(\"Inicializamos reqManager con";
if (_logger) { 
__c.LogImpl("81900550","Inicializamos reqManager con "+_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ,0);};
 //BA.debugLineNum = 590;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve";
_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
 //BA.debugLineNum = 591;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.server";
__c.LogImpl("81900552",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red);
 //BA.debugLineNum = 592;BA.debugLine="reinicializaReqManager";
_reinicializareqmanager();
 //BA.debugLineNum = 593;BA.debugLine="p_appUpdate.Visible = False";
_p_appupdate.setVisible(__c.False);
 //BA.debugLineNum = 595;BA.debugLine="End Sub";
return "";
}
public void  _b_terpc_click() throws Exception{
ResumableSub_b_terpc_Click rsub = new ResumableSub_b_terpc_Click(this);
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) {
this.parent = parent;
}
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{

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

case 0:
//C
this.state = 1;
 //BA.debugLineNum = 836;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);
 //BA.debugLineNum = 837;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
parent.__c.WaitFor("msgbox_result", ba, this, null);
this.state = 33;
return;
case 33:
//C
this.state = 1;
_resultado = (Integer) result[0];
;
 //BA.debugLineNum = 838;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;
 //BA.debugLineNum = 839;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);
 //BA.debugLineNum = 840;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
parent.__c.WaitFor("msgbox_result", ba, this, null);
this.state = 34;
return;
case 34:
//C
this.state = 4;
_resultado = (Integer) result[0];
;
 //BA.debugLineNum = 841;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;
 //BA.debugLineNum = 843;BA.debugLine="Dim sDate, sTime As String";
parent._sdate = "";
parent._stime = "";
 //BA.debugLineNum = 844;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
parent.__c.DateTime.setDateFormat("dd/MM/yyyy");
 //BA.debugLineNum = 845;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
parent.__c.DateTime.setTimeFormat("HH:mm:ss");
 //BA.debugLineNum = 846;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
 //BA.debugLineNum = 847;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
 //BA.debugLineNum = 849;BA.debugLine="For i = 0 To CLV_PICK_CIEGO.Size - 1";
if (true) break;

case 7:
//for
this.state = 28;
step12 = 1;
limit12 = (int) (parent._clv_pick_ciego._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;
 //BA.debugLineNum = 851;BA.debugLine="Dim itemPanel As B4XView = CLV_PICK_CIEGO.GetP";
_itempanel = new anywheresoftware.b4a.objects.B4XViewWrapper();
_itempanel = parent._clv_pick_ciego._getpanel(_i);
 //BA.debugLineNum = 852;BA.debugLine="Dim innerPanel As B4XView = itemPanel.GetView(";
_innerpanel = new anywheresoftware.b4a.objects.B4XViewWrapper();
_innerpanel = _itempanel.GetView((int) (0));
 //BA.debugLineNum = 853;BA.debugLine="Dim editText As B4XView = innerPanel.GetView(1";
_edittext = new anywheresoftware.b4a.objects.B4XViewWrapper();
_edittext = _innerpanel.GetView((int) (1));
 //BA.debugLineNum = 854;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();
 //BA.debugLineNum = 857;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;
 //BA.debugLineNum = 858;BA.debugLine="inputText = \"0\"";
_inputtext = "0";
 if (true) break;

case 13:
//C
this.state = 14;
;
 //BA.debugLineNum = 862;BA.debugLine="Dim idLabel As B4XView = innerPanel.GetView(0)";
_idlabel = new anywheresoftware.b4a.objects.B4XViewWrapper();
_idlabel = _innerpanel.GetView((int) (0));
 //BA.debugLineNum = 863;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();
 //BA.debugLineNum = 864;BA.debugLine="Dim idParts() As String = Regex.Split(CRLF, id";
_idparts = parent.__c.Regex.Split(parent.__c.CRLF,_idtext);
 //BA.debugLineNum = 866;BA.debugLine="f=Starter.skmt.ExecQuery(\"select RUTAA from RU";
parent._f = (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")));
 //BA.debugLineNum = 867;BA.debugLine="f.Position=0";
parent._f.setPosition((int) (0));
 //BA.debugLineNum = 868;BA.debugLine="Log(f.GetString(\"RUTAA\"))";
parent.__c.LogImpl("82687009",parent._f.GetString("RUTAA"),0);
 //BA.debugLineNum = 870;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN fr";
parent._a = (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")));
 //BA.debugLineNum = 871;BA.debugLine="If a.RowCount>0 Then";
if (true) break;

case 14:
//if
this.state = 17;
if (parent._a.getRowCount()>0) { 
this.state = 16;
}if (true) break;

case 16:
//C
this.state = 17;
 //BA.debugLineNum = 872;BA.debugLine="a.Position=0";
parent._a.setPosition((int) (0));
 if (true) break;

case 17:
//C
this.state = 18;
;
 //BA.debugLineNum = 874;BA.debugLine="Log(a.GetString(\"ID_ALMACEN\"))";
parent.__c.LogImpl("82687015",parent._a.GetString("ID_ALMACEN"),0);
 //BA.debugLineNum = 876;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")));
 //BA.debugLineNum = 877;BA.debugLine="k.Position = 0";
_k.setPosition((int) (0));
 //BA.debugLineNum = 878;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\"";
_fechatabulador = parent.__c.Regex.Split(" ",_k.GetString("HVD_FECHA"));
 //BA.debugLineNum = 879;BA.debugLine="Dim fechatabulador2() As String = Regex.Split(";
_fechatabulador2 = parent.__c.Regex.Split("-",_fechatabulador[(int) (0)]);
 //BA.debugLineNum = 880;BA.debugLine="Dim fechatabulador3 As String = fechatabulador";
_fechatabulador3 = _fechatabulador2[(int) (2)]+"/"+_fechatabulador2[(int) (1)]+"/"+_fechatabulador2[(int) (0)];
 //BA.debugLineNum = 881;BA.debugLine="k.Close";
_k.Close();
 //BA.debugLineNum = 882;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;
 //BA.debugLineNum = 883;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PI";
parent._c = (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)]})));
 //BA.debugLineNum = 884;BA.debugLine="If c.RowCount = 0 Then";
if (true) break;

case 21:
//if
this.state = 26;
if (parent._c.getRowCount()==0) { 
this.state = 23;
}else {
this.state = 25;
}if (true) break;

case 23:
//C
this.state = 26;
 //BA.debugLineNum = 886;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,parent._a.GetString("ID_ALMACEN"),parent._f.GetString("RUTAA"),_fechatabulador3+" "+parent._stime}));
 if (true) break;

case 25:
//C
this.state = 26;
 //BA.debugLineNum = 888;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;
;
 //BA.debugLineNum = 891;BA.debugLine="f.Close";
parent._f.Close();
 //BA.debugLineNum = 892;BA.debugLine="a.Close";
parent._a.Close();
 //BA.debugLineNum = 893;BA.debugLine="Log(\"Processed item \" & i)";
parent.__c.LogImpl("82687034","Processed item "+BA.NumberToString(_i),0);
 if (true) break;
if (true) break;

case 28:
//C
this.state = 31;
;
 //BA.debugLineNum = 895;BA.debugLine="Log(\"Finished processing all items\")";
parent.__c.LogImpl("82687036","Finished processing all items",0);
 //BA.debugLineNum = 896;BA.debugLine="P_CIEGO.Visible = False";
parent._p_ciego.setVisible(parent.__c.False);
 //BA.debugLineNum = 897;BA.debugLine="et_buspc.Text = \"\"";
parent._et_buspc.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 898;BA.debugLine="CLV_PICK_CIEGO.Clear";
parent._clv_pick_ciego._clear();
 //BA.debugLineNum = 899;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT PC_ID_PROD,";
parent._c = (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")));
 //BA.debugLineNum = 910;BA.debugLine="c.close";
parent._c.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;
;
 //BA.debugLineNum = 915;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public void  _msgbox_result(int _resultado) throws Exception{
}
public void  _b4xpage_appear() throws Exception{
ResumableSub_B4XPage_Appear rsub = new ResumableSub_B4XPage_Appear(this);
rsub.resume(ba, null);
}
public static class ResumableSub_B4XPage_Appear extends BA.ResumableSub {
public ResumableSub_B4XPage_Appear(reparto_intmex.keymon.lat.b4xmainpage parent) {
this.parent = parent;
}
reparto_intmex.keymon.lat.b4xmainpage parent;
String _permission = "";
boolean _result = false;

@Override
public void resume(BA ba, Object[] result) throws Exception{

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

case 0:
//C
this.state = 1;
 //BA.debugLineNum = 228;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;
 //BA.debugLineNum = 229;BA.debugLine="muestraProgreso(\"Descargando actualización\")";
parent._muestraprogreso("Descargando actualización");
 //BA.debugLineNum = 230;BA.debugLine="Starter.muestraProgreso = 0";
parent._starter._muestraprogreso /*String*/  = BA.NumberToString(0);
 if (true) break;

case 4:
//C
this.state = 5;
;
 //BA.debugLineNum = 232;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)";
parent._subs._centrapanel /*String*/ (ba,parent._p_principal,parent._root.getWidth());
 //BA.debugLineNum = 233;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);
 //BA.debugLineNum = 235;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
parent.__c.WaitFor("b4xpage_permissionresult", ba, this, null);
this.state = 21;
return;
case 21:
//C
this.state = 5;
_permission = (String) result[0];
_result = (Boolean) result[1];
;
 //BA.debugLineNum = 236;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;
 //BA.debugLineNum = 237;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;
 //BA.debugLineNum = 240;BA.debugLine="ToastMessageShow(\"No permission\", True)";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("No permission"),parent.__c.True);
 //BA.debugLineNum = 241;BA.debugLine="Log(\"Sin permisos\")";
parent.__c.LogImpl("81376270","Sin permisos",0);
 if (true) break;

case 16:
//C
this.state = 17;
;
 //BA.debugLineNum = 244;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu";
parent._c = (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")));
 //BA.debugLineNum = 245;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

case 17:
//if
this.state = 20;
if (parent._c.getRowCount()>0) { 
this.state = 19;
}if (true) break;

case 19:
//C
this.state = 20;
 //BA.debugLineNum = 248;BA.debugLine="c.Position=0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 249;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
parent._usuario = parent._c.GetString("USUARIO");
 if (true) break;

case 20:
//C
this.state = -1;
;
 //BA.debugLineNum = 251;BA.debugLine="c.Close";
parent._c.Close();
 //BA.debugLineNum = 257;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public void  _b4xpage_permissionresult(String _permission,boolean _result) throws Exception{
}
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper  _b4xpage_closerequest() throws Exception{
ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this);
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) {
this.parent = parent;
}
reparto_intmex.keymon.lat.b4xmainpage parent;

@Override
public void resume(BA ba, Object[] result) throws Exception{

    while (true) {
        switch (state) {
            case -1:
{
parent.__c.ReturnFromResumableSub(this,null);return;}
case 0:
//C
this.state = 1;
 //BA.debugLineNum = 546;BA.debugLine="If p_appUpdate.Visible Then";
if (true) break;

case 1:
//if
this.state = 6;
if (parent._p_appupdate.getVisible()) { 
this.state = 3;
}else {
this.state = 5;
}if (true) break;

case 3:
//C
this.state = 6;
 //BA.debugLineNum = 547;BA.debugLine="p_appUpdate.Visible = False";
parent._p_appupdate.setVisible(parent.__c.False);
 if (true) break;

case 5:
//C
this.state = 6;
 //BA.debugLineNum = 549;BA.debugLine="Sleep(0)";
parent.__c.Sleep(ba,this,(int) (0));
this.state = 7;
return;
case 7:
//C
this.state = 6;
;
 //BA.debugLineNum = 550;BA.debugLine="ExitApplication";
parent.__c.ExitApplication();
 if (true) break;

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

            }
        }
    }
}
public String  _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
 //BA.debugLineNum = 109;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
 //BA.debugLineNum = 110;BA.debugLine="Root = Root1";
_root = _root1;
 //BA.debugLineNum = 111;BA.debugLine="B4XPages.GetManager.LogEvents = True";
_b4xpages._getmanager /*reparto_intmex.keymon.lat.b4xpagesmanager*/ (ba)._logevents /*boolean*/  = __c.True;
 //BA.debugLineNum = 112;BA.debugLine="Root.LoadLayout(\"login\")";
_root.LoadLayout("login",ba);
 //BA.debugLineNum = 113;BA.debugLine="B4XPages.SetTitle(Me, \"Intmex Reparto\")";
_b4xpages._settitle /*String*/ (ba,this,(Object)("Intmex Reparto"));
 //BA.debugLineNum = 114;BA.debugLine="login.Initialize";
_login._initialize /*String*/ (ba);
 //BA.debugLineNum = 115;BA.debugLine="B4XPages.AddPage(\"Login\", login)";
_b4xpages._addpage /*String*/ (ba,"Login",(Object)(_login));
 //BA.debugLineNum = 116;BA.debugLine="principal.Initialize";
_principal._initialize /*Object*/ (ba);
 //BA.debugLineNum = 117;BA.debugLine="B4XPages.AddPage(\"Principal\", principal)";
_b4xpages._addpage /*String*/ (ba,"Principal",(Object)(_principal));
 //BA.debugLineNum = 118;BA.debugLine="clientes.Initialize";
_clientes._initialize /*Object*/ (ba);
 //BA.debugLineNum = 119;BA.debugLine="B4XPages.AddPage(\"Clientes\", clientes)";
_b4xpages._addpage /*String*/ (ba,"Clientes",(Object)(_clientes));
 //BA.debugLineNum = 120;BA.debugLine="cliente.Initialize";
_cliente._initialize /*Object*/ (ba);
 //BA.debugLineNum = 121;BA.debugLine="B4XPages.AddPage(\"Cliente\", cliente)";
_b4xpages._addpage /*String*/ (ba,"Cliente",(Object)(_cliente));
 //BA.debugLineNum = 124;BA.debugLine="productos.Initialize";
_productos._initialize /*Object*/ (ba);
 //BA.debugLineNum = 125;BA.debugLine="B4XPages.AddPage(\"Productos\", productos)";
_b4xpages._addpage /*String*/ (ba,"Productos",(Object)(_productos));
 //BA.debugLineNum = 126;BA.debugLine="updateAvailable.Initialize";
_updateavailable._initialize /*Object*/ (ba);
 //BA.debugLineNum = 127;BA.debugLine="B4XPages.AddPage(\"updateAvailable\", updateAvailab";
_b4xpages._addpage /*String*/ (ba,"updateAvailable",(Object)(_updateavailable));
 //BA.debugLineNum = 128;BA.debugLine="mapas.Initialize";
_mapas._initialize /*Object*/ (ba);
 //BA.debugLineNum = 129;BA.debugLine="B4XPages.AddPage(\"Mapas\", mapas)";
_b4xpages._addpage /*String*/ (ba,"Mapas",(Object)(_mapas));
 //BA.debugLineNum = 130;BA.debugLine="nuevoCliente.Initialize";
_nuevocliente._initialize /*Object*/ (ba);
 //BA.debugLineNum = 131;BA.debugLine="B4XPages.AddPage(\"NuevoCliente\", nuevoCliente)";
_b4xpages._addpage /*String*/ (ba,"NuevoCliente",(Object)(_nuevocliente));
 //BA.debugLineNum = 132;BA.debugLine="ticketsDia.Initialize";
_ticketsdia._initialize /*Object*/ (ba);
 //BA.debugLineNum = 133;BA.debugLine="B4XPages.AddPage(\"TicketsDia\", ticketsDia)";
_b4xpages._addpage /*String*/ (ba,"TicketsDia",(Object)(_ticketsdia));
 //BA.debugLineNum = 134;BA.debugLine="noVenta.Initialize";
_noventa._initialize /*Object*/ (ba);
 //BA.debugLineNum = 135;BA.debugLine="B4XPages.AddPage(\"NoVenta\", noVenta)";
_b4xpages._addpage /*String*/ (ba,"NoVenta",(Object)(_noventa));
 //BA.debugLineNum = 136;BA.debugLine="pedidos.Initialize";
_pedidos._initialize /*Object*/ (ba);
 //BA.debugLineNum = 137;BA.debugLine="B4XPages.AddPage(\"Pedidos\", pedidos)";
_b4xpages._addpage /*String*/ (ba,"Pedidos",(Object)(_pedidos));
 //BA.debugLineNum = 138;BA.debugLine="buscar.Initialize";
_buscar._initialize /*Object*/ (ba);
 //BA.debugLineNum = 139;BA.debugLine="B4XPages.AddPage(\"Buscar\", buscar)";
_b4xpages._addpage /*String*/ (ba,"Buscar",(Object)(_buscar));
 //BA.debugLineNum = 142;BA.debugLine="detalleVenta.Initialize";
_detalleventa._initialize /*Object*/ (ba);
 //BA.debugLineNum = 143;BA.debugLine="B4XPages.AddPage(\"DetalleVenta\", detalleVenta)";
_b4xpages._addpage /*String*/ (ba,"DetalleVenta",(Object)(_detalleventa));
 //BA.debugLineNum = 144;BA.debugLine="detalle_promo.Initialize";
_detalle_promo._initialize /*Object*/ (ba);
 //BA.debugLineNum = 145;BA.debugLine="B4XPages.AddPage(\"Detalle_Promo\", detalle_promo)";
_b4xpages._addpage /*String*/ (ba,"Detalle_Promo",(Object)(_detalle_promo));
 //BA.debugLineNum = 146;BA.debugLine="tabulador.Initialize";
_tabulador._initialize /*Object*/ (ba);
 //BA.debugLineNum = 147;BA.debugLine="B4XPages.AddPage(\"tabulador\", tabulador)";
_b4xpages._addpage /*String*/ (ba,"tabulador",(Object)(_tabulador));
 //BA.debugLineNum = 148;BA.debugLine="checklist.Initialize";
_checklist._initialize /*Object*/ (ba);
 //BA.debugLineNum = 149;BA.debugLine="B4XPages.AddPage(\"checklist\",checklist)";
_b4xpages._addpage /*String*/ (ba,"checklist",(Object)(_checklist));
 //BA.debugLineNum = 150;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)");
 //BA.debugLineNum = 151;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD3\", \"CAT_DP_CONVE";
_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD3","CAT_DP_CONVERSION1","TEXT");
 //BA.debugLineNum = 152;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD3\", \"CAT_DP_PRECI";
_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD3","CAT_DP_PRECIO4","TEXT");
 //BA.debugLineNum = 153;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD3\", \"CAT_DP_CANT_";
_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD3","CAT_DP_CANT_MIN_VENTA","TEXT");
 //BA.debugLineNum = 154;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)");
 //BA.debugLineNum = 155;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)");
 //BA.debugLineNum = 156;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)");
 //BA.debugLineNum = 157;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)");
 //BA.debugLineNum = 158;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)");
 //BA.debugLineNum = 159;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)");
 //BA.debugLineNum = 160;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)");
 //BA.debugLineNum = 162;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)");
 //BA.debugLineNum = 163;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)");
 //BA.debugLineNum = 164;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)");
 //BA.debugLineNum = 166;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)");
 //BA.debugLineNum = 167;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)");
 //BA.debugLineNum = 169;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)");
 //BA.debugLineNum = 170;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)");
 //BA.debugLineNum = 171;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_PRODREGISTRO\",";
_subs._agregacolumna /*String*/ (ba,"REPARTO","REP_PRODREGISTRO","TEXT");
 //BA.debugLineNum = 172;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"TIPO_PAGO\",\"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"ABONOS","TIPO_PAGO","TEXT");
 //BA.debugLineNum = 173;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"CONSECUTIVO\",\"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"ABONOS","CONSECUTIVO","TEXT");
 //BA.debugLineNum = 174;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"NUM_TICKET\",\"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"ABONOS","NUM_TICKET","TEXT");
 //BA.debugLineNum = 175;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"RUTA_REP\",\"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"ABONOS","RUTA_REP","TEXT");
 //BA.debugLineNum = 176;BA.debugLine="Subs.agregaColumna(\"NOVENTA\", \"NV_RUTA\", \"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"NOVENTA","NV_RUTA","TEXT");
 //BA.debugLineNum = 177;BA.debugLine="Subs.agregaColumna(\"kmt_info\", \"SECUENCIA\", \"INT\"";
_subs._agregacolumna /*String*/ (ba,"kmt_info","SECUENCIA","INT");
 //BA.debugLineNum = 178;BA.debugLine="Subs.agregaColumna(\"kmt_info\", \"HORAENT\", \"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"kmt_info","HORAENT","TEXT");
 //BA.debugLineNum = 179;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_PRODID\", \"TEXT";
_subs._agregacolumna /*String*/ (ba,"REPARTO","REP_PRODID","TEXT");
 //BA.debugLineNum = 180;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_CLIENTEOR\", \"TEX";
_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_CLIENTEOR","TEXT");
 //BA.debugLineNum = 181;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_CAJAS\", \"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_CAJAS","TEXT");
 //BA.debugLineNum = 182;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_REGALO\", \"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_REGALO","TEXT");
 //BA.debugLineNum = 183;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_BCAJAS\", \"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_BCAJAS","TEXT");
 //BA.debugLineNum = 184;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"CONSECUTIVO\", \"TEXT";
_subs._agregacolumna /*String*/ (ba,"PEDIDO","CONSECUTIVO","TEXT");
 //BA.debugLineNum = 185;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"FECHA_PREV\", \"TEXT\"";
_subs._agregacolumna /*String*/ (ba,"PEDIDO","FECHA_PREV","TEXT");
 //BA.debugLineNum = 186;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"RUTA_REP\", \"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"PEDIDO","RUTA_REP","TEXT");
 //BA.debugLineNum = 187;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_CLI_ORIG\", \"TE";
_subs._agregacolumna /*String*/ (ba,"REPARTO","REP_CLI_ORIG","TEXT");
 //BA.debugLineNum = 188;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_PRECIO\", \"TEXT";
_subs._agregacolumna /*String*/ (ba,"REPARTO","REP_PRECIO","TEXT");
 //BA.debugLineNum = 189;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_RECHAZO\", \"INT";
_subs._agregacolumna /*String*/ (ba,"REPARTO","REP_RECHAZO","INTEGER");
 //BA.debugLineNum = 190;BA.debugLine="Subs.agregaColumna(\"RECHAZOS\", \"R_PRECIO\", \"TEXT\"";
_subs._agregacolumna /*String*/ (ba,"RECHAZOS","R_PRECIO","TEXT");
 //BA.debugLineNum = 191;BA.debugLine="Subs.agregaColumna(\"VENTAS\", \"V_PRECIO\", \"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"VENTAS","V_PRECIO","TEXT");
 //BA.debugLineNum = 192;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"PLACA\",\"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","PLACA","TEXT");
 //BA.debugLineNum = 193;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"HVD_RECHAZOCANT";
_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","HVD_RECHAZOCANT","TEXT");
 //BA.debugLineNum = 194;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"CONSECUTIVO\",\"T";
_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","CONSECUTIVO","TEXT");
 //BA.debugLineNum = 195;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"HVD_RECHAZOCANT";
_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","HVD_RECHAZOCANT","TEXT");
 //BA.debugLineNum = 196;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"ESPROMO\",\"TEXT\"";
_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","ESPROMO","TEXT");
 //BA.debugLineNum = 197;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"HVD_RECHAZOCANT";
_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","HVD_RECHAZOCANTC","TEXT");
 //BA.debugLineNum = 198;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"BCAJAS\",\"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","BCAJAS","TEXT");
 //BA.debugLineNum = 199;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"CANTC\",\"TEXT\")";
_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","CANTC","TEXT");
 //BA.debugLineNum = 200;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"BCAJAS_OR\",\"TEX";
_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","BCAJAS_OR","TEXT");
 //BA.debugLineNum = 201;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"CANTC_OR\",\"TEXT";
_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","CANTC_OR","TEXT");
 //BA.debugLineNum = 202;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\",\"CONVERSION\",\"T";
_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CONVERSION","TEXT");
 //BA.debugLineNum = 203;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\",\"PRECIOCONVER\",";
_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","PRECIOCONVER","TEXT");
 //BA.debugLineNum = 204;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)");
 //BA.debugLineNum = 205;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)");
 //BA.debugLineNum = 206;BA.debugLine="Dim server As String = \"http://keymon.net:1781\"";
_server = "http://keymon.net:1781";
 //BA.debugLineNum = 212;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve";
_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
 //BA.debugLineNum = 213;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.server";
__c.LogImpl("81310824",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red);
 //BA.debugLineNum = 214;BA.debugLine="Label1.Text = Application.VersionName";
_label1.setText(BA.ObjectToCharSequence(__c.Application.getVersionName()));
 //BA.debugLineNum = 216;BA.debugLine="Log(\"provider\")";
__c.LogImpl("81310827","provider",0);
 //BA.debugLineNum = 217;BA.debugLine="Provider.Initialize";
_provider._initialize /*String*/ (ba);
 //BA.debugLineNum = 225;BA.debugLine="End Sub";
return "";
}
public String  _class_globals() throws Exception{
 //BA.debugLineNum = 18;BA.debugLine="Sub Class_Globals";
 //BA.debugLineNum = 19;BA.debugLine="Dim rp As RuntimePermissions";
_rp = new anywheresoftware.b4a.objects.RuntimePermissions();
 //BA.debugLineNum = 20;BA.debugLine="Private Root As B4XView";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
 //BA.debugLineNum = 21;BA.debugLine="Private xui As XUI";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
 //BA.debugLineNum = 22;BA.debugLine="Private Root As B4XView";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
 //BA.debugLineNum = 23;BA.debugLine="Public rp As RuntimePermissions";
_rp = new anywheresoftware.b4a.objects.RuntimePermissions();
 //BA.debugLineNum = 24;BA.debugLine="Public login As B4XMainPage";
_login = new reparto_intmex.keymon.lat.b4xmainpage();
 //BA.debugLineNum = 25;BA.debugLine="Public principal As C_Principal";
_principal = new reparto_intmex.keymon.lat.c_principal();
 //BA.debugLineNum = 26;BA.debugLine="Public clientes As C_Clientes";
_clientes = new reparto_intmex.keymon.lat.c_clientes();
 //BA.debugLineNum = 27;BA.debugLine="Public cliente As C_Cliente";
_cliente = new reparto_intmex.keymon.lat.c_cliente();
 //BA.debugLineNum = 29;BA.debugLine="Public productos As C_Productos";
_productos = new reparto_intmex.keymon.lat.c_productos();
 //BA.debugLineNum = 30;BA.debugLine="Public updateAvailable As C_UpdateAvailable";
_updateavailable = new reparto_intmex.keymon.lat.c_updateavailable();
 //BA.debugLineNum = 31;BA.debugLine="Public mapas As C_Mapas";
_mapas = new reparto_intmex.keymon.lat.c_mapas();
 //BA.debugLineNum = 32;BA.debugLine="Public nuevoCliente As C_NuevoCliente";
_nuevocliente = new reparto_intmex.keymon.lat.c_nuevocliente();
 //BA.debugLineNum = 33;BA.debugLine="Public ticketsDia As C_TicketsDia";
_ticketsdia = new reparto_intmex.keymon.lat.c_ticketsdia();
 //BA.debugLineNum = 34;BA.debugLine="Public noVenta As C_NoVenta";
_noventa = new reparto_intmex.keymon.lat.c_noventa();
 //BA.debugLineNum = 35;BA.debugLine="Public pedidos As C_Pedidos";
_pedidos = new reparto_intmex.keymon.lat.c_pedidos();
 //BA.debugLineNum = 36;BA.debugLine="Public buscar As C_Buscar";
_buscar = new reparto_intmex.keymon.lat.c_buscar();
 //BA.debugLineNum = 38;BA.debugLine="Public detalleVenta As C_DetalleVenta";
_detalleventa = new reparto_intmex.keymon.lat.c_detalleventa();
 //BA.debugLineNum = 39;BA.debugLine="Public detalle_promo As C_Detalle_Promo";
_detalle_promo = new reparto_intmex.keymon.lat.c_detalle_promo();
 //BA.debugLineNum = 40;BA.debugLine="Dim reqManager As DBRequestManager";
_reqmanager = new reparto_intmex.keymon.lat.dbrequestmanager();
 //BA.debugLineNum = 42;BA.debugLine="Dim usuario As String";
_usuario = "";
 //BA.debugLineNum = 43;BA.debugLine="Dim logger As Boolean = True";
_logger = __c.True;
 //BA.debugLineNum = 44;BA.debugLine="Dim lat_gps, lon_gps As String";
_lat_gps = "";
_lon_gps = "";
 //BA.debugLineNum = 46;BA.debugLine="Dim usuario As String";
_usuario = "";
 //BA.debugLineNum = 47;BA.debugLine="Dim server As String";
_server = "";
 //BA.debugLineNum = 48;BA.debugLine="Dim montoActual, clientesTotal, clientesVenta, cl";
_montoactual = "";
_clientestotal = "";
_clientesventa = "";
_clientesrechazo = "";
_clientesvisitados = "";
_almacen = "";
_rutapreventa = "";
_cantidadprod = "";
 //BA.debugLineNum = 49;BA.debugLine="Dim ultimaActualizacionGPS As String = 235959";
_ultimaactualizaciongps = BA.NumberToString(235959);
 //BA.debugLineNum = 50;BA.debugLine="Dim fechaRuta As String";
_fecharuta = "";
 //BA.debugLineNum = 53;BA.debugLine="Dim srvIp As String";
_srvip = "";
 //BA.debugLineNum = 54;BA.debugLine="Dim phn As Phone";
_phn = new anywheresoftware.b4a.phone.Phone();
 //BA.debugLineNum = 55;BA.debugLine="Dim user As EditText";
_user = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 56;BA.debugLine="Dim pass As EditText";
_pass = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 57;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
 //BA.debugLineNum = 58;BA.debugLine="Dim existe As String";
_existe = "";
 //BA.debugLineNum = 59;BA.debugLine="Dim paso1 As String";
_paso1 = "";
 //BA.debugLineNum = 60;BA.debugLine="Private IMEN As Label";
_imen = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 61;BA.debugLine="Dim IMEI As String";
_imei = "";
 //BA.debugLineNum = 62;BA.debugLine="Private Label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 63;BA.debugLine="Dim server As String";
_server = "";
 //BA.debugLineNum = 64;BA.debugLine="Private p_principal As Panel";
_p_principal = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 65;BA.debugLine="Private Entrar As Button";
_entrar = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 66;BA.debugLine="Public checklist As C_Cheklist";
_checklist = new reparto_intmex.keymon.lat.c_cheklist();
 //BA.debugLineNum = 67;BA.debugLine="Public tabulador As C_tabulador";
_tabulador = new reparto_intmex.keymon.lat.c_tabulador();
 //BA.debugLineNum = 68;BA.debugLine="Dim batt As Int";
_batt = 0;
 //BA.debugLineNum = 69;BA.debugLine="Dim porVisitar, entregas, rechazos, montoEntregad";
_porvisitar = "";
_entregas = "";
_rechazos = "";
_montoentregado = "";
_montorechazado = "";
 //BA.debugLineNum = 70;BA.debugLine="Private p_appUpdate As Panel";
_p_appupdate = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 71;BA.debugLine="Private i_engrane As ImageView";
_i_engrane = new anywheresoftware.b4a.objects.ImageViewWrapper();
 //BA.debugLineNum = 72;BA.debugLine="Private b_server As Button";
_b_server = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 73;BA.debugLine="Private b_apk As Button";
_b_apk = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 74;BA.debugLine="Private b_envioBD As Button";
_b_enviobd = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 75;BA.debugLine="Private b_regesar As Button";
_b_regesar = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 76;BA.debugLine="Private et_server As EditText";
_et_server = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 77;BA.debugLine="Private p_serverList As Panel";
_p_serverlist = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 78;BA.debugLine="Private lv_server As ListView";
_lv_server = new anywheresoftware.b4a.objects.ListViewWrapper();
 //BA.debugLineNum = 79;BA.debugLine="Public Provider As FileProvider";
_provider = new reparto_intmex.keymon.lat.fileprovider();
 //BA.debugLineNum = 80;BA.debugLine="Public rutaBDBackup As String = \"\"";
_rutabdbackup = "";
 //BA.debugLineNum = 81;BA.debugLine="Private B_Can_Monto As Button";
_b_can_monto = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 82;BA.debugLine="Private B_Aceptar_Monto As Button";
_b_aceptar_monto = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 83;BA.debugLine="Private ET_Add_Monto As EditText";
_et_add_monto = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 84;BA.debugLine="Private p_add_monto As Panel";
_p_add_monto = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 85;BA.debugLine="Dim sDate, sTime As String";
_sdate = "";
_stime = "";
 //BA.debugLineNum = 86;BA.debugLine="Private p_validacion As Panel";
_p_validacion = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 87;BA.debugLine="Private b_cancelarcodigo As Button";
_b_cancelarcodigo = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 88;BA.debugLine="Private b_aceptar As Button";
_b_aceptar = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 89;BA.debugLine="Private et_codigo As EditText";
_et_codigo = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 90;BA.debugLine="Private P_CIEGO As Panel";
_p_ciego = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 91;BA.debugLine="Private b_terpc As Button";
_b_terpc = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 92;BA.debugLine="Private B_PC_ENV As Button";
_b_pc_env = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 93;BA.debugLine="Private CLV_PICK_CIEGO As CustomListView";
_clv_pick_ciego = new b4a.example3.customlistview();
 //BA.debugLineNum = 94;BA.debugLine="Private et_buspc As EditText";
_et_buspc = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 95;BA.debugLine="Dim q_buscar As String";
_q_buscar = "";
 //BA.debugLineNum = 96;BA.debugLine="Dim d As Cursor";
_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
 //BA.debugLineNum = 97;BA.debugLine="Private L_PICK_CIEGO As Label";
_l_pick_ciego = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 98;BA.debugLine="Private ET_PICK_CIEGO As EditText";
_et_pick_ciego = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 99;BA.debugLine="Dim a As Cursor";
_a = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
 //BA.debugLineNum = 100;BA.debugLine="Dim f As Cursor";
_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
 //BA.debugLineNum = 101;BA.debugLine="Private b_abono As Button";
_b_abono = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 102;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.objects.PanelWrapper  _createlistitem(String _id_prod,String _prod,String _cant) throws Exception{
anywheresoftware.b4a.objects.B4XViewWrapper _pa = null;
 //BA.debugLineNum = 973;BA.debugLine="Sub CreateListItem(Id_prod As String, Prod As Stri";
 //BA.debugLineNum = 974;BA.debugLine="Dim pa As B4XView = xui.CreatePanel(\"\")";
_pa = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pa = _xui.CreatePanel(ba,"");
 //BA.debugLineNum = 975;BA.debugLine="pa.SetLayoutAnimated(0, 0, 0, 1, 10)";
_pa.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (1),(int) (10));
 //BA.debugLineNum = 976;BA.debugLine="pa.LoadLayout(\"PANEL_PICK_CIEGO\")";
_pa.LoadLayout("PANEL_PICK_CIEGO",ba);
 //BA.debugLineNum = 977;BA.debugLine="pa.Height = 55dip";
_pa.setHeight(__c.DipToCurrent((int) (55)));
 //BA.debugLineNum = 978;BA.debugLine="pa.Width = 298dip";
_pa.setWidth(__c.DipToCurrent((int) (298)));
 //BA.debugLineNum = 980;BA.debugLine="L_PICK_CIEGO.Text = Id_prod &  CRLF & Prod";
_l_pick_ciego.setText(BA.ObjectToCharSequence(_id_prod+__c.CRLF+_prod));
 //BA.debugLineNum = 981;BA.debugLine="L_PICK_CIEGO.TextSize = 12";
_l_pick_ciego.setTextSize((float) (12));
 //BA.debugLineNum = 982;BA.debugLine="L_PICK_CIEGO.Gravity = Bit.Or(Gravity.CENTER_VERT";
_l_pick_ciego.setGravity(__c.Bit.Or(__c.Gravity.CENTER_VERTICAL,__c.Gravity.CENTER_HORIZONTAL));
 //BA.debugLineNum = 983;BA.debugLine="ET_PICK_CIEGO.Text = cant";
_et_pick_ciego.setText(BA.ObjectToCharSequence(_cant));
 //BA.debugLineNum = 986;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()));
 //BA.debugLineNum = 987;BA.debugLine="End Sub";
return null;
}
public anywheresoftware.b4a.objects.PanelWrapper  _createlistitem2(String _id_prod,String _prod) throws Exception{
anywheresoftware.b4a.objects.B4XViewWrapper _pa = null;
 //BA.debugLineNum = 989;BA.debugLine="Sub CreateListItem2(Id_prod As String, Prod As Str";
 //BA.debugLineNum = 990;BA.debugLine="Dim pa As B4XView = xui.CreatePanel(\"\")";
_pa = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pa = _xui.CreatePanel(ba,"");
 //BA.debugLineNum = 991;BA.debugLine="pa.SetLayoutAnimated(0, 0, 0, 1, 10)";
_pa.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (1),(int) (10));
 //BA.debugLineNum = 992;BA.debugLine="pa.LoadLayout(\"PANEL_PICK_CIEGO\")";
_pa.LoadLayout("PANEL_PICK_CIEGO",ba);
 //BA.debugLineNum = 993;BA.debugLine="pa.Height = 55dip";
_pa.setHeight(__c.DipToCurrent((int) (55)));
 //BA.debugLineNum = 994;BA.debugLine="pa.Width = 298dip";
_pa.setWidth(__c.DipToCurrent((int) (298)));
 //BA.debugLineNum = 996;BA.debugLine="L_PICK_CIEGO.Text = Id_prod &  CRLF & Prod";
_l_pick_ciego.setText(BA.ObjectToCharSequence(_id_prod+__c.CRLF+_prod));
 //BA.debugLineNum = 997;BA.debugLine="L_PICK_CIEGO.TextSize = 12";
_l_pick_ciego.setTextSize((float) (12));
 //BA.debugLineNum = 998;BA.debugLine="L_PICK_CIEGO.Gravity = Bit.Or(Gravity.CENTER_VERT";
_l_pick_ciego.setGravity(__c.Bit.Or(__c.Gravity.CENTER_VERTICAL,__c.Gravity.CENTER_HORIZONTAL));
 //BA.debugLineNum = 1001;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()));
 //BA.debugLineNum = 1002;BA.debugLine="End Sub";
return null;
}
public String  _entrar_click() throws Exception{
reparto_intmex.keymon.lat.dbrequestmanager._dbcommand _cmd = null;
 //BA.debugLineNum = 261;BA.debugLine="Sub Entrar_Click";
 //BA.debugLineNum = 262;BA.debugLine="If pass.Text = \"YA\" Then";
if ((_pass.getText()).equals("YA")) { 
 //BA.debugLineNum = 263;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from usuarioa\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from usuarioa");
 //BA.debugLineNum = 264;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from VERSION\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION");
 //BA.debugLineNum = 265;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")}));
 //BA.debugLineNum = 266;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_almac";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_almacen");
 //BA.debugLineNum = 267;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)(_user.getText())}));
 //BA.debugLineNum = 268;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")}));
 //BA.debugLineNum = 271;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
 }else {
 //BA.debugLineNum = 273;BA.debugLine="c=Starter.skmt.ExecQuery2(\"select count(*) as EX";
_c = (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[]{_user.getText()})));
 //BA.debugLineNum = 274;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 275;BA.debugLine="existe = c.GetString(\"EXISTE1\")";
_existe = _c.GetString("EXISTE1");
 //BA.debugLineNum = 276;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 278;BA.debugLine="If existe = 0 Then";
if ((_existe).equals(BA.NumberToString(0))) { 
 //BA.debugLineNum = 280;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_intmex.keymon.lat.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 281;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 282;BA.debugLine="cmd.Name = \"select_usuario_INTMEX_REPG\"";
_cmd.Name /*String*/  = "select_usuario_INTMEX_REPG";
 //BA.debugLineNum = 283;BA.debugLine="cmd.Parameters = Array As Object(user.Text, pas";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_user.getText()),(Object)(_pass.getText())};
 //BA.debugLineNum = 284;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"usuario\")";
_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("usuario"));
 //BA.debugLineNum = 286;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_intmex.keymon.lat.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 287;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 288;BA.debugLine="cmd.Name = \"select_version_INTMEX\"";
_cmd.Name /*String*/  = "select_version_INTMEX";
 //BA.debugLineNum = 289;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"version\")";
_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("version"));
 }else {
 //BA.debugLineNum = 292;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
 };
 };
 //BA.debugLineNum = 295;BA.debugLine="End Sub";
return "";
}
public String  _enviarmonto() throws Exception{
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;
 //BA.debugLineNum = 653;BA.debugLine="Sub enviarmonto";
 //BA.debugLineNum = 655;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
 //BA.debugLineNum = 656;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
 //BA.debugLineNum = 657;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
 //BA.debugLineNum = 659;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")));
 //BA.debugLineNum = 660;BA.debugLine="f.Position=0";
_f.setPosition((int) (0));
 //BA.debugLineNum = 662;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")));
 //BA.debugLineNum = 663;BA.debugLine="If a.RowCount>0 Then";
if (_a.getRowCount()>0) { 
 //BA.debugLineNum = 664;BA.debugLine="a.Position=0";
_a.setPosition((int) (0));
 };
 //BA.debugLineNum = 667;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")));
 //BA.debugLineNum = 668;BA.debugLine="If a2.RowCount>0 Then";
if (_a2.getRowCount()>0) { 
 //BA.debugLineNum = 669;BA.debugLine="a2.Position=0";
_a2.setPosition((int) (0));
 //BA.debugLineNum = 670;BA.debugLine="Dim fecha() As String = Regex.Split(\" \", a2.GetS";
_fecha = __c.Regex.Split(" ",_a2.GetString("HVD_FECHA"));
 //BA.debugLineNum = 671;BA.debugLine="Dim fecha2() As String = Regex.Split(\"-\", fecha(";
_fecha2 = __c.Regex.Split("-",_fecha[(int) (0)]);
 //BA.debugLineNum = 672;BA.debugLine="Dim fecha3 As String = fecha2(2)&\"/\"&fecha2(1)&\"";
_fecha3 = _fecha2[(int) (2)]+"/"+_fecha2[(int) (1)]+"/"+_fecha2[(int) (0)];
 //BA.debugLineNum = 673;BA.debugLine="Log(fecha3)";
__c.LogImpl("82359316",_fecha3,0);
 //BA.debugLineNum = 674;BA.debugLine="Dim hora() As String = Regex.Split(\"\\.\", fecha(1";
_hora = __c.Regex.Split("\\.",_fecha[(int) (1)]);
 //BA.debugLineNum = 675;BA.debugLine="Log(hora(0))";
__c.LogImpl("82359318",_hora[(int) (0)],0);
 };
 //BA.debugLineNum = 680;BA.debugLine="Private cI As Cursor";
_ci = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
 //BA.debugLineNum = 681;BA.debugLine="Private u As String = \"SinUsuario\"";
_u = "SinUsuario";
 //BA.debugLineNum = 682;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")));
 //BA.debugLineNum = 683;BA.debugLine="cI.Position=0";
_ci.setPosition((int) (0));
 //BA.debugLineNum = 684;BA.debugLine="If cI.RowCount > 0 Then u = cI.GetString(\"USUARIO";
if (_ci.getRowCount()>0) { 
_u = _ci.GetString("USUARIO");};
 //BA.debugLineNum = 685;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")));
 //BA.debugLineNum = 718;BA.debugLine="p_add_monto.Visible = False";
_p_add_monto.setVisible(__c.False);
 //BA.debugLineNum = 720;BA.debugLine="End Sub";
return "";
}
public String  _et_buspc_textchanged(String _old,String _new) throws Exception{
int _i = 0;
 //BA.debugLineNum = 735;BA.debugLine="Private Sub et_buspc_TextChanged (Old As String, N";
 //BA.debugLineNum = 736;BA.debugLine="If New = \"\" Then";
if ((_new).equals("")) { 
 //BA.debugLineNum = 737;BA.debugLine="CLV_PICK_CIEGO.Clear";
_clv_pick_ciego._clear();
 }else if(_new.length()>=3) { 
 //BA.debugLineNum = 739;BA.debugLine="CLV_PICK_CIEGO.Clear";
_clv_pick_ciego._clear();
 //BA.debugLineNum = 741;BA.debugLine="q_buscar = \"%\" & et_buspc.Text & \"%\"";
_q_buscar = "%"+_et_buspc.getText()+"%";
 //BA.debugLineNum = 742;BA.debugLine="Log(q_buscar)";
__c.LogImpl("82555911",_q_buscar,0);
 //BA.debugLineNum = 743;BA.debugLine="c=Starter.skmt.ExecQuery2($\"select CAT_GP_NOMBRE";
_c = (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[]{_q_buscar,_q_buscar})));
 //BA.debugLineNum = 744;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 747;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step9 = 1;
final int limit9 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit9 ;_i = _i + step9 ) {
 //BA.debugLineNum = 748;BA.debugLine="c.Position = i";
_c.setPosition(_i);
 //BA.debugLineNum = 749;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem(c.GetString(";
_clv_pick_ciego._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c.GetString("CAT_GP_ID"),_c.GetString("CAT_GP_NOMBRE"),_c.GetString("PC_CANT")).getObject())),(Object)(_i));
 }
};
 //BA.debugLineNum = 752;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 754;BA.debugLine="d=Starter.skmt.ExecQuery2($\"select CAT_GP_NOMBR";
_d = (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[]{_q_buscar,_q_buscar})));
 //BA.debugLineNum = 756;BA.debugLine="For i = 0 To d.RowCount - 1";
{
final int step15 = 1;
final int limit15 = (int) (_d.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit15 ;_i = _i + step15 ) {
 //BA.debugLineNum = 757;BA.debugLine="d.Position = i";
_d.setPosition(_i);
 //BA.debugLineNum = 758;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem2(d.GetString";
_clv_pick_ciego._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem2(_d.GetString("CAT_GP_ID"),_d.GetString("CAT_GP_NOMBRE")).getObject())),(Object)(_i));
 }
};
 //BA.debugLineNum = 761;BA.debugLine="d.Close";
_d.Close();
 }else if(_c.getRowCount()==0) { 
 //BA.debugLineNum = 764;BA.debugLine="d=Starter.skmt.ExecQuery2($\"select CAT_GP_NOMBR";
_d = (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[]{_q_buscar,_q_buscar})));
 //BA.debugLineNum = 766;BA.debugLine="For i = 0 To d.RowCount - 1";
{
final int step22 = 1;
final int limit22 = (int) (_d.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit22 ;_i = _i + step22 ) {
 //BA.debugLineNum = 767;BA.debugLine="d.Position = i";
_d.setPosition(_i);
 //BA.debugLineNum = 768;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem2(d.GetString";
_clv_pick_ciego._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem2(_d.GetString("CAT_GP_ID"),_d.GetString("CAT_GP_NOMBRE")).getObject())),(Object)(_i));
 }
};
 //BA.debugLineNum = 771;BA.debugLine="d.Close";
_d.Close();
 };
 };
 //BA.debugLineNum = 774;BA.debugLine="End Sub";
return "";
}
public String  _i_engrane_click() throws Exception{
 //BA.debugLineNum = 527;BA.debugLine="Private Sub i_engrane_Click";
 //BA.debugLineNum = 528;BA.debugLine="p_appUpdate.Width = Root.Width";
_p_appupdate.setWidth(_root.getWidth());
 //BA.debugLineNum = 529;BA.debugLine="p_appUpdate.Height = Root.Height";
_p_appupdate.setHeight(_root.getHeight());
 //BA.debugLineNum = 530;BA.debugLine="Subs.centraPanel(p_serverList, Root.Width)";
_subs._centrapanel /*String*/ (ba,_p_serverlist,_root.getWidth());
 //BA.debugLineNum = 531;BA.debugLine="Subs.centraBoton(b_server, Root.Width)";
_subs._centraboton /*String*/ (ba,_b_server,_root.getWidth());
 //BA.debugLineNum = 532;BA.debugLine="Subs.centraBoton(b_apk, Root.Width)";
_subs._centraboton /*String*/ (ba,_b_apk,_root.getWidth());
 //BA.debugLineNum = 533;BA.debugLine="Subs.centraBoton(b_envioBD, Root.Width)";
_subs._centraboton /*String*/ (ba,_b_enviobd,_root.getWidth());
 //BA.debugLineNum = 534;BA.debugLine="Subs.centraBoton(b_regesar, Root.Width)";
_subs._centraboton /*String*/ (ba,_b_regesar,_root.getWidth());
 //BA.debugLineNum = 535;BA.debugLine="Subs.centraBoton(b_server, p_serverList.Width)";
_subs._centraboton /*String*/ (ba,_b_server,_p_serverlist.getWidth());
 //BA.debugLineNum = 536;BA.debugLine="lv_server.Clear";
_lv_server.Clear();
 //BA.debugLineNum = 537;BA.debugLine="lv_server.AddSingleLine(\"http://keymon.lat:1782\")";
_lv_server.AddSingleLine(BA.ObjectToCharSequence("http://keymon.lat:1782"));
 //BA.debugLineNum = 538;BA.debugLine="If user.Text = \"KMTS1\" Then lv_server.AddSingleLi";
if ((_user.getText()).equals("KMTS1")) { 
_lv_server.AddSingleLine(BA.ObjectToCharSequence("http://10.0.0.205:1782"));};
 //BA.debugLineNum = 540;BA.debugLine="et_server.Text = server";
_et_server.setText(BA.ObjectToCharSequence(_server));
 //BA.debugLineNum = 541;BA.debugLine="Subs.panelVisible(p_appUpdate, 0, 0)";
_subs._panelvisible /*String*/ (ba,_p_appupdate,(int) (0),(int) (0));
 //BA.debugLineNum = 542;BA.debugLine="End Sub";
return "";
}
public String  _imageview1_longclick() throws Exception{
 //BA.debugLineNum = 1004;BA.debugLine="Private Sub ImageView1_LongClick";
 //BA.debugLineNum = 1006;BA.debugLine="End Sub";
return "";
}
public String  _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
innerInitialize(_ba);
 //BA.debugLineNum = 104;BA.debugLine="Public Sub Initialize";
 //BA.debugLineNum = 106;BA.debugLine="End Sub";
return "";
}
public String  _jobdone(reparto_intmex.keymon.lat.httpjob _job) throws Exception{
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;
 //BA.debugLineNum = 297;BA.debugLine="Sub JobDone(Job As HttpJob)";
 //BA.debugLineNum = 298;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) { 
 //BA.debugLineNum = 299;BA.debugLine="ToastMessageShow(\"Error: \" & Job.ErrorMessage, T";
__c.ToastMessageShow(BA.ObjectToCharSequence("Error: "+_job._errormessage /*String*/ ),__c.True);
 }else {
 //BA.debugLineNum = 301;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 302;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = _reqmanager._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (_job);
 //BA.debugLineNum = 303;BA.debugLine="If result.Tag = \"version\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("version"))) { 
 //BA.debugLineNum = 304;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));
 //BA.debugLineNum = 305;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from VERSIO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION");
 //BA.debugLineNum = 306;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"))))]);
 //BA.debugLineNum = 307;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)}));
 }
};
 };
 };
 //BA.debugLineNum = 312;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 313;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = _reqmanager._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (_job);
 //BA.debugLineNum = 314;BA.debugLine="If result.Tag = \"agencia\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("agencia"))) { 
 //BA.debugLineNum = 315;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));
 //BA.debugLineNum = 317;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"))))]);
 }
};
 };
 };
 //BA.debugLineNum = 322;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 323;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = _reqmanager._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (_job);
 //BA.debugLineNum = 324;BA.debugLine="If result.Tag = \"coords_almacen\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("coords_almacen"))) { 
 //BA.debugLineNum = 325;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));
 //BA.debugLineNum = 326;BA.debugLine="Log(\"Coordenadas del almacen: \" & records(res";
__c.LogImpl("81507357","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);
 //BA.debugLineNum = 327;BA.debugLine="Private lat, lon As Double";
_lat = 0;
_lon = 0;
 //BA.debugLineNum = 328;BA.debugLine="lat = 0.0";
_lat = 0.0;
 //BA.debugLineNum = 329;BA.debugLine="lon = 0.0";
_lon = 0.0;
 //BA.debugLineNum = 330;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"))))]))) { 
 //BA.debugLineNum = 331;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"))))]));
 //BA.debugLineNum = 332;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"))))]));
 };
 //BA.debugLineNum = 334;BA.debugLine="Starter.cedisLocation.Latitude = lat";
_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLatitude(_lat);
 //BA.debugLineNum = 335;BA.debugLine="Starter.cedisLocation.Longitude = lon";
_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLongitude(_lon);
 //BA.debugLineNum = 336;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")}));
 //BA.debugLineNum = 337;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))}));
 }
};
 };
 };
 //BA.debugLineNum = 343;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 344;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = _reqmanager._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (_job);
 //BA.debugLineNum = 345;BA.debugLine="If result.Tag = \"usuario\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("usuario"))) { 
 //BA.debugLineNum = 346;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));
 //BA.debugLineNum = 347;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"))))]);
 //BA.debugLineNum = 348;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"))))]);
 //BA.debugLineNum = 349;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"))))]);
 }
};
 //BA.debugLineNum = 351;BA.debugLine="paso1 = 1";
_paso1 = BA.NumberToString(1);
 };
 };
 //BA.debugLineNum = 355;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 356;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = _reqmanager._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (_job);
 //BA.debugLineNum = 357;BA.debugLine="If result.Tag = \"contrasena\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("contrasena"))) { 
 //BA.debugLineNum = 358;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));
 //BA.debugLineNum = 359;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"))))]);
 //BA.debugLineNum = 360;BA.debugLine="If CAT_PA_PASS = et_codigo.Text Then";
if ((_cat_pa_pass).equals(_et_codigo.getText())) { 
 //BA.debugLineNum = 361;BA.debugLine="Log(CAT_PA_PASS)";
__c.LogImpl("81507392",_cat_pa_pass,0);
 //BA.debugLineNum = 362;BA.debugLine="p_validacion.Visible = False";
_p_validacion.setVisible(__c.False);
 //BA.debugLineNum = 363;BA.debugLine="et_codigo.Text = \"\"";
_et_codigo.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 365;BA.debugLine="Subs.panelVisible(P_CIEGO,0,0)";
_subs._panelvisible /*String*/ (ba,_p_ciego,(int) (0),(int) (0));
 }else {
 //BA.debugLineNum = 368;BA.debugLine="MsgboxAsync(\"Contraseña incorrecta\",\"Atenció";
__c.MsgboxAsync(BA.ObjectToCharSequence("Contraseña incorrecta"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }
};
 };
 };
 //BA.debugLineNum = 417;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 418;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = _reqmanager._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (_job);
 //BA.debugLineNum = 419;BA.debugLine="If result.Tag = \"estatus\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("estatus"))) { 
 //BA.debugLineNum = 420;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));
 //BA.debugLineNum = 421;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"))))]);
 //BA.debugLineNum = 422;BA.debugLine="If hvd_estatus = \"Liquidado\" Then";
if ((_hvd_estatus).equals("Liquidado")) { 
 //BA.debugLineNum = 424;BA.debugLine="MsgboxAsync(\"La venta ya fue liquidada\",\"Ate";
__c.MsgboxAsync(BA.ObjectToCharSequence("La venta ya fue liquidada"),BA.ObjectToCharSequence("Atención"),ba);
 }else {
 //BA.debugLineNum = 426;BA.debugLine="enviarmonto";
_enviarmonto();
 };
 }
};
 };
 };
 //BA.debugLineNum = 432;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 433;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = _reqmanager._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (_job);
 //BA.debugLineNum = 434;BA.debugLine="If result.Tag = \"estatus2\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("estatus2"))) { 
 //BA.debugLineNum = 435;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));
 //BA.debugLineNum = 436;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"))))]);
 //BA.debugLineNum = 437;BA.debugLine="If hvd_estatus = \"Liquidado\" Then";
if ((_hvd_estatus).equals("Liquidado")) { 
 //BA.debugLineNum = 439;BA.debugLine="MsgboxAsync(\"La venta ya fue liquidada\",\"Ate";
__c.MsgboxAsync(BA.ObjectToCharSequence("La venta ya fue liquidada"),BA.ObjectToCharSequence("Atención"),ba);
 }else {
 //BA.debugLineNum = 441;BA.debugLine="passaquci";
_passaquci();
 };
 }
};
 };
 };
 //BA.debugLineNum = 447;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 448;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = _reqmanager._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (_job);
 //BA.debugLineNum = 449;BA.debugLine="If result.Tag = \"SelectMontoLiq\" Then";
if ((_result.Tag /*Object*/ ).equals((Object)("SelectMontoLiq"))) { 
 //BA.debugLineNum = 450;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));
 //BA.debugLineNum = 451;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"))))]);
 //BA.debugLineNum = 453;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
 //BA.debugLineNum = 454;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
 //BA.debugLineNum = 455;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
 //BA.debugLineNum = 456;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")));
 //BA.debugLineNum = 457;BA.debugLine="f.Position=0";
_f.setPosition((int) (0));
 //BA.debugLineNum = 458;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")));
 //BA.debugLineNum = 459;BA.debugLine="a.Position = 0";
_a.setPosition((int) (0));
 //BA.debugLineNum = 461;BA.debugLine="Private c2 As Cursor";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
 //BA.debugLineNum = 462;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")));
 //BA.debugLineNum = 463;BA.debugLine="c2.Position=0";
_c2.setPosition((int) (0));
 //BA.debugLineNum = 464;BA.debugLine="If c2.RowCount > 0 Then c2.GetString(\"USUARIO";
if (_c2.getRowCount()>0) { 
_c2.GetString("USUARIO");};
 //BA.debugLineNum = 466;BA.debugLine="Log(CUENTA & \"----------------------!!\")";
__c.LogImpl("81507497",_cuenta+"----------------------!!",0);
 //BA.debugLineNum = 467;BA.debugLine="If CUENTA = \"0\" Then";
if ((_cuenta).equals("0")) { 
 }else if((double)(Double.parseDouble(_cuenta))>(double)(Double.parseDouble("0"))) { 
 };
 //BA.debugLineNum = 500;BA.debugLine="f.Close";
_f.Close();
 //BA.debugLineNum = 501;BA.debugLine="a.Close";
_a.Close();
 }
};
 };
 };
 //BA.debugLineNum = 506;BA.debugLine="Job.Release";
_job._release /*String*/ ();
 };
 //BA.debugLineNum = 509;BA.debugLine="If paso1 = 1 Then";
if ((_paso1).equals(BA.NumberToString(1))) { 
 //BA.debugLineNum = 510;BA.debugLine="If name = \"OKActivo\" Then";
if ((_name).equals("OKActivo")) { 
 //BA.debugLineNum = 511;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from usuarioa";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from usuarioa");
 //BA.debugLineNum = 512;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)(_user.getText()),(Object)(_pass.getText())}));
 //BA.debugLineNum = 513;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_alma";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_almacen");
 //BA.debugLineNum = 514;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)}));
 //BA.debugLineNum = 515;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
 }else if((_name).equals("OKExpirado"+_imei)) { 
 //BA.debugLineNum = 517;BA.debugLine="Msgbox(\"Usuario Expirado llamar al administrado";
__c.Msgbox(BA.ObjectToCharSequence("Usuario Expirado llamar al administrador"),BA.ObjectToCharSequence(""),ba);
 }else if((_name).equals("OKCancelado"+_imei)) { 
 //BA.debugLineNum = 519;BA.debugLine="Msgbox(\"Usuario Cancelado llamar al administrad";
__c.Msgbox(BA.ObjectToCharSequence("Usuario Cancelado llamar al administrador"),BA.ObjectToCharSequence(""),ba);
 }else {
 //BA.debugLineNum = 521;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'ign";
__c.Msgbox(BA.ObjectToCharSequence("Usuario o password No validos"),BA.ObjectToCharSequence(""),ba);
 };
 //BA.debugLineNum = 523;BA.debugLine="paso1 = 0";
_paso1 = BA.NumberToString(0);
 };
 //BA.debugLineNum = 525;BA.debugLine="End Sub";
return "";
}
public String  _lv_server_itemclick(int _position,Object _value) throws Exception{
 //BA.debugLineNum = 597;BA.debugLine="Private Sub lv_server_ItemClick (Position As Int,";
 //BA.debugLineNum = 598;BA.debugLine="server = Value";
_server = BA.ObjectToString(_value);
 //BA.debugLineNum = 600;BA.debugLine="et_server.Text = Value";
_et_server.setText(BA.ObjectToCharSequence(_value));
 //BA.debugLineNum = 601;BA.debugLine="reqManager.Initialize(Me, Value)";
_reqmanager._initialize /*String*/ (ba,this,BA.ObjectToString(_value));
 //BA.debugLineNum = 602;BA.debugLine="LogColor($\"ReqServer = ${Value}\"$, Colors.red)";
__c.LogImpl("81966085",("ReqServer = "+__c.SmartStringFormatter("",_value)+""),__c.Colors.Red);
 //BA.debugLineNum = 603;BA.debugLine="ToastMessageShow(\"Servidor modificado\", False)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Servidor modificado"),__c.False);
 //BA.debugLineNum = 604;BA.debugLine="End Sub";
return "";
}
public String  _muestraprogreso(String _mensaje) throws Exception{
 //BA.debugLineNum = 613;BA.debugLine="Sub muestraProgreso(mensaje As String)";
 //BA.debugLineNum = 614;BA.debugLine="ProgressDialogShow(mensaje)";
__c.ProgressDialogShow(ba,BA.ObjectToCharSequence(_mensaje));
 //BA.debugLineNum = 615;BA.debugLine="End Sub";
return "";
}
public String  _ocultaprogreso() throws Exception{
 //BA.debugLineNum = 618;BA.debugLine="Sub ocultaProgreso";
 //BA.debugLineNum = 619;BA.debugLine="ProgressDialogHide";
__c.ProgressDialogHide();
 //BA.debugLineNum = 620;BA.debugLine="End Sub";
return "";
}
public String  _p_add_monto_click() throws Exception{
 //BA.debugLineNum = 635;BA.debugLine="Private Sub p_add_monto_Click";
 //BA.debugLineNum = 637;BA.debugLine="End Sub";
return "";
}
public String  _p_ciego_click() throws Exception{
 //BA.debugLineNum = 917;BA.debugLine="Private Sub P_CIEGO_Click";
 //BA.debugLineNum = 919;BA.debugLine="End Sub";
return "";
}
public String  _p_validacion_click() throws Exception{
 //BA.debugLineNum = 969;BA.debugLine="Private Sub p_validacion_Click";
 //BA.debugLineNum = 971;BA.debugLine="End Sub";
return "";
}
public String  _passaquci() throws Exception{
 //BA.debugLineNum = 939;BA.debugLine="Sub passaquci";
 //BA.debugLineNum = 940;BA.debugLine="f=Starter.skmt.ExecQuery(\"select CAT_CL_RUTA from";
_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 CAT_CL_RUTA from kmt_info")));
 //BA.debugLineNum = 941;BA.debugLine="f.Position=0";
_f.setPosition((int) (0));
 //BA.debugLineNum = 943;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN from";
_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")));
 //BA.debugLineNum = 944;BA.debugLine="If a.RowCount>0 Then";
if (_a.getRowCount()>0) { 
 //BA.debugLineNum = 945;BA.debugLine="a.Position=0";
_a.setPosition((int) (0));
 };
 //BA.debugLineNum = 947;BA.debugLine="Log(a.GetString(\"ID_ALMACEN\"))";
__c.LogImpl("82883592",_a.GetString("ID_ALMACEN"),0);
 //BA.debugLineNum = 948;BA.debugLine="Log(f.GetString(\"CAT_CL_RUTA\"))";
__c.LogImpl("82883593",_f.GetString("CAT_CL_RUTA"),0);
 //BA.debugLineNum = 963;BA.debugLine="End Sub";
return "";
}
public String  _reinicializareqmanager() throws Exception{
 //BA.debugLineNum = 606;BA.debugLine="Sub reinicializaReqManager";
 //BA.debugLineNum = 607;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve";
_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
 //BA.debugLineNum = 608;BA.debugLine="If logger Then Log(B4XPages.MainPage.server)";
if (_logger) { 
__c.LogImpl("82031618",_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ,0);};
 //BA.debugLineNum = 609;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.server";
__c.LogImpl("82031619",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red);
 //BA.debugLineNum = 610;BA.debugLine="End Sub";
return "";
}
public Object callSub(String sub, Object sender, Object[] args) throws Exception {
BA.senderHolder.set(sender);
if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
	return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
if (BA.fastSubCompare(sub, "JOBDONE"))
	return _jobdone((reparto_intmex.keymon.lat.httpjob) args[0]);
return BA.SubDelegator.SubNotFound;
}
}
