package SHARK2.keymon.com.mx;


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

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

 
    public void  innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{
        innerInitialize(_ba);
    }
    public Object callSub(String sub, Object sender, Object[] args) throws Exception {
        return BA.SubDelegator.SubNotFound;
    }
public anywheresoftware.b4a.keywords.Common __c = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
public String _sdate = "";
public String _stime = "";
public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
public SHARK2.keymon.com.mx.c_subs _s = null;
public SHARK2.keymon.com.mx.b4xmainpage _login = null;
public SHARK2.keymon.com.mx.c_principal _principal = null;
public SHARK2.keymon.com.mx.c_clientes _clientes = null;
public SHARK2.keymon.com.mx.c_cliente _cliente = null;
public SHARK2.keymon.com.mx.c_productos _productos = null;
public SHARK2.keymon.com.mx.c_updateavailable _updateavailable = null;
public SHARK2.keymon.com.mx.c_mapas _mapas = null;
public SHARK2.keymon.com.mx.c_nuevocliente _nuevocliente = null;
public SHARK2.keymon.com.mx.c_ticketsdia _ticketsdia = null;
public SHARK2.keymon.com.mx.c_noventa _noventa = null;
public SHARK2.keymon.com.mx.c_nota _nota = null;
public SHARK2.keymon.com.mx.c_pedidos _pedidos = null;
public SHARK2.keymon.com.mx.c_promos _promos = null;
public SHARK2.keymon.com.mx.c_historico _historico = null;
public SHARK2.keymon.com.mx.fileprovider _provider = null;
public SHARK2.keymon.com.mx.dbrequestmanager _reqmanager = null;
public String _v = "";
public String _ruta = "";
public com.rootsoft.togglelibrary.ToggleLibrary _tgl = null;
public String _lat_gps = "";
public String _lon_gps = "";
public String _usuario = "";
public int _batt = 0;
public anywheresoftware.b4a.sql.SQL _skmt = null;
public String _montoactual = "";
public String _clientestotal = "";
public String _clientesventa = "";
public String _clientesvisitados = "";
public String _almacen = "";
public String _rutapreventa = "";
public String _dbreqserver = "";
public String _fecharuta = "";
public boolean _logger = false;
public String _mac_impresora = "";
public anywheresoftware.b4a.phone.Phone.PhoneId _phn = null;
public anywheresoftware.b4a.objects.EditTextWrapper _user = null;
public anywheresoftware.b4a.objects.EditTextWrapper _pass = null;
public SHARK2.keymon.com.mx.c_tabulador _tabulador = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
public String _existe = "";
public String _paso1 = "";
public anywheresoftware.b4a.objects.LabelWrapper _imen = null;
public String _imei = "";
public String _alterno = "";
public anywheresoftware.b4a.objects.ButtonWrapper _b_menu = null;
public com.rootsoft.rspopupmenu.RSPopupMenu _popupmenu = null;
public SHARK2.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null;
public anywheresoftware.b4a.objects.ButtonWrapper _pdf = null;
public batteryprogressviewwrapper.batteryprogressviewWrapper _bpv1 = null;
public int[] _batterystatus = null;
public SHARK2.keymon.com.mx.batteryutilities _bu = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_apk = null;
public anywheresoftware.b4a.objects.ImageViewWrapper _i_engrane = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_main = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_appupdate = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_regesar = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_version = null;
public anywheresoftware.b4a.objects.ImageViewWrapper _imageview1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
public anywheresoftware.b4a.objects.ButtonWrapper _entrar = null;
public String _tipo_venta = "";
public boolean _bterminarclicked = false;
public anywheresoftware.b4a.objects.ListViewWrapper _lv_server = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_server = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_enviarbd = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_importarbd = null;
public anywheresoftware.b4a.objects.IME _ime = null;
public SHARK2.keymon.com.mx.manageexternalstorage _mes1 = null;
public anywheresoftware.b4a.phone.Phone _device = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_server = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_guardar = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel11 = null;
public b4a.example3.customlistview _clv_pick_ciego = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_pick_ciego = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_pick_ciego = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_pick_ciego = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_ciego = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel4 = null;
public String _q_buscar = "";
public anywheresoftware.b4a.objects.EditTextWrapper _et_buspc = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _d = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _a = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _f = null;
public String _idenviar = "";
public anywheresoftware.b4a.objects.EditTextWrapper _et_codigo = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_cancelarcodigo = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_aceptar = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_validacion = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_recarga = null;
public String _recarga = "";
public anywheresoftware.b4a.objects.PanelWrapper _p_add_monto = null;
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 b4a.example.dateutils _dateutils = null;
public SHARK2.keymon.com.mx.main _main = null;
public SHARK2.keymon.com.mx.appupdater _appupdater = null;
public SHARK2.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public SHARK2.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public SHARK2.keymon.com.mx.notificationservice _notificationservice = null;
public SHARK2.keymon.com.mx.pendientes _pendientes = null;
public SHARK2.keymon.com.mx.starter _starter = null;
public SHARK2.keymon.com.mx.subs _subs = null;
public SHARK2.keymon.com.mx.tracker _tracker = null;
public SHARK2.keymon.com.mx.newinst2 _newinst2 = null;
public SHARK2.keymon.com.mx.b4xpages _b4xpages = null;
public SHARK2.keymon.com.mx.b4xcollections _b4xcollections = null;
public SHARK2.keymon.com.mx.httputils2service _httputils2service = null;
public SHARK2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null;
public String  _ocultaprogreso(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "ocultaprogreso", false))
	 {return ((String) Debug.delegate(ba, "ocultaprogreso", null));}
RDebugUtils.currentLine=2490368;
 //BA.debugLineNum = 2490368;BA.debugLine="Sub ocultaProgreso";
RDebugUtils.currentLine=2490369;
 //BA.debugLineNum = 2490369;BA.debugLine="ProgressDialogHide";
__c.ProgressDialogHide();
RDebugUtils.currentLine=2490370;
 //BA.debugLineNum = 2490370;BA.debugLine="End Sub";
return "";
}
public String  _muestraprogreso(SHARK2.keymon.com.mx.b4xmainpage __ref,String _mensaje) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "muestraprogreso", false))
	 {return ((String) Debug.delegate(ba, "muestraprogreso", new Object[] {_mensaje}));}
RDebugUtils.currentLine=2424832;
 //BA.debugLineNum = 2424832;BA.debugLine="Sub muestraProgreso(mensaje As String)";
RDebugUtils.currentLine=2424833;
 //BA.debugLineNum = 2424833;BA.debugLine="ProgressDialogShow(mensaje)";
__c.ProgressDialogShow(ba,BA.ObjectToCharSequence(_mensaje));
RDebugUtils.currentLine=2424834;
 //BA.debugLineNum = 2424834;BA.debugLine="End Sub";
return "";
}
public String  _b_aceptar_click(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_aceptar_click", false))
	 {return ((String) Debug.delegate(ba, "b_aceptar_click", null));}
RDebugUtils.currentLine=3538944;
 //BA.debugLineNum = 3538944;BA.debugLine="Private Sub b_aceptar_Click";
RDebugUtils.currentLine=3538945;
 //BA.debugLineNum = 3538945;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_CL";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info")));
RDebugUtils.currentLine=3538946;
 //BA.debugLineNum = 3538946;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3538948;
 //BA.debugLineNum = 3538948;BA.debugLine="a=B4XPages.MainPage.skmt.ExecQuery(\"select ID_ALM";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
RDebugUtils.currentLine=3538949;
 //BA.debugLineNum = 3538949;BA.debugLine="If a.RowCount>0 Then";
if (__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3538950;
 //BA.debugLineNum = 3538950;BA.debugLine="a.Position=0";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
 };
RDebugUtils.currentLine=3538952;
 //BA.debugLineNum = 3538952;BA.debugLine="Log(a.GetString(\"ID_ALMACEN\"))";
__c.LogImpl("53538952",__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"),0);
RDebugUtils.currentLine=3538953;
 //BA.debugLineNum = 3538953;BA.debugLine="Log(f.GetString(\"CAT_CL_RUTA\"))";
__c.LogImpl("53538953",__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA"),0);
RDebugUtils.currentLine=3538955;
 //BA.debugLineNum = 3538955;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3538956;
 //BA.debugLineNum = 3538956;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3538957;
 //BA.debugLineNum = 3538957;BA.debugLine="cmd.Name = \"select_CAT_PASS_ARQUEO_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_CAT_PASS_ARQUEO_SHARK2";
RDebugUtils.currentLine=3538958;
 //BA.debugLineNum = 3538958;BA.debugLine="cmd.Parameters = Array As Object(f.GetString(\"CAT";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA")),(Object)(__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN")),(Object)("PREVENTA")};
RDebugUtils.currentLine=3538959;
 //BA.debugLineNum = 3538959;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"contrasena\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("contrasena"));
RDebugUtils.currentLine=3538960;
 //BA.debugLineNum = 3538960;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3538961;
 //BA.debugLineNum = 3538961;BA.debugLine="a.Close";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3538962;
 //BA.debugLineNum = 3538962;BA.debugLine="End Sub";
return "";
}
public String  _b_aceptar_monto_click(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_aceptar_monto_click", false))
	 {return ((String) Debug.delegate(ba, "b_aceptar_monto_click", null));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _ci = null;
String _u = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _g = null;
RDebugUtils.currentLine=3604480;
 //BA.debugLineNum = 3604480;BA.debugLine="Private Sub B_Aceptar_Monto_Click";
RDebugUtils.currentLine=3604482;
 //BA.debugLineNum = 3604482;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=3604483;
 //BA.debugLineNum = 3604483;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=3604484;
 //BA.debugLineNum = 3604484;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=3604486;
 //BA.debugLineNum = 3604486;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_CL";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info")));
RDebugUtils.currentLine=3604487;
 //BA.debugLineNum = 3604487;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3604489;
 //BA.debugLineNum = 3604489;BA.debugLine="a=B4XPages.MainPage.skmt.ExecQuery(\"select ID_ALM";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
RDebugUtils.currentLine=3604490;
 //BA.debugLineNum = 3604490;BA.debugLine="If a.RowCount>0 Then";
if (__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3604491;
 //BA.debugLineNum = 3604491;BA.debugLine="a.Position=0";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
 };
RDebugUtils.currentLine=3604494;
 //BA.debugLineNum = 3604494;BA.debugLine="Private cI As Cursor";
_ci = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=3604495;
 //BA.debugLineNum = 3604495;BA.debugLine="Private u As String = \"SinUsuario\"";
_u = "SinUsuario";
RDebugUtils.currentLine=3604496;
 //BA.debugLineNum = 3604496;BA.debugLine="cI=Starter.skmt.ExecQuery(\"select USUARIO from us";
_ci = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
RDebugUtils.currentLine=3604497;
 //BA.debugLineNum = 3604497;BA.debugLine="cI.Position=0";
_ci.setPosition((int) (0));
RDebugUtils.currentLine=3604498;
 //BA.debugLineNum = 3604498;BA.debugLine="If cI.RowCount > 0 Then u = cI.GetString(\"USUARIO";
if (_ci.getRowCount()>0) { 
_u = _ci.GetString("USUARIO");};
RDebugUtils.currentLine=3604499;
 //BA.debugLineNum = 3604499;BA.debugLine="Private g As Cursor = B4XPages.MainPage.skmt.Exec";
_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)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from ENV_MONTO_LIQ")));
RDebugUtils.currentLine=3604500;
 //BA.debugLineNum = 3604500;BA.debugLine="If g.RowCount = 0 Then";
if (_g.getRowCount()==0) { 
RDebugUtils.currentLine=3604501;
 //BA.debugLineNum = 3604501;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INTO";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO ENV_MONTO_LIQ VALUES (?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._et_add_monto /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN")),(Object)(__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA")),(Object)(_u),(Object)(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ )}));
RDebugUtils.currentLine=3604502;
 //BA.debugLineNum = 3604502;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604503;
 //BA.debugLineNum = 3604503;BA.debugLine="a.Close";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604505;
 //BA.debugLineNum = 3604505;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM ENV_MON";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM ENV_MONTO_LIQ")));
RDebugUtils.currentLine=3604506;
 //BA.debugLineNum = 3604506;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3604507;
 //BA.debugLineNum = 3604507;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3604508;
 //BA.debugLineNum = 3604508;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604509;
 //BA.debugLineNum = 3604509;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604510;
 //BA.debugLineNum = 3604510;BA.debugLine="cmd.Name = \"select_MontoCuenta_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_MontoCuenta_SHARK2";
RDebugUtils.currentLine=3604512;
 //BA.debugLineNum = 3604512;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"EM";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EML_USUARIO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EML_ALMACEN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EML_RUTA"))};
RDebugUtils.currentLine=3604513;
 //BA.debugLineNum = 3604513;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"SelectMontoLiq";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("SelectMontoLiq"));
 };
RDebugUtils.currentLine=3604517;
 //BA.debugLineNum = 3604517;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else {
RDebugUtils.currentLine=3604519;
 //BA.debugLineNum = 3604519;BA.debugLine="Starter.skmt.ExecNonQuery2(\"UPDATE ENV_MONTO_LIQ";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE ENV_MONTO_LIQ SET EML_MONTO = ? WHERE EML_ALMACEN = ? AND EML_RUTA = ? AND EML_USUARIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._et_add_monto /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(),__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"),__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA"),_ci.GetString("USUARIO")}));
RDebugUtils.currentLine=3604520;
 //BA.debugLineNum = 3604520;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604521;
 //BA.debugLineNum = 3604521;BA.debugLine="a.Close";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604523;
 //BA.debugLineNum = 3604523;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM ENV_MO";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM ENV_MONTO_LIQ")));
RDebugUtils.currentLine=3604524;
 //BA.debugLineNum = 3604524;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3604525;
 //BA.debugLineNum = 3604525;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3604526;
 //BA.debugLineNum = 3604526;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604527;
 //BA.debugLineNum = 3604527;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604528;
 //BA.debugLineNum = 3604528;BA.debugLine="cmd.Name = \"select_MontoCuenta_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_MontoCuenta_SHARK2";
RDebugUtils.currentLine=3604530;
 //BA.debugLineNum = 3604530;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"E";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EML_USUARIO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EML_ALMACEN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EML_RUTA"))};
RDebugUtils.currentLine=3604531;
 //BA.debugLineNum = 3604531;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"SelectMontoLi";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("SelectMontoLiq"));
 };
RDebugUtils.currentLine=3604535;
 //BA.debugLineNum = 3604535;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=3604539;
 //BA.debugLineNum = 3604539;BA.debugLine="p_add_monto.Visible = False";
__ref._p_add_monto /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3604544;
 //BA.debugLineNum = 3604544;BA.debugLine="End Sub";
return "";
}
public String  _b_apk_click(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_apk_click", false))
	 {return ((String) Debug.delegate(ba, "b_apk_click", null));}
RDebugUtils.currentLine=2359296;
 //BA.debugLineNum = 2359296;BA.debugLine="Sub b_apk_Click";
RDebugUtils.currentLine=2359297;
 //BA.debugLineNum = 2359297;BA.debugLine="StartService(appUpdater)";
__c.StartService(ba,(Object)(_appupdater.getObject()));
RDebugUtils.currentLine=2359298;
 //BA.debugLineNum = 2359298;BA.debugLine="End Sub";
return "";
}
public String  _b_arqueocieego_click(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_arqueocieego_click", false))
	 {return ((String) Debug.delegate(ba, "b_arqueocieego_click", null));}
RDebugUtils.currentLine=3080192;
 //BA.debugLineNum = 3080192;BA.debugLine="Private Sub b_arqueocieego_Click";
RDebugUtils.currentLine=3080193;
 //BA.debugLineNum = 3080193;BA.debugLine="c = skmt.ExecQuery(\"SELECT * FROM CAT_GUNAPROD3\")";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM CAT_GUNAPROD3")));
RDebugUtils.currentLine=3080194;
 //BA.debugLineNum = 3080194;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3080195;
 //BA.debugLineNum = 3080195;BA.debugLine="Subs.panelVisible(p_validacion,0,0)";
_subs._panelvisible /*String*/ (ba,__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
RDebugUtils.currentLine=3080196;
 //BA.debugLineNum = 3080196;BA.debugLine="recarga = \"0\"";
__ref._recarga /*String*/  = "0";
 }else {
RDebugUtils.currentLine=3080198;
 //BA.debugLineNum = 3080198;BA.debugLine="MsgboxAsync(\"No hay ruta cargada, favor de carga";
__c.MsgboxAsync(BA.ObjectToCharSequence("No hay ruta cargada, favor de cargar día"),BA.ObjectToCharSequence("Atención"),ba);
 };
RDebugUtils.currentLine=3080200;
 //BA.debugLineNum = 3080200;BA.debugLine="End Sub";
return "";
}
public String  _b_can_monto_click(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_can_monto_click", false))
	 {return ((String) Debug.delegate(ba, "b_can_monto_click", null));}
RDebugUtils.currentLine=3735552;
 //BA.debugLineNum = 3735552;BA.debugLine="Private Sub B_Can_Monto_Click";
RDebugUtils.currentLine=3735553;
 //BA.debugLineNum = 3735553;BA.debugLine="p_add_monto.Visible = False";
__ref._p_add_monto /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3735554;
 //BA.debugLineNum = 3735554;BA.debugLine="End Sub";
return "";
}
public String  _b_cancelarcodigo_click(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_cancelarcodigo_click", false))
	 {return ((String) Debug.delegate(ba, "b_cancelarcodigo_click", null));}
RDebugUtils.currentLine=3670016;
 //BA.debugLineNum = 3670016;BA.debugLine="Private Sub b_cancelarcodigo_Click";
RDebugUtils.currentLine=3670017;
 //BA.debugLineNum = 3670017;BA.debugLine="p_validacion.Visible = False";
__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3670018;
 //BA.debugLineNum = 3670018;BA.debugLine="End Sub";
return "";
}
public String  _b_cargarmonto_click(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_cargarmonto_click", false))
	 {return ((String) Debug.delegate(ba, "b_cargarmonto_click", null));}
RDebugUtils.currentLine=3932160;
 //BA.debugLineNum = 3932160;BA.debugLine="Private Sub b_CargarMonto_Click";
RDebugUtils.currentLine=3932161;
 //BA.debugLineNum = 3932161;BA.debugLine="c = skmt.ExecQuery(\"SELECT *  FROM kmt_info\")";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT *  FROM kmt_info")));
RDebugUtils.currentLine=3932162;
 //BA.debugLineNum = 3932162;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3932163;
 //BA.debugLineNum = 3932163;BA.debugLine="If c.RowCount < 0 Or c.RowCount = 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()<0 || __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
RDebugUtils.currentLine=3932164;
 //BA.debugLineNum = 3932164;BA.debugLine="MsgboxAsync(\"No hay ruta cargada, favor de carga";
__c.MsgboxAsync(BA.ObjectToCharSequence("No hay ruta cargada, favor de cargar día"),BA.ObjectToCharSequence("Atención"),ba);
 }else {
RDebugUtils.currentLine=3932166;
 //BA.debugLineNum = 3932166;BA.debugLine="Subs.panelVisible(p_add_monto,0,0)";
_subs._panelvisible /*String*/ (ba,__ref._p_add_monto /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
 };
RDebugUtils.currentLine=3932168;
 //BA.debugLineNum = 3932168;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3932169;
 //BA.debugLineNum = 3932169;BA.debugLine="End Sub";
return "";
}
public String  _b_enviarbd_click(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_enviarbd_click", false))
	 {return ((String) Debug.delegate(ba, "b_enviarbd_click", null));}
RDebugUtils.currentLine=2883584;
 //BA.debugLineNum = 2883584;BA.debugLine="Private Sub b_enviarbd_Click";
RDebugUtils.currentLine=2883586;
 //BA.debugLineNum = 2883586;BA.debugLine="End Sub";
return "";
}
public void  _b_enviobd_click(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_enviobd_click", false))
	 {Debug.delegate(ba, "b_enviobd_click", null); return;}
ResumableSub_b_envioBD_Click rsub = new ResumableSub_b_envioBD_Click(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_b_envioBD_Click extends BA.ResumableSub {
public ResumableSub_b_envioBD_Click(SHARK2.keymon.com.mx.b4xmainpage parent,SHARK2.keymon.com.mx.b4xmainpage __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
SHARK2.keymon.com.mx.b4xmainpage __ref;
SHARK2.keymon.com.mx.b4xmainpage parent;
String _filename = "";
anywheresoftware.b4a.phone.Phone.Email _email = null;
anywheresoftware.b4a.objects.IntentWrapper _in = null;

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

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

case 0:
//C
this.state = -1;
RDebugUtils.currentLine=3801091;
 //BA.debugLineNum = 3801091;BA.debugLine="Dim FileName As String = \"kmt.db\"";
_filename = "kmt.db";
RDebugUtils.currentLine=3801093;
 //BA.debugLineNum = 3801093;BA.debugLine="Log(\"xxxxxx:\"&Provider.SharedFolder)";
parent.__c.LogImpl("53801093","xxxxxx:"+__ref._provider /*SHARK2.keymon.com.mx.fileprovider*/ ._sharedfolder /*String*/ ,0);
RDebugUtils.currentLine=3801094;
 //BA.debugLineNum = 3801094;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "b_enviobd_click"),(int) (1000));
this.state = 1;
return;
case 1:
//C
this.state = -1;
;
RDebugUtils.currentLine=3801095;
 //BA.debugLineNum = 3801095;BA.debugLine="File.Copy(File.DirInternal, FileName, Provider.Sh";
parent.__c.File.Copy(parent.__c.File.getDirInternal(),_filename,__ref._provider /*SHARK2.keymon.com.mx.fileprovider*/ ._sharedfolder /*String*/ ,_filename);
RDebugUtils.currentLine=3801096;
 //BA.debugLineNum = 3801096;BA.debugLine="Dim email As Email";
_email = new anywheresoftware.b4a.phone.Phone.Email();
RDebugUtils.currentLine=3801097;
 //BA.debugLineNum = 3801097;BA.debugLine="email.To.Add(\"soporte@keymonsoft.com\")";
_email.To.Add((Object)("soporte@keymonsoft.com"));
RDebugUtils.currentLine=3801098;
 //BA.debugLineNum = 3801098;BA.debugLine="email.Subject = \"Envio Base de datos SHARK2\"";
_email.Subject = "Envio Base de datos SHARK2";
RDebugUtils.currentLine=3801099;
 //BA.debugLineNum = 3801099;BA.debugLine="email.Attachments.Add(Provider.GetFileUri(FileNam";
_email.Attachments.Add(__ref._provider /*SHARK2.keymon.com.mx.fileprovider*/ ._getfileuri /*Object*/ (null,_filename));
RDebugUtils.currentLine=3801101;
 //BA.debugLineNum = 3801101;BA.debugLine="Dim in As Intent = email.GetIntent";
_in = new anywheresoftware.b4a.objects.IntentWrapper();
_in = (anywheresoftware.b4a.objects.IntentWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.IntentWrapper(), (android.content.Intent)(_email.GetIntent()));
RDebugUtils.currentLine=3801102;
 //BA.debugLineNum = 3801102;BA.debugLine="in.Flags = 1 'FLAG_GRANT_READ_URI_PERMISSION";
_in.setFlags((int) (1));
RDebugUtils.currentLine=3801103;
 //BA.debugLineNum = 3801103;BA.debugLine="StartActivity(in)";
parent.__c.StartActivity(ba,(Object)(_in.getObject()));
RDebugUtils.currentLine=3801104;
 //BA.debugLineNum = 3801104;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _b_guardar_click(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_guardar_click", false))
	 {return ((String) Debug.delegate(ba, "b_guardar_click", null));}
RDebugUtils.currentLine=3014656;
 //BA.debugLineNum = 3014656;BA.debugLine="Private Sub b_guardar_Click";
RDebugUtils.currentLine=3014657;
 //BA.debugLineNum = 3014657;BA.debugLine="Starter.reinicializaReqManager(et_server.Text.Tri";
_starter._reinicializareqmanager /*String*/ (__ref._et_server /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText().trim());
RDebugUtils.currentLine=3014658;
 //BA.debugLineNum = 3014658;BA.debugLine="p_appUpdate.Visible = False";
__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3014659;
 //BA.debugLineNum = 3014659;BA.debugLine="End Sub";
return "";
}
public void  _b_importarbd_click(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_importarbd_click", false))
	 {Debug.delegate(ba, "b_importarbd_click", null); return;}
ResumableSub_b_importarBD_Click rsub = new ResumableSub_b_importarBD_Click(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_b_importarBD_Click extends BA.ResumableSub {
public ResumableSub_b_importarBD_Click(SHARK2.keymon.com.mx.b4xmainpage parent,SHARK2.keymon.com.mx.b4xmainpage __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
SHARK2.keymon.com.mx.b4xmainpage __ref;
SHARK2.keymon.com.mx.b4xmainpage parent;
SHARK2.keymon.com.mx.filehandler _fh = null;
SHARK2.keymon.com.mx.filehandler._loadresult _result = null;

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

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

case 0:
//C
this.state = -1;
RDebugUtils.currentLine=2949121;
 //BA.debugLineNum = 2949121;BA.debugLine="Private FH As FileHandler";
_fh = new SHARK2.keymon.com.mx.filehandler();
RDebugUtils.currentLine=2949122;
 //BA.debugLineNum = 2949122;BA.debugLine="FH.Initialize";
_fh._initialize /*String*/ (null,ba);
RDebugUtils.currentLine=2949123;
 //BA.debugLineNum = 2949123;BA.debugLine="Wait For (FH.Load) Complete (Result As LoadResult";
parent.__c.WaitFor("complete", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "b_importarbd_click"), _fh._load /*anywheresoftware.b4a.keywords.Common.ResumableSubWrapper*/ (null));
this.state = 1;
return;
case 1:
//C
this.state = -1;
_result = (SHARK2.keymon.com.mx.filehandler._loadresult) result[1];
;
RDebugUtils.currentLine=2949124;
 //BA.debugLineNum = 2949124;BA.debugLine="File.Copy(Result.Dir, Result.FileName, File.DirIn";
parent.__c.File.Copy(_result.Dir /*String*/ ,_result.FileName /*String*/ ,parent.__c.File.getDirInternal(),"kmt.db");
RDebugUtils.currentLine=2949125;
 //BA.debugLineNum = 2949125;BA.debugLine="B4XPages.MainPage.skmt.Initialize(Starter.ruta,\"k";
parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .Initialize(parent._starter._ruta /*String*/ ,"kmt.db",parent.__c.True);
RDebugUtils.currentLine=2949126;
 //BA.debugLineNum = 2949126;BA.debugLine="ToastMessageShow(\"¡BD importada!\", False)";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("¡BD importada!"),parent.__c.False);
RDebugUtils.currentLine=2949127;
 //BA.debugLineNum = 2949127;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _b_menu_click(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_menu_click", false))
	 {return ((String) Debug.delegate(ba, "b_menu_click", null));}
RDebugUtils.currentLine=2097152;
 //BA.debugLineNum = 2097152;BA.debugLine="Sub b_menu_Click";
RDebugUtils.currentLine=2097153;
 //BA.debugLineNum = 2097153;BA.debugLine="PopupMenu.Show";
__ref._popupmenu /*com.rootsoft.rspopupmenu.RSPopupMenu*/ .Show();
RDebugUtils.currentLine=2097154;
 //BA.debugLineNum = 2097154;BA.debugLine="End Sub";
return "";
}
public String  _b_pc_env_click(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_pc_env_click", false))
	 {return ((String) Debug.delegate(ba, "b_pc_env_click", null));}
int _i = 0;
anywheresoftware.b4a.objects.B4XViewWrapper _itempanel = null;
anywheresoftware.b4a.objects.B4XViewWrapper _innerpanel = null;
anywheresoftware.b4a.objects.B4XViewWrapper _edittext = null;
String _inputtext = "";
anywheresoftware.b4a.objects.B4XViewWrapper _idlabel = null;
String _idtext = "";
String[] _idparts = null;
RDebugUtils.currentLine=3407872;
 //BA.debugLineNum = 3407872;BA.debugLine="Private Sub B_PC_ENV_Click";
RDebugUtils.currentLine=3407874;
 //BA.debugLineNum = 3407874;BA.debugLine="Dim sDate, sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=3407875;
 //BA.debugLineNum = 3407875;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
__c.DateTime.setDateFormat("dd/MM/yyyy");
RDebugUtils.currentLine=3407876;
 //BA.debugLineNum = 3407876;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=3407877;
 //BA.debugLineNum = 3407877;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=3407878;
 //BA.debugLineNum = 3407878;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=3407881;
 //BA.debugLineNum = 3407881;BA.debugLine="For i = 0 To CLV_PICK_CIEGO.Size - 1";
{
final int step6 = 1;
final int limit6 = (int) (__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._getsize()-1);
_i = (int) (0) ;
for (;_i <= limit6 ;_i = _i + step6 ) {
RDebugUtils.currentLine=3407883;
 //BA.debugLineNum = 3407883;BA.debugLine="Dim itemPanel As B4XView = CLV_PICK_CIEGO.GetPan";
_itempanel = new anywheresoftware.b4a.objects.B4XViewWrapper();
_itempanel = __ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._getpanel(_i);
RDebugUtils.currentLine=3407884;
 //BA.debugLineNum = 3407884;BA.debugLine="Dim innerPanel As B4XView = itemPanel.GetView(0)";
_innerpanel = new anywheresoftware.b4a.objects.B4XViewWrapper();
_innerpanel = _itempanel.GetView((int) (0));
RDebugUtils.currentLine=3407885;
 //BA.debugLineNum = 3407885;BA.debugLine="Dim editText As B4XView = innerPanel.GetView(1)";
_edittext = new anywheresoftware.b4a.objects.B4XViewWrapper();
_edittext = _innerpanel.GetView((int) (1));
RDebugUtils.currentLine=3407886;
 //BA.debugLineNum = 3407886;BA.debugLine="Dim inputText As String = editText.As(EditText).";
_inputtext = ((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_edittext.getObject()))).getText();
RDebugUtils.currentLine=3407889;
 //BA.debugLineNum = 3407889;BA.debugLine="If Regex.IsMatch(\"^[0]+$\", inputText) Or inputTe";
if (__c.Regex.IsMatch("^[0]+$",_inputtext) || (_inputtext).equals("")) { 
RDebugUtils.currentLine=3407890;
 //BA.debugLineNum = 3407890;BA.debugLine="inputText = \"0\"";
_inputtext = "0";
 };
RDebugUtils.currentLine=3407894;
 //BA.debugLineNum = 3407894;BA.debugLine="Dim idLabel As B4XView = innerPanel.GetView(0)";
_idlabel = new anywheresoftware.b4a.objects.B4XViewWrapper();
_idlabel = _innerpanel.GetView((int) (0));
RDebugUtils.currentLine=3407895;
 //BA.debugLineNum = 3407895;BA.debugLine="Dim idText As String = idLabel.As(Label).Text";
_idtext = ((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(_idlabel.getObject()))).getText();
RDebugUtils.currentLine=3407896;
 //BA.debugLineNum = 3407896;BA.debugLine="Dim idParts() As String = Regex.Split(CRLF, idTe";
_idparts = __c.Regex.Split(__c.CRLF,_idtext);
RDebugUtils.currentLine=3407898;
 //BA.debugLineNum = 3407898;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_C";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info")));
RDebugUtils.currentLine=3407899;
 //BA.debugLineNum = 3407899;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3407901;
 //BA.debugLineNum = 3407901;BA.debugLine="a=B4XPages.MainPage.skmt.ExecQuery(\"select ID_AL";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
RDebugUtils.currentLine=3407902;
 //BA.debugLineNum = 3407902;BA.debugLine="If a.RowCount>0 Then";
if (__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3407903;
 //BA.debugLineNum = 3407903;BA.debugLine="a.Position=0";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
 };
RDebugUtils.currentLine=3407908;
 //BA.debugLineNum = 3407908;BA.debugLine="If inputText <> \"\" Then";
if ((_inputtext).equals("") == false) { 
RDebugUtils.currentLine=3407909;
 //BA.debugLineNum = 3407909;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PICK";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?",new String[]{_idparts[(int) (0)]})));
RDebugUtils.currentLine=3407910;
 //BA.debugLineNum = 3407910;BA.debugLine="If c.RowCount = 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
RDebugUtils.currentLine=3407912;
 //BA.debugLineNum = 3407912;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO PICK_CIEGO(PC_";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PICK_CIEGO(PC_ID_PROD, PC_NOM_PROD, PC_CANT, PC_ALMACEN, PC_RUTA, PC_FECHA) VALUES(?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],_inputtext,__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"),__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA"),__ref._sdate /*String*/ +" "+__ref._stime /*String*/ }));
 }else {
RDebugUtils.currentLine=3407914;
 //BA.debugLineNum = 3407914;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"Update P";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update PICK_CIEGO set PC_CANT = ?  WHERE PC_ID_PROD = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_inputtext,_idparts[(int) (0)]}));
 };
 };
RDebugUtils.currentLine=3407917;
 //BA.debugLineNum = 3407917;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3407918;
 //BA.debugLineNum = 3407918;BA.debugLine="a.Close";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }
};
RDebugUtils.currentLine=3407921;
 //BA.debugLineNum = 3407921;BA.debugLine="et_buspc.Text = \"\"";
__ref._et_buspc /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=3407922;
 //BA.debugLineNum = 3407922;BA.debugLine="CLV_PICK_CIEGO.Clear";
__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=3407924;
 //BA.debugLineNum = 3407924;BA.debugLine="End Sub";
return "";
}
public String  _b_recarga_click(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_recarga_click", false))
	 {return ((String) Debug.delegate(ba, "b_recarga_click", null));}
RDebugUtils.currentLine=3866624;
 //BA.debugLineNum = 3866624;BA.debugLine="Private Sub b_recarga_Click";
RDebugUtils.currentLine=3866625;
 //BA.debugLineNum = 3866625;BA.debugLine="c = skmt.ExecQuery(\"SELECT * FROM CAT_GUNAPROD\")";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM CAT_GUNAPROD")));
RDebugUtils.currentLine=3866626;
 //BA.debugLineNum = 3866626;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3866628;
 //BA.debugLineNum = 3866628;BA.debugLine="recarga = \"1\"";
__ref._recarga /*String*/  = "1";
RDebugUtils.currentLine=3866630;
 //BA.debugLineNum = 3866630;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA");
RDebugUtils.currentLine=3866631;
 //BA.debugLineNum = 3866631;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("1")}));
RDebugUtils.currentLine=3866632;
 //BA.debugLineNum = 3866632;BA.debugLine="B4XPages.MainPage.tipo_venta = \"RECARGA\"";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/  = "RECARGA";
RDebugUtils.currentLine=3866633;
 //BA.debugLineNum = 3866633;BA.debugLine="B4XPages.ShowPage(\"Productos\")";
_b4xpages._showpage /*String*/ (ba,"Productos");
 }else {
RDebugUtils.currentLine=3866635;
 //BA.debugLineNum = 3866635;BA.debugLine="MsgboxAsync(\"No hay ruta cargada, favor de carga";
__c.MsgboxAsync(BA.ObjectToCharSequence("No hay ruta cargada, favor de cargar día"),BA.ObjectToCharSequence("Atención"),ba);
 };
RDebugUtils.currentLine=3866637;
 //BA.debugLineNum = 3866637;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3866638;
 //BA.debugLineNum = 3866638;BA.debugLine="End Sub";
return "";
}
public String  _b_regesar_click(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_regesar_click", false))
	 {return ((String) Debug.delegate(ba, "b_regesar_click", null));}
RDebugUtils.currentLine=2621440;
 //BA.debugLineNum = 2621440;BA.debugLine="Sub b_regesar_Click";
RDebugUtils.currentLine=2621441;
 //BA.debugLineNum = 2621441;BA.debugLine="Subs.panelVisible(p_Main,0,0)";
_subs._panelvisible /*String*/ (ba,__ref._p_main /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
RDebugUtils.currentLine=2621442;
 //BA.debugLineNum = 2621442;BA.debugLine="End Sub";
return "";
}
public void  _b_terpc_click(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b_terpc_click", false))
	 {Debug.delegate(ba, "b_terpc_click", null); return;}
ResumableSub_b_terpc_Click rsub = new ResumableSub_b_terpc_Click(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_b_terpc_Click extends BA.ResumableSub {
public ResumableSub_b_terpc_Click(SHARK2.keymon.com.mx.b4xmainpage parent,SHARK2.keymon.com.mx.b4xmainpage __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
SHARK2.keymon.com.mx.b4xmainpage __ref;
SHARK2.keymon.com.mx.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;
int step12;
int limit12;
int step49;
int limit49;

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

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

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

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

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

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

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

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

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

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

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

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

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

case 13:
//C
this.state = 14;
;
RDebugUtils.currentLine=3473435;
 //BA.debugLineNum = 3473435;BA.debugLine="Dim idLabel As B4XView = innerPanel.GetView(0)";
_idlabel = new anywheresoftware.b4a.objects.B4XViewWrapper();
_idlabel = _innerpanel.GetView((int) (0));
RDebugUtils.currentLine=3473436;
 //BA.debugLineNum = 3473436;BA.debugLine="Dim idText As String = idLabel.As(Label).Text";
_idtext = ((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(_idlabel.getObject()))).getText();
RDebugUtils.currentLine=3473437;
 //BA.debugLineNum = 3473437;BA.debugLine="Dim idParts() As String = Regex.Split(CRLF, id";
_idparts = parent.__c.Regex.Split(parent.__c.CRLF,_idtext);
RDebugUtils.currentLine=3473439;
 //BA.debugLineNum = 3473439;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select CAT";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info")));
RDebugUtils.currentLine=3473440;
 //BA.debugLineNum = 3473440;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3473442;
 //BA.debugLineNum = 3473442;BA.debugLine="a=B4XPages.MainPage.skmt.ExecQuery(\"select ID_";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
RDebugUtils.currentLine=3473443;
 //BA.debugLineNum = 3473443;BA.debugLine="If a.RowCount>0 Then";
if (true) break;

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

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

case 17:
//C
this.state = 18;
;
RDebugUtils.currentLine=3473446;
 //BA.debugLineNum = 3473446;BA.debugLine="Log(a.GetString(\"ID_ALMACEN\"))";
parent.__c.LogImpl("53473446",__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"),0);
RDebugUtils.currentLine=3473447;
 //BA.debugLineNum = 3473447;BA.debugLine="Log(f.GetString(\"CAT_CL_RUTA\"))";
parent.__c.LogImpl("53473447",__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA"),0);
RDebugUtils.currentLine=3473448;
 //BA.debugLineNum = 3473448;BA.debugLine="If inputText <> \"\" Then";
if (true) break;

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

case 20:
//C
this.state = 21;
RDebugUtils.currentLine=3473449;
 //BA.debugLineNum = 3473449;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PI";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?",new String[]{_idparts[(int) (0)]})));
RDebugUtils.currentLine=3473450;
 //BA.debugLineNum = 3473450;BA.debugLine="If c.RowCount = 0 Then";
if (true) break;

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

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

case 25:
//C
this.state = 26;
RDebugUtils.currentLine=3473454;
 //BA.debugLineNum = 3473454;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"Update";
parent._b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._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 = 44;
;
RDebugUtils.currentLine=3473457;
 //BA.debugLineNum = 3473457;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3473458;
 //BA.debugLineNum = 3473458;BA.debugLine="a.Close";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3473459;
 //BA.debugLineNum = 3473459;BA.debugLine="Log(\"Processed item \" & i)";
parent.__c.LogImpl("53473459","Processed item "+BA.NumberToString(_i),0);
 if (true) break;
if (true) break;

case 28:
//C
this.state = 29;
;
RDebugUtils.currentLine=3473461;
 //BA.debugLineNum = 3473461;BA.debugLine="Log(\"Finished processing all items\")";
parent.__c.LogImpl("53473461","Finished processing all items",0);
RDebugUtils.currentLine=3473462;
 //BA.debugLineNum = 3473462;BA.debugLine="P_CIEGO.Visible = False";
__ref._p_ciego /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=3473463;
 //BA.debugLineNum = 3473463;BA.debugLine="et_buspc.Text = \"\"";
__ref._et_buspc /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=3473464;
 //BA.debugLineNum = 3473464;BA.debugLine="CLV_PICK_CIEGO.Clear";
__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=3473465;
 //BA.debugLineNum = 3473465;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT PC_ID_PROD,";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT PC_ID_PROD, PC_ALMACEN, PC_RUTA, PC_FECHA FROM PICK_CIEGO")));
RDebugUtils.currentLine=3473466;
 //BA.debugLineNum = 3473466;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;

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

case 31:
//C
this.state = 32;
RDebugUtils.currentLine=3473467;
 //BA.debugLineNum = 3473467;BA.debugLine="For i = 0 To c.RowCount - 1";
if (true) break;

case 32:
//for
this.state = 35;
step49 = 1;
limit49 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
this.state = 45;
if (true) break;

case 45:
//C
this.state = 35;
if ((step49 > 0 && _i <= limit49) || (step49 < 0 && _i >= limit49)) this.state = 34;
if (true) break;

case 46:
//C
this.state = 45;
_i = ((int)(0 + _i + step49)) ;
if (true) break;

case 34:
//C
this.state = 46;
RDebugUtils.currentLine=3473468;
 //BA.debugLineNum = 3473468;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3473469;
 //BA.debugLineNum = 3473469;BA.debugLine="Dim cmd As DBCommand";
parent._cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3473470;
 //BA.debugLineNum = 3473470;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3473471;
 //BA.debugLineNum = 3473471;BA.debugLine="cmd.Name = \"select_HIST_PICKCIEGO_SHARK2\" '";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_HIST_PICKCIEGO_SHARK2";
RDebugUtils.currentLine=3473472;
 //BA.debugLineNum = 3473472;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_ID_PROD")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_ALMACEN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FECHA")),(Object)("VENTA")};
RDebugUtils.currentLine=3473473;
 //BA.debugLineNum = 3473473;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, $\"PICK_C_${c";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)(("PICK_C_"+parent.__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_ID_PROD")))+"")));
 if (true) break;
if (true) break;

case 35:
//C
this.state = 36;
;
 if (true) break;

case 36:
//C
this.state = 39;
;
RDebugUtils.currentLine=3473476;
 //BA.debugLineNum = 3473476;BA.debugLine="c.close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 if (true) break;

case 38:
//C
this.state = 39;
 if (true) break;

case 39:
//C
this.state = 40;
;
 if (true) break;

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

            }
        }
    }
}
public void  _b4xpage_appear(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b4xpage_appear", false))
	 {Debug.delegate(ba, "b4xpage_appear", null); return;}
ResumableSub_B4XPage_Appear rsub = new ResumableSub_B4XPage_Appear(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_B4XPage_Appear extends BA.ResumableSub {
public ResumableSub_B4XPage_Appear(SHARK2.keymon.com.mx.b4xmainpage parent,SHARK2.keymon.com.mx.b4xmainpage __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
SHARK2.keymon.com.mx.b4xmainpage __ref;
SHARK2.keymon.com.mx.b4xmainpage parent;
anywheresoftware.b4a.phone.Phone _ph = null;
String _deviceid = "";

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

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

case 0:
//C
this.state = 1;
RDebugUtils.currentLine=1638401;
 //BA.debugLineNum = 1638401;BA.debugLine="Log(recarga)";
parent.__c.LogImpl("51638401",__ref._recarga /*String*/ ,0);
RDebugUtils.currentLine=1638402;
 //BA.debugLineNum = 1638402;BA.debugLine="If Starter.muestraProgreso = 1 Then";
if (true) break;

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

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

case 4:
//C
this.state = 5;
;
RDebugUtils.currentLine=1638406;
 //BA.debugLineNum = 1638406;BA.debugLine="Dim ph As Phone 'Get Id Device";
_ph = new anywheresoftware.b4a.phone.Phone();
RDebugUtils.currentLine=1638407;
 //BA.debugLineNum = 1638407;BA.debugLine="Dim DeviceID As String = ph.GetSettings(\"android_";
_deviceid = _ph.GetSettings("android_id").toUpperCase();
RDebugUtils.currentLine=1638408;
 //BA.debugLineNum = 1638408;BA.debugLine="LogColor($\"//////////////////   DeviceID: ${Devic";
parent.__c.LogImpl("51638408",("//////////////////   DeviceID: "+parent.__c.SmartStringFormatter("",(Object)(_deviceid))+" ////////////////// "),parent.__c.Colors.Blue);
RDebugUtils.currentLine=1638409;
 //BA.debugLineNum = 1638409;BA.debugLine="DBReqServer = Starter.DBReqServer";
__ref._dbreqserver /*String*/  = parent._starter._dbreqserver /*String*/ ;
RDebugUtils.currentLine=1638410;
 //BA.debugLineNum = 1638410;BA.debugLine="reqManager.Initialize(Me, Starter.DBReqServer)";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._initialize /*String*/ (null,ba,parent,parent._starter._dbreqserver /*String*/ );
RDebugUtils.currentLine=1638411;
 //BA.debugLineNum = 1638411;BA.debugLine="Log(\"|\"&Starter.DBReqServer&\"|\")";
parent.__c.LogImpl("51638411","|"+parent._starter._dbreqserver /*String*/ +"|",0);
RDebugUtils.currentLine=1638412;
 //BA.debugLineNum = 1638412;BA.debugLine="tgl.Initialize()";
__ref._tgl /*com.rootsoft.togglelibrary.ToggleLibrary*/ .Initialize(ba);
RDebugUtils.currentLine=1638413;
 //BA.debugLineNum = 1638413;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then";
if (true) break;

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

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

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

case 9:
//if
this.state = 18;
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")).equals(BA.NumberToString(0))) { 
this.state = 11;
}else {
this.state = 13;
}if (true) break;

case 11:
//C
this.state = 18;
RDebugUtils.currentLine=1638421;
 //BA.debugLineNum = 1638421;BA.debugLine="LogColor($\"No hay fecha: ${c.GetString(\"CUANTOS\"";
parent.__c.LogImpl("51638421",("No hay fecha: "+parent.__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")))+""),parent.__c.Colors.Red);
RDebugUtils.currentLine=1638422;
 //BA.debugLineNum = 1638422;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=1638423;
 //BA.debugLineNum = 1638423;BA.debugLine="cmd.Name = \"select_fecha\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_fecha";
RDebugUtils.currentLine=1638424;
 //BA.debugLineNum = 1638424;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"fecha\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("fecha"));
RDebugUtils.currentLine=1638425;
 //BA.debugLineNum = 1638425;BA.debugLine="Msgbox(\"AJUSTAR FECHA\",\"AVISO\") 'Ignore";
parent.__c.Msgbox(BA.ObjectToCharSequence("AJUSTAR FECHA"),BA.ObjectToCharSequence("AVISO"),ba);
RDebugUtils.currentLine=1638426;
 //BA.debugLineNum = 1638426;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*void*/ (null);
 if (true) break;

case 13:
//C
this.state = 14;
RDebugUtils.currentLine=1638429;
 //BA.debugLineNum = 1638429;BA.debugLine="c=skmt.ExecQuery2(\"select CAT_VA_VALOR from CAT_";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"FECHA"})));
RDebugUtils.currentLine=1638430;
 //BA.debugLineNum = 1638430;BA.debugLine="c.Position =0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=1638431;
 //BA.debugLineNum = 1638431;BA.debugLine="Dim sDate, sTime As String";
parent._sdate = "";
parent._stime = "";
RDebugUtils.currentLine=1638432;
 //BA.debugLineNum = 1638432;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\"";
parent.__c.DateTime.setDateFormat("yyyyMMdd");
RDebugUtils.currentLine=1638433;
 //BA.debugLineNum = 1638433;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
RDebugUtils.currentLine=1638438;
 //BA.debugLineNum = 1638438;BA.debugLine="If c.GetString(\"CAT_VA_VALOR\") > sDate Then";
if (true) break;

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

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

case 17:
//C
this.state = 18;
;
 if (true) break;

case 18:
//C
this.state = -1;
;
RDebugUtils.currentLine=1638443;
 //BA.debugLineNum = 1638443;BA.debugLine="bu.Initialize";
__ref._bu /*SHARK2.keymon.com.mx.batteryutilities*/ ._initialize /*String*/ (null,ba);
RDebugUtils.currentLine=1638444;
 //BA.debugLineNum = 1638444;BA.debugLine="batterystatus = bu.BatteryInformation";
__ref._batterystatus /*int[]*/  = __ref._bu /*SHARK2.keymon.com.mx.batteryutilities*/ ._getbatteryinformation /*int[]*/ (null);
RDebugUtils.currentLine=1638447;
 //BA.debugLineNum = 1638447;BA.debugLine="dameUsuario";
__ref._dameusuario /*String*/ (null);
RDebugUtils.currentLine=1638468;
 //BA.debugLineNum = 1638468;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _dameusuario(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "dameusuario", false))
	 {return ((String) Debug.delegate(ba, "dameusuario", null));}
RDebugUtils.currentLine=2228224;
 //BA.debugLineNum = 2228224;BA.debugLine="Sub dameUsuario";
RDebugUtils.currentLine=2228225;
 //BA.debugLineNum = 2228225;BA.debugLine="c=skmt.ExecQuery2(\"select count(*) as EXISTE1 fro";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select count(*) as EXISTE1 from usuarioa where usuario = ?",new String[]{__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()})));
RDebugUtils.currentLine=2228226;
 //BA.debugLineNum = 2228226;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=2228227;
 //BA.debugLineNum = 2228227;BA.debugLine="existe = c.GetString(\"EXISTE1\")";
__ref._existe /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EXISTE1");
RDebugUtils.currentLine=2228228;
 //BA.debugLineNum = 2228228;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=2228229;
 //BA.debugLineNum = 2228229;BA.debugLine="If existe > 0 Then";
if ((double)(Double.parseDouble(__ref._existe /*String*/ ))>0) { 
RDebugUtils.currentLine=2228230;
 //BA.debugLineNum = 2228230;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
RDebugUtils.currentLine=2228231;
 //BA.debugLineNum = 2228231;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=2228232;
 //BA.debugLineNum = 2228232;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
 }else {
RDebugUtils.currentLine=2228234;
 //BA.debugLineNum = 2228234;BA.debugLine="usuario = \"SINUSUARIO\"";
__ref._usuario /*String*/  = "SINUSUARIO";
 };
RDebugUtils.currentLine=2228236;
 //BA.debugLineNum = 2228236;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper  _b4xpage_closerequest(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b4xpage_closerequest", false))
	 {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "b4xpage_closerequest", null));}
ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this,__ref);
rsub.resume(ba, null);
return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
}
public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
public ResumableSub_B4XPage_CloseRequest(SHARK2.keymon.com.mx.b4xmainpage parent,SHARK2.keymon.com.mx.b4xmainpage __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
SHARK2.keymon.com.mx.b4xmainpage __ref;
SHARK2.keymon.com.mx.b4xmainpage parent;

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

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

case 1:
//if
this.state = 10;
if (__ref._p_add_monto /*anywheresoftware.b4a.objects.PanelWrapper*/ .IsInitialized() && __ref._p_add_monto /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { 
this.state = 3;
}else 
{RDebugUtils.currentLine=1835015;
 //BA.debugLineNum = 1835015;BA.debugLine="Else If p_validacion.IsInitialized And p_validaci";
if (__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .IsInitialized() && __ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { 
this.state = 5;
}else 
{RDebugUtils.currentLine=1835018;
 //BA.debugLineNum = 1835018;BA.debugLine="Else If P_CIEGO.IsInitialized And P_CIEGO.Visible";
if (__ref._p_ciego /*anywheresoftware.b4a.objects.PanelWrapper*/ .IsInitialized() && __ref._p_ciego /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { 
this.state = 7;
}else 
{RDebugUtils.currentLine=1835021;
 //BA.debugLineNum = 1835021;BA.debugLine="Else If p_appUpdate.IsInitialized And p_appUpdate";
if (__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .IsInitialized() && __ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { 
this.state = 9;
}}}}
if (true) break;

case 3:
//C
this.state = 10;
RDebugUtils.currentLine=1835013;
 //BA.debugLineNum = 1835013;BA.debugLine="p_add_monto.Visible = False";
__ref._p_add_monto /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=1835014;
 //BA.debugLineNum = 1835014;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 if (true) break;

case 5:
//C
this.state = 10;
RDebugUtils.currentLine=1835016;
 //BA.debugLineNum = 1835016;BA.debugLine="p_validacion.Visible = False";
__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=1835017;
 //BA.debugLineNum = 1835017;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 if (true) break;

case 7:
//C
this.state = 10;
RDebugUtils.currentLine=1835019;
 //BA.debugLineNum = 1835019;BA.debugLine="MsgboxAsync(\"Debes de terminar el proceso para r";
parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Debes de terminar el proceso para regresar a la pantalla principal"),BA.ObjectToCharSequence("Atención"),ba);
RDebugUtils.currentLine=1835020;
 //BA.debugLineNum = 1835020;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 if (true) break;

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

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

case 12:
//C
this.state = 13;
RDebugUtils.currentLine=1835026;
 //BA.debugLineNum = 1835026;BA.debugLine="Log(\"ExitApplication\")";
parent.__c.LogImpl("51835026","ExitApplication",0);
RDebugUtils.currentLine=1835027;
 //BA.debugLineNum = 1835027;BA.debugLine="ExitApplication";
parent.__c.ExitApplication();
 if (true) break;

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

            }
        }
    }
}
public void  _b4xpage_created(SHARK2.keymon.com.mx.b4xmainpage __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "b4xpage_created", false))
	 {Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}); return;}
ResumableSub_B4XPage_Created rsub = new ResumableSub_B4XPage_Created(this,__ref,_root1);
rsub.resume(ba, null);
}
public static class ResumableSub_B4XPage_Created extends BA.ResumableSub {
public ResumableSub_B4XPage_Created(SHARK2.keymon.com.mx.b4xmainpage parent,SHARK2.keymon.com.mx.b4xmainpage __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) {
this.parent = parent;
this.__ref = __ref;
this._root1 = _root1;
this.__ref = parent;
}
SHARK2.keymon.com.mx.b4xmainpage __ref;
SHARK2.keymon.com.mx.b4xmainpage parent;
anywheresoftware.b4a.objects.B4XViewWrapper _root1;
String _permission = "";
boolean _result = false;
int _sdkversion = 0;
anywheresoftware.b4a.objects.RuntimePermissions _rp = null;
int _res = 0;

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

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

case 0:
//C
this.state = 1;
RDebugUtils.currentLine=1572865;
 //BA.debugLineNum = 1572865;BA.debugLine="B4XPages.GetManager.LogEvents = True";
parent._b4xpages._getmanager /*SHARK2.keymon.com.mx.b4xpagesmanager*/ (ba)._logevents /*boolean*/  = parent.__c.True;
RDebugUtils.currentLine=1572866;
 //BA.debugLineNum = 1572866;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=1572867;
 //BA.debugLineNum = 1572867;BA.debugLine="Root.LoadLayout(\"login\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("login",ba);
RDebugUtils.currentLine=1572868;
 //BA.debugLineNum = 1572868;BA.debugLine="s.Initialize(Me, \"Subs\")";
__ref._s /*SHARK2.keymon.com.mx.c_subs*/ ._initialize /*Object*/ (null,ba,parent,"Subs");
RDebugUtils.currentLine=1572869;
 //BA.debugLineNum = 1572869;BA.debugLine="B4XPages.SetTitle(Me, \"SHARK2\")";
parent._b4xpages._settitle /*String*/ (ba,parent,(Object)("SHARK2"));
RDebugUtils.currentLine=1572870;
 //BA.debugLineNum = 1572870;BA.debugLine="login.Initialize";
__ref._login /*SHARK2.keymon.com.mx.b4xmainpage*/ ._initialize /*String*/ (null,ba);
RDebugUtils.currentLine=1572871;
 //BA.debugLineNum = 1572871;BA.debugLine="B4XPages.AddPage(\"Login\", login)";
parent._b4xpages._addpage /*String*/ (ba,"Login",(Object)(__ref._login /*SHARK2.keymon.com.mx.b4xmainpage*/ ));
RDebugUtils.currentLine=1572872;
 //BA.debugLineNum = 1572872;BA.debugLine="principal.Initialize";
__ref._principal /*SHARK2.keymon.com.mx.c_principal*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1572873;
 //BA.debugLineNum = 1572873;BA.debugLine="B4XPages.AddPage(\"Principal\", principal)";
parent._b4xpages._addpage /*String*/ (ba,"Principal",(Object)(__ref._principal /*SHARK2.keymon.com.mx.c_principal*/ ));
RDebugUtils.currentLine=1572874;
 //BA.debugLineNum = 1572874;BA.debugLine="clientes.Initialize";
__ref._clientes /*SHARK2.keymon.com.mx.c_clientes*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1572875;
 //BA.debugLineNum = 1572875;BA.debugLine="B4XPages.AddPage(\"Clientes\", clientes)";
parent._b4xpages._addpage /*String*/ (ba,"Clientes",(Object)(__ref._clientes /*SHARK2.keymon.com.mx.c_clientes*/ ));
RDebugUtils.currentLine=1572876;
 //BA.debugLineNum = 1572876;BA.debugLine="cliente.Initialize";
__ref._cliente /*SHARK2.keymon.com.mx.c_cliente*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1572877;
 //BA.debugLineNum = 1572877;BA.debugLine="B4XPages.AddPage(\"Cliente\", cliente)";
parent._b4xpages._addpage /*String*/ (ba,"Cliente",(Object)(__ref._cliente /*SHARK2.keymon.com.mx.c_cliente*/ ));
RDebugUtils.currentLine=1572878;
 //BA.debugLineNum = 1572878;BA.debugLine="productos.Initialize";
__ref._productos /*SHARK2.keymon.com.mx.c_productos*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1572879;
 //BA.debugLineNum = 1572879;BA.debugLine="B4XPages.AddPage(\"Productos\", productos)";
parent._b4xpages._addpage /*String*/ (ba,"Productos",(Object)(__ref._productos /*SHARK2.keymon.com.mx.c_productos*/ ));
RDebugUtils.currentLine=1572880;
 //BA.debugLineNum = 1572880;BA.debugLine="updateAvailable.Initialize";
__ref._updateavailable /*SHARK2.keymon.com.mx.c_updateavailable*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1572881;
 //BA.debugLineNum = 1572881;BA.debugLine="B4XPages.AddPage(\"updateAvailable\", updateAvailab";
parent._b4xpages._addpage /*String*/ (ba,"updateAvailable",(Object)(__ref._updateavailable /*SHARK2.keymon.com.mx.c_updateavailable*/ ));
RDebugUtils.currentLine=1572882;
 //BA.debugLineNum = 1572882;BA.debugLine="mapas.Initialize";
__ref._mapas /*SHARK2.keymon.com.mx.c_mapas*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1572883;
 //BA.debugLineNum = 1572883;BA.debugLine="B4XPages.AddPage(\"Mapas\", mapas)";
parent._b4xpages._addpage /*String*/ (ba,"Mapas",(Object)(__ref._mapas /*SHARK2.keymon.com.mx.c_mapas*/ ));
RDebugUtils.currentLine=1572884;
 //BA.debugLineNum = 1572884;BA.debugLine="nuevoCliente.Initialize";
__ref._nuevocliente /*SHARK2.keymon.com.mx.c_nuevocliente*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1572885;
 //BA.debugLineNum = 1572885;BA.debugLine="B4XPages.AddPage(\"NuevoCliente\", nuevoCliente)";
parent._b4xpages._addpage /*String*/ (ba,"NuevoCliente",(Object)(__ref._nuevocliente /*SHARK2.keymon.com.mx.c_nuevocliente*/ ));
RDebugUtils.currentLine=1572886;
 //BA.debugLineNum = 1572886;BA.debugLine="ticketsDia.Initialize";
__ref._ticketsdia /*SHARK2.keymon.com.mx.c_ticketsdia*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1572887;
 //BA.debugLineNum = 1572887;BA.debugLine="B4XPages.AddPage(\"TicketsDia\", ticketsDia)";
parent._b4xpages._addpage /*String*/ (ba,"TicketsDia",(Object)(__ref._ticketsdia /*SHARK2.keymon.com.mx.c_ticketsdia*/ ));
RDebugUtils.currentLine=1572888;
 //BA.debugLineNum = 1572888;BA.debugLine="noVenta.Initialize";
__ref._noventa /*SHARK2.keymon.com.mx.c_noventa*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1572889;
 //BA.debugLineNum = 1572889;BA.debugLine="B4XPages.AddPage(\"NoVenta\", noVenta)";
parent._b4xpages._addpage /*String*/ (ba,"NoVenta",(Object)(__ref._noventa /*SHARK2.keymon.com.mx.c_noventa*/ ));
RDebugUtils.currentLine=1572890;
 //BA.debugLineNum = 1572890;BA.debugLine="nota.Initialize";
__ref._nota /*SHARK2.keymon.com.mx.c_nota*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1572891;
 //BA.debugLineNum = 1572891;BA.debugLine="B4XPages.AddPage(\"Nota\", nota)";
parent._b4xpages._addpage /*String*/ (ba,"Nota",(Object)(__ref._nota /*SHARK2.keymon.com.mx.c_nota*/ ));
RDebugUtils.currentLine=1572892;
 //BA.debugLineNum = 1572892;BA.debugLine="pedidos.Initialize";
__ref._pedidos /*SHARK2.keymon.com.mx.c_pedidos*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1572893;
 //BA.debugLineNum = 1572893;BA.debugLine="B4XPages.AddPage(\"Pedidos\", pedidos)";
parent._b4xpages._addpage /*String*/ (ba,"Pedidos",(Object)(__ref._pedidos /*SHARK2.keymon.com.mx.c_pedidos*/ ));
RDebugUtils.currentLine=1572894;
 //BA.debugLineNum = 1572894;BA.debugLine="promos.Initialize";
__ref._promos /*SHARK2.keymon.com.mx.c_promos*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1572895;
 //BA.debugLineNum = 1572895;BA.debugLine="B4XPages.AddPage(\"Promos\", promos)";
parent._b4xpages._addpage /*String*/ (ba,"Promos",(Object)(__ref._promos /*SHARK2.keymon.com.mx.c_promos*/ ));
RDebugUtils.currentLine=1572896;
 //BA.debugLineNum = 1572896;BA.debugLine="historico.Initialize";
__ref._historico /*SHARK2.keymon.com.mx.c_historico*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1572897;
 //BA.debugLineNum = 1572897;BA.debugLine="B4XPages.AddPage(\"Historico\", historico)";
parent._b4xpages._addpage /*String*/ (ba,"Historico",(Object)(__ref._historico /*SHARK2.keymon.com.mx.c_historico*/ ));
RDebugUtils.currentLine=1572898;
 //BA.debugLineNum = 1572898;BA.debugLine="tabulador.Initialize";
__ref._tabulador /*SHARK2.keymon.com.mx.c_tabulador*/ ._initialize /*Object*/ (null,ba);
RDebugUtils.currentLine=1572899;
 //BA.debugLineNum = 1572899;BA.debugLine="B4XPages.AddPage(\"tabulador\", tabulador)";
parent._b4xpages._addpage /*String*/ (ba,"tabulador",(Object)(__ref._tabulador /*SHARK2.keymon.com.mx.c_tabulador*/ ));
RDebugUtils.currentLine=1572902;
 //BA.debugLineNum = 1572902;BA.debugLine="ruta = Starter.ruta";
__ref._ruta /*String*/  = parent._starter._ruta /*String*/ ;
RDebugUtils.currentLine=1572903;
 //BA.debugLineNum = 1572903;BA.debugLine="Provider.Initialize";
__ref._provider /*SHARK2.keymon.com.mx.fileprovider*/ ._initialize /*String*/ (null,ba);
RDebugUtils.currentLine=1572906;
 //BA.debugLineNum = 1572906;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then";
if (true) break;

case 1:
//if
this.state = 4;
if (parent.__c.File.Exists(__ref._ruta /*String*/ ,"kmt.db")==parent.__c.False) { 
this.state = 3;
}if (true) break;

case 3:
//C
this.state = 4;
RDebugUtils.currentLine=1572907;
 //BA.debugLineNum = 1572907;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d";
parent.__c.File.Copy(parent.__c.File.getDirAssets(),"kmt.db",__ref._ruta /*String*/ ,"kmt.db");
RDebugUtils.currentLine=1572908;
 //BA.debugLineNum = 1572908;BA.debugLine="LogColor(\"copiamos kmt.db de \"&File.DirAssets &";
parent.__c.LogImpl("51572908","copiamos kmt.db de "+parent.__c.File.getDirAssets()+" a "+__ref._ruta /*String*/ ,parent.__c.Colors.Green);
 if (true) break;

case 4:
//C
this.state = 5;
;
RDebugUtils.currentLine=1572912;
 //BA.debugLineNum = 1572912;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .Initialize(__ref._ruta /*String*/ ,"kmt.db",parent.__c.True);
RDebugUtils.currentLine=1572913;
 //BA.debugLineNum = 1572913;BA.debugLine="Subs.guardaAppInfo(skmt)";
parent._subs._guardaappinfo /*String*/ (ba,__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ );
RDebugUtils.currentLine=1572915;
 //BA.debugLineNum = 1572915;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS TABULADOR_MONEDAS(VEINTE TEXT, DIEZ TEXT, CINCO TEXT, DOS TEXT, PESO TEXT, CENTAVO TEXT, TOTAL TEXT)");
RDebugUtils.currentLine=1572916;
 //BA.debugLineNum = 1572916;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS COORDENADAS(LAT TEXT, LONG TEXT, CLIENTE TEXT, CANTIDAD INT)");
RDebugUtils.currentLine=1572917;
 //BA.debugLineNum = 1572917;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS ATIENDE(ATIENDE TEXT, CLIENTE TEXT)");
RDebugUtils.currentLine=1572918;
 //BA.debugLineNum = 1572918;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS GIROS_ACTUAL(GIRO TEXT, CLIENTE TEXT)");
RDebugUtils.currentLine=1572919;
 //BA.debugLineNum = 1572919;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS TABULADOR_BILLETES(MIL TEXT, QUINIENTOS TEXT, DOCIENTOS TEXT, CIEN TEXT, CINCUENTA TEXT, VEINTE TEXT)");
RDebugUtils.currentLine=1572920;
 //BA.debugLineNum = 1572920;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CLI";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CLIENTES_NUEVOS(CN_ID TEXT, CN_FECHA TEXT, CN_USER TEXT, CN_LAT TEXT, CN_LON TEXT, CN_NOMBRE TEXT, CN_DIRECCION TEXT, CN_FOTO TEXT, CN_ALMACEN TEXT, CN_RUTA TEXT,CN_GIRO TEXT)");
RDebugUtils.currentLine=1572921;
 //BA.debugLineNum = 1572921;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS RUT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS RUTAA (RUTAA TEXT)");
RDebugUtils.currentLine=1572922;
 //BA.debugLineNum = 1572922;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS POL";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS POLIGONO (LAT TEXT, LONG TEXT)");
RDebugUtils.currentLine=1572923;
 //BA.debugLineNum = 1572923;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS GEO";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS GEOCERCA (ACTIVA TEXT)");
RDebugUtils.currentLine=1572924;
 //BA.debugLineNum = 1572924;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS COO";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS COORDS_ALMACEN (LAT TEXT, LONG TEXT)");
RDebugUtils.currentLine=1572925;
 //BA.debugLineNum = 1572925;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_CUOTAS (HC_META6 TEXT, HC_META5 TEXT, HC_META4 TEXT, HC_META3 TEXT, HC_META2 TEXT, HC_META1 TEXT, HC_RUTA TEXT, HC_CUOTA1 TEXT, HC_CUOTA2 TEXT, HC_CUOTA3 TEXT, HC_CUOTA4 TEXT, HC_CUOTA5 TEXT, HC_CUOTA6 TEXT)");
RDebugUtils.currentLine=1572926;
 //BA.debugLineNum = 1572926;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_GPS (HGDATE TEXT, HGLAT TEXT, HGLON TEXT)");
RDebugUtils.currentLine=1572927;
 //BA.debugLineNum = 1572927;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CAT_GIRO(GIRO TEXT)");
RDebugUtils.currentLine=1572928;
 //BA.debugLineNum = 1572928;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS PIC";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS PICKCIEGO_HECHO(HECHO TEXT)");
RDebugUtils.currentLine=1572933;
 //BA.debugLineNum = 1572933;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CAT_GUNAPROD (CAT_GP_ID TEXT, CAT_GP_NOMBRE TEXT, CAT_GP_IMP1 TEXT, CAT_GP_IMP2 TEXT, CAT_GP_CLASIF TEXT, CAT_GP_STS INT, CAT_GP_TIPO TEXT, CAT_GP_SUBTIPO TEXT, CAT_GP_IMG BLOB, CAT_GP_ALMACEN INT, CAT_GP_DEV INT, CAT_GP_TIPOPROD TEXT, CAT_GP_INICIATIVA TEXT, CAT_GP_TIPOPROD2 TEXT, CAT_GP_PRECIO1 TEXT, CAT_GP_PRECIO2 TEXT, CAT_GP_PRECIO3 TEXT, CAT_GP_PRECIO4 TEXT, CAT_GP_PRECIO5 TEXT, CAT_GP_PRECIO6 TEXT, CAT_GP_PRECIO7 TEXT, CAT_GP_PRECIO8 TEXT, CAT_GP_PRECIO9 TEXT, CAT_GP_PRECIO10 TEXT, CAT_GP_PRECIO11 TEXT, CAT_GP_PRESENTACION1 TEXT, CAT_GP_PRESENTACION2 TEXT, CAT_GP_PRESENTACION3 TEXT, CAT_GP_PRESENTACION4 TEXT, CAT_GP_PRESENTACION5 TEXT, CAT_GP_PRESENTACION6 TEXT, CAT_GP_PRESENTACION7 TEXT, CAT_GP_PRESENTACION8 TEXT, CAT_GP_PRESENTACION9 TEXT, CAT_GP_PRESENTACION10 TEXT, CAT_GP_PRESENTACION11 TEXT, CAT_GP_UMV1 TEXT, CAT_GP_UMV2 TEXT, CAT_GP_UMV3 TEXT, CAT_GP_UMV4 TEXT, CAT_GP_UMV5 TEXT, CAT_GP_UMV6 TEXT, CAT_GP_UMV7 TEXT, CAT_GP_UMV8 TEXT, CAT_GP_UMV9 TEXT, CAT_GP_UMV10 TEXT, CAT_GP_UMV11 TEXT, CAT_GP_DIRIGIDA1 TEXT, CAT_GP_DIRIGIDA2 TEXT, CAT_GP_DIRIGIDA3 TEXT, CAT_GP_DIRIGIDA4 TEXT, CAT_GP_DIRIGIDA5 TEXT, CAT_GP_DIRIGIDA6 TEXT, CAT_GP_DIRIGIDA7 TEXT, CAT_GP_DIRIGIDA8 TEXT, CAT_GP_DIRIGIDA9 TEXT, CAT_GP_DIRIGIDA10 TEXT, CAT_GP_DIRIGIDA11 TEXT)");
RDebugUtils.currentLine=1572934;
 //BA.debugLineNum = 1572934;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CAT_GUNAPROD2 (CAT_GP_ID TEXT, CAT_GP_NOMBRE TEXT, CAT_GP_IMP1 TEXT, CAT_GP_IMP2 TEXT, CAT_GP_CLASIF TEXT, CAT_GP_STS INT, CAT_GP_TIPO TEXT, CAT_GP_SUBTIPO TEXT, CAT_GP_IMG BLOB, CAT_GP_ALMACEN INT, CAT_GP_DEV INT, CAT_GP_TIPOPROD TEXT, CAT_GP_INICIATIVA TEXT, CAT_GP_TIPOPROD2 TEXT, CAT_GP_PRECIO1 TEXT, CAT_GP_PRECIO2 TEXT, CAT_GP_PRECIO3 TEXT, CAT_GP_PRECIO4 TEXT, CAT_GP_PRECIO5 TEXT, CAT_GP_PRECIO6 TEXT, CAT_GP_PRECIO7 TEXT, CAT_GP_PRECIO8 TEXT, CAT_GP_PRECIO9 TEXT, CAT_GP_PRECIO10 TEXT, CAT_GP_PRECIO11 TEXT, CAT_GP_PRESENTACION1 TEXT, CAT_GP_PRESENTACION2 TEXT, CAT_GP_PRESENTACION3 TEXT, CAT_GP_PRESENTACION4 TEXT, CAT_GP_PRESENTACION5 TEXT, CAT_GP_PRESENTACION6 TEXT, CAT_GP_PRESENTACION7 TEXT, CAT_GP_PRESENTACION8 TEXT, CAT_GP_PRESENTACION9 TEXT, CAT_GP_PRESENTACION10 TEXT, CAT_GP_PRESENTACION11 TEXT, CAT_GP_UMV1 TEXT, CAT_GP_UMV2 TEXT, CAT_GP_UMV3 TEXT, CAT_GP_UMV4 TEXT, CAT_GP_UMV5 TEXT, CAT_GP_UMV6 TEXT, CAT_GP_UMV7 TEXT, CAT_GP_UMV8 TEXT, CAT_GP_UMV9 TEXT, CAT_GP_UMV10 TEXT, CAT_GP_UMV11 TEXT, CAT_GP_DIRIGIDA1 TEXT, CAT_GP_DIRIGIDA2 TEXT, CAT_GP_DIRIGIDA3 TEXT, CAT_GP_DIRIGIDA4 TEXT, CAT_GP_DIRIGIDA5 TEXT, CAT_GP_DIRIGIDA6 TEXT, CAT_GP_DIRIGIDA7 TEXT, CAT_GP_DIRIGIDA8 TEXT, CAT_GP_DIRIGIDA9 TEXT, CAT_GP_DIRIGIDA10 TEXT, CAT_GP_DIRIGIDA11 TEXT)");
RDebugUtils.currentLine=1572939;
 //BA.debugLineNum = 1572939;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CAT_GUNAPROD3 (CAT_GP_INICIATIVA TEXT, CAT_GP_TIPOPROD TEXT, CAT_GP_DEV TEXT, CAT_GP_ALMACEN NUMERIC, CAT_GP_ID TEXT, CAT_GP_NOMBRE TEXT, CAT_GP_IMP1 TEXT, CAT_GP_IMP2 TEXT, CAT_GP_PRECIO TEXT, CAT_GP_CLASIF TEXT, CAT_GP_STS TEXT, CAT_GP_TIPO TEXT, CAT_GP_SUBTIPO TEXT, CAT_GP_IMG BLOB)");
RDebugUtils.currentLine=1572940;
 //BA.debugLineNum = 1572940;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CAT_GUNAPROD4 (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, CAT_DP_CONVERSION1 TEXT, CAT_DP_PRECIO4 TEXT)");
RDebugUtils.currentLine=1572941;
 //BA.debugLineNum = 1572941;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_STAY_STORE (HSS_CODIGO TEXT, HSS_IN TEXT, HSS_OUT TEXT, HSS_TOT TEXT)");
RDebugUtils.currentLine=1572942;
 //BA.debugLineNum = 1572942;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_STAY_OUT (HSO_INI TEXT, HSO_FIN TEXT)");
RDebugUtils.currentLine=1572943;
 //BA.debugLineNum = 1572943;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS INV";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS INVENT_X_ENVIAR (ALMACEN TEXT, PROID TEXT, CANTIDAD TEXT)");
RDebugUtils.currentLine=1572944;
 //BA.debugLineNum = 1572944;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_RESUM_APK (HIST_RA_OBJMES TEXT, HIST_RA_VENTA TEXT, HIST_RA_TENDENCIA TEXT, HIST_RA_ALCANCE TEXT, HISR_RA_DRAOBJ TEXT, HIST_RA_DRAVTA TEXT, HIST_RA_DSOBJ TEXT, HIST_RA_DSVTA TEXT, HIST_RA_VPOOBJ TEXT, HIST_RA_VPOVTA TEXT, HIST_RA_COBCCC TEXT, HIST_RA_CTES TEXT, HIST_RA_ECO TEXT, HIST_RA_VISITPLAN TEXT, HIST_RA_VISIREAL TEXT, HIST_RA_COBVISIT TEXT, HIST_RA_FRECCOMPOBJ TEXT, HIST_RA_FRECCOMREAL TEXT, HIST_RA_VENTAMES1 TEXT, HIST_RA_VENTAMES2 TEXT, HIST_RA_VENTAMES3 TEXT, HIST_RA_VENTAMES4 TEXT, HIST_RA_RECHAZO TEXT, HIST_RA_RECHAZOPORCEN TEXT, HIST_RA_SEMANA1 TEXT, HIST_RA_SEMANA1_DIAS TEXT, HIST_RA_SEMANA1_DRA TEXT, HIST_RA_SEMANA2 TEXT, HIST_RA_SEMANA2_DIAS TEXT, HIST_RA_SEMANA2_DRA TEXT, HIST_RA_SEMANA3 TEXT, HIST_RA_SEMANA3_DIAS TEXT, HIST_RA_SEMANA4 TEXT, HIST_RA_SEMANA3_DRA TEXT, HIST_RA_SEMANA4_DIAS TEXT, HIST_RA_SEMANA4_DRA TEXT, HIST_RA_SEMANA5 TEXT, HIST_RA_SEMANA5_DIAS TEXT, HIST_RA_SEMANA5_DRA TEXT, HIST_RA_SEMANA1_LPT TEXT, HIST_RA_SEMANA2_LPT TEXT, HIST_RA_SEMANA3_LPT TEXT, HIST_RA_SEMANA4_LPT TEXT, HIST_RA_SEMANA5_LPT TEXT, HIST_RA_RUTA TEXT, HIST_RA_IDALMACEN TEXT)");
RDebugUtils.currentLine=1572946;
 //BA.debugLineNum = 1572946;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_GEOCERCA (HGCLIENTE TEXT, HGDATE TEXT, HGLAT TEXT, HGLON TEXT)");
RDebugUtils.currentLine=1572947;
 //BA.debugLineNum = 1572947;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_FACE (HFCLIENTE TEXT, HFALIAS TEXT, HFRUTA TEXT, HFALMACEN TEXT)");
RDebugUtils.currentLine=1572948;
 //BA.debugLineNum = 1572948;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS RUT";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS RUTA_GPS(FECHA INTEGER, LAT TEXT, LON TEXT)");
RDebugUtils.currentLine=1572949;
 //BA.debugLineNum = 1572949;BA.debugLine="skmt.ExecNonQuery(\"CREATE VIEW IF NOT EXISTS CATA";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE VIEW IF NOT EXISTS CATALOGO AS Select CAT_GP_CLASIF, CAT_GP_ID FROM CAT_GUNAPROD UNION Select CAT_GP_CLASIF, CAT_GP_ID FROM CAT_GUNAPROD GROUP BY CAT_GP_CLASIF, CAT_GP_ID");
RDebugUtils.currentLine=1572950;
 //BA.debugLineNum = 1572950;BA.debugLine="skmt.ExecNonQuery(\"CREATE VIEW IF NOT EXISTS tota";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE VIEW IF NOT EXISTS total_marcas AS 	Select  cat_gp_clasif, sum(pe_costo_tot) As total from CATALOGO, pedido where pe_proid = cat_gp_id 	And pe_cliente <> 0 	group by cat_gp_clasif");
RDebugUtils.currentLine=1572951;
 //BA.debugLineNum = 1572951;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_MARCAS_CUOTAS ( HMC_MARCA TEXT, HMC_TOTAL TEXT)");
RDebugUtils.currentLine=1572952;
 //BA.debugLineNum = 1572952;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_CODIGO_BARRAS(CODIGOKMTS TEXT, CODIGOB TEXT, LAT TEXT, LON TEXT)");
RDebugUtils.currentLine=1572953;
 //BA.debugLineNum = 1572953;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ABO";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS ABONOS (a_usuario TEXT, a_ruta TEXT, a_cliente TEXT, a_abono TEXT, a_fecha TEXT, a_enviado TEXT)");
RDebugUtils.currentLine=1572954;
 //BA.debugLineNum = 1572954;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS COO";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS COORDENADAS_GPS (tienda_id TEXT, ruta TEXT, almacen TEXT, latitud TEXT, longitud TEXT, fecha TEXT)");
RDebugUtils.currentLine=1572955;
 //BA.debugLineNum = 1572955;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_CUESTIONARIO (HC_CLIENTE TEXT)");
RDebugUtils.currentLine=1572956;
 //BA.debugLineNum = 1572956;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS PAG";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS PAGARES (PA_ALMACEN TEXT, PA_RUTA TEXT, PA_FECHA TEXT, PA_CAPTURA TEXT, PA_MONTO TEXT, PA_USUARIO TEXT, PA_CLIENTE TEXT)");
RDebugUtils.currentLine=1572957;
 //BA.debugLineNum = 1572957;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS NOV";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS NOVENTA (NV_CLIENTE TEXT, NV_FECHA TEXT, NV_USER TEXT, NV_MOTIVO TEXT, NV_COMM TEXT, NV_LAT TEXT, NV_LON TEXT)");
RDebugUtils.currentLine=1572958;
 //BA.debugLineNum = 1572958;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS PIC";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS PICK_CIEGO (PC_ID_PROD TEXT, PC_NOM_PROD TEXT, PC_CANT TEXT, PC_ALMACEN TEXT, PC_RUTA TEXT, PC_FECHA TEXT)");
RDebugUtils.currentLine=1572959;
 //BA.debugLineNum = 1572959;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ENV";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS ENV_MONTO_LIQ (EML_MONTO TEXT, EML_ALMACEN TEXT, EML_RUTA TEXT, EML_USUARIO TEXT, EML_FECHA_PED TEXT)");
RDebugUtils.currentLine=1572960;
 //BA.debugLineNum = 1572960;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_ENVIO_OK\", \"INT\"";
parent._subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_ENVIO_OK","INT");
RDebugUtils.currentLine=1572961;
 //BA.debugLineNum = 1572961;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_CANTC\", \"TEXT\")";
parent._subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_CANTC","TEXT");
RDebugUtils.currentLine=1572963;
 //BA.debugLineNum = 1572963;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_DIRIGIDA\", \"TEXT";
parent._subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_DIRIGIDA","TEXT");
RDebugUtils.currentLine=1572964;
 //BA.debugLineNum = 1572964;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_UVM\", \"TEXT\")";
parent._subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_UVM","TEXT");
RDebugUtils.currentLine=1572965;
 //BA.debugLineNum = 1572965;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_PRESENTACION\", \"";
parent._subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_PRESENTACION","TEXT");
RDebugUtils.currentLine=1572967;
 //BA.debugLineNum = 1572967;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_BCAJAS\", \"TEXT\")";
parent._subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_BCAJAS","TEXT");
RDebugUtils.currentLine=1572968;
 //BA.debugLineNum = 1572968;BA.debugLine="Subs.agregaColumna(\"NOVENTA\", \"NV_ENVIO_OK\", \"INT";
parent._subs._agregacolumna /*String*/ (ba,"NOVENTA","NV_ENVIO_OK","INT");
RDebugUtils.currentLine=1572969;
 //BA.debugLineNum = 1572969;BA.debugLine="Subs.agregaColumna(\"kmt_info\", \"CAT_CL_BCREDITO\",";
parent._subs._agregacolumna /*String*/ (ba,"kmt_info","CAT_CL_BCREDITO","TEXT");
RDebugUtils.currentLine=1572970;
 //BA.debugLineNum = 1572970;BA.debugLine="Subs.agregaColumna(\"kmt_info\", \"CAT_CL_TIPOCLIENT";
parent._subs._agregacolumna /*String*/ (ba,"kmt_info","CAT_CL_TIPOCLIENTE","TEXT");
RDebugUtils.currentLine=1572971;
 //BA.debugLineNum = 1572971;BA.debugLine="Subs.agregaColumna(\"kmt_info\", \"CAT_CL_BCOORDENAD";
parent._subs._agregacolumna /*String*/ (ba,"kmt_info","CAT_CL_BCOORDENADAS","TEXT");
RDebugUtils.currentLine=1572972;
 //BA.debugLineNum = 1572972;BA.debugLine="Subs.agregaColumna(\"kmt_info\", \"CAT_CL_LIMITECRED";
parent._subs._agregacolumna /*String*/ (ba,"kmt_info","CAT_CL_LIMITECREDITO","TEXT");
RDebugUtils.currentLine=1572973;
 //BA.debugLineNum = 1572973;BA.debugLine="Subs.agregaColumna(\"kmt_info\", \"CAT_CL_LISTA_PREC";
parent._subs._agregacolumna /*String*/ (ba,"kmt_info","CAT_CL_LISTA_PRECIO","TEXT");
RDebugUtils.currentLine=1572974;
 //BA.debugLineNum = 1572974;BA.debugLine="Subs.agregaColumna(\"kmt_info2\", \"CAT_CL_LISTA_PRE";
parent._subs._agregacolumna /*String*/ (ba,"kmt_info2","CAT_CL_LISTA_PRECIO","TEXT");
RDebugUtils.currentLine=1572975;
 //BA.debugLineNum = 1572975;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_TIPOPR";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_TIPOPROD2","TEXT");
RDebugUtils.currentLine=1572976;
 //BA.debugLineNum = 1572976;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_CONVER";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_CONVERSION1","TEXT");
RDebugUtils.currentLine=1572977;
 //BA.debugLineNum = 1572977;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_DIRIGI";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_DIRIGIDA11","TEXT");
RDebugUtils.currentLine=1572978;
 //BA.debugLineNum = 1572978;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_DIRIGI";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_DIRIGIDA10","TEXT");
RDebugUtils.currentLine=1572979;
 //BA.debugLineNum = 1572979;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_DIRIGI";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_DIRIGIDA9","TEXT");
RDebugUtils.currentLine=1572980;
 //BA.debugLineNum = 1572980;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_DIRIGI";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_DIRIGIDA8","TEXT");
RDebugUtils.currentLine=1572981;
 //BA.debugLineNum = 1572981;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_DIRIGI";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_DIRIGIDA7","TEXT");
RDebugUtils.currentLine=1572982;
 //BA.debugLineNum = 1572982;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_DIRIGI";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_DIRIGIDA6","TEXT");
RDebugUtils.currentLine=1572983;
 //BA.debugLineNum = 1572983;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_DIRIGI";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_DIRIGIDA5","TEXT");
RDebugUtils.currentLine=1572984;
 //BA.debugLineNum = 1572984;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_DIRIGI";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_DIRIGIDA4","TEXT");
RDebugUtils.currentLine=1572985;
 //BA.debugLineNum = 1572985;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_DIRIGI";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_DIRIGIDA3","TEXT");
RDebugUtils.currentLine=1572986;
 //BA.debugLineNum = 1572986;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_DIRIGI";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_DIRIGIDA2","TEXT");
RDebugUtils.currentLine=1572987;
 //BA.debugLineNum = 1572987;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_DIRIGI";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_DIRIGIDA1","TEXT");
RDebugUtils.currentLine=1572988;
 //BA.debugLineNum = 1572988;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_UMV11\"";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_UMV11","TEXT");
RDebugUtils.currentLine=1572989;
 //BA.debugLineNum = 1572989;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_UMV10\"";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_UMV10","TEXT");
RDebugUtils.currentLine=1572990;
 //BA.debugLineNum = 1572990;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_UMV9\",";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_UMV9","TEXT");
RDebugUtils.currentLine=1572991;
 //BA.debugLineNum = 1572991;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_UMV8\",";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_UMV8","TEXT");
RDebugUtils.currentLine=1572992;
 //BA.debugLineNum = 1572992;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_UMV7\",";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_UMV7","TEXT");
RDebugUtils.currentLine=1572993;
 //BA.debugLineNum = 1572993;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_UMV6\",";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_UMV6","TEXT");
RDebugUtils.currentLine=1572994;
 //BA.debugLineNum = 1572994;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_UMV5\",";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_UMV5","TEXT");
RDebugUtils.currentLine=1572995;
 //BA.debugLineNum = 1572995;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_UMV4\",";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_UMV4","TEXT");
RDebugUtils.currentLine=1572996;
 //BA.debugLineNum = 1572996;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_UMV3\",";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_UMV3","TEXT");
RDebugUtils.currentLine=1572997;
 //BA.debugLineNum = 1572997;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_UMV2\",";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_UMV2","TEXT");
RDebugUtils.currentLine=1572998;
 //BA.debugLineNum = 1572998;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_UMV1\",";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_UMV1","TEXT");
RDebugUtils.currentLine=1572999;
 //BA.debugLineNum = 1572999;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_PRESEN";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_PRESENTACION11","TEXT");
RDebugUtils.currentLine=1573000;
 //BA.debugLineNum = 1573000;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_PRESEN";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_PRESENTACION10","TEXT");
RDebugUtils.currentLine=1573001;
 //BA.debugLineNum = 1573001;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_PRESEN";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_PRESENTACION9","TEXT");
RDebugUtils.currentLine=1573002;
 //BA.debugLineNum = 1573002;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_PRESEN";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_PRESENTACION8","TEXT");
RDebugUtils.currentLine=1573003;
 //BA.debugLineNum = 1573003;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_PRESEN";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_PRESENTACION7","TEXT");
RDebugUtils.currentLine=1573004;
 //BA.debugLineNum = 1573004;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_PRESEN";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_PRESENTACION6","TEXT");
RDebugUtils.currentLine=1573005;
 //BA.debugLineNum = 1573005;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_PRESEN";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_PRESENTACION5","TEXT");
RDebugUtils.currentLine=1573006;
 //BA.debugLineNum = 1573006;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_PRESEN";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_PRESENTACION4","TEXT");
RDebugUtils.currentLine=1573007;
 //BA.debugLineNum = 1573007;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_PRESEN";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_PRESENTACION3","TEXT");
RDebugUtils.currentLine=1573008;
 //BA.debugLineNum = 1573008;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_PRESEN";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_PRESENTACION2","TEXT");
RDebugUtils.currentLine=1573009;
 //BA.debugLineNum = 1573009;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_PRESEN";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_PRESENTACION1","TEXT");
RDebugUtils.currentLine=1573010;
 //BA.debugLineNum = 1573010;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_PRECIO";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_PRECIO11","TEXT");
RDebugUtils.currentLine=1573011;
 //BA.debugLineNum = 1573011;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_PRECIO";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_PRECIO10","TEXT");
RDebugUtils.currentLine=1573012;
 //BA.debugLineNum = 1573012;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_PRECIO";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_PRECIO9","TEXT");
RDebugUtils.currentLine=1573013;
 //BA.debugLineNum = 1573013;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_PRECIO";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_PRECIO8","TEXT");
RDebugUtils.currentLine=1573014;
 //BA.debugLineNum = 1573014;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_PRECIO";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_PRECIO7","TEXT");
RDebugUtils.currentLine=1573015;
 //BA.debugLineNum = 1573015;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_PRECIO";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_PRECIO6","TEXT");
RDebugUtils.currentLine=1573016;
 //BA.debugLineNum = 1573016;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_PRECIO";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_PRECIO5","TEXT");
RDebugUtils.currentLine=1573017;
 //BA.debugLineNum = 1573017;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_PRECIO";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_PRECIO4","TEXT");
RDebugUtils.currentLine=1573018;
 //BA.debugLineNum = 1573018;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_PRECIO";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_PRECIO3","TEXT");
RDebugUtils.currentLine=1573019;
 //BA.debugLineNum = 1573019;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_PRECIO";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_PRECIO2","TEXT");
RDebugUtils.currentLine=1573020;
 //BA.debugLineNum = 1573020;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_PRECIO";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_PRECIO1","TEXT");
RDebugUtils.currentLine=1573021;
 //BA.debugLineNum = 1573021;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD3\", \"CAT_DP_CONVE";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD3","CAT_DP_CONVERSION1","TEXT");
RDebugUtils.currentLine=1573022;
 //BA.debugLineNum = 1573022;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD3\", \"CAT_DP_PRECI";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD3","CAT_DP_PRECIO4","TEXT");
RDebugUtils.currentLine=1573023;
 //BA.debugLineNum = 1573023;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD2\", \"CAT_DP_CONVE";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD2","CAT_DP_CONVERSION1","TEXT");
RDebugUtils.currentLine=1573024;
 //BA.debugLineNum = 1573024;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD2\", \"CAT_DP_PRECI";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD2","CAT_DP_PRECIO4","TEXT");
RDebugUtils.currentLine=1573025;
 //BA.debugLineNum = 1573025;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD2\", \"CAT_DP_PRECI";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD2","CAT_DP_PRECIO1","TEXT");
RDebugUtils.currentLine=1573026;
 //BA.debugLineNum = 1573026;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD2\", \"CAT_DP_PRECI";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD2","CAT_DP_PRECIO2","TEXT");
RDebugUtils.currentLine=1573027;
 //BA.debugLineNum = 1573027;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD4\", \"CAT_DP_PRECI";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD4","CAT_DP_PRECIO1","TEXT");
RDebugUtils.currentLine=1573028;
 //BA.debugLineNum = 1573028;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD4\", \"CAT_DP_PRECI";
parent._subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD4","CAT_DP_PRECIO2","TEXT");
RDebugUtils.currentLine=1573029;
 //BA.debugLineNum = 1573029;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_SOLICIT";
parent._subs._agregacolumna /*String*/ (ba,"CLIENTES_NUEVOS","CN_SOLICITA","TEXT");
RDebugUtils.currentLine=1573030;
 //BA.debugLineNum = 1573030;BA.debugLine="Subs.agregaColumna(\"ABONOSP\", \"DIA_VENCIMIENTO\",";
parent._subs._agregacolumna /*String*/ (ba,"ABONOSP","DIA_VENCIMIENTO","TEXT");
RDebugUtils.currentLine=1573031;
 //BA.debugLineNum = 1573031;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_COLONIA";
parent._subs._agregacolumna /*String*/ (ba,"CLIENTES_NUEVOS","CN_COLONIA","TEXT");
RDebugUtils.currentLine=1573032;
 //BA.debugLineNum = 1573032;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_TELEFON";
parent._subs._agregacolumna /*String*/ (ba,"CLIENTES_NUEVOS","CN_TELEFONO","TEXT");
RDebugUtils.currentLine=1573033;
 //BA.debugLineNum = 1573033;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_CP\", \"T";
parent._subs._agregacolumna /*String*/ (ba,"CLIENTES_NUEVOS","CN_CP","TEXT");
RDebugUtils.currentLine=1573034;
 //BA.debugLineNum = 1573034;BA.debugLine="c=skmt.ExecQuery(\"select  COUNT(*) AS CUANTOS fro";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select  COUNT(*) AS CUANTOS from HIST_STAY_OUT ")));
RDebugUtils.currentLine=1573039;
 //BA.debugLineNum = 1573039;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO POLIGONO(LAT,LONG";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO POLIGONO(LAT,LONG) VALUES(?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(19.481683012377815),(Object)(-99.14063876529508)}));
RDebugUtils.currentLine=1573040;
 //BA.debugLineNum = 1573040;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO POLIGONO(LAT,LONG";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO POLIGONO(LAT,LONG) VALUES(?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(19.480080935096886),(Object)(-99.15459780214643)}));
RDebugUtils.currentLine=1573046;
 //BA.debugLineNum = 1573046;BA.debugLine="C.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=1573047;
 //BA.debugLineNum = 1573047;BA.debugLine="If c.GetString(\"CUANTOS\")  = 0 Then";
if (true) break;

case 5:
//if
this.state = 8;
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")).equals(BA.NumberToString(0))) { 
this.state = 7;
}if (true) break;

case 7:
//C
this.state = 8;
RDebugUtils.currentLine=1573048;
 //BA.debugLineNum = 1573048;BA.debugLine="skmt.ExecNonQuery(\"INSERT INTO HIST_STAY_OUT(HSO";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("INSERT INTO HIST_STAY_OUT(HSO_INI, HSO_FIN) VALUES (0,0)");
 if (true) break;

case 8:
//C
this.state = 9;
;
RDebugUtils.currentLine=1573050;
 //BA.debugLineNum = 1573050;BA.debugLine="C.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=1573054;
 //BA.debugLineNum = 1573054;BA.debugLine="l_version.Text = Application.VersionName";
__ref._l_version /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(parent.__c.Application.getVersionName()));
RDebugUtils.currentLine=1573055;
 //BA.debugLineNum = 1573055;BA.debugLine="l_version.Visible = True";
__ref._l_version /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(parent.__c.True);
RDebugUtils.currentLine=1573056;
 //BA.debugLineNum = 1573056;BA.debugLine="l_version.BringToFront";
__ref._l_version /*anywheresoftware.b4a.objects.LabelWrapper*/ .BringToFront();
RDebugUtils.currentLine=1573064;
 //BA.debugLineNum = 1573064;BA.debugLine="montoActual  = 0";
__ref._montoactual /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=1573065;
 //BA.debugLineNum = 1573065;BA.debugLine="clientesTotal = 0";
__ref._clientestotal /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=1573066;
 //BA.debugLineNum = 1573066;BA.debugLine="clientesVenta =  0";
__ref._clientesventa /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=1573067;
 //BA.debugLineNum = 1573067;BA.debugLine="clientesVisitados = 0";
__ref._clientesvisitados /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=1573068;
 //BA.debugLineNum = 1573068;BA.debugLine="almacen = 0";
__ref._almacen /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=1573069;
 //BA.debugLineNum = 1573069;BA.debugLine="rutaPreventa =  0";
__ref._rutapreventa /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=1573070;
 //BA.debugLineNum = 1573070;BA.debugLine="p_appUpdate.Visible = False";
__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=1573072;
 //BA.debugLineNum = 1573072;BA.debugLine="LogColor(\"Revisa permisos Phone_State\", Colors.Gr";
parent.__c.LogImpl("51573072","Revisa permisos Phone_State",parent.__c.Colors.Green);
RDebugUtils.currentLine=1573073;
 //BA.debugLineNum = 1573073;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .CheckAndRequest(ba,parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_ACCESS_FINE_LOCATION);
RDebugUtils.currentLine=1573074;
 //BA.debugLineNum = 1573074;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
parent.__c.WaitFor("b4xpage_permissionresult", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "b4xpage_created"), null);
this.state = 35;
return;
case 35:
//C
this.state = 9;
_permission = (String) result[1];
_result = (Boolean) result[2];
;
RDebugUtils.currentLine=1573075;
 //BA.debugLineNum = 1573075;BA.debugLine="If Result Then";
if (true) break;

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

case 11:
//C
this.state = 14;
RDebugUtils.currentLine=1573076;
 //BA.debugLineNum = 1573076;BA.debugLine="Log(\"Con permisos de ubicacion\")";
parent.__c.LogImpl("51573076","Con permisos de ubicacion",0);
 if (true) break;

case 13:
//C
this.state = 14;
RDebugUtils.currentLine=1573078;
 //BA.debugLineNum = 1573078;BA.debugLine="Log(\"SIN permisos de ubicacion\")";
parent.__c.LogImpl("51573078","SIN permisos de ubicacion",0);
 if (true) break;

case 14:
//C
this.state = 15;
;
RDebugUtils.currentLine=1573080;
 //BA.debugLineNum = 1573080;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_COARSE_LOCATION);
RDebugUtils.currentLine=1573081;
 //BA.debugLineNum = 1573081;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
parent.__c.WaitFor("b4xpage_permissionresult", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "b4xpage_created"), null);
this.state = 36;
return;
case 36:
//C
this.state = 15;
_permission = (String) result[1];
_result = (Boolean) result[2];
;
RDebugUtils.currentLine=1573082;
 //BA.debugLineNum = 1573082;BA.debugLine="If Result Then";
if (true) break;

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

case 17:
//C
this.state = 20;
RDebugUtils.currentLine=1573083;
 //BA.debugLineNum = 1573083;BA.debugLine="Log(\"Con permisos de ubicacion\")";
parent.__c.LogImpl("51573083","Con permisos de ubicacion",0);
 if (true) break;

case 19:
//C
this.state = 20;
RDebugUtils.currentLine=1573085;
 //BA.debugLineNum = 1573085;BA.debugLine="Log(\"SIN permisos de ubicacion\")";
parent.__c.LogImpl("51573085","SIN permisos de ubicacion",0);
 if (true) break;

case 20:
//C
this.state = 21;
;
RDebugUtils.currentLine=1573087;
 //BA.debugLineNum = 1573087;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .CheckAndRequest(ba,parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_READ_PHONE_STATE);
RDebugUtils.currentLine=1573088;
 //BA.debugLineNum = 1573088;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
parent.__c.WaitFor("b4xpage_permissionresult", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "b4xpage_created"), null);
this.state = 37;
return;
case 37:
//C
this.state = 21;
_permission = (String) result[1];
_result = (Boolean) result[2];
;
RDebugUtils.currentLine=1573089;
 //BA.debugLineNum = 1573089;BA.debugLine="If Result Then";
if (true) break;

case 21:
//if
this.state = 24;
if (_result) { 
this.state = 23;
}if (true) break;

case 23:
//C
this.state = 24;
 if (true) break;

case 24:
//C
this.state = 25;
;
RDebugUtils.currentLine=1573103;
 //BA.debugLineNum = 1573103;BA.debugLine="MES1.Initialize(Me, \"MES1\")";
__ref._mes1 /*SHARK2.keymon.com.mx.manageexternalstorage*/ ._initialize /*String*/ (null,ba,parent,"MES1");
RDebugUtils.currentLine=1573105;
 //BA.debugLineNum = 1573105;BA.debugLine="Dim SdkVersion As Int = device.SdkVersion";
_sdkversion = __ref._device /*anywheresoftware.b4a.phone.Phone*/ .getSdkVersion();
RDebugUtils.currentLine=1573107;
 //BA.debugLineNum = 1573107;BA.debugLine="If SdkVersion < 30 Then";
if (true) break;

case 25:
//if
this.state = 34;
if (_sdkversion<30) { 
this.state = 27;
}else {
this.state = 29;
}if (true) break;

case 27:
//C
this.state = 34;
RDebugUtils.currentLine=1573109;
 //BA.debugLineNum = 1573109;BA.debugLine="Dim rp As RuntimePermissions";
_rp = new anywheresoftware.b4a.objects.RuntimePermissions();
RDebugUtils.currentLine=1573110;
 //BA.debugLineNum = 1573110;BA.debugLine="rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_";
_rp.CheckAndRequest(ba,_rp.PERMISSION_WRITE_EXTERNAL_STORAGE);
RDebugUtils.currentLine=1573111;
 //BA.debugLineNum = 1573111;BA.debugLine="Wait For Activity_PermissionResult (Permission A";
parent.__c.WaitFor("activity_permissionresult", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "b4xpage_created"), null);
this.state = 38;
return;
case 38:
//C
this.state = 34;
_permission = (String) result[1];
_result = (Boolean) result[2];
;
 if (true) break;

case 29:
//C
this.state = 30;
RDebugUtils.currentLine=1573116;
 //BA.debugLineNum = 1573116;BA.debugLine="If Not(MES1.HasPermission) Then";
if (true) break;

case 30:
//if
this.state = 33;
if (parent.__c.Not(__ref._mes1 /*SHARK2.keymon.com.mx.manageexternalstorage*/ ._haspermission /*boolean*/ (null))) { 
this.state = 32;
}if (true) break;

case 32:
//C
this.state = 33;
RDebugUtils.currentLine=1573117;
 //BA.debugLineNum = 1573117;BA.debugLine="MsgboxAsync(\"This app requires access to all fi";
parent.__c.MsgboxAsync(BA.ObjectToCharSequence("This app requires access to all files, please enable the option"),BA.ObjectToCharSequence("Manage All Files"),ba);
RDebugUtils.currentLine=1573118;
 //BA.debugLineNum = 1573118;BA.debugLine="Wait For Msgbox_Result(Res As Int)";
parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "b4xpage_created"), null);
this.state = 39;
return;
case 39:
//C
this.state = 33;
_res = (Integer) result[1];
;
RDebugUtils.currentLine=1573120;
 //BA.debugLineNum = 1573120;BA.debugLine="MES1.GetPermission";
__ref._mes1 /*SHARK2.keymon.com.mx.manageexternalstorage*/ ._getpermission /*String*/ (null);
RDebugUtils.currentLine=1573121;
 //BA.debugLineNum = 1573121;BA.debugLine="Wait For MES_StorageAvailable";
parent.__c.WaitFor("mes_storageavailable", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "b4xpage_created"), null);
this.state = 40;
return;
case 40:
//C
this.state = 33;
;
 if (true) break;

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

case 34:
//C
this.state = -1;
;
RDebugUtils.currentLine=1573124;
 //BA.debugLineNum = 1573124;BA.debugLine="P_CIEGO.Height = Root.Height";
__ref._p_ciego /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=1573125;
 //BA.debugLineNum = 1573125;BA.debugLine="P_CIEGO.Width = Root.Width";
__ref._p_ciego /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=1573126;
 //BA.debugLineNum = 1573126;BA.debugLine="p_validacion.Height = Root.Height";
__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=1573127;
 //BA.debugLineNum = 1573127;BA.debugLine="p_validacion.Width = Root.Width";
__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=1573128;
 //BA.debugLineNum = 1573128;BA.debugLine="p_add_monto.Height = Root.Height";
__ref._p_add_monto /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=1573129;
 //BA.debugLineNum = 1573129;BA.debugLine="p_add_monto.Width = Root.Width";
__ref._p_add_monto /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=1573132;
 //BA.debugLineNum = 1573132;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _initialize(SHARK2.keymon.com.mx.b4xmainpage __ref,anywheresoftware.b4a.BA _ba) throws Exception{
__ref = this;
innerInitialize(_ba);
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "initialize", false))
	 {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba}));}
RDebugUtils.currentLine=1507328;
 //BA.debugLineNum = 1507328;BA.debugLine="Public Sub Initialize";
RDebugUtils.currentLine=1507330;
 //BA.debugLineNum = 1507330;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
RDebugUtils.currentLine=1441792;
 //BA.debugLineNum = 1441792;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=1441793;
 //BA.debugLineNum = 1441793;BA.debugLine="Dim c2 As Cursor";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=1441794;
 //BA.debugLineNum = 1441794;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=1441795;
 //BA.debugLineNum = 1441795;BA.debugLine="Private Root As B4XView";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=1441796;
 //BA.debugLineNum = 1441796;BA.debugLine="Private xui As XUI";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=1441797;
 //BA.debugLineNum = 1441797;BA.debugLine="Dim s As C_Subs";
_s = new SHARK2.keymon.com.mx.c_subs();
RDebugUtils.currentLine=1441798;
 //BA.debugLineNum = 1441798;BA.debugLine="Public login As B4XMainPage";
_login = new SHARK2.keymon.com.mx.b4xmainpage();
RDebugUtils.currentLine=1441799;
 //BA.debugLineNum = 1441799;BA.debugLine="Public principal As C_Principal";
_principal = new SHARK2.keymon.com.mx.c_principal();
RDebugUtils.currentLine=1441800;
 //BA.debugLineNum = 1441800;BA.debugLine="Public clientes As C_Clientes";
_clientes = new SHARK2.keymon.com.mx.c_clientes();
RDebugUtils.currentLine=1441801;
 //BA.debugLineNum = 1441801;BA.debugLine="Public cliente As C_Cliente";
_cliente = new SHARK2.keymon.com.mx.c_cliente();
RDebugUtils.currentLine=1441802;
 //BA.debugLineNum = 1441802;BA.debugLine="Public productos As C_Productos";
_productos = new SHARK2.keymon.com.mx.c_productos();
RDebugUtils.currentLine=1441803;
 //BA.debugLineNum = 1441803;BA.debugLine="Public updateAvailable As C_UpdateAvailable";
_updateavailable = new SHARK2.keymon.com.mx.c_updateavailable();
RDebugUtils.currentLine=1441804;
 //BA.debugLineNum = 1441804;BA.debugLine="Public mapas As C_Mapas";
_mapas = new SHARK2.keymon.com.mx.c_mapas();
RDebugUtils.currentLine=1441805;
 //BA.debugLineNum = 1441805;BA.debugLine="Public nuevoCliente As C_NuevoCliente";
_nuevocliente = new SHARK2.keymon.com.mx.c_nuevocliente();
RDebugUtils.currentLine=1441806;
 //BA.debugLineNum = 1441806;BA.debugLine="Public ticketsDia As C_TicketsDia";
_ticketsdia = new SHARK2.keymon.com.mx.c_ticketsdia();
RDebugUtils.currentLine=1441807;
 //BA.debugLineNum = 1441807;BA.debugLine="Public noVenta As C_NoVenta";
_noventa = new SHARK2.keymon.com.mx.c_noventa();
RDebugUtils.currentLine=1441808;
 //BA.debugLineNum = 1441808;BA.debugLine="Public nota As C_Nota";
_nota = new SHARK2.keymon.com.mx.c_nota();
RDebugUtils.currentLine=1441809;
 //BA.debugLineNum = 1441809;BA.debugLine="Public pedidos As C_Pedidos";
_pedidos = new SHARK2.keymon.com.mx.c_pedidos();
RDebugUtils.currentLine=1441810;
 //BA.debugLineNum = 1441810;BA.debugLine="Public promos As C_Promos";
_promos = new SHARK2.keymon.com.mx.c_promos();
RDebugUtils.currentLine=1441811;
 //BA.debugLineNum = 1441811;BA.debugLine="Public historico As C_Historico";
_historico = new SHARK2.keymon.com.mx.c_historico();
RDebugUtils.currentLine=1441812;
 //BA.debugLineNum = 1441812;BA.debugLine="Public Provider As FileProvider";
_provider = new SHARK2.keymon.com.mx.fileprovider();
RDebugUtils.currentLine=1441824;
 //BA.debugLineNum = 1441824;BA.debugLine="Dim reqManager As DBRequestManager";
_reqmanager = new SHARK2.keymon.com.mx.dbrequestmanager();
RDebugUtils.currentLine=1441825;
 //BA.debugLineNum = 1441825;BA.debugLine="Dim v As String = Application.VersionName";
_v = __c.Application.getVersionName();
RDebugUtils.currentLine=1441826;
 //BA.debugLineNum = 1441826;BA.debugLine="Dim ruta As String";
_ruta = "";
RDebugUtils.currentLine=1441827;
 //BA.debugLineNum = 1441827;BA.debugLine="Dim tgl As Toggle";
_tgl = new com.rootsoft.togglelibrary.ToggleLibrary();
RDebugUtils.currentLine=1441828;
 //BA.debugLineNum = 1441828;BA.debugLine="Dim lat_gps, lon_gps As String";
_lat_gps = "";
_lon_gps = "";
RDebugUtils.currentLine=1441829;
 //BA.debugLineNum = 1441829;BA.debugLine="Dim usuario As String";
_usuario = "";
RDebugUtils.currentLine=1441830;
 //BA.debugLineNum = 1441830;BA.debugLine="Dim batt As Int";
_batt = 0;
RDebugUtils.currentLine=1441831;
 //BA.debugLineNum = 1441831;BA.debugLine="Dim skmt As SQL";
_skmt = new anywheresoftware.b4a.sql.SQL();
RDebugUtils.currentLine=1441832;
 //BA.debugLineNum = 1441832;BA.debugLine="Dim montoActual, clientesTotal, clientesVenta, cl";
_montoactual = "";
_clientestotal = "";
_clientesventa = "";
_clientesvisitados = "";
_almacen = "";
_rutapreventa = "";
RDebugUtils.currentLine=1441833;
 //BA.debugLineNum = 1441833;BA.debugLine="Dim DBReqServer, fechaRuta As String";
_dbreqserver = "";
_fecharuta = "";
RDebugUtils.currentLine=1441834;
 //BA.debugLineNum = 1441834;BA.debugLine="Dim Logger As Boolean";
_logger = false;
RDebugUtils.currentLine=1441835;
 //BA.debugLineNum = 1441835;BA.debugLine="Dim mac_impresora As String";
_mac_impresora = "";
RDebugUtils.currentLine=1441836;
 //BA.debugLineNum = 1441836;BA.debugLine="Dim Phn As PhoneId";
_phn = new anywheresoftware.b4a.phone.Phone.PhoneId();
RDebugUtils.currentLine=1441838;
 //BA.debugLineNum = 1441838;BA.debugLine="Dim user As EditText";
_user = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=1441839;
 //BA.debugLineNum = 1441839;BA.debugLine="Dim pass As EditText";
_pass = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=1441840;
 //BA.debugLineNum = 1441840;BA.debugLine="Public tabulador As C_tabulador";
_tabulador = new SHARK2.keymon.com.mx.c_tabulador();
RDebugUtils.currentLine=1441841;
 //BA.debugLineNum = 1441841;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=1441842;
 //BA.debugLineNum = 1441842;BA.debugLine="Dim existe As String";
_existe = "";
RDebugUtils.currentLine=1441843;
 //BA.debugLineNum = 1441843;BA.debugLine="Dim paso1 As String";
_paso1 = "";
RDebugUtils.currentLine=1441844;
 //BA.debugLineNum = 1441844;BA.debugLine="Private IMEN As Label";
_imen = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=1441845;
 //BA.debugLineNum = 1441845;BA.debugLine="Dim IMEI As String = \"\"";
_imei = "";
RDebugUtils.currentLine=1441846;
 //BA.debugLineNum = 1441846;BA.debugLine="Dim alterno As String";
_alterno = "";
RDebugUtils.currentLine=1441847;
 //BA.debugLineNum = 1441847;BA.debugLine="Private b_menu As Button";
_b_menu = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=1441848;
 //BA.debugLineNum = 1441848;BA.debugLine="Dim PopupMenu As RSPopupMenu";
_popupmenu = new com.rootsoft.rspopupmenu.RSPopupMenu();
RDebugUtils.currentLine=1441849;
 //BA.debugLineNum = 1441849;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=1441850;
 //BA.debugLineNum = 1441850;BA.debugLine="Private PDF As Button";
_pdf = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=1441851;
 //BA.debugLineNum = 1441851;BA.debugLine="Private bpv1 As BatteryProgressView";
_bpv1 = new batteryprogressviewwrapper.batteryprogressviewWrapper();
RDebugUtils.currentLine=1441852;
 //BA.debugLineNum = 1441852;BA.debugLine="Dim batterystatus(11) As Int";
_batterystatus = new int[(int) (11)];
;
RDebugUtils.currentLine=1441853;
 //BA.debugLineNum = 1441853;BA.debugLine="Private bu As BatteryUtilities";
_bu = new SHARK2.keymon.com.mx.batteryutilities();
RDebugUtils.currentLine=1441854;
 //BA.debugLineNum = 1441854;BA.debugLine="Private b_apk As Button";
_b_apk = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=1441855;
 //BA.debugLineNum = 1441855;BA.debugLine="Private i_engrane As ImageView";
_i_engrane = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=1441856;
 //BA.debugLineNum = 1441856;BA.debugLine="Private p_Main As Panel";
_p_main = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=1441857;
 //BA.debugLineNum = 1441857;BA.debugLine="Private p_appUpdate As Panel";
_p_appupdate = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=1441858;
 //BA.debugLineNum = 1441858;BA.debugLine="Private b_regesar As Button";
_b_regesar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=1441859;
 //BA.debugLineNum = 1441859;BA.debugLine="Private l_version As Label";
_l_version = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=1441860;
 //BA.debugLineNum = 1441860;BA.debugLine="Private ImageView1 As ImageView";
_imageview1 = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=1441861;
 //BA.debugLineNum = 1441861;BA.debugLine="Private Label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=1441862;
 //BA.debugLineNum = 1441862;BA.debugLine="Private Entrar As Button";
_entrar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=1441863;
 //BA.debugLineNum = 1441863;BA.debugLine="Dim tipo_venta As String";
_tipo_venta = "";
RDebugUtils.currentLine=1441864;
 //BA.debugLineNum = 1441864;BA.debugLine="Dim bTerminarClicked As Boolean = False";
_bterminarclicked = __c.False;
RDebugUtils.currentLine=1441865;
 //BA.debugLineNum = 1441865;BA.debugLine="Private lv_server As ListView";
_lv_server = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=1441866;
 //BA.debugLineNum = 1441866;BA.debugLine="Private l_server As Label";
_l_server = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=1441867;
 //BA.debugLineNum = 1441867;BA.debugLine="Private b_enviarbd As Button";
_b_enviarbd = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=1441868;
 //BA.debugLineNum = 1441868;BA.debugLine="Private b_importarBD As Button";
_b_importarbd = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=1441869;
 //BA.debugLineNum = 1441869;BA.debugLine="Dim ime As IME";
_ime = new anywheresoftware.b4a.objects.IME();
RDebugUtils.currentLine=1441870;
 //BA.debugLineNum = 1441870;BA.debugLine="Dim MES1 As ManageExternalStorage";
_mes1 = new SHARK2.keymon.com.mx.manageexternalstorage();
RDebugUtils.currentLine=1441871;
 //BA.debugLineNum = 1441871;BA.debugLine="Dim device As Phone";
_device = new anywheresoftware.b4a.phone.Phone();
RDebugUtils.currentLine=1441872;
 //BA.debugLineNum = 1441872;BA.debugLine="Private et_server As EditText";
_et_server = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=1441873;
 //BA.debugLineNum = 1441873;BA.debugLine="Private b_guardar As Button";
_b_guardar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=1441874;
 //BA.debugLineNum = 1441874;BA.debugLine="Private Panel11 As Panel";
_panel11 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=1441875;
 //BA.debugLineNum = 1441875;BA.debugLine="Private CLV_PICK_CIEGO As CustomListView";
_clv_pick_ciego = new b4a.example3.customlistview();
RDebugUtils.currentLine=1441876;
 //BA.debugLineNum = 1441876;BA.debugLine="Private P_PICK_CIEGO As Panel";
_p_pick_ciego = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=1441877;
 //BA.debugLineNum = 1441877;BA.debugLine="Dim ET_PICK_CIEGO As EditText";
_et_pick_ciego = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=1441878;
 //BA.debugLineNum = 1441878;BA.debugLine="Private L_PICK_CIEGO As Label";
_l_pick_ciego = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=1441879;
 //BA.debugLineNum = 1441879;BA.debugLine="Private P_CIEGO As Panel";
_p_ciego = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=1441880;
 //BA.debugLineNum = 1441880;BA.debugLine="Dim Panel4 As Panel";
_panel4 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=1441881;
 //BA.debugLineNum = 1441881;BA.debugLine="Dim q_buscar As String";
_q_buscar = "";
RDebugUtils.currentLine=1441882;
 //BA.debugLineNum = 1441882;BA.debugLine="Private et_buspc As EditText";
_et_buspc = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=1441883;
 //BA.debugLineNum = 1441883;BA.debugLine="Dim d As Cursor";
_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=1441884;
 //BA.debugLineNum = 1441884;BA.debugLine="Dim a As Cursor";
_a = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=1441885;
 //BA.debugLineNum = 1441885;BA.debugLine="Dim f As Cursor";
_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=1441886;
 //BA.debugLineNum = 1441886;BA.debugLine="Dim idenviar As String";
_idenviar = "";
RDebugUtils.currentLine=1441887;
 //BA.debugLineNum = 1441887;BA.debugLine="Private et_codigo As EditText";
_et_codigo = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=1441888;
 //BA.debugLineNum = 1441888;BA.debugLine="Private b_cancelarcodigo As Button";
_b_cancelarcodigo = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=1441889;
 //BA.debugLineNum = 1441889;BA.debugLine="Private b_aceptar As Button";
_b_aceptar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=1441890;
 //BA.debugLineNum = 1441890;BA.debugLine="Private p_validacion As Panel";
_p_validacion = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=1441891;
 //BA.debugLineNum = 1441891;BA.debugLine="Private b_recarga As Button";
_b_recarga = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=1441892;
 //BA.debugLineNum = 1441892;BA.debugLine="Dim recarga As String = \"0\"";
_recarga = "0";
RDebugUtils.currentLine=1441893;
 //BA.debugLineNum = 1441893;BA.debugLine="Private p_add_monto As Panel";
_p_add_monto = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=1441894;
 //BA.debugLineNum = 1441894;BA.debugLine="Private B_Can_Monto As Button";
_b_can_monto = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=1441895;
 //BA.debugLineNum = 1441895;BA.debugLine="Private B_Aceptar_Monto As Button";
_b_aceptar_monto = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=1441896;
 //BA.debugLineNum = 1441896;BA.debugLine="Private ET_Add_Monto As EditText";
_et_add_monto = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=1441897;
 //BA.debugLineNum = 1441897;BA.debugLine="End Sub";
return "";
}
public void  _copiadb(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "copiadb", false))
	 {Debug.delegate(ba, "copiadb", null); return;}
ResumableSub_copiaDB rsub = new ResumableSub_copiaDB(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_copiaDB extends BA.ResumableSub {
public ResumableSub_copiaDB(SHARK2.keymon.com.mx.b4xmainpage parent,SHARK2.keymon.com.mx.b4xmainpage __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
SHARK2.keymon.com.mx.b4xmainpage __ref;
SHARK2.keymon.com.mx.b4xmainpage parent;
String _permission = "";
boolean _result = false;
String _thedir = "";

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

    while (true) {
try {

        switch (state) {
            case -1:
return;

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

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

case 3:
//C
this.state = 4;
RDebugUtils.currentLine=2293771;
 //BA.debugLineNum = 2293771;BA.debugLine="Dim theDir As String";
_thedir = "";
RDebugUtils.currentLine=2293772;
 //BA.debugLineNum = 2293772;BA.debugLine="Try";
if (true) break;

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

case 6:
//C
this.state = 9;
this.catchState = 8;
RDebugUtils.currentLine=2293773;
 //BA.debugLineNum = 2293773;BA.debugLine="File.MakeDir(File.DirInternal,\"kmts\")";
parent.__c.File.MakeDir(parent.__c.File.getDirInternal(),"kmts");
RDebugUtils.currentLine=2293774;
 //BA.debugLineNum = 2293774;BA.debugLine="theDir = \"/kmts\"";
_thedir = "/kmts";
 if (true) break;

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

case 9:
//try
this.state = 14;
this.catchState = 0;
this.catchState = 13;
this.state = 11;
if (true) break;

case 11:
//C
this.state = 14;
this.catchState = 13;
RDebugUtils.currentLine=2293779;
 //BA.debugLineNum = 2293779;BA.debugLine="File.Copy(File.DirInternal,\"kmt.db\",File.DirInt";
parent.__c.File.Copy(parent.__c.File.getDirInternal(),"kmt.db",parent.__c.File.getDirInternal()+_thedir,"SHARK2_kmt.db");
RDebugUtils.currentLine=2293780;
 //BA.debugLineNum = 2293780;BA.debugLine="ToastMessageShow(\"Listo, copiado a \" & File.Dir";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Listo, copiado a "+parent.__c.File.getDirInternal()+_thedir+"/SHARK2_kmt.db"),parent.__c.False);
 if (true) break;

case 13:
//C
this.state = 14;
this.catchState = 0;
RDebugUtils.currentLine=2293782;
 //BA.debugLineNum = 2293782;BA.debugLine="ToastMessageShow(\"No se pudo hacer la copia: \"&";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("No se pudo hacer la copia: "+BA.ObjectToString(parent.__c.LastException(ba))),parent.__c.True);
 if (true) break;
if (true) break;

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

case 16:
//C
this.state = 17;
RDebugUtils.currentLine=2293785;
 //BA.debugLineNum = 2293785;BA.debugLine="ToastMessageShow(\"Sin permisos\", False)";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Sin permisos"),parent.__c.False);
 if (true) break;

case 17:
//C
this.state = -1;
;
RDebugUtils.currentLine=2293787;
 //BA.debugLineNum = 2293787;BA.debugLine="End Sub";
if (true) break;
}} 
       catch (Exception e0) {
			
if (catchState == 0)
    throw e0;
else {
    state = catchState;
ba.setLastException(e0);}
            }
        }
    }
}
public anywheresoftware.b4a.objects.PanelWrapper  _createlistitem(SHARK2.keymon.com.mx.b4xmainpage __ref,String _id_prod,String _prod,String _cant) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "createlistitem", false))
	 {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem", new Object[] {_id_prod,_prod,_cant}));}
anywheresoftware.b4a.objects.B4XViewWrapper _pa = null;
RDebugUtils.currentLine=3211264;
 //BA.debugLineNum = 3211264;BA.debugLine="Sub CreateListItem(Id_prod As String, Prod As Stri";
RDebugUtils.currentLine=3211265;
 //BA.debugLineNum = 3211265;BA.debugLine="Dim pa As B4XView = xui.CreatePanel(\"\")";
_pa = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pa = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"");
RDebugUtils.currentLine=3211266;
 //BA.debugLineNum = 3211266;BA.debugLine="pa.SetLayoutAnimated(0, 0, 0, 1, 10)";
_pa.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (1),(int) (10));
RDebugUtils.currentLine=3211267;
 //BA.debugLineNum = 3211267;BA.debugLine="pa.LoadLayout(\"PANEL_PICK_CIEGO\")";
_pa.LoadLayout("PANEL_PICK_CIEGO",ba);
RDebugUtils.currentLine=3211268;
 //BA.debugLineNum = 3211268;BA.debugLine="pa.Height = 55dip";
_pa.setHeight(__c.DipToCurrent((int) (55)));
RDebugUtils.currentLine=3211269;
 //BA.debugLineNum = 3211269;BA.debugLine="pa.Width = 298dip";
_pa.setWidth(__c.DipToCurrent((int) (298)));
RDebugUtils.currentLine=3211271;
 //BA.debugLineNum = 3211271;BA.debugLine="L_PICK_CIEGO.Text = Id_prod &  CRLF & Prod";
__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_id_prod+__c.CRLF+_prod));
RDebugUtils.currentLine=3211272;
 //BA.debugLineNum = 3211272;BA.debugLine="L_PICK_CIEGO.TextSize = 12";
__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (12));
RDebugUtils.currentLine=3211273;
 //BA.debugLineNum = 3211273;BA.debugLine="L_PICK_CIEGO.Gravity = Bit.Or(Gravity.CENTER_VERT";
__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setGravity(__c.Bit.Or(__c.Gravity.CENTER_VERTICAL,__c.Gravity.CENTER_HORIZONTAL));
RDebugUtils.currentLine=3211274;
 //BA.debugLineNum = 3211274;BA.debugLine="ET_PICK_CIEGO.Text = cant";
__ref._et_pick_ciego /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_cant));
RDebugUtils.currentLine=3211277;
 //BA.debugLineNum = 3211277;BA.debugLine="Return pa";
if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_pa.getObject()));
RDebugUtils.currentLine=3211278;
 //BA.debugLineNum = 3211278;BA.debugLine="End Sub";
return null;
}
public anywheresoftware.b4a.objects.PanelWrapper  _createlistitem2(SHARK2.keymon.com.mx.b4xmainpage __ref,String _id_prod,String _prod) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "createlistitem2", false))
	 {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem2", new Object[] {_id_prod,_prod}));}
anywheresoftware.b4a.objects.B4XViewWrapper _pa = null;
RDebugUtils.currentLine=3276800;
 //BA.debugLineNum = 3276800;BA.debugLine="Sub CreateListItem2(Id_prod As String, Prod As Str";
RDebugUtils.currentLine=3276801;
 //BA.debugLineNum = 3276801;BA.debugLine="Dim pa As B4XView = xui.CreatePanel(\"\")";
_pa = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pa = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"");
RDebugUtils.currentLine=3276802;
 //BA.debugLineNum = 3276802;BA.debugLine="pa.SetLayoutAnimated(0, 0, 0, 1, 10)";
_pa.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (1),(int) (10));
RDebugUtils.currentLine=3276803;
 //BA.debugLineNum = 3276803;BA.debugLine="pa.LoadLayout(\"PANEL_PICK_CIEGO\")";
_pa.LoadLayout("PANEL_PICK_CIEGO",ba);
RDebugUtils.currentLine=3276804;
 //BA.debugLineNum = 3276804;BA.debugLine="pa.Height = 55dip";
_pa.setHeight(__c.DipToCurrent((int) (55)));
RDebugUtils.currentLine=3276805;
 //BA.debugLineNum = 3276805;BA.debugLine="pa.Width = 298dip";
_pa.setWidth(__c.DipToCurrent((int) (298)));
RDebugUtils.currentLine=3276807;
 //BA.debugLineNum = 3276807;BA.debugLine="L_PICK_CIEGO.Text = Id_prod &  CRLF & Prod";
__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_id_prod+__c.CRLF+_prod));
RDebugUtils.currentLine=3276808;
 //BA.debugLineNum = 3276808;BA.debugLine="L_PICK_CIEGO.TextSize = 12";
__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (12));
RDebugUtils.currentLine=3276809;
 //BA.debugLineNum = 3276809;BA.debugLine="L_PICK_CIEGO.Gravity = Bit.Or(Gravity.CENTER_VERT";
__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setGravity(__c.Bit.Or(__c.Gravity.CENTER_VERTICAL,__c.Gravity.CENTER_HORIZONTAL));
RDebugUtils.currentLine=3276812;
 //BA.debugLineNum = 3276812;BA.debugLine="Return pa";
if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_pa.getObject()));
RDebugUtils.currentLine=3276813;
 //BA.debugLineNum = 3276813;BA.debugLine="End Sub";
return null;
}
public String  _entrar_click(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "entrar_click", false))
	 {return ((String) Debug.delegate(ba, "entrar_click", null));}
anywheresoftware.b4a.agraham.reflection.Reflection _r = null;
int _api = 0;
anywheresoftware.b4a.phone.Phone _pp = null;
int _id = 0;
RDebugUtils.currentLine=1703936;
 //BA.debugLineNum = 1703936;BA.debugLine="Sub Entrar_Click";
RDebugUtils.currentLine=1703937;
 //BA.debugLineNum = 1703937;BA.debugLine="Log(\"|\" & Starter.DBReqServer)";
__c.LogImpl("51703937","|"+_starter._dbreqserver /*String*/ ,0);
RDebugUtils.currentLine=1703938;
 //BA.debugLineNum = 1703938;BA.debugLine="Dim r As Reflector";
_r = new anywheresoftware.b4a.agraham.reflection.Reflection();
RDebugUtils.currentLine=1703939;
 //BA.debugLineNum = 1703939;BA.debugLine="Dim Api As Int";
_api = 0;
RDebugUtils.currentLine=1703940;
 //BA.debugLineNum = 1703940;BA.debugLine="Dim PP As Phone";
_pp = new anywheresoftware.b4a.phone.Phone();
RDebugUtils.currentLine=1703941;
 //BA.debugLineNum = 1703941;BA.debugLine="Api = r.GetStaticField(\"android.os.Build$VERSION\"";
_api = (int)(BA.ObjectToNumber(_r.GetStaticField("android.os.Build$VERSION","SDK_INT")));
RDebugUtils.currentLine=1703942;
 //BA.debugLineNum = 1703942;BA.debugLine="If Api < 9 Then";
if (_api<9) { 
RDebugUtils.currentLine=1703944;
 //BA.debugLineNum = 1703944;BA.debugLine="If File.Exists(File.DirInternal, \"__id\") Then";
if (__c.File.Exists(__c.File.getDirInternal(),"__id")) { 
RDebugUtils.currentLine=1703945;
 //BA.debugLineNum = 1703945;BA.debugLine="IMEI =  File.ReadString(File.DirInternal, \"__id";
__ref._imei /*String*/  = __c.File.ReadString(__c.File.getDirInternal(),"__id");
RDebugUtils.currentLine=1703946;
 //BA.debugLineNum = 1703946;BA.debugLine="Log(1&\"-\"&IMEI)";
__c.LogImpl("51703946",BA.NumberToString(1)+"-"+__ref._imei /*String*/ ,0);
 }else {
RDebugUtils.currentLine=1703948;
 //BA.debugLineNum = 1703948;BA.debugLine="Dim id As Int";
_id = 0;
RDebugUtils.currentLine=1703949;
 //BA.debugLineNum = 1703949;BA.debugLine="id = Rnd(0x10000000, 0x7FFFFFFF)";
_id = __c.Rnd(((int)0x10000000),((int)0x7fffffff));
RDebugUtils.currentLine=1703950;
 //BA.debugLineNum = 1703950;BA.debugLine="File.WriteString(File.DirInternal, \"__id\", id)";
__c.File.WriteString(__c.File.getDirInternal(),"__id",BA.NumberToString(_id));
RDebugUtils.currentLine=1703951;
 //BA.debugLineNum = 1703951;BA.debugLine="IMEI =  id";
__ref._imei /*String*/  = BA.NumberToString(_id);
RDebugUtils.currentLine=1703952;
 //BA.debugLineNum = 1703952;BA.debugLine="Log(2&\"-\"&IMEI)";
__c.LogImpl("51703952",BA.NumberToString(2)+"-"+__ref._imei /*String*/ ,0);
 };
 }else {
RDebugUtils.currentLine=1703956;
 //BA.debugLineNum = 1703956;BA.debugLine="IMEI =  r.GetStaticField(\"android.os.Build\", \"SE";
__ref._imei /*String*/  = BA.ObjectToString(_r.GetStaticField("android.os.Build","SERIAL"));
 };
RDebugUtils.currentLine=1703959;
 //BA.debugLineNum = 1703959;BA.debugLine="If IMEI.ToLowerCase = \"unknown\" Then";
if ((__ref._imei /*String*/ .toLowerCase()).equals("unknown")) { 
RDebugUtils.currentLine=1703960;
 //BA.debugLineNum = 1703960;BA.debugLine="IMEI = PP.GetSettings(\"android_id\")";
__ref._imei /*String*/  = _pp.GetSettings("android_id");
 };
RDebugUtils.currentLine=1703964;
 //BA.debugLineNum = 1703964;BA.debugLine="If user.Text = \"ALTERNO\" Then";
if ((__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("ALTERNO")) { 
RDebugUtils.currentLine=1703965;
 //BA.debugLineNum = 1703965;BA.debugLine="c=skmt.ExecQuery2(\"select CAT_CO_CONFIGURACION,";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_CO_CONFIGURACION, CAT_CO_RESULTADO from CAT_CODIGOS where CAT_CO_PONDERACION =1 AND CAT_CO_ACCION = ?",new String[]{"SERVER"})));
RDebugUtils.currentLine=1703966;
 //BA.debugLineNum = 1703966;BA.debugLine="c.Position =0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=1703967;
 //BA.debugLineNum = 1703967;BA.debugLine="DBReqServer = c.GetString(\"CAT_CO_CONFIGURACION\"";
__ref._dbreqserver /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CO_CONFIGURACION");
RDebugUtils.currentLine=1703968;
 //BA.debugLineNum = 1703968;BA.debugLine="alterno = c.GetString(\"CAT_CO_RESULTADO\")";
__ref._alterno /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CO_RESULTADO");
RDebugUtils.currentLine=1703969;
 //BA.debugLineNum = 1703969;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=1703970;
 //BA.debugLineNum = 1703970;BA.debugLine="If alterno = 1 Then";
if ((__ref._alterno /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=1703971;
 //BA.debugLineNum = 1703971;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE CAT_CODIGOS SET CAT_";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE CAT_CODIGOS SET CAT_CO_PONDERACION = 1 WHERE CAT_CO_ACCION = ? AND CAT_CO_RESULTADO = 2",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"SERVER"}));
RDebugUtils.currentLine=1703972;
 //BA.debugLineNum = 1703972;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE CAT_CODIGOS SET CAT_";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE CAT_CODIGOS SET CAT_CO_PONDERACION = 0 WHERE CAT_CO_ACCION = ? AND CAT_CO_RESULTADO = 1",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"SERVER"}));
 }else 
{RDebugUtils.currentLine=1703973;
 //BA.debugLineNum = 1703973;BA.debugLine="Else if alterno = 2 Then";
if ((__ref._alterno /*String*/ ).equals(BA.NumberToString(2))) { 
RDebugUtils.currentLine=1703974;
 //BA.debugLineNum = 1703974;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE CAT_CODIGOS SET CAT_";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE CAT_CODIGOS SET CAT_CO_PONDERACION = 1 WHERE CAT_CO_ACCION = ? AND CAT_CO_RESULTADO = 1",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"SERVER"}));
RDebugUtils.currentLine=1703975;
 //BA.debugLineNum = 1703975;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE CAT_CODIGOS SET CAT_";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE CAT_CODIGOS SET CAT_CO_PONDERACION = 0 WHERE CAT_CO_ACCION = ? AND CAT_CO_RESULTADO = 2",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"SERVER"}));
 }}
;
RDebugUtils.currentLine=1703977;
 //BA.debugLineNum = 1703977;BA.debugLine="c=skmt.ExecQuery2(\"select CAT_CO_CONFIGURACION,";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_CO_CONFIGURACION, CAT_CO_RESULTADO from CAT_CODIGOS where CAT_CO_PONDERACION =1 AND CAT_CO_ACCION = ?",new String[]{"SERVER"})));
RDebugUtils.currentLine=1703978;
 //BA.debugLineNum = 1703978;BA.debugLine="c.Position =0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=1703979;
 //BA.debugLineNum = 1703979;BA.debugLine="DBReqServer = c.GetString(\"CAT_CO_CONFIGURACION\"";
__ref._dbreqserver /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CO_CONFIGURACION");
RDebugUtils.currentLine=1703980;
 //BA.debugLineNum = 1703980;BA.debugLine="user.Text = DBReqServer";
__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(__ref._dbreqserver /*String*/ ));
RDebugUtils.currentLine=1703981;
 //BA.debugLineNum = 1703981;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else 
{RDebugUtils.currentLine=1703983;
 //BA.debugLineNum = 1703983;BA.debugLine="else if user.Text = \"KMTS1\" Then";
if ((__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("KMTS1")) { 
RDebugUtils.currentLine=1703984;
 //BA.debugLineNum = 1703984;BA.debugLine="skmt.ExecNonQuery(\"delete from usuarioa\")";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from usuarioa");
RDebugUtils.currentLine=1703985;
 //BA.debugLineNum = 1703985;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO USUARIOA VALUES";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO USUARIOA VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._pass /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())}));
RDebugUtils.currentLine=1703986;
 //BA.debugLineNum = 1703986;BA.debugLine="skmt.ExecNonQuery(\"delete from cat_almacen\")";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_almacen");
RDebugUtils.currentLine=1703987;
 //BA.debugLineNum = 1703987;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_ALMACEN(ID_A";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._pass /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())}));
RDebugUtils.currentLine=1703988;
 //BA.debugLineNum = 1703988;BA.debugLine="skmt.ExecNonQuery(\"delete from VERSION\")";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION");
RDebugUtils.currentLine=1703989;
 //BA.debugLineNum = 1703989;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO VERSION(NOVERSIO";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("2.1")}));
RDebugUtils.currentLine=1703990;
 //BA.debugLineNum = 1703990;BA.debugLine="B4XPages.ShowPage(\"Clientes\")";
_b4xpages._showpage /*String*/ (ba,"Clientes");
 }else 
{RDebugUtils.currentLine=1703991;
 //BA.debugLineNum = 1703991;BA.debugLine="else if user.Text = \"BERNA1\" Then";
if ((__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("BERNA1")) { 
RDebugUtils.currentLine=1703992;
 //BA.debugLineNum = 1703992;BA.debugLine="skmt.ExecNonQuery(\"delete from usuarioa\")";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from usuarioa");
RDebugUtils.currentLine=1703993;
 //BA.debugLineNum = 1703993;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO USUARIOA VALUES";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO USUARIOA VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)("1")}));
RDebugUtils.currentLine=1703994;
 //BA.debugLineNum = 1703994;BA.debugLine="skmt.ExecNonQuery(\"delete from cat_almacen\")";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_almacen");
RDebugUtils.currentLine=1703995;
 //BA.debugLineNum = 1703995;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_ALMACEN(ID_A";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("1")}));
RDebugUtils.currentLine=1703996;
 //BA.debugLineNum = 1703996;BA.debugLine="skmt.ExecNonQuery(\"delete from VERSION\")";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION");
RDebugUtils.currentLine=1703997;
 //BA.debugLineNum = 1703997;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO VERSION(NOVERSIO";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("2.1")}));
RDebugUtils.currentLine=1703998;
 //BA.debugLineNum = 1703998;BA.debugLine="B4XPages.ShowPage(\"Clientes\")";
_b4xpages._showpage /*String*/ (ba,"Clientes");
 }else 
{RDebugUtils.currentLine=1703999;
 //BA.debugLineNum = 1703999;BA.debugLine="else if user.Text = \"IMEI\" Then";
if ((__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("IMEI")) { 
RDebugUtils.currentLine=1704000;
 //BA.debugLineNum = 1704000;BA.debugLine="user.Text = IMEI";
__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(__ref._imei /*String*/ ));
 }}}}
;
RDebugUtils.currentLine=1704003;
 //BA.debugLineNum = 1704003;BA.debugLine="c=skmt.ExecQuery2(\"select count(*) as EXISTE1 fro";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select count(*) as EXISTE1 from usuarioa where usuario = ?",new String[]{__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()})));
RDebugUtils.currentLine=1704004;
 //BA.debugLineNum = 1704004;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=1704005;
 //BA.debugLineNum = 1704005;BA.debugLine="existe = c.GetString(\"EXISTE1\")";
__ref._existe /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EXISTE1");
RDebugUtils.currentLine=1704006;
 //BA.debugLineNum = 1704006;BA.debugLine="If existe = 0 Then";
if ((__ref._existe /*String*/ ).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=1704007;
 //BA.debugLineNum = 1704007;BA.debugLine="If IMEI = \"\" Then";
if ((__ref._imei /*String*/ ).equals("")) { 
RDebugUtils.currentLine=1704008;
 //BA.debugLineNum = 1704008;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=1704009;
 //BA.debugLineNum = 1704009;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=1704010;
 //BA.debugLineNum = 1704010;BA.debugLine="cmd.Name = \"select_usuario_SHARK2 \" 'Antes sele";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_usuario_SHARK2 ";
RDebugUtils.currentLine=1704011;
 //BA.debugLineNum = 1704011;BA.debugLine="cmd.Parameters = Array As Object(user.Text.Trim";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText().trim()),(Object)(__ref._pass /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText().trim())};
RDebugUtils.currentLine=1704012;
 //BA.debugLineNum = 1704012;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"usuario_10\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("usuario_10"));
 }else {
RDebugUtils.currentLine=1704014;
 //BA.debugLineNum = 1704014;BA.debugLine="If IMEI = \"\" Then";
if ((__ref._imei /*String*/ ).equals("")) { 
RDebugUtils.currentLine=1704015;
 //BA.debugLineNum = 1704015;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=1704016;
 //BA.debugLineNum = 1704016;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=1704017;
 //BA.debugLineNum = 1704017;BA.debugLine="cmd.Name = \"select_usuario_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_usuario_SHARK2";
RDebugUtils.currentLine=1704018;
 //BA.debugLineNum = 1704018;BA.debugLine="cmd.Parameters = Array As Object(user.Text.Tri";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText().trim()),(Object)(__ref._pass /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText().trim())};
RDebugUtils.currentLine=1704019;
 //BA.debugLineNum = 1704019;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"usuario_10\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("usuario_10"));
 }else {
RDebugUtils.currentLine=1704021;
 //BA.debugLineNum = 1704021;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=1704022;
 //BA.debugLineNum = 1704022;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=1704023;
 //BA.debugLineNum = 1704023;BA.debugLine="cmd.Name = \"select_usuario_SHARK2\" 'Antes sele";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_usuario_SHARK2";
RDebugUtils.currentLine=1704024;
 //BA.debugLineNum = 1704024;BA.debugLine="cmd.Parameters = Array As Object(user.Text.Tri";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText().trim()),(Object)(__ref._pass /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText().trim())};
RDebugUtils.currentLine=1704025;
 //BA.debugLineNum = 1704025;BA.debugLine="Log(\"Mandamos: \"&user.Text&\"|\"& pass.Text)";
__c.LogImpl("51704025","Mandamos: "+__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()+"|"+__ref._pass /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(),0);
RDebugUtils.currentLine=1704026;
 //BA.debugLineNum = 1704026;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"usuario_10\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("usuario_10"));
 };
 };
RDebugUtils.currentLine=1704029;
 //BA.debugLineNum = 1704029;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=1704030;
 //BA.debugLineNum = 1704030;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=1704031;
 //BA.debugLineNum = 1704031;BA.debugLine="cmd.Name = \"select_version_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_version_SHARK2";
RDebugUtils.currentLine=1704032;
 //BA.debugLineNum = 1704032;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"version\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("version"));
 }else {
RDebugUtils.currentLine=1704034;
 //BA.debugLineNum = 1704034;BA.debugLine="usuario = user.Text";
__ref._usuario /*String*/  = __ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText();
RDebugUtils.currentLine=1704035;
 //BA.debugLineNum = 1704035;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
 };
RDebugUtils.currentLine=1704037;
 //BA.debugLineNum = 1704037;BA.debugLine="End Sub";
return "";
}
public String  _entrar_longclick(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "entrar_longclick", false))
	 {return ((String) Debug.delegate(ba, "entrar_longclick", null));}
RDebugUtils.currentLine=2752512;
 //BA.debugLineNum = 2752512;BA.debugLine="Sub Entrar_LongClick";
RDebugUtils.currentLine=2752514;
 //BA.debugLineNum = 2752514;BA.debugLine="End Sub";
return "";
}
public String  _et_buspc_textchanged(SHARK2.keymon.com.mx.b4xmainpage __ref,String _old,String _new) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "et_buspc_textchanged", false))
	 {return ((String) Debug.delegate(ba, "et_buspc_textchanged", new Object[] {_old,_new}));}
int _i = 0;
RDebugUtils.currentLine=3145728;
 //BA.debugLineNum = 3145728;BA.debugLine="Private Sub et_buspc_TextChanged (Old As String, N";
RDebugUtils.currentLine=3145729;
 //BA.debugLineNum = 3145729;BA.debugLine="If New = \"\" Then";
if ((_new).equals("")) { 
RDebugUtils.currentLine=3145730;
 //BA.debugLineNum = 3145730;BA.debugLine="CLV_PICK_CIEGO.Clear";
__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._clear();
 }else 
{RDebugUtils.currentLine=3145731;
 //BA.debugLineNum = 3145731;BA.debugLine="Else If New.Length >= 3 Then";
if (_new.length()>=3) { 
RDebugUtils.currentLine=3145732;
 //BA.debugLineNum = 3145732;BA.debugLine="CLV_PICK_CIEGO.Clear";
__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=3145734;
 //BA.debugLineNum = 3145734;BA.debugLine="q_buscar = \"%\" & et_buspc.Text & \"%\"";
__ref._q_buscar /*String*/  = "%"+__ref._et_buspc /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()+"%";
RDebugUtils.currentLine=3145735;
 //BA.debugLineNum = 3145735;BA.debugLine="Log(q_buscar)";
__c.LogImpl("53145735",__ref._q_buscar /*String*/ ,0);
RDebugUtils.currentLine=3145736;
 //BA.debugLineNum = 3145736;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2($\"select CAT";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_NOMBRE, CAT_GP_ID , ifnull(PC_CANT,0) AS PC_CANT FROM CAT_GUNAPROD3 INNER JOIN PICK_CIEGO ON PC_ID_PROD = CAT_GP_ID AND PC_NOM_PROD = CAT_GP_NOMBRE WHERE (CAT_GP_NOMBRE LIKE ? OR  CAT_GP_ID  LIKE ? ) and CAT_GP_CLASIF <> 'PROMOS'"),new String[]{__ref._q_buscar /*String*/ ,__ref._q_buscar /*String*/ })));
RDebugUtils.currentLine=3145737;
 //BA.debugLineNum = 3145737;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3145740;
 //BA.debugLineNum = 3145740;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step9 = 1;
final int limit9 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit9 ;_i = _i + step9 ) {
RDebugUtils.currentLine=3145741;
 //BA.debugLineNum = 3145741;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3145742;
 //BA.debugLineNum = 3145742;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem(c.GetString(";
__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_NOMBRE"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_CANT")).getObject())),(Object)(_i));
 }
};
RDebugUtils.currentLine=3145745;
 //BA.debugLineNum = 3145745;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3145747;
 //BA.debugLineNum = 3145747;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2($\"select CA";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_NOMBRE, CAT_GP_ID FROM CAT_GUNAPROD3 WHERE (CAT_GP_NOMBRE LIKE ? OR  CAT_GP_ID  LIKE ? ) and CAT_GP_CLASIF <> 'PROMOS'AND CAT_GP_ID NOT IN (SELECT PC_ID_PROD FROM PICK_CIEGO)"),new String[]{__ref._q_buscar /*String*/ ,__ref._q_buscar /*String*/ })));
RDebugUtils.currentLine=3145749;
 //BA.debugLineNum = 3145749;BA.debugLine="For i = 0 To d.RowCount - 1";
{
final int step15 = 1;
final int limit15 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit15 ;_i = _i + step15 ) {
RDebugUtils.currentLine=3145750;
 //BA.debugLineNum = 3145750;BA.debugLine="d.Position = i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3145751;
 //BA.debugLineNum = 3145751;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem2(d.GetString";
__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem2 /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID"),__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_NOMBRE")).getObject())),(Object)(_i));
 }
};
RDebugUtils.currentLine=3145754;
 //BA.debugLineNum = 3145754;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else 
{RDebugUtils.currentLine=3145756;
 //BA.debugLineNum = 3145756;BA.debugLine="Else If c.RowCount = 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
RDebugUtils.currentLine=3145757;
 //BA.debugLineNum = 3145757;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2($\"select CA";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_NOMBRE, CAT_GP_ID FROM CAT_GUNAPROD3 WHERE (CAT_GP_NOMBRE LIKE ? OR  CAT_GP_ID  LIKE ? ) and CAT_GP_CLASIF <> 'PROMOS'"),new String[]{__ref._q_buscar /*String*/ ,__ref._q_buscar /*String*/ })));
RDebugUtils.currentLine=3145759;
 //BA.debugLineNum = 3145759;BA.debugLine="For i = 0 To d.RowCount - 1";
{
final int step22 = 1;
final int limit22 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit22 ;_i = _i + step22 ) {
RDebugUtils.currentLine=3145760;
 //BA.debugLineNum = 3145760;BA.debugLine="d.Position = i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3145761;
 //BA.debugLineNum = 3145761;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem2(d.GetString";
__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem2 /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID"),__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_NOMBRE")).getObject())),(Object)(_i));
 }
};
RDebugUtils.currentLine=3145764;
 //BA.debugLineNum = 3145764;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }}
;
 }}
;
RDebugUtils.currentLine=3145767;
 //BA.debugLineNum = 3145767;BA.debugLine="End Sub";
return "";
}
public String  _et_pick_ciego_textchanged(SHARK2.keymon.com.mx.b4xmainpage __ref,String _old,String _new) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "et_pick_ciego_textchanged", false))
	 {return ((String) Debug.delegate(ba, "et_pick_ciego_textchanged", new Object[] {_old,_new}));}
anywheresoftware.b4a.objects.EditTextWrapper _et = null;
RDebugUtils.currentLine=3342336;
 //BA.debugLineNum = 3342336;BA.debugLine="Sub ET_PICK_CIEGO_TextChanged (Old As String, New";
RDebugUtils.currentLine=3342337;
 //BA.debugLineNum = 3342337;BA.debugLine="Dim et As EditText = Sender";
_et = new anywheresoftware.b4a.objects.EditTextWrapper();
_et = (anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(__c.Sender(ba)));
RDebugUtils.currentLine=3342338;
 //BA.debugLineNum = 3342338;BA.debugLine="If New.Length > 4 Then";
if (_new.length()>4) { 
RDebugUtils.currentLine=3342339;
 //BA.debugLineNum = 3342339;BA.debugLine="et.Text = Old";
_et.setText(BA.ObjectToCharSequence(_old));
 };
RDebugUtils.currentLine=3342341;
 //BA.debugLineNum = 3342341;BA.debugLine="End Sub";
return "";
}
public String  _gps_locationchanged(SHARK2.keymon.com.mx.b4xmainpage __ref,anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "gps_locationchanged", false))
	 {return ((String) Debug.delegate(ba, "gps_locationchanged", new Object[] {_location1}));}
RDebugUtils.currentLine=1900544;
 //BA.debugLineNum = 1900544;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
RDebugUtils.currentLine=1900545;
 //BA.debugLineNum = 1900545;BA.debugLine="If user.text = \"GPS\" Then";
if ((__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("GPS")) { 
RDebugUtils.currentLine=1900546;
 //BA.debugLineNum = 1900546;BA.debugLine="user.Text=Location1.Latitude";
__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_location1.getLatitude()));
RDebugUtils.currentLine=1900547;
 //BA.debugLineNum = 1900547;BA.debugLine="pass.text=Location1.Longitude";
__ref._pass /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_location1.getLongitude()));
 };
RDebugUtils.currentLine=1900549;
 //BA.debugLineNum = 1900549;BA.debugLine="End Sub";
return "";
}
public String  _i_engrane_click(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "i_engrane_click", false))
	 {return ((String) Debug.delegate(ba, "i_engrane_click", null));}
RDebugUtils.currentLine=2555904;
 //BA.debugLineNum = 2555904;BA.debugLine="Sub i_engrane_Click";
RDebugUtils.currentLine=2555905;
 //BA.debugLineNum = 2555905;BA.debugLine="lv_server.Clear";
__ref._lv_server /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=2555906;
 //BA.debugLineNum = 2555906;BA.debugLine="ime.HideKeyboard";
__ref._ime /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba);
RDebugUtils.currentLine=2555907;
 //BA.debugLineNum = 2555907;BA.debugLine="lv_server.AddSingleLine(\"http://keymon.net:1781\")";
__ref._lv_server /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddSingleLine(BA.ObjectToCharSequence("http://keymon.net:1781"));
RDebugUtils.currentLine=2555909;
 //BA.debugLineNum = 2555909;BA.debugLine="If user.Text = \"KMTS1\" Then lv_server.AddSingleLi";
if ((__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("KMTS1")) { 
__ref._lv_server /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddSingleLine(BA.ObjectToCharSequence("http://10.0.0.205:1781"));};
RDebugUtils.currentLine=2555911;
 //BA.debugLineNum = 2555911;BA.debugLine="Log($\"|${Starter.DBReqServer}|\"$)";
__c.LogImpl("52555911",("|"+__c.SmartStringFormatter("",(Object)(_starter._dbreqserver /*String*/ ))+"|"),0);
RDebugUtils.currentLine=2555913;
 //BA.debugLineNum = 2555913;BA.debugLine="et_server.Text = Starter.DBReqServer";
__ref._et_server /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_starter._dbreqserver /*String*/ ));
RDebugUtils.currentLine=2555914;
 //BA.debugLineNum = 2555914;BA.debugLine="Subs.panelVisible(p_appUpdate,0,0)";
_subs._panelvisible /*String*/ (ba,__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
RDebugUtils.currentLine=2555915;
 //BA.debugLineNum = 2555915;BA.debugLine="If user.Text.trim = \"KMTS1\" Then b_importarBD.Vis";
if ((__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText().trim()).equals("KMTS1")) { 
__ref._b_importarbd /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);}
else {
__ref._b_importarbd /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);};
RDebugUtils.currentLine=2555916;
 //BA.debugLineNum = 2555916;BA.debugLine="End Sub";
return "";
}
public String  _i_engrane_longclick(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "i_engrane_longclick", false))
	 {return ((String) Debug.delegate(ba, "i_engrane_longclick", null));}
RDebugUtils.currentLine=2686976;
 //BA.debugLineNum = 2686976;BA.debugLine="Sub i_engrane_LongClick";
RDebugUtils.currentLine=2686977;
 //BA.debugLineNum = 2686977;BA.debugLine="copiaDB";
__ref._copiadb /*void*/ (null);
RDebugUtils.currentLine=2686978;
 //BA.debugLineNum = 2686978;BA.debugLine="End Sub";
return "";
}
public String  _jobdone(SHARK2.keymon.com.mx.b4xmainpage __ref,SHARK2.keymon.com.mx.httpjob _job) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "jobdone", false))
	 {return ((String) Debug.delegate(ba, "jobdone", new Object[] {_job}));}
SHARK2.keymon.com.mx.dbrequestmanager._dbresult _result = null;
Object[] _records = null;
String _cat_ve_version = "";
String _k = "";
String _id_almacen = "";
String _cuenta = "";
String _id = "";
String _fecha_hoy = "";
String _name = "";
String _imei_base = "";
String _cat_pa_pass = "";
String _valido = "";
RDebugUtils.currentLine=1769472;
 //BA.debugLineNum = 1769472;BA.debugLine="Sub JobDone(Job As HttpJob)";
RDebugUtils.currentLine=1769473;
 //BA.debugLineNum = 1769473;BA.debugLine="Log(\"JOBDONE MAINPAGE\")";
__c.LogImpl("51769473","JOBDONE MAINPAGE",0);
RDebugUtils.currentLine=1769474;
 //BA.debugLineNum = 1769474;BA.debugLine="If B4XPages.MainPage.reqManager.reqsList.IsInitia";
if (_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .IsInitialized()) { 
RDebugUtils.currentLine=1769475;
 //BA.debugLineNum = 1769475;BA.debugLine="If B4XPages.MainPage.reqManager.reqsList.IndexOf";
if (_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf(_job._tag /*Object*/ )!=-1) { 
RDebugUtils.currentLine=1769476;
 //BA.debugLineNum = 1769476;BA.debugLine="B4XPages.MainPage.reqManager.reqsList.RemoveAt(";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf(_job._tag /*Object*/ ));
RDebugUtils.currentLine=1769477;
 //BA.debugLineNum = 1769477;BA.debugLine="LogColor($\">>>>>> Quitamos ${Job.tag}\"$, Colors";
__c.LogImpl("51769477",(">>>>>> Quitamos "+__c.SmartStringFormatter("",_job._tag /*Object*/ )+""),__c.Colors.Blue);
 };
RDebugUtils.currentLine=1769479;
 //BA.debugLineNum = 1769479;BA.debugLine="LogColor(\">>>>>> \" & B4XPages.MainPage.reqManage";
__c.LogImpl("51769479",">>>>>> "+BA.NumberToString(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .getSize())+" - "+BA.ObjectToString(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ ),__c.Colors.Blue);
 };
RDebugUtils.currentLine=1769481;
 //BA.debugLineNum = 1769481;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) { 
RDebugUtils.currentLine=1769482;
 //BA.debugLineNum = 1769482;BA.debugLine="LogColor(\"Error: \" & Job.tag & \" : \" & Job.Error";
__c.LogImpl("51769482","Error: "+BA.ObjectToString(_job._tag /*Object*/ )+" : "+_job._errormessage /*String*/ ,__c.Colors.Red);
 }else {
RDebugUtils.currentLine=1769484;
 //BA.debugLineNum = 1769484;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
__c.LogImpl("51769484","JobDone: '"+BA.ObjectToString(__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
RDebugUtils.currentLine=1769485;
 //BA.debugLineNum = 1769485;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=1769486;
 //BA.debugLineNum = 1769486;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=1769487;
 //BA.debugLineNum = 1769487;BA.debugLine="If result.Tag = \"version\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("version"))) { 
RDebugUtils.currentLine=1769488;
 //BA.debugLineNum = 1769488;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group16 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen16 = group16.getSize()
;int index16 = 0;
;
for (; index16 < groupLen16;index16++){
_records = (Object[])(group16.Get(index16));
RDebugUtils.currentLine=1769489;
 //BA.debugLineNum = 1769489;BA.debugLine="skmt.ExecNonQuery(\"delete from VERSION\")";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION");
RDebugUtils.currentLine=1769490;
 //BA.debugLineNum = 1769490;BA.debugLine="Dim CAT_VE_VERSION As String = records(result";
_cat_ve_version = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_VE_VERSION"))))]);
RDebugUtils.currentLine=1769491;
 //BA.debugLineNum = 1769491;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO VERSION(NOVER";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_ve_version)}));
 }
};
 };
RDebugUtils.currentLine=1769495;
 //BA.debugLineNum = 1769495;BA.debugLine="If result.Tag = \"select_fechat\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("select_fechat"))) { 
RDebugUtils.currentLine=1769496;
 //BA.debugLineNum = 1769496;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group23 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen23 = group23.getSize()
;int index23 = 0;
;
for (; index23 < groupLen23;index23++){
_records = (Object[])(group23.Get(index23));
RDebugUtils.currentLine=1769497;
 //BA.debugLineNum = 1769497;BA.debugLine="For Each k As String In result.Columns.Keys";
{
final anywheresoftware.b4a.BA.IterableList group24 = _result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
final int groupLen24 = group24.getSize()
;int index24 = 0;
;
for (; index24 < groupLen24;index24++){
_k = BA.ObjectToString(group24.Get(index24));
RDebugUtils.currentLine=1769498;
 //BA.debugLineNum = 1769498;BA.debugLine="Log(\"select_fechat: \" & k & \": \" & records(r";
__c.LogImpl("51769498","select_fechat: "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
 }
};
 }
};
 };
 };
RDebugUtils.currentLine=1769504;
 //BA.debugLineNum = 1769504;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=1769505;
 //BA.debugLineNum = 1769505;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=1769506;
 //BA.debugLineNum = 1769506;BA.debugLine="If result.Tag = \"agencia\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("agencia"))) { 
RDebugUtils.currentLine=1769507;
 //BA.debugLineNum = 1769507;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group33 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen33 = group33.getSize()
;int index33 = 0;
;
for (; index33 < groupLen33;index33++){
_records = (Object[])(group33.Get(index33));
RDebugUtils.currentLine=1769508;
 //BA.debugLineNum = 1769508;BA.debugLine="Dim ID_ALMACEN As String = records(result.Col";
_id_almacen = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("ID_ALMACEN"))))]);
 }
};
 };
 };
RDebugUtils.currentLine=1769513;
 //BA.debugLineNum = 1769513;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=1769514;
 //BA.debugLineNum = 1769514;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=1769515;
 //BA.debugLineNum = 1769515;BA.debugLine="If result.Tag = \"SelectMontoLiq\" Then";
if ((_result.Tag /*Object*/ ).equals((Object)("SelectMontoLiq"))) { 
RDebugUtils.currentLine=1769516;
 //BA.debugLineNum = 1769516;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group41 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen41 = group41.getSize()
;int index41 = 0;
;
for (; index41 < groupLen41;index41++){
_records = (Object[])(group41.Get(index41));
RDebugUtils.currentLine=1769517;
 //BA.debugLineNum = 1769517;BA.debugLine="Dim CUENTA As String = records(result.Columns";
_cuenta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CUENTA"))))]);
RDebugUtils.currentLine=1769519;
 //BA.debugLineNum = 1769519;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=1769520;
 //BA.debugLineNum = 1769520;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=1769521;
 //BA.debugLineNum = 1769521;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=1769522;
 //BA.debugLineNum = 1769522;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select CA";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info")));
RDebugUtils.currentLine=1769523;
 //BA.debugLineNum = 1769523;BA.debugLine="f.Position = 0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=1769524;
 //BA.debugLineNum = 1769524;BA.debugLine="a=B4XPages.MainPage.skmt.ExecQuery(\"select ID";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
RDebugUtils.currentLine=1769525;
 //BA.debugLineNum = 1769525;BA.debugLine="a.Position = 0";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=1769527;
 //BA.debugLineNum = 1769527;BA.debugLine="Private c2 As Cursor";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=1769528;
 //BA.debugLineNum = 1769528;BA.debugLine="c2=skmt.ExecQuery(\"select USUARIO from usuari";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
RDebugUtils.currentLine=1769529;
 //BA.debugLineNum = 1769529;BA.debugLine="c2.Position=0";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=1769530;
 //BA.debugLineNum = 1769530;BA.debugLine="If c2.RowCount > 0 Then c2.GetString(\"USUARIO";
if (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");};
RDebugUtils.currentLine=1769532;
 //BA.debugLineNum = 1769532;BA.debugLine="Log(CUENTA & \"----------------------!!\")";
__c.LogImpl("51769532",_cuenta+"----------------------!!",0);
RDebugUtils.currentLine=1769533;
 //BA.debugLineNum = 1769533;BA.debugLine="If CUENTA = \"0\" Then";
if ((_cuenta).equals("0")) { 
RDebugUtils.currentLine=1769535;
 //BA.debugLineNum = 1769535;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM E";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM ENV_MONTO_LIQ WHERE EML_USUARIO = ? AND EML_ALMACEN = ? AND EML_RUTA = ?",new String[]{__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO"),__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"),__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA")})));
RDebugUtils.currentLine=1769536;
 //BA.debugLineNum = 1769536;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=1769538;
 //BA.debugLineNum = 1769538;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=1769539;
 //BA.debugLineNum = 1769539;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=1769540;
 //BA.debugLineNum = 1769540;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=1769541;
 //BA.debugLineNum = 1769541;BA.debugLine="cmd.Name = \"insert_Monto_Liq_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_Monto_Liq_SHARK2";
RDebugUtils.currentLine=1769542;
 //BA.debugLineNum = 1769542;BA.debugLine="cmd.Parameters = Array As Object(c.GetStrin";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EML_MONTO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EML_ALMACEN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EML_RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EML_USUARIO")),(Object)("VENTA"),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EML_FECHA_PED"))};
RDebugUtils.currentLine=1769543;
 //BA.debugLineNum = 1769543;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_Mon_Li";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("ins_Mon_Liq"));
RDebugUtils.currentLine=1769544;
 //BA.debugLineNum = 1769544;BA.debugLine="MsgboxAsync(\"Monto Enviado\", \"Atención\")";
__c.MsgboxAsync(BA.ObjectToCharSequence("Monto Enviado"),BA.ObjectToCharSequence("Atención"),ba);
 };
RDebugUtils.currentLine=1769547;
 //BA.debugLineNum = 1769547;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else 
{RDebugUtils.currentLine=1769548;
 //BA.debugLineNum = 1769548;BA.debugLine="Else if CUENTA > \"0\" Then";
if ((double)(Double.parseDouble(_cuenta))>(double)(Double.parseDouble("0"))) { 
RDebugUtils.currentLine=1769550;
 //BA.debugLineNum = 1769550;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM E";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM ENV_MONTO_LIQ WHERE EML_USUARIO = ? AND EML_ALMACEN = ? AND EML_RUTA = ?",new String[]{__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO"),__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"),__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA")})));
RDebugUtils.currentLine=1769551;
 //BA.debugLineNum = 1769551;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=1769553;
 //BA.debugLineNum = 1769553;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=1769554;
 //BA.debugLineNum = 1769554;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=1769555;
 //BA.debugLineNum = 1769555;BA.debugLine="cmd.Name = \"update_MontoCuenta_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "update_MontoCuenta_SHARK2";
RDebugUtils.currentLine=1769556;
 //BA.debugLineNum = 1769556;BA.debugLine="cmd.Parameters = Array As Object(c.GetStrin";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EML_MONTO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EML_ALMACEN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EML_RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EML_USUARIO"))};
RDebugUtils.currentLine=1769558;
 //BA.debugLineNum = 1769558;BA.debugLine="Log(c.GetString(\"EML_MONTO\")& \" \" & c.GetSt";
__c.LogImpl("51769558",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EML_MONTO")+" "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EML_ALMACEN")+" "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EML_RUTA")+" "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EML_USUARIO"),0);
RDebugUtils.currentLine=1769559;
 //BA.debugLineNum = 1769559;BA.debugLine="reqManager.ExecuteCommand(cmd, \"update_MC\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("update_MC"));
RDebugUtils.currentLine=1769560;
 //BA.debugLineNum = 1769560;BA.debugLine="MsgboxAsync(\"Se sobre escribio el Monto\", \"";
__c.MsgboxAsync(BA.ObjectToCharSequence("Se sobre escribio el Monto"),BA.ObjectToCharSequence("Atención"),ba);
 };
RDebugUtils.currentLine=1769563;
 //BA.debugLineNum = 1769563;BA.debugLine="c2.Close";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=1769564;
 //BA.debugLineNum = 1769564;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }}
;
RDebugUtils.currentLine=1769566;
 //BA.debugLineNum = 1769566;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=1769567;
 //BA.debugLineNum = 1769567;BA.debugLine="a.Close";
__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }
};
 };
 };
RDebugUtils.currentLine=1769572;
 //BA.debugLineNum = 1769572;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=1769573;
 //BA.debugLineNum = 1769573;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=1769574;
 //BA.debugLineNum = 1769574;BA.debugLine="If result.Tag.As(String).IndexOf(\"PICK_C_\") > -";
if ((BA.ObjectToString(_result.Tag /*Object*/ )).indexOf("PICK_C_")>-1) { 
RDebugUtils.currentLine=1769576;
 //BA.debugLineNum = 1769576;BA.debugLine="Private id As String= result.Tag";
_id = BA.ObjectToString(_result.Tag /*Object*/ );
RDebugUtils.currentLine=1769577;
 //BA.debugLineNum = 1769577;BA.debugLine="id = id.SubString(id.IndexOf(\"_\")+3)";
_id = _id.substring((int) (_id.indexOf("_")+3));
RDebugUtils.currentLine=1769578;
 //BA.debugLineNum = 1769578;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group91 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen91 = group91.getSize()
;int index91 = 0;
;
for (; index91 < groupLen91;index91++){
_records = (Object[])(group91.Get(index91));
RDebugUtils.currentLine=1769579;
 //BA.debugLineNum = 1769579;BA.debugLine="Dim CUENTA As String = records(result.Columns";
_cuenta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CUENTA"))))]);
RDebugUtils.currentLine=1769580;
 //BA.debugLineNum = 1769580;BA.debugLine="Log(CUENTA)";
__c.LogImpl("51769580",_cuenta,0);
RDebugUtils.currentLine=1769581;
 //BA.debugLineNum = 1769581;BA.debugLine="Log(id)";
__c.LogImpl("51769581",_id,0);
RDebugUtils.currentLine=1769582;
 //BA.debugLineNum = 1769582;BA.debugLine="If CUENTA = 0 Then";
if ((_cuenta).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=1769583;
 //BA.debugLineNum = 1769583;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM P";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO WHERE PC_ID_PROD = ?",new String[]{_id})));
RDebugUtils.currentLine=1769584;
 //BA.debugLineNum = 1769584;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=1769586;
 //BA.debugLineNum = 1769586;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=1769587;
 //BA.debugLineNum = 1769587;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=1769588;
 //BA.debugLineNum = 1769588;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=1769589;
 //BA.debugLineNum = 1769589;BA.debugLine="cmd.Name = \"insert_PICKCIEGO_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_PICKCIEGO_SHARK2";
RDebugUtils.currentLine=1769590;
 //BA.debugLineNum = 1769590;BA.debugLine="cmd.Parameters = Array As Object(c.GetStrin";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_ID_PROD")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOM_PROD")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_CANT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_ALMACEN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FECHA")),(Object)("VENTA")};
RDebugUtils.currentLine=1769591;
 //BA.debugLineNum = 1769591;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_PC\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("ins_PC"));
 };
RDebugUtils.currentLine=1769594;
 //BA.debugLineNum = 1769594;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else 
{RDebugUtils.currentLine=1769595;
 //BA.debugLineNum = 1769595;BA.debugLine="Else if CUENTA > 0 Then";
if ((double)(Double.parseDouble(_cuenta))>0) { 
RDebugUtils.currentLine=1769596;
 //BA.debugLineNum = 1769596;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM P";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO WHERE PC_ID_PROD= ?",new String[]{_id})));
RDebugUtils.currentLine=1769597;
 //BA.debugLineNum = 1769597;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=1769599;
 //BA.debugLineNum = 1769599;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=1769600;
 //BA.debugLineNum = 1769600;BA.debugLine="Dim cmd As DBCommand";
_cmd = new SHARK2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=1769601;
 //BA.debugLineNum = 1769601;BA.debugLine="cmd.Initialize";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=1769602;
 //BA.debugLineNum = 1769602;BA.debugLine="cmd.Name = \"update_PICKCIEGO_SHARK2\"";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "update_PICKCIEGO_SHARK2";
RDebugUtils.currentLine=1769603;
 //BA.debugLineNum = 1769603;BA.debugLine="Log(\"FECHA\" & c.GetString(\"PC_FECHA\"))";
__c.LogImpl("51769603","FECHA"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FECHA"),0);
RDebugUtils.currentLine=1769604;
 //BA.debugLineNum = 1769604;BA.debugLine="cmd.Parameters = Array As Object(c.GetStrin";
__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_CANT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_ID_PROD")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_ALMACEN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FECHA")),(Object)("VENTA")};
RDebugUtils.currentLine=1769605;
 //BA.debugLineNum = 1769605;BA.debugLine="reqManager.ExecuteCommand(cmd, \"update_PC\")";
__ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*SHARK2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("update_PC"));
 };
RDebugUtils.currentLine=1769608;
 //BA.debugLineNum = 1769608;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }}
;
 }
};
 };
 };
RDebugUtils.currentLine=1769615;
 //BA.debugLineNum = 1769615;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=1769616;
 //BA.debugLineNum = 1769616;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=1769617;
 //BA.debugLineNum = 1769617;BA.debugLine="If result.Tag = \"fecha\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("fecha"))) { 
RDebugUtils.currentLine=1769618;
 //BA.debugLineNum = 1769618;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group125 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen125 = group125.getSize()
;int index125 = 0;
;
for (; index125 < groupLen125;index125++){
_records = (Object[])(group125.Get(index125));
RDebugUtils.currentLine=1769619;
 //BA.debugLineNum = 1769619;BA.debugLine="Dim FECHA_HOY As String = records(result.Colu";
_fecha_hoy = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("FECHA"))))]);
RDebugUtils.currentLine=1769620;
 //BA.debugLineNum = 1769620;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("FECHA")}));
RDebugUtils.currentLine=1769621;
 //BA.debugLineNum = 1769621;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("FECHA"),(Object)(_fecha_hoy)}));
 }
};
 };
 };
RDebugUtils.currentLine=1769626;
 //BA.debugLineNum = 1769626;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=1769627;
 //BA.debugLineNum = 1769627;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=1769628;
 //BA.debugLineNum = 1769628;BA.debugLine="If result.Tag = \"usuario\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("usuario"))) { 
RDebugUtils.currentLine=1769629;
 //BA.debugLineNum = 1769629;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group135 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen135 = group135.getSize()
;int index135 = 0;
;
for (; index135 < groupLen135;index135++){
_records = (Object[])(group135.Get(index135));
RDebugUtils.currentLine=1769630;
 //BA.debugLineNum = 1769630;BA.debugLine="Dim name As String = records(result.Columns.G";
_name = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("USUARIO"))))]);
RDebugUtils.currentLine=1769631;
 //BA.debugLineNum = 1769631;BA.debugLine="Dim ID_ALMACEN As String = records(result.Col";
_id_almacen = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_LO_AGENCIA"))))]);
RDebugUtils.currentLine=1769632;
 //BA.debugLineNum = 1769632;BA.debugLine="Dim IMEI_BASE As String = records(result.Colu";
_imei_base = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_LO_IDTELEFONO"))))]);
RDebugUtils.currentLine=1769633;
 //BA.debugLineNum = 1769633;BA.debugLine="Log(records(result.Columns.Get(\"CAT_LO_IDTELE";
__c.LogImpl("51769633",BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_LO_IDTELEFONO"))))]),0);
 }
};
RDebugUtils.currentLine=1769635;
 //BA.debugLineNum = 1769635;BA.debugLine="paso1 = 1";
__ref._paso1 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=1769636;
 //BA.debugLineNum = 1769636;BA.debugLine="ToastMessageShow(name, False)";
__c.ToastMessageShow(BA.ObjectToCharSequence(_name),__c.False);
RDebugUtils.currentLine=1769637;
 //BA.debugLineNum = 1769637;BA.debugLine="Log(\"//////////////////////////  \"&name)";
__c.LogImpl("51769637","//////////////////////////  "+_name,0);
 };
 };
RDebugUtils.currentLine=1769641;
 //BA.debugLineNum = 1769641;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=1769642;
 //BA.debugLineNum = 1769642;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=1769643;
 //BA.debugLineNum = 1769643;BA.debugLine="If result.Tag = \"usuario_10\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("usuario_10"))) { 
RDebugUtils.currentLine=1769644;
 //BA.debugLineNum = 1769644;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group149 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen149 = group149.getSize()
;int index149 = 0;
;
for (; index149 < groupLen149;index149++){
_records = (Object[])(group149.Get(index149));
RDebugUtils.currentLine=1769645;
 //BA.debugLineNum = 1769645;BA.debugLine="Dim name As String = records(result.Columns.G";
_name = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("USUARIO"))))]);
RDebugUtils.currentLine=1769646;
 //BA.debugLineNum = 1769646;BA.debugLine="Dim ID_ALMACEN As String = records(result.Col";
_id_almacen = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_LO_AGENCIA"))))]);
RDebugUtils.currentLine=1769647;
 //BA.debugLineNum = 1769647;BA.debugLine="Dim IMEI_BASE As String = records(result.Colu";
_imei_base = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_LO_IDTELEFONO"))))]);
 }
};
RDebugUtils.currentLine=1769649;
 //BA.debugLineNum = 1769649;BA.debugLine="Log(\"|\"&name&\"|\")";
__c.LogImpl("51769649","|"+_name+"|",0);
RDebugUtils.currentLine=1769650;
 //BA.debugLineNum = 1769650;BA.debugLine="paso1 = 1";
__ref._paso1 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=1769651;
 //BA.debugLineNum = 1769651;BA.debugLine="IMEI_BASE = \"\"";
_imei_base = "";
RDebugUtils.currentLine=1769652;
 //BA.debugLineNum = 1769652;BA.debugLine="IMEI = \"\"";
__ref._imei /*String*/  = "";
 };
 };
RDebugUtils.currentLine=1769656;
 //BA.debugLineNum = 1769656;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=1769657;
 //BA.debugLineNum = 1769657;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
_result = __ref._reqmanager /*SHARK2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*SHARK2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=1769658;
 //BA.debugLineNum = 1769658;BA.debugLine="If result.Tag = \"contrasena\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("contrasena"))) { 
RDebugUtils.currentLine=1769659;
 //BA.debugLineNum = 1769659;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group163 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen163 = group163.getSize()
;int index163 = 0;
;
for (; index163 < groupLen163;index163++){
_records = (Object[])(group163.Get(index163));
RDebugUtils.currentLine=1769660;
 //BA.debugLineNum = 1769660;BA.debugLine="Dim CAT_PA_PASS As String = records(result.Co";
_cat_pa_pass = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PA_PASS"))))]);
RDebugUtils.currentLine=1769661;
 //BA.debugLineNum = 1769661;BA.debugLine="If CAT_PA_PASS = et_codigo.Text Then";
if ((_cat_pa_pass).equals(__ref._et_codigo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())) { 
RDebugUtils.currentLine=1769662;
 //BA.debugLineNum = 1769662;BA.debugLine="Log(CAT_PA_PASS)";
__c.LogImpl("51769662",_cat_pa_pass,0);
RDebugUtils.currentLine=1769663;
 //BA.debugLineNum = 1769663;BA.debugLine="p_validacion.Visible = False";
__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=1769664;
 //BA.debugLineNum = 1769664;BA.debugLine="et_codigo.Text = \"\"";
__ref._et_codigo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=1769665;
 //BA.debugLineNum = 1769665;BA.debugLine="If recarga = \"0\" Then";
if ((__ref._recarga /*String*/ ).equals("0")) { 
RDebugUtils.currentLine=1769666;
 //BA.debugLineNum = 1769666;BA.debugLine="Subs.panelVisible(P_CIEGO,0,0)";
_subs._panelvisible /*String*/ (ba,__ref._p_ciego /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
 }else 
{RDebugUtils.currentLine=1769667;
 //BA.debugLineNum = 1769667;BA.debugLine="Else If recarga = \"1\" Then";
if ((__ref._recarga /*String*/ ).equals("1")) { 
RDebugUtils.currentLine=1769668;
 //BA.debugLineNum = 1769668;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUEN";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA");
RDebugUtils.currentLine=1769669;
 //BA.debugLineNum = 1769669;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUE";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("1")}));
RDebugUtils.currentLine=1769670;
 //BA.debugLineNum = 1769670;BA.debugLine="B4XPages.MainPage.tipo_venta = \"RECARGA\"";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/  = "RECARGA";
RDebugUtils.currentLine=1769671;
 //BA.debugLineNum = 1769671;BA.debugLine="B4XPages.ShowPage(\"Productos\")";
_b4xpages._showpage /*String*/ (ba,"Productos");
 }}
;
 }else {
RDebugUtils.currentLine=1769675;
 //BA.debugLineNum = 1769675;BA.debugLine="MsgboxAsync(\"Contraseña incorrecta\",\"Atenció";
__c.MsgboxAsync(BA.ObjectToCharSequence("Contraseña incorrecta"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }
};
 };
 };
RDebugUtils.currentLine=1769681;
 //BA.debugLineNum = 1769681;BA.debugLine="If result.Tag = \"ruta\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("ruta"))) { 
RDebugUtils.currentLine=1769682;
 //BA.debugLineNum = 1769682;BA.debugLine="Log(\"JOBDONE PRINCIPAL MAINPAGE\")";
__c.LogImpl("51769682","JOBDONE PRINCIPAL MAINPAGE",0);
RDebugUtils.currentLine=1769683;
 //BA.debugLineNum = 1769683;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group185 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen185 = group185.getSize()
;int index185 = 0;
;
for (; index185 < groupLen185;index185++){
_records = (Object[])(group185.Get(index185));
RDebugUtils.currentLine=1769684;
 //BA.debugLineNum = 1769684;BA.debugLine="Dim VALIDO As String = records(result.Columns.";
_valido = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("VALIDO"))))]);
RDebugUtils.currentLine=1769685;
 //BA.debugLineNum = 1769685;BA.debugLine="If VALIDO = \"OK\" Then";
if ((_valido).equals("OK")) { 
RDebugUtils.currentLine=1769686;
 //BA.debugLineNum = 1769686;BA.debugLine="Log(VALIDO)";
__c.LogImpl("51769686",_valido,0);
 };
 }
};
 };
RDebugUtils.currentLine=1769691;
 //BA.debugLineNum = 1769691;BA.debugLine="Job.Release";
_job._release /*String*/ (null);
 };
RDebugUtils.currentLine=1769693;
 //BA.debugLineNum = 1769693;BA.debugLine="Log($\"Paso1 = ${paso1} - Name: ${name} - IMEI: ${";
__c.LogImpl("51769693",("Paso1 = "+__c.SmartStringFormatter("",(Object)(__ref._paso1 /*String*/ ))+" - Name: "+__c.SmartStringFormatter("",(Object)(_name))+" - IMEI: "+__c.SmartStringFormatter("",(Object)(__ref._imei /*String*/ ))+" - IMEI_BASE: "+__c.SmartStringFormatter("",(Object)(_imei_base))+""),0);
RDebugUtils.currentLine=1769694;
 //BA.debugLineNum = 1769694;BA.debugLine="If paso1 = 1 Then";
if ((__ref._paso1 /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=1769695;
 //BA.debugLineNum = 1769695;BA.debugLine="If IMEI = \"\" Then";
if ((__ref._imei /*String*/ ).equals("")) { 
RDebugUtils.currentLine=1769696;
 //BA.debugLineNum = 1769696;BA.debugLine="If user.Text = \"KMTS1\" Then name = \"OKActivo\"";
if ((__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("KMTS1")) { 
_name = "OKActivo";};
RDebugUtils.currentLine=1769697;
 //BA.debugLineNum = 1769697;BA.debugLine="If name = \"OKActivo\"  Then";
if ((_name).equals("OKActivo")) { 
RDebugUtils.currentLine=1769698;
 //BA.debugLineNum = 1769698;BA.debugLine="skmt.ExecNonQuery(\"delete from usuarioa\")";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from usuarioa");
RDebugUtils.currentLine=1769699;
 //BA.debugLineNum = 1769699;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO USUARIOA VALUE";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO USUARIOA VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText().trim()),(Object)(__ref._pass /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText().trim())}));
RDebugUtils.currentLine=1769700;
 //BA.debugLineNum = 1769700;BA.debugLine="skmt.ExecNonQuery(\"delete from cat_almacen\")";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_almacen");
RDebugUtils.currentLine=1769701;
 //BA.debugLineNum = 1769701;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_ALMACEN(ID";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_id_almacen)}));
RDebugUtils.currentLine=1769702;
 //BA.debugLineNum = 1769702;BA.debugLine="usuario = user.Text";
__ref._usuario /*String*/  = __ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText();
RDebugUtils.currentLine=1769703;
 //BA.debugLineNum = 1769703;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
 }else 
{RDebugUtils.currentLine=1769704;
 //BA.debugLineNum = 1769704;BA.debugLine="Else If name  = \"OKExpirado\" Then";
if ((_name).equals("OKExpirado")) { 
RDebugUtils.currentLine=1769705;
 //BA.debugLineNum = 1769705;BA.debugLine="Msgbox(\"Usuario Expirado llamar al administrad";
__c.Msgbox(BA.ObjectToCharSequence("Usuario Expirado llamar al administrador"),BA.ObjectToCharSequence(""),ba);
 }else 
{RDebugUtils.currentLine=1769706;
 //BA.debugLineNum = 1769706;BA.debugLine="Else If name = \"OKCancelado\" Then";
if ((_name).equals("OKCancelado")) { 
RDebugUtils.currentLine=1769707;
 //BA.debugLineNum = 1769707;BA.debugLine="Msgbox(\"Usuario Cancelado llamar al administra";
__c.Msgbox(BA.ObjectToCharSequence("Usuario Cancelado llamar al administrador"),BA.ObjectToCharSequence(""),ba);
 }else {
RDebugUtils.currentLine=1769709;
 //BA.debugLineNum = 1769709;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'Ig";
__c.Msgbox(BA.ObjectToCharSequence("Usuario o password No validos"),BA.ObjectToCharSequence(""),ba);
 }}}
;
RDebugUtils.currentLine=1769711;
 //BA.debugLineNum = 1769711;BA.debugLine="paso1 = 0";
__ref._paso1 /*String*/  = BA.NumberToString(0);
 }else {
RDebugUtils.currentLine=1769713;
 //BA.debugLineNum = 1769713;BA.debugLine="If name = \"OKActivo\" & IMEI And  IMEI = IMEI_BA";
if ((_name).equals("OKActivo"+__ref._imei /*String*/ ) && (__ref._imei /*String*/ ).equals(_imei_base)) { 
RDebugUtils.currentLine=1769714;
 //BA.debugLineNum = 1769714;BA.debugLine="If name = \"OKActivo\" & IMEI Then";
if ((_name).equals("OKActivo"+__ref._imei /*String*/ )) { 
RDebugUtils.currentLine=1769715;
 //BA.debugLineNum = 1769715;BA.debugLine="skmt.ExecNonQuery(\"delete from usuarioa\")";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from usuarioa");
RDebugUtils.currentLine=1769716;
 //BA.debugLineNum = 1769716;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO USUARIOA VALU";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO USUARIOA VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText().trim()),(Object)(__ref._pass /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText().trim())}));
RDebugUtils.currentLine=1769717;
 //BA.debugLineNum = 1769717;BA.debugLine="skmt.ExecNonQuery(\"delete from cat_almacen\")";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_almacen");
RDebugUtils.currentLine=1769718;
 //BA.debugLineNum = 1769718;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_ALMACEN(I";
__ref._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_id_almacen)}));
RDebugUtils.currentLine=1769719;
 //BA.debugLineNum = 1769719;BA.debugLine="usuario = user.Text";
__ref._usuario /*String*/  = __ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText();
RDebugUtils.currentLine=1769720;
 //BA.debugLineNum = 1769720;BA.debugLine="B4XPages.ShowPage(\"Clientes\")";
_b4xpages._showpage /*String*/ (ba,"Clientes");
 }else 
{RDebugUtils.currentLine=1769721;
 //BA.debugLineNum = 1769721;BA.debugLine="Else If name  = \"OKExpirado\"& IMEI Then";
if ((_name).equals("OKExpirado"+__ref._imei /*String*/ )) { 
RDebugUtils.currentLine=1769722;
 //BA.debugLineNum = 1769722;BA.debugLine="Msgbox(\"Usuario Expirado llamar al administra";
__c.Msgbox(BA.ObjectToCharSequence("Usuario Expirado llamar al administrador"),BA.ObjectToCharSequence(""),ba);
 }else 
{RDebugUtils.currentLine=1769723;
 //BA.debugLineNum = 1769723;BA.debugLine="Else If name = \"OKCancelado\"& IMEI Then";
if ((_name).equals("OKCancelado"+__ref._imei /*String*/ )) { 
RDebugUtils.currentLine=1769724;
 //BA.debugLineNum = 1769724;BA.debugLine="Msgbox(\"Usuario Cancelado llamar al administr";
__c.Msgbox(BA.ObjectToCharSequence("Usuario Cancelado llamar al administrador"),BA.ObjectToCharSequence(""),ba);
 }else {
RDebugUtils.currentLine=1769726;
 //BA.debugLineNum = 1769726;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'i";
__c.Msgbox(BA.ObjectToCharSequence("Usuario o password No validos"),BA.ObjectToCharSequence(""),ba);
 }}}
;
RDebugUtils.currentLine=1769728;
 //BA.debugLineNum = 1769728;BA.debugLine="paso1 = 0";
__ref._paso1 /*String*/  = BA.NumberToString(0);
 }else 
{RDebugUtils.currentLine=1769729;
 //BA.debugLineNum = 1769729;BA.debugLine="Else IF  name = \"OKActivo\" Then";
if ((_name).equals("OKActivo")) { 
RDebugUtils.currentLine=1769730;
 //BA.debugLineNum = 1769730;BA.debugLine="Msgbox(\"Telefono no VALIDO!\",\"\") 'ignore";
__c.Msgbox(BA.ObjectToCharSequence("Telefono no VALIDO!"),BA.ObjectToCharSequence(""),ba);
 }else {
RDebugUtils.currentLine=1769732;
 //BA.debugLineNum = 1769732;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'ig";
__c.Msgbox(BA.ObjectToCharSequence("Usuario o password No validos"),BA.ObjectToCharSequence(""),ba);
 }}
;
 };
 };
RDebugUtils.currentLine=1769736;
 //BA.debugLineNum = 1769736;BA.debugLine="End Sub";
return "";
}
public String  _lv_server_itemclick(SHARK2.keymon.com.mx.b4xmainpage __ref,int _position,Object _value) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "lv_server_itemclick", false))
	 {return ((String) Debug.delegate(ba, "lv_server_itemclick", new Object[] {_position,_value}));}
RDebugUtils.currentLine=2818048;
 //BA.debugLineNum = 2818048;BA.debugLine="Private Sub lv_server_ItemClick (Position As Int,";
RDebugUtils.currentLine=2818049;
 //BA.debugLineNum = 2818049;BA.debugLine="Starter.DBReqServer = Value";
_starter._dbreqserver /*String*/  = BA.ObjectToString(_value);
RDebugUtils.currentLine=2818051;
 //BA.debugLineNum = 2818051;BA.debugLine="et_server.Text = Value";
__ref._et_server /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_value));
RDebugUtils.currentLine=2818052;
 //BA.debugLineNum = 2818052;BA.debugLine="Starter.reinicializaReqManager(Value)";
_starter._reinicializareqmanager /*String*/ (BA.ObjectToString(_value));
RDebugUtils.currentLine=2818054;
 //BA.debugLineNum = 2818054;BA.debugLine="ToastMessageShow(\"Servidor modificado\", False)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Servidor modificado"),__c.False);
RDebugUtils.currentLine=2818055;
 //BA.debugLineNum = 2818055;BA.debugLine="End Sub";
return "";
}
public String  _p_add_monto_click(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "p_add_monto_click", false))
	 {return ((String) Debug.delegate(ba, "p_add_monto_click", null));}
RDebugUtils.currentLine=4128768;
 //BA.debugLineNum = 4128768;BA.debugLine="Private Sub p_add_monto_Click";
RDebugUtils.currentLine=4128770;
 //BA.debugLineNum = 4128770;BA.debugLine="End Sub";
return "";
}
public String  _p_ciego_click(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "p_ciego_click", false))
	 {return ((String) Debug.delegate(ba, "p_ciego_click", null));}
RDebugUtils.currentLine=3997696;
 //BA.debugLineNum = 3997696;BA.debugLine="Private Sub P_CIEGO_Click";
RDebugUtils.currentLine=3997698;
 //BA.debugLineNum = 3997698;BA.debugLine="End Sub";
return "";
}
public String  _p_validacion_click(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "p_validacion_click", false))
	 {return ((String) Debug.delegate(ba, "p_validacion_click", null));}
RDebugUtils.currentLine=4063232;
 //BA.debugLineNum = 4063232;BA.debugLine="Private Sub p_validacion_Click";
RDebugUtils.currentLine=4063234;
 //BA.debugLineNum = 4063234;BA.debugLine="End Sub";
return "";
}
public String  _pdf_click(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "pdf_click", false))
	 {return ((String) Debug.delegate(ba, "pdf_click", null));}
RDebugUtils.currentLine=2162688;
 //BA.debugLineNum = 2162688;BA.debugLine="Sub PDF_Click";
RDebugUtils.currentLine=2162690;
 //BA.debugLineNum = 2162690;BA.debugLine="End Sub";
return "";
}
public String  _popupmenu_dismiss(SHARK2.keymon.com.mx.b4xmainpage __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "popupmenu_dismiss", false))
	 {return ((String) Debug.delegate(ba, "popupmenu_dismiss", null));}
RDebugUtils.currentLine=1966080;
 //BA.debugLineNum = 1966080;BA.debugLine="Sub PopupMenu_Dismiss";
RDebugUtils.currentLine=1966081;
 //BA.debugLineNum = 1966081;BA.debugLine="ToastMessageShow(\"PopupMenu dismissed\", False)";
__c.ToastMessageShow(BA.ObjectToCharSequence("PopupMenu dismissed"),__c.False);
RDebugUtils.currentLine=1966082;
 //BA.debugLineNum = 1966082;BA.debugLine="End Sub";
return "";
}
public boolean  _popupmenu_menuitemclick(SHARK2.keymon.com.mx.b4xmainpage __ref,int _itemid) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xmainpage";
if (Debug.shouldDelegate(ba, "popupmenu_menuitemclick", false))
	 {return ((Boolean) Debug.delegate(ba, "popupmenu_menuitemclick", new Object[] {_itemid}));}
RDebugUtils.currentLine=2031616;
 //BA.debugLineNum = 2031616;BA.debugLine="Sub PopupMenu_MenuItemClick (ItemId As Int) As Boo";
RDebugUtils.currentLine=2031617;
 //BA.debugLineNum = 2031617;BA.debugLine="ToastMessageShow(\"Item \" & ItemId & \" clicked.\",";
__c.ToastMessageShow(BA.ObjectToCharSequence("Item "+BA.NumberToString(_itemid)+" clicked."),__c.False);
RDebugUtils.currentLine=2031618;
 //BA.debugLineNum = 2031618;BA.debugLine="Return False";
if (true) return __c.False;
RDebugUtils.currentLine=2031619;
 //BA.debugLineNum = 2031619;BA.debugLine="End Sub";
return false;
}
}