package gunav2.keymon.com.mx;


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

public class c_principal extends B4AClass.ImplB4AClass implements BA.SubDelegator{
    private static java.util.HashMap<String, java.lang.reflect.Method> htSubs;
    private void innerInitialize(BA _ba) throws Exception {
        if (ba == null) {
            ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "gunav2.keymon.com.mx.c_principal");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.c_principal.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 static class _titledata{
public boolean IsInitialized;
public String Title;
public void Initialize() {
IsInitialized = true;
Title = "";
}
@Override
		public String toString() {
			return BA.TypeToString(this, false);
		}}
public anywheresoftware.b4a.keywords.Common __c = null;
public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
public String _conectado = "";
public anywheresoftware.b4a.objects.Timer _t1 = null;
public anywheresoftware.b4a.objects.Timer _t2 = null;
public anywheresoftware.b4a.keywords.StringBuilderWrapper _sb = null;
public anywheresoftware.b4a.phone.Phone _phone = null;
public anywheresoftware.b4a.gps.GPS _g = null;
public anywheresoftware.b4a.objects.ButtonWrapper _trabajar = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _d = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _b = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _e = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _f = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _ro = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _d2 = null;
public anywheresoftware.b4a.objects.ListViewWrapper _lv = null;
public anywheresoftware.b4a.objects.ButtonWrapper _cargar = null;
public anywheresoftware.b4a.objects.ButtonWrapper _pendiente = null;
public byte[] _foto1 = null;
public String _usuario = "";
public anywheresoftware.b4a.objects.ButtonWrapper _connecta = null;
public String _conn = "";
public anywheresoftware.b4a.objects.ButtonWrapper _subir = null;
public gunav2.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null;
public int _tope = 0;
public int _count_clie = 0;
public String _fecha = "";
public double _drop = 0;
public double _efectiva = 0;
public anywheresoftware.b4a.objects.LabelWrapper _l_montod = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_cuantosc = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_drop = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_efectiva = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_ctast = null;
public anywheresoftware.b4a.objects.ButtonWrapper _busca = null;
public String _cuantos = "";
public anywheresoftware.b4a.objects.LabelWrapper _l_cuantosn = null;
public anywheresoftware.b4a.objects.EditTextWrapper _e_ruta = null;
public String _rut_rep = "";
public anywheresoftware.b4a.objects.LabelWrapper _l_porvisitar = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_mapa = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_ruta = null;
public String _almacen = "";
public anywheresoftware.b4a.objects.ImageViewWrapper _img2 = null;
public String _listo1 = "";
public String _listo2 = "";
public String _listo3 = "";
public String _listo4 = "";
public String _listo5 = "";
public String _ejecutando = "";
public String _res = "";
public String _inve = "";
public String _cuantos_pedidosc = "";
public String _cuantos_pedido = "";
public String _cuantos_noventa = "";
public String _datos_iguales = "";
public anywheresoftware.b4a.phone.Phone.PhoneId _p = null;
public String _imei = "";
public anywheresoftware.b4a.objects.ButtonWrapper _inv = null;
public anywheresoftware.b4a.objects.PanelWrapper _p1 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _clave = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_ok_pas = null;
public String _paso = "";
public anywheresoftware.b4a.objects.EditTextWrapper _usuario1 = null;
public double _connecta1 = 0;
public String _armafolio = "";
public anywheresoftware.b4a.objects.ButtonWrapper _nuevo = null;
public anywheresoftware.b4a.objects.LabelWrapper _s_cc = null;
public anywheresoftware.b4a.objects.LabelWrapper _s_cp = null;
public anywheresoftware.b4a.objects.LabelWrapper _s_ch = null;
public anywheresoftware.b4a.objects.ProgressBarWrapper _pb2 = null;
public anywheresoftware.b4a.objects.ProgressBarWrapper _pb1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_p_1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_p_2 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_p_3 = null;
public String _carga = "";
public String _porcentaje = "";
public anywheresoftware.b4a.objects.PanelWrapper _p_resumen = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_ok_res = null;
public anywheresoftware.b4a.objects.ButtonWrapper _resumen = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_cuantost = null;
public anywheresoftware.b4a.objects.ImageViewWrapper _img3 = null;
public anywheresoftware.b4a.objects.ImageViewWrapper _imageview3 = null;
public anywheresoftware.b4a.objects.ImageViewWrapper _imageview5 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_tickprom = null;
public anywheresoftware.b4a.objects.ListViewWrapper _l_marcas = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_ruta2 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _e_ruta2 = null;
public anywheresoftware.b4a.objects.ImageViewWrapper _resdia = null;
public anywheresoftware.b4a.objects.ImageViewWrapper _hacer_ped = null;
public anywheresoftware.b4a.objects.ImageViewWrapper _nvo_cliente = null;
public anywheresoftware.b4a.objects.ImageViewWrapper _tickets_dia = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_monto_ks = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_monto_kp = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_monto_k = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_monto_c1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_monto_c2 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_monto_c3 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_encuesta = null;
public batteryprogressviewwrapper.batteryprogressviewWrapper _bpv1 = null;
public int[] _batterystatus = null;
public gunav2.keymon.com.mx.batteryutilities _bu = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel4 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_nes = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_real = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_alcance = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_vplan = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_vreal = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_efec_vis = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_visitcc = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_efec_pv = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_efec_pura = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_cte_promo = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_reden_promo = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_lin_tick = null;
public anywheresoftware.b4a.objects.ScrollViewWrapper _scroll_resdia = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_acumulado = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_unilever = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_rechazop = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_rechazom = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_vta_3mes = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_vta_2mes = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_vta_1mes = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_mes_py = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_frec_de_creal = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_frec_de_cobj = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_cob_visit = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_visit_real = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_visit_plan = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_eco = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_cob_ccc = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_ctes = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_vpo_vta = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_vpo_obj = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_ds_vta = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_ds_obj = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_dra_vta = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_dra_obj = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_alcancem = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_tendencia = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_vta_acum = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_obj_mes = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_ds_objd = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_ds_vtad = null;
public String _lpt = "";
public String _steyin = "";
public String _steyout = "";
public anywheresoftware.b4a.objects.LabelWrapper _l_prio = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_secund = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_comp = null;
public String _stay_hh = "";
public String _stay_mi = "";
public String _stay_ss = "";
public String _sdate = "";
public String _stime = "";
public String _horaingreso = "";
public anywheresoftware.b4a.objects.LabelWrapper _l_quala = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_ferrero = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_sanmarcos = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_campari = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_iberia = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_bepensa = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_scj = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_medj = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_duracell = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_guna = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_kimb = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_tresm = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_redb = null;
public anywheresoftware.b4a.objects.ButtonWrapper _btn_ubicar = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_comm = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total_mm = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total_vive = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total_guna = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total_ba = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total_comis = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total_mm_1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total_vive_1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total_guna_1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total_ba_1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total_comis_1 = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_ok_comiss = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel_c = null;
public int _titleheight = 0;
public int _title2height = 0;
public int _dividerheight = 0;
public b4a.example3.customlistview _clv1 = null;
public anywheresoftware.b4a.objects.B4XViewWrapper _pnltitle = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_marcas = null;
public anywheresoftware.b4a.objects.LabelWrapper _lbltitle = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_ok_panel5 = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_principal = null;
public anywheresoftware.b4a.objects.IME _teclado = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel5 = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel_5 = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_marcasres = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_sombra = null;
public anywheresoftware.b4a.objects.LabelWrapper _label22 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_rutasuplencia = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_ru_pri = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_ru_sup = null;
public anywheresoftware.b4a.objects.LabelWrapper _label4 = null;
public anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
public anywheresoftware.b4a.objects.LabelWrapper _label25 = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_transparenteactualizacion = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_forzaractualizacion = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_forzaractualizacion = null;
public String _tipo_venta = "";
public anywheresoftware.b4a.objects.ButtonWrapper _b_abordo = null;
public gunav2.keymon.com.mx.c_bitacora _bitacora = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_version = null;
public int _contadorsubir = 0;
public anywheresoftware.b4a.objects.PanelWrapper _p_somvra_2 = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_resdia = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_hacerpedido = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_nuevocliente = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_clientesvisitados = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_futura = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_preventa = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_preacordada = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_prevtotal = null;
public anywheresoftware.b4a.objects.LabelWrapper _label13 = null;
public anywheresoftware.b4a.objects.LabelWrapper _label19 = null;
public anywheresoftware.b4a.objects.LabelWrapper _label21 = null;
public anywheresoftware.b4a.objects.LabelWrapper _label33 = null;
public anywheresoftware.b4a.objects.LabelWrapper _label35 = null;
public anywheresoftware.b4a.objects.LabelWrapper _label43 = null;
public anywheresoftware.b4a.objects.LabelWrapper _label51 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_faltan = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_visitas = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_visitartotal = null;
public anywheresoftware.b4a.objects.LabelWrapper _de = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_traec = null;
public b4a.example.dateutils _dateutils = null;
public gunav2.keymon.com.mx.main _main = null;
public gunav2.keymon.com.mx.starter _starter = null;
public gunav2.keymon.com.mx.subs _subs = null;
public gunav2.keymon.com.mx.appupdater _appupdater = null;
public gunav2.keymon.com.mx.tracker _tracker = null;
public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null;
public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public gunav2.keymon.com.mx.newinst2 _newinst2 = null;
public gunav2.keymon.com.mx.b4xpages _b4xpages = null;
public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null;
public gunav2.keymon.com.mx.httputils2service _httputils2service = null;
public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null;
public Object  _initialize(gunav2.keymon.com.mx.c_principal __ref,anywheresoftware.b4a.BA _ba) throws Exception{
__ref = this;
innerInitialize(_ba);
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "initialize", false))
	 {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));}
RDebugUtils.currentLine=3342336;
 //BA.debugLineNum = 3342336;BA.debugLine="Public Sub Initialize As Object";
RDebugUtils.currentLine=3342337;
 //BA.debugLineNum = 3342337;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=3342338;
 //BA.debugLineNum = 3342338;BA.debugLine="End Sub";
return null;
}
public String  _addtitle(gunav2.keymon.com.mx.c_principal __ref,String _title) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "addtitle", false))
	 {return ((String) Debug.delegate(ba, "addtitle", new Object[] {_title}));}
anywheresoftware.b4a.objects.B4XViewWrapper _p_marcas = null;
gunav2.keymon.com.mx.c_principal._titledata _td = null;
RDebugUtils.currentLine=5505024;
 //BA.debugLineNum = 5505024;BA.debugLine="Sub AddTitle (Title As String)";
RDebugUtils.currentLine=5505025;
 //BA.debugLineNum = 5505025;BA.debugLine="Dim p_marcas As B4XView = xui.CreatePanel(\"\")";
_p_marcas = new anywheresoftware.b4a.objects.B4XViewWrapper();
_p_marcas = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"");
RDebugUtils.currentLine=5505026;
 //BA.debugLineNum = 5505026;BA.debugLine="p_marcas.SetLayoutAnimated(0, 0, 0, CLV1.AsView.W";
_p_marcas.SetLayoutAnimated((int) (0),(int) (0),(int) (0),__ref._clv1 /*b4a.example3.customlistview*/ ._asview().getWidth(),__ref._titleheight /*int*/ );
RDebugUtils.currentLine=5505027;
 //BA.debugLineNum = 5505027;BA.debugLine="p_marcas.LoadLayout(\"CellTitle\")";
_p_marcas.LoadLayout("CellTitle",ba);
RDebugUtils.currentLine=5505028;
 //BA.debugLineNum = 5505028;BA.debugLine="lblTitle.Text = Title";
__ref._lbltitle /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_title));
RDebugUtils.currentLine=5505029;
 //BA.debugLineNum = 5505029;BA.debugLine="Dim td As TitleData";
_td = new gunav2.keymon.com.mx.c_principal._titledata();
RDebugUtils.currentLine=5505030;
 //BA.debugLineNum = 5505030;BA.debugLine="td.Title = Title";
_td.Title /*String*/  = _title;
RDebugUtils.currentLine=5505031;
 //BA.debugLineNum = 5505031;BA.debugLine="CLV1.Add(p_marcas, td)";
__ref._clv1 /*b4a.example3.customlistview*/ ._add(_p_marcas,(Object)(_td));
RDebugUtils.currentLine=5505032;
 //BA.debugLineNum = 5505032;BA.debugLine="End Sub";
return "";
}
public String  _b_abordo_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_abordo_click", false))
	 {return ((String) Debug.delegate(ba, "b_abordo_click", null));}
RDebugUtils.currentLine=5898240;
 //BA.debugLineNum = 5898240;BA.debugLine="Private Sub b_abordo_Click";
RDebugUtils.currentLine=5898241;
 //BA.debugLineNum = 5898241;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from cuentaa\"$";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from cuentaa"));
RDebugUtils.currentLine=5898242;
 //BA.debugLineNum = 5898242;BA.debugLine="Starter.skmt.ExecNonQuery($\"insert into cuentaa (";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into cuentaa (cuenta) values ('0')"));
RDebugUtils.currentLine=5898243;
 //BA.debugLineNum = 5898243;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
RDebugUtils.currentLine=5898244;
 //BA.debugLineNum = 5898244;BA.debugLine="End Sub";
return "";
}
public String  _b_clientesvisitados_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_clientesvisitados_click", false))
	 {return ((String) Debug.delegate(ba, "b_clientesvisitados_click", null));}
RDebugUtils.currentLine=6029312;
 //BA.debugLineNum = 6029312;BA.debugLine="Private Sub b_clientesvisitados_Click";
RDebugUtils.currentLine=6029313;
 //BA.debugLineNum = 6029313;BA.debugLine="tickets_dia_Click";
__ref._tickets_dia_click /*String*/ (null);
RDebugUtils.currentLine=6029314;
 //BA.debugLineNum = 6029314;BA.debugLine="End Sub";
return "";
}
public String  _tickets_dia_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "tickets_dia_click", false))
	 {return ((String) Debug.delegate(ba, "tickets_dia_click", null));}
RDebugUtils.currentLine=4980736;
 //BA.debugLineNum = 4980736;BA.debugLine="Sub tickets_dia_Click";
RDebugUtils.currentLine=4980737;
 //BA.debugLineNum = 4980737;BA.debugLine="B4XPages.ShowPage(\"TicketsDia\")";
_b4xpages._showpage /*String*/ (ba,"TicketsDia");
RDebugUtils.currentLine=4980738;
 //BA.debugLineNum = 4980738;BA.debugLine="End Sub";
return "";
}
public String  _b_comm_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_comm_click", false))
	 {return ((String) Debug.delegate(ba, "b_comm_click", null));}
RDebugUtils.currentLine=5308416;
 //BA.debugLineNum = 5308416;BA.debugLine="Sub B_COMM_Click";
RDebugUtils.currentLine=5308417;
 //BA.debugLineNum = 5308417;BA.debugLine="Btn_Ubicar.Visible=False";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=5308418;
 //BA.debugLineNum = 5308418;BA.debugLine="SCROLL_RESDIA.Visible = True";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=5308419;
 //BA.debugLineNum = 5308419;BA.debugLine="SCROLL_RESDIA.Panel.LoadLayout(\"COMIS\")";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .getPanel().LoadLayout("COMIS",ba);
RDebugUtils.currentLine=5308420;
 //BA.debugLineNum = 5308420;BA.debugLine="SCROLL_RESDIA.Panel.Height = Panel_C.Height";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .getPanel().setHeight(__ref._panel_c /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight());
RDebugUtils.currentLine=5308421;
 //BA.debugLineNum = 5308421;BA.debugLine="Panel4.Visible = False";
__ref._panel4 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=5308422;
 //BA.debugLineNum = 5308422;BA.debugLine="Panel_C.Visible = True";
__ref._panel_c /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=5308423;
 //BA.debugLineNum = 5308423;BA.debugLine="Panel_C.Width = Root.Width * 0.90";
__ref._panel_c /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth((int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()*0.90));
RDebugUtils.currentLine=5308427;
 //BA.debugLineNum = 5308427;BA.debugLine="NUEVO.Visible =False";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=5308428;
 //BA.debugLineNum = 5308428;BA.debugLine="BUSCA.Visible=False";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=5308429;
 //BA.debugLineNum = 5308429;BA.debugLine="connecta.Visible=False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=5308430;
 //BA.debugLineNum = 5308430;BA.debugLine="Subir.Visible=False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=5308431;
 //BA.debugLineNum = 5308431;BA.debugLine="cargar.Visible=False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=5308432;
 //BA.debugLineNum = 5308432;BA.debugLine="Resumen.Visible= False";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=5308434;
 //BA.debugLineNum = 5308434;BA.debugLine="If l_ruta.Text <> 0 Then";
if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals(BA.NumberToString(0)) == false) { 
RDebugUtils.currentLine=5308435;
 //BA.debugLineNum = 5308435;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select HCM_T";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select HCM_TOTAL_V, HCM_TOTAL_VIVE, HCM_TOTAL_GUNA,	HCM_TOTAL_BEB from HIST_COMISIONES_MOVIL")));
RDebugUtils.currentLine=5308436;
 //BA.debugLineNum = 5308436;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=5308437;
 //BA.debugLineNum = 5308437;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=5308438;
 //BA.debugLineNum = 5308438;BA.debugLine="L_TOTAL_BA.Text = c.GetString(\"HCM_TOTAL_BEB\")";
__ref._l_total_ba /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HCM_TOTAL_BEB")));
RDebugUtils.currentLine=5308439;
 //BA.debugLineNum = 5308439;BA.debugLine="L_TOTAL_GUNA.Text = c.GetString(\"HCM_TOTAL_GUNA";
__ref._l_total_guna /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HCM_TOTAL_GUNA")));
RDebugUtils.currentLine=5308440;
 //BA.debugLineNum = 5308440;BA.debugLine="L_TOTAL_MM.Text = c.GetString(\"HCM_TOTAL_V\")";
__ref._l_total_mm /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HCM_TOTAL_V")));
RDebugUtils.currentLine=5308441;
 //BA.debugLineNum = 5308441;BA.debugLine="L_TOTAL_VIVE.Text = c.GetString(\"HCM_TOTAL_VIVE";
__ref._l_total_vive /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HCM_TOTAL_VIVE")));
RDebugUtils.currentLine=5308442;
 //BA.debugLineNum = 5308442;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=5308443;
 //BA.debugLineNum = 5308443;BA.debugLine="L_TOTAL_COMIS.Text = 0";
__ref._l_total_comis /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 };
 }else {
RDebugUtils.currentLine=5308446;
 //BA.debugLineNum = 5308446;BA.debugLine="L_TOTAL_BA.Text = 0";
__ref._l_total_ba /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=5308447;
 //BA.debugLineNum = 5308447;BA.debugLine="L_TOTAL_GUNA.Text = 0";
__ref._l_total_guna /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=5308448;
 //BA.debugLineNum = 5308448;BA.debugLine="L_TOTAL_MM.Text = 0";
__ref._l_total_mm /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=5308449;
 //BA.debugLineNum = 5308449;BA.debugLine="L_TOTAL_VIVE.Text = 0";
__ref._l_total_vive /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=5308450;
 //BA.debugLineNum = 5308450;BA.debugLine="L_TOTAL_COMIS.Text = 0";
__ref._l_total_comis /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 };
RDebugUtils.currentLine=5308453;
 //BA.debugLineNum = 5308453;BA.debugLine="End Sub";
return "";
}
public String  _b_hacerpedido_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_hacerpedido_click", false))
	 {return ((String) Debug.delegate(ba, "b_hacerpedido_click", null));}
RDebugUtils.currentLine=6225920;
 //BA.debugLineNum = 6225920;BA.debugLine="Private Sub b_hacerpedido_Click";
RDebugUtils.currentLine=6225921;
 //BA.debugLineNum = 6225921;BA.debugLine="hacer_ped_Click";
__ref._hacer_ped_click /*String*/ (null);
RDebugUtils.currentLine=6225922;
 //BA.debugLineNum = 6225922;BA.debugLine="End Sub";
return "";
}
public String  _hacer_ped_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "hacer_ped_click", false))
	 {return ((String) Debug.delegate(ba, "hacer_ped_click", null));}
RDebugUtils.currentLine=4849664;
 //BA.debugLineNum = 4849664;BA.debugLine="Sub hacer_ped_Click";
RDebugUtils.currentLine=4849665;
 //BA.debugLineNum = 4849665;BA.debugLine="B4XPages.ShowPage(\"Clientes\")";
_b4xpages._showpage /*String*/ (ba,"Clientes");
RDebugUtils.currentLine=4849666;
 //BA.debugLineNum = 4849666;BA.debugLine="End Sub";
return "";
}
public String  _b_mapa_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_mapa_click", false))
	 {return ((String) Debug.delegate(ba, "b_mapa_click", null));}
RDebugUtils.currentLine=4063232;
 //BA.debugLineNum = 4063232;BA.debugLine="Sub b_mapa_Click";
RDebugUtils.currentLine=4063234;
 //BA.debugLineNum = 4063234;BA.debugLine="B4XPages.GetPage(\"Mapas\")";
_b4xpages._getpage /*Object*/ (ba,"Mapas");
RDebugUtils.currentLine=4063235;
 //BA.debugLineNum = 4063235;BA.debugLine="End Sub";
return "";
}
public String  _b_marcas_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_marcas_click", false))
	 {return ((String) Debug.delegate(ba, "b_marcas_click", null));}
int _i = 0;
RDebugUtils.currentLine=5439488;
 //BA.debugLineNum = 5439488;BA.debugLine="Sub B_MARCAS_Click";
RDebugUtils.currentLine=5439489;
 //BA.debugLineNum = 5439489;BA.debugLine="SCROLL_RESDIA.Visible = True";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=5439490;
 //BA.debugLineNum = 5439490;BA.debugLine="p_sombra.Width = Root.Width";
__ref._p_sombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=5439491;
 //BA.debugLineNum = 5439491;BA.debugLine="p_sombra.Height = Root.Height";
__ref._p_sombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=5439492;
 //BA.debugLineNum = 5439492;BA.debugLine="Subs.panelVisible(p_sombra, 0, 0)";
_subs._panelvisible /*String*/ (ba,__ref._p_sombra /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
RDebugUtils.currentLine=5439493;
 //BA.debugLineNum = 5439493;BA.debugLine="p_marcasRes.Visible = True";
__ref._p_marcasres /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=5439494;
 //BA.debugLineNum = 5439494;BA.debugLine="p_marcasRes.Height = Root.Height * 0.8";
__ref._p_marcasres /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight((int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()*0.8));
RDebugUtils.currentLine=5439495;
 //BA.debugLineNum = 5439495;BA.debugLine="p_marcasRes.BringToFront";
__ref._p_marcasres /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
RDebugUtils.currentLine=5439497;
 //BA.debugLineNum = 5439497;BA.debugLine="pnlTitle.Visible = False";
__ref._pnltitle /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=5439501;
 //BA.debugLineNum = 5439501;BA.debugLine="B_OK_PANEL5.Top = p_marcasRes.Height - (B_OK_PANE";
__ref._b_ok_panel5 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setTop((int) (__ref._p_marcasres /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight()-(__ref._b_ok_panel5 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getHeight()+20)));
RDebugUtils.currentLine=5439502;
 //BA.debugLineNum = 5439502;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CAT_GP";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CAT_GP_CLASIF, SUM(TOTAL) AS TOTAL FROM TOTAL_MARCAS GROUP BY CAT_GP_CLASIF")));
RDebugUtils.currentLine=5439503;
 //BA.debugLineNum = 5439503;BA.debugLine="CLV1.Clear";
__ref._clv1 /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=5439504;
 //BA.debugLineNum = 5439504;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=5439505;
 //BA.debugLineNum = 5439505;BA.debugLine="For i=0 To c.RowCount - 1";
{
final int step13 = 1;
final int limit13 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit13 ;_i = _i + step13 ) {
RDebugUtils.currentLine=5439506;
 //BA.debugLineNum = 5439506;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=5439507;
 //BA.debugLineNum = 5439507;BA.debugLine="AddTitle(c.GetString(\"CAT_GP_CLASIF\"))";
__ref._addtitle /*String*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_CLASIF"));
RDebugUtils.currentLine=5439508;
 //BA.debugLineNum = 5439508;BA.debugLine="If c.GetString(\"CAT_GP_CLASIF\") = \"PROMOS\" Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_CLASIF")).equals("PROMOS")) { 
RDebugUtils.currentLine=5439509;
 //BA.debugLineNum = 5439509;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"SELECT SUM";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT SUM(PE_CANT) AS CUANTOS FROM PEDIDO WHERE PE_CEDIS = PE_PROID")));
RDebugUtils.currentLine=5439510;
 //BA.debugLineNum = 5439510;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=5439511;
 //BA.debugLineNum = 5439511;BA.debugLine="CLV1.AddTextItem(\"CANTIDAD DE PROMOS = \" & d.G";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("CANTIDAD DE PROMOS = "+__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")),(Object)("1"));
RDebugUtils.currentLine=5439512;
 //BA.debugLineNum = 5439512;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else {
RDebugUtils.currentLine=5439514;
 //BA.debugLineNum = 5439514;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery2(\"select CO";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select COUNT(*) AS CUANTOS from HIST_MARCAS_CUOTAS where HMC_MARCA = ?",new String[]{__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_CLASIF")})));
RDebugUtils.currentLine=5439515;
 //BA.debugLineNum = 5439515;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=5439516;
 //BA.debugLineNum = 5439516;BA.debugLine="If f.GetString(\"CUANTOS\") > 0 Then";
if ((double)(Double.parseDouble(__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")))>0) { 
RDebugUtils.currentLine=5439517;
 //BA.debugLineNum = 5439517;BA.debugLine="e=B4XPages.MainPage.skmt.ExecQuery2(\"select H";
__ref._e /*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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select HMC_MARCA, HMC_TOTAL from HIST_MARCAS_CUOTAS where HMC_MARCA = ?",new String[]{__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_CLASIF")})));
RDebugUtils.currentLine=5439518;
 //BA.debugLineNum = 5439518;BA.debugLine="e.Position=0";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=5439519;
 //BA.debugLineNum = 5439519;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2($\"SELECT";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("SELECT count(distinct(PE_CLIENTE)) AS CUANTOS FROM PEDIDO WHERE PE_PROID in (select CAT_GP_ID from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,__ref._tipo_venta /*String*/ )))+" WHERE CAT_GP_CLASIF =?)"),new String[]{__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_CLASIF")})));
RDebugUtils.currentLine=5439520;
 //BA.debugLineNum = 5439520;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=5439521;
 //BA.debugLineNum = 5439521;BA.debugLine="CLV1.AddTextItem(\"TOTAL  PREVENTA = $\" & c.Ge";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("TOTAL  PREVENTA = $"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL")),(Object)("1"));
RDebugUtils.currentLine=5439522;
 //BA.debugLineNum = 5439522;BA.debugLine="CLV1.AddTextItem(\"META MES= $\" & e.GetString(";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("META MES= $"+__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HMC_TOTAL")),(Object)("1"));
RDebugUtils.currentLine=5439523;
 //BA.debugLineNum = 5439523;BA.debugLine="CLV1.AddTextItem(\"META DIA= $\" & Round(e.GetS";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("META DIA= $"+BA.NumberToString(__c.Round((double)(Double.parseDouble(__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HMC_TOTAL")))/(double)25))),(Object)("1"));
RDebugUtils.currentLine=5439524;
 //BA.debugLineNum = 5439524;BA.debugLine="CLV1.AddTextItem(\"FALTA DIA= $\" & Round((e.Ge";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("FALTA DIA= $"+BA.NumberToString(__c.Round(((double)(Double.parseDouble(__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HMC_TOTAL")))/(double)25)-(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL")))))),(Object)("1"));
RDebugUtils.currentLine=5439525;
 //BA.debugLineNum = 5439525;BA.debugLine="CLV1.AddTextItem(\"CLIENTES  = \" & d.GetString";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("CLIENTES  = "+__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")),(Object)("1"));
RDebugUtils.currentLine=5439526;
 //BA.debugLineNum = 5439526;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=5439527;
 //BA.debugLineNum = 5439527;BA.debugLine="e.Close";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else {
RDebugUtils.currentLine=5439529;
 //BA.debugLineNum = 5439529;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2($\"SELECT";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("SELECT count(distinct(pe_cliente)) AS CUANTOS FROM PEDIDO WHERE PE_PROID in (select CAT_GP_ID from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,__ref._tipo_venta /*String*/ )))+" WHERE CAT_GP_CLASIF =?)"),new String[]{__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_CLASIF")})));
RDebugUtils.currentLine=5439530;
 //BA.debugLineNum = 5439530;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=5439531;
 //BA.debugLineNum = 5439531;BA.debugLine="CLV1.AddTextItem(\"TOTAL  PREVENTA = $\" & c.Ge";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("TOTAL  PREVENTA = $"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL")),(Object)("1"));
RDebugUtils.currentLine=5439532;
 //BA.debugLineNum = 5439532;BA.debugLine="CLV1.AddTextItem(\"M E T A  = $\" & \"1000\",\"1\")";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("M E T A  = $"+"1000"),(Object)("1"));
RDebugUtils.currentLine=5439533;
 //BA.debugLineNum = 5439533;BA.debugLine="CLV1.AddTextItem(\"FALTA  = $\" & (1000 - c.Get";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("FALTA  = $"+BA.NumberToString((1000-(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL")))))),(Object)("1"));
RDebugUtils.currentLine=5439534;
 //BA.debugLineNum = 5439534;BA.debugLine="CLV1.AddTextItem(\"CLIENTES  = \" & d.GetString";
__ref._clv1 /*b4a.example3.customlistview*/ ._addtextitem((Object)("CLIENTES  = "+__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")),(Object)("1"));
RDebugUtils.currentLine=5439535;
 //BA.debugLineNum = 5439535;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=5439537;
 //BA.debugLineNum = 5439537;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
 }
};
 };
RDebugUtils.currentLine=5439541;
 //BA.debugLineNum = 5439541;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=5439553;
 //BA.debugLineNum = 5439553;BA.debugLine="End Sub";
return "";
}
public String  _b_nuevocliente_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_nuevocliente_click", false))
	 {return ((String) Debug.delegate(ba, "b_nuevocliente_click", null));}
RDebugUtils.currentLine=6160384;
 //BA.debugLineNum = 6160384;BA.debugLine="Private Sub b_nuevocliente_Click";
RDebugUtils.currentLine=6160385;
 //BA.debugLineNum = 6160385;BA.debugLine="nvo_cliente_Click";
__ref._nvo_cliente_click /*String*/ (null);
RDebugUtils.currentLine=6160386;
 //BA.debugLineNum = 6160386;BA.debugLine="End Sub";
return "";
}
public String  _nvo_cliente_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "nvo_cliente_click", false))
	 {return ((String) Debug.delegate(ba, "nvo_cliente_click", null));}
RDebugUtils.currentLine=4915200;
 //BA.debugLineNum = 4915200;BA.debugLine="Sub nvo_cliente_Click";
RDebugUtils.currentLine=4915201;
 //BA.debugLineNum = 4915201;BA.debugLine="B4XPages.ShowPage(\"NuevoCliente\")";
_b4xpages._showpage /*String*/ (ba,"NuevoCliente");
RDebugUtils.currentLine=4915202;
 //BA.debugLineNum = 4915202;BA.debugLine="End Sub";
return "";
}
public String  _b_ok_comiss_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_ok_comiss_click", false))
	 {return ((String) Debug.delegate(ba, "b_ok_comiss_click", null));}
RDebugUtils.currentLine=5373952;
 //BA.debugLineNum = 5373952;BA.debugLine="Sub B_OK_COMISS_Click";
RDebugUtils.currentLine=5373953;
 //BA.debugLineNum = 5373953;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=5373954;
 //BA.debugLineNum = 5373954;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=5373955;
 //BA.debugLineNum = 5373955;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=5373956;
 //BA.debugLineNum = 5373956;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=5373957;
 //BA.debugLineNum = 5373957;BA.debugLine="P_RESUMEN.Visible=False";
__ref._p_resumen /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=5373958;
 //BA.debugLineNum = 5373958;BA.debugLine="Panel_C.Visible = False";
__ref._panel_c /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=5373959;
 //BA.debugLineNum = 5373959;BA.debugLine="SCROLL_RESDIA.Visible = False";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=5373960;
 //BA.debugLineNum = 5373960;BA.debugLine="Btn_Ubicar.Visible=True";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=5373961;
 //BA.debugLineNum = 5373961;BA.debugLine="p_principal.Visible = True";
__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=5373962;
 //BA.debugLineNum = 5373962;BA.debugLine="SCROLL_RESDIA.Panel.RemoveAllViews";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .getPanel().RemoveAllViews();
RDebugUtils.currentLine=5373963;
 //BA.debugLineNum = 5373963;BA.debugLine="End Sub";
return "";
}
public String  _b_ok_panel5_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_ok_panel5_click", false))
	 {return ((String) Debug.delegate(ba, "b_ok_panel5_click", null));}
RDebugUtils.currentLine=5570560;
 //BA.debugLineNum = 5570560;BA.debugLine="Sub B_OK_PANEL5_Click";
RDebugUtils.currentLine=5570561;
 //BA.debugLineNum = 5570561;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=5570562;
 //BA.debugLineNum = 5570562;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=5570563;
 //BA.debugLineNum = 5570563;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=5570564;
 //BA.debugLineNum = 5570564;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=5570565;
 //BA.debugLineNum = 5570565;BA.debugLine="P_RESUMEN.Visible=False";
__ref._p_resumen /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=5570566;
 //BA.debugLineNum = 5570566;BA.debugLine="Panel4.Visible = False";
__ref._panel4 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=5570567;
 //BA.debugLineNum = 5570567;BA.debugLine="SCROLL_RESDIA.Visible = False";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=5570568;
 //BA.debugLineNum = 5570568;BA.debugLine="p_marcasRes.Visible = False";
__ref._p_marcasres /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=5570569;
 //BA.debugLineNum = 5570569;BA.debugLine="p_sombra.Visible = False";
__ref._p_sombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=5570570;
 //BA.debugLineNum = 5570570;BA.debugLine="Btn_Ubicar.Visible=True";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=5570571;
 //BA.debugLineNum = 5570571;BA.debugLine="p_principal.Visible = True";
__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=5570572;
 //BA.debugLineNum = 5570572;BA.debugLine="End Sub";
return "";
}
public String  _b_ok_pas_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_ok_pas_click", false))
	 {return ((String) Debug.delegate(ba, "b_ok_pas_click", null));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _cn = null;
int _gh = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c11 = null;
int _i = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c12 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c13 = null;
RDebugUtils.currentLine=4390912;
 //BA.debugLineNum = 4390912;BA.debugLine="Sub B_OK_PAS_Click";
RDebugUtils.currentLine=4390913;
 //BA.debugLineNum = 4390913;BA.debugLine="If CARGA = \"SUBIR\" And S_CP.Text = \"INFO OK\" Then";
if ((__ref._carga /*String*/ ).equals("SUBIR") && (__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("INFO OK")) { 
RDebugUtils.currentLine=4390914;
 //BA.debugLineNum = 4390914;BA.debugLine="P1.Visible = False";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4390915;
 //BA.debugLineNum = 4390915;BA.debugLine="Btn_Ubicar.Visible=True";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390917;
 //BA.debugLineNum = 4390917;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390918;
 //BA.debugLineNum = 4390918;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390919;
 //BA.debugLineNum = 4390919;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390920;
 //BA.debugLineNum = 4390920;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390921;
 //BA.debugLineNum = 4390921;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4390922;
 //BA.debugLineNum = 4390922;BA.debugLine="CARGA = \"\"";
__ref._carga /*String*/  = "";
RDebugUtils.currentLine=4390924;
 //BA.debugLineNum = 4390924;BA.debugLine="E_RUTA2.Text = \"\"";
__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=4390925;
 //BA.debugLineNum = 4390925;BA.debugLine="e_ruta.Text = \"\"";
__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=4390926;
 //BA.debugLineNum = 4390926;BA.debugLine="Label4.Visible = True";
__ref._label4 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390927;
 //BA.debugLineNum = 4390927;BA.debugLine="l_ruta.Visible = True";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390928;
 //BA.debugLineNum = 4390928;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
 }else 
{RDebugUtils.currentLine=4390929;
 //BA.debugLineNum = 4390929;BA.debugLine="Else If CARGA = \"SUBIR\" And S_CP.Text = \"ERROR\" T";
if ((__ref._carga /*String*/ ).equals("SUBIR") && (__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("ERROR")) { 
RDebugUtils.currentLine=4390930;
 //BA.debugLineNum = 4390930;BA.debugLine="Msgbox(\"Tiene que subir de nuevo la información\"";
__c.Msgbox(BA.ObjectToCharSequence("Tiene que subir de nuevo la información"),BA.ObjectToCharSequence("Atención"),ba);
RDebugUtils.currentLine=4390931;
 //BA.debugLineNum = 4390931;BA.debugLine="P1.Visible = False";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4390933;
 //BA.debugLineNum = 4390933;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390934;
 //BA.debugLineNum = 4390934;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390935;
 //BA.debugLineNum = 4390935;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390936;
 //BA.debugLineNum = 4390936;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390937;
 //BA.debugLineNum = 4390937;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
 }else 
{RDebugUtils.currentLine=4390939;
 //BA.debugLineNum = 4390939;BA.debugLine="Else if CARGA = \"SUBIR\" And S_CP.Text <> \"INFO OK";
if ((__ref._carga /*String*/ ).equals("SUBIR") && (__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("INFO OK") == false) { 
RDebugUtils.currentLine=4390940;
 //BA.debugLineNum = 4390940;BA.debugLine="RES =  Msgbox2(\"Seguro que desa abortar el proce";
__ref._res /*String*/  = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desa abortar el proceso"),BA.ObjectToCharSequence("Cierre"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba));
RDebugUtils.currentLine=4390941;
 //BA.debugLineNum = 4390941;BA.debugLine="If RES = DialogResponse.POSITIVE Then";
if ((__ref._res /*String*/ ).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { 
RDebugUtils.currentLine=4390942;
 //BA.debugLineNum = 4390942;BA.debugLine="P1.Visible = False";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4390944;
 //BA.debugLineNum = 4390944;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390945;
 //BA.debugLineNum = 4390945;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390946;
 //BA.debugLineNum = 4390946;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390947;
 //BA.debugLineNum = 4390947;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390948;
 //BA.debugLineNum = 4390948;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4390949;
 //BA.debugLineNum = 4390949;BA.debugLine="l_visitartotal.Visible = True";
__ref._l_visitartotal /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390950;
 //BA.debugLineNum = 4390950;BA.debugLine="de.Visible = True";
__ref._de /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390951;
 //BA.debugLineNum = 4390951;BA.debugLine="l_faltan.Visible = True";
__ref._l_faltan /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390952;
 //BA.debugLineNum = 4390952;BA.debugLine="l_visitas.Visible = True";
__ref._l_visitas /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390954;
 //BA.debugLineNum = 4390954;BA.debugLine="ExitApplication";
__c.ExitApplication();
 };
 }}}
;
RDebugUtils.currentLine=4390957;
 //BA.debugLineNum = 4390957;BA.debugLine="If CARGA = \"CARGAR\" And S_CP.Text = \"LISTO\" And S";
if ((__ref._carga /*String*/ ).equals("CARGAR") && (__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("LISTO") && (__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("LISTO") && (__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("LISTO")) { 
RDebugUtils.currentLine=4390958;
 //BA.debugLineNum = 4390958;BA.debugLine="P1.Visible = False";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4390959;
 //BA.debugLineNum = 4390959;BA.debugLine="Btn_Ubicar.Visible=True";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390961;
 //BA.debugLineNum = 4390961;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390962;
 //BA.debugLineNum = 4390962;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390963;
 //BA.debugLineNum = 4390963;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390964;
 //BA.debugLineNum = 4390964;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390965;
 //BA.debugLineNum = 4390965;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4390967;
 //BA.debugLineNum = 4390967;BA.debugLine="Label4.Visible = True";
__ref._label4 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390968;
 //BA.debugLineNum = 4390968;BA.debugLine="l_ruta.Visible = True";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390969;
 //BA.debugLineNum = 4390969;BA.debugLine="l_visitartotal.Visible = True";
__ref._l_visitartotal /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390970;
 //BA.debugLineNum = 4390970;BA.debugLine="de.Visible = True";
__ref._de /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390971;
 //BA.debugLineNum = 4390971;BA.debugLine="l_faltan.Visible = True";
__ref._l_faltan /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390972;
 //BA.debugLineNum = 4390972;BA.debugLine="l_visitas.Visible = True";
__ref._l_visitas /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4390973;
 //BA.debugLineNum = 4390973;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=4390975;
 //BA.debugLineNum = 4390975;BA.debugLine="Dim cn As Cursor = Starter.skmt.ExecQuery(\"SELEC";
_cn = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_cn = (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 CLIENTES_NUEVOS")));
RDebugUtils.currentLine=4390976;
 //BA.debugLineNum = 4390976;BA.debugLine="If cn.RowCount > 0 Then";
if (_cn.getRowCount()>0) { 
RDebugUtils.currentLine=4390977;
 //BA.debugLineNum = 4390977;BA.debugLine="For gh = 0 To cn.RowCount -1";
{
final int step56 = 1;
final int limit56 = (int) (_cn.getRowCount()-1);
_gh = (int) (0) ;
for (;_gh <= limit56 ;_gh = _gh + step56 ) {
RDebugUtils.currentLine=4390978;
 //BA.debugLineNum = 4390978;BA.debugLine="cn.Position = gh";
_cn.setPosition(_gh);
RDebugUtils.currentLine=4390979;
 //BA.debugLineNum = 4390979;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO kmt_in";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info3(CAT_CL_CODIGO,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT,CAT_CL_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO, gestion, CAT_CL_GIRO,CAT_CL_NUMEROINT,CAT_CL_NUMEROEXT,CAT_CL_REFERENCIA) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,0,0,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cn.GetString("CN_ID")),(Object)(_cn.GetString("CN_RUTA")),(Object)(_cn.GetString("CN_NOMBRE")),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)(_cn.GetString("CN_CALLE1")),(Object)(_cn.GetString("CN_CALLE2")),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)(_cn.GetString("CN_LON")),(Object)(_cn.GetString("CN_LAT")),(Object)(_cn.GetString("CN_GIRO")),(Object)(_cn.GetString("CN_NUMEROINT")),(Object)(_cn.GetString("CN_NUMEROEXT")),(Object)(_cn.GetString("CN_REFERENCIA"))}));
 }
};
 };
RDebugUtils.currentLine=4390983;
 //BA.debugLineNum = 4390983;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FRO";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"CARGA_DIA"}));
RDebugUtils.currentLine=4390984;
 //BA.debugLineNum = 4390984;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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)("CARGA_DIA"),(Object)(1)}));
RDebugUtils.currentLine=4390985;
 //BA.debugLineNum = 4390985;BA.debugLine="If E_RUTA2.Visible = True Then";
if (__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getVisible()==__c.True) { 
RDebugUtils.currentLine=4390986;
 //BA.debugLineNum = 4390986;BA.debugLine="bitacora.mandaBitacora(Subs.fechanormal(DateTim";
__ref._bitacora /*gunav2.keymon.com.mx.c_bitacora*/ ._mandabitacora /*String*/ (null,_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),__ref._usuario /*String*/ ,_subs._traealmacen /*String*/ (ba),_subs._traeruta /*String*/ (ba),"Carga día suplencia","",_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ,"2","","","");
 }else {
RDebugUtils.currentLine=4390988;
 //BA.debugLineNum = 4390988;BA.debugLine="bitacora.mandaBitacora(Subs.fechanormal(DateTim";
__ref._bitacora /*gunav2.keymon.com.mx.c_bitacora*/ ._mandabitacora /*String*/ (null,_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),__ref._usuario /*String*/ ,_subs._traealmacen /*String*/ (ba),_subs._traeruta /*String*/ (ba),"Carga día","",_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ,"2","","","");
 };
RDebugUtils.currentLine=4390990;
 //BA.debugLineNum = 4390990;BA.debugLine="Dim c11  As Cursor = Starter.skmt.ExecQuery(\"Sel";
_c11 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c11 = (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  PE_PRONOMBRE, PE_PROID, PE_CANT FROM PEDIDO WHERE PE_FOLIO = 'PREVENTA'")));
RDebugUtils.currentLine=4390991;
 //BA.debugLineNum = 4390991;BA.debugLine="If c11.RowCount > 0 Then";
if (_c11.getRowCount()>0) { 
RDebugUtils.currentLine=4390992;
 //BA.debugLineNum = 4390992;BA.debugLine="For i = 0 To c11.RowCount - 1";
{
final int step70 = 1;
final int limit70 = (int) (_c11.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit70 ;_i = _i + step70 ) {
RDebugUtils.currentLine=4390993;
 //BA.debugLineNum = 4390993;BA.debugLine="c11.Position = i";
_c11.setPosition(_i);
RDebugUtils.currentLine=4390994;
 //BA.debugLineNum = 4390994;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE CAT_GUNAPRO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE CAT_GUNAPROD SET CAT_GP_ALMACEN = CAT_GP_ALMACEN - "+__c.SmartStringFormatter("",(Object)(_c11.GetString("PE_CANT")))+"  WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_c11.GetString("PE_PROID")))+"'"));
 }
};
 };
RDebugUtils.currentLine=4390997;
 //BA.debugLineNum = 4390997;BA.debugLine="c11.Close";
_c11.Close();
RDebugUtils.currentLine=4390999;
 //BA.debugLineNum = 4390999;BA.debugLine="Dim c12  As Cursor = Starter.skmt.ExecQuery(\"Sel";
_c12 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c12 = (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  PE_PRONOMBRE, PE_PROID, PE_CANT FROM PEDIDO WHERE PE_FOLIO = 'ABORDO'")));
RDebugUtils.currentLine=4391000;
 //BA.debugLineNum = 4391000;BA.debugLine="If c12.RowCount > 0 Then";
if (_c12.getRowCount()>0) { 
RDebugUtils.currentLine=4391001;
 //BA.debugLineNum = 4391001;BA.debugLine="For i = 0 To c12.RowCount - 1";
{
final int step78 = 1;
final int limit78 = (int) (_c12.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit78 ;_i = _i + step78 ) {
RDebugUtils.currentLine=4391002;
 //BA.debugLineNum = 4391002;BA.debugLine="c12.Position = i";
_c12.setPosition(_i);
RDebugUtils.currentLine=4391003;
 //BA.debugLineNum = 4391003;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE CAT_GUNAPRO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE CAT_GUNAPROD SET CAT_GP_ALMACEN = CAT_GP_ALMACEN - "+__c.SmartStringFormatter("",(Object)(_c12.GetString("PE_CANT")))+"  WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_c12.GetString("PE_PROID")))+"'"));
 }
};
 };
RDebugUtils.currentLine=4391006;
 //BA.debugLineNum = 4391006;BA.debugLine="c12.Close";
_c12.Close();
RDebugUtils.currentLine=4391008;
 //BA.debugLineNum = 4391008;BA.debugLine="Dim c13  As Cursor = Starter.skmt.ExecQuery(\"Sel";
_c13 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c13 = (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  PE_PRONOMBRE, PE_PROID, PE_CANT FROM PEDIDO WHERE PE_FOLIO = 'VENTA'")));
RDebugUtils.currentLine=4391009;
 //BA.debugLineNum = 4391009;BA.debugLine="If c13.RowCount > 0 Then";
if (_c13.getRowCount()>0) { 
RDebugUtils.currentLine=4391010;
 //BA.debugLineNum = 4391010;BA.debugLine="For i = 0 To c13.RowCount - 1";
{
final int step86 = 1;
final int limit86 = (int) (_c13.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit86 ;_i = _i + step86 ) {
RDebugUtils.currentLine=4391011;
 //BA.debugLineNum = 4391011;BA.debugLine="c13.Position = i";
_c13.setPosition(_i);
RDebugUtils.currentLine=4391012;
 //BA.debugLineNum = 4391012;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE CAT_GUNAPRO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE CAT_GUNAPROD2 SET CAT_GP_ALMACEN = CAT_GP_ALMACEN - "+__c.SmartStringFormatter("",(Object)(_c13.GetString("PE_CANT")))+"  WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_c13.GetString("PE_PROID")))+"'"));
 }
};
 };
RDebugUtils.currentLine=4391015;
 //BA.debugLineNum = 4391015;BA.debugLine="c13.Close";
_c13.Close();
RDebugUtils.currentLine=4391019;
 //BA.debugLineNum = 4391019;BA.debugLine="checaPedido";
__ref._checapedido /*String*/ (null);
 }else 
{RDebugUtils.currentLine=4391020;
 //BA.debugLineNum = 4391020;BA.debugLine="Else if CARGA = \"CARGAR\" And (S_CP.Text <> \"LISTO";
if ((__ref._carga /*String*/ ).equals("CARGAR") && ((__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("LISTO") == false || (__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("LISTO") == false || (__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("LISTO") == false)) { 
RDebugUtils.currentLine=4391021;
 //BA.debugLineNum = 4391021;BA.debugLine="RES =  Msgbox2(\"Seguro que desa abortar el proce";
__ref._res /*String*/  = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desa abortar el proceso"),BA.ObjectToCharSequence("Cierre"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba));
RDebugUtils.currentLine=4391022;
 //BA.debugLineNum = 4391022;BA.debugLine="If RES = DialogResponse.POSITIVE Then";
if ((__ref._res /*String*/ ).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { 
RDebugUtils.currentLine=4391023;
 //BA.debugLineNum = 4391023;BA.debugLine="P1.Visible = False";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4391025;
 //BA.debugLineNum = 4391025;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4391026;
 //BA.debugLineNum = 4391026;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4391027;
 //BA.debugLineNum = 4391027;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4391028;
 //BA.debugLineNum = 4391028;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4391029;
 //BA.debugLineNum = 4391029;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4391031;
 //BA.debugLineNum = 4391031;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=4391032;
 //BA.debugLineNum = 4391032;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info3");
RDebugUtils.currentLine=4391033;
 //BA.debugLineNum = 4391033;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cod_result");
RDebugUtils.currentLine=4391034;
 //BA.debugLineNum = 4391034;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from hist_gest");
RDebugUtils.currentLine=4391035;
 //BA.debugLineNum = 4391035;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
RDebugUtils.currentLine=4391036;
 //BA.debugLineNum = 4391036;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
RDebugUtils.currentLine=4391037;
 //BA.debugLineNum = 4391037;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from telefonos");
RDebugUtils.currentLine=4391038;
 //BA.debugLineNum = 4391038;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS");
RDebugUtils.currentLine=4391039;
 //BA.debugLineNum = 4391039;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_PROMOS");
RDebugUtils.currentLine=4391040;
 //BA.debugLineNum = 4391040;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_CLIENTE_CANT_PROMOS");
RDebugUtils.currentLine=4391041;
 //BA.debugLineNum = 4391041;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PROMOS_COMP");
RDebugUtils.currentLine=4391042;
 //BA.debugLineNum = 4391042;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_VERIFICACION");
RDebugUtils.currentLine=4391043;
 //BA.debugLineNum = 4391043;BA.debugLine="ExitApplication";
__c.ExitApplication();
 };
 }}
;
RDebugUtils.currentLine=4391046;
 //BA.debugLineNum = 4391046;BA.debugLine="If Subs.traeTipoVentaDeBD = \"VENTA\" Or Subs.traeT";
if ((_subs._traetipoventadebd /*String*/ (ba)).equals("VENTA") || (_subs._traetipoventadebd /*String*/ (ba)).equals("ABORDO")) { 
RDebugUtils.currentLine=4391047;
 //BA.debugLineNum = 4391047;BA.debugLine="If l_ruta.Text <> \"0\" Then";
if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0") == false) { 
RDebugUtils.currentLine=4391048;
 //BA.debugLineNum = 4391048;BA.debugLine="Log(888 & \"|\" & l_ruta.Text & \"|\")";
__c.LogImpl("04391048",BA.NumberToString(888)+"|"+__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+"|",0);
RDebugUtils.currentLine=4391049;
 //BA.debugLineNum = 4391049;BA.debugLine="b_abordo.Visible = False";
__ref._b_abordo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 };
 }else {
RDebugUtils.currentLine=4391052;
 //BA.debugLineNum = 4391052;BA.debugLine="b_abordo.Visible = False";
__ref._b_abordo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 };
RDebugUtils.currentLine=4391054;
 //BA.debugLineNum = 4391054;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_appear(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b4xpage_appear", false))
	 {return ((String) Debug.delegate(ba, "b4xpage_appear", null));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _totalcisitas = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _visitasfaltantes = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _s3 = null;
String _total7 = "";
int _i = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _s = null;
RDebugUtils.currentLine=3473408;
 //BA.debugLineNum = 3473408;BA.debugLine="Sub B4XPage_Appear";
RDebugUtils.currentLine=3473412;
 //BA.debugLineNum = 3473412;BA.debugLine="p_principal.Visible = True";
__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3473413;
 //BA.debugLineNum = 3473413;BA.debugLine="E_RUTA2.Text = \"\"";
__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=3473414;
 //BA.debugLineNum = 3473414;BA.debugLine="p_ruta2.Visible = False";
__ref._p_ruta2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3473415;
 //BA.debugLineNum = 3473415;BA.debugLine="E_RUTA2.Visible = False";
__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3473416;
 //BA.debugLineNum = 3473416;BA.debugLine="p_somvra_2.Visible = False";
__ref._p_somvra_2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3473417;
 //BA.debugLineNum = 3473417;BA.debugLine="Subs.validaPromoProcterPRO3009";
_subs._validapromoprocterpro3009 /*String*/ (ba);
RDebugUtils.currentLine=3473418;
 //BA.debugLineNum = 3473418;BA.debugLine="HORAINGRESO =\"000000\"";
__ref._horaingreso /*String*/  = "000000";
RDebugUtils.currentLine=3473419;
 //BA.debugLineNum = 3473419;BA.debugLine="Btn_Ubicar.Left = (Panel4.Width/2) - (Btn_Ubicar.";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setLeft((int) ((__ref._panel4 /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth()/(double)2)-(__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getWidth()/(double)2)));
RDebugUtils.currentLine=3473421;
 //BA.debugLineNum = 3473421;BA.debugLine="PASO = 0";
__ref._paso /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=3473422;
 //BA.debugLineNum = 3473422;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then";
if (__c.Not(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) { 
RDebugUtils.currentLine=3473423;
 //BA.debugLineNum = 3473423;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessageS";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence("Es necesario tener el GPS encendido"),__c.True);};
RDebugUtils.currentLine=3473424;
 //BA.debugLineNum = 3473424;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent";
__c.StartActivity(ba,(Object)(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent()));
 };
RDebugUtils.currentLine=3473426;
 //BA.debugLineNum = 3473426;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"select count";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select count(*) as CUANTOS from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"FECHA"})));
RDebugUtils.currentLine=3473427;
 //BA.debugLineNum = 3473427;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3473428;
 //BA.debugLineNum = 3473428;BA.debugLine="If c.GetString(\"CUANTOS\") = 0 Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=3473429;
 //BA.debugLineNum = 3473429;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3473430;
 //BA.debugLineNum = 3473430;BA.debugLine="cmd.Name = \"select_fecha\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_fecha";
RDebugUtils.currentLine=3473431;
 //BA.debugLineNum = 3473431;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("fecha"));
RDebugUtils.currentLine=3473432;
 //BA.debugLineNum = 3473432;BA.debugLine="Msgbox(\"AJUSTAR FECHA\",\"AVISO\") 'ignore";
__c.Msgbox(BA.ObjectToCharSequence("AJUSTAR FECHA"),BA.ObjectToCharSequence("AVISO"),ba);
RDebugUtils.currentLine=3473433;
 //BA.debugLineNum = 3473433;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
 }else {
RDebugUtils.currentLine=3473435;
 //BA.debugLineNum = 3473435;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery2(\"select CA";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"FECHA"})));
RDebugUtils.currentLine=3473436;
 //BA.debugLineNum = 3473436;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3473437;
 //BA.debugLineNum = 3473437;BA.debugLine="Dim sDate, sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=3473438;
 //BA.debugLineNum = 3473438;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\"";
__c.DateTime.setDateFormat("yyyyMMdd");
RDebugUtils.currentLine=3473439;
 //BA.debugLineNum = 3473439;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=3473440;
 //BA.debugLineNum = 3473440;BA.debugLine="If c.GetString(\"CAT_VA_VALOR\") > sDate Then";
if ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_VA_VALOR")))>(double)(Double.parseDouble(__ref._sdate /*String*/ ))) { 
RDebugUtils.currentLine=3473441;
 //BA.debugLineNum = 3473441;BA.debugLine="Msgbox(\"AJUSTAR LA FECHA YA QUE ES MENOR AL SIS";
__c.Msgbox(BA.ObjectToCharSequence("AJUSTAR LA FECHA YA QUE ES MENOR AL SISTEMA"),BA.ObjectToCharSequence("AVISO"),ba);
RDebugUtils.currentLine=3473442;
 //BA.debugLineNum = 3473442;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3473443;
 //BA.debugLineNum = 3473443;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
 };
RDebugUtils.currentLine=3473445;
 //BA.debugLineNum = 3473445;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=3473447;
 //BA.debugLineNum = 3473447;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3473448;
 //BA.debugLineNum = 3473448;BA.debugLine="If EJECUTANDO = 0 Then";
if ((__ref._ejecutando /*String*/ ).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=3473449;
 //BA.debugLineNum = 3473449;BA.debugLine="Listo1 = 0";
__ref._listo1 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=3473450;
 //BA.debugLineNum = 3473450;BA.debugLine="Listo2 = 0";
__ref._listo2 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=3473451;
 //BA.debugLineNum = 3473451;BA.debugLine="Listo3 = 0";
__ref._listo3 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=3473452;
 //BA.debugLineNum = 3473452;BA.debugLine="Listo4 = 0";
__ref._listo4 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=3473453;
 //BA.debugLineNum = 3473453;BA.debugLine="Listo5 = 0";
__ref._listo5 /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=3473454;
 //BA.debugLineNum = 3473454;BA.debugLine="inve = 0";
__ref._inve /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=3473455;
 //BA.debugLineNum = 3473455;BA.debugLine="img2.Visible =False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
 };
RDebugUtils.currentLine=3473457;
 //BA.debugLineNum = 3473457;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=3473458;
 //BA.debugLineNum = 3473458;BA.debugLine="fecha=DateTime.Date(DateTime.Now)";
__ref._fecha /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=3473459;
 //BA.debugLineNum = 3473459;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"Select count(";
__ref._b /*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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) as CUANTOS from pedido_cliente")));
RDebugUtils.currentLine=3473460;
 //BA.debugLineNum = 3473460;BA.debugLine="b.Position = 0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3473461;
 //BA.debugLineNum = 3473461;BA.debugLine="Cuantos = b.GetString(\"CUANTOS\")";
__ref._cuantos /*String*/  = __ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS");
RDebugUtils.currentLine=3473462;
 //BA.debugLineNum = 3473462;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3473463;
 //BA.debugLineNum = 3473463;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessageSh";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence(__ref._cuantos /*String*/ ),__c.True);};
RDebugUtils.currentLine=3473464;
 //BA.debugLineNum = 3473464;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as TOTAL_VISITAR from kmt_info3 where gestion = 0")));
RDebugUtils.currentLine=3473465;
 //BA.debugLineNum = 3473465;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3473466;
 //BA.debugLineNum = 3473466;BA.debugLine="e=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
__ref._e /*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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as POR_VISITAR from kmt_info3")));
RDebugUtils.currentLine=3473467;
 //BA.debugLineNum = 3473467;BA.debugLine="e.Position=0";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3473468;
 //BA.debugLineNum = 3473468;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as CAT_CL_RUTA from kmt_info3")));
RDebugUtils.currentLine=3473469;
 //BA.debugLineNum = 3473469;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3473470;
 //BA.debugLineNum = 3473470;BA.debugLine="l_ruta.Text = f.GetString(\"CAT_CL_RUTA\")";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA")));
RDebugUtils.currentLine=3473471;
 //BA.debugLineNum = 3473471;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3473472;
 //BA.debugLineNum = 3473472;BA.debugLine="If l_ruta.Text = 0 Then";
if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=3473473;
 //BA.debugLineNum = 3473473;BA.debugLine="l_ruta.Text =0";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3473474;
 //BA.debugLineNum = 3473474;BA.debugLine="l_visitas.Text = 0";
__ref._l_visitas /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3473475;
 //BA.debugLineNum = 3473475;BA.debugLine="l_faltan.Text = 0";
__ref._l_faltan /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 }else {
RDebugUtils.currentLine=3473477;
 //BA.debugLineNum = 3473477;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select disti";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct CAT_CL_RUTA from kmt_info3 where CAT_CL_RUTA not in (select * from ruta_suplencia)")));
RDebugUtils.currentLine=3473478;
 //BA.debugLineNum = 3473478;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3473479;
 //BA.debugLineNum = 3473479;BA.debugLine="l_ruta.Text = f.GetString(\"CAT_CL_RUTA\")";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA")));
RDebugUtils.currentLine=3473480;
 //BA.debugLineNum = 3473480;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3473482;
 //BA.debugLineNum = 3473482;BA.debugLine="Dim totalcisitas As Cursor = Starter.skmt.ExecQu";
_totalcisitas = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_totalcisitas = (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 COUNT(*) AS CUENTA FROM KMT_INFO3 where cat_cl_codigo <> 0")));
RDebugUtils.currentLine=3473483;
 //BA.debugLineNum = 3473483;BA.debugLine="totalcisitas.Position = 0";
_totalcisitas.setPosition((int) (0));
RDebugUtils.currentLine=3473484;
 //BA.debugLineNum = 3473484;BA.debugLine="l_visitas.Text = totalcisitas.GetInt(\"CUENTA\")";
__ref._l_visitas /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_totalcisitas.GetInt("CUENTA")));
RDebugUtils.currentLine=3473485;
 //BA.debugLineNum = 3473485;BA.debugLine="Dim visitasfaltantes As Cursor = Starter.skmt.Ex";
_visitasfaltantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_visitasfaltantes = (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 COUNT(*) AS CUENTA FROM KMT_INFO3 WHERE gestion = 0 and cat_cl_codigo <> 0")));
RDebugUtils.currentLine=3473486;
 //BA.debugLineNum = 3473486;BA.debugLine="visitasfaltantes.Position = 0";
_visitasfaltantes.setPosition((int) (0));
RDebugUtils.currentLine=3473487;
 //BA.debugLineNum = 3473487;BA.debugLine="l_faltan.Text = visitasfaltantes.GetInt(\"CUENTA\"";
__ref._l_faltan /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_visitasfaltantes.GetInt("CUENTA")));
 };
RDebugUtils.currentLine=3473489;
 //BA.debugLineNum = 3473489;BA.debugLine="If Cuantos = 0 Then";
if ((__ref._cuantos /*String*/ ).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=3473490;
 //BA.debugLineNum = 3473490;BA.debugLine="L_MONTOD.Text =0";
__ref._l_montod /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3473491;
 //BA.debugLineNum = 3473491;BA.debugLine="l_cuantosc.Text = 0";
__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3473492;
 //BA.debugLineNum = 3473492;BA.debugLine="l_cuantosn.Text = 0";
__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3473493;
 //BA.debugLineNum = 3473493;BA.debugLine="L_CUANTOST.Text = 0";
__ref._l_cuantost /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3473494;
 //BA.debugLineNum = 3473494;BA.debugLine="drop = 0";
__ref._drop /*double*/  = 0;
RDebugUtils.currentLine=3473495;
 //BA.debugLineNum = 3473495;BA.debugLine="l_drop.Text = 0";
__ref._l_drop /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3473496;
 //BA.debugLineNum = 3473496;BA.debugLine="efectiva = 0";
__ref._efectiva /*double*/  = 0;
RDebugUtils.currentLine=3473497;
 //BA.debugLineNum = 3473497;BA.debugLine="l_efectiva.text =0";
__ref._l_efectiva /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3473498;
 //BA.debugLineNum = 3473498;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")";
__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL_VISITAR")));
RDebugUtils.currentLine=3473499;
 //BA.debugLineNum = 3473499;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")";
__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("POR_VISITAR")));
RDebugUtils.currentLine=3473500;
 //BA.debugLineNum = 3473500;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3473501;
 //BA.debugLineNum = 3473501;BA.debugLine="e.Close";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3473502;
 //BA.debugLineNum = 3473502;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"select count";
__ref._b /*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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count( distinct NV_CLIENTE) as CUANTOS from noventa")));
RDebugUtils.currentLine=3473503;
 //BA.debugLineNum = 3473503;BA.debugLine="b.Position=0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3473504;
 //BA.debugLineNum = 3473504;BA.debugLine="l_cuantosn.Text = b.GetString(\"CUANTOS\")";
__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")));
RDebugUtils.currentLine=3473505;
 //BA.debugLineNum = 3473505;BA.debugLine="b.close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else {
RDebugUtils.currentLine=3473507;
 //BA.debugLineNum = 3473507;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select SUM(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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select SUM(PE_COSTO_TOT) as MONTO_DIA, COUNT(DISTINCT(PE_CLIENTE)) AS CLIENTES_DIA from PEDIDO")));
RDebugUtils.currentLine=3473508;
 //BA.debugLineNum = 3473508;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"select count";
__ref._b /*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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count( distinct NV_CLIENTE) as CUANTOS from noventa")));
RDebugUtils.currentLine=3473509;
 //BA.debugLineNum = 3473509;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3473510;
 //BA.debugLineNum = 3473510;BA.debugLine="b.Position=0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3473511;
 //BA.debugLineNum = 3473511;BA.debugLine="L_MONTOD.Text = NumberFormat2(c.GetDouble(\"MONTO";
__ref._l_montod /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetDouble("MONTO_DIA"),(int) (0),(int) (2),(int) (2),__c.False)));
RDebugUtils.currentLine=3473512;
 //BA.debugLineNum = 3473512;BA.debugLine="l_cuantosc.Text = c.GetString(\"CLIENTES_DIA\")";
__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTES_DIA")));
RDebugUtils.currentLine=3473513;
 //BA.debugLineNum = 3473513;BA.debugLine="D2=B4XPages.MainPage.skmt.ExecQuery(\"select  COU";
__ref._d2 /*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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select  COUNT(*) AS CUANTOS   from PEDIDO ")));
RDebugUtils.currentLine=3473514;
 //BA.debugLineNum = 3473514;BA.debugLine="D2.Position = 0";
__ref._d2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3473515;
 //BA.debugLineNum = 3473515;BA.debugLine="LPT = D2.GetString(\"CUANTOS\") / l_cuantosc.Text";
__ref._lpt /*String*/  = BA.NumberToString((double)(Double.parseDouble(__ref._d2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")))/(double)(double)(Double.parseDouble(__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())));
RDebugUtils.currentLine=3473516;
 //BA.debugLineNum = 3473516;BA.debugLine="D2.Close";
__ref._d2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3473517;
 //BA.debugLineNum = 3473517;BA.debugLine="l_cuantosn.Text = b.GetString(\"CUANTOS\")";
__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")));
RDebugUtils.currentLine=3473518;
 //BA.debugLineNum = 3473518;BA.debugLine="efectiva = c.GetString(\"CLIENTES_DIA\") / e.GetSt";
__ref._efectiva /*double*/  = (double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTES_DIA")))/(double)(double)(Double.parseDouble(__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("POR_VISITAR")));
RDebugUtils.currentLine=3473519;
 //BA.debugLineNum = 3473519;BA.debugLine="l_efectiva.text = Round2(efectiva*100,2)";
__ref._l_efectiva /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2(__ref._efectiva /*double*/ *100,(int) (2))));
RDebugUtils.currentLine=3473520;
 //BA.debugLineNum = 3473520;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")";
__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL_VISITAR")));
RDebugUtils.currentLine=3473521;
 //BA.debugLineNum = 3473521;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3473522;
 //BA.debugLineNum = 3473522;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")";
__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("POR_VISITAR")));
RDebugUtils.currentLine=3473523;
 //BA.debugLineNum = 3473523;BA.debugLine="L_CUANTOST.Text = l_cuantosc.Text + l_cuantosn.T";
__ref._l_cuantost /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence((double)(Double.parseDouble(__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))+(double)(Double.parseDouble(__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))));
RDebugUtils.currentLine=3473524;
 //BA.debugLineNum = 3473524;BA.debugLine="drop = L_CUANTOST.Text / l_porvisitar.Text";
__ref._drop /*double*/  = (double)(Double.parseDouble(__ref._l_cuantost /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))/(double)(double)(Double.parseDouble(__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()));
RDebugUtils.currentLine=3473525;
 //BA.debugLineNum = 3473525;BA.debugLine="l_drop.Text = Round(drop * 100)";
__ref._l_drop /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round(__ref._drop /*double*/ *100)));
RDebugUtils.currentLine=3473526;
 //BA.debugLineNum = 3473526;BA.debugLine="If L_CUANTOST.Text < 40 Then";
if ((double)(Double.parseDouble(__ref._l_cuantost /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))<40) { 
RDebugUtils.currentLine=3473527;
 //BA.debugLineNum = 3473527;BA.debugLine="ImageView3.Bitmap = LoadBitmap(File.DirAssets,";
__ref._imageview3 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"tache_rojo.png").getObject()));
 }else 
{RDebugUtils.currentLine=3473528;
 //BA.debugLineNum = 3473528;BA.debugLine="Else If L_CUANTOST.Text > =  40  And L_CUANTOST.";
if ((double)(Double.parseDouble(__ref._l_cuantost /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))>=40 && (double)(Double.parseDouble(__ref._l_cuantost /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))<50) { 
RDebugUtils.currentLine=3473529;
 //BA.debugLineNum = 3473529;BA.debugLine="ImageView3.bitmap = LoadBitmap(File.DirAssets,";
__ref._imageview3 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alerta_amarilla.png").getObject()));
 }else {
RDebugUtils.currentLine=3473531;
 //BA.debugLineNum = 3473531;BA.debugLine="ImageView3.Bitmap = LoadBitmap(File.DirAssets,";
__ref._imageview3 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"palomita_verde.png").getObject()));
 }}
;
RDebugUtils.currentLine=3473533;
 //BA.debugLineNum = 3473533;BA.debugLine="Log(\"|\" & c.GetString(\"MONTO_DIA\") & \"|\")";
__c.LogImpl("03473533","|"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")+"|",0);
RDebugUtils.currentLine=3473534;
 //BA.debugLineNum = 3473534;BA.debugLine="Log(\"|\" & c.GetString(\"CLIENTES_DIA\") & \"|\")";
__c.LogImpl("03473534","|"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTES_DIA")+"|",0);
RDebugUtils.currentLine=3473543;
 //BA.debugLineNum = 3473543;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3473544;
 //BA.debugLineNum = 3473544;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=3473546;
 //BA.debugLineNum = 3473546;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3473547;
 //BA.debugLineNum = 3473547;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3473548;
 //BA.debugLineNum = 3473548;BA.debugLine="e.Close";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3473549;
 //BA.debugLineNum = 3473549;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select  ID_AL";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select  ID_ALMACEN from CAT_ALMACEN")));
RDebugUtils.currentLine=3473550;
 //BA.debugLineNum = 3473550;BA.debugLine="C.Position =0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3473551;
 //BA.debugLineNum = 3473551;BA.debugLine="ALMACEN = C.GetString(\"ID_ALMACEN\")";
__ref._almacen /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN");
RDebugUtils.currentLine=3473552;
 //BA.debugLineNum = 3473552;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3473553;
 //BA.debugLineNum = 3473553;BA.debugLine="bu.Initialize";
__ref._bu /*gunav2.keymon.com.mx.batteryutilities*/ ._initialize /*String*/ (null,ba);
RDebugUtils.currentLine=3473554;
 //BA.debugLineNum = 3473554;BA.debugLine="batterystatus = bu.BatteryInformation";
__ref._batterystatus /*int[]*/  = __ref._bu /*gunav2.keymon.com.mx.batteryutilities*/ ._getbatteryinformation /*int[]*/ (null);
RDebugUtils.currentLine=3473555;
 //BA.debugLineNum = 3473555;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuari";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
RDebugUtils.currentLine=3473556;
 //BA.debugLineNum = 3473556;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3473557;
 //BA.debugLineNum = 3473557;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=3473558;
 //BA.debugLineNum = 3473558;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3473560;
 //BA.debugLineNum = 3473560;BA.debugLine="Private s3 As Cursor = B4XPages.MainPage.skmt.Exe";
_s3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct(pe_cliente) FROM PEDIDO")));
RDebugUtils.currentLine=3473562;
 //BA.debugLineNum = 3473562;BA.debugLine="If s3.RowCount > 0 Then";
if (_s3.getRowCount()>0) { 
RDebugUtils.currentLine=3473563;
 //BA.debugLineNum = 3473563;BA.debugLine="Private total7 As String = 0";
_total7 = BA.NumberToString(0);
RDebugUtils.currentLine=3473564;
 //BA.debugLineNum = 3473564;BA.debugLine="For i = 0 To s3.RowCount - 1";
{
final int step141 = 1;
final int limit141 = (int) (_s3.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit141 ;_i = _i + step141 ) {
RDebugUtils.currentLine=3473565;
 //BA.debugLineNum = 3473565;BA.debugLine="s3.Position = i";
_s3.setPosition(_i);
RDebugUtils.currentLine=3473567;
 //BA.debugLineNum = 3473567;BA.debugLine="total7 = total7 + Subs.calculaTotalConPromoXRan";
_total7 = BA.NumberToString((double)(Double.parseDouble(_total7))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango /*String*/ (ba,_s3.GetString("PE_CLIENTE")))));
 }
};
RDebugUtils.currentLine=3473572;
 //BA.debugLineNum = 3473572;BA.debugLine="B4XPages.MainPage.montoActual = NumberFormat2(to";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._montoactual /*String*/  = __c.NumberFormat2((double)(Double.parseDouble(_total7)),(int) (0),(int) (2),(int) (2),__c.False);
 }else {
RDebugUtils.currentLine=3473574;
 //BA.debugLineNum = 3473574;BA.debugLine="B4XPages.MainPage.montoActual = 0";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._montoactual /*String*/  = BA.NumberToString(0);
 };
RDebugUtils.currentLine=3473578;
 //BA.debugLineNum = 3473578;BA.debugLine="B4XPages.MainPage.clientestotal = L_CUANTOST.Text";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._clientestotal /*String*/  = __ref._l_cuantost /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=3473579;
 //BA.debugLineNum = 3473579;BA.debugLine="B4XPages.MainPage.clientesventa =  l_cuantosc.Tex";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._clientesventa /*String*/  = __ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=3473580;
 //BA.debugLineNum = 3473580;BA.debugLine="B4XPages.MainPage.clientesvisitados = l_porvisita";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._clientesvisitados /*String*/  = __ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=3473581;
 //BA.debugLineNum = 3473581;BA.debugLine="B4XPages.MainPage.ALMACEN = ALMACEN";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._almacen /*String*/  = __ref._almacen /*String*/ ;
RDebugUtils.currentLine=3473582;
 //BA.debugLineNum = 3473582;BA.debugLine="B4XPages.MainPage.rutapreventa =  l_ruta.text";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._rutapreventa /*String*/  = __ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText();
RDebugUtils.currentLine=3473585;
 //BA.debugLineNum = 3473585;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuari";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
RDebugUtils.currentLine=3473586;
 //BA.debugLineNum = 3473586;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3473587;
 //BA.debugLineNum = 3473587;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=3473588;
 //BA.debugLineNum = 3473588;BA.debugLine="B4XPages.MainPage.usuario = usuario";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._usuario /*String*/  = __ref._usuario /*String*/ ;
RDebugUtils.currentLine=3473589;
 //BA.debugLineNum = 3473589;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3473591;
 //BA.debugLineNum = 3473591;BA.debugLine="CallSub(Starter, \"ENVIA_ULTIMA_GPS\")";
__c.CallSubDebug(ba,(Object)(_starter.getObject()),"ENVIA_ULTIMA_GPS");
RDebugUtils.currentLine=3473595;
 //BA.debugLineNum = 3473595;BA.debugLine="Private s As Cursor = B4XPages.MainPage.skmt.Exec";
_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(RS_RUTA) as cuenta, RS_RUTA FROM RUTA_SUPLENCIA")));
RDebugUtils.currentLine=3473596;
 //BA.debugLineNum = 3473596;BA.debugLine="s.Position = 0";
_s.setPosition((int) (0));
RDebugUtils.currentLine=3473597;
 //BA.debugLineNum = 3473597;BA.debugLine="If s.GetString(\"cuenta\") = 0 Then";
if ((_s.GetString("cuenta")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=3473598;
 //BA.debugLineNum = 3473598;BA.debugLine="Label22.Visible = False";
__ref._label22 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3473599;
 //BA.debugLineNum = 3473599;BA.debugLine="l_rutasuplencia.Visible = False";
__ref._l_rutasuplencia /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3473600;
 //BA.debugLineNum = 3473600;BA.debugLine="l_rutasuplencia.Text = \"\"";
__ref._l_rutasuplencia /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(""));
 }else 
{RDebugUtils.currentLine=3473601;
 //BA.debugLineNum = 3473601;BA.debugLine="Else If s.GetString(\"cuenta\") > 0 Then";
if ((double)(Double.parseDouble(_s.GetString("cuenta")))>0) { 
RDebugUtils.currentLine=3473602;
 //BA.debugLineNum = 3473602;BA.debugLine="Label22.Visible = True";
__ref._label22 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3473603;
 //BA.debugLineNum = 3473603;BA.debugLine="l_rutasuplencia.Visible = True";
__ref._l_rutasuplencia /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3473604;
 //BA.debugLineNum = 3473604;BA.debugLine="l_rutasuplencia.Text = s.GetString(\"RS_RUTA\")";
__ref._l_rutasuplencia /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_s.GetString("RS_RUTA")));
 }}
;
RDebugUtils.currentLine=3473606;
 //BA.debugLineNum = 3473606;BA.debugLine="End Sub";
return "";
}
public String  _checapedido(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "checapedido", false))
	 {return ((String) Debug.delegate(ba, "checapedido", null));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _coord = null;
int _cor = 0;
RDebugUtils.currentLine=6422528;
 //BA.debugLineNum = 6422528;BA.debugLine="Sub checaPedido";
RDebugUtils.currentLine=6422529;
 //BA.debugLineNum = 6422529;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"SEL";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT PC_CLIENTE FROM PEDIDO_CLIENTE")));
RDebugUtils.currentLine=6422530;
 //BA.debugLineNum = 6422530;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=6422531;
 //BA.debugLineNum = 6422531;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info3 set";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info3 set gestion = 2  WHERE CAT_CL_CODIGO IN (SELECT PC_CLIENTE FROM PEDIDO_CLIENTE)");
 };
RDebugUtils.currentLine=6422533;
 //BA.debugLineNum = 6422533;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"SEL";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT NV_CLIENTE FROM NOVENTA")));
RDebugUtils.currentLine=6422534;
 //BA.debugLineNum = 6422534;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=6422535;
 //BA.debugLineNum = 6422535;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info3 set";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info3 set gestion = 3  WHERE CAT_CL_CODIGO IN (SELECT NV_CLIENTE FROM NOVENTA)");
 };
RDebugUtils.currentLine=6422538;
 //BA.debugLineNum = 6422538;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE CAT_GUNAPROD SET CAT_GP_TIPOPROD = (?) WHERE CAT_GP_ID IN (SELECT CAT_PD_PRODUCTO FROM CAT_PROMOS_DESCUENTOS) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("PRIORITARIO")}));
RDebugUtils.currentLine=6422541;
 //BA.debugLineNum = 6422541;BA.debugLine="Private coord As Cursor = Starter.skmt.ExecQuery(";
_coord = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_coord = (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 ATIENDE")));
RDebugUtils.currentLine=6422542;
 //BA.debugLineNum = 6422542;BA.debugLine="If coord.RowCount > 0 Then";
if (_coord.getRowCount()>0) { 
RDebugUtils.currentLine=6422543;
 //BA.debugLineNum = 6422543;BA.debugLine="For cor = 0 To coord.RowCount -1";
{
final int step12 = 1;
final int limit12 = (int) (_coord.getRowCount()-1);
_cor = (int) (0) ;
for (;_cor <= limit12 ;_cor = _cor + step12 ) {
RDebugUtils.currentLine=6422544;
 //BA.debugLineNum = 6422544;BA.debugLine="coord.Position = cor";
_coord.setPosition(_cor);
RDebugUtils.currentLine=6422545;
 //BA.debugLineNum = 6422545;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE km";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE kmt_info3 set  CAT_CL_ATIENDE1 = ? where CAT_CL_CODIGO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_coord.GetString("ATIENDE")),(Object)(_coord.GetString("CLIENTE"))}));
 }
};
 };
RDebugUtils.currentLine=6422549;
 //BA.debugLineNum = 6422549;BA.debugLine="Private coord As Cursor = Starter.skmt.ExecQuery(";
_coord = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_coord = (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 TELEFONO")));
RDebugUtils.currentLine=6422550;
 //BA.debugLineNum = 6422550;BA.debugLine="If coord.RowCount > 0 Then";
if (_coord.getRowCount()>0) { 
RDebugUtils.currentLine=6422551;
 //BA.debugLineNum = 6422551;BA.debugLine="For cor = 0 To coord.RowCount -1";
{
final int step19 = 1;
final int limit19 = (int) (_coord.getRowCount()-1);
_cor = (int) (0) ;
for (;_cor <= limit19 ;_cor = _cor + step19 ) {
RDebugUtils.currentLine=6422552;
 //BA.debugLineNum = 6422552;BA.debugLine="coord.Position = cor";
_coord.setPosition(_cor);
RDebugUtils.currentLine=6422553;
 //BA.debugLineNum = 6422553;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE km";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE kmt_info3 set  CAT_CL_TELEFONO = ? where CAT_CL_CODIGO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_coord.GetString("TELEFONO")),(Object)(_coord.GetString("CLIENTE"))}));
 }
};
 };
RDebugUtils.currentLine=6422557;
 //BA.debugLineNum = 6422557;BA.debugLine="End Sub";
return "";
}
public String  _b_ok_res_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_ok_res_click", false))
	 {return ((String) Debug.delegate(ba, "b_ok_res_click", null));}
RDebugUtils.currentLine=4521984;
 //BA.debugLineNum = 4521984;BA.debugLine="Sub B_OK_RES_Click";
RDebugUtils.currentLine=4521986;
 //BA.debugLineNum = 4521986;BA.debugLine="NUEVO.Visible =True";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4521987;
 //BA.debugLineNum = 4521987;BA.debugLine="BUSCA.Visible=True";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4521988;
 //BA.debugLineNum = 4521988;BA.debugLine="connecta.Visible=True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4521989;
 //BA.debugLineNum = 4521989;BA.debugLine="Resumen.Visible= True";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4521990;
 //BA.debugLineNum = 4521990;BA.debugLine="P_RESUMEN.Visible=False";
__ref._p_resumen /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4521991;
 //BA.debugLineNum = 4521991;BA.debugLine="Panel4.Visible = False";
__ref._panel4 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4521992;
 //BA.debugLineNum = 4521992;BA.debugLine="SCROLL_RESDIA.Visible = False";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4521993;
 //BA.debugLineNum = 4521993;BA.debugLine="Btn_Ubicar.Visible=True";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4521994;
 //BA.debugLineNum = 4521994;BA.debugLine="p_principal.Visible = True";
__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4521995;
 //BA.debugLineNum = 4521995;BA.debugLine="End Sub";
return "";
}
public String  _b_resdia_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_resdia_click", false))
	 {return ((String) Debug.delegate(ba, "b_resdia_click", null));}
RDebugUtils.currentLine=6291456;
 //BA.debugLineNum = 6291456;BA.debugLine="Private Sub b_resdia_Click";
RDebugUtils.currentLine=6291457;
 //BA.debugLineNum = 6291457;BA.debugLine="resdia_Click";
__ref._resdia_click /*String*/ (null);
RDebugUtils.currentLine=6291458;
 //BA.debugLineNum = 6291458;BA.debugLine="End Sub";
return "";
}
public String  _resdia_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "resdia_click", false))
	 {return ((String) Debug.delegate(ba, "resdia_click", null));}
int _i = 0;
anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _s3 = null;
String _total1 = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _s5 = null;
String _total4 = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _s6 = null;
String _total3 = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _ru_o = null;
String _total2 = "";
int _i2 = 0;
String _rutor = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _ru_s = null;
String _rusu = "";
String _cuantos_obj = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _s7 = null;
int _totalstick = 0;
int _sfsdf = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _s8 = null;
int _totaltotaltot = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _s0 = null;
RDebugUtils.currentLine=4784128;
 //BA.debugLineNum = 4784128;BA.debugLine="Sub resdia_Click";
RDebugUtils.currentLine=4784130;
 //BA.debugLineNum = 4784130;BA.debugLine="Btn_Ubicar.Visible=False";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4784131;
 //BA.debugLineNum = 4784131;BA.debugLine="SCROLL_RESDIA.Panel.RemoveAllViews";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .getPanel().RemoveAllViews();
RDebugUtils.currentLine=4784132;
 //BA.debugLineNum = 4784132;BA.debugLine="SCROLL_RESDIA.Visible = True";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4784133;
 //BA.debugLineNum = 4784133;BA.debugLine="SCROLL_RESDIA.Panel.LoadLayout(\"RESDIA\")";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .getPanel().LoadLayout("RESDIA",ba);
RDebugUtils.currentLine=4784134;
 //BA.debugLineNum = 4784134;BA.debugLine="SCROLL_RESDIA.Panel.Height = Panel4.Height";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .getPanel().setHeight(__ref._panel4 /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight());
RDebugUtils.currentLine=4784135;
 //BA.debugLineNum = 4784135;BA.debugLine="Panel4.Visible = True";
__ref._panel4 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4784137;
 //BA.debugLineNum = 4784137;BA.debugLine="NUEVO.Visible =False";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4784138;
 //BA.debugLineNum = 4784138;BA.debugLine="BUSCA.Visible=False";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4784139;
 //BA.debugLineNum = 4784139;BA.debugLine="connecta.Visible=False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4784140;
 //BA.debugLineNum = 4784140;BA.debugLine="Subir.Visible=False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4784141;
 //BA.debugLineNum = 4784141;BA.debugLine="cargar.Visible=False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4784142;
 //BA.debugLineNum = 4784142;BA.debugLine="Resumen.Visible= False";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4784144;
 //BA.debugLineNum = 4784144;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2(\"select COUNT";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select COUNT(*) AS CUANTOS FROM HIST_ENCUESTA WHERE  HE_TIPO = ?",new String[]{"TELEFONO"})));
RDebugUtils.currentLine=4784145;
 //BA.debugLineNum = 4784145;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4784146;
 //BA.debugLineNum = 4784146;BA.debugLine="l_encuesta.Text = d.GetString(\"CUANTOS\")";
__ref._l_encuesta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")));
RDebugUtils.currentLine=4784147;
 //BA.debugLineNum = 4784147;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4784149;
 //BA.debugLineNum = 4784149;BA.debugLine="L_MARCAS.CLEAR";
__ref._l_marcas /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=4784150;
 //BA.debugLineNum = 4784150;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2(\"select disti";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select distinct HE_CLIE AS CLIENTE FROM HIST_ENCUESTA WHERE  HE_TIPO = ?",new String[]{"TELEFONO"})));
RDebugUtils.currentLine=4784151;
 //BA.debugLineNum = 4784151;BA.debugLine="If D.RowCount>0 Then";
if (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=4784152;
 //BA.debugLineNum = 4784152;BA.debugLine="For i=0 To D.RowCount -1";
{
final int step20 = 1;
final int limit20 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit20 ;_i = _i + step20 ) {
RDebugUtils.currentLine=4784153;
 //BA.debugLineNum = 4784153;BA.debugLine="D.Position=i";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=4784154;
 //BA.debugLineNum = 4784154;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"Select  HE";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("Select  HE_RES from HIST_ENCUESTA where  HE_CLIE = ?  AND HE_TIPO = ?",new String[]{__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTE"),"TELEFONO"})));
RDebugUtils.currentLine=4784155;
 //BA.debugLineNum = 4784155;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4784156;
 //BA.debugLineNum = 4784156;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4784157;
 //BA.debugLineNum = 4784157;BA.debugLine="label1 = L_MARCAS.TwoLinesLayout.Label";
_label1 = __ref._l_marcas /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label;
RDebugUtils.currentLine=4784158;
 //BA.debugLineNum = 4784158;BA.debugLine="label1.TextSize = 13";
_label1.setTextSize((float) (13));
RDebugUtils.currentLine=4784159;
 //BA.debugLineNum = 4784159;BA.debugLine="label1.TextColor = Colors.Black";
_label1.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=4784160;
 //BA.debugLineNum = 4784160;BA.debugLine="Dim Label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=4784161;
 //BA.debugLineNum = 4784161;BA.debugLine="Label2 = L_MARCAS.TwoLinesLayout.SecondLabel";
__ref._label2 /*anywheresoftware.b4a.objects.LabelWrapper*/  = __ref._l_marcas /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel;
RDebugUtils.currentLine=4784162;
 //BA.debugLineNum = 4784162;BA.debugLine="Label2.TextSize = 13";
__ref._label2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (13));
RDebugUtils.currentLine=4784163;
 //BA.debugLineNum = 4784163;BA.debugLine="Label2.TextColor = Colors.Black";
__ref._label2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=4784164;
 //BA.debugLineNum = 4784164;BA.debugLine="L_MARCAS.AddTwoLines(d.GetString(\"CLIENTE\"),\"TE";
__ref._l_marcas /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTE")),BA.ObjectToCharSequence("TELEFONO :"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HE_RES")));
RDebugUtils.currentLine=4784165;
 //BA.debugLineNum = 4784165;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }
};
 };
RDebugUtils.currentLine=4784168;
 //BA.debugLineNum = 4784168;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4784170;
 //BA.debugLineNum = 4784170;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2($\"Select  sum";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("Select  sum(PE_COSTO_TOT) As MONTO_DIA from pedido where PE_CLIENTE <> 0 and pe_proid in (Select CAT_GP_ID from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,__ref._tipo_venta /*String*/ )))+" where CAT_GP_TIPO = ? )"),new String[]{"RTEC"})));
RDebugUtils.currentLine=4784171;
 //BA.debugLineNum = 4784171;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4784172;
 //BA.debugLineNum = 4784172;BA.debugLine="l_monto_k.Text = c.GetString(\"MONTO_DIA\")";
__ref._l_monto_k /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")));
RDebugUtils.currentLine=4784173;
 //BA.debugLineNum = 4784173;BA.debugLine="If l_monto_k.Text = \"null\" Then";
if ((__ref._l_monto_k /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null")) { 
RDebugUtils.currentLine=4784174;
 //BA.debugLineNum = 4784174;BA.debugLine="l_monto_k.Text = \"0\"";
__ref._l_monto_k /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("0"));
 };
RDebugUtils.currentLine=4784176;
 //BA.debugLineNum = 4784176;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4784178;
 //BA.debugLineNum = 4784178;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2($\"Select  sum";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("Select  sum(PE_COSTO_TOT) As MONTO_DIA from pedido where PE_CLIENTE <> 0 and pe_proid in (Select CAT_GP_ID from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,__ref._tipo_venta /*String*/ )))+" where CAT_GP_TIPO = ? )"),new String[]{"PING"})));
RDebugUtils.currentLine=4784179;
 //BA.debugLineNum = 4784179;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4784180;
 //BA.debugLineNum = 4784180;BA.debugLine="l_monto_kp.Text = c.GetString(\"MONTO_DIA\")";
__ref._l_monto_kp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")));
RDebugUtils.currentLine=4784181;
 //BA.debugLineNum = 4784181;BA.debugLine="If l_monto_kp.Text = \"null\" Then";
if ((__ref._l_monto_kp /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null")) { 
RDebugUtils.currentLine=4784182;
 //BA.debugLineNum = 4784182;BA.debugLine="l_monto_kp.Text = \"0\"";
__ref._l_monto_kp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("0"));
 };
RDebugUtils.currentLine=4784184;
 //BA.debugLineNum = 4784184;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4784194;
 //BA.debugLineNum = 4784194;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select  sum(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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select  sum(PE_COSTO_TOT) As MONTO_DIA from pedido where PE_CLIENTE <> 0 ")));
RDebugUtils.currentLine=4784195;
 //BA.debugLineNum = 4784195;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4784196;
 //BA.debugLineNum = 4784196;BA.debugLine="l_monto_ks.Text = c.GetString(\"MONTO_DIA\")";
__ref._l_monto_ks /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")));
RDebugUtils.currentLine=4784197;
 //BA.debugLineNum = 4784197;BA.debugLine="If l_monto_ks.Text = \"null\" Then";
if ((__ref._l_monto_ks /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("null")) { 
RDebugUtils.currentLine=4784198;
 //BA.debugLineNum = 4784198;BA.debugLine="l_monto_ks.Text = \"0\"";
__ref._l_monto_ks /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("0"));
 };
RDebugUtils.currentLine=4784200;
 //BA.debugLineNum = 4784200;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4784225;
 //BA.debugLineNum = 4784225;BA.debugLine="Private s3 As Cursor = B4XPages.MainPage.skmt.Exe";
_s3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct(pe_cliente) FROM PEDIDO")));
RDebugUtils.currentLine=4784227;
 //BA.debugLineNum = 4784227;BA.debugLine="If s3.RowCount > 0 Then";
if (_s3.getRowCount()>0) { 
RDebugUtils.currentLine=4784228;
 //BA.debugLineNum = 4784228;BA.debugLine="Private total1 As String = 0";
_total1 = BA.NumberToString(0);
RDebugUtils.currentLine=4784229;
 //BA.debugLineNum = 4784229;BA.debugLine="For i = 0 To s3.RowCount - 1";
{
final int step61 = 1;
final int limit61 = (int) (_s3.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit61 ;_i = _i + step61 ) {
RDebugUtils.currentLine=4784230;
 //BA.debugLineNum = 4784230;BA.debugLine="s3.Position = i";
_s3.setPosition(_i);
RDebugUtils.currentLine=4784232;
 //BA.debugLineNum = 4784232;BA.debugLine="total1 = total1 + Subs.calculaTotalConPromoXRan";
_total1 = BA.NumberToString((double)(Double.parseDouble(_total1))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango /*String*/ (ba,_s3.GetString("PE_CLIENTE")))));
 }
};
RDebugUtils.currentLine=4784236;
 //BA.debugLineNum = 4784236;BA.debugLine="L_REAL.Text = NumberFormat2( total1,0,2,2,False)";
__ref._l_real /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total1)),(int) (0),(int) (2),(int) (2),__c.False)));
 }else {
RDebugUtils.currentLine=4784238;
 //BA.debugLineNum = 4784238;BA.debugLine="L_REAL.Text = 0";
__ref._l_real /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 };
RDebugUtils.currentLine=4784242;
 //BA.debugLineNum = 4784242;BA.debugLine="Private s5 As Cursor = B4XPages.MainPage.skmt.Exe";
_s5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct(pe_cliente) FROM PEDIDO")));
RDebugUtils.currentLine=4784244;
 //BA.debugLineNum = 4784244;BA.debugLine="If s5.RowCount > 0 Then";
if (_s5.getRowCount()>0) { 
RDebugUtils.currentLine=4784245;
 //BA.debugLineNum = 4784245;BA.debugLine="Private total4 As String = 0";
_total4 = BA.NumberToString(0);
RDebugUtils.currentLine=4784246;
 //BA.debugLineNum = 4784246;BA.debugLine="For i = 0 To s5.RowCount - 1";
{
final int step72 = 1;
final int limit72 = (int) (_s5.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit72 ;_i = _i + step72 ) {
RDebugUtils.currentLine=4784247;
 //BA.debugLineNum = 4784247;BA.debugLine="s5.Position = i";
_s5.setPosition(_i);
RDebugUtils.currentLine=4784249;
 //BA.debugLineNum = 4784249;BA.debugLine="total4 = total4 + Subs.calculaTotalConPromoXRan";
_total4 = BA.NumberToString((double)(Double.parseDouble(_total4))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango1 /*String*/ (ba,_s5.GetString("PE_CLIENTE")))));
 }
};
RDebugUtils.currentLine=4784253;
 //BA.debugLineNum = 4784253;BA.debugLine="l_preacordada.Text = NumberFormat2(total4,0,2,2,";
__ref._l_preacordada /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total4)),(int) (0),(int) (2),(int) (2),__c.False)));
 }else {
RDebugUtils.currentLine=4784255;
 //BA.debugLineNum = 4784255;BA.debugLine="l_preacordada.Text = 0";
__ref._l_preacordada /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 };
RDebugUtils.currentLine=4784258;
 //BA.debugLineNum = 4784258;BA.debugLine="Private s6 As Cursor = B4XPages.MainPage.skmt.Exe";
_s6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct(pe_cliente) FROM PEDIDO")));
RDebugUtils.currentLine=4784260;
 //BA.debugLineNum = 4784260;BA.debugLine="If s6.RowCount > 0 Then";
if (_s6.getRowCount()>0) { 
RDebugUtils.currentLine=4784261;
 //BA.debugLineNum = 4784261;BA.debugLine="Private total3 As String = 0";
_total3 = BA.NumberToString(0);
RDebugUtils.currentLine=4784262;
 //BA.debugLineNum = 4784262;BA.debugLine="For i = 0 To s6.RowCount - 1";
{
final int step83 = 1;
final int limit83 = (int) (_s6.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit83 ;_i = _i + step83 ) {
RDebugUtils.currentLine=4784263;
 //BA.debugLineNum = 4784263;BA.debugLine="s6.Position = i";
_s6.setPosition(_i);
RDebugUtils.currentLine=4784265;
 //BA.debugLineNum = 4784265;BA.debugLine="total3 = total3 + Subs.calculaTotalConPromoXRan";
_total3 = BA.NumberToString((double)(Double.parseDouble(_total3))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango2 /*String*/ (ba,_s6.GetString("PE_CLIENTE")))));
 }
};
RDebugUtils.currentLine=4784269;
 //BA.debugLineNum = 4784269;BA.debugLine="l_prevtotal.Text = NumberFormat2(total3,0,2,2,Fa";
__ref._l_prevtotal /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total3)),(int) (0),(int) (2),(int) (2),__c.False)));
 }else {
RDebugUtils.currentLine=4784271;
 //BA.debugLineNum = 4784271;BA.debugLine="l_prevtotal.Text = 0";
__ref._l_prevtotal /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 };
RDebugUtils.currentLine=4784288;
 //BA.debugLineNum = 4784288;BA.debugLine="Private ru_o As Cursor = B4XPages.MainPage.skmt.E";
_ru_o = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_ru_o = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT distinct pe_cliente, pe_ruta FROM PEDIDO LEFT JOIN RUTA_SUPLENCIA ON PE_RUTA = RS_RUTA WHERE RS_RUTA IS NULL",(String[])(__c.Null))));
RDebugUtils.currentLine=4784290;
 //BA.debugLineNum = 4784290;BA.debugLine="Log(\"#####   \" & ru_o.RowCount)";
__c.LogImpl("04784290","#####   "+BA.NumberToString(_ru_o.getRowCount()),0);
RDebugUtils.currentLine=4784291;
 //BA.debugLineNum = 4784291;BA.debugLine="Private total2 As String = 0";
_total2 = BA.NumberToString(0);
RDebugUtils.currentLine=4784292;
 //BA.debugLineNum = 4784292;BA.debugLine="If ru_o.RowCount > 0 Then";
if (_ru_o.getRowCount()>0) { 
RDebugUtils.currentLine=4784293;
 //BA.debugLineNum = 4784293;BA.debugLine="For i2 = 0 To ru_o.RowCount - 1";
{
final int step95 = 1;
final int limit95 = (int) (_ru_o.getRowCount()-1);
_i2 = (int) (0) ;
for (;_i2 <= limit95 ;_i2 = _i2 + step95 ) {
RDebugUtils.currentLine=4784294;
 //BA.debugLineNum = 4784294;BA.debugLine="ru_o.Position = i2";
_ru_o.setPosition(_i2);
RDebugUtils.currentLine=4784296;
 //BA.debugLineNum = 4784296;BA.debugLine="Private rutOr As String = ru_o.GetString(\"PE_RU";
_rutor = _ru_o.GetString("PE_RUTA");
RDebugUtils.currentLine=4784298;
 //BA.debugLineNum = 4784298;BA.debugLine="total2 = total2 + Subs.calculaTotalConPromoXRan";
_total2 = BA.NumberToString((double)(Double.parseDouble(_total2))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango /*String*/ (ba,_ru_o.GetString("PE_CLIENTE")))));
 }
};
 };
RDebugUtils.currentLine=4784302;
 //BA.debugLineNum = 4784302;BA.debugLine="l_ru_pri.Text = NumberFormat2(total2,0,2,2,False)";
__ref._l_ru_pri /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total2)),(int) (0),(int) (2),(int) (2),__c.False)));
RDebugUtils.currentLine=4784305;
 //BA.debugLineNum = 4784305;BA.debugLine="Private ru_s As Cursor = B4XPages.MainPage.skmt.E";
_ru_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_ru_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT IFNULL(PE_RUTA, 0) As PE_RUTA, IFNULL(SUM(PE_COSTO_TOT), 0) As TOTAL_CLIE FROM PEDIDO LEFT JOIN RUTA_SUPLENCIA ON PE_RUTA = RS_RUTA WHERE RS_RUTA Is Not Null",(String[])(__c.Null))));
RDebugUtils.currentLine=4784306;
 //BA.debugLineNum = 4784306;BA.debugLine="ru_s.Position = 0";
_ru_s.setPosition((int) (0));
RDebugUtils.currentLine=4784307;
 //BA.debugLineNum = 4784307;BA.debugLine="If ru_s.GetString(\"PE_RUTA\") = 0 Then";
if ((_ru_s.GetString("PE_RUTA")).equals(BA.NumberToString(0))) { 
 }else {
RDebugUtils.currentLine=4784310;
 //BA.debugLineNum = 4784310;BA.debugLine="Private RuSu As String = ru_s.GetString(\"PE_RUTA";
_rusu = _ru_s.GetString("PE_RUTA");
RDebugUtils.currentLine=4784312;
 //BA.debugLineNum = 4784312;BA.debugLine="ru_s.Position = 0";
_ru_s.setPosition((int) (0));
RDebugUtils.currentLine=4784313;
 //BA.debugLineNum = 4784313;BA.debugLine="l_ru_sup.Text = NumberFormat2(ru_s.GetDouble(\"TO";
__ref._l_ru_sup /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(_ru_s.GetDouble("TOTAL_CLIE"),(int) (0),(int) (2),(int) (2),__c.False)));
 };
RDebugUtils.currentLine=4784315;
 //BA.debugLineNum = 4784315;BA.debugLine="ru_s.Close";
_ru_s.Close();
RDebugUtils.currentLine=4784317;
 //BA.debugLineNum = 4784317;BA.debugLine="Dim cuantos_obj As String";
_cuantos_obj = "";
RDebugUtils.currentLine=4784318;
 //BA.debugLineNum = 4784318;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select  count";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select  count(*) AS TOTAL from HIST_MARCAS_CUOTAS   ")));
RDebugUtils.currentLine=4784319;
 //BA.debugLineNum = 4784319;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4784320;
 //BA.debugLineNum = 4784320;BA.debugLine="cuantos_obj = c.GetString(\"TOTAL\")";
_cuantos_obj = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL");
RDebugUtils.currentLine=4784321;
 //BA.debugLineNum = 4784321;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4784323;
 //BA.debugLineNum = 4784323;BA.debugLine="If cuantos_obj > 0 Then";
if ((double)(Double.parseDouble(_cuantos_obj))>0) { 
RDebugUtils.currentLine=4784324;
 //BA.debugLineNum = 4784324;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select  SUM(";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select  SUM(HMC_TOTAL) AS TOTAL from HIST_MARCAS_CUOTAS   ")));
RDebugUtils.currentLine=4784325;
 //BA.debugLineNum = 4784325;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4784326;
 //BA.debugLineNum = 4784326;BA.debugLine="If  c.GetString(\"TOTAL\") > 0 Then";
if ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL")))>0) { 
RDebugUtils.currentLine=4784327;
 //BA.debugLineNum = 4784327;BA.debugLine="L_NES.Text = Round(c.GetString(\"TOTAL\") / 25)";
__ref._l_nes /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL")))/(double)25)));
 }else {
RDebugUtils.currentLine=4784329;
 //BA.debugLineNum = 4784329;BA.debugLine="L_NES.Text = c.GetString(\"TOTAL\")";
__ref._l_nes /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL")));
 };
RDebugUtils.currentLine=4784331;
 //BA.debugLineNum = 4784331;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=4784334;
 //BA.debugLineNum = 4784334;BA.debugLine="Log(L_NES.Text)";
__c.LogImpl("04784334",__ref._l_nes /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(),0);
RDebugUtils.currentLine=4784335;
 //BA.debugLineNum = 4784335;BA.debugLine="Log(L_REAL.Text)";
__c.LogImpl("04784335",__ref._l_real /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(),0);
RDebugUtils.currentLine=4784339;
 //BA.debugLineNum = 4784339;BA.debugLine="L_ALCANCE.Text = Round2((L_NES.Text / L_REAL.Text";
__ref._l_alcance /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2(((double)(Double.parseDouble(__ref._l_nes /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))/(double)(double)(Double.parseDouble(__ref._l_real /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))+1),(int) (2))));
RDebugUtils.currentLine=4784340;
 //BA.debugLineNum = 4784340;BA.debugLine="L_VPLAN.Text = l_porvisitar.Text";
__ref._l_vplan /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()));
RDebugUtils.currentLine=4784341;
 //BA.debugLineNum = 4784341;BA.debugLine="L_VREAL.Text = L_CUANTOST.text";
__ref._l_vreal /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._l_cuantost /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()));
RDebugUtils.currentLine=4784342;
 //BA.debugLineNum = 4784342;BA.debugLine="L_EFEC_VIS.Text = Round2(L_VREAL.text / L_VPLAN.T";
__ref._l_efec_vis /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(__ref._l_vreal /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))/(double)(double)(Double.parseDouble(__ref._l_vplan /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())),(int) (2))));
RDebugUtils.currentLine=4784343;
 //BA.debugLineNum = 4784343;BA.debugLine="L_VISITCC.Text = l_cuantosc.text";
__ref._l_visitcc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()));
RDebugUtils.currentLine=4784344;
 //BA.debugLineNum = 4784344;BA.debugLine="L_EFEC_PV.Text = Round2(L_VISITCC.Text / L_VREAL.";
__ref._l_efec_pv /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(__ref._l_visitcc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))/(double)(double)(Double.parseDouble(__ref._l_vreal /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())),(int) (2))));
RDebugUtils.currentLine=4784345;
 //BA.debugLineNum = 4784345;BA.debugLine="L_EFEC_PURA.Text = Round2(L_VISITCC.Text / L_VPLA";
__ref._l_efec_pura /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(__ref._l_visitcc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))/(double)(double)(Double.parseDouble(__ref._l_vplan /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())),(int) (2))));
RDebugUtils.currentLine=4784346;
 //BA.debugLineNum = 4784346;BA.debugLine="l_preventa.Text = Subs.calculaTotalConPromoXRango";
__ref._l_preventa /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_subs._calculatotalconpromoxrango2 /*String*/ (ba,_subs._traecliente /*String*/ (ba))));
RDebugUtils.currentLine=4784347;
 //BA.debugLineNum = 4784347;BA.debugLine="l_futura.Text = Subs.calculaTotalConPromoXRango1(";
__ref._l_futura /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_subs._calculatotalconpromoxrango1 /*String*/ (ba,_subs._traecliente /*String*/ (ba))));
RDebugUtils.currentLine=4784348;
 //BA.debugLineNum = 4784348;BA.debugLine="L_LIN_TICK.Text = LPT";
__ref._l_lin_tick /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._lpt /*String*/ ));
RDebugUtils.currentLine=4784349;
 //BA.debugLineNum = 4784349;BA.debugLine="If l_monto_ks.Text <> \"0\" Then";
if ((__ref._l_monto_ks /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0") == false) { 
RDebugUtils.currentLine=4784350;
 //BA.debugLineNum = 4784350;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"Select  COU";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("Select  COUNT(DISTINCT(PE_CLIENTE)) AS CUANTOS FROM PEDIDO WHERE PE_CEDIS =  ? ",new String[]{__ref._almacen /*String*/ })));
RDebugUtils.currentLine=4784351;
 //BA.debugLineNum = 4784351;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4784352;
 //BA.debugLineNum = 4784352;BA.debugLine="L_CTE_PROMO.Text = c.GetString(\"CUANTOS\")";
__ref._l_cte_promo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")));
RDebugUtils.currentLine=4784353;
 //BA.debugLineNum = 4784353;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4784354;
 //BA.debugLineNum = 4784354;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2($\"Select sum";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("Select sum(PE_COSTO_TOT) AS MONTO_DIA FROM PEDIDO WHERE PE_PROID IN (select CAT_GP_ID from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,__ref._tipo_venta /*String*/ )))+" where  CAT_GP_TIPOPROD = ?) "),new String[]{"PRIORITARIO"})));
RDebugUtils.currentLine=4784355;
 //BA.debugLineNum = 4784355;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4784364;
 //BA.debugLineNum = 4784364;BA.debugLine="L_PRIO.Text = d.GetString(\"MONTO_DIA\")";
__ref._l_prio /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")));
RDebugUtils.currentLine=4784365;
 //BA.debugLineNum = 4784365;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4784367;
 //BA.debugLineNum = 4784367;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2($\"Select sum";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("Select sum(PE_COSTO_TOT) AS MONTO_DIA FROM PEDIDO WHERE PE_PROID IN (select CAT_GP_ID from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,__ref._tipo_venta /*String*/ )))+" where  CAT_GP_TIPOPROD = ?) "),new String[]{"ESTRATEGICO"})));
RDebugUtils.currentLine=4784368;
 //BA.debugLineNum = 4784368;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4784369;
 //BA.debugLineNum = 4784369;BA.debugLine="L_SECUND.Text =d.GetString(\"MONTO_DIA\")";
__ref._l_secund /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")));
RDebugUtils.currentLine=4784370;
 //BA.debugLineNum = 4784370;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4784372;
 //BA.debugLineNum = 4784372;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2($\"Select sum";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("Select sum(PE_COSTO_TOT) AS MONTO_DIA FROM PEDIDO WHERE PE_PROID IN (select CAT_GP_ID from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,__ref._tipo_venta /*String*/ )))+" where  CAT_GP_TIPOPROD = ?) "),new String[]{"COMPLEMENTARIO"})));
RDebugUtils.currentLine=4784373;
 //BA.debugLineNum = 4784373;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4784374;
 //BA.debugLineNum = 4784374;BA.debugLine="L_COMP.Text =d.GetString(\"MONTO_DIA\")";
__ref._l_comp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")));
RDebugUtils.currentLine=4784375;
 //BA.debugLineNum = 4784375;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }else {
RDebugUtils.currentLine=4784377;
 //BA.debugLineNum = 4784377;BA.debugLine="L_PRIO.Text = \"0\"";
__ref._l_prio /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("0"));
RDebugUtils.currentLine=4784378;
 //BA.debugLineNum = 4784378;BA.debugLine="L_SECUND.Text = \"0\"";
__ref._l_secund /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("0"));
RDebugUtils.currentLine=4784379;
 //BA.debugLineNum = 4784379;BA.debugLine="L_COMP.Text = \"0\"";
__ref._l_comp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("0"));
 };
RDebugUtils.currentLine=4784382;
 //BA.debugLineNum = 4784382;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select  COUNT";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select  COUNT(*) AS CUANTOS FROM PEDIDO WHERE PE_CEDIS = PE_PROID ")));
RDebugUtils.currentLine=4784383;
 //BA.debugLineNum = 4784383;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4784384;
 //BA.debugLineNum = 4784384;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
if ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")))>0) { 
RDebugUtils.currentLine=4784385;
 //BA.debugLineNum = 4784385;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"Select  sum(";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select  sum(pe_cant) AS CUANTOS FROM PEDIDO WHERE PE_CEDIS = PE_PROID ")));
RDebugUtils.currentLine=4784386;
 //BA.debugLineNum = 4784386;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4784387;
 //BA.debugLineNum = 4784387;BA.debugLine="L_CTE_PROMO.Text = d.GetString(\"CUANTOS\")";
__ref._l_cte_promo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")));
RDebugUtils.currentLine=4784388;
 //BA.debugLineNum = 4784388;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4784389;
 //BA.debugLineNum = 4784389;BA.debugLine="L_REDEN_PROMO.TEXT = Round2(L_VISITCC.Text / L_C";
__ref._l_reden_promo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(__ref._l_visitcc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))/(double)(double)(Double.parseDouble(__ref._l_cte_promo /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())),(int) (2))));
 }else {
RDebugUtils.currentLine=4784391;
 //BA.debugLineNum = 4784391;BA.debugLine="L_CTE_PROMO.Text = 0";
__ref._l_cte_promo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=4784392;
 //BA.debugLineNum = 4784392;BA.debugLine="L_REDEN_PROMO.Text = 0";
__ref._l_reden_promo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 };
RDebugUtils.currentLine=4784394;
 //BA.debugLineNum = 4784394;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4784395;
 //BA.debugLineNum = 4784395;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"Select  COUNT";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select  COUNT(*) AS CUANTOS FROM PEDIDO ")));
RDebugUtils.currentLine=4784396;
 //BA.debugLineNum = 4784396;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4784397;
 //BA.debugLineNum = 4784397;BA.debugLine="L_LIN_TICK.Text = Round2(d.GetString(\"CUANTOS\") /";
__ref._l_lin_tick /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")))/(double)(double)(Double.parseDouble(__ref._l_visitcc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())),(int) (2))));
RDebugUtils.currentLine=4784398;
 //BA.debugLineNum = 4784398;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4784400;
 //BA.debugLineNum = 4784400;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"Select  count";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select  count(*) as CUANTOS  from HIST_CUOTAS ")));
RDebugUtils.currentLine=4784401;
 //BA.debugLineNum = 4784401;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4784402;
 //BA.debugLineNum = 4784402;BA.debugLine="If d.GetString(\"CUANTOS\") > 0 Then";
if ((double)(Double.parseDouble(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")))>0) { 
 }else {
RDebugUtils.currentLine=4784410;
 //BA.debugLineNum = 4784410;BA.debugLine="l_monto_c1.Text = 4000";
__ref._l_monto_c1 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(4000));
RDebugUtils.currentLine=4784411;
 //BA.debugLineNum = 4784411;BA.debugLine="l_monto_c2.Text = 2000";
__ref._l_monto_c2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(2000));
RDebugUtils.currentLine=4784412;
 //BA.debugLineNum = 4784412;BA.debugLine="l_monto_c3.Text = 1000";
__ref._l_monto_c3 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(1000));
 };
RDebugUtils.currentLine=4784414;
 //BA.debugLineNum = 4784414;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4784419;
 //BA.debugLineNum = 4784419;BA.debugLine="Private s3 As Cursor = B4XPages.MainPage.skmt.Exe";
_s3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct(pe_cliente) FROM PEDIDO")));
RDebugUtils.currentLine=4784421;
 //BA.debugLineNum = 4784421;BA.debugLine="If s3.RowCount > 0 Then";
if (_s3.getRowCount()>0) { 
RDebugUtils.currentLine=4784422;
 //BA.debugLineNum = 4784422;BA.debugLine="Private total1 As String = 0";
_total1 = BA.NumberToString(0);
RDebugUtils.currentLine=4784423;
 //BA.debugLineNum = 4784423;BA.debugLine="For i = 0 To s3.RowCount - 1";
{
final int step189 = 1;
final int limit189 = (int) (_s3.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit189 ;_i = _i + step189 ) {
RDebugUtils.currentLine=4784424;
 //BA.debugLineNum = 4784424;BA.debugLine="s3.Position = i";
_s3.setPosition(_i);
RDebugUtils.currentLine=4784426;
 //BA.debugLineNum = 4784426;BA.debugLine="total1 = total1 + Subs.calculaTotalConPromoXRan";
_total1 = BA.NumberToString((double)(Double.parseDouble(_total1))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango /*String*/ (ba,_s3.GetString("PE_CLIENTE")))));
 }
};
RDebugUtils.currentLine=4784430;
 //BA.debugLineNum = 4784430;BA.debugLine="L_REAL.Text = NumberFormat2( total1,0,2,2,False)";
__ref._l_real /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total1)),(int) (0),(int) (2),(int) (2),__c.False)));
 }else {
RDebugUtils.currentLine=4784432;
 //BA.debugLineNum = 4784432;BA.debugLine="L_REAL.Text = 0";
__ref._l_real /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 };
RDebugUtils.currentLine=4784436;
 //BA.debugLineNum = 4784436;BA.debugLine="Private s5 As Cursor = B4XPages.MainPage.skmt.Exe";
_s5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct(pe_cliente) FROM PEDIDO")));
RDebugUtils.currentLine=4784438;
 //BA.debugLineNum = 4784438;BA.debugLine="If s5.RowCount > 0 Then";
if (_s5.getRowCount()>0) { 
RDebugUtils.currentLine=4784439;
 //BA.debugLineNum = 4784439;BA.debugLine="Private total4 As String = 0";
_total4 = BA.NumberToString(0);
RDebugUtils.currentLine=4784440;
 //BA.debugLineNum = 4784440;BA.debugLine="For i = 0 To s5.RowCount - 1";
{
final int step200 = 1;
final int limit200 = (int) (_s5.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit200 ;_i = _i + step200 ) {
RDebugUtils.currentLine=4784441;
 //BA.debugLineNum = 4784441;BA.debugLine="s5.Position = i";
_s5.setPosition(_i);
RDebugUtils.currentLine=4784443;
 //BA.debugLineNum = 4784443;BA.debugLine="total4 = total4 + Subs.calculaTotalConPromoXRan";
_total4 = BA.NumberToString((double)(Double.parseDouble(_total4))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango1 /*String*/ (ba,_s5.GetString("PE_CLIENTE")))));
 }
};
RDebugUtils.currentLine=4784447;
 //BA.debugLineNum = 4784447;BA.debugLine="l_preacordada.Text = NumberFormat2(total4,0,2,2,";
__ref._l_preacordada /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total4)),(int) (0),(int) (2),(int) (2),__c.False)));
 }else {
RDebugUtils.currentLine=4784449;
 //BA.debugLineNum = 4784449;BA.debugLine="l_preacordada.Text = 0";
__ref._l_preacordada /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 };
RDebugUtils.currentLine=4784452;
 //BA.debugLineNum = 4784452;BA.debugLine="Private s6 As Cursor = B4XPages.MainPage.skmt.Exe";
_s6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct(pe_cliente) FROM PEDIDO")));
RDebugUtils.currentLine=4784454;
 //BA.debugLineNum = 4784454;BA.debugLine="If s6.RowCount > 0 Then";
if (_s6.getRowCount()>0) { 
RDebugUtils.currentLine=4784455;
 //BA.debugLineNum = 4784455;BA.debugLine="Private total3 As String = 0";
_total3 = BA.NumberToString(0);
RDebugUtils.currentLine=4784456;
 //BA.debugLineNum = 4784456;BA.debugLine="For i = 0 To s6.RowCount - 1";
{
final int step211 = 1;
final int limit211 = (int) (_s6.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit211 ;_i = _i + step211 ) {
RDebugUtils.currentLine=4784457;
 //BA.debugLineNum = 4784457;BA.debugLine="s6.Position = i";
_s6.setPosition(_i);
RDebugUtils.currentLine=4784459;
 //BA.debugLineNum = 4784459;BA.debugLine="total3 = total3 + Subs.calculaTotalConPromoXRan";
_total3 = BA.NumberToString((double)(Double.parseDouble(_total3))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango2 /*String*/ (ba,_s6.GetString("PE_CLIENTE")))));
 }
};
RDebugUtils.currentLine=4784463;
 //BA.debugLineNum = 4784463;BA.debugLine="l_prevtotal.Text = NumberFormat2(total3,0,2,2,Fa";
__ref._l_prevtotal /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total3)),(int) (0),(int) (2),(int) (2),__c.False)));
 }else {
RDebugUtils.currentLine=4784465;
 //BA.debugLineNum = 4784465;BA.debugLine="l_prevtotal.Text = 0";
__ref._l_prevtotal /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 };
RDebugUtils.currentLine=4784469;
 //BA.debugLineNum = 4784469;BA.debugLine="Private s7 As Cursor = B4XPages.MainPage.skmt.Exe";
_s7 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s7 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select Ifnull(SUM(PE_CANT),0) AS PE_CANT, PE_PROID FROM PEDIDO WHERE PE_PROID IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_TIPO = 'CIGARRO') GROUP BY PE_PROID")));
RDebugUtils.currentLine=4784470;
 //BA.debugLineNum = 4784470;BA.debugLine="If s7.RowCount > 0 Then";
if (_s7.getRowCount()>0) { 
RDebugUtils.currentLine=4784471;
 //BA.debugLineNum = 4784471;BA.debugLine="Dim totalstick As Int = 0";
_totalstick = (int) (0);
RDebugUtils.currentLine=4784472;
 //BA.debugLineNum = 4784472;BA.debugLine="For sfsdf = 0 To s7.RowCount -1";
{
final int step222 = 1;
final int limit222 = (int) (_s7.getRowCount()-1);
_sfsdf = (int) (0) ;
for (;_sfsdf <= limit222 ;_sfsdf = _sfsdf + step222 ) {
RDebugUtils.currentLine=4784473;
 //BA.debugLineNum = 4784473;BA.debugLine="s7.Position= sfsdf";
_s7.setPosition(_sfsdf);
RDebugUtils.currentLine=4784474;
 //BA.debugLineNum = 4784474;BA.debugLine="Log(\"ENTRE AQUI\")";
__c.LogImpl("04784474","ENTRE AQUI",0);
RDebugUtils.currentLine=4784475;
 //BA.debugLineNum = 4784475;BA.debugLine="Dim s8 As Cursor = B4XPages.MainPage.skmt.ExecQ";
_s8 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s8 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT CAT_GP_CONVERSION3 FROM CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_s7.GetString("PE_PROID")))+"'"))));
RDebugUtils.currentLine=4784476;
 //BA.debugLineNum = 4784476;BA.debugLine="s8.Position = 0";
_s8.setPosition((int) (0));
RDebugUtils.currentLine=4784477;
 //BA.debugLineNum = 4784477;BA.debugLine="totalstick = totalstick + (s7.GetString(\"PE_CAN";
_totalstick = (int) (_totalstick+((double)(Double.parseDouble(_s7.GetString("PE_CANT")))*(double)(Double.parseDouble(_s8.GetString("CAT_GP_CONVERSION3")))));
 }
};
RDebugUtils.currentLine=4784479;
 //BA.debugLineNum = 4784479;BA.debugLine="Dim totaltotaltot As Int = totalstick/200";
_totaltotaltot = (int) (_totalstick/(double)200);
RDebugUtils.currentLine=4784480;
 //BA.debugLineNum = 4784480;BA.debugLine="l_ru_pri.Text = totaltotaltot";
__ref._l_ru_pri /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_totaltotaltot));
 }else {
RDebugUtils.currentLine=4784482;
 //BA.debugLineNum = 4784482;BA.debugLine="l_ru_pri.Text = 0";
__ref._l_ru_pri /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 };
RDebugUtils.currentLine=4784485;
 //BA.debugLineNum = 4784485;BA.debugLine="Private s0 As Cursor = B4XPages.MainPage.skmt.Exe";
_s0 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s0 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select Ifnull(SUM(PE_CANT),0) AS PE_CANT FROM PEDIDO WHERE PE_PROID IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_TIPO = 'PARTNERSHIP')")));
RDebugUtils.currentLine=4784486;
 //BA.debugLineNum = 4784486;BA.debugLine="If s0.RowCount > 0 Then";
if (_s0.getRowCount()>0) { 
RDebugUtils.currentLine=4784488;
 //BA.debugLineNum = 4784488;BA.debugLine="s0.Position = 0";
_s0.setPosition((int) (0));
RDebugUtils.currentLine=4784489;
 //BA.debugLineNum = 4784489;BA.debugLine="Log(s0.GetString(\"PE_CANT\"))";
__c.LogImpl("04784489",_s0.GetString("PE_CANT"),0);
RDebugUtils.currentLine=4784490;
 //BA.debugLineNum = 4784490;BA.debugLine="L_REAL.Text = s0.GetString(\"PE_CANT\")";
__ref._l_real /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_s0.GetString("PE_CANT")));
 }else {
RDebugUtils.currentLine=4784492;
 //BA.debugLineNum = 4784492;BA.debugLine="L_REAL.Text = 0";
__ref._l_real /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 };
RDebugUtils.currentLine=4784495;
 //BA.debugLineNum = 4784495;BA.debugLine="L_NES.Text = 0";
__ref._l_nes /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=4784496;
 //BA.debugLineNum = 4784496;BA.debugLine="l_ru_sup.Text = 0";
__ref._l_ru_sup /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=4784497;
 //BA.debugLineNum = 4784497;BA.debugLine="L_ALCANCE.Text = 0";
__ref._l_alcance /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=4784498;
 //BA.debugLineNum = 4784498;BA.debugLine="L_VPLAN.Text = 0";
__ref._l_vplan /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=4784499;
 //BA.debugLineNum = 4784499;BA.debugLine="L_VREAL.Text = 0";
__ref._l_vreal /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=4784500;
 //BA.debugLineNum = 4784500;BA.debugLine="L_EFEC_VIS.Text = 0";
__ref._l_efec_vis /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=4784501;
 //BA.debugLineNum = 4784501;BA.debugLine="L_VISITCC.Text = 0";
__ref._l_visitcc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=4784502;
 //BA.debugLineNum = 4784502;BA.debugLine="L_EFEC_PV.Text = 0";
__ref._l_efec_pv /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=4784503;
 //BA.debugLineNum = 4784503;BA.debugLine="L_EFEC_PURA.Text = 0";
__ref._l_efec_pura /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=4784504;
 //BA.debugLineNum = 4784504;BA.debugLine="l_preventa.Text = 0";
__ref._l_preventa /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=4784505;
 //BA.debugLineNum = 4784505;BA.debugLine="l_futura.Text = 0";
__ref._l_futura /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=4784506;
 //BA.debugLineNum = 4784506;BA.debugLine="Label13.Text = 0";
__ref._label13 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=4784507;
 //BA.debugLineNum = 4784507;BA.debugLine="Label19.Text = 0";
__ref._label19 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=4784508;
 //BA.debugLineNum = 4784508;BA.debugLine="Label21.Text = 0";
__ref._label21 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=4784511;
 //BA.debugLineNum = 4784511;BA.debugLine="Private s0 As Cursor = B4XPages.MainPage.skmt.Exe";
_s0 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s0 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(distinct(PE_CLIENTE)) AS PE_CANT FROM PEDIDO WHERE PE_PROID IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_TIPO = 'CIGARRO')")));
RDebugUtils.currentLine=4784512;
 //BA.debugLineNum = 4784512;BA.debugLine="If s0.RowCount > 0 Then";
if (_s0.getRowCount()>0) { 
RDebugUtils.currentLine=4784513;
 //BA.debugLineNum = 4784513;BA.debugLine="s0.Position = 0";
_s0.setPosition((int) (0));
RDebugUtils.currentLine=4784514;
 //BA.debugLineNum = 4784514;BA.debugLine="Log(s0.GetString(\"PE_CANT\"))";
__c.LogImpl("04784514",_s0.GetString("PE_CANT"),0);
RDebugUtils.currentLine=4784515;
 //BA.debugLineNum = 4784515;BA.debugLine="Label33.Text = s0.GetString(\"PE_CANT\")";
__ref._label33 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_s0.GetString("PE_CANT")));
 }else {
RDebugUtils.currentLine=4784517;
 //BA.debugLineNum = 4784517;BA.debugLine="Label33.Text = 0";
__ref._label33 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 };
RDebugUtils.currentLine=4784520;
 //BA.debugLineNum = 4784520;BA.debugLine="Private s5 As Cursor = B4XPages.MainPage.skmt.Exe";
_s5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct(pe_cliente) FROM PEDIDO")));
RDebugUtils.currentLine=4784522;
 //BA.debugLineNum = 4784522;BA.debugLine="If s5.RowCount > 0 Then";
if (_s5.getRowCount()>0) { 
RDebugUtils.currentLine=4784523;
 //BA.debugLineNum = 4784523;BA.debugLine="Private total4 As String = 0";
_total4 = BA.NumberToString(0);
RDebugUtils.currentLine=4784524;
 //BA.debugLineNum = 4784524;BA.debugLine="For i = 0 To s5.RowCount - 1";
{
final int step267 = 1;
final int limit267 = (int) (_s5.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit267 ;_i = _i + step267 ) {
RDebugUtils.currentLine=4784525;
 //BA.debugLineNum = 4784525;BA.debugLine="s5.Position = i";
_s5.setPosition(_i);
RDebugUtils.currentLine=4784527;
 //BA.debugLineNum = 4784527;BA.debugLine="total4 = total4 + Subs.calculaTotalConPromoXRan";
_total4 = BA.NumberToString((double)(Double.parseDouble(_total4))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango5 /*String*/ (ba,_s5.GetString("PE_CLIENTE")))));
 }
};
RDebugUtils.currentLine=4784531;
 //BA.debugLineNum = 4784531;BA.debugLine="Label35.Text = NumberFormat2(total4,0,2,2,False)";
__ref._label35 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total4)),(int) (0),(int) (2),(int) (2),__c.False)));
 }else {
RDebugUtils.currentLine=4784533;
 //BA.debugLineNum = 4784533;BA.debugLine="Label35.Text = 0";
__ref._label35 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 };
RDebugUtils.currentLine=4784536;
 //BA.debugLineNum = 4784536;BA.debugLine="Private s0 As Cursor = B4XPages.MainPage.skmt.Exe";
_s0 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s0 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(distinct(PE_CLIENTE)) AS PE_CANT FROM PEDIDO WHERE PE_PROID IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_TIPO = 'PARTNERSHIP')")));
RDebugUtils.currentLine=4784537;
 //BA.debugLineNum = 4784537;BA.debugLine="If s0.RowCount > 0 Then";
if (_s0.getRowCount()>0) { 
RDebugUtils.currentLine=4784538;
 //BA.debugLineNum = 4784538;BA.debugLine="s0.Position = 0";
_s0.setPosition((int) (0));
RDebugUtils.currentLine=4784539;
 //BA.debugLineNum = 4784539;BA.debugLine="Log(s0.GetString(\"PE_CANT\"))";
__c.LogImpl("04784539",_s0.GetString("PE_CANT"),0);
RDebugUtils.currentLine=4784540;
 //BA.debugLineNum = 4784540;BA.debugLine="Label43.Text = s0.GetString(\"PE_CANT\")";
__ref._label43 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_s0.GetString("PE_CANT")));
 }else {
RDebugUtils.currentLine=4784542;
 //BA.debugLineNum = 4784542;BA.debugLine="Label43.Text = 0";
__ref._label43 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 };
RDebugUtils.currentLine=4784545;
 //BA.debugLineNum = 4784545;BA.debugLine="Private s5 As Cursor = B4XPages.MainPage.skmt.Exe";
_s5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct(pe_cliente) FROM PEDIDO")));
RDebugUtils.currentLine=4784547;
 //BA.debugLineNum = 4784547;BA.debugLine="If s5.RowCount > 0 Then";
if (_s5.getRowCount()>0) { 
RDebugUtils.currentLine=4784548;
 //BA.debugLineNum = 4784548;BA.debugLine="Private total4 As String = 0";
_total4 = BA.NumberToString(0);
RDebugUtils.currentLine=4784549;
 //BA.debugLineNum = 4784549;BA.debugLine="For i = 0 To s5.RowCount - 1";
{
final int step286 = 1;
final int limit286 = (int) (_s5.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit286 ;_i = _i + step286 ) {
RDebugUtils.currentLine=4784550;
 //BA.debugLineNum = 4784550;BA.debugLine="s5.Position = i";
_s5.setPosition(_i);
RDebugUtils.currentLine=4784552;
 //BA.debugLineNum = 4784552;BA.debugLine="total4 = total4 + Subs.calculaTotalConPromoXRan";
_total4 = BA.NumberToString((double)(Double.parseDouble(_total4))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango6 /*String*/ (ba,_s5.GetString("PE_CLIENTE")))));
 }
};
RDebugUtils.currentLine=4784556;
 //BA.debugLineNum = 4784556;BA.debugLine="Label51.Text = NumberFormat2(total4,0,2,2,False)";
__ref._label51 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total4)),(int) (0),(int) (2),(int) (2),__c.False)));
 }else {
RDebugUtils.currentLine=4784558;
 //BA.debugLineNum = 4784558;BA.debugLine="Label51.Text = 0";
__ref._label51 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 };
RDebugUtils.currentLine=4784561;
 //BA.debugLineNum = 4784561;BA.debugLine="Private s6 As Cursor = B4XPages.MainPage.skmt.Exe";
_s6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(COB_VOLUMEN,0) AS COB_VOLUMEN, IFNULL(COB_MARCAE,0) AS COB_MARCAE, IFNULL(COB_PORTAFOLIO,0) AS COB_PORTAFOLIO, IFNULL(COB_OBJPP,0) AS COB_OBJPP, IFNULL(COB_GEV,0) as COB_GEV FROM CAT_OBJETIVO_BAT")));
RDebugUtils.currentLine=4784562;
 //BA.debugLineNum = 4784562;BA.debugLine="If s6.RowCount > 0 Then";
if (_s6.getRowCount()>0) { 
RDebugUtils.currentLine=4784563;
 //BA.debugLineNum = 4784563;BA.debugLine="s6.Position = 0";
_s6.setPosition((int) (0));
RDebugUtils.currentLine=4784564;
 //BA.debugLineNum = 4784564;BA.debugLine="L_NES.Text = NumberFormat2(s6.GetString(\"COB_VOL";
__ref._l_nes /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_s6.GetString("COB_VOLUMEN"))),(int) (0),(int) (0),(int) (0),__c.False)));
RDebugUtils.currentLine=4784565;
 //BA.debugLineNum = 4784565;BA.debugLine="L_EFEC_PURA.Text = NumberFormat2(s6.GetString(\"C";
__ref._l_efec_pura /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_s6.GetString("COB_MARCAE"))),(int) (0),(int) (0),(int) (0),__c.False)));
RDebugUtils.currentLine=4784566;
 //BA.debugLineNum = 4784566;BA.debugLine="L_VISITCC.Text = NumberFormat2(s6.GetString(\"COB";
__ref._l_visitcc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_s6.GetString("COB_PORTAFOLIO"))),(int) (0),(int) (0),(int) (0),__c.False)));
RDebugUtils.currentLine=4784567;
 //BA.debugLineNum = 4784567;BA.debugLine="l_ru_sup.Text = NumberFormat2(s6.GetString(\"COB_";
__ref._l_ru_sup /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_s6.GetString("COB_OBJPP"))),(int) (0),(int) (0),(int) (0),__c.False)));
RDebugUtils.currentLine=4784568;
 //BA.debugLineNum = 4784568;BA.debugLine="l_futura.Text = NumberFormat2(s6.GetString(\"COB_";
__ref._l_futura /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_s6.GetString("COB_GEV"))),(int) (0),(int) (0),(int) (0),__c.False)));
 }else {
RDebugUtils.currentLine=4784570;
 //BA.debugLineNum = 4784570;BA.debugLine="L_NES.Text = 0";
__ref._l_nes /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=4784571;
 //BA.debugLineNum = 4784571;BA.debugLine="L_EFEC_PURA.Text = 0";
__ref._l_efec_pura /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=4784572;
 //BA.debugLineNum = 4784572;BA.debugLine="L_VISITCC.Text = 0";
__ref._l_visitcc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=4784573;
 //BA.debugLineNum = 4784573;BA.debugLine="l_ru_sup.Text = 0";
__ref._l_ru_sup /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=4784574;
 //BA.debugLineNum = 4784574;BA.debugLine="l_futura.Text = 0";
__ref._l_futura /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 };
RDebugUtils.currentLine=4784577;
 //BA.debugLineNum = 4784577;BA.debugLine="End Sub";
return "";
}
public String  _b_traec_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_traec_click", false))
	 {return ((String) Debug.delegate(ba, "b_traec_click", null));}
RDebugUtils.currentLine=6356992;
 //BA.debugLineNum = 6356992;BA.debugLine="Private Sub B_traec_click";
RDebugUtils.currentLine=6356993;
 //BA.debugLineNum = 6356993;BA.debugLine="B4XPages.ShowPage(\"Clientes_Completos\")";
_b4xpages._showpage /*String*/ (ba,"Clientes_Completos");
RDebugUtils.currentLine=6356994;
 //BA.debugLineNum = 6356994;BA.debugLine="End Sub";
return "";
}
public String  _b_ubicar_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b_ubicar_click", false))
	 {return ((String) Debug.delegate(ba, "b_ubicar_click", null));}
RDebugUtils.currentLine=6094848;
 //BA.debugLineNum = 6094848;BA.debugLine="Private Sub b_ubicar_Click";
RDebugUtils.currentLine=6094849;
 //BA.debugLineNum = 6094849;BA.debugLine="Btn_Ubicar_Click";
__ref._btn_ubicar_click /*String*/ (null);
RDebugUtils.currentLine=6094850;
 //BA.debugLineNum = 6094850;BA.debugLine="End Sub";
return "";
}
public String  _btn_ubicar_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "btn_ubicar_click", false))
	 {return ((String) Debug.delegate(ba, "btn_ubicar_click", null));}
RDebugUtils.currentLine=5111808;
 //BA.debugLineNum = 5111808;BA.debugLine="Sub Btn_Ubicar_Click";
RDebugUtils.currentLine=5111809;
 //BA.debugLineNum = 5111809;BA.debugLine="StartActivity(MAPA_RUTAS)";
__c.StartActivity(ba,(Object)(_mapa_rutas.getObject()));
RDebugUtils.currentLine=5111810;
 //BA.debugLineNum = 5111810;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper  _b4xpage_closerequest(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b4xpage_closerequest", false))
	 {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "b4xpage_closerequest", null));}
ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this,__ref);
rsub.resume(ba, null);
return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
}
public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
public ResumableSub_B4XPage_CloseRequest(gunav2.keymon.com.mx.c_principal parent,gunav2.keymon.com.mx.c_principal __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
gunav2.keymon.com.mx.c_principal __ref;
gunav2.keymon.com.mx.c_principal parent;

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

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

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

case 3:
//C
this.state = 6;
RDebugUtils.currentLine=3866627;
 //BA.debugLineNum = 3866627;BA.debugLine="SCROLL_RESDIA.Visible = False";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=3866628;
 //BA.debugLineNum = 3866628;BA.debugLine="B_OK_RES_Click";
__ref._b_ok_res_click /*String*/ (null);
RDebugUtils.currentLine=3866629;
 //BA.debugLineNum = 3866629;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 if (true) break;

case 5:
//C
this.state = 6;
RDebugUtils.currentLine=3866631;
 //BA.debugLineNum = 3866631;BA.debugLine="B4XPages.ShowPage(\"login\")";
parent._b4xpages._showpage /*String*/ (ba,"login");
 if (true) break;

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

            }
        }
    }
}
public String  _b4xpage_created(gunav2.keymon.com.mx.c_principal __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "b4xpage_created", false))
	 {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));}
String _ruta = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _s = null;
RDebugUtils.currentLine=3407872;
 //BA.debugLineNum = 3407872;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=3407873;
 //BA.debugLineNum = 3407873;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=3407874;
 //BA.debugLineNum = 3407874;BA.debugLine="bitacora.Initialize(\"bitacora\", \"bitacora\", Root,";
__ref._bitacora /*gunav2.keymon.com.mx.c_bitacora*/ ._initialize /*Object*/ (null,ba,(Object)("bitacora"),"bitacora",__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ ,_starter._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ );
RDebugUtils.currentLine=3407876;
 //BA.debugLineNum = 3407876;BA.debugLine="Root.LoadLayout(\"principal\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("principal",ba);
RDebugUtils.currentLine=3407877;
 //BA.debugLineNum = 3407877;BA.debugLine="SCROLL_RESDIA.Width = Root.Width";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=3407878;
 //BA.debugLineNum = 3407878;BA.debugLine="SCROLL_RESDIA.Height = Root.Height";
__ref._scroll_resdia /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=3407879;
 //BA.debugLineNum = 3407879;BA.debugLine="B_OK_RES.color = Colors.Red";
__ref._b_ok_res /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setColor(__c.Colors.Red);
RDebugUtils.currentLine=3407880;
 //BA.debugLineNum = 3407880;BA.debugLine="B_OK_RES.TextColor = Colors.White";
__ref._b_ok_res /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setTextColor(__c.Colors.White);
RDebugUtils.currentLine=3407881;
 //BA.debugLineNum = 3407881;BA.debugLine="l_version.Left = Root.Width - l_version.Width";
__ref._l_version /*anywheresoftware.b4a.objects.LabelWrapper*/ .setLeft((int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()-__ref._l_version /*anywheresoftware.b4a.objects.LabelWrapper*/ .getWidth()));
RDebugUtils.currentLine=3407882;
 //BA.debugLineNum = 3407882;BA.debugLine="l_version.Text = Application.VersionName";
__ref._l_version /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Application.getVersionName()));
RDebugUtils.currentLine=3407883;
 //BA.debugLineNum = 3407883;BA.debugLine="EJECUTANDO=1";
__ref._ejecutando /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3407884;
 //BA.debugLineNum = 3407884;BA.debugLine="Dim ruta As String";
_ruta = "";
RDebugUtils.currentLine=3407885;
 //BA.debugLineNum = 3407885;BA.debugLine="img2.Visible =False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3407886;
 //BA.debugLineNum = 3407886;BA.debugLine="ruta = File.DirInternal";
_ruta = __c.File.getDirInternal();
RDebugUtils.currentLine=3407887;
 //BA.debugLineNum = 3407887;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then";
if (__c.File.Exists(_ruta,"kmt.db")==__c.False) { 
RDebugUtils.currentLine=3407888;
 //BA.debugLineNum = 3407888;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d";
__c.File.Copy(__c.File.getDirAssets(),"kmt.db",_ruta,"kmt.db");
 };
RDebugUtils.currentLine=3407890;
 //BA.debugLineNum = 3407890;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=3407891;
 //BA.debugLineNum = 3407891;BA.debugLine="fecha=DateTime.Date(DateTime.Now)";
__ref._fecha /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=3407892;
 //BA.debugLineNum = 3407892;BA.debugLine="B4XPages.MainPage.skmt.Initialize(ruta,\"kmt.db\",";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .Initialize(_ruta,"kmt.db",__c.True);
RDebugUtils.currentLine=3407893;
 //BA.debugLineNum = 3407893;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"Select count(";
__ref._b /*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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) as CUANTOS from pedido_cliente")));
RDebugUtils.currentLine=3407894;
 //BA.debugLineNum = 3407894;BA.debugLine="b.Position=0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3407895;
 //BA.debugLineNum = 3407895;BA.debugLine="Cuantos = b.GetString(\"CUANTOS\")";
__ref._cuantos /*String*/  = __ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS");
RDebugUtils.currentLine=3407896;
 //BA.debugLineNum = 3407896;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3407897;
 //BA.debugLineNum = 3407897;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as TOTAL_VISITAR from kmt_info3 where gestion = 0")));
RDebugUtils.currentLine=3407898;
 //BA.debugLineNum = 3407898;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3407899;
 //BA.debugLineNum = 3407899;BA.debugLine="e=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
__ref._e /*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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as POR_VISITAR from kmt_info3")));
RDebugUtils.currentLine=3407900;
 //BA.debugLineNum = 3407900;BA.debugLine="e.Position=0";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3407901;
 //BA.debugLineNum = 3407901;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as CAT_CL_RUTA from kmt_info3")));
RDebugUtils.currentLine=3407902;
 //BA.debugLineNum = 3407902;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3407903;
 //BA.debugLineNum = 3407903;BA.debugLine="l_ruta.Text = f.GetString(\"CAT_CL_RUTA\")";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA")));
RDebugUtils.currentLine=3407904;
 //BA.debugLineNum = 3407904;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3407905;
 //BA.debugLineNum = 3407905;BA.debugLine="b_abordo.Left = (Root.Width / 2) - (b_abordo.Widt";
__ref._b_abordo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setLeft((int) ((__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)2)-(__ref._b_abordo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getWidth()/(double)2)));
RDebugUtils.currentLine=3407906;
 //BA.debugLineNum = 3407906;BA.debugLine="p_principal.Width = Root.Width : p_principal.Heig";
__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=3407906;
 //BA.debugLineNum = 3407906;BA.debugLine="p_principal.Width = Root.Width : p_principal.Heig";
__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=3407914;
 //BA.debugLineNum = 3407914;BA.debugLine="If l_ruta.Text = 0 Then";
if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=3407915;
 //BA.debugLineNum = 3407915;BA.debugLine="l_ruta.Text = 0";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
 }else 
{RDebugUtils.currentLine=3407916;
 //BA.debugLineNum = 3407916;BA.debugLine="Else If l_ruta.Text > 0 Then";
if ((double)(Double.parseDouble(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))>0) { 
RDebugUtils.currentLine=3407917;
 //BA.debugLineNum = 3407917;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select disti";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct CAT_CL_RUTA from kmt_info3 where CAT_CL_RUTA not in (select * from ruta_suplencia)")));
RDebugUtils.currentLine=3407918;
 //BA.debugLineNum = 3407918;BA.debugLine="f.Position=0";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3407919;
 //BA.debugLineNum = 3407919;BA.debugLine="l_ruta.Text = f.GetString(\"CAT_CL_RUTA\")";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA")));
RDebugUtils.currentLine=3407920;
 //BA.debugLineNum = 3407920;BA.debugLine="f.Close";
__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 }}
;
RDebugUtils.currentLine=3407923;
 //BA.debugLineNum = 3407923;BA.debugLine="If Subs.traeTipoVentaDeBD = \"VENTA\" Or Subs.traeT";
if ((_subs._traetipoventadebd /*String*/ (ba)).equals("VENTA") || (_subs._traetipoventadebd /*String*/ (ba)).equals("ABORDO")) { 
RDebugUtils.currentLine=3407924;
 //BA.debugLineNum = 3407924;BA.debugLine="If l_ruta.Text <> \"0\" Then";
if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0") == false) { 
RDebugUtils.currentLine=3407925;
 //BA.debugLineNum = 3407925;BA.debugLine="Log(999 & \"|\" & l_ruta.Text & \"|\")";
__c.LogImpl("03407925",BA.NumberToString(999)+"|"+__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+"|",0);
RDebugUtils.currentLine=3407926;
 //BA.debugLineNum = 3407926;BA.debugLine="b_abordo.Visible = False";
__ref._b_abordo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 };
 }else {
RDebugUtils.currentLine=3407929;
 //BA.debugLineNum = 3407929;BA.debugLine="b_abordo.Visible = False";
__ref._b_abordo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 };
RDebugUtils.currentLine=3407936;
 //BA.debugLineNum = 3407936;BA.debugLine="If Cuantos  = 0 Then";
if ((__ref._cuantos /*String*/ ).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=3407937;
 //BA.debugLineNum = 3407937;BA.debugLine="L_MONTOD.Text =0";
__ref._l_montod /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3407938;
 //BA.debugLineNum = 3407938;BA.debugLine="l_cuantosc.Text = 0";
__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3407939;
 //BA.debugLineNum = 3407939;BA.debugLine="l_cuantosn.Text = 0";
__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3407940;
 //BA.debugLineNum = 3407940;BA.debugLine="drop = 0";
__ref._drop /*double*/  = 0;
RDebugUtils.currentLine=3407941;
 //BA.debugLineNum = 3407941;BA.debugLine="l_drop.Text = 0";
__ref._l_drop /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3407942;
 //BA.debugLineNum = 3407942;BA.debugLine="efectiva = 0";
__ref._efectiva /*double*/  = 0;
RDebugUtils.currentLine=3407943;
 //BA.debugLineNum = 3407943;BA.debugLine="l_efectiva.text =0";
__ref._l_efectiva /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0));
RDebugUtils.currentLine=3407944;
 //BA.debugLineNum = 3407944;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")";
__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL_VISITAR")));
RDebugUtils.currentLine=3407945;
 //BA.debugLineNum = 3407945;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")";
__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("POR_VISITAR")));
 }else {
RDebugUtils.currentLine=3407947;
 //BA.debugLineNum = 3407947;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select  sum(";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select  sum(pc_monto) as MONTO_DIA, count(pc_cliente) AS CLIENTES_DIA  from pedido_cliente ")));
RDebugUtils.currentLine=3407948;
 //BA.debugLineNum = 3407948;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"select count";
__ref._b /*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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(distinct NV_CLIENTE) as CUANTOS from noventa")));
RDebugUtils.currentLine=3407950;
 //BA.debugLineNum = 3407950;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3407951;
 //BA.debugLineNum = 3407951;BA.debugLine="b.Position=0";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3407952;
 //BA.debugLineNum = 3407952;BA.debugLine="L_MONTOD.Text = NumberFormat2(c.GetDouble(\"MONTO";
__ref._l_montod /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetDouble("MONTO_DIA"),(int) (0),(int) (2),(int) (2),__c.False)));
RDebugUtils.currentLine=3407953;
 //BA.debugLineNum = 3407953;BA.debugLine="l_cuantosc.Text = c.GetString(\"CLIENTES_DIA\")";
__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTES_DIA")));
RDebugUtils.currentLine=3407954;
 //BA.debugLineNum = 3407954;BA.debugLine="l_cuantosn.Text = b.GetString(\"CUANTOS\")";
__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")));
RDebugUtils.currentLine=3407955;
 //BA.debugLineNum = 3407955;BA.debugLine="drop = c.GetString(\"MONTO_DIA\") / c.GetString(\"C";
__ref._drop /*double*/  = (double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_DIA")))/(double)(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTES_DIA")));
RDebugUtils.currentLine=3407956;
 //BA.debugLineNum = 3407956;BA.debugLine="l_drop.Text = Round2(drop,2)";
__ref._l_drop /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2(__ref._drop /*double*/ ,(int) (2))));
RDebugUtils.currentLine=3407957;
 //BA.debugLineNum = 3407957;BA.debugLine="efectiva = c.GetString(\"CLIENTES_DIA\") / e.GetSt";
__ref._efectiva /*double*/  = (double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTES_DIA")))/(double)(double)(Double.parseDouble(__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("POR_VISITAR")));
RDebugUtils.currentLine=3407958;
 //BA.debugLineNum = 3407958;BA.debugLine="l_efectiva.text = Round2(efectiva*100,2)";
__ref._l_efectiva /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2(__ref._efectiva /*double*/ *100,(int) (2))));
RDebugUtils.currentLine=3407959;
 //BA.debugLineNum = 3407959;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")";
__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL_VISITAR")));
RDebugUtils.currentLine=3407960;
 //BA.debugLineNum = 3407960;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")";
__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("POR_VISITAR")));
RDebugUtils.currentLine=3407961;
 //BA.debugLineNum = 3407961;BA.debugLine="b.Close";
__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3407962;
 //BA.debugLineNum = 3407962;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=3407964;
 //BA.debugLineNum = 3407964;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3407965;
 //BA.debugLineNum = 3407965;BA.debugLine="e.Close";
__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3407966;
 //BA.debugLineNum = 3407966;BA.debugLine="CallSubDelayed(FirebaseMessaging, \"SubscribeToTop";
__c.CallSubDelayed(ba,(Object)(_firebasemessaging.getObject()),"SubscribeToTopics");
RDebugUtils.currentLine=3407968;
 //BA.debugLineNum = 3407968;BA.debugLine="Private s As Cursor = B4XPages.MainPage.skmt.Exec";
_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(RS_RUTA) as cuenta, RS_RUTA FROM RUTA_SUPLENCIA")));
RDebugUtils.currentLine=3407969;
 //BA.debugLineNum = 3407969;BA.debugLine="s.Position = 0";
_s.setPosition((int) (0));
RDebugUtils.currentLine=3407970;
 //BA.debugLineNum = 3407970;BA.debugLine="If s.GetString(\"cuenta\") = 0 Then";
if ((_s.GetString("cuenta")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=3407971;
 //BA.debugLineNum = 3407971;BA.debugLine="Label22.Visible = False";
__ref._label22 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3407972;
 //BA.debugLineNum = 3407972;BA.debugLine="l_rutasuplencia.Visible = False";
__ref._l_rutasuplencia /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
 }else 
{RDebugUtils.currentLine=3407973;
 //BA.debugLineNum = 3407973;BA.debugLine="Else If s.GetString(\"cuenta\") > 0 Then";
if ((double)(Double.parseDouble(_s.GetString("cuenta")))>0) { 
RDebugUtils.currentLine=3407974;
 //BA.debugLineNum = 3407974;BA.debugLine="Label22.Visible = True";
__ref._label22 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3407975;
 //BA.debugLineNum = 3407975;BA.debugLine="l_rutasuplencia.Visible = True";
__ref._l_rutasuplencia /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3407976;
 //BA.debugLineNum = 3407976;BA.debugLine="l_rutasuplencia.Text = s.GetString(\"RS_RUTA\")";
__ref._l_rutasuplencia /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_s.GetString("RS_RUTA")));
 }}
;
RDebugUtils.currentLine=3407978;
 //BA.debugLineNum = 3407978;BA.debugLine="p_transparenteActualizacion.Width = Root.Width";
__ref._p_transparenteactualizacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=3407979;
 //BA.debugLineNum = 3407979;BA.debugLine="p_transparenteActualizacion.Height = Root.Height";
__ref._p_transparenteactualizacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=3407980;
 //BA.debugLineNum = 3407980;BA.debugLine="Subs.centraPanel(p_forzarActualizacion, p_transpa";
_subs._centrapanel /*String*/ (ba,__ref._p_forzaractualizacion /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._p_transparenteactualizacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth());
RDebugUtils.currentLine=3407982;
 //BA.debugLineNum = 3407982;BA.debugLine="End Sub";
return "";
}
public String  _busca_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "busca_click", false))
	 {return ((String) Debug.delegate(ba, "busca_click", null));}
RDebugUtils.currentLine=3997696;
 //BA.debugLineNum = 3997696;BA.debugLine="Sub BUSCA_Click";
RDebugUtils.currentLine=3997697;
 //BA.debugLineNum = 3997697;BA.debugLine="B4XPages.ShowPage(\"TicketsDia\")";
_b4xpages._showpage /*String*/ (ba,"TicketsDia");
RDebugUtils.currentLine=3997698;
 //BA.debugLineNum = 3997698;BA.debugLine="End Sub";
return "";
}
public String  _carga_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "carga_click", false))
	 {return ((String) Debug.delegate(ba, "carga_click", null));}
RDebugUtils.currentLine=4718592;
 //BA.debugLineNum = 4718592;BA.debugLine="Sub CARGA_Click";
RDebugUtils.currentLine=4718593;
 //BA.debugLineNum = 4718593;BA.debugLine="B4XPages.ShowPage(\"Productos\")";
_b4xpages._showpage /*String*/ (ba,"Productos");
RDebugUtils.currentLine=4718594;
 //BA.debugLineNum = 4718594;BA.debugLine="End Sub";
return "";
}
public String  _cargar_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "cargar_click", false))
	 {return ((String) Debug.delegate(ba, "cargar_click", null));}
boolean _pedidodiaanterior = false;
anywheresoftware.b4a.sql.SQL.CursorWrapper _cp = null;
String[] _fecha2 = null;
String[] _fecha5 = null;
String _dia = "";
String _mescom = "";
String _mescom2 = "";
String _diacom = "";
String _diacom2 = "";
String _dia2 = "";
int _i = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _sup = null;
int _i2 = 0;
RDebugUtils.currentLine=3670016;
 //BA.debugLineNum = 3670016;BA.debugLine="Sub cargar_Click";
RDebugUtils.currentLine=3670018;
 //BA.debugLineNum = 3670018;BA.debugLine="Dim pedidodiaanterior As Boolean = False";
_pedidodiaanterior = __c.False;
RDebugUtils.currentLine=3670019;
 //BA.debugLineNum = 3670019;BA.debugLine="Dim cp As Cursor = B4XPages.MainPage.skmt.ExecQue";
_cp = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_cp = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from PEDIDO")));
RDebugUtils.currentLine=3670020;
 //BA.debugLineNum = 3670020;BA.debugLine="If cp.RowCount > 0 Then";
if (_cp.getRowCount()>0) { 
RDebugUtils.currentLine=3670021;
 //BA.debugLineNum = 3670021;BA.debugLine="cp.Position = 0";
_cp.setPosition((int) (0));
RDebugUtils.currentLine=3670022;
 //BA.debugLineNum = 3670022;BA.debugLine="Private fecha As String = cp.GetString(\"PE_FECHA";
_fecha = _cp.GetString("PE_FECHA");
RDebugUtils.currentLine=3670023;
 //BA.debugLineNum = 3670023;BA.debugLine="Dim fecha2() As String = Regex.Split(\"/\",fecha)";
_fecha2 = __c.Regex.Split("/",__ref._fecha /*String*/ );
RDebugUtils.currentLine=3670024;
 //BA.debugLineNum = 3670024;BA.debugLine="Dim fecha5() As String = Regex.Split(\"\\:\",fecha2";
_fecha5 = __c.Regex.Split("\\:",_fecha2[(int) (2)]);
RDebugUtils.currentLine=3670025;
 //BA.debugLineNum = 3670025;BA.debugLine="Dim dia As String = fecha5(0).SubString2(0,4)&fe";
_dia = _fecha5[(int) (0)].substring((int) (0),(int) (4))+_fecha2[(int) (0)]+_fecha2[(int) (1)];
RDebugUtils.currentLine=3670026;
 //BA.debugLineNum = 3670026;BA.debugLine="Log(fecha5(0))";
__c.LogImpl("03670026",_fecha5[(int) (0)],0);
RDebugUtils.currentLine=3670027;
 //BA.debugLineNum = 3670027;BA.debugLine="Log(dia)";
__c.LogImpl("03670027",_dia,0);
RDebugUtils.currentLine=3670028;
 //BA.debugLineNum = 3670028;BA.debugLine="Dim mescom As String = DateTime.GetMonth(DateTim";
_mescom = BA.NumberToString(__c.DateTime.GetMonth(__c.DateTime.getNow()));
RDebugUtils.currentLine=3670029;
 //BA.debugLineNum = 3670029;BA.debugLine="Dim mescom2 As String";
_mescom2 = "";
RDebugUtils.currentLine=3670030;
 //BA.debugLineNum = 3670030;BA.debugLine="If mescom.Length = 1 Then";
if (_mescom.length()==1) { 
RDebugUtils.currentLine=3670031;
 //BA.debugLineNum = 3670031;BA.debugLine="mescom2 = \"0\"&DateTime.GetMonth(DateTime.Now)";
_mescom2 = "0"+BA.NumberToString(__c.DateTime.GetMonth(__c.DateTime.getNow()));
 }else {
RDebugUtils.currentLine=3670033;
 //BA.debugLineNum = 3670033;BA.debugLine="mescom2 = DateTime.GetMonth(DateTime.Now)";
_mescom2 = BA.NumberToString(__c.DateTime.GetMonth(__c.DateTime.getNow()));
 };
RDebugUtils.currentLine=3670036;
 //BA.debugLineNum = 3670036;BA.debugLine="Dim diacom As String = DateTime.GetDayOfMonth(Da";
_diacom = BA.NumberToString(__c.DateTime.GetDayOfMonth(__c.DateTime.getNow()));
RDebugUtils.currentLine=3670037;
 //BA.debugLineNum = 3670037;BA.debugLine="Log(DateTime.GetMonth(DateTime.Now))";
__c.LogImpl("03670037",BA.NumberToString(__c.DateTime.GetMonth(__c.DateTime.getNow())),0);
RDebugUtils.currentLine=3670038;
 //BA.debugLineNum = 3670038;BA.debugLine="Dim diacom2 As String";
_diacom2 = "";
RDebugUtils.currentLine=3670039;
 //BA.debugLineNum = 3670039;BA.debugLine="If diacom.Length = 1 Then";
if (_diacom.length()==1) { 
RDebugUtils.currentLine=3670040;
 //BA.debugLineNum = 3670040;BA.debugLine="diacom2 = \"0\"&DateTime.GetDayOfMonth(DateTime.N";
_diacom2 = "0"+BA.NumberToString(__c.DateTime.GetDayOfMonth(__c.DateTime.getNow()));
 }else {
RDebugUtils.currentLine=3670042;
 //BA.debugLineNum = 3670042;BA.debugLine="diacom2 = DateTime.GetDayOfMonth(DateTime.Now)";
_diacom2 = BA.NumberToString(__c.DateTime.GetDayOfMonth(__c.DateTime.getNow()));
 };
RDebugUtils.currentLine=3670046;
 //BA.debugLineNum = 3670046;BA.debugLine="Dim dia2 As String = DateTime.GetYear(DateTime.N";
_dia2 = BA.NumberToString(__c.DateTime.GetYear(__c.DateTime.getNow()))+_mescom2+_diacom2;
RDebugUtils.currentLine=3670047;
 //BA.debugLineNum = 3670047;BA.debugLine="Log(dia & \" , \" & dia2)";
__c.LogImpl("03670047",_dia+" , "+_dia2,0);
RDebugUtils.currentLine=3670048;
 //BA.debugLineNum = 3670048;BA.debugLine="Log(\"SI PASO\")";
__c.LogImpl("03670048","SI PASO",0);
RDebugUtils.currentLine=3670049;
 //BA.debugLineNum = 3670049;BA.debugLine="If dia < dia2 Then";
if ((double)(Double.parseDouble(_dia))<(double)(Double.parseDouble(_dia2))) { 
RDebugUtils.currentLine=3670050;
 //BA.debugLineNum = 3670050;BA.debugLine="pedidodiaanterior = True";
_pedidodiaanterior = __c.True;
 };
 };
RDebugUtils.currentLine=3670053;
 //BA.debugLineNum = 3670053;BA.debugLine="If Not (pedidodiaanterior) Then";
if (__c.Not(_pedidodiaanterior)) { 
RDebugUtils.currentLine=3670056;
 //BA.debugLineNum = 3670056;BA.debugLine="Private i As Int = Regex.Replace(\"[^0-9.]\", e_ru";
_i = (int)(Double.parseDouble(__c.Regex.Replace("[^0-9.]",__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(),"")));
RDebugUtils.currentLine=3670057;
 //BA.debugLineNum = 3670057;BA.debugLine="e_ruta.text = i";
__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_i));
RDebugUtils.currentLine=3670059;
 //BA.debugLineNum = 3670059;BA.debugLine="Private sup As Cursor = Starter.skmt.ExecQuery(\"";
_sup = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_sup = (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 RS_RUTA FROM RUTA_SUPLENCIA")));
RDebugUtils.currentLine=3670060;
 //BA.debugLineNum = 3670060;BA.debugLine="If E_RUTA2.Visible = False And E_RUTA2.text = \"\"";
if (__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getVisible()==__c.False && (__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") && _sup.getRowCount()>0) { 
RDebugUtils.currentLine=3670061;
 //BA.debugLineNum = 3670061;BA.debugLine="sup.Position = 0";
_sup.setPosition((int) (0));
RDebugUtils.currentLine=3670062;
 //BA.debugLineNum = 3670062;BA.debugLine="E_RUTA2.text = sup.GetString(\"RS_RUTA\")";
__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_sup.GetString("RS_RUTA")));
RDebugUtils.currentLine=3670063;
 //BA.debugLineNum = 3670063;BA.debugLine="E_RUTA2.Visible = True";
__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setVisible(__c.True);
 };
RDebugUtils.currentLine=3670066;
 //BA.debugLineNum = 3670066;BA.debugLine="If E_RUTA2.Visible = True Then";
if (__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getVisible()==__c.True) { 
RDebugUtils.currentLine=3670067;
 //BA.debugLineNum = 3670067;BA.debugLine="Private i2 As Int = Regex.Replace(\"[^0-9.]\", E_";
_i2 = (int)(Double.parseDouble(__c.Regex.Replace("[^0-9.]",__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(),"")));
RDebugUtils.currentLine=3670068;
 //BA.debugLineNum = 3670068;BA.debugLine="E_RUTA2.text = i2";
__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_i2));
RDebugUtils.currentLine=3670069;
 //BA.debugLineNum = 3670069;BA.debugLine="Rut_Rep = e_ruta.Text & \" \" & E_RUTA2.Text";
__ref._rut_rep /*String*/  = __ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()+" "+__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText();
 }else {
RDebugUtils.currentLine=3670071;
 //BA.debugLineNum = 3670071;BA.debugLine="Rut_Rep = e_ruta.Text";
__ref._rut_rep /*String*/  = __ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText();
 };
RDebugUtils.currentLine=3670073;
 //BA.debugLineNum = 3670073;BA.debugLine="Log(Rut_Rep)";
__c.LogImpl("03670073",__ref._rut_rep /*String*/ ,0);
RDebugUtils.currentLine=3670074;
 //BA.debugLineNum = 3670074;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE GPS";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE GPS SET HABILITADO = (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(0)}));
RDebugUtils.currentLine=3670075;
 //BA.debugLineNum = 3670075;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FRO";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"CARGA_DIA"}));
RDebugUtils.currentLine=3670076;
 //BA.debugLineNum = 3670076;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FRO";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"pasword"}));
RDebugUtils.currentLine=3670077;
 //BA.debugLineNum = 3670077;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FRO";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"VENTAFUTURA"}));
RDebugUtils.currentLine=3670078;
 //BA.debugLineNum = 3670078;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FRO";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"LATITUD"}));
RDebugUtils.currentLine=3670079;
 //BA.debugLineNum = 3670079;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FRO";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"GEOCERCA"}));
RDebugUtils.currentLine=3670080;
 //BA.debugLineNum = 3670080;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FRO";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"LONGITUD"}));
RDebugUtils.currentLine=3670081;
 //BA.debugLineNum = 3670081;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE GPS";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE GPS SET HABILITADO = (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(0)}));
RDebugUtils.currentLine=3670082;
 //BA.debugLineNum = 3670082;BA.debugLine="CARGA = \"CARGAR\"";
__ref._carga /*String*/  = "CARGAR";
RDebugUtils.currentLine=3670084;
 //BA.debugLineNum = 3670084;BA.debugLine="L_P_1.Visible = True";
__ref._l_p_1 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3670085;
 //BA.debugLineNum = 3670085;BA.debugLine="S_CC.Visible = True";
__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3670086;
 //BA.debugLineNum = 3670086;BA.debugLine="Btn_Ubicar.Visible=False";
__ref._btn_ubicar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3670088;
 //BA.debugLineNum = 3670088;BA.debugLine="p_principal.Visible = False";
__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3670089;
 //BA.debugLineNum = 3670089;BA.debugLine="Subs.panelVisible(P1, 0, 0)";
_subs._panelvisible /*String*/ (ba,__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
RDebugUtils.currentLine=3670090;
 //BA.debugLineNum = 3670090;BA.debugLine="Subs.centraPanel(P1, Root.Width)";
_subs._centrapanel /*String*/ (ba,__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=3670091;
 //BA.debugLineNum = 3670091;BA.debugLine="Subs.centraPanelV(P1, Root.Height)";
_subs._centrapanelv /*String*/ (ba,__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=3670092;
 //BA.debugLineNum = 3670092;BA.debugLine="Label4.Visible = False";
__ref._label4 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3670093;
 //BA.debugLineNum = 3670093;BA.debugLine="l_ruta.Visible = False";
__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3670094;
 //BA.debugLineNum = 3670094;BA.debugLine="Label22.Visible = False";
__ref._label22 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3670095;
 //BA.debugLineNum = 3670095;BA.debugLine="l_rutasuplencia.Visible = False";
__ref._l_rutasuplencia /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3670096;
 //BA.debugLineNum = 3670096;BA.debugLine="l_visitartotal.Visible = False";
__ref._l_visitartotal /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3670097;
 //BA.debugLineNum = 3670097;BA.debugLine="de.Visible = False";
__ref._de /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3670098;
 //BA.debugLineNum = 3670098;BA.debugLine="l_faltan.Visible = False";
__ref._l_faltan /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3670099;
 //BA.debugLineNum = 3670099;BA.debugLine="l_visitas.Visible = False";
__ref._l_visitas /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3670101;
 //BA.debugLineNum = 3670101;BA.debugLine="NUEVO.Visible =False";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3670102;
 //BA.debugLineNum = 3670102;BA.debugLine="BUSCA.Visible=False";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3670103;
 //BA.debugLineNum = 3670103;BA.debugLine="connecta.Visible=False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3670104;
 //BA.debugLineNum = 3670104;BA.debugLine="L_P_3.Visible = True";
__ref._l_p_3 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3670105;
 //BA.debugLineNum = 3670105;BA.debugLine="S_CH.Visible = True";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3670106;
 //BA.debugLineNum = 3670106;BA.debugLine="PB1.Visible = True";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3670107;
 //BA.debugLineNum = 3670107;BA.debugLine="Resumen.Visible= False";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3670109;
 //BA.debugLineNum = 3670109;BA.debugLine="L_P_1.Text = \"Catalogo de Clientes\"";
__ref._l_p_1 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Catalogo de Clientes"));
RDebugUtils.currentLine=3670110;
 //BA.debugLineNum = 3670110;BA.debugLine="L_P_2.Text = \"Catalogos de Productos\"";
__ref._l_p_2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Catalogos de Productos"));
RDebugUtils.currentLine=3670111;
 //BA.debugLineNum = 3670111;BA.debugLine="L_P_3.Text = \"Catalogos Historicos\"";
__ref._l_p_3 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Catalogos Historicos"));
RDebugUtils.currentLine=3670112;
 //BA.debugLineNum = 3670112;BA.debugLine="S_CC.Text = \"EN PROCESO\"";
__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("EN PROCESO"));
RDebugUtils.currentLine=3670113;
 //BA.debugLineNum = 3670113;BA.debugLine="S_CH.Text = \"EN PROCESO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("EN PROCESO"));
RDebugUtils.currentLine=3670114;
 //BA.debugLineNum = 3670114;BA.debugLine="S_CP.Text = \"EN PROCESO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("EN PROCESO"));
RDebugUtils.currentLine=3670115;
 //BA.debugLineNum = 3670115;BA.debugLine="PB1.Progress = 0";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (0));
RDebugUtils.currentLine=3670116;
 //BA.debugLineNum = 3670116;BA.debugLine="PB2.Progress = 0";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (0));
RDebugUtils.currentLine=3670117;
 //BA.debugLineNum = 3670117;BA.debugLine="EJECUTANDO = 1";
__ref._ejecutando /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3670120;
 //BA.debugLineNum = 3670120;BA.debugLine="TOPE = 0";
__ref._tope /*int*/  = (int) (0);
RDebugUtils.currentLine=3670123;
 //BA.debugLineNum = 3670123;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info3");
RDebugUtils.currentLine=3670124;
 //BA.debugLineNum = 3670124;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PROMO_ESP");
RDebugUtils.currentLine=3670125;
 //BA.debugLineNum = 3670125;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cod_result");
RDebugUtils.currentLine=3670126;
 //BA.debugLineNum = 3670126;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from ABONOSP");
RDebugUtils.currentLine=3670127;
 //BA.debugLineNum = 3670127;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from hist_gest");
RDebugUtils.currentLine=3670128;
 //BA.debugLineNum = 3670128;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
RDebugUtils.currentLine=3670129;
 //BA.debugLineNum = 3670129;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod2");
RDebugUtils.currentLine=3670130;
 //BA.debugLineNum = 3670130;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
RDebugUtils.currentLine=3670131;
 //BA.debugLineNum = 3670131;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from telefonos");
RDebugUtils.currentLine=3670132;
 //BA.debugLineNum = 3670132;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS");
RDebugUtils.currentLine=3670133;
 //BA.debugLineNum = 3670133;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_PROMOS");
RDebugUtils.currentLine=3670134;
 //BA.debugLineNum = 3670134;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_CLIENTE_CANT_PROMOS");
RDebugUtils.currentLine=3670135;
 //BA.debugLineNum = 3670135;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PROMOS_COMP");
RDebugUtils.currentLine=3670136;
 //BA.debugLineNum = 3670136;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_VERIFICACION");
RDebugUtils.currentLine=3670137;
 //BA.debugLineNum = 3670137;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_PROMOS_DESCUENTOS");
RDebugUtils.currentLine=3670138;
 //BA.debugLineNum = 3670138;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM MARCAS_RUTAS");
RDebugUtils.currentLine=3670139;
 //BA.debugLineNum = 3670139;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_STAY_STORE");
RDebugUtils.currentLine=3670140;
 //BA.debugLineNum = 3670140;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_GEOCERCA");
RDebugUtils.currentLine=3670141;
 //BA.debugLineNum = 3670141;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_MARCAS_CUOTAS");
RDebugUtils.currentLine=3670142;
 //BA.debugLineNum = 3670142;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_ENCUESTA_CLIENTE");
RDebugUtils.currentLine=3670143;
 //BA.debugLineNum = 3670143;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM CAT_ENCUESTA_PREGUNTA");
RDebugUtils.currentLine=3670144;
 //BA.debugLineNum = 3670144;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM CAT_CATCLIENTESTODOS");
RDebugUtils.currentLine=3670145;
 //BA.debugLineNum = 3670145;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM hist_ventastodos");
RDebugUtils.currentLine=3670147;
 //BA.debugLineNum = 3670147;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery2(\"select co";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select count(CAT_VA_DESCRIPCION) as HoraIngreso from cat_variables where CAT_VA_DESCRIPCION = ? ",new String[]{"HoraIngreso"})));
RDebugUtils.currentLine=3670148;
 //BA.debugLineNum = 3670148;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3670149;
 //BA.debugLineNum = 3670149;BA.debugLine="DateTime.TimeFormat = \"HHmmss\"";
__c.DateTime.setTimeFormat("HHmmss");
RDebugUtils.currentLine=3670151;
 //BA.debugLineNum = 3670151;BA.debugLine="If c.GetString(\"HoraIngreso\") > 0 Then";
if ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HoraIngreso")))>0) { 
RDebugUtils.currentLine=3670152;
 //BA.debugLineNum = 3670152;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"Update ca";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update cat_variables set CAT_VA_VALOR = ?  WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__c.DateTime.Time(__c.DateTime.getNow()),"HoraIngreso"}));
 }else {
RDebugUtils.currentLine=3670154;
 //BA.debugLineNum = 3670154;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT IN";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_VALOR,CAT_VA_DESCRIPCION)  VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__c.DateTime.Time(__c.DateTime.getNow()),"HoraIngreso"}));
 };
RDebugUtils.currentLine=3670156;
 //BA.debugLineNum = 3670156;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3670157;
 //BA.debugLineNum = 3670157;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=3670158;
 //BA.debugLineNum = 3670158;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuar";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
RDebugUtils.currentLine=3670159;
 //BA.debugLineNum = 3670159;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3670160;
 //BA.debugLineNum = 3670160;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=3670161;
 //BA.debugLineNum = 3670161;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3670163;
 //BA.debugLineNum = 3670163;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=3670164;
 //BA.debugLineNum = 3670164;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=3670165;
 //BA.debugLineNum = 3670165;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=3670166;
 //BA.debugLineNum = 3670166;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=3670167;
 //BA.debugLineNum = 3670167;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670168;
 //BA.debugLineNum = 3670168;BA.debugLine="cmd.Name = \"select_planLealtad_GUNA\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_planLealtad_GUNA";
RDebugUtils.currentLine=3670169;
 //BA.debugLineNum = 3670169;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())};
RDebugUtils.currentLine=3670170;
 //BA.debugLineNum = 3670170;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("planLealtad"));
RDebugUtils.currentLine=3670172;
 //BA.debugLineNum = 3670172;BA.debugLine="Subs.guardaVariable(\"RUTA\", e_ruta.text)";
_subs._guardavariable /*String*/ (ba,"RUTA",__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText());
RDebugUtils.currentLine=3670174;
 //BA.debugLineNum = 3670174;BA.debugLine="Dim P As PhoneId";
_p = new anywheresoftware.b4a.phone.Phone.PhoneId();
RDebugUtils.currentLine=3670175;
 //BA.debugLineNum = 3670175;BA.debugLine="imei = \"\"";
__ref._imei /*String*/  = "";
RDebugUtils.currentLine=3670176;
 //BA.debugLineNum = 3670176;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670177;
 //BA.debugLineNum = 3670177;BA.debugLine="cmd.Name =\"insert_drop_GV2_3\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_drop_GV2_3";
RDebugUtils.currentLine=3670178;
 //BA.debugLineNum = 3670178;BA.debugLine="cmd.Parameters = Array As Object(usuario,e_ruta.";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._usuario /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._sdate /*String*/ ),(Object)(__ref._imei /*String*/ ),(Object)(__ref._stime /*String*/ ),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)("CARGA"),(Object)(__ref._almacen /*String*/ ),(Object)(__c.Application.getVersionName())};
RDebugUtils.currentLine=3670179;
 //BA.debugLineNum = 3670179;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("inst_drop"));
RDebugUtils.currentLine=3670181;
 //BA.debugLineNum = 3670181;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670182;
 //BA.debugLineNum = 3670182;BA.debugLine="cmd.Name = \"select_TipoVenta\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_TipoVenta";
RDebugUtils.currentLine=3670183;
 //BA.debugLineNum = 3670183;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())};
RDebugUtils.currentLine=3670184;
 //BA.debugLineNum = 3670184;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("tipoVenta"));
RDebugUtils.currentLine=3670186;
 //BA.debugLineNum = 3670186;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670187;
 //BA.debugLineNum = 3670187;BA.debugLine="cmd.Name = \"select_cat_GIRO_GUNA\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_GIRO_GUNA";
RDebugUtils.currentLine=3670188;
 //BA.debugLineNum = 3670188;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("giro"));
RDebugUtils.currentLine=3670190;
 //BA.debugLineNum = 3670190;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670191;
 //BA.debugLineNum = 3670191;BA.debugLine="cmd.Name = \"select_coments_GUNA\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_coments_GUNA";
RDebugUtils.currentLine=3670192;
 //BA.debugLineNum = 3670192;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())};
RDebugUtils.currentLine=3670193;
 //BA.debugLineNum = 3670193;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("coments"));
RDebugUtils.currentLine=3670200;
 //BA.debugLineNum = 3670200;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670201;
 //BA.debugLineNum = 3670201;BA.debugLine="cmd.Name = \"traeFechaFotosGuna\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "traeFechaFotosGuna";
RDebugUtils.currentLine=3670202;
 //BA.debugLineNum = 3670202;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())};
RDebugUtils.currentLine=3670203;
 //BA.debugLineNum = 3670203;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("traeFechaFotosGuna"));
RDebugUtils.currentLine=3670205;
 //BA.debugLineNum = 3670205;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670206;
 //BA.debugLineNum = 3670206;BA.debugLine="cmd.Name = \"traecodigosGUNA\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "traecodigosGUNA";
RDebugUtils.currentLine=3670207;
 //BA.debugLineNum = 3670207;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670208;
 //BA.debugLineNum = 3670208;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("traecodigos"));
RDebugUtils.currentLine=3670210;
 //BA.debugLineNum = 3670210;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670211;
 //BA.debugLineNum = 3670211;BA.debugLine="cmd.Name = \"select_objetivosbat_GUNA_VN\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_objetivosbat_GUNA_VN";
RDebugUtils.currentLine=3670212;
 //BA.debugLineNum = 3670212;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())};
RDebugUtils.currentLine=3670213;
 //BA.debugLineNum = 3670213;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("objetivos"));
RDebugUtils.currentLine=3670216;
 //BA.debugLineNum = 3670216;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670217;
 //BA.debugLineNum = 3670217;BA.debugLine="cmd.Name = \"select_cat_gunaprod_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_gunaprod_GV2";
RDebugUtils.currentLine=3670218;
 //BA.debugLineNum = 3670218;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670219;
 //BA.debugLineNum = 3670219;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprod"));
RDebugUtils.currentLine=3670221;
 //BA.debugLineNum = 3670221;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670222;
 //BA.debugLineNum = 3670222;BA.debugLine="cmd.Name = \"Select_promo_descuento_guna\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "Select_promo_descuento_guna";
RDebugUtils.currentLine=3670223;
 //BA.debugLineNum = 3670223;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670224;
 //BA.debugLineNum = 3670224;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("promodesp"));
RDebugUtils.currentLine=3670226;
 //BA.debugLineNum = 3670226;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670227;
 //BA.debugLineNum = 3670227;BA.debugLine="cmd.Name = \"select_cat_gunaprod2_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_gunaprod2_GV2";
RDebugUtils.currentLine=3670228;
 //BA.debugLineNum = 3670228;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())};
RDebugUtils.currentLine=3670229;
 //BA.debugLineNum = 3670229;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprod2"));
RDebugUtils.currentLine=3670231;
 //BA.debugLineNum = 3670231;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670232;
 //BA.debugLineNum = 3670232;BA.debugLine="cmd.Name = \"select_abonosp_GUNA_pre\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_abonosp_GUNA_pre";
RDebugUtils.currentLine=3670233;
 //BA.debugLineNum = 3670233;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670234;
 //BA.debugLineNum = 3670234;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("select_abonosp"));
RDebugUtils.currentLine=3670236;
 //BA.debugLineNum = 3670236;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670237;
 //BA.debugLineNum = 3670237;BA.debugLine="cmd.Name = \"select_HIST_ESPECIAL_GUNA\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_HIST_ESPECIAL_GUNA";
RDebugUtils.currentLine=3670239;
 //BA.debugLineNum = 3670239;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("histespecial"));
RDebugUtils.currentLine=3670246;
 //BA.debugLineNum = 3670246;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670247;
 //BA.debugLineNum = 3670247;BA.debugLine="cmd.Name = \"select_cat_paquetes_GV6\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_paquetes_GV6";
RDebugUtils.currentLine=3670248;
 //BA.debugLineNum = 3670248;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670249;
 //BA.debugLineNum = 3670249;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprodp"));
RDebugUtils.currentLine=3670251;
 //BA.debugLineNum = 3670251;BA.debugLine="If ALMACEN = 32 Then 'Or ALMACEN = 6";
if ((__ref._almacen /*String*/ ).equals(BA.NumberToString(32))) { 
RDebugUtils.currentLine=3670253;
 //BA.debugLineNum = 3670253;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670254;
 //BA.debugLineNum = 3670254;BA.debugLine="cmd.Name = \"select_cat_promoesp_GUNA\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_promoesp_GUNA";
RDebugUtils.currentLine=3670255;
 //BA.debugLineNum = 3670255;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670256;
 //BA.debugLineNum = 3670256;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("promoesp"));
 };
RDebugUtils.currentLine=3670260;
 //BA.debugLineNum = 3670260;BA.debugLine="If ALMACEN = 87 Or ALMACEN = 6 Then";
if ((__ref._almacen /*String*/ ).equals(BA.NumberToString(87)) || (__ref._almacen /*String*/ ).equals(BA.NumberToString(6))) { 
RDebugUtils.currentLine=3670262;
 //BA.debugLineNum = 3670262;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670263;
 //BA.debugLineNum = 3670263;BA.debugLine="cmd.Name = \"select_cat_promoesp_GUNA2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_promoesp_GUNA2";
RDebugUtils.currentLine=3670264;
 //BA.debugLineNum = 3670264;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670265;
 //BA.debugLineNum = 3670265;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("promoesp"));
 };
RDebugUtils.currentLine=3670269;
 //BA.debugLineNum = 3670269;BA.debugLine="If ALMACEN = 88 Or ALMACEN = 6 Then";
if ((__ref._almacen /*String*/ ).equals(BA.NumberToString(88)) || (__ref._almacen /*String*/ ).equals(BA.NumberToString(6))) { 
RDebugUtils.currentLine=3670271;
 //BA.debugLineNum = 3670271;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670272;
 //BA.debugLineNum = 3670272;BA.debugLine="cmd.Name = \"select_cat_promoesp_GUNA3\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_promoesp_GUNA3";
RDebugUtils.currentLine=3670273;
 //BA.debugLineNum = 3670273;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670274;
 //BA.debugLineNum = 3670274;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("promoesp"));
 };
RDebugUtils.currentLine=3670278;
 //BA.debugLineNum = 3670278;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670279;
 //BA.debugLineNum = 3670279;BA.debugLine="cmd.Name = \"select_cat_paquetess_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_paquetess_GV2";
RDebugUtils.currentLine=3670280;
 //BA.debugLineNum = 3670280;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670281;
 //BA.debugLineNum = 3670281;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprodp"));
RDebugUtils.currentLine=3670283;
 //BA.debugLineNum = 3670283;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670284;
 //BA.debugLineNum = 3670284;BA.debugLine="cmd.Name = \"select_cat_detallepa_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_detallepa_GV2";
RDebugUtils.currentLine=3670285;
 //BA.debugLineNum = 3670285;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670286;
 //BA.debugLineNum = 3670286;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("detallepaq"));
RDebugUtils.currentLine=3670288;
 //BA.debugLineNum = 3670288;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670289;
 //BA.debugLineNum = 3670289;BA.debugLine="cmd.Name = \"select_cat_clientes2_guna_GV2\" '####";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_clientes2_guna_GV2";
RDebugUtils.currentLine=3670290;
 //BA.debugLineNum = 3670290;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670291;
 //BA.debugLineNum = 3670291;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("kmt_datos"));
RDebugUtils.currentLine=3670293;
 //BA.debugLineNum = 3670293;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670294;
 //BA.debugLineNum = 3670294;BA.debugLine="cmd.Name = \"select_preventa_futura\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_preventa_futura";
RDebugUtils.currentLine=3670295;
 //BA.debugLineNum = 3670295;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670296;
 //BA.debugLineNum = 3670296;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("KMT_VENTAFUTURA"));
RDebugUtils.currentLine=3670298;
 //BA.debugLineNum = 3670298;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670299;
 //BA.debugLineNum = 3670299;BA.debugLine="cmd.Name = \"select_hist_datos_GV2_3\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_hist_datos_GV2_3";
RDebugUtils.currentLine=3670300;
 //BA.debugLineNum = 3670300;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670301;
 //BA.debugLineNum = 3670301;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_datos"));
RDebugUtils.currentLine=3670303;
 //BA.debugLineNum = 3670303;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670304;
 //BA.debugLineNum = 3670304;BA.debugLine="cmd.Name = \"select_hist_promos_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_hist_promos_GV2";
RDebugUtils.currentLine=3670305;
 //BA.debugLineNum = 3670305;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670306;
 //BA.debugLineNum = 3670306;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_promos"));
RDebugUtils.currentLine=3670308;
 //BA.debugLineNum = 3670308;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670309;
 //BA.debugLineNum = 3670309;BA.debugLine="cmd.Name = \"select_hist_cliente_promos_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_hist_cliente_promos_GV2";
RDebugUtils.currentLine=3670310;
 //BA.debugLineNum = 3670310;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670311;
 //BA.debugLineNum = 3670311;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_cliente_promos"));
RDebugUtils.currentLine=3670313;
 //BA.debugLineNum = 3670313;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670314;
 //BA.debugLineNum = 3670314;BA.debugLine="cmd.Name = \"select_HIST_MARCAS_CUOTAS\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_HIST_MARCAS_CUOTAS";
RDebugUtils.currentLine=3670315;
 //BA.debugLineNum = 3670315;BA.debugLine="cmd.Parameters = Array As Object( ALMACEN, e_rut";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())};
RDebugUtils.currentLine=3670316;
 //BA.debugLineNum = 3670316;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("HIST_MARCAS_CUOTAS"));
RDebugUtils.currentLine=3670318;
 //BA.debugLineNum = 3670318;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670319;
 //BA.debugLineNum = 3670319;BA.debugLine="cmd.Name = \"select_cat_encuesta_p_GUNA\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_encuesta_p_GUNA";
RDebugUtils.currentLine=3670320;
 //BA.debugLineNum = 3670320;BA.debugLine="cmd.Parameters = Array As Object( ALMACEN,e_ruta";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())};
RDebugUtils.currentLine=3670321;
 //BA.debugLineNum = 3670321;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("carga_encuesta"));
RDebugUtils.currentLine=3670323;
 //BA.debugLineNum = 3670323;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670324;
 //BA.debugLineNum = 3670324;BA.debugLine="cmd.Name = \"select_cat_clientes_guna_todos\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_clientes_guna_todos";
RDebugUtils.currentLine=3670325;
 //BA.debugLineNum = 3670325;BA.debugLine="cmd.Parameters = Array As Object( e_ruta.text,AL";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670326;
 //BA.debugLineNum = 3670326;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("kmt_CAT_CATCLIENTESTODOS"));
RDebugUtils.currentLine=3670328;
 //BA.debugLineNum = 3670328;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670329;
 //BA.debugLineNum = 3670329;BA.debugLine="cmd.Name = \"select_hist_ventastodos_guna\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_hist_ventastodos_guna";
RDebugUtils.currentLine=3670330;
 //BA.debugLineNum = 3670330;BA.debugLine="cmd.Parameters = Array As Object( e_ruta.text,AL";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670331;
 //BA.debugLineNum = 3670331;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_ventastodos"));
RDebugUtils.currentLine=3670338;
 //BA.debugLineNum = 3670338;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670339;
 //BA.debugLineNum = 3670339;BA.debugLine="cmd.Name = \"SELECT_HIST_PRODPROM_GUNA\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "SELECT_HIST_PRODPROM_GUNA";
RDebugUtils.currentLine=3670340;
 //BA.debugLineNum = 3670340;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())};
RDebugUtils.currentLine=3670341;
 //BA.debugLineNum = 3670341;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("HIST_PROM"));
RDebugUtils.currentLine=3670345;
 //BA.debugLineNum = 3670345;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670346;
 //BA.debugLineNum = 3670346;BA.debugLine="cmd.Name = \"selectPromo2265JulAgo_Guna\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "selectPromo2265JulAgo_Guna";
RDebugUtils.currentLine=3670347;
 //BA.debugLineNum = 3670347;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670348;
 //BA.debugLineNum = 3670348;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_pro2265"));
RDebugUtils.currentLine=3670355;
 //BA.debugLineNum = 3670355;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670356;
 //BA.debugLineNum = 3670356;BA.debugLine="cmd.Name = \"selectPromo3054Jul-Sep_Guna\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "selectPromo3054Jul-Sep_Guna";
RDebugUtils.currentLine=3670357;
 //BA.debugLineNum = 3670357;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670358;
 //BA.debugLineNum = 3670358;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_pro3054"));
RDebugUtils.currentLine=3670362;
 //BA.debugLineNum = 3670362;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670363;
 //BA.debugLineNum = 3670363;BA.debugLine="cmd.Name = \"selectPromo3055Jul-Sep_Guna\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "selectPromo3055Jul-Sep_Guna";
RDebugUtils.currentLine=3670364;
 //BA.debugLineNum = 3670364;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670365;
 //BA.debugLineNum = 3670365;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_pro3055"));
RDebugUtils.currentLine=3670368;
 //BA.debugLineNum = 3670368;BA.debugLine="If E_RUTA2.text <> \"\" Then";
if ((__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=3670369;
 //BA.debugLineNum = 3670369;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT IN";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO RUTA_SUPLENCIA(RS_RUTA) VALUES(?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()}));
RDebugUtils.currentLine=3670370;
 //BA.debugLineNum = 3670370;BA.debugLine="E_RUTA2.Visible = False";
__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3670371;
 //BA.debugLineNum = 3670371;BA.debugLine="p_ruta2.Visible = False";
__ref._p_ruta2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3670372;
 //BA.debugLineNum = 3670372;BA.debugLine="p_somvra_2.Visible = False";
__ref._p_somvra_2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3670374;
 //BA.debugLineNum = 3670374;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670375;
 //BA.debugLineNum = 3670375;BA.debugLine="cmd.Name = \"select_cat_clientes2_guna_GV2\" '###";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_clientes2_guna_GV2";
RDebugUtils.currentLine=3670376;
 //BA.debugLineNum = 3670376;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text,";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670377;
 //BA.debugLineNum = 3670377;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("kmt_datos2"));
RDebugUtils.currentLine=3670379;
 //BA.debugLineNum = 3670379;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670380;
 //BA.debugLineNum = 3670380;BA.debugLine="cmd.Name = \"select_hist_datos_GV2_3\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_hist_datos_GV2_3";
RDebugUtils.currentLine=3670381;
 //BA.debugLineNum = 3670381;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text,";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670382;
 //BA.debugLineNum = 3670382;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_datos"));
RDebugUtils.currentLine=3670384;
 //BA.debugLineNum = 3670384;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670385;
 //BA.debugLineNum = 3670385;BA.debugLine="cmd.Name = \"select_hist_promos_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_hist_promos_GV2";
RDebugUtils.currentLine=3670386;
 //BA.debugLineNum = 3670386;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text,";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670387;
 //BA.debugLineNum = 3670387;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_promos"));
RDebugUtils.currentLine=3670389;
 //BA.debugLineNum = 3670389;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670390;
 //BA.debugLineNum = 3670390;BA.debugLine="cmd.Name = \"select_hist_cliente_promos_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_hist_cliente_promos_GV2";
RDebugUtils.currentLine=3670391;
 //BA.debugLineNum = 3670391;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text,";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670392;
 //BA.debugLineNum = 3670392;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_cliente_promos"));
RDebugUtils.currentLine=3670394;
 //BA.debugLineNum = 3670394;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670395;
 //BA.debugLineNum = 3670395;BA.debugLine="cmd.Name = \"SELECT_HIST_PRODPROM_GUNA\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "SELECT_HIST_PRODPROM_GUNA";
RDebugUtils.currentLine=3670396;
 //BA.debugLineNum = 3670396;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,E_RUTA";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())};
RDebugUtils.currentLine=3670397;
 //BA.debugLineNum = 3670397;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("HIST_PROM"));
 };
RDebugUtils.currentLine=3670400;
 //BA.debugLineNum = 3670400;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670401;
 //BA.debugLineNum = 3670401;BA.debugLine="cmd.Name = \"select_promo_comp_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_promo_comp_GV2";
RDebugUtils.currentLine=3670402;
 //BA.debugLineNum = 3670402;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670403;
 //BA.debugLineNum = 3670403;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_comp_promos"));
RDebugUtils.currentLine=3670405;
 //BA.debugLineNum = 3670405;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670406;
 //BA.debugLineNum = 3670406;BA.debugLine="cmd.Name = \"select_coordenadas_GUNA\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_coordenadas_GUNA";
RDebugUtils.currentLine=3670407;
 //BA.debugLineNum = 3670407;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670408;
 //BA.debugLineNum = 3670408;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("coordenadas"));
RDebugUtils.currentLine=3670410;
 //BA.debugLineNum = 3670410;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670411;
 //BA.debugLineNum = 3670411;BA.debugLine="cmd.Name = \"select_PASS_GUNA\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_PASS_GUNA";
RDebugUtils.currentLine=3670412;
 //BA.debugLineNum = 3670412;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670413;
 //BA.debugLineNum = 3670413;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("password"));
RDebugUtils.currentLine=3670420;
 //BA.debugLineNum = 3670420;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670421;
 //BA.debugLineNum = 3670421;BA.debugLine="cmd.Name = \"select_fecha\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_fecha";
RDebugUtils.currentLine=3670422;
 //BA.debugLineNum = 3670422;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670423;
 //BA.debugLineNum = 3670423;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("fecha"));
RDebugUtils.currentLine=3670430;
 //BA.debugLineNum = 3670430;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670431;
 //BA.debugLineNum = 3670431;BA.debugLine="cmd.Name = \"select_marcas_rutas\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_marcas_rutas";
RDebugUtils.currentLine=3670432;
 //BA.debugLineNum = 3670432;BA.debugLine="cmd.Parameters = Array As Object( ALMACEN, e_rut";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())};
RDebugUtils.currentLine=3670433;
 //BA.debugLineNum = 3670433;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("marcas_rutas"));
RDebugUtils.currentLine=3670435;
 //BA.debugLineNum = 3670435;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670436;
 //BA.debugLineNum = 3670436;BA.debugLine="cmd.Name = \"select_CUEST2_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_CUEST2_GV2";
RDebugUtils.currentLine=3670437;
 //BA.debugLineNum = 3670437;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=3670438;
 //BA.debugLineNum = 3670438;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("CUESTIONARIO"));
RDebugUtils.currentLine=3670451;
 //BA.debugLineNum = 3670451;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3670452;
 //BA.debugLineNum = 3670452;BA.debugLine="cmd.Name = \"select_comis_cedex\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_comis_cedex";
RDebugUtils.currentLine=3670453;
 //BA.debugLineNum = 3670453;BA.debugLine="cmd.Parameters = Array As Object( ALMACEN,e_ruta";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())};
RDebugUtils.currentLine=3670454;
 //BA.debugLineNum = 3670454;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("COMISIONES"));
RDebugUtils.currentLine=3670456;
 //BA.debugLineNum = 3670456;BA.debugLine="cargar.Visible = False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3670457;
 //BA.debugLineNum = 3670457;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3670458;
 //BA.debugLineNum = 3670458;BA.debugLine="inv.Visible = False";
__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3670459;
 //BA.debugLineNum = 3670459;BA.debugLine="E_RUTA2.Visible = False";
__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3670460;
 //BA.debugLineNum = 3670460;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessageS";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence("Se Actualizaran los datos, Este proceso podria tardar hasta un minuto, gracias"),__c.True);};
 }else {
RDebugUtils.currentLine=3670463;
 //BA.debugLineNum = 3670463;BA.debugLine="Log(\"XXXX\")";
__c.LogImpl("03670463","XXXX",0);
RDebugUtils.currentLine=3670464;
 //BA.debugLineNum = 3670464;BA.debugLine="MsgboxAsync(\"Para poder cargar día no puedes ten";
__c.MsgboxAsync(BA.ObjectToCharSequence("Para poder cargar día no puedes tener venta del día anterior. Por favor haz FIN DIA e intenta nuevamente."),BA.ObjectToCharSequence("Atención"),ba);
 };
RDebugUtils.currentLine=3670466;
 //BA.debugLineNum = 3670466;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
RDebugUtils.currentLine=3276800;
 //BA.debugLineNum = 3276800;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=3276801;
 //BA.debugLineNum = 3276801;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=3276802;
 //BA.debugLineNum = 3276802;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=3276803;
 //BA.debugLineNum = 3276803;BA.debugLine="Dim conectado As String";
_conectado = "";
RDebugUtils.currentLine=3276804;
 //BA.debugLineNum = 3276804;BA.debugLine="Dim t1, t2 As Timer";
_t1 = new anywheresoftware.b4a.objects.Timer();
_t2 = new anywheresoftware.b4a.objects.Timer();
RDebugUtils.currentLine=3276805;
 //BA.debugLineNum = 3276805;BA.debugLine="Dim sb As StringBuilder";
_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper();
RDebugUtils.currentLine=3276806;
 //BA.debugLineNum = 3276806;BA.debugLine="Dim PHONE As Phone";
_phone = new anywheresoftware.b4a.phone.Phone();
RDebugUtils.currentLine=3276807;
 //BA.debugLineNum = 3276807;BA.debugLine="Dim g As GPS";
_g = new anywheresoftware.b4a.gps.GPS();
RDebugUtils.currentLine=3276808;
 //BA.debugLineNum = 3276808;BA.debugLine="Dim trabajar As Button";
_trabajar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3276810;
 //BA.debugLineNum = 3276810;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=3276811;
 //BA.debugLineNum = 3276811;BA.debugLine="Dim d As Cursor";
_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=3276812;
 //BA.debugLineNum = 3276812;BA.debugLine="Dim b As Cursor";
_b = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=3276813;
 //BA.debugLineNum = 3276813;BA.debugLine="Dim e As Cursor";
_e = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=3276814;
 //BA.debugLineNum = 3276814;BA.debugLine="Dim f As Cursor";
_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=3276815;
 //BA.debugLineNum = 3276815;BA.debugLine="Dim ro As Cursor";
_ro = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=3276816;
 //BA.debugLineNum = 3276816;BA.debugLine="Dim D2 As Cursor";
_d2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=3276817;
 //BA.debugLineNum = 3276817;BA.debugLine="Dim lv As ListView";
_lv = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=3276818;
 //BA.debugLineNum = 3276818;BA.debugLine="Dim cargar As Button";
_cargar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3276819;
 //BA.debugLineNum = 3276819;BA.debugLine="Dim pendiente As Button";
_pendiente = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3276820;
 //BA.debugLineNum = 3276820;BA.debugLine="Dim foto1() As Byte";
_foto1 = new byte[(int) (0)];
;
RDebugUtils.currentLine=3276821;
 //BA.debugLineNum = 3276821;BA.debugLine="Dim usuario As String";
_usuario = "";
RDebugUtils.currentLine=3276822;
 //BA.debugLineNum = 3276822;BA.debugLine="Dim connecta As Button";
_connecta = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3276823;
 //BA.debugLineNum = 3276823;BA.debugLine="Dim conn As String";
_conn = "";
RDebugUtils.currentLine=3276824;
 //BA.debugLineNum = 3276824;BA.debugLine="Dim Subir As Button";
_subir = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3276825;
 //BA.debugLineNum = 3276825;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3276826;
 //BA.debugLineNum = 3276826;BA.debugLine="Dim TOPE As Int";
_tope = 0;
RDebugUtils.currentLine=3276827;
 //BA.debugLineNum = 3276827;BA.debugLine="Dim COUNT_CLIE As Int";
_count_clie = 0;
RDebugUtils.currentLine=3276828;
 //BA.debugLineNum = 3276828;BA.debugLine="Dim fecha As String";
_fecha = "";
RDebugUtils.currentLine=3276829;
 //BA.debugLineNum = 3276829;BA.debugLine="Dim drop As Double";
_drop = 0;
RDebugUtils.currentLine=3276830;
 //BA.debugLineNum = 3276830;BA.debugLine="Dim efectiva As Double";
_efectiva = 0;
RDebugUtils.currentLine=3276832;
 //BA.debugLineNum = 3276832;BA.debugLine="Dim L_MONTOD As Label";
_l_montod = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276833;
 //BA.debugLineNum = 3276833;BA.debugLine="Dim l_cuantosc As Label";
_l_cuantosc = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276834;
 //BA.debugLineNum = 3276834;BA.debugLine="Dim l_drop As Label";
_l_drop = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276835;
 //BA.debugLineNum = 3276835;BA.debugLine="Dim l_efectiva As Label";
_l_efectiva = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276836;
 //BA.debugLineNum = 3276836;BA.debugLine="Dim l_ctast As Label";
_l_ctast = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276837;
 //BA.debugLineNum = 3276837;BA.debugLine="Dim BUSCA As Button";
_busca = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3276838;
 //BA.debugLineNum = 3276838;BA.debugLine="Dim Cuantos As String";
_cuantos = "";
RDebugUtils.currentLine=3276839;
 //BA.debugLineNum = 3276839;BA.debugLine="Dim l_cuantosn As Label";
_l_cuantosn = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276840;
 //BA.debugLineNum = 3276840;BA.debugLine="Dim e_ruta As EditText";
_e_ruta = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=3276841;
 //BA.debugLineNum = 3276841;BA.debugLine="Dim Rut_Rep As String";
_rut_rep = "";
RDebugUtils.currentLine=3276842;
 //BA.debugLineNum = 3276842;BA.debugLine="Dim l_porvisitar As Label";
_l_porvisitar = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276843;
 //BA.debugLineNum = 3276843;BA.debugLine="Dim b_mapa As Button";
_b_mapa = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3276844;
 //BA.debugLineNum = 3276844;BA.debugLine="Dim l_ruta As Label";
_l_ruta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276845;
 //BA.debugLineNum = 3276845;BA.debugLine="Dim ALMACEN As String";
_almacen = "";
RDebugUtils.currentLine=3276846;
 //BA.debugLineNum = 3276846;BA.debugLine="Private img2 As ImageView";
_img2 = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=3276847;
 //BA.debugLineNum = 3276847;BA.debugLine="Dim Listo1 As String";
_listo1 = "";
RDebugUtils.currentLine=3276848;
 //BA.debugLineNum = 3276848;BA.debugLine="Dim Listo2 As String";
_listo2 = "";
RDebugUtils.currentLine=3276849;
 //BA.debugLineNum = 3276849;BA.debugLine="Dim Listo3 As String";
_listo3 = "";
RDebugUtils.currentLine=3276850;
 //BA.debugLineNum = 3276850;BA.debugLine="Dim Listo4 As String";
_listo4 = "";
RDebugUtils.currentLine=3276851;
 //BA.debugLineNum = 3276851;BA.debugLine="Dim Listo5 As String";
_listo5 = "";
RDebugUtils.currentLine=3276852;
 //BA.debugLineNum = 3276852;BA.debugLine="Dim EJECUTANDO As String";
_ejecutando = "";
RDebugUtils.currentLine=3276853;
 //BA.debugLineNum = 3276853;BA.debugLine="Dim RES As String";
_res = "";
RDebugUtils.currentLine=3276854;
 //BA.debugLineNum = 3276854;BA.debugLine="Dim inve As String";
_inve = "";
RDebugUtils.currentLine=3276855;
 //BA.debugLineNum = 3276855;BA.debugLine="Dim cuantos_pedidosc As String";
_cuantos_pedidosc = "";
RDebugUtils.currentLine=3276856;
 //BA.debugLineNum = 3276856;BA.debugLine="Dim cuantos_pedido As String";
_cuantos_pedido = "";
RDebugUtils.currentLine=3276857;
 //BA.debugLineNum = 3276857;BA.debugLine="Dim cuantos_noventa As String";
_cuantos_noventa = "";
RDebugUtils.currentLine=3276858;
 //BA.debugLineNum = 3276858;BA.debugLine="Dim datos_iguales As String";
_datos_iguales = "";
RDebugUtils.currentLine=3276859;
 //BA.debugLineNum = 3276859;BA.debugLine="Dim p As PhoneId";
_p = new anywheresoftware.b4a.phone.Phone.PhoneId();
RDebugUtils.currentLine=3276860;
 //BA.debugLineNum = 3276860;BA.debugLine="Dim imei As String";
_imei = "";
RDebugUtils.currentLine=3276864;
 //BA.debugLineNum = 3276864;BA.debugLine="Private inv As Button";
_inv = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3276865;
 //BA.debugLineNum = 3276865;BA.debugLine="Private P1 As Panel";
_p1 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=3276866;
 //BA.debugLineNum = 3276866;BA.debugLine="Private CLAVE As EditText";
_clave = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=3276867;
 //BA.debugLineNum = 3276867;BA.debugLine="Private B_OK_PAS As Button";
_b_ok_pas = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3276868;
 //BA.debugLineNum = 3276868;BA.debugLine="Dim PASO As String";
_paso = "";
RDebugUtils.currentLine=3276869;
 //BA.debugLineNum = 3276869;BA.debugLine="Private USUARIO1 As EditText";
_usuario1 = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=3276870;
 //BA.debugLineNum = 3276870;BA.debugLine="Dim connecta1 As Double";
_connecta1 = 0;
RDebugUtils.currentLine=3276871;
 //BA.debugLineNum = 3276871;BA.debugLine="Dim armafolio As String";
_armafolio = "";
RDebugUtils.currentLine=3276872;
 //BA.debugLineNum = 3276872;BA.debugLine="Private NUEVO As Button";
_nuevo = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3276873;
 //BA.debugLineNum = 3276873;BA.debugLine="Private S_CC As Label";
_s_cc = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276874;
 //BA.debugLineNum = 3276874;BA.debugLine="Private S_CP As Label";
_s_cp = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276875;
 //BA.debugLineNum = 3276875;BA.debugLine="Private S_CH As Label";
_s_ch = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276876;
 //BA.debugLineNum = 3276876;BA.debugLine="Private PB2 As ProgressBar";
_pb2 = new anywheresoftware.b4a.objects.ProgressBarWrapper();
RDebugUtils.currentLine=3276877;
 //BA.debugLineNum = 3276877;BA.debugLine="Private PB1 As ProgressBar";
_pb1 = new anywheresoftware.b4a.objects.ProgressBarWrapper();
RDebugUtils.currentLine=3276878;
 //BA.debugLineNum = 3276878;BA.debugLine="Private L_P_1 As Label";
_l_p_1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276879;
 //BA.debugLineNum = 3276879;BA.debugLine="Private L_P_2 As Label";
_l_p_2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276880;
 //BA.debugLineNum = 3276880;BA.debugLine="Private L_P_3 As Label";
_l_p_3 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276881;
 //BA.debugLineNum = 3276881;BA.debugLine="Private CARGA As String";
_carga = "";
RDebugUtils.currentLine=3276882;
 //BA.debugLineNum = 3276882;BA.debugLine="Private PORCENTAJE As String";
_porcentaje = "";
RDebugUtils.currentLine=3276883;
 //BA.debugLineNum = 3276883;BA.debugLine="Private P_RESUMEN As Panel";
_p_resumen = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=3276884;
 //BA.debugLineNum = 3276884;BA.debugLine="Private B_OK_RES As Button";
_b_ok_res = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3276885;
 //BA.debugLineNum = 3276885;BA.debugLine="Private Resumen As Button";
_resumen = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3276886;
 //BA.debugLineNum = 3276886;BA.debugLine="Private L_CUANTOST As Label";
_l_cuantost = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276887;
 //BA.debugLineNum = 3276887;BA.debugLine="Private img3 As ImageView";
_img3 = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=3276889;
 //BA.debugLineNum = 3276889;BA.debugLine="Private ImageView3 As ImageView";
_imageview3 = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=3276890;
 //BA.debugLineNum = 3276890;BA.debugLine="Private ImageView5 As ImageView";
_imageview5 = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=3276891;
 //BA.debugLineNum = 3276891;BA.debugLine="Private L_TICKPROM As Label";
_l_tickprom = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276892;
 //BA.debugLineNum = 3276892;BA.debugLine="Private L_MARCAS As ListView";
_l_marcas = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=3276893;
 //BA.debugLineNum = 3276893;BA.debugLine="Private p_ruta2 As Panel";
_p_ruta2 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=3276894;
 //BA.debugLineNum = 3276894;BA.debugLine="Private E_RUTA2 As EditText";
_e_ruta2 = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=3276895;
 //BA.debugLineNum = 3276895;BA.debugLine="Private resdia As ImageView";
_resdia = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=3276896;
 //BA.debugLineNum = 3276896;BA.debugLine="Private hacer_ped As ImageView";
_hacer_ped = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=3276897;
 //BA.debugLineNum = 3276897;BA.debugLine="Private nvo_cliente As ImageView";
_nvo_cliente = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=3276898;
 //BA.debugLineNum = 3276898;BA.debugLine="Private tickets_dia As ImageView";
_tickets_dia = new anywheresoftware.b4a.objects.ImageViewWrapper();
RDebugUtils.currentLine=3276900;
 //BA.debugLineNum = 3276900;BA.debugLine="Private l_monto_ks As Label";
_l_monto_ks = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276901;
 //BA.debugLineNum = 3276901;BA.debugLine="Private l_monto_kp As Label";
_l_monto_kp = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276902;
 //BA.debugLineNum = 3276902;BA.debugLine="Private l_monto_k As Label";
_l_monto_k = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276904;
 //BA.debugLineNum = 3276904;BA.debugLine="Private l_monto_c1 As Label";
_l_monto_c1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276905;
 //BA.debugLineNum = 3276905;BA.debugLine="Private l_monto_c2 As Label";
_l_monto_c2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276906;
 //BA.debugLineNum = 3276906;BA.debugLine="Private l_monto_c3 As Label";
_l_monto_c3 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276908;
 //BA.debugLineNum = 3276908;BA.debugLine="Private l_encuesta As Label";
_l_encuesta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276911;
 //BA.debugLineNum = 3276911;BA.debugLine="Private bpv1 As BatteryProgressView";
_bpv1 = new batteryprogressviewwrapper.batteryprogressviewWrapper();
RDebugUtils.currentLine=3276912;
 //BA.debugLineNum = 3276912;BA.debugLine="Dim batterystatus(11) As Int";
_batterystatus = new int[(int) (11)];
;
RDebugUtils.currentLine=3276913;
 //BA.debugLineNum = 3276913;BA.debugLine="Private bu As BatteryUtilities";
_bu = new gunav2.keymon.com.mx.batteryutilities();
RDebugUtils.currentLine=3276916;
 //BA.debugLineNum = 3276916;BA.debugLine="Private Panel4 As Panel";
_panel4 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=3276917;
 //BA.debugLineNum = 3276917;BA.debugLine="Private L_NES As Label";
_l_nes = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276918;
 //BA.debugLineNum = 3276918;BA.debugLine="Private L_REAL As Label";
_l_real = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276919;
 //BA.debugLineNum = 3276919;BA.debugLine="Private L_ALCANCE As Label";
_l_alcance = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276920;
 //BA.debugLineNum = 3276920;BA.debugLine="Private L_VPLAN As Label";
_l_vplan = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276921;
 //BA.debugLineNum = 3276921;BA.debugLine="Private L_VREAL As Label";
_l_vreal = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276922;
 //BA.debugLineNum = 3276922;BA.debugLine="Private L_EFEC_VIS As Label";
_l_efec_vis = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276923;
 //BA.debugLineNum = 3276923;BA.debugLine="Private L_VISITCC As Label";
_l_visitcc = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276924;
 //BA.debugLineNum = 3276924;BA.debugLine="Private L_EFEC_PV As Label";
_l_efec_pv = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276925;
 //BA.debugLineNum = 3276925;BA.debugLine="Private L_EFEC_PURA As Label";
_l_efec_pura = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276926;
 //BA.debugLineNum = 3276926;BA.debugLine="Private L_CTE_PROMO As Label";
_l_cte_promo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276927;
 //BA.debugLineNum = 3276927;BA.debugLine="Private L_REDEN_PROMO As Label";
_l_reden_promo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276928;
 //BA.debugLineNum = 3276928;BA.debugLine="Private L_LIN_TICK As Label";
_l_lin_tick = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276929;
 //BA.debugLineNum = 3276929;BA.debugLine="Private SCROLL_RESDIA As ScrollView";
_scroll_resdia = new anywheresoftware.b4a.objects.ScrollViewWrapper();
RDebugUtils.currentLine=3276930;
 //BA.debugLineNum = 3276930;BA.debugLine="Private L_ACUMULADO As Label";
_l_acumulado = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276931;
 //BA.debugLineNum = 3276931;BA.debugLine="Private L_UNILEVER As Label";
_l_unilever = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276932;
 //BA.debugLineNum = 3276932;BA.debugLine="Private L_RECHAZOP As Label";
_l_rechazop = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276933;
 //BA.debugLineNum = 3276933;BA.debugLine="Private L_RECHAZOM As Label";
_l_rechazom = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276934;
 //BA.debugLineNum = 3276934;BA.debugLine="Private L_VTA_3MES As Label";
_l_vta_3mes = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276935;
 //BA.debugLineNum = 3276935;BA.debugLine="Private L_VTA_2MES As Label";
_l_vta_2mes = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276936;
 //BA.debugLineNum = 3276936;BA.debugLine="Private L_VTA_1MES As Label";
_l_vta_1mes = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276937;
 //BA.debugLineNum = 3276937;BA.debugLine="Private L_MES_PY As Label";
_l_mes_py = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276938;
 //BA.debugLineNum = 3276938;BA.debugLine="Private L_FREC_DE_CREAL As Label";
_l_frec_de_creal = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276939;
 //BA.debugLineNum = 3276939;BA.debugLine="Private L_FREC_DE_COBJ As Label";
_l_frec_de_cobj = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276940;
 //BA.debugLineNum = 3276940;BA.debugLine="Private L_COB_VISIT As Label";
_l_cob_visit = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276941;
 //BA.debugLineNum = 3276941;BA.debugLine="Private L_VISIT_REAL As Label";
_l_visit_real = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276942;
 //BA.debugLineNum = 3276942;BA.debugLine="Private L_VISIT_PLAN As Label";
_l_visit_plan = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276943;
 //BA.debugLineNum = 3276943;BA.debugLine="Private L_ECO As Label";
_l_eco = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276944;
 //BA.debugLineNum = 3276944;BA.debugLine="Private L_COB_CCC As Label";
_l_cob_ccc = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276945;
 //BA.debugLineNum = 3276945;BA.debugLine="Private L_CTES As Label";
_l_ctes = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276946;
 //BA.debugLineNum = 3276946;BA.debugLine="Private L_VPO_VTA As Label";
_l_vpo_vta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276947;
 //BA.debugLineNum = 3276947;BA.debugLine="Private L_VPO_OBJ As Label";
_l_vpo_obj = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276948;
 //BA.debugLineNum = 3276948;BA.debugLine="Private L_DS_VTA As Label";
_l_ds_vta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276949;
 //BA.debugLineNum = 3276949;BA.debugLine="Private L_DS_OBJ As Label";
_l_ds_obj = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276950;
 //BA.debugLineNum = 3276950;BA.debugLine="Private L_DRA_VTA As Label";
_l_dra_vta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276951;
 //BA.debugLineNum = 3276951;BA.debugLine="Private L_DRA_OBJ As Label";
_l_dra_obj = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276952;
 //BA.debugLineNum = 3276952;BA.debugLine="Private L_ALCANCEM As Label";
_l_alcancem = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276953;
 //BA.debugLineNum = 3276953;BA.debugLine="Private L_TENDENCIA As Label";
_l_tendencia = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276954;
 //BA.debugLineNum = 3276954;BA.debugLine="Private L_VTA_ACUM As Label";
_l_vta_acum = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276955;
 //BA.debugLineNum = 3276955;BA.debugLine="Private L_OBJ_MES As Label";
_l_obj_mes = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276956;
 //BA.debugLineNum = 3276956;BA.debugLine="Private L_DS_OBJD As Label";
_l_ds_objd = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276957;
 //BA.debugLineNum = 3276957;BA.debugLine="Private L_DS_VTAD As Label";
_l_ds_vtad = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276958;
 //BA.debugLineNum = 3276958;BA.debugLine="Private LPT As String";
_lpt = "";
RDebugUtils.currentLine=3276959;
 //BA.debugLineNum = 3276959;BA.debugLine="Private STEYIN As String";
_steyin = "";
RDebugUtils.currentLine=3276960;
 //BA.debugLineNum = 3276960;BA.debugLine="Private STEYOUT As String";
_steyout = "";
RDebugUtils.currentLine=3276962;
 //BA.debugLineNum = 3276962;BA.debugLine="Private L_PRIO As Label";
_l_prio = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276963;
 //BA.debugLineNum = 3276963;BA.debugLine="Private L_SECUND As Label";
_l_secund = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276964;
 //BA.debugLineNum = 3276964;BA.debugLine="Private L_COMP As Label";
_l_comp = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276967;
 //BA.debugLineNum = 3276967;BA.debugLine="Private stay_hh As String";
_stay_hh = "";
RDebugUtils.currentLine=3276968;
 //BA.debugLineNum = 3276968;BA.debugLine="Private stay_mi As String";
_stay_mi = "";
RDebugUtils.currentLine=3276969;
 //BA.debugLineNum = 3276969;BA.debugLine="Private stay_ss As String";
_stay_ss = "";
RDebugUtils.currentLine=3276971;
 //BA.debugLineNum = 3276971;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=3276972;
 //BA.debugLineNum = 3276972;BA.debugLine="Dim HORAINGRESO As String";
_horaingreso = "";
RDebugUtils.currentLine=3276974;
 //BA.debugLineNum = 3276974;BA.debugLine="Private L_QUALA As Label";
_l_quala = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276975;
 //BA.debugLineNum = 3276975;BA.debugLine="Private L_FERRERO As Label";
_l_ferrero = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276976;
 //BA.debugLineNum = 3276976;BA.debugLine="Private L_SANMARCOS As Label";
_l_sanmarcos = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276977;
 //BA.debugLineNum = 3276977;BA.debugLine="Private L_CAMPARI As Label";
_l_campari = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276978;
 //BA.debugLineNum = 3276978;BA.debugLine="Private L_IBERIA As Label";
_l_iberia = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276979;
 //BA.debugLineNum = 3276979;BA.debugLine="Private L_BEPENSA As Label";
_l_bepensa = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276980;
 //BA.debugLineNum = 3276980;BA.debugLine="Private L_SCJ As Label";
_l_scj = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276981;
 //BA.debugLineNum = 3276981;BA.debugLine="Private L_MEDJ As Label";
_l_medj = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276982;
 //BA.debugLineNum = 3276982;BA.debugLine="Private L_DURACELL As Label";
_l_duracell = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276983;
 //BA.debugLineNum = 3276983;BA.debugLine="Private L_GUNA As Label";
_l_guna = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276984;
 //BA.debugLineNum = 3276984;BA.debugLine="Private L_KIMB As Label";
_l_kimb = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276985;
 //BA.debugLineNum = 3276985;BA.debugLine="Private L_TRESM As Label";
_l_tresm = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276986;
 //BA.debugLineNum = 3276986;BA.debugLine="Private L_REDB As Label";
_l_redb = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276987;
 //BA.debugLineNum = 3276987;BA.debugLine="Private Btn_Ubicar As Button";
_btn_ubicar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3276988;
 //BA.debugLineNum = 3276988;BA.debugLine="Private B_COMM As Button";
_b_comm = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3276989;
 //BA.debugLineNum = 3276989;BA.debugLine="Private L_TOTAL_MM As Label";
_l_total_mm = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276990;
 //BA.debugLineNum = 3276990;BA.debugLine="Private L_TOTAL_VIVE As Label";
_l_total_vive = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276991;
 //BA.debugLineNum = 3276991;BA.debugLine="Private L_TOTAL_GUNA As Label";
_l_total_guna = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276992;
 //BA.debugLineNum = 3276992;BA.debugLine="Private L_TOTAL_BA As Label";
_l_total_ba = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276993;
 //BA.debugLineNum = 3276993;BA.debugLine="Private L_TOTAL_COMIS As Label";
_l_total_comis = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276994;
 //BA.debugLineNum = 3276994;BA.debugLine="Private L_TOTAL_MM_1 As Label";
_l_total_mm_1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276995;
 //BA.debugLineNum = 3276995;BA.debugLine="Private L_TOTAL_VIVE_1 As Label";
_l_total_vive_1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276996;
 //BA.debugLineNum = 3276996;BA.debugLine="Private L_TOTAL_GUNA_1 As Label";
_l_total_guna_1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276997;
 //BA.debugLineNum = 3276997;BA.debugLine="Private L_TOTAL_BA_1 As Label";
_l_total_ba_1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276998;
 //BA.debugLineNum = 3276998;BA.debugLine="Private L_TOTAL_COMIS_1 As Label";
_l_total_comis_1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3276999;
 //BA.debugLineNum = 3276999;BA.debugLine="Private B_OK_COMISS As Button";
_b_ok_comiss = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3277000;
 //BA.debugLineNum = 3277000;BA.debugLine="Private Panel_C As Panel";
_panel_c = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=3277002;
 //BA.debugLineNum = 3277002;BA.debugLine="Private TitleHeight As Int = 50dip";
_titleheight = __c.DipToCurrent((int) (50));
RDebugUtils.currentLine=3277003;
 //BA.debugLineNum = 3277003;BA.debugLine="Private Title2Height As Int = 100dip";
_title2height = __c.DipToCurrent((int) (100));
RDebugUtils.currentLine=3277005;
 //BA.debugLineNum = 3277005;BA.debugLine="Private DividerHeight As Int = 5dip";
_dividerheight = __c.DipToCurrent((int) (5));
RDebugUtils.currentLine=3277006;
 //BA.debugLineNum = 3277006;BA.debugLine="Private CLV1 As CustomListView";
_clv1 = new b4a.example3.customlistview();
RDebugUtils.currentLine=3277007;
 //BA.debugLineNum = 3277007;BA.debugLine="Private pnlTitle As B4XView";
_pnltitle = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=3277008;
 //BA.debugLineNum = 3277008;BA.debugLine="Private xui As XUI";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=3277009;
 //BA.debugLineNum = 3277009;BA.debugLine="Type TitleData (Title As String)";
;
RDebugUtils.currentLine=3277011;
 //BA.debugLineNum = 3277011;BA.debugLine="Private B_MARCAS As Button";
_b_marcas = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3277012;
 //BA.debugLineNum = 3277012;BA.debugLine="Private lblTitle As Label";
_lbltitle = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277013;
 //BA.debugLineNum = 3277013;BA.debugLine="Private B_OK_PANEL5 As Button";
_b_ok_panel5 = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3277014;
 //BA.debugLineNum = 3277014;BA.debugLine="Private p_principal As Panel";
_p_principal = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=3277016;
 //BA.debugLineNum = 3277016;BA.debugLine="Private teclado As IME";
_teclado = new anywheresoftware.b4a.objects.IME();
RDebugUtils.currentLine=3277017;
 //BA.debugLineNum = 3277017;BA.debugLine="Private panel5 As Panel";
_panel5 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=3277018;
 //BA.debugLineNum = 3277018;BA.debugLine="Private panel_5 As Panel";
_panel_5 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=3277019;
 //BA.debugLineNum = 3277019;BA.debugLine="Private p_marcasRes As Panel";
_p_marcasres = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=3277020;
 //BA.debugLineNum = 3277020;BA.debugLine="Private p_sombra As Panel";
_p_sombra = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=3277022;
 //BA.debugLineNum = 3277022;BA.debugLine="Private Label22 As Label";
_label22 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277023;
 //BA.debugLineNum = 3277023;BA.debugLine="Private l_rutasuplencia As Label";
_l_rutasuplencia = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277024;
 //BA.debugLineNum = 3277024;BA.debugLine="Dim l_ru_pri As Label";
_l_ru_pri = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277025;
 //BA.debugLineNum = 3277025;BA.debugLine="Private l_ru_sup As Label";
_l_ru_sup = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277026;
 //BA.debugLineNum = 3277026;BA.debugLine="Private Label4 As Label";
_label4 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277027;
 //BA.debugLineNum = 3277027;BA.debugLine="Private Label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277028;
 //BA.debugLineNum = 3277028;BA.debugLine="Private Label25 As Label";
_label25 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277029;
 //BA.debugLineNum = 3277029;BA.debugLine="Dim p_transparenteActualizacion As Panel";
_p_transparenteactualizacion = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=3277030;
 //BA.debugLineNum = 3277030;BA.debugLine="Private p_forzarActualizacion As Panel";
_p_forzaractualizacion = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=3277031;
 //BA.debugLineNum = 3277031;BA.debugLine="Dim l_forzarActualizacion As Label";
_l_forzaractualizacion = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277032;
 //BA.debugLineNum = 3277032;BA.debugLine="Dim tipo_venta As String = Subs.traeTipoVentaDeBD";
_tipo_venta = _subs._traetipoventadebd /*String*/ (ba);
RDebugUtils.currentLine=3277033;
 //BA.debugLineNum = 3277033;BA.debugLine="Private b_abordo As Button";
_b_abordo = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3277034;
 //BA.debugLineNum = 3277034;BA.debugLine="Dim bitacora As C_Bitacora";
_bitacora = new gunav2.keymon.com.mx.c_bitacora();
RDebugUtils.currentLine=3277035;
 //BA.debugLineNum = 3277035;BA.debugLine="Private l_version As Label";
_l_version = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277036;
 //BA.debugLineNum = 3277036;BA.debugLine="Dim contadorSubir As Int = 0";
_contadorsubir = (int) (0);
RDebugUtils.currentLine=3277038;
 //BA.debugLineNum = 3277038;BA.debugLine="Private p_somvra_2 As Panel";
_p_somvra_2 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=3277039;
 //BA.debugLineNum = 3277039;BA.debugLine="Private b_resdia As Button";
_b_resdia = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3277040;
 //BA.debugLineNum = 3277040;BA.debugLine="Private b_hacerpedido As Button";
_b_hacerpedido = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3277041;
 //BA.debugLineNum = 3277041;BA.debugLine="Private b_nuevocliente As Button";
_b_nuevocliente = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3277042;
 //BA.debugLineNum = 3277042;BA.debugLine="Private b_clientesvisitados As Button";
_b_clientesvisitados = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3277043;
 //BA.debugLineNum = 3277043;BA.debugLine="Private l_futura As Label";
_l_futura = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277044;
 //BA.debugLineNum = 3277044;BA.debugLine="Private l_preventa As Label";
_l_preventa = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277045;
 //BA.debugLineNum = 3277045;BA.debugLine="Private l_preacordada As Label";
_l_preacordada = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277046;
 //BA.debugLineNum = 3277046;BA.debugLine="Private l_prevtotal As Label";
_l_prevtotal = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277047;
 //BA.debugLineNum = 3277047;BA.debugLine="Private Label13 As Label";
_label13 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277048;
 //BA.debugLineNum = 3277048;BA.debugLine="Private Label19 As Label";
_label19 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277049;
 //BA.debugLineNum = 3277049;BA.debugLine="Private Label21 As Label";
_label21 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277050;
 //BA.debugLineNum = 3277050;BA.debugLine="Private Label33 As Label";
_label33 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277051;
 //BA.debugLineNum = 3277051;BA.debugLine="Private Label35 As Label";
_label35 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277052;
 //BA.debugLineNum = 3277052;BA.debugLine="Private Label43 As Label";
_label43 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277053;
 //BA.debugLineNum = 3277053;BA.debugLine="Private Label51 As Label";
_label51 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277054;
 //BA.debugLineNum = 3277054;BA.debugLine="Private l_faltan As Label";
_l_faltan = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277055;
 //BA.debugLineNum = 3277055;BA.debugLine="Private l_visitas As Label";
_l_visitas = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277056;
 //BA.debugLineNum = 3277056;BA.debugLine="Private l_visitartotal As Label";
_l_visitartotal = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277057;
 //BA.debugLineNum = 3277057;BA.debugLine="Private de As Label";
_de = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=3277058;
 //BA.debugLineNum = 3277058;BA.debugLine="Private B_traec As Button";
_b_traec = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=3277059;
 //BA.debugLineNum = 3277059;BA.debugLine="End Sub";
return "";
}
public void  _connecta_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "connecta_click", false))
	 {Debug.delegate(ba, "connecta_click", null); return;}
ResumableSub_connecta_Click rsub = new ResumableSub_connecta_Click(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_connecta_Click extends BA.ResumableSub {
public ResumableSub_connecta_Click(gunav2.keymon.com.mx.c_principal parent,gunav2.keymon.com.mx.c_principal __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
gunav2.keymon.com.mx.c_principal __ref;
gunav2.keymon.com.mx.c_principal parent;
anywheresoftware.b4a.objects.collections.Map _revisaactualizacion = null;
int _i = 0;
String _usrt = "";
String _passt = "";

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

    while (true) {
try {

        switch (state) {
            case -1:
return;

case 0:
//C
this.state = 1;
RDebugUtils.currentLine=3932161;
 //BA.debugLineNum = 3932161;BA.debugLine="Log(\">>> REVISAMOS ACTUALIZACION\")";
parent.__c.LogImpl("03932161",">>> REVISAMOS ACTUALIZACION",0);
RDebugUtils.currentLine=3932162;
 //BA.debugLineNum = 3932162;BA.debugLine="Private revisaActualizacion As Map = Subs.revisaF";
_revisaactualizacion = new anywheresoftware.b4a.objects.collections.Map();
_revisaactualizacion = parent._subs._revisaforzaractualizacion /*anywheresoftware.b4a.objects.collections.Map*/ (ba);
RDebugUtils.currentLine=3932163;
 //BA.debugLineNum = 3932163;BA.debugLine="Log(revisaActualizacion)";
parent.__c.LogImpl("03932163",BA.ObjectToString(_revisaactualizacion),0);
RDebugUtils.currentLine=3932164;
 //BA.debugLineNum = 3932164;BA.debugLine="If E_RUTA2.Text = e_ruta.Text And e_ruta.Text <>";
if (true) break;

case 1:
//if
this.state = 40;
if ((__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()) && (__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
this.state = 3;
}else {
this.state = 5;
}if (true) break;

case 3:
//C
this.state = 40;
RDebugUtils.currentLine=3932165;
 //BA.debugLineNum = 3932165;BA.debugLine="Msgbox(\"La ruta principal y la de suplencia NO p";
parent.__c.Msgbox(BA.ObjectToCharSequence("La ruta principal y la de suplencia NO pueden ser la misma."),BA.ObjectToCharSequence("ERROR"),ba);
 if (true) break;

case 5:
//C
this.state = 6;
RDebugUtils.currentLine=3932167;
 //BA.debugLineNum = 3932167;BA.debugLine="If e_ruta.Text = \"KMTS1\" Then";
if (true) break;

case 6:
//if
this.state = 39;
if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("KMTS1")) { 
this.state = 8;
}else {
this.state = 10;
}if (true) break;

case 8:
//C
this.state = 39;
RDebugUtils.currentLine=3932168;
 //BA.debugLineNum = 3932168;BA.debugLine="cargar.Visible = True";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(parent.__c.True);
RDebugUtils.currentLine=3932169;
 //BA.debugLineNum = 3932169;BA.debugLine="Subir.Visible = True";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(parent.__c.True);
RDebugUtils.currentLine=3932170;
 //BA.debugLineNum = 3932170;BA.debugLine="e_ruta.Text = \"\"";
__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=3932171;
 //BA.debugLineNum = 3932171;BA.debugLine="B4XPages.MainPage.reqManager.Initialize(Me, Sta";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._initialize /*String*/ (null,ba,parent,parent._starter._server /*String*/ );
 if (true) break;

case 10:
//C
this.state = 11;
RDebugUtils.currentLine=3932173;
 //BA.debugLineNum = 3932173;BA.debugLine="If revisaActualizacion.Get(\"forzar\") = 1 Then '";
if (true) break;

case 11:
//if
this.state = 38;
if ((_revisaactualizacion.Get((Object)("forzar"))).equals((Object)(1))) { 
this.state = 13;
}else 
{RDebugUtils.currentLine=3932185;
 //BA.debugLineNum = 3932185;BA.debugLine="else if revisaActualizacion.Get(\"forzar\") = 2 T";
if ((_revisaactualizacion.Get((Object)("forzar"))).equals((Object)(2))) { 
this.state = 15;
}else {
this.state = 17;
}}
if (true) break;

case 13:
//C
this.state = 38;
RDebugUtils.currentLine=3932178;
 //BA.debugLineNum = 3932178;BA.debugLine="l_forzarActualizacion.TextColor = Colors.black";
__ref._l_forzaractualizacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(parent.__c.Colors.Black);
RDebugUtils.currentLine=3932179;
 //BA.debugLineNum = 3932179;BA.debugLine="l_forzarActualizacion.Text = \"Hay una nueva ac";
__ref._l_forzaractualizacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Hay una nueva actualización para la aplicación, por favor revise que tenga DATOS y espere mientras se descarga."));
RDebugUtils.currentLine=3932180;
 //BA.debugLineNum = 3932180;BA.debugLine="p_transparenteActualizacion.Visible = True";
__ref._p_transparenteactualizacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.True);
RDebugUtils.currentLine=3932181;
 //BA.debugLineNum = 3932181;BA.debugLine="p_transparenteActualizacion.BringToFront";
__ref._p_transparenteactualizacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
RDebugUtils.currentLine=3932182;
 //BA.debugLineNum = 3932182;BA.debugLine="Starter.nuevoLink = $\"https://keymon.net/movil";
parent._starter._nuevolink /*String*/  = ("https://keymon.net/movil/guna/GP_"+parent.__c.SmartStringFormatter("",_revisaactualizacion.Get((Object)("nuevaVersion")))+".apk");
RDebugUtils.currentLine=3932183;
 //BA.debugLineNum = 3932183;BA.debugLine="Log(\"Descargar: GP_\" & Starter.newApp.appLink)";
parent.__c.LogImpl("03932183","Descargar: GP_"+parent._starter._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ .appLink /*String*/ ,0);
RDebugUtils.currentLine=3932184;
 //BA.debugLineNum = 3932184;BA.debugLine="CallSubDelayed(appUpdater, \"download_newApk\")";
parent.__c.CallSubDelayed(ba,(Object)(parent._appupdater.getObject()),"download_newApk");
 if (true) break;

case 15:
//C
this.state = 38;
RDebugUtils.currentLine=3932186;
 //BA.debugLineNum = 3932186;BA.debugLine="l_forzarActualizacion.TextColor = Colors.red";
__ref._l_forzaractualizacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(parent.__c.Colors.Red);
RDebugUtils.currentLine=3932187;
 //BA.debugLineNum = 3932187;BA.debugLine="l_forzarActualizacion.Text = \"Es necesaria una";
__ref._l_forzaractualizacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Es necesaria una conexión a internet, por favor revise su conexión y vuelva a intentar."));
RDebugUtils.currentLine=3932188;
 //BA.debugLineNum = 3932188;BA.debugLine="p_transparenteActualizacion.Visible = True";
__ref._p_transparenteactualizacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.True);
RDebugUtils.currentLine=3932189;
 //BA.debugLineNum = 3932189;BA.debugLine="p_transparenteActualizacion.BringToFront";
__ref._p_transparenteactualizacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
RDebugUtils.currentLine=3932190;
 //BA.debugLineNum = 3932190;BA.debugLine="Sleep(4500)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "connecta_click"),(int) (4500));
this.state = 41;
return;
case 41:
//C
this.state = 38;
;
RDebugUtils.currentLine=3932191;
 //BA.debugLineNum = 3932191;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from usuario";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from usuarioa");
RDebugUtils.currentLine=3932192;
 //BA.debugLineNum = 3932192;BA.debugLine="p_transparenteActualizacion.Visible = False";
__ref._p_transparenteactualizacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=3932193;
 //BA.debugLineNum = 3932193;BA.debugLine="B4XPages.ShowPage(\"Login\")";
parent._b4xpages._showpage /*String*/ (ba,"Login");
 if (true) break;

case 17:
//C
this.state = 18;
RDebugUtils.currentLine=3932195;
 //BA.debugLineNum = 3932195;BA.debugLine="Try";
if (true) break;

case 18:
//try
this.state = 37;
this.catchState = 36;
this.state = 20;
if (true) break;

case 20:
//C
this.state = 21;
this.catchState = 36;
RDebugUtils.currentLine=3932196;
 //BA.debugLineNum = 3932196;BA.debugLine="Private i As Int = Regex.Replace(\"[^0-9.]\", e";
_i = (int)(Double.parseDouble(parent.__c.Regex.Replace("[^0-9.]",__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(),"")));
RDebugUtils.currentLine=3932197;
 //BA.debugLineNum = 3932197;BA.debugLine="Log($\"|${i}|\"$)";
parent.__c.LogImpl("03932197",("|"+parent.__c.SmartStringFormatter("",(Object)(_i))+"|"),0);
RDebugUtils.currentLine=3932198;
 //BA.debugLineNum = 3932198;BA.debugLine="e_ruta.text = i";
__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_i));
RDebugUtils.currentLine=3932199;
 //BA.debugLineNum = 3932199;BA.debugLine="p_transparenteActualizacion.Visible = False";
__ref._p_transparenteactualizacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False);
RDebugUtils.currentLine=3932200;
 //BA.debugLineNum = 3932200;BA.debugLine="B4XPages.MainPage.reqManager.Initialize(Me, S";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._initialize /*String*/ (null,ba,parent,parent._starter._server /*String*/ );
RDebugUtils.currentLine=3932201;
 //BA.debugLineNum = 3932201;BA.debugLine="teclado.HideKeyboard";
__ref._teclado /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba);
RDebugUtils.currentLine=3932202;
 //BA.debugLineNum = 3932202;BA.debugLine="connecta1 = connecta1 + 1";
__ref._connecta1 /*double*/  = __ref._connecta1 /*double*/ +1;
RDebugUtils.currentLine=3932204;
 //BA.debugLineNum = 3932204;BA.debugLine="conn = \"1\"";
__ref._conn /*String*/  = "1";
RDebugUtils.currentLine=3932205;
 //BA.debugLineNum = 3932205;BA.debugLine="Dim cmd As DBCommand";
parent._cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3932206;
 //BA.debugLineNum = 3932206;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3932207;
 //BA.debugLineNum = 3932207;BA.debugLine="cmd.Name = \"select_version_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_version_GV2";
RDebugUtils.currentLine=3932208;
 //BA.debugLineNum = 3932208;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("version"));
RDebugUtils.currentLine=3932210;
 //BA.debugLineNum = 3932210;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select US";
__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._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO, PASS from usuarioa")));
RDebugUtils.currentLine=3932211;
 //BA.debugLineNum = 3932211;BA.debugLine="c.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3932212;
 //BA.debugLineNum = 3932212;BA.debugLine="If c.RowCount > 0  And c.GetString(\"USUARIO\")";
if (true) break;

case 21:
//if
this.state = 24;
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0 && (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO")).equals("KMTS1") == false) { 
this.state = 23;
}if (true) break;

case 23:
//C
this.state = 24;
RDebugUtils.currentLine=3932213;
 //BA.debugLineNum = 3932213;BA.debugLine="Private usrT As String = c.GetString(\"USUARI";
_usrt = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=3932214;
 //BA.debugLineNum = 3932214;BA.debugLine="Private passT As String = c.GetString(\"PASS\"";
_passt = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PASS");
RDebugUtils.currentLine=3932215;
 //BA.debugLineNum = 3932215;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3932216;
 //BA.debugLineNum = 3932216;BA.debugLine="cmd.Name = \"select_usuario_guna_GV2_10\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_usuario_guna_GV2_10";
RDebugUtils.currentLine=3932217;
 //BA.debugLineNum = 3932217;BA.debugLine="cmd.Parameters = Array As Object(usrT, passT";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_usrt),(Object)(_passt)};
RDebugUtils.currentLine=3932218;
 //BA.debugLineNum = 3932218;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cm";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("usuarioA"));
 if (true) break;

case 24:
//C
this.state = 25;
;
RDebugUtils.currentLine=3932220;
 //BA.debugLineNum = 3932220;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3932221;
 //BA.debugLineNum = 3932221;BA.debugLine="If e_ruta.Text = \"BERNA1\" Then";
if (true) break;

case 25:
//if
this.state = 28;
if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("BERNA1")) { 
this.state = 27;
}if (true) break;

case 27:
//C
this.state = 28;
RDebugUtils.currentLine=3932222;
 //BA.debugLineNum = 3932222;BA.debugLine="cargar.Visible = True";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(parent.__c.True);
RDebugUtils.currentLine=3932223;
 //BA.debugLineNum = 3932223;BA.debugLine="Subir.Visible = True";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(parent.__c.True);
RDebugUtils.currentLine=3932224;
 //BA.debugLineNum = 3932224;BA.debugLine="e_ruta.Text = \"\"";
__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
 if (true) break;

case 28:
//C
this.state = 29;
;
RDebugUtils.currentLine=3932226;
 //BA.debugLineNum = 3932226;BA.debugLine="ToastMessageShow(\"Validando Conexión.\" , True";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Validando Conexión."),parent.__c.True);
RDebugUtils.currentLine=3932227;
 //BA.debugLineNum = 3932227;BA.debugLine="If connecta1 / 2  = 1 Then";
if (true) break;

case 29:
//if
this.state = 34;
if (__ref._connecta1 /*double*/ /(double)2==1) { 
this.state = 31;
}else {
this.state = 33;
}if (true) break;

case 31:
//C
this.state = 34;
RDebugUtils.currentLine=3932233;
 //BA.debugLineNum = 3932233;BA.debugLine="B4XPages.MainPage.reqManager.Initialize(Me,";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._initialize /*String*/ (null,ba,parent,parent._starter._server /*String*/ );
 if (true) break;

case 33:
//C
this.state = 34;
RDebugUtils.currentLine=3932240;
 //BA.debugLineNum = 3932240;BA.debugLine="B4XPages.MainPage.reqManager.Initialize(Me,";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._initialize /*String*/ (null,ba,parent,parent._starter._server /*String*/ );
 if (true) break;

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

case 36:
//C
this.state = 37;
this.catchState = 0;
RDebugUtils.currentLine=3932243;
 //BA.debugLineNum = 3932243;BA.debugLine="Log(LastException)";
parent.__c.LogImpl("03932243",BA.ObjectToString(parent.__c.LastException(ba)),0);
 if (true) break;
if (true) break;

case 37:
//C
this.state = 38;
this.catchState = 0;
;
 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=3932251;
 //BA.debugLineNum = 3932251;BA.debugLine="End Sub";
if (true) break;
}} 
       catch (Exception e0) {
			
if (catchState == 0)
    throw e0;
else {
    state = catchState;
ba.setLastException(e0);}
            }
        }
    }
}
public String  _connecta_longclick(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "connecta_longclick", false))
	 {return ((String) Debug.delegate(ba, "connecta_longclick", null));}
int _i = 0;
int _dia = 0;
String _dialetra = "";
RDebugUtils.currentLine=3801088;
 //BA.debugLineNum = 3801088;BA.debugLine="Private Sub connecta_LongClick";
RDebugUtils.currentLine=3801096;
 //BA.debugLineNum = 3801096;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT CN_ID, CN_FECHA";
__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 CN_ID, CN_FECHA , CN_USER, CN_LAT, CN_LON, CN_NOMBRE, CN_DIRECCION, CN_FOTO, CN_ALMACEN, CN_RUTA, CN_GIRO, CN_SOLICITA, CN_COLONIA, CN_TELEFONO, CN_CP FROM CLIENTES_NUEVOS")));
RDebugUtils.currentLine=3801097;
 //BA.debugLineNum = 3801097;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3801098;
 //BA.debugLineNum = 3801098;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step3 = 1;
final int limit3 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit3 ;_i = _i + step3 ) {
RDebugUtils.currentLine=3801099;
 //BA.debugLineNum = 3801099;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3801100;
 //BA.debugLineNum = 3801100;BA.debugLine="Dim dia As Int = DateTime.GetDayOfWeek(DateTime";
_dia = __c.DateTime.GetDayOfWeek(__c.DateTime.getNow());
RDebugUtils.currentLine=3801101;
 //BA.debugLineNum = 3801101;BA.debugLine="If dia = 2  Then";
if (_dia==2) { 
RDebugUtils.currentLine=3801102;
 //BA.debugLineNum = 3801102;BA.debugLine="Dim dialetra As String = \"LUNES\"";
_dialetra = "LUNES";
 }else 
{RDebugUtils.currentLine=3801103;
 //BA.debugLineNum = 3801103;BA.debugLine="Else If dia = 3  Then";
if (_dia==3) { 
RDebugUtils.currentLine=3801104;
 //BA.debugLineNum = 3801104;BA.debugLine="Dim dialetra As String = \"MARTES\"";
_dialetra = "MARTES";
 }else 
{RDebugUtils.currentLine=3801105;
 //BA.debugLineNum = 3801105;BA.debugLine="Else If dia = 4  Then";
if (_dia==4) { 
RDebugUtils.currentLine=3801106;
 //BA.debugLineNum = 3801106;BA.debugLine="Dim dialetra As String = \"MIERCOLES\"";
_dialetra = "MIERCOLES";
 }else 
{RDebugUtils.currentLine=3801107;
 //BA.debugLineNum = 3801107;BA.debugLine="Else If dia = 5  Then";
if (_dia==5) { 
RDebugUtils.currentLine=3801108;
 //BA.debugLineNum = 3801108;BA.debugLine="Dim dialetra As String = \"JUEVES\"";
_dialetra = "JUEVES";
 }else 
{RDebugUtils.currentLine=3801109;
 //BA.debugLineNum = 3801109;BA.debugLine="Else If dia = 6  Then";
if (_dia==6) { 
RDebugUtils.currentLine=3801110;
 //BA.debugLineNum = 3801110;BA.debugLine="Dim dialetra As String = \"VIERNES\"";
_dialetra = "VIERNES";
 }else 
{RDebugUtils.currentLine=3801111;
 //BA.debugLineNum = 3801111;BA.debugLine="Else If dia = 7  Then";
if (_dia==7) { 
RDebugUtils.currentLine=3801112;
 //BA.debugLineNum = 3801112;BA.debugLine="Dim dialetra As String = \"SABADO\"";
_dialetra = "SABADO";
 }}}}}}
;
RDebugUtils.currentLine=3801114;
 //BA.debugLineNum = 3801114;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3801115;
 //BA.debugLineNum = 3801115;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3801116;
 //BA.debugLineNum = 3801116;BA.debugLine="cmd.Name = \"insert_clientesnuevos_GUNA\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_clientesnuevos_GUNA";
RDebugUtils.currentLine=3801117;
 //BA.debugLineNum = 3801117;BA.debugLine="Log(c.GetString(\"CN_ID\")&\"    ,\"& c.GetString(\"";
__c.LogImpl("03801117",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_ID")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_FECHA")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_USER")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_LAT")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_LON")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_NOMBRE")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_DIRECCION")+"    ,"+__ref._almacen /*String*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_RUTA")+"    ,"+"En espera"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_GIRO")+"    ,"+_dialetra+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_SOLICITA")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_COLONIA")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_TELEFONO"),0);
RDebugUtils.currentLine=3801118;
 //BA.debugLineNum = 3801118;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"C";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_ID")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_USER")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_LAT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_LON")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_NOMBRE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_DIRECCION")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_RUTA")),(Object)("En espera"),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_GIRO")),(Object)(_dialetra),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_SOLICITA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_COLONIA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_TELEFONO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_CP"))};
RDebugUtils.currentLine=3801119;
 //BA.debugLineNum = 3801119;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("inst_clientesn"));
 }
};
 };
RDebugUtils.currentLine=3801122;
 //BA.debugLineNum = 3801122;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3801123;
 //BA.debugLineNum = 3801123;BA.debugLine="End Sub";
return "";
}
public String  _e_ruta_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "e_ruta_click", false))
	 {return ((String) Debug.delegate(ba, "e_ruta_click", null));}
anywheresoftware.b4a.objects.collections.Map _revisaactualizacion = null;
RDebugUtils.currentLine=5636096;
 //BA.debugLineNum = 5636096;BA.debugLine="Sub e_ruta_Click";
RDebugUtils.currentLine=5636097;
 //BA.debugLineNum = 5636097;BA.debugLine="Private revisaActualizacion As Map = Subs.revisaF";
_revisaactualizacion = new anywheresoftware.b4a.objects.collections.Map();
_revisaactualizacion = _subs._revisaforzaractualizacion /*anywheresoftware.b4a.objects.collections.Map*/ (ba);
RDebugUtils.currentLine=5636098;
 //BA.debugLineNum = 5636098;BA.debugLine="Log(\"revisaActualizacion = \" & revisaActualizacio";
__c.LogImpl("05636098","revisaActualizacion = "+BA.ObjectToString(_revisaactualizacion),0);
RDebugUtils.currentLine=5636099;
 //BA.debugLineNum = 5636099;BA.debugLine="If revisaActualizacion.Get(\"forzar\") = 2 Then";
if ((_revisaactualizacion.Get((Object)("forzar"))).equals((Object)(2))) { 
RDebugUtils.currentLine=5636100;
 //BA.debugLineNum = 5636100;BA.debugLine="LogColor(\"No hay info de versión para actualizar";
__c.LogImpl("05636100","No hay info de versión para actualizar en CAT_VARIABLES, traemos la información!",__c.Colors.Red);
RDebugUtils.currentLine=5636101;
 //BA.debugLineNum = 5636101;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=5636102;
 //BA.debugLineNum = 5636102;BA.debugLine="cmd.Name = \"selectVersionAppGuna\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "selectVersionAppGuna";
RDebugUtils.currentLine=5636103;
 //BA.debugLineNum = 5636103;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=5636104;
 //BA.debugLineNum = 5636104;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("traeVersion"));
 };
RDebugUtils.currentLine=5636106;
 //BA.debugLineNum = 5636106;BA.debugLine="End Sub";
return "";
}
public String  _e_ruta_enterpressed(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "e_ruta_enterpressed", false))
	 {return ((String) Debug.delegate(ba, "e_ruta_enterpressed", null));}
RDebugUtils.currentLine=4194304;
 //BA.debugLineNum = 4194304;BA.debugLine="Sub e_ruta_EnterPressed";
RDebugUtils.currentLine=4194305;
 //BA.debugLineNum = 4194305;BA.debugLine="If e_ruta.Text = \"FIN DIA\" Then";
if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("FIN DIA")) { 
RDebugUtils.currentLine=4194306;
 //BA.debugLineNum = 4194306;BA.debugLine="RES = Msgbox2(\"Seguro que desea hacer el cierre?";
__ref._res /*String*/  = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desea hacer el cierre? Todos los datos se borrarán."),BA.ObjectToCharSequence("Cierre"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba));
RDebugUtils.currentLine=4194307;
 //BA.debugLineNum = 4194307;BA.debugLine="If RES = DialogResponse.POSITIVE Then";
if ((__ref._res /*String*/ ).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { 
RDebugUtils.currentLine=4194308;
 //BA.debugLineNum = 4194308;BA.debugLine="bitacora.mandaBitacora(Subs.fechanormal(DateTim";
__ref._bitacora /*gunav2.keymon.com.mx.c_bitacora*/ ._mandabitacora /*String*/ (null,_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),__ref._usuario /*String*/ ,_subs._traealmacen /*String*/ (ba),_subs._traeruta /*String*/ (ba),"Fin Día","",_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ,"2","","","");
RDebugUtils.currentLine=4194309;
 //BA.debugLineNum = 4194309;BA.debugLine="Label22.Visible = False";
__ref._label22 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4194310;
 //BA.debugLineNum = 4194310;BA.debugLine="l_rutasuplencia.Visible = False";
__ref._l_rutasuplencia /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4194311;
 //BA.debugLineNum = 4194311;BA.debugLine="l_rutasuplencia.Text = \"\"";
__ref._l_rutasuplencia /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=4194312;
 //BA.debugLineNum = 4194312;BA.debugLine="b_abordo.Visible = False";
__ref._b_abordo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4194313;
 //BA.debugLineNum = 4194313;BA.debugLine="t2.Initialize(\"t2\", 1000)  ' 1000 ms = 1 segund";
__ref._t2 /*anywheresoftware.b4a.objects.Timer*/ .Initialize(ba,"t2",(long) (1000));
RDebugUtils.currentLine=4194314;
 //BA.debugLineNum = 4194314;BA.debugLine="t2.Enabled = True";
__ref._t2 /*anywheresoftware.b4a.objects.Timer*/ .setEnabled(__c.True);
 };
 };
RDebugUtils.currentLine=4194318;
 //BA.debugLineNum = 4194318;BA.debugLine="If e_ruta.Text = \"IWL\" Then";
if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("IWL")) { 
RDebugUtils.currentLine=4194320;
 //BA.debugLineNum = 4194320;BA.debugLine="NUEVO.Visible =False";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4194321;
 //BA.debugLineNum = 4194321;BA.debugLine="BUSCA.Visible=False";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4194322;
 //BA.debugLineNum = 4194322;BA.debugLine="connecta.Visible=False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4194323;
 //BA.debugLineNum = 4194323;BA.debugLine="img3.Visible =True";
__ref._img3 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4194324;
 //BA.debugLineNum = 4194324;BA.debugLine="Resumen.Visible= False";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
 };
RDebugUtils.currentLine=4194327;
 //BA.debugLineNum = 4194327;BA.debugLine="If e_ruta.Text = \"SUPLENCIA\" Then";
if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("SUPLENCIA")) { 
RDebugUtils.currentLine=4194328;
 //BA.debugLineNum = 4194328;BA.debugLine="e_ruta.Text = \"\"";
__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=4194329;
 //BA.debugLineNum = 4194329;BA.debugLine="E_RUTA2.Visible = True";
__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4194330;
 //BA.debugLineNum = 4194330;BA.debugLine="p_ruta2.Visible = True";
__ref._p_ruta2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4194331;
 //BA.debugLineNum = 4194331;BA.debugLine="p_somvra_2.Visible = False";
__ref._p_somvra_2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
 };
RDebugUtils.currentLine=4194333;
 //BA.debugLineNum = 4194333;BA.debugLine="End Sub";
return "";
}
public String  _e_ruta_textchanged(gunav2.keymon.com.mx.c_principal __ref,String _old,String _new) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "e_ruta_textchanged", false))
	 {return ((String) Debug.delegate(ba, "e_ruta_textchanged", new Object[] {_old,_new}));}
String _validchars = "";
RDebugUtils.currentLine=5177344;
 //BA.debugLineNum = 5177344;BA.debugLine="Sub e_ruta_TextChanged (Old As String, New As Stri";
RDebugUtils.currentLine=5177345;
 //BA.debugLineNum = 5177345;BA.debugLine="Dim validChars As String =\"ABCDEFGHIJKLMNOPQRSTUV";
_validchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ";
RDebugUtils.currentLine=5177347;
 //BA.debugLineNum = 5177347;BA.debugLine="If Old <> \"KMTS1\" Then";
if ((_old).equals("KMTS1") == false) { 
RDebugUtils.currentLine=5177349;
 //BA.debugLineNum = 5177349;BA.debugLine="Try";
try {RDebugUtils.currentLine=5177350;
 //BA.debugLineNum = 5177350;BA.debugLine="If validChars.Contains(New.SubString(New.Length";
if (_validchars.contains(_new.substring((int) (_new.length()-1)))==__c.False) { 
RDebugUtils.currentLine=5177351;
 //BA.debugLineNum = 5177351;BA.debugLine="e_ruta.Text = New.SubString2(0, New.Length-1)";
__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_new.substring((int) (0),(int) (_new.length()-1))));
RDebugUtils.currentLine=5177352;
 //BA.debugLineNum = 5177352;BA.debugLine="e_ruta.SelectionStart = e_ruta.Text.Length";
__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setSelectionStart(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText().length());
 };
 } 
       catch (Exception e9) {
			ba.setLastException(e9); };
 };
RDebugUtils.currentLine=5177358;
 //BA.debugLineNum = 5177358;BA.debugLine="End Sub";
return "";
}
public String  _e_ruta2_textchanged(gunav2.keymon.com.mx.c_principal __ref,String _old,String _new) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "e_ruta2_textchanged", false))
	 {return ((String) Debug.delegate(ba, "e_ruta2_textchanged", new Object[] {_old,_new}));}
RDebugUtils.currentLine=5242880;
 //BA.debugLineNum = 5242880;BA.debugLine="Sub e_ruta2_TextChanged (Old As String, New As Str";
RDebugUtils.currentLine=5242883;
 //BA.debugLineNum = 5242883;BA.debugLine="If New = e_ruta.text And New <> \"\" Then";
if ((_new).equals(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()) && (_new).equals("") == false) { 
RDebugUtils.currentLine=5242884;
 //BA.debugLineNum = 5242884;BA.debugLine="cargar.Enabled = False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.False);
RDebugUtils.currentLine=5242885;
 //BA.debugLineNum = 5242885;BA.debugLine="ToastMessageShow(\"Las rutas NO PUEDEN ser iguale";
__c.ToastMessageShow(BA.ObjectToCharSequence("Las rutas NO PUEDEN ser iguales!!"),__c.False);
 }else {
RDebugUtils.currentLine=5242887;
 //BA.debugLineNum = 5242887;BA.debugLine="cargar.Enabled = True";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True);
 };
RDebugUtils.currentLine=5242889;
 //BA.debugLineNum = 5242889;BA.debugLine="End Sub";
return "";
}
public String  _gps_locationchanged(gunav2.keymon.com.mx.c_principal __ref,anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "gps_locationchanged", false))
	 {return ((String) Debug.delegate(ba, "gps_locationchanged", new Object[] {_location1}));}
RDebugUtils.currentLine=5046272;
 //BA.debugLineNum = 5046272;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
RDebugUtils.currentLine=5046274;
 //BA.debugLineNum = 5046274;BA.debugLine="End Sub";
return "";
}
public String  _inv_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "inv_click", false))
	 {return ((String) Debug.delegate(ba, "inv_click", null));}
RDebugUtils.currentLine=4259840;
 //BA.debugLineNum = 4259840;BA.debugLine="Sub inv_Click";
RDebugUtils.currentLine=4259841;
 //BA.debugLineNum = 4259841;BA.debugLine="img2.Visible =True";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4259842;
 //BA.debugLineNum = 4259842;BA.debugLine="EJECUTANDO = 1";
__ref._ejecutando /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=4259843;
 //BA.debugLineNum = 4259843;BA.debugLine="inve = 1";
__ref._inve /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=4259844;
 //BA.debugLineNum = 4259844;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
RDebugUtils.currentLine=4259845;
 //BA.debugLineNum = 4259845;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod2");
RDebugUtils.currentLine=4259846;
 //BA.debugLineNum = 4259846;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
RDebugUtils.currentLine=4259847;
 //BA.debugLineNum = 4259847;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuari";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
RDebugUtils.currentLine=4259848;
 //BA.debugLineNum = 4259848;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=4259849;
 //BA.debugLineNum = 4259849;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=4259850;
 //BA.debugLineNum = 4259850;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=4259851;
 //BA.debugLineNum = 4259851;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=4259852;
 //BA.debugLineNum = 4259852;BA.debugLine="cmd.Name = \"select_cat_gunaprod_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_gunaprod_GV2";
RDebugUtils.currentLine=4259853;
 //BA.debugLineNum = 4259853;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=4259854;
 //BA.debugLineNum = 4259854;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprod"));
RDebugUtils.currentLine=4259855;
 //BA.debugLineNum = 4259855;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=4259856;
 //BA.debugLineNum = 4259856;BA.debugLine="cmd.Name = \"select_cat_gunaprod2_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_gunaprod2_GV2";
RDebugUtils.currentLine=4259857;
 //BA.debugLineNum = 4259857;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta.";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())};
RDebugUtils.currentLine=4259858;
 //BA.debugLineNum = 4259858;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprod2"));
RDebugUtils.currentLine=4259859;
 //BA.debugLineNum = 4259859;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=4259860;
 //BA.debugLineNum = 4259860;BA.debugLine="cmd.Name = \"select_cat_paquetes_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_paquetes_GV2";
RDebugUtils.currentLine=4259861;
 //BA.debugLineNum = 4259861;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=4259862;
 //BA.debugLineNum = 4259862;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprodp"));
RDebugUtils.currentLine=4259864;
 //BA.debugLineNum = 4259864;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=4259865;
 //BA.debugLineNum = 4259865;BA.debugLine="cmd.Name = \"select_cat_detallepa_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cat_detallepa_GV2";
RDebugUtils.currentLine=4259866;
 //BA.debugLineNum = 4259866;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ )};
RDebugUtils.currentLine=4259867;
 //BA.debugLineNum = 4259867;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("detallepaq"));
RDebugUtils.currentLine=4259869;
 //BA.debugLineNum = 4259869;BA.debugLine="cargar.Visible = False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4259870;
 //BA.debugLineNum = 4259870;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4259871;
 //BA.debugLineNum = 4259871;BA.debugLine="connecta.Visible = True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4259872;
 //BA.debugLineNum = 4259872;BA.debugLine="inv.Visible = False";
__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4259873;
 //BA.debugLineNum = 4259873;BA.debugLine="ToastMessageShow(\"Se Actualizaran los datos, Este";
__c.ToastMessageShow(BA.ObjectToCharSequence("Se Actualizaran los datos, Este proceso podria tardar hasta un minuto, gracias"),__c.True);
RDebugUtils.currentLine=4259874;
 //BA.debugLineNum = 4259874;BA.debugLine="End Sub";
return "";
}
public String  _jobdone(gunav2.keymon.com.mx.c_principal __ref,gunav2.keymon.com.mx.httpjob _job) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "jobdone", false))
	 {return ((String) Debug.delegate(ba, "jobdone", new Object[] {_job}));}
gunav2.keymon.com.mx.dbrequestmanager._dbresult _result = null;
String _n = "";
Object[] _records = null;
String _codigo = "";
String _fotos = "";
String _bandera = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _fot = null;
String _giro = "";
String _nota = "";
String _cliente = "";
String _saldo_pendiente = "";
String _fecha_pagare = "";
gunav2.keymon.com.mx.dbrequestmanager._dbresult _result1 = null;
String _cuantosencuesta = "";
byte[] _foto = null;
String _codigocredito = "";
String _banderacredito = "";
String _clientecredito = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _hdsgf = null;
String _cat_cl_codigo = "";
String _cat_cl_ruta = "";
String _cat_cl_nombre = "";
String _cat_cl_atiende1 = "";
String _cat_cl_atiente2 = "";
String _cat_cl_telefono = "";
String _cat_cl_email = "";
String _cat_cl_calle = "";
String _cat_cl_noext = "";
String _cat_cl_noint = "";
String _cat_cl_calle1 = "";
String _cat_cl_calle2 = "";
String _cat_cl_colonia = "";
String _cat_cl_muni = "";
String _cat_cl_edo = "";
String _cat_cl_cp = "";
String _cat_cl_long = "";
String _cat_cl_lat = "";
byte[] _cat_cl_foto = null;
String _cat_cl_mtocompra = "";
String _cat_cl_num_seriefisico = "";
String _cat_cl_tipocliente = "";
String _cat_cl_limitecredito = "";
String _cat_cl_diascredito = "";
String _cat_cl_clasificador4 = "";
String _cat_cl_clasificador3 = "";
String _cat_cl_clasificador2 = "";
String _cat_cl_bcredito = "";
String _cat_cl_tipo_ruta = "";
String _cat_cl_dias_visita = "";
String _hp_cliente = "";
String _hp_codigo_promocion = "";
String _promocion = "";
String _hccp_cliente = "";
String _hccp_promo = "";
String _hccp_cant = "";
String _cat_pd_almacen = "";
String _cat_pd_cod_promo = "";
String _cat_pd_rango = "";
String _cat_pd_rango2 = "";
String _cat_pd_vigencia = "";
String _cat_pd_descuento = "";
String _cat_pd_producto = "";
String _cat_pd_tier = "";
String _hvd_cliente2 = "";
String _hmc_marca = "";
String _hmc_total = "";
String _latitud = "";
String _longitud = "";
String _geocerca = "";
String _password = "";
String _cat_ru_ventaf = "";
String _cat_pa_id = "";
String _cat_pa_maxprom = "";
String _cat_pa_maxpromrec = "";
String _cat_pa_maxpromclie = "";
String _hvd_marca = "";
String _clientes = "";
String _hcm_total_v = "";
String _hcm_total_vive = "";
String _hcm_total_guna = "";
String _hcm_total_beb = "";
String _hec_cliente = "";
String _hec_modulo = "";
String _cat_pe_id = "";
String _cat_pe_idpromo = "";
String _cat_pe_monto = "";
String _he_cliente = "";
String _cat_gp_id = "";
String _cat_gp_nombre = "";
String _cat_gp_imp1 = "";
String _cat_gp_imp2 = "";
String _cat_gp_precio = "";
String _cat_gp_clasif = "";
String _cat_gp_sts = "";
String _cat_gp_tipo = "";
String _cat_gp_subtipo = "";
byte[] _cat_gp_img = null;
int _cat_gp_almacen = 0;
String _cat_gp_dev = "";
int _cat_gp_tipoprod = 0;
int _cat_gp_iniciativa = 0;
String _cat_listaprecio = "";
String _cat_gp_conversion3 = "";
String _cat_gp_conversion2 = "";
String _cat_gp_codpromo = "";
String _cat_pa_bsegmenta = "";
String _cat_pa_segmentav = "";
String _cat_dp_almacen = "";
String _cat_dp_id = "";
String _cat_dp_idprod = "";
String _cat_dp_tipo = "";
String _cat_dp_pzas = "";
String _cat_dp_usuario = "";
String _cat_dp_fecha = "";
String _cat_dp_regalo = "";
String _cat_dp_clasif = "";
String _cat_dp_precio = "";
String _cat_dp_precio_simptos = "";
int _cont = 0;
String _hvd_cliente = "";
String _hvd_pronombre = "";
String _hvd_cant = "";
String _hvd_costo_tot = "";
String _hvd_fecha = "";
String _cat_va_descripcion = "";
String _cat_va_valor = "";
String _cat_ep_id = "";
String _cat_ep_idtipopregunta = "";
String _cat_ce_descripcion = "";
String _cat_ep_pregunta = "";
String _cat_ep_res1_pred = "";
String _cat_ep_res2_pred = "";
String _cat_ep_res3_pred = "";
String _cat_ep_orden_pregunta = "";
int _cuantosp = 0;
int _cuantosc = 0;
int _cuantosn = 0;
String _cat_ve_version = "";
String _valido = "";
String _name2 = "";
String _fecha_hoy = "";
String _version = "";
String _actualizaraplicacion = "";
String _tipoventa = "";
String _pl_cliente = "";
String _pl_bandera = "";
String _comentario = "";
String _clientecom = "";
String _cob_volumen = "";
String _cob_marcae = "";
String _cob_portafolio = "";
String _cob_objpp = "";
String _cob_gev = "";
RDebugUtils.currentLine=3735552;
 //BA.debugLineNum = 3735552;BA.debugLine="Sub JobDone(Job As HttpJob)";
RDebugUtils.currentLine=3735553;
 //BA.debugLineNum = 3735553;BA.debugLine="B4XPages.MainPage.reqManager.trackNext(Job)";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._tracknext /*String*/ (null,_job);
RDebugUtils.currentLine=3735554;
 //BA.debugLineNum = 3735554;BA.debugLine="Log(\"JOBDONE PRINCIPAL\")";
__c.LogImpl("03735554","JOBDONE PRINCIPAL",0);
RDebugUtils.currentLine=3735560;
 //BA.debugLineNum = 3735560;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) { 
RDebugUtils.currentLine=3735561;
 //BA.debugLineNum = 3735561;BA.debugLine="If Job.ErrorMessage <> \"STREAM\" Then LogColor(\"E";
if ((_job._errormessage /*String*/ ).equals("STREAM") == false) { 
__c.LogImpl("03735561","Error: "+BA.ObjectToString(_job._tag /*Object*/ )+" : "+_subs._parsehttperror /*String*/ (ba,_job._errormessage /*String*/ ),__c.Colors.Red);};
RDebugUtils.currentLine=3735563;
 //BA.debugLineNum = 3735563;BA.debugLine="If Job.ErrorMessage = \"STREAM\" Then";
if ((_job._errormessage /*String*/ ).equals("STREAM")) { 
RDebugUtils.currentLine=3735564;
 //BA.debugLineNum = 3735564;BA.debugLine="If CARGA = \"SUBIR\" Then";
if ((__ref._carga /*String*/ ).equals("SUBIR")) { 
RDebugUtils.currentLine=3735565;
 //BA.debugLineNum = 3735565;BA.debugLine="PB2.Progress = PB2.Progress + PORCENTAJE";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()+(double)(Double.parseDouble(__ref._porcentaje /*String*/ ))));
RDebugUtils.currentLine=3735566;
 //BA.debugLineNum = 3735566;BA.debugLine="S_CP.Text = \"SUBIENDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("SUBIENDO"));
RDebugUtils.currentLine=3735567;
 //BA.debugLineNum = 3735567;BA.debugLine="If PB2.Progress > 99 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()>99) { 
RDebugUtils.currentLine=3735568;
 //BA.debugLineNum = 3735568;BA.debugLine="S_CP.Text = \"VALIDANDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("VALIDANDO"));
 };
 };
 };
 }else {
RDebugUtils.currentLine=3735573;
 //BA.debugLineNum = 3735573;BA.debugLine="LogColor(\"JobDone: '\" & B4XPages.MainPage.reqMan";
__c.LogImpl("03735573","JobDone: '"+BA.ObjectToString(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
RDebugUtils.currentLine=3735575;
 //BA.debugLineNum = 3735575;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3735576;
 //BA.debugLineNum = 3735576;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3735577;
 //BA.debugLineNum = 3735577;BA.debugLine="If RESULT.Tag = \"usuarioA\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("usuarioA"))) { 
RDebugUtils.currentLine=3735578;
 //BA.debugLineNum = 3735578;BA.debugLine="Private n As String = \"Sin Usuario\"";
_n = "Sin Usuario";
RDebugUtils.currentLine=3735579;
 //BA.debugLineNum = 3735579;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group20 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen20 = group20.getSize()
;int index20 = 0;
;
for (; index20 < groupLen20;index20++){
_records = (Object[])(group20.Get(index20));
RDebugUtils.currentLine=3735580;
 //BA.debugLineNum = 3735580;BA.debugLine="n = records(RESULT.Columns.Get(\"USUARIO\"))";
_n = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("USUARIO"))))]);
 }
};
RDebugUtils.currentLine=3735582;
 //BA.debugLineNum = 3735582;BA.debugLine="LogColor(\"**************************  \" & n, C";
__c.LogImpl("03735582","**************************  "+_n,__c.Colors.Green);
RDebugUtils.currentLine=3735583;
 //BA.debugLineNum = 3735583;BA.debugLine="If n = \"OKActivo\"  Then";
if ((_n).equals("OKActivo")) { 
RDebugUtils.currentLine=3735584;
 //BA.debugLineNum = 3735584;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3735585;
 //BA.debugLineNum = 3735585;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3735586;
 //BA.debugLineNum = 3735586;BA.debugLine="cmd.Name = \"select_ruta_GV2_70_14\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_ruta_GV2_70_14";
RDebugUtils.currentLine=3735587;
 //BA.debugLineNum = 3735587;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,e_ru";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._usuario /*String*/ )};
RDebugUtils.currentLine=3735588;
 //BA.debugLineNum = 3735588;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("ruta"));
 }else {
RDebugUtils.currentLine=3735591;
 //BA.debugLineNum = 3735591;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'i";
__c.Msgbox(BA.ObjectToCharSequence("Usuario o password No validos"),BA.ObjectToCharSequence(""),ba);
RDebugUtils.currentLine=3735592;
 //BA.debugLineNum = 3735592;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete f";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from usuarioa");
RDebugUtils.currentLine=3735593;
 //BA.debugLineNum = 3735593;BA.debugLine="ExitApplication";
__c.ExitApplication();
 };
 };
 };
RDebugUtils.currentLine=3735599;
 //BA.debugLineNum = 3735599;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3735600;
 //BA.debugLineNum = 3735600;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3735601;
 //BA.debugLineNum = 3735601;BA.debugLine="If RESULT.Tag = \"FOTO\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("FOTO"))) { 
RDebugUtils.currentLine=3735603;
 //BA.debugLineNum = 3735603;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group40 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen40 = group40.getSize()
;int index40 = 0;
;
for (; index40 < groupLen40;index40++){
_records = (Object[])(group40.Get(index40));
RDebugUtils.currentLine=3735606;
 //BA.debugLineNum = 3735606;BA.debugLine="Dim CODIGO As String = records(RESULT.Columns";
_codigo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_FOTO"))))]);
RDebugUtils.currentLine=3735607;
 //BA.debugLineNum = 3735607;BA.debugLine="Dim FOTOS As String = records(RESULT.Columns.";
_fotos = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CLIENTE"))))]);
RDebugUtils.currentLine=3735608;
 //BA.debugLineNum = 3735608;BA.debugLine="Dim BANDERA As String = records(RESULT.Column";
_bandera = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_BFOTO"))))]);
RDebugUtils.currentLine=3735610;
 //BA.debugLineNum = 3735610;BA.debugLine="Dim fot As Cursor = Starter.skmt.ExecQuery($\"";
_fot = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_fot = (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 FOTOS WHERE CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_codigo))+"'"))));
RDebugUtils.currentLine=3735611;
 //BA.debugLineNum = 3735611;BA.debugLine="If fot.RowCount = 0 Then";
if (_fot.getRowCount()==0) { 
RDebugUtils.currentLine=3735612;
 //BA.debugLineNum = 3735612;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO FOTO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO FOTOS(CLIENTE,FOTO,MOVIMIENTO) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_codigo),(Object)(_fotos),(Object)(_bandera)}));
 }else {
RDebugUtils.currentLine=3735614;
 //BA.debugLineNum = 3735614;BA.debugLine="fot.Position = 0";
_fot.setPosition((int) (0));
RDebugUtils.currentLine=3735615;
 //BA.debugLineNum = 3735615;BA.debugLine="If fot.GetString(\"MOVIMIENTO\") > BANDERA The";
if ((double)(Double.parseDouble(_fot.GetString("MOVIMIENTO")))>(double)(Double.parseDouble(_bandera))) { 
RDebugUtils.currentLine=3735616;
 //BA.debugLineNum = 3735616;BA.debugLine="Starter.skmt.ExecNonQuery2(\"UPDATE FOTOS SE";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE FOTOS SET FOTO = ?, MOVIMIENTO = ? IN (SELECT CUENTA FROM CUENTAA)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_fotos),(Object)(_bandera)}));
 };
 };
 }
};
 };
 };
RDebugUtils.currentLine=3735624;
 //BA.debugLineNum = 3735624;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3735625;
 //BA.debugLineNum = 3735625;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3735626;
 //BA.debugLineNum = 3735626;BA.debugLine="If RESULT.Tag = \"giro\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("giro"))) { 
RDebugUtils.currentLine=3735627;
 //BA.debugLineNum = 3735627;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group59 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen59 = group59.getSize()
;int index59 = 0;
;
for (; index59 < groupLen59;index59++){
_records = (Object[])(group59.Get(index59));
RDebugUtils.currentLine=3735628;
 //BA.debugLineNum = 3735628;BA.debugLine="Dim giro  As String = records(RESULT.Columns.";
_giro = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GR_DESCRIPCION"))))]);
RDebugUtils.currentLine=3735630;
 //BA.debugLineNum = 3735630;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_G";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_GIRO(GIRO) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_giro)}));
 }
};
 };
 };
RDebugUtils.currentLine=3735636;
 //BA.debugLineNum = 3735636;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3735637;
 //BA.debugLineNum = 3735637;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3735638;
 //BA.debugLineNum = 3735638;BA.debugLine="If RESULT.Tag = \"select_abonosp\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("select_abonosp"))) { 
RDebugUtils.currentLine=3735639;
 //BA.debugLineNum = 3735639;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fr";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from ABONOSP");
RDebugUtils.currentLine=3735640;
 //BA.debugLineNum = 3735640;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group69 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen69 = group69.getSize()
;int index69 = 0;
;
for (; index69 < groupLen69;index69++){
_records = (Object[])(group69.Get(index69));
RDebugUtils.currentLine=3735641;
 //BA.debugLineNum = 3735641;BA.debugLine="Dim NOTA As String = records(RESULT.Columns.G";
_nota = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("NOTA"))))]);
RDebugUtils.currentLine=3735642;
 //BA.debugLineNum = 3735642;BA.debugLine="Dim CLIENTE As String = records(RESULT.Column";
_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CLIENTE"))))]);
RDebugUtils.currentLine=3735643;
 //BA.debugLineNum = 3735643;BA.debugLine="Dim SALDO_PENDIENTE As String = records(RESUL";
_saldo_pendiente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("SALDO_PENDIENTE"))))]);
RDebugUtils.currentLine=3735645;
 //BA.debugLineNum = 3735645;BA.debugLine="Dim FECHA_PAGARE As String = records(RESULT.C";
_fecha_pagare = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("FECHA_PREVENTA"))))]);
RDebugUtils.currentLine=3735646;
 //BA.debugLineNum = 3735646;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO ABONO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO ABONOSP(NOTA,CLIENTE,SALDO_PENDIENTE,FECHA) VALUES (?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_nota),(Object)(_cliente),(Object)(_saldo_pendiente),(Object)(_fecha_pagare)}));
 }
};
 };
 };
RDebugUtils.currentLine=3735651;
 //BA.debugLineNum = 3735651;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3735652;
 //BA.debugLineNum = 3735652;BA.debugLine="Dim result1 As DBResult = B4XPages.MainPage.req";
_result1 = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3735653;
 //BA.debugLineNum = 3735653;BA.debugLine="If result1.Tag = \"CHECAENCUESTA\" Then 'query ta";
if ((_result1.Tag /*Object*/ ).equals((Object)("CHECAENCUESTA"))) { 
RDebugUtils.currentLine=3735654;
 //BA.debugLineNum = 3735654;BA.debugLine="For Each records() As Object In result1.Rows";
{
final anywheresoftware.b4a.BA.IterableList group81 = _result1.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen81 = group81.getSize()
;int index81 = 0;
;
for (; index81 < groupLen81;index81++){
_records = (Object[])(group81.Get(index81));
RDebugUtils.currentLine=3735655;
 //BA.debugLineNum = 3735655;BA.debugLine="Dim CUANTOSENCUESTA As String = records(resul";
_cuantosencuesta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result1.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CUANTOS"))))]);
RDebugUtils.currentLine=3735656;
 //BA.debugLineNum = 3735656;BA.debugLine="Log(CUANTOSENCUESTA)";
__c.LogImpl("03735656",_cuantosencuesta,0);
 }
};
RDebugUtils.currentLine=3735658;
 //BA.debugLineNum = 3735658;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=3735659;
 //BA.debugLineNum = 3735659;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=3735660;
 //BA.debugLineNum = 3735660;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=3735661;
 //BA.debugLineNum = 3735661;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=3735662;
 //BA.debugLineNum = 3735662;BA.debugLine="If CUANTOSENCUESTA = \"0\" Then";
if ((_cuantosencuesta).equals("0")) { 
RDebugUtils.currentLine=3735663;
 //BA.debugLineNum = 3735663;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3735664;
 //BA.debugLineNum = 3735664;BA.debugLine="cmd.Name =\"insert_drop_GV2_4\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_drop_GV2_4";
RDebugUtils.currentLine=3735665;
 //BA.debugLineNum = 3735665;BA.debugLine="cmd.Parameters = Array As Object(usuario,B4XP";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._usuario /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._principal /*gunav2.keymon.com.mx.c_principal*/ ._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._sdate /*String*/ ),(Object)(""),(Object)(__ref._stime /*String*/ ),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)("ENCUESTA"),(Object)(__ref._almacen /*String*/ ),(Object)(__c.Application.getVersionName()),(Object)(_starter._encuesta /*String*/ )};
RDebugUtils.currentLine=3735666;
 //BA.debugLineNum = 3735666;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(c";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("inst_drop"));
 };
 };
 };
RDebugUtils.currentLine=3735671;
 //BA.debugLineNum = 3735671;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3735672;
 //BA.debugLineNum = 3735672;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3735673;
 //BA.debugLineNum = 3735673;BA.debugLine="If RESULT.Tag = \"traeFechaFotosGuna\" Then 'quer";
if ((_result.Tag /*Object*/ ).equals((Object)("traeFechaFotosGuna"))) { 
RDebugUtils.currentLine=3735674;
 //BA.debugLineNum = 3735674;BA.debugLine="Subs.logJobDoneResultados(RESULT)";
_subs._logjobdoneresultados /*String*/ (ba,_result);
RDebugUtils.currentLine=3735676;
 //BA.debugLineNum = 3735676;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group101 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen101 = group101.getSize()
;int index101 = 0;
;
for (; index101 < groupLen101;index101++){
_records = (Object[])(group101.Get(index101));
RDebugUtils.currentLine=3735677;
 //BA.debugLineNum = 3735677;BA.debugLine="Private fecha As String = records(RESULT.Colu";
_fecha = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_FOTO_FECHA"))))]);
RDebugUtils.currentLine=3735678;
 //BA.debugLineNum = 3735678;BA.debugLine="Private CLIENTE As String = records(RESULT.Co";
_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CODIGO"))))]);
RDebugUtils.currentLine=3735679;
 //BA.debugLineNum = 3735679;BA.debugLine="Private f As Cursor = Starter.skmt.ExecQuery(";
_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from fotos where cliente = '"+__c.SmartStringFormatter("",(Object)(_cliente))+"' and fecha = '"+__c.SmartStringFormatter("",(Object)(__ref._fecha /*String*/ ))+"'"))));
RDebugUtils.currentLine=3735680;
 //BA.debugLineNum = 3735680;BA.debugLine="Log(\"==> EXISTE LA FOTO:\" & f.RowCount)";
__c.LogImpl("03735680","==> EXISTE LA FOTO:"+BA.NumberToString(__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()),0);
RDebugUtils.currentLine=3735681;
 //BA.debugLineNum = 3735681;BA.debugLine="If f.RowCount = 0 Then";
if (__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { 
RDebugUtils.currentLine=3735682;
 //BA.debugLineNum = 3735682;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3735683;
 //BA.debugLineNum = 3735683;BA.debugLine="cmd.Name = \"traeFotoGuna\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "traeFotoGuna";
RDebugUtils.currentLine=3735684;
 //BA.debugLineNum = 3735684;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(_cliente)};
RDebugUtils.currentLine=3735685;
 //BA.debugLineNum = 3735685;BA.debugLine="Log(\"BUSCAMOS FOTO: \" & ALMACEN &\"|\" & e_rut";
__c.LogImpl("03735685","BUSCAMOS FOTO: "+__ref._almacen /*String*/ +"|"+__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()+"|"+_cliente,0);
RDebugUtils.currentLine=3735686;
 //BA.debugLineNum = 3735686;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)(("traeFotoGuna_"+__c.SmartStringFormatter("",(Object)(_cliente))+"")));
RDebugUtils.currentLine=3735687;
 //BA.debugLineNum = 3735687;BA.debugLine="Log($\"==>>  traeFotoGuna_${CLIENTE}\"$)";
__c.LogImpl("03735687",("==>>  traeFotoGuna_"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0);
 };
 }
};
 };
 };
RDebugUtils.currentLine=3735729;
 //BA.debugLineNum = 3735729;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3735730;
 //BA.debugLineNum = 3735730;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3735731;
 //BA.debugLineNum = 3735731;BA.debugLine="If RESULT.Tag.As(String).Contains(\"traeFotoGuna";
if ((BA.ObjectToString(_result.Tag /*Object*/ )).contains("traeFotoGuna_")) { 
RDebugUtils.currentLine=3735732;
 //BA.debugLineNum = 3735732;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group120 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen120 = group120.getSize()
;int index120 = 0;
;
for (; index120 < groupLen120;index120++){
_records = (Object[])(group120.Get(index120));
RDebugUtils.currentLine=3735733;
 //BA.debugLineNum = 3735733;BA.debugLine="Private FOTO() As Byte = records(RESULT.Colum";
_foto = (byte[])(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_FOTO"))))]);
RDebugUtils.currentLine=3735734;
 //BA.debugLineNum = 3735734;BA.debugLine="Private CLIENTE As String = records(RESULT.Co";
_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CODIGO"))))]);
RDebugUtils.currentLine=3735735;
 //BA.debugLineNum = 3735735;BA.debugLine="Private fecha As String = records(RESULT.Colu";
_fecha = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_FOTO_FECHA"))))]);
RDebugUtils.currentLine=3735736;
 //BA.debugLineNum = 3735736;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE from FOTOS";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("DELETE from FOTOS where CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_cliente))+"'"));
RDebugUtils.currentLine=3735737;
 //BA.debugLineNum = 3735737;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO FOTOS";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO FOTOS(CLIENTE,FOTO,FECHA) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cliente),(Object)(_foto),(Object)(__ref._fecha /*String*/ )}));
 }
};
 };
 };
RDebugUtils.currentLine=3735742;
 //BA.debugLineNum = 3735742;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3735743;
 //BA.debugLineNum = 3735743;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3735744;
 //BA.debugLineNum = 3735744;BA.debugLine="If RESULT.Tag.As(String).Contains(\"traecodigos\"";
if ((BA.ObjectToString(_result.Tag /*Object*/ )).contains("traecodigos")) { 
RDebugUtils.currentLine=3735745;
 //BA.debugLineNum = 3735745;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group132 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen132 = group132.getSize()
;int index132 = 0;
;
for (; index132 < groupLen132;index132++){
_records = (Object[])(group132.Get(index132));
RDebugUtils.currentLine=3735746;
 //BA.debugLineNum = 3735746;BA.debugLine="Private CODIGOCREDITO As String = records(RES";
_codigocredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CLABE"))))]);
RDebugUtils.currentLine=3735747;
 //BA.debugLineNum = 3735747;BA.debugLine="Private BANDERACREDITO As String = records(RE";
_banderacredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CTA"))))]);
RDebugUtils.currentLine=3735748;
 //BA.debugLineNum = 3735748;BA.debugLine="Private CLIENTECREDITO As String = records(RE";
_clientecredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CODIGO"))))]);
RDebugUtils.currentLine=3735750;
 //BA.debugLineNum = 3735750;BA.debugLine="If l_ruta.Text = \"0\" Then";
if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0")) { 
RDebugUtils.currentLine=3735751;
 //BA.debugLineNum = 3735751;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CODI";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CODIGOS_CREDITO(CODIGO,BANDERA,CLIENTE) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_codigocredito),(Object)(_banderacredito),(Object)(_clientecredito)}));
 }else {
RDebugUtils.currentLine=3735753;
 //BA.debugLineNum = 3735753;BA.debugLine="Private hdsgf As Cursor = Starter.skmt.ExecQ";
_hdsgf = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_hdsgf = (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 CODIGOS_CREDITO where CODIGO = '"+__c.SmartStringFormatter("",(Object)(_codigocredito))+"' and BANDERA = '"+__c.SmartStringFormatter("",(Object)(_banderacredito))+"' and CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_clientecredito))+"' "))));
RDebugUtils.currentLine=3735754;
 //BA.debugLineNum = 3735754;BA.debugLine="If hdsgf.RowCount = 0 Then";
if (_hdsgf.getRowCount()==0) { 
RDebugUtils.currentLine=3735755;
 //BA.debugLineNum = 3735755;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO COD";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CODIGOS_CREDITO(CODIGO,BANDERA,CLIENTE) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_codigocredito),(Object)(_banderacredito),(Object)(_clientecredito)}));
 }else {
RDebugUtils.currentLine=3735757;
 //BA.debugLineNum = 3735757;BA.debugLine="Log(\"NO ENTRO\")";
__c.LogImpl("03735757","NO ENTRO",0);
 };
 };
 }
};
 };
 };
RDebugUtils.currentLine=3735767;
 //BA.debugLineNum = 3735767;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3735768;
 //BA.debugLineNum = 3735768;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3735769;
 //BA.debugLineNum = 3735769;BA.debugLine="If RESULT.Tag = \"kmt_datos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("kmt_datos"))) { 
RDebugUtils.currentLine=3735770;
 //BA.debugLineNum = 3735770;BA.debugLine="S_CC.TEXT = \"CARGANDO\"";
__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
RDebugUtils.currentLine=3735771;
 //BA.debugLineNum = 3735771;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group153 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen153 = group153.getSize()
;int index153 = 0;
;
for (; index153 < groupLen153;index153++){
_records = (Object[])(group153.Get(index153));
RDebugUtils.currentLine=3735772;
 //BA.debugLineNum = 3735772;BA.debugLine="Dim CAT_CL_CODIGO As String = records(RESULT.";
_cat_cl_codigo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CODIGO"))))]);
RDebugUtils.currentLine=3735773;
 //BA.debugLineNum = 3735773;BA.debugLine="Dim CAT_CL_RUTA As String = records(RESULT.Co";
_cat_cl_ruta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_RUTA"))))]);
RDebugUtils.currentLine=3735774;
 //BA.debugLineNum = 3735774;BA.debugLine="Dim CAT_CL_NOMBRE As String = records(RESULT.";
_cat_cl_nombre = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NOMBRE"))))]);
RDebugUtils.currentLine=3735775;
 //BA.debugLineNum = 3735775;BA.debugLine="Dim CAT_CL_ATIENDE1 As String = records(RESUL";
_cat_cl_atiende1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_ATIENDE1"))))]);
RDebugUtils.currentLine=3735776;
 //BA.debugLineNum = 3735776;BA.debugLine="Dim CAT_CL_ATIENTE2 As String = records(RESUL";
_cat_cl_atiente2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_ATIENTE2"))))]);
RDebugUtils.currentLine=3735777;
 //BA.debugLineNum = 3735777;BA.debugLine="Dim CAT_CL_TELEFONO As String = records(RESUL";
_cat_cl_telefono = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_TELEFONO"))))]);
RDebugUtils.currentLine=3735778;
 //BA.debugLineNum = 3735778;BA.debugLine="Dim CAT_CL_EMAIL As String = records(RESULT.C";
_cat_cl_email = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_EMAIL"))))]);
RDebugUtils.currentLine=3735779;
 //BA.debugLineNum = 3735779;BA.debugLine="Dim CAT_CL_CALLE As String = records(RESULT.C";
_cat_cl_calle = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CALLE"))))]);
RDebugUtils.currentLine=3735780;
 //BA.debugLineNum = 3735780;BA.debugLine="Dim CAT_CL_NOEXT As String = records(RESULT.C";
_cat_cl_noext = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NOEXT"))))]);
RDebugUtils.currentLine=3735781;
 //BA.debugLineNum = 3735781;BA.debugLine="Dim CAT_CL_NOINT As String = records(RESULT.C";
_cat_cl_noint = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NOINT"))))]);
RDebugUtils.currentLine=3735782;
 //BA.debugLineNum = 3735782;BA.debugLine="Dim CAT_CL_CALLE1 As String = records(RESULT.";
_cat_cl_calle1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CALLE1"))))]);
RDebugUtils.currentLine=3735783;
 //BA.debugLineNum = 3735783;BA.debugLine="Dim CAT_CL_CALLE2 As String = records(RESULT.";
_cat_cl_calle2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CALLE2"))))]);
RDebugUtils.currentLine=3735784;
 //BA.debugLineNum = 3735784;BA.debugLine="Dim CAT_CL_COLONIA As String = records(RESULT";
_cat_cl_colonia = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_COLONIA"))))]);
RDebugUtils.currentLine=3735785;
 //BA.debugLineNum = 3735785;BA.debugLine="Dim CAT_CL_MUNI As String = records(RESULT.Co";
_cat_cl_muni = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_MUNI"))))]);
RDebugUtils.currentLine=3735786;
 //BA.debugLineNum = 3735786;BA.debugLine="Dim CAT_CL_EDO As String = records(RESULT.Col";
_cat_cl_edo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_EDO"))))]);
RDebugUtils.currentLine=3735787;
 //BA.debugLineNum = 3735787;BA.debugLine="Dim CAT_CL_CP As String = records(RESULT.Colu";
_cat_cl_cp = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CP"))))]);
RDebugUtils.currentLine=3735788;
 //BA.debugLineNum = 3735788;BA.debugLine="Dim CAT_CL_LONG As String = records(RESULT.Co";
_cat_cl_long = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_LONG"))))]);
RDebugUtils.currentLine=3735789;
 //BA.debugLineNum = 3735789;BA.debugLine="Dim CAT_CL_LAT As String = records(RESULT.Col";
_cat_cl_lat = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_LAT"))))]);
RDebugUtils.currentLine=3735790;
 //BA.debugLineNum = 3735790;BA.debugLine="Dim CAT_CL_FOTO() As Byte = records(RESULT.Co";
_cat_cl_foto = (byte[])(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_FOTO"))))]);
RDebugUtils.currentLine=3735791;
 //BA.debugLineNum = 3735791;BA.debugLine="Dim CAT_CL_MTOCOMPRA As String = records(RESU";
_cat_cl_mtocompra = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_MTOCOMPRA"))))]);
RDebugUtils.currentLine=3735792;
 //BA.debugLineNum = 3735792;BA.debugLine="Dim CAT_CL_NUM_SERIEFISICO As String = record";
_cat_cl_num_seriefisico = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NUM_SERIEFISICO"))))]);
RDebugUtils.currentLine=3735793;
 //BA.debugLineNum = 3735793;BA.debugLine="Dim CAT_CL_TIPOCLIENTE As String = records(RE";
_cat_cl_tipocliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_TIPOCLIENTE"))))]);
RDebugUtils.currentLine=3735794;
 //BA.debugLineNum = 3735794;BA.debugLine="Dim CAT_CL_LIMITECREDITO As String = records(";
_cat_cl_limitecredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_LIMITECREDITO"))))]);
RDebugUtils.currentLine=3735795;
 //BA.debugLineNum = 3735795;BA.debugLine="Dim CAT_CL_DIASCREDITO As String = records(RE";
_cat_cl_diascredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_DIASCREDITO"))))]);
RDebugUtils.currentLine=3735796;
 //BA.debugLineNum = 3735796;BA.debugLine="Dim CAT_CL_CLASIFICADOR4 As String = records(";
_cat_cl_clasificador4 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CLASIFICADOR4"))))]);
RDebugUtils.currentLine=3735797;
 //BA.debugLineNum = 3735797;BA.debugLine="Dim CAT_CL_CLASIFICADOR3 As String = records(";
_cat_cl_clasificador3 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CLASIFICADOR3"))))]);
RDebugUtils.currentLine=3735798;
 //BA.debugLineNum = 3735798;BA.debugLine="Dim CAT_CL_CLASIFICADOR2 As String = records(";
_cat_cl_clasificador2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CLASIFICADOR2"))))]);
RDebugUtils.currentLine=3735802;
 //BA.debugLineNum = 3735802;BA.debugLine="Dim CAT_CL_BCREDITO As String = records(RESUL";
_cat_cl_bcredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_BCREDITO"))))]);
RDebugUtils.currentLine=3735803;
 //BA.debugLineNum = 3735803;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info3(CAT_CL_CODIGO,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT,CAT_CL_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO, gestion,CAT_CL_BCREDITO,CAT_CL_TIPOCLIENTE,FOTO,CAT_CL_LIMITECREDITO,CAT_CL_DIASCREDITO,CAT_CL_CLASIFICADOR3,CAT_CL_CLASIFICADOR2,CAT_CL_CLASIFICADOR4) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_cl_codigo),(Object)(_cat_cl_ruta),(Object)(_cat_cl_nombre),(Object)(_cat_cl_atiende1),(Object)(_cat_cl_atiente2),(Object)(_cat_cl_telefono),(Object)(_cat_cl_email),(Object)(_cat_cl_calle),(Object)(_cat_cl_noext),(Object)(_cat_cl_noint),(Object)(_cat_cl_calle1),(Object)(_cat_cl_calle2),(Object)(_cat_cl_colonia),(Object)(_cat_cl_muni),(Object)(_cat_cl_edo),(Object)(_cat_cl_cp),(Object)(_cat_cl_long),(Object)(_cat_cl_lat),(Object)(_cat_cl_mtocompra),(Object)(_cat_cl_num_seriefisico),(Object)(_cat_cl_bcredito),(Object)(_cat_cl_tipocliente),(Object)(_cat_cl_foto),(Object)(_cat_cl_limitecredito),(Object)(_cat_cl_diascredito),(Object)(_cat_cl_clasificador3),(Object)(_cat_cl_clasificador2),(Object)(_cat_cl_clasificador4)}));
RDebugUtils.currentLine=3735805;
 //BA.debugLineNum = 3735805;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_STAY_STORE(HSS_CODIGO,  HSS_IN , HSS_OUT , HSS_TOT) VALUES (?,0,0,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_cl_codigo)}));
 }
};
RDebugUtils.currentLine=3735807;
 //BA.debugLineNum = 3735807;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT I";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info3(CAT_CL_CODIGO, CAT_CL_RUTA, CAT_CL_NOMBRE, CAT_CL_LONG, CAT_CL_LAT, CAT_CL_NUM_SERIEFISICO) VALUES (?,?,?,0,0,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("0"),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)("ABORDO")}));
RDebugUtils.currentLine=3735808;
 //BA.debugLineNum = 3735808;BA.debugLine="Listo1 = 1";
__ref._listo1 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3735809;
 //BA.debugLineNum = 3735809;BA.debugLine="S_CC.Text = \"LISTO\"";
__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
RDebugUtils.currentLine=3735811;
 //BA.debugLineNum = 3735811;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo2 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo4 /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=3735813;
 //BA.debugLineNum = 3735813;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3735814;
 //BA.debugLineNum = 3735814;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=3735820;
 //BA.debugLineNum = 3735820;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3735821;
 //BA.debugLineNum = 3735821;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3735822;
 //BA.debugLineNum = 3735822;BA.debugLine="If RESULT.Tag = \"kmt_CAT_CATCLIENTESTODOS\" Then";
if ((_result.Tag /*Object*/ ).equals((Object)("kmt_CAT_CATCLIENTESTODOS"))) { 
RDebugUtils.currentLine=3735824;
 //BA.debugLineNum = 3735824;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group197 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen197 = group197.getSize()
;int index197 = 0;
;
for (; index197 < groupLen197;index197++){
_records = (Object[])(group197.Get(index197));
RDebugUtils.currentLine=3735825;
 //BA.debugLineNum = 3735825;BA.debugLine="Dim CAT_CL_TIPO_RUTA As String = records(RESU";
_cat_cl_tipo_ruta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_TIPO_RUTA"))))]);
RDebugUtils.currentLine=3735826;
 //BA.debugLineNum = 3735826;BA.debugLine="Dim CAT_CL_DIAS_VISITA As String = records(RE";
_cat_cl_dias_visita = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_DIAS_VISITA"))))]);
RDebugUtils.currentLine=3735827;
 //BA.debugLineNum = 3735827;BA.debugLine="Dim CAT_CL_CODIGO As String = records(RESULT.";
_cat_cl_codigo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CODIGO"))))]);
RDebugUtils.currentLine=3735829;
 //BA.debugLineNum = 3735829;BA.debugLine="Dim CAT_CL_CLASIFICADOR3 As String = records(";
_cat_cl_clasificador3 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CLASIFICADOR3"))))]);
RDebugUtils.currentLine=3735830;
 //BA.debugLineNum = 3735830;BA.debugLine="Dim CAT_CL_CLASIFICADOR4 As String = records(";
_cat_cl_clasificador4 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CLASIFICADOR4"))))]);
RDebugUtils.currentLine=3735831;
 //BA.debugLineNum = 3735831;BA.debugLine="Dim CAT_CL_CLASIFICADOR2 As String = records(";
_cat_cl_clasificador2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CLASIFICADOR2"))))]);
RDebugUtils.currentLine=3735832;
 //BA.debugLineNum = 3735832;BA.debugLine="Dim CAT_CL_RUTA As String = records(RESULT.Co";
_cat_cl_ruta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_RUTA"))))]);
RDebugUtils.currentLine=3735833;
 //BA.debugLineNum = 3735833;BA.debugLine="Dim CAT_CL_NOMBRE As String = records(RESULT.";
_cat_cl_nombre = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NOMBRE"))))]);
RDebugUtils.currentLine=3735834;
 //BA.debugLineNum = 3735834;BA.debugLine="Dim CAT_CL_ATIENDE1 As String = records(RESUL";
_cat_cl_atiende1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_ATIENDE1"))))]);
RDebugUtils.currentLine=3735835;
 //BA.debugLineNum = 3735835;BA.debugLine="Dim CAT_CL_ATIENTE2 As String = records(RESUL";
_cat_cl_atiente2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_ATIENTE2"))))]);
RDebugUtils.currentLine=3735836;
 //BA.debugLineNum = 3735836;BA.debugLine="Dim CAT_CL_TELEFONO As String = records(RESUL";
_cat_cl_telefono = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_TELEFONO"))))]);
RDebugUtils.currentLine=3735837;
 //BA.debugLineNum = 3735837;BA.debugLine="Dim CAT_CL_EMAIL As String = records(RESULT.C";
_cat_cl_email = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_EMAIL"))))]);
RDebugUtils.currentLine=3735838;
 //BA.debugLineNum = 3735838;BA.debugLine="Dim CAT_CL_CALLE As String = records(RESULT.C";
_cat_cl_calle = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CALLE"))))]);
RDebugUtils.currentLine=3735839;
 //BA.debugLineNum = 3735839;BA.debugLine="Dim CAT_CL_NOEXT As String = records(RESULT.C";
_cat_cl_noext = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NOEXT"))))]);
RDebugUtils.currentLine=3735840;
 //BA.debugLineNum = 3735840;BA.debugLine="Dim CAT_CL_NOINT As String = records(RESULT.C";
_cat_cl_noint = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NOINT"))))]);
RDebugUtils.currentLine=3735841;
 //BA.debugLineNum = 3735841;BA.debugLine="Dim CAT_CL_CALLE1 As String = records(RESULT.";
_cat_cl_calle1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CALLE1"))))]);
RDebugUtils.currentLine=3735842;
 //BA.debugLineNum = 3735842;BA.debugLine="Dim CAT_CL_CALLE2 As String = records(RESULT.";
_cat_cl_calle2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CALLE2"))))]);
RDebugUtils.currentLine=3735843;
 //BA.debugLineNum = 3735843;BA.debugLine="Dim CAT_CL_COLONIA As String = records(RESULT";
_cat_cl_colonia = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_COLONIA"))))]);
RDebugUtils.currentLine=3735844;
 //BA.debugLineNum = 3735844;BA.debugLine="Dim CAT_CL_MUNI As String = records(RESULT.Co";
_cat_cl_muni = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_MUNI"))))]);
RDebugUtils.currentLine=3735845;
 //BA.debugLineNum = 3735845;BA.debugLine="Dim CAT_CL_EDO As String = records(RESULT.Col";
_cat_cl_edo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_EDO"))))]);
RDebugUtils.currentLine=3735846;
 //BA.debugLineNum = 3735846;BA.debugLine="Dim CAT_CL_CP As String = records(RESULT.Colu";
_cat_cl_cp = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CP"))))]);
RDebugUtils.currentLine=3735847;
 //BA.debugLineNum = 3735847;BA.debugLine="Dim CAT_CL_LONG As String = records(RESULT.Co";
_cat_cl_long = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_LONG"))))]);
RDebugUtils.currentLine=3735848;
 //BA.debugLineNum = 3735848;BA.debugLine="Dim CAT_CL_LAT As String = records(RESULT.Col";
_cat_cl_lat = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_LAT"))))]);
RDebugUtils.currentLine=3735849;
 //BA.debugLineNum = 3735849;BA.debugLine="Dim CAT_CL_MTOCOMPRA As String = records(RESU";
_cat_cl_mtocompra = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_MTOCOMPRA"))))]);
RDebugUtils.currentLine=3735850;
 //BA.debugLineNum = 3735850;BA.debugLine="Dim CAT_CL_NUM_SERIEFISICO As String = record";
_cat_cl_num_seriefisico = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NUM_SERIEFISICO"))))]);
RDebugUtils.currentLine=3735851;
 //BA.debugLineNum = 3735851;BA.debugLine="Dim CAT_CL_BCREDITO As String = records(RESUL";
_cat_cl_bcredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_BCREDITO"))))]);
RDebugUtils.currentLine=3735852;
 //BA.debugLineNum = 3735852;BA.debugLine="Dim CAT_CL_DIASCREDITO As String = records(RE";
_cat_cl_diascredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_DIASCREDITO"))))]);
RDebugUtils.currentLine=3735853;
 //BA.debugLineNum = 3735853;BA.debugLine="Dim CAT_CL_TIPOCLIENTE As String = records(RE";
_cat_cl_tipocliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_TIPOCLIENTE"))))]);
RDebugUtils.currentLine=3735854;
 //BA.debugLineNum = 3735854;BA.debugLine="Dim CAT_CL_LIMITECREDITO As String = records(";
_cat_cl_limitecredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_LIMITECREDITO"))))]);
RDebugUtils.currentLine=3735859;
 //BA.debugLineNum = 3735859;BA.debugLine="Dim CAT_CL_BCREDITO As String = records(RESUL";
_cat_cl_bcredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_BCREDITO"))))]);
RDebugUtils.currentLine=3735860;
 //BA.debugLineNum = 3735860;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_CATCLIENTESTODOS(CAT_CL_TIPO_RUTA,CAT_CL_DIAS_VISITA,CAT_CL_CODIGO,CAT_CL_FOTO,CAT_CL_CLASIFICADOR3,CAT_CL_CLASIFICADOR4,CAT_CL_CLASIFICADOR2,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT,CAT_CL_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO,CAT_CL_BCREDITO,CAT_CL_DIASCREDITO,CAT_CL_TIPOCLIENTE,CAT_CL_LIMITECREDITO) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_cl_tipo_ruta),(Object)(_cat_cl_dias_visita),(Object)(_cat_cl_codigo),(Object)(_cat_cl_foto),(Object)(_cat_cl_clasificador3),(Object)(_cat_cl_clasificador4),(Object)(_cat_cl_clasificador2),(Object)(_cat_cl_ruta),(Object)(_cat_cl_nombre),(Object)(_cat_cl_atiende1),(Object)(_cat_cl_atiente2),(Object)(_cat_cl_telefono),(Object)(_cat_cl_email),(Object)(_cat_cl_calle),(Object)(_cat_cl_noext),(Object)(_cat_cl_noint),(Object)(_cat_cl_calle1),(Object)(_cat_cl_calle2),(Object)(_cat_cl_colonia),(Object)(_cat_cl_muni),(Object)(_cat_cl_edo),(Object)(_cat_cl_cp),(Object)(_cat_cl_long),(Object)(_cat_cl_lat),(Object)(_cat_cl_mtocompra),(Object)(_cat_cl_num_seriefisico),(Object)(_cat_cl_bcredito),(Object)(_cat_cl_diascredito),(Object)(_cat_cl_tipocliente),(Object)(_cat_cl_limitecredito)}));
RDebugUtils.currentLine=3735862;
 //BA.debugLineNum = 3735862;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_STAY_STORE(HSS_CODIGO,  HSS_IN , HSS_OUT , HSS_TOT) VALUES (?,0,0,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_cl_codigo)}));
 }
};
 };
 };
RDebugUtils.currentLine=3735869;
 //BA.debugLineNum = 3735869;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3735870;
 //BA.debugLineNum = 3735870;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3735871;
 //BA.debugLineNum = 3735871;BA.debugLine="If RESULT.Tag = \"kmt_datos2\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("kmt_datos2"))) { 
RDebugUtils.currentLine=3735872;
 //BA.debugLineNum = 3735872;BA.debugLine="S_CC.TEXT = \"CARGANDO\"";
__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
RDebugUtils.currentLine=3735873;
 //BA.debugLineNum = 3735873;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group237 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen237 = group237.getSize()
;int index237 = 0;
;
for (; index237 < groupLen237;index237++){
_records = (Object[])(group237.Get(index237));
RDebugUtils.currentLine=3735874;
 //BA.debugLineNum = 3735874;BA.debugLine="Dim CAT_CL_CODIGO As String = records(RESULT.";
_cat_cl_codigo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CODIGO"))))]);
RDebugUtils.currentLine=3735875;
 //BA.debugLineNum = 3735875;BA.debugLine="Dim CAT_CL_RUTA As String = records(RESULT.Co";
_cat_cl_ruta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_RUTA"))))]);
RDebugUtils.currentLine=3735876;
 //BA.debugLineNum = 3735876;BA.debugLine="Dim CAT_CL_NOMBRE As String = records(RESULT.";
_cat_cl_nombre = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NOMBRE"))))]);
RDebugUtils.currentLine=3735877;
 //BA.debugLineNum = 3735877;BA.debugLine="Dim CAT_CL_ATIENDE1 As String = records(RESUL";
_cat_cl_atiende1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_ATIENDE1"))))]);
RDebugUtils.currentLine=3735878;
 //BA.debugLineNum = 3735878;BA.debugLine="Dim CAT_CL_ATIENTE2 As String = records(RESUL";
_cat_cl_atiente2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_ATIENTE2"))))]);
RDebugUtils.currentLine=3735879;
 //BA.debugLineNum = 3735879;BA.debugLine="Dim CAT_CL_TELEFONO As String = records(RESUL";
_cat_cl_telefono = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_TELEFONO"))))]);
RDebugUtils.currentLine=3735880;
 //BA.debugLineNum = 3735880;BA.debugLine="Dim CAT_CL_EMAIL As String = records(RESULT.C";
_cat_cl_email = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_EMAIL"))))]);
RDebugUtils.currentLine=3735881;
 //BA.debugLineNum = 3735881;BA.debugLine="Dim CAT_CL_CALLE As String = records(RESULT.C";
_cat_cl_calle = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CALLE"))))]);
RDebugUtils.currentLine=3735882;
 //BA.debugLineNum = 3735882;BA.debugLine="Dim CAT_CL_NOEXT As String = records(RESULT.C";
_cat_cl_noext = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NOEXT"))))]);
RDebugUtils.currentLine=3735883;
 //BA.debugLineNum = 3735883;BA.debugLine="Dim CAT_CL_NOINT As String = records(RESULT.C";
_cat_cl_noint = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NOINT"))))]);
RDebugUtils.currentLine=3735884;
 //BA.debugLineNum = 3735884;BA.debugLine="Dim CAT_CL_CALLE1 As String = records(RESULT.";
_cat_cl_calle1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CALLE1"))))]);
RDebugUtils.currentLine=3735885;
 //BA.debugLineNum = 3735885;BA.debugLine="Dim CAT_CL_CALLE2 As String = records(RESULT.";
_cat_cl_calle2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CALLE2"))))]);
RDebugUtils.currentLine=3735886;
 //BA.debugLineNum = 3735886;BA.debugLine="Dim CAT_CL_COLONIA As String = records(RESULT";
_cat_cl_colonia = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_COLONIA"))))]);
RDebugUtils.currentLine=3735887;
 //BA.debugLineNum = 3735887;BA.debugLine="Dim CAT_CL_MUNI As String = records(RESULT.Co";
_cat_cl_muni = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_MUNI"))))]);
RDebugUtils.currentLine=3735888;
 //BA.debugLineNum = 3735888;BA.debugLine="Dim CAT_CL_EDO As String = records(RESULT.Col";
_cat_cl_edo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_EDO"))))]);
RDebugUtils.currentLine=3735889;
 //BA.debugLineNum = 3735889;BA.debugLine="Dim CAT_CL_CP As String = records(RESULT.Colu";
_cat_cl_cp = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CP"))))]);
RDebugUtils.currentLine=3735890;
 //BA.debugLineNum = 3735890;BA.debugLine="Dim CAT_CL_LONG As String = records(RESULT.Co";
_cat_cl_long = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_LONG"))))]);
RDebugUtils.currentLine=3735891;
 //BA.debugLineNum = 3735891;BA.debugLine="Dim CAT_CL_LAT As String = records(RESULT.Col";
_cat_cl_lat = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_LAT"))))]);
RDebugUtils.currentLine=3735892;
 //BA.debugLineNum = 3735892;BA.debugLine="Dim CAT_CL_MTOCOMPRA As String = records(RESU";
_cat_cl_mtocompra = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_MTOCOMPRA"))))]);
RDebugUtils.currentLine=3735893;
 //BA.debugLineNum = 3735893;BA.debugLine="Dim CAT_CL_NUM_SERIEFISICO As String = record";
_cat_cl_num_seriefisico = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NUM_SERIEFISICO"))))]);
RDebugUtils.currentLine=3735894;
 //BA.debugLineNum = 3735894;BA.debugLine="Dim CAT_CL_TIPOCLIENTE As String = records(RE";
_cat_cl_tipocliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_TIPOCLIENTE"))))]);
RDebugUtils.currentLine=3735895;
 //BA.debugLineNum = 3735895;BA.debugLine="Dim CAT_CL_FOTO() As Byte = records(RESULT.Co";
_cat_cl_foto = (byte[])(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_FOTO"))))]);
RDebugUtils.currentLine=3735898;
 //BA.debugLineNum = 3735898;BA.debugLine="Dim CAT_CL_BCREDITO As String = records(RESUL";
_cat_cl_bcredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_BCREDITO"))))]);
RDebugUtils.currentLine=3735899;
 //BA.debugLineNum = 3735899;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info3(CAT_CL_CODIGO,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT,CAT_CL_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO, gestion,CAT_CL_BCREDITO,CAT_CL_TIPOCLIENTE,FOTO) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_cl_codigo),(Object)(_cat_cl_ruta),(Object)(_cat_cl_nombre),(Object)(_cat_cl_atiende1),(Object)(_cat_cl_atiente2),(Object)(_cat_cl_telefono),(Object)(_cat_cl_email),(Object)(_cat_cl_calle),(Object)(_cat_cl_noext),(Object)(_cat_cl_noint),(Object)(_cat_cl_calle1),(Object)(_cat_cl_calle2),(Object)(_cat_cl_colonia),(Object)(_cat_cl_muni),(Object)(_cat_cl_edo),(Object)(_cat_cl_cp),(Object)(_cat_cl_long),(Object)(_cat_cl_lat),(Object)(_cat_cl_mtocompra),(Object)(_cat_cl_num_seriefisico),(Object)(_cat_cl_bcredito),(Object)(_cat_cl_tipocliente),(Object)(_cat_cl_foto)}));
RDebugUtils.currentLine=3735902;
 //BA.debugLineNum = 3735902;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_STAY_STORE(HSS_CODIGO,  HSS_IN , HSS_OUT , HSS_TOT) VALUES (?,0,0,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_cl_codigo)}));
 }
};
RDebugUtils.currentLine=3735904;
 //BA.debugLineNum = 3735904;BA.debugLine="Listo1 = 1";
__ref._listo1 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3735905;
 //BA.debugLineNum = 3735905;BA.debugLine="S_CC.Text = \"LISTO\"";
__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
RDebugUtils.currentLine=3735907;
 //BA.debugLineNum = 3735907;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo2 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo4 /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=3735909;
 //BA.debugLineNum = 3735909;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3735910;
 //BA.debugLineNum = 3735910;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=3735974;
 //BA.debugLineNum = 3735974;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3735975;
 //BA.debugLineNum = 3735975;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3735976;
 //BA.debugLineNum = 3735976;BA.debugLine="If RESULT.Tag = \"hist_promos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_promos"))) { 
RDebugUtils.currentLine=3735977;
 //BA.debugLineNum = 3735977;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group275 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen275 = group275.getSize()
;int index275 = 0;
;
for (; index275 < groupLen275;index275++){
_records = (Object[])(group275.Get(index275));
RDebugUtils.currentLine=3735978;
 //BA.debugLineNum = 3735978;BA.debugLine="Dim HP_CLIENTE As String = records(RESULT.Col";
_hp_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HP_CLIENTE"))))]);
RDebugUtils.currentLine=3735979;
 //BA.debugLineNum = 3735979;BA.debugLine="Dim HP_CODIGO_PROMOCION As String = records(R";
_hp_codigo_promocion = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HP_CODIGO_PROMOCION"))))]);
RDebugUtils.currentLine=3735980;
 //BA.debugLineNum = 3735980;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_PROMOS(HP_CLIENTE, HP_CODIGO_PROMOCION) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hp_cliente),(Object)(_hp_codigo_promocion)}));
 }
};
RDebugUtils.currentLine=3735983;
 //BA.debugLineNum = 3735983;BA.debugLine="If PB1.Progress = 0 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=3735984;
 //BA.debugLineNum = 3735984;BA.debugLine="PB1.Progress = 30";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=3735985;
 //BA.debugLineNum = 3735985;BA.debugLine="S_CH.Text = \"CARGANDO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=3735986;
 //BA.debugLineNum = 3735986;BA.debugLine="ELSE If PB1.Progress = 30 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=3735987;
 //BA.debugLineNum = 3735987;BA.debugLine="PB1.Progress = 60";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=3735988;
 //BA.debugLineNum = 3735988;BA.debugLine="ELSE IF PB1.Progress = 60 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=3735989;
 //BA.debugLineNum = 3735989;BA.debugLine="PB1.Progress = 100";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=3735990;
 //BA.debugLineNum = 3735990;BA.debugLine="S_CH.Text = \"LISTO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
 };
 };
RDebugUtils.currentLine=3735995;
 //BA.debugLineNum = 3735995;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3735996;
 //BA.debugLineNum = 3735996;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3735997;
 //BA.debugLineNum = 3735997;BA.debugLine="If RESULT.Tag = \"histespecial\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("histespecial"))) { 
RDebugUtils.currentLine=3735998;
 //BA.debugLineNum = 3735998;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group294 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen294 = group294.getSize()
;int index294 = 0;
;
for (; index294 < groupLen294;index294++){
_records = (Object[])(group294.Get(index294));
RDebugUtils.currentLine=3735999;
 //BA.debugLineNum = 3735999;BA.debugLine="Dim CLIENTE As String = records(RESULT.Column";
_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CLIENTE"))))]);
RDebugUtils.currentLine=3736000;
 //BA.debugLineNum = 3736000;BA.debugLine="Dim PROMOCION As String = records(RESULT.Colu";
_promocion = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("PRMOCION"))))]);
RDebugUtils.currentLine=3736001;
 //BA.debugLineNum = 3736001;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_PROMOS(HP_CLIENTE, HP_CODIGO_PROMOCION) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cliente),(Object)(_promocion)}));
 }
};
RDebugUtils.currentLine=3736004;
 //BA.debugLineNum = 3736004;BA.debugLine="If PB1.Progress = 0 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=3736005;
 //BA.debugLineNum = 3736005;BA.debugLine="PB1.Progress = 30";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=3736006;
 //BA.debugLineNum = 3736006;BA.debugLine="S_CH.Text = \"CARGANDO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=3736007;
 //BA.debugLineNum = 3736007;BA.debugLine="ELSE If PB1.Progress = 30 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=3736008;
 //BA.debugLineNum = 3736008;BA.debugLine="PB1.Progress = 60";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=3736009;
 //BA.debugLineNum = 3736009;BA.debugLine="ELSE IF PB1.Progress = 60 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=3736010;
 //BA.debugLineNum = 3736010;BA.debugLine="PB1.Progress = 100";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=3736011;
 //BA.debugLineNum = 3736011;BA.debugLine="S_CH.Text = \"LISTO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
 };
 };
RDebugUtils.currentLine=3736016;
 //BA.debugLineNum = 3736016;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736017;
 //BA.debugLineNum = 3736017;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736018;
 //BA.debugLineNum = 3736018;BA.debugLine="If RESULT.Tag = \"hist_cliente_promos\" Then 'que";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_cliente_promos"))) { 
RDebugUtils.currentLine=3736019;
 //BA.debugLineNum = 3736019;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group313 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen313 = group313.getSize()
;int index313 = 0;
;
for (; index313 < groupLen313;index313++){
_records = (Object[])(group313.Get(index313));
RDebugUtils.currentLine=3736020;
 //BA.debugLineNum = 3736020;BA.debugLine="Dim HCCP_CLIENTE As String = records(RESULT.C";
_hccp_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HCCP_CLIENTE"))))]);
RDebugUtils.currentLine=3736021;
 //BA.debugLineNum = 3736021;BA.debugLine="Dim HCCP_PROMO As String = records(RESULT.Col";
_hccp_promo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HCCP_PROMO"))))]);
RDebugUtils.currentLine=3736022;
 //BA.debugLineNum = 3736022;BA.debugLine="Dim HCCP_CANT As String = records(RESULT.Colu";
_hccp_cant = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HCCP_CANT"))))]);
RDebugUtils.currentLine=3736023;
 //BA.debugLineNum = 3736023;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_CLIENTE_CANT_PROMOS(HCCP_CLIENTE, HCCP_PROMO, HCCP_CANT) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hccp_cliente),(Object)(_hccp_promo),(Object)(_hccp_cant)}));
 }
};
 };
 };
RDebugUtils.currentLine=3736029;
 //BA.debugLineNum = 3736029;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736030;
 //BA.debugLineNum = 3736030;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736031;
 //BA.debugLineNum = 3736031;BA.debugLine="If RESULT.Tag = \"promodesp\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("promodesp"))) { 
RDebugUtils.currentLine=3736032;
 //BA.debugLineNum = 3736032;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group324 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen324 = group324.getSize()
;int index324 = 0;
;
for (; index324 < groupLen324;index324++){
_records = (Object[])(group324.Get(index324));
RDebugUtils.currentLine=3736033;
 //BA.debugLineNum = 3736033;BA.debugLine="Dim CAT_PD_ALMACEN As String = records(RESULT";
_cat_pd_almacen = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PD_ALMACEN"))))]);
RDebugUtils.currentLine=3736034;
 //BA.debugLineNum = 3736034;BA.debugLine="Dim CAT_PD_COD_PROMO As String = records(RESU";
_cat_pd_cod_promo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PD_COD_PROMO"))))]);
RDebugUtils.currentLine=3736035;
 //BA.debugLineNum = 3736035;BA.debugLine="Dim CAT_PD_RANGO As String = records(RESULT.C";
_cat_pd_rango = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PD_RANGO"))))]);
RDebugUtils.currentLine=3736036;
 //BA.debugLineNum = 3736036;BA.debugLine="Dim CAT_PD_RANGO2 As String = records(RESULT.";
_cat_pd_rango2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PD_RANGO2"))))]);
RDebugUtils.currentLine=3736037;
 //BA.debugLineNum = 3736037;BA.debugLine="Dim CAT_PD_VIGENCIA As String = records(RESUL";
_cat_pd_vigencia = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PD_VIGENCIA"))))]);
RDebugUtils.currentLine=3736038;
 //BA.debugLineNum = 3736038;BA.debugLine="Dim CAT_PD_DESCUENTO As String = records(RESU";
_cat_pd_descuento = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PD_DESCUENTO"))))]);
RDebugUtils.currentLine=3736039;
 //BA.debugLineNum = 3736039;BA.debugLine="Dim CAT_PD_PRODUCTO As String = records(RESUL";
_cat_pd_producto = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PD_PRODUCTO"))))]);
RDebugUtils.currentLine=3736040;
 //BA.debugLineNum = 3736040;BA.debugLine="Dim CAT_PD_TIER As String = records(RESULT.Co";
_cat_pd_tier = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PD_TIER"))))]);
RDebugUtils.currentLine=3736041;
 //BA.debugLineNum = 3736041;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_PROMOS_DESCUENTOS(CAT_PD_ALMACEN, CAT_PD_COD_PROMO, CAT_PD_RANGO, CAT_PD_VIGENCIA, CAT_PD_DESCUENTO, CAT_PD_PRODUCTO, CAT_PD_TIER,CAT_PD_RANGO2) VALUES (?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_pd_almacen),(Object)(_cat_pd_cod_promo),(Object)(_cat_pd_rango),(Object)(_cat_pd_vigencia),(Object)(_cat_pd_descuento),(Object)(_cat_pd_producto),(Object)(_cat_pd_tier),(Object)(_cat_pd_rango2)}));
 }
};
 };
 };
RDebugUtils.currentLine=3736046;
 //BA.debugLineNum = 3736046;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736047;
 //BA.debugLineNum = 3736047;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736048;
 //BA.debugLineNum = 3736048;BA.debugLine="If RESULT.Tag = \"HIST_PROM\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("HIST_PROM"))) { 
RDebugUtils.currentLine=3736050;
 //BA.debugLineNum = 3736050;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group340 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen340 = group340.getSize()
;int index340 = 0;
;
for (; index340 < groupLen340;index340++){
_records = (Object[])(group340.Get(index340));
RDebugUtils.currentLine=3736051;
 //BA.debugLineNum = 3736051;BA.debugLine="Dim HVD_CLIENTE2 As String = records(RESULT.C";
_hvd_cliente2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_CLIENTE"))))]);
RDebugUtils.currentLine=3736052;
 //BA.debugLineNum = 3736052;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PROMO_ESP(HVD_CLIENTE) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente2)}));
 }
};
 };
 };
RDebugUtils.currentLine=3736058;
 //BA.debugLineNum = 3736058;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736059;
 //BA.debugLineNum = 3736059;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736060;
 //BA.debugLineNum = 3736060;BA.debugLine="If RESULT.Tag = \"HIST_MARCAS_CUOTAS\" Then 'quer";
if ((_result.Tag /*Object*/ ).equals((Object)("HIST_MARCAS_CUOTAS"))) { 
RDebugUtils.currentLine=3736061;
 //BA.debugLineNum = 3736061;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group349 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen349 = group349.getSize()
;int index349 = 0;
;
for (; index349 < groupLen349;index349++){
_records = (Object[])(group349.Get(index349));
RDebugUtils.currentLine=3736062;
 //BA.debugLineNum = 3736062;BA.debugLine="Dim HMC_MARCA As String = records(RESULT.Colu";
_hmc_marca = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HMC_MARCA"))))]);
RDebugUtils.currentLine=3736063;
 //BA.debugLineNum = 3736063;BA.debugLine="Dim HMC_TOTAL As String = records(RESULT.Colu";
_hmc_total = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HMC_TOTAL"))))]);
RDebugUtils.currentLine=3736064;
 //BA.debugLineNum = 3736064;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_MARCAS_CUOTAS(HMC_MARCA, HMC_TOTAL) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hmc_marca),(Object)(_hmc_total)}));
 }
};
 };
 };
RDebugUtils.currentLine=3736070;
 //BA.debugLineNum = 3736070;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736071;
 //BA.debugLineNum = 3736071;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736072;
 //BA.debugLineNum = 3736072;BA.debugLine="If RESULT.Tag = \"coordenadas\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("coordenadas"))) { 
RDebugUtils.currentLine=3736073;
 //BA.debugLineNum = 3736073;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group359 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen359 = group359.getSize()
;int index359 = 0;
;
for (; index359 < groupLen359;index359++){
_records = (Object[])(group359.Get(index359));
RDebugUtils.currentLine=3736074;
 //BA.debugLineNum = 3736074;BA.debugLine="Dim latitud As String = records(RESULT.Column";
_latitud = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))]);
RDebugUtils.currentLine=3736075;
 //BA.debugLineNum = 3736075;BA.debugLine="Dim longitud As String = records(RESULT.Colum";
_longitud = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))]);
RDebugUtils.currentLine=3736076;
 //BA.debugLineNum = 3736076;BA.debugLine="Dim GEOCERCA As String = records(RESULT.Colum";
_geocerca = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_GEOCERCA"))))]);
RDebugUtils.currentLine=3736077;
 //BA.debugLineNum = 3736077;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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)("LATITUD"),(Object)(_latitud)}));
RDebugUtils.currentLine=3736078;
 //BA.debugLineNum = 3736078;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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)("LONGITUD"),(Object)(_longitud)}));
RDebugUtils.currentLine=3736079;
 //BA.debugLineNum = 3736079;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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)("GEOCERCA"),(Object)(_geocerca)}));
 }
};
 };
 };
RDebugUtils.currentLine=3736085;
 //BA.debugLineNum = 3736085;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736086;
 //BA.debugLineNum = 3736086;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736087;
 //BA.debugLineNum = 3736087;BA.debugLine="If RESULT.Tag = \"password\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("password"))) { 
RDebugUtils.currentLine=3736088;
 //BA.debugLineNum = 3736088;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group372 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen372 = group372.getSize()
;int index372 = 0;
;
for (; index372 < groupLen372;index372++){
_records = (Object[])(group372.Get(index372));
RDebugUtils.currentLine=3736089;
 //BA.debugLineNum = 3736089;BA.debugLine="Dim password As String = records(RESULT.Colum";
_password = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_VA_VALOR"))))]);
RDebugUtils.currentLine=3736090;
 //BA.debugLineNum = 3736090;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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)("pasword"),(Object)(_password)}));
 }
};
 };
 };
RDebugUtils.currentLine=3736096;
 //BA.debugLineNum = 3736096;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736097;
 //BA.debugLineNum = 3736097;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736098;
 //BA.debugLineNum = 3736098;BA.debugLine="If RESULT.Tag = \"KMT_VENTAFUTURA\" Then 'query t";
if ((_result.Tag /*Object*/ ).equals((Object)("KMT_VENTAFUTURA"))) { 
RDebugUtils.currentLine=3736099;
 //BA.debugLineNum = 3736099;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group381 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen381 = group381.getSize()
;int index381 = 0;
;
for (; index381 < groupLen381;index381++){
_records = (Object[])(group381.Get(index381));
RDebugUtils.currentLine=3736100;
 //BA.debugLineNum = 3736100;BA.debugLine="Dim CAT_RU_VENTAF As String = records(RESULT.";
_cat_ru_ventaf = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_RU_VENTAF"))))]);
RDebugUtils.currentLine=3736101;
 //BA.debugLineNum = 3736101;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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)("VENTAFUTURA"),(Object)(_cat_ru_ventaf)}));
 }
};
 };
 };
RDebugUtils.currentLine=3736108;
 //BA.debugLineNum = 3736108;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736109;
 //BA.debugLineNum = 3736109;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736110;
 //BA.debugLineNum = 3736110;BA.debugLine="If RESULT.Tag = \"hist_comp_promos\" Then 'query";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_comp_promos"))) { 
RDebugUtils.currentLine=3736111;
 //BA.debugLineNum = 3736111;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group390 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen390 = group390.getSize()
;int index390 = 0;
;
for (; index390 < groupLen390;index390++){
_records = (Object[])(group390.Get(index390));
RDebugUtils.currentLine=3736112;
 //BA.debugLineNum = 3736112;BA.debugLine="Dim CAT_PA_ID As String = records(RESULT.Colu";
_cat_pa_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PA_ID"))))]);
RDebugUtils.currentLine=3736113;
 //BA.debugLineNum = 3736113;BA.debugLine="Dim CAT_PA_MAXPROM As String = records(RESULT";
_cat_pa_maxprom = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PA_MAXPROM"))))]);
RDebugUtils.currentLine=3736114;
 //BA.debugLineNum = 3736114;BA.debugLine="Dim CAT_PA_MAXPROMREC As String = records(RES";
_cat_pa_maxpromrec = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PA_MAXPROMREC"))))]);
RDebugUtils.currentLine=3736115;
 //BA.debugLineNum = 3736115;BA.debugLine="Dim CAT_PA_MAXPROMCLIE As String = records(RE";
_cat_pa_maxpromclie = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PA_MAXPROMCLIE"))))]);
RDebugUtils.currentLine=3736116;
 //BA.debugLineNum = 3736116;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PROMOS_COMP(CAT_PA_ID, CAT_PA_MAXPROM, CAT_PA_MAXPROMREC, CAT_PA_MAXPROMCLIE) VALUES (?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_pa_id),(Object)(_cat_pa_maxprom),(Object)(_cat_pa_maxpromrec),(Object)(_cat_pa_maxpromclie)}));
 }
};
RDebugUtils.currentLine=3736118;
 //BA.debugLineNum = 3736118;BA.debugLine="If PB1.Progress = 0 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=3736119;
 //BA.debugLineNum = 3736119;BA.debugLine="PB1.Progress = 30";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=3736120;
 //BA.debugLineNum = 3736120;BA.debugLine="S_CH.Text = \"CARGANDO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=3736121;
 //BA.debugLineNum = 3736121;BA.debugLine="ELSE If PB1.Progress = 30 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=3736122;
 //BA.debugLineNum = 3736122;BA.debugLine="PB1.Progress = 60";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=3736123;
 //BA.debugLineNum = 3736123;BA.debugLine="ELSE IF PB1.Progress = 60 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=3736124;
 //BA.debugLineNum = 3736124;BA.debugLine="PB1.Progress = 100";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=3736125;
 //BA.debugLineNum = 3736125;BA.debugLine="S_CH.Text = \"LISTO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
 };
 };
RDebugUtils.currentLine=3736142;
 //BA.debugLineNum = 3736142;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736143;
 //BA.debugLineNum = 3736143;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736144;
 //BA.debugLineNum = 3736144;BA.debugLine="If RESULT.Tag = \"marcas_rutas\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("marcas_rutas"))) { 
RDebugUtils.currentLine=3736145;
 //BA.debugLineNum = 3736145;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group411 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen411 = group411.getSize()
;int index411 = 0;
;
for (; index411 < groupLen411;index411++){
_records = (Object[])(group411.Get(index411));
RDebugUtils.currentLine=3736146;
 //BA.debugLineNum = 3736146;BA.debugLine="Dim HVD_MARCA As String = records(RESULT.Colu";
_hvd_marca = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_MARCA"))))]);
RDebugUtils.currentLine=3736147;
 //BA.debugLineNum = 3736147;BA.debugLine="Dim CLIENTES As String = records(RESULT.Colum";
_clientes = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CLIENTES"))))]);
RDebugUtils.currentLine=3736148;
 //BA.debugLineNum = 3736148;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO MARCAS_RUTAS(HVD_MARCA, CLIENTES) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_marca),(Object)(_clientes)}));
 }
};
 };
 };
RDebugUtils.currentLine=3736177;
 //BA.debugLineNum = 3736177;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736178;
 //BA.debugLineNum = 3736178;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736179;
 //BA.debugLineNum = 3736179;BA.debugLine="If RESULT.Tag = \"COMISIONES\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("COMISIONES"))) { 
RDebugUtils.currentLine=3736180;
 //BA.debugLineNum = 3736180;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group421 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen421 = group421.getSize()
;int index421 = 0;
;
for (; index421 < groupLen421;index421++){
_records = (Object[])(group421.Get(index421));
RDebugUtils.currentLine=3736181;
 //BA.debugLineNum = 3736181;BA.debugLine="Dim HCM_TOTAL_V As String = records(RESULT.Co";
_hcm_total_v = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HCM_TOTAL_V"))))]);
RDebugUtils.currentLine=3736182;
 //BA.debugLineNum = 3736182;BA.debugLine="Dim HCM_TOTAL_VIVE As String = records(RESULT";
_hcm_total_vive = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HCM_TOTAL_VIVE"))))]);
RDebugUtils.currentLine=3736183;
 //BA.debugLineNum = 3736183;BA.debugLine="Dim HCM_TOTAL_GUNA As String = records(RESULT";
_hcm_total_guna = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HCM_TOTAL_GUNA"))))]);
RDebugUtils.currentLine=3736184;
 //BA.debugLineNum = 3736184;BA.debugLine="Dim HCM_TOTAL_BEB As String = records(RESULT.";
_hcm_total_beb = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HCM_TOTAL_BEB"))))]);
RDebugUtils.currentLine=3736185;
 //BA.debugLineNum = 3736185;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_COMISIONES_MOVIL (HCM_TOTAL_V , HCM_TOTAL_VIVE , HCM_TOTAL_GUNA ,	HCM_TOTAL_BEB) VALUES (?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hcm_total_v),(Object)(_hcm_total_vive),(Object)(_hcm_total_guna),(Object)(_hcm_total_beb)}));
 }
};
 };
 };
RDebugUtils.currentLine=3736190;
 //BA.debugLineNum = 3736190;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736191;
 //BA.debugLineNum = 3736191;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736192;
 //BA.debugLineNum = 3736192;BA.debugLine="If RESULT.Tag = \"ENCUESTA_CLIENTE\" Then 'query";
if ((_result.Tag /*Object*/ ).equals((Object)("ENCUESTA_CLIENTE"))) { 
RDebugUtils.currentLine=3736193;
 //BA.debugLineNum = 3736193;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group433 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen433 = group433.getSize()
;int index433 = 0;
;
for (; index433 < groupLen433;index433++){
_records = (Object[])(group433.Get(index433));
RDebugUtils.currentLine=3736194;
 //BA.debugLineNum = 3736194;BA.debugLine="Dim HEC_CLIENTE As String = records(RESULT.Co";
_hec_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HEC_CLIENTE"))))]);
RDebugUtils.currentLine=3736195;
 //BA.debugLineNum = 3736195;BA.debugLine="Dim HEC_MODULO As String = records(RESULT.Col";
_hec_modulo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HEC_MODULO"))))]);
RDebugUtils.currentLine=3736196;
 //BA.debugLineNum = 3736196;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_ENCUESTA_CLIENTE (HEC_CLIENTE , HEC_MODULO) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hec_cliente),(Object)(_hec_modulo)}));
 }
};
 };
 };
RDebugUtils.currentLine=3736201;
 //BA.debugLineNum = 3736201;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736202;
 //BA.debugLineNum = 3736202;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736203;
 //BA.debugLineNum = 3736203;BA.debugLine="If RESULT.Tag = \"promoesp\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("promoesp"))) { 
RDebugUtils.currentLine=3736204;
 //BA.debugLineNum = 3736204;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fr";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_PROMO_ESP");
RDebugUtils.currentLine=3736205;
 //BA.debugLineNum = 3736205;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group444 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen444 = group444.getSize()
;int index444 = 0;
;
for (; index444 < groupLen444;index444++){
_records = (Object[])(group444.Get(index444));
RDebugUtils.currentLine=3736206;
 //BA.debugLineNum = 3736206;BA.debugLine="Dim CAT_PE_ID As String = records(RESULT.Colu";
_cat_pe_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PE_ID"))))]);
RDebugUtils.currentLine=3736207;
 //BA.debugLineNum = 3736207;BA.debugLine="Dim CAT_PE_IDPROMO As String = records(RESULT";
_cat_pe_idpromo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PE_IDPROMO"))))]);
RDebugUtils.currentLine=3736208;
 //BA.debugLineNum = 3736208;BA.debugLine="Dim CAT_PE_MONTO As String = records(RESULT.C";
_cat_pe_monto = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PE_MONTO"))))]);
RDebugUtils.currentLine=3736209;
 //BA.debugLineNum = 3736209;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_PROMO_ESP(CAT_PE_ID, CAT_PE_IDPROMO, CAT_PE_MONTO) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_pe_id),(Object)(_cat_pe_idpromo),(Object)(_cat_pe_monto)}));
 }
};
 };
 };
RDebugUtils.currentLine=3736215;
 //BA.debugLineNum = 3736215;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736216;
 //BA.debugLineNum = 3736216;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736217;
 //BA.debugLineNum = 3736217;BA.debugLine="If RESULT.Tag = \"HIST_ENCUESTA2\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("HIST_ENCUESTA2"))) { 
RDebugUtils.currentLine=3736218;
 //BA.debugLineNum = 3736218;BA.debugLine="B4XPages.MainPage.skmt.BeginTransaction";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction();
RDebugUtils.currentLine=3736219;
 //BA.debugLineNum = 3736219;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group456 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen456 = group456.getSize()
;int index456 = 0;
;
for (; index456 < groupLen456;index456++){
_records = (Object[])(group456.Get(index456));
RDebugUtils.currentLine=3736220;
 //BA.debugLineNum = 3736220;BA.debugLine="Dim HE_CLIENTE As String = records(RESULT.Col";
_he_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HE_CLIENTE"))))]);
RDebugUtils.currentLine=3736221;
 //BA.debugLineNum = 3736221;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_ENCUESTA2(HE_CLIENTE) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_he_cliente)}));
 }
};
RDebugUtils.currentLine=3736223;
 //BA.debugLineNum = 3736223;BA.debugLine="B4XPages.MainPage.skmt.TransactionSuccessful";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful();
RDebugUtils.currentLine=3736224;
 //BA.debugLineNum = 3736224;BA.debugLine="B4XPages.MainPage.skmt.EndTransaction";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction();
 };
 };
RDebugUtils.currentLine=3736228;
 //BA.debugLineNum = 3736228;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736229;
 //BA.debugLineNum = 3736229;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736230;
 //BA.debugLineNum = 3736230;BA.debugLine="If RESULT.Tag = \"gunaprod\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprod"))) { 
RDebugUtils.currentLine=3736231;
 //BA.debugLineNum = 3736231;BA.debugLine="If PB2.Progress < 30 Then S_CP.Text = \"CARGAND";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()<30) { 
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));};
RDebugUtils.currentLine=3736232;
 //BA.debugLineNum = 3736232;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group468 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen468 = group468.getSize()
;int index468 = 0;
;
for (; index468 < groupLen468;index468++){
_records = (Object[])(group468.Get(index468));
RDebugUtils.currentLine=3736233;
 //BA.debugLineNum = 3736233;BA.debugLine="Dim CAT_GP_ID As String = records(RESULT.Colu";
_cat_gp_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_ID"))))]);
RDebugUtils.currentLine=3736234;
 //BA.debugLineNum = 3736234;BA.debugLine="Dim CAT_GP_NOMBRE As String = records(RESULT.";
_cat_gp_nombre = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_NOMBRE"))))]);
RDebugUtils.currentLine=3736235;
 //BA.debugLineNum = 3736235;BA.debugLine="Dim CAT_GP_IMP1 As String = records(RESULT.Co";
_cat_gp_imp1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMP1"))))]);
RDebugUtils.currentLine=3736236;
 //BA.debugLineNum = 3736236;BA.debugLine="Dim CAT_GP_IMP2 As String = records(RESULT.Co";
_cat_gp_imp2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMP2"))))]);
RDebugUtils.currentLine=3736237;
 //BA.debugLineNum = 3736237;BA.debugLine="Dim CAT_GP_PRECIO As String = records(RESULT.";
_cat_gp_precio = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_PRECIO"))))]);
RDebugUtils.currentLine=3736238;
 //BA.debugLineNum = 3736238;BA.debugLine="Dim CAT_GP_CLASIF As String = records(RESULT.";
_cat_gp_clasif = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_CLASIF"))))]);
RDebugUtils.currentLine=3736239;
 //BA.debugLineNum = 3736239;BA.debugLine="Dim CAT_GP_STS As String = records(RESULT.Col";
_cat_gp_sts = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_STS"))))]);
RDebugUtils.currentLine=3736240;
 //BA.debugLineNum = 3736240;BA.debugLine="Dim CAT_GP_TIPO As String = records(RESULT.Co";
_cat_gp_tipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_TIPO"))))]);
RDebugUtils.currentLine=3736241;
 //BA.debugLineNum = 3736241;BA.debugLine="Dim CAT_GP_SUBTIPO As String = records(RESULT";
_cat_gp_subtipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_SUBTIPO"))))]);
RDebugUtils.currentLine=3736242;
 //BA.debugLineNum = 3736242;BA.debugLine="Dim CAT_GP_IMG() As Byte = records(RESULT.Col";
_cat_gp_img = (byte[])(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMG"))))]);
RDebugUtils.currentLine=3736243;
 //BA.debugLineNum = 3736243;BA.debugLine="Dim CAT_GP_ALMACEN As Int = records(RESULT.Co";
_cat_gp_almacen = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_ALMACEN"))))]));
RDebugUtils.currentLine=3736244;
 //BA.debugLineNum = 3736244;BA.debugLine="Dim CAT_GP_DEV As String = records(RESULT.Col";
_cat_gp_dev = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_DEV"))))]);
RDebugUtils.currentLine=3736245;
 //BA.debugLineNum = 3736245;BA.debugLine="Dim CAT_GP_TIPOPROD As Int = records(RESULT.C";
_cat_gp_tipoprod = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_TIPOPROD"))))]));
RDebugUtils.currentLine=3736246;
 //BA.debugLineNum = 3736246;BA.debugLine="Dim CAT_GP_INICIATIVA As Int = records(RESULT";
_cat_gp_iniciativa = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_INICIATIVA"))))]));
RDebugUtils.currentLine=3736247;
 //BA.debugLineNum = 3736247;BA.debugLine="Dim CAT_LISTAPRECIO As String = records(RESUL";
_cat_listaprecio = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_LISTAPRECIO"))))]);
RDebugUtils.currentLine=3736248;
 //BA.debugLineNum = 3736248;BA.debugLine="Dim CAT_GP_CONVERSION3 As String = records(RE";
_cat_gp_conversion3 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_CONVERSION3"))))]);
RDebugUtils.currentLine=3736249;
 //BA.debugLineNum = 3736249;BA.debugLine="Dim CAT_GP_CONVERSION2 As String = records(RE";
_cat_gp_conversion2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_CONVERSION2"))))]);
RDebugUtils.currentLine=3736253;
 //BA.debugLineNum = 3736253;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_GUNAPROD(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CAT_GP_TIPOPROD,CAT_GP_INICIATIVA,CAT_LISTAPRECIO, CAT_GP_DEV, CAT_GP_CONVERSION3,CAT_GP_CONVERSION2) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_gp_id),(Object)(_cat_gp_nombre),(Object)(_cat_gp_imp1),(Object)(_cat_gp_imp2),(Object)(_cat_gp_precio),(Object)(_cat_gp_clasif),(Object)(_cat_gp_sts),(Object)(_cat_gp_tipo),(Object)(_cat_gp_subtipo),(Object)(_cat_gp_img),(Object)(_cat_gp_almacen),(Object)(_cat_gp_tipoprod),(Object)(_cat_gp_iniciativa),(Object)(_cat_listaprecio),(Object)(_cat_gp_dev),(Object)(_cat_gp_conversion3),(Object)(_cat_gp_conversion2)}));
 }
};
RDebugUtils.currentLine=3736255;
 //BA.debugLineNum = 3736255;BA.debugLine="Listo2=1";
__ref._listo2 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3736256;
 //BA.debugLineNum = 3736256;BA.debugLine="If PB2.Progress = 0 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=3736257;
 //BA.debugLineNum = 3736257;BA.debugLine="PB2.Progress = 30";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=3736258;
 //BA.debugLineNum = 3736258;BA.debugLine="S_CP.Text = \"CARGANDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=3736259;
 //BA.debugLineNum = 3736259;BA.debugLine="ELSE If PB2.Progress = 30 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=3736260;
 //BA.debugLineNum = 3736260;BA.debugLine="PB2.Progress = 60";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=3736261;
 //BA.debugLineNum = 3736261;BA.debugLine="ELSE IF PB2.Progress = 60 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=3736262;
 //BA.debugLineNum = 3736262;BA.debugLine="PB2.Progress = 100";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=3736263;
 //BA.debugLineNum = 3736263;BA.debugLine="S_CP.Text = \"LISTO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
RDebugUtils.currentLine=3736266;
 //BA.debugLineNum = 3736266;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo2 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo4 /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=3736268;
 //BA.debugLineNum = 3736268;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3736269;
 //BA.debugLineNum = 3736269;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=3736274;
 //BA.debugLineNum = 3736274;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736275;
 //BA.debugLineNum = 3736275;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736276;
 //BA.debugLineNum = 3736276;BA.debugLine="If RESULT.Tag = \"gunaprod2\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprod2"))) { 
RDebugUtils.currentLine=3736277;
 //BA.debugLineNum = 3736277;BA.debugLine="If PB2.Progress < 30 Then S_CP.Text = \"CARGAND";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()<30) { 
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));};
RDebugUtils.currentLine=3736278;
 //BA.debugLineNum = 3736278;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group508 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen508 = group508.getSize()
;int index508 = 0;
;
for (; index508 < groupLen508;index508++){
_records = (Object[])(group508.Get(index508));
RDebugUtils.currentLine=3736279;
 //BA.debugLineNum = 3736279;BA.debugLine="Dim CAT_GP_ID As String = records(RESULT.Colu";
_cat_gp_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_ID"))))]);
RDebugUtils.currentLine=3736280;
 //BA.debugLineNum = 3736280;BA.debugLine="Dim CAT_GP_NOMBRE As String = records(RESULT.";
_cat_gp_nombre = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_NOMBRE"))))]);
RDebugUtils.currentLine=3736281;
 //BA.debugLineNum = 3736281;BA.debugLine="Dim CAT_GP_IMP1 As String = records(RESULT.Co";
_cat_gp_imp1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMP1"))))]);
RDebugUtils.currentLine=3736282;
 //BA.debugLineNum = 3736282;BA.debugLine="Dim CAT_GP_IMP2 As String = records(RESULT.Co";
_cat_gp_imp2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMP2"))))]);
RDebugUtils.currentLine=3736283;
 //BA.debugLineNum = 3736283;BA.debugLine="Dim CAT_GP_PRECIO As String = records(RESULT.";
_cat_gp_precio = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_PRECIO"))))]);
RDebugUtils.currentLine=3736284;
 //BA.debugLineNum = 3736284;BA.debugLine="Dim CAT_GP_CLASIF As String = records(RESULT.";
_cat_gp_clasif = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_CLASIF"))))]);
RDebugUtils.currentLine=3736285;
 //BA.debugLineNum = 3736285;BA.debugLine="Dim CAT_GP_STS As String = records(RESULT.Col";
_cat_gp_sts = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_STS"))))]);
RDebugUtils.currentLine=3736286;
 //BA.debugLineNum = 3736286;BA.debugLine="Dim CAT_GP_TIPO As String = records(RESULT.Co";
_cat_gp_tipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_TIPO"))))]);
RDebugUtils.currentLine=3736287;
 //BA.debugLineNum = 3736287;BA.debugLine="Dim CAT_GP_SUBTIPO As String = records(RESULT";
_cat_gp_subtipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_SUBTIPO"))))]);
RDebugUtils.currentLine=3736288;
 //BA.debugLineNum = 3736288;BA.debugLine="Dim CAT_GP_IMG() As Byte = records(RESULT.Col";
_cat_gp_img = (byte[])(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMG"))))]);
RDebugUtils.currentLine=3736289;
 //BA.debugLineNum = 3736289;BA.debugLine="Dim CAT_GP_ALMACEN As Int = records(RESULT.Co";
_cat_gp_almacen = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_ALMACEN"))))]));
RDebugUtils.currentLine=3736291;
 //BA.debugLineNum = 3736291;BA.debugLine="Dim CAT_GP_TIPOPROD As Int = records(RESULT.C";
_cat_gp_tipoprod = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_TIPOPROD"))))]));
RDebugUtils.currentLine=3736292;
 //BA.debugLineNum = 3736292;BA.debugLine="Dim CAT_GP_INICIATIVA As Int = records(RESULT";
_cat_gp_iniciativa = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_INICIATIVA"))))]));
RDebugUtils.currentLine=3736293;
 //BA.debugLineNum = 3736293;BA.debugLine="Dim CAT_GP_CODPROMO As String = records(RESUL";
_cat_gp_codpromo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_CODPROMO"))))]);
RDebugUtils.currentLine=3736296;
 //BA.debugLineNum = 3736296;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_GUNAPROD2(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CAT_GP_TIPOPROD,CAT_GP_INICIATIVA,CAT_GP_CODPROMO) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_gp_id),(Object)(_cat_gp_nombre),(Object)(_cat_gp_imp1),(Object)(_cat_gp_imp2),(Object)(_cat_gp_precio),(Object)(_cat_gp_clasif),(Object)(_cat_gp_sts),(Object)(_cat_gp_tipo),(Object)(_cat_gp_subtipo),(Object)(_cat_gp_img),(Object)(_cat_gp_almacen),(Object)(_cat_gp_tipoprod),(Object)(_cat_gp_iniciativa),(Object)(_cat_gp_codpromo)}));
 }
};
RDebugUtils.currentLine=3736298;
 //BA.debugLineNum = 3736298;BA.debugLine="Listo2=1";
__ref._listo2 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3736299;
 //BA.debugLineNum = 3736299;BA.debugLine="If PB2.Progress = 0 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=3736300;
 //BA.debugLineNum = 3736300;BA.debugLine="PB2.Progress = 30";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=3736301;
 //BA.debugLineNum = 3736301;BA.debugLine="S_CP.Text = \"CARGANDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=3736302;
 //BA.debugLineNum = 3736302;BA.debugLine="ELSE If PB2.Progress = 30 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=3736303;
 //BA.debugLineNum = 3736303;BA.debugLine="PB2.Progress = 60";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=3736304;
 //BA.debugLineNum = 3736304;BA.debugLine="ELSE IF PB2.Progress = 60 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=3736305;
 //BA.debugLineNum = 3736305;BA.debugLine="PB2.Progress = 100";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=3736306;
 //BA.debugLineNum = 3736306;BA.debugLine="S_CP.Text = \"LISTO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
RDebugUtils.currentLine=3736309;
 //BA.debugLineNum = 3736309;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo2 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo4 /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=3736311;
 //BA.debugLineNum = 3736311;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3736312;
 //BA.debugLineNum = 3736312;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=3736317;
 //BA.debugLineNum = 3736317;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736318;
 //BA.debugLineNum = 3736318;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736319;
 //BA.debugLineNum = 3736319;BA.debugLine="If RESULT.Tag = \"gunaprodp\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprodp"))) { 
RDebugUtils.currentLine=3736320;
 //BA.debugLineNum = 3736320;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group544 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen544 = group544.getSize()
;int index544 = 0;
;
for (; index544 < groupLen544;index544++){
_records = (Object[])(group544.Get(index544));
RDebugUtils.currentLine=3736321;
 //BA.debugLineNum = 3736321;BA.debugLine="Dim CAT_GP_ID As String = records(RESULT.Colu";
_cat_gp_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_ID"))))]);
RDebugUtils.currentLine=3736322;
 //BA.debugLineNum = 3736322;BA.debugLine="Dim CAT_GP_NOMBRE As String = records(RESULT.";
_cat_gp_nombre = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_NOMBRE"))))]);
RDebugUtils.currentLine=3736323;
 //BA.debugLineNum = 3736323;BA.debugLine="Dim CAT_GP_IMP1 As String = records(RESULT.Co";
_cat_gp_imp1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMP1"))))]);
RDebugUtils.currentLine=3736324;
 //BA.debugLineNum = 3736324;BA.debugLine="Dim CAT_GP_IMP2 As String = records(RESULT.Co";
_cat_gp_imp2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMP2"))))]);
RDebugUtils.currentLine=3736325;
 //BA.debugLineNum = 3736325;BA.debugLine="Dim CAT_GP_PRECIO As String = records(RESULT.";
_cat_gp_precio = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_PRECIO"))))]);
RDebugUtils.currentLine=3736326;
 //BA.debugLineNum = 3736326;BA.debugLine="Dim CAT_GP_CLASIF As String = records(RESULT.";
_cat_gp_clasif = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_CLASIF"))))]);
RDebugUtils.currentLine=3736327;
 //BA.debugLineNum = 3736327;BA.debugLine="Dim CAT_GP_STS As String = records(RESULT.Col";
_cat_gp_sts = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_STS"))))]);
RDebugUtils.currentLine=3736328;
 //BA.debugLineNum = 3736328;BA.debugLine="Dim CAT_GP_TIPO As String = records(RESULT.Co";
_cat_gp_tipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_TIPO"))))]);
RDebugUtils.currentLine=3736329;
 //BA.debugLineNum = 3736329;BA.debugLine="Dim CAT_GP_SUBTIPO As String = records(RESULT";
_cat_gp_subtipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_SUBTIPO"))))]);
RDebugUtils.currentLine=3736330;
 //BA.debugLineNum = 3736330;BA.debugLine="Dim CAT_GP_IMG() As Byte = records(RESULT.Col";
_cat_gp_img = (byte[])(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMG"))))]);
RDebugUtils.currentLine=3736331;
 //BA.debugLineNum = 3736331;BA.debugLine="Dim CAT_GP_ALMACEN As Int = records(RESULT.Co";
_cat_gp_almacen = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_ALMACEN"))))]));
RDebugUtils.currentLine=3736332;
 //BA.debugLineNum = 3736332;BA.debugLine="Dim CAT_GP_TIPOPROD As Int = records(RESULT.C";
_cat_gp_tipoprod = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_TIPOPROD"))))]));
RDebugUtils.currentLine=3736333;
 //BA.debugLineNum = 3736333;BA.debugLine="Dim CAT_PA_BSEGMENTA As String = records(RESU";
_cat_pa_bsegmenta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PA_BSEGMENTA"))))]);
RDebugUtils.currentLine=3736334;
 //BA.debugLineNum = 3736334;BA.debugLine="Dim CAT_PA_SEGMENTAV As String = records(RESU";
_cat_pa_segmentav = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PA_SEGMENTAV"))))]);
RDebugUtils.currentLine=3736335;
 //BA.debugLineNum = 3736335;BA.debugLine="CAT_GP_TIPOPROD = \"5\"";
_cat_gp_tipoprod = (int)(Double.parseDouble("5"));
RDebugUtils.currentLine=3736336;
 //BA.debugLineNum = 3736336;BA.debugLine="If CAT_GP_ID = \"PAQUNI003\" Then";
if ((_cat_gp_id).equals("PAQUNI003")) { 
RDebugUtils.currentLine=3736337;
 //BA.debugLineNum = 3736337;BA.debugLine="CAT_GP_ALMACEN = 60";
_cat_gp_almacen = (int) (60);
 };
RDebugUtils.currentLine=3736339;
 //BA.debugLineNum = 3736339;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_GUNAPROD(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CAT_GP_TIPOPROD,CAT_PA_BSEGMENTA,CAT_PA_SEGMENTAV) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_gp_id),(Object)(_cat_gp_nombre),(Object)(_cat_gp_imp1),(Object)(_cat_gp_imp2),(Object)(_cat_gp_precio),(Object)(_cat_gp_clasif),(Object)(_cat_gp_sts),(Object)(_cat_gp_tipo),(Object)(_cat_gp_subtipo),(Object)(_cat_gp_img),(Object)(_cat_gp_almacen),(Object)(_cat_gp_tipoprod),(Object)(_cat_pa_bsegmenta),(Object)(_cat_pa_segmentav)}));
RDebugUtils.currentLine=3736343;
 //BA.debugLineNum = 3736343;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_GUNAPROD2(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CAT_GP_TIPOPROD,CAT_PA_BSEGMENTA,CAT_PA_SEGMENTAV) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_gp_id),(Object)(_cat_gp_nombre),(Object)(_cat_gp_imp1),(Object)(_cat_gp_imp2),(Object)(_cat_gp_precio),(Object)(_cat_gp_clasif),(Object)(_cat_gp_sts),(Object)(_cat_gp_tipo),(Object)(_cat_gp_subtipo),(Object)(_cat_gp_img),(Object)(_cat_gp_almacen),(Object)(_cat_gp_tipoprod),(Object)(_cat_pa_bsegmenta),(Object)(_cat_pa_segmentav)}));
 }
};
RDebugUtils.currentLine=3736346;
 //BA.debugLineNum = 3736346;BA.debugLine="If PB2.Progress = 0 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=3736347;
 //BA.debugLineNum = 3736347;BA.debugLine="PB2.Progress = 30";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=3736348;
 //BA.debugLineNum = 3736348;BA.debugLine="S_CP.Text = \"CARGANDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=3736349;
 //BA.debugLineNum = 3736349;BA.debugLine="ELSE If PB2.Progress = 30 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=3736350;
 //BA.debugLineNum = 3736350;BA.debugLine="PB2.Progress = 60";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=3736351;
 //BA.debugLineNum = 3736351;BA.debugLine="ELSE IF PB2.Progress = 60 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=3736352;
 //BA.debugLineNum = 3736352;BA.debugLine="PB2.Progress = 100";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=3736353;
 //BA.debugLineNum = 3736353;BA.debugLine="S_CP.Text = \"LISTO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
RDebugUtils.currentLine=3736356;
 //BA.debugLineNum = 3736356;BA.debugLine="Listo4=1";
__ref._listo4 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3736357;
 //BA.debugLineNum = 3736357;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo2 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo4 /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=3736359;
 //BA.debugLineNum = 3736359;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3736360;
 //BA.debugLineNum = 3736360;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }else 
{RDebugUtils.currentLine=3736361;
 //BA.debugLineNum = 3736361;BA.debugLine="Else If Listo4 = 1 And Listo3 = 1 And inve = 1";
if ((__ref._listo4 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._inve /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=3736363;
 //BA.debugLineNum = 3736363;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3736364;
 //BA.debugLineNum = 3736364;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }}
;
 };
 };
RDebugUtils.currentLine=3736369;
 //BA.debugLineNum = 3736369;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736370;
 //BA.debugLineNum = 3736370;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736371;
 //BA.debugLineNum = 3736371;BA.debugLine="If RESULT.Tag = \"gunaprodps\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprodps"))) { 
RDebugUtils.currentLine=3736372;
 //BA.debugLineNum = 3736372;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group588 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen588 = group588.getSize()
;int index588 = 0;
;
for (; index588 < groupLen588;index588++){
_records = (Object[])(group588.Get(index588));
RDebugUtils.currentLine=3736373;
 //BA.debugLineNum = 3736373;BA.debugLine="Dim CAT_GP_ID As String = records(RESULT.Colu";
_cat_gp_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_ID"))))]);
RDebugUtils.currentLine=3736374;
 //BA.debugLineNum = 3736374;BA.debugLine="Dim CAT_GP_NOMBRE As String = records(RESULT.";
_cat_gp_nombre = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_NOMBRE"))))]);
RDebugUtils.currentLine=3736375;
 //BA.debugLineNum = 3736375;BA.debugLine="Dim CAT_GP_IMP1 As String = records(RESULT.Co";
_cat_gp_imp1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMP1"))))]);
RDebugUtils.currentLine=3736376;
 //BA.debugLineNum = 3736376;BA.debugLine="Dim CAT_GP_IMP2 As String = records(RESULT.Co";
_cat_gp_imp2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMP2"))))]);
RDebugUtils.currentLine=3736377;
 //BA.debugLineNum = 3736377;BA.debugLine="Dim CAT_GP_PRECIO As String = records(RESULT.";
_cat_gp_precio = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_PRECIO"))))]);
RDebugUtils.currentLine=3736378;
 //BA.debugLineNum = 3736378;BA.debugLine="Dim CAT_GP_CLASIF As String = records(RESULT.";
_cat_gp_clasif = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_CLASIF"))))]);
RDebugUtils.currentLine=3736379;
 //BA.debugLineNum = 3736379;BA.debugLine="Dim CAT_GP_STS As String = records(RESULT.Col";
_cat_gp_sts = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_STS"))))]);
RDebugUtils.currentLine=3736380;
 //BA.debugLineNum = 3736380;BA.debugLine="Dim CAT_GP_TIPO As String = records(RESULT.Co";
_cat_gp_tipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_TIPO"))))]);
RDebugUtils.currentLine=3736381;
 //BA.debugLineNum = 3736381;BA.debugLine="Dim CAT_GP_SUBTIPO As String = records(RESULT";
_cat_gp_subtipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_SUBTIPO"))))]);
RDebugUtils.currentLine=3736382;
 //BA.debugLineNum = 3736382;BA.debugLine="Dim CAT_GP_IMG() As Byte = records(RESULT.Col";
_cat_gp_img = (byte[])(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMG"))))]);
RDebugUtils.currentLine=3736383;
 //BA.debugLineNum = 3736383;BA.debugLine="Dim CAT_GP_ALMACEN As Int = records(RESULT.Co";
_cat_gp_almacen = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_ALMACEN"))))]));
RDebugUtils.currentLine=3736384;
 //BA.debugLineNum = 3736384;BA.debugLine="Dim CAT_GP_TIPOPROD As Int = records(RESULT.C";
_cat_gp_tipoprod = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_TIPOPROD"))))]));
RDebugUtils.currentLine=3736385;
 //BA.debugLineNum = 3736385;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_GUNAPROD(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CAT_GP_TIPOPROD) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_gp_id),(Object)(_cat_gp_nombre),(Object)(_cat_gp_imp1),(Object)(_cat_gp_imp2),(Object)(_cat_gp_precio),(Object)(_cat_gp_clasif),(Object)(_cat_gp_sts),(Object)(_cat_gp_tipo),(Object)(_cat_gp_subtipo),(Object)(_cat_gp_img),(Object)(_cat_gp_almacen),(Object)(_cat_gp_tipoprod)}));
 }
};
RDebugUtils.currentLine=3736387;
 //BA.debugLineNum = 3736387;BA.debugLine="If PB2.Progress = 0 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=3736388;
 //BA.debugLineNum = 3736388;BA.debugLine="PB2.Progress = 30";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=3736389;
 //BA.debugLineNum = 3736389;BA.debugLine="S_CP.Text = \"CARGANDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=3736391;
 //BA.debugLineNum = 3736391;BA.debugLine="ELSE If PB2.Progress = 30 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=3736392;
 //BA.debugLineNum = 3736392;BA.debugLine="PB2.Progress = 60";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=3736393;
 //BA.debugLineNum = 3736393;BA.debugLine="ELSE IF PB2.Progress = 60 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=3736394;
 //BA.debugLineNum = 3736394;BA.debugLine="PB2.Progress = 100";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=3736395;
 //BA.debugLineNum = 3736395;BA.debugLine="S_CP.Text = \"LISTO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
RDebugUtils.currentLine=3736399;
 //BA.debugLineNum = 3736399;BA.debugLine="Listo4=1";
__ref._listo4 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3736400;
 //BA.debugLineNum = 3736400;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo2 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo4 /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=3736402;
 //BA.debugLineNum = 3736402;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3736403;
 //BA.debugLineNum = 3736403;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }else 
{RDebugUtils.currentLine=3736404;
 //BA.debugLineNum = 3736404;BA.debugLine="Else If Listo4 = 1 And Listo3 = 1 And inve = 1";
if ((__ref._listo4 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._inve /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=3736406;
 //BA.debugLineNum = 3736406;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3736407;
 //BA.debugLineNum = 3736407;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }}
;
 };
 };
RDebugUtils.currentLine=3736412;
 //BA.debugLineNum = 3736412;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736413;
 //BA.debugLineNum = 3736413;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736414;
 //BA.debugLineNum = 3736414;BA.debugLine="If RESULT.Tag = \"detallepaq\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("detallepaq"))) { 
RDebugUtils.currentLine=3736415;
 //BA.debugLineNum = 3736415;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group625 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen625 = group625.getSize()
;int index625 = 0;
;
for (; index625 < groupLen625;index625++){
_records = (Object[])(group625.Get(index625));
RDebugUtils.currentLine=3736416;
 //BA.debugLineNum = 3736416;BA.debugLine="Dim CAT_DP_ALMACEN  As String = records(RESUL";
_cat_dp_almacen = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_ALMACEN"))))]);
RDebugUtils.currentLine=3736417;
 //BA.debugLineNum = 3736417;BA.debugLine="Dim CAT_DP_ID As String = records(RESULT.Colu";
_cat_dp_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_ID"))))]);
RDebugUtils.currentLine=3736418;
 //BA.debugLineNum = 3736418;BA.debugLine="Dim CAT_DP_IDPROD As String = records(RESULT.";
_cat_dp_idprod = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_IDPROD"))))]);
RDebugUtils.currentLine=3736419;
 //BA.debugLineNum = 3736419;BA.debugLine="Dim CAT_DP_TIPO As String = records(RESULT.Co";
_cat_dp_tipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_TIPO"))))]);
RDebugUtils.currentLine=3736420;
 //BA.debugLineNum = 3736420;BA.debugLine="Dim CAT_DP_PZAS As String = records(RESULT.Co";
_cat_dp_pzas = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PZAS"))))]);
RDebugUtils.currentLine=3736421;
 //BA.debugLineNum = 3736421;BA.debugLine="Dim CAT_DP_USUARIO  As String = records(RESUL";
_cat_dp_usuario = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_USUARIO"))))]);
RDebugUtils.currentLine=3736422;
 //BA.debugLineNum = 3736422;BA.debugLine="Dim CAT_DP_FECHA As String = records(RESULT.C";
_cat_dp_fecha = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_FECHA"))))]);
RDebugUtils.currentLine=3736423;
 //BA.debugLineNum = 3736423;BA.debugLine="Dim CAT_DP_REGALO  As String = records(RESULT";
_cat_dp_regalo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_REGALO"))))]);
RDebugUtils.currentLine=3736424;
 //BA.debugLineNum = 3736424;BA.debugLine="Dim CAT_DP_CLASIF  As String = records(RESULT";
_cat_dp_clasif = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_CLASIF"))))]);
RDebugUtils.currentLine=3736425;
 //BA.debugLineNum = 3736425;BA.debugLine="Dim CAT_DP_PRECIO As String = records(RESULT.";
_cat_dp_precio = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO"))))]);
RDebugUtils.currentLine=3736426;
 //BA.debugLineNum = 3736426;BA.debugLine="Dim CAT_DP_PRECIO_SIMPTOS As String = records";
_cat_dp_precio_simptos = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO_SIMPTOS"))))]);
RDebugUtils.currentLine=3736427;
 //BA.debugLineNum = 3736427;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_DETALLES_PAQ(CAT_DP_ALMACEN,CAT_DP_ID,CAT_DP_IDPROD,CAT_DP_TIPO,CAT_DP_PZAS,CAT_DP_USUARIO,CAT_DP_FECHA,CAT_DP_REGALO,CAT_DP_CLASIF,CAT_DP_PRECIO,CAT_DP_PRECIO_SIMPTOS) VALUES (?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_dp_almacen),(Object)(_cat_dp_id),(Object)(_cat_dp_idprod),(Object)(_cat_dp_tipo),(Object)(_cat_dp_pzas),(Object)(_cat_dp_usuario),(Object)(_cat_dp_fecha),(Object)(_cat_dp_regalo),(Object)(_cat_dp_clasif),(Object)(_cat_dp_precio),(Object)(_cat_dp_precio_simptos)}));
 }
};
RDebugUtils.currentLine=3736429;
 //BA.debugLineNum = 3736429;BA.debugLine="If PB2.Progress = 0 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=3736430;
 //BA.debugLineNum = 3736430;BA.debugLine="PB2.Progress = 30";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=3736431;
 //BA.debugLineNum = 3736431;BA.debugLine="S_CP.Text = \"CARGANDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=3736432;
 //BA.debugLineNum = 3736432;BA.debugLine="ELSE If PB2.Progress = 30 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=3736433;
 //BA.debugLineNum = 3736433;BA.debugLine="PB2.Progress = 60";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=3736434;
 //BA.debugLineNum = 3736434;BA.debugLine="ELSE IF PB2.Progress = 60 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=3736435;
 //BA.debugLineNum = 3736435;BA.debugLine="PB2.Progress = 100";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=3736436;
 //BA.debugLineNum = 3736436;BA.debugLine="S_CP.Text = \"LISTO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
RDebugUtils.currentLine=3736438;
 //BA.debugLineNum = 3736438;BA.debugLine="Listo3 =1";
__ref._listo3 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3736439;
 //BA.debugLineNum = 3736439;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo2 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo4 /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=3736441;
 //BA.debugLineNum = 3736441;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3736442;
 //BA.debugLineNum = 3736442;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }else 
{RDebugUtils.currentLine=3736443;
 //BA.debugLineNum = 3736443;BA.debugLine="Else If Listo4 = 1 And Listo3 = 1 And inve = 1";
if ((__ref._listo4 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._inve /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=3736445;
 //BA.debugLineNum = 3736445;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3736446;
 //BA.debugLineNum = 3736446;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 }}
;
 };
 };
RDebugUtils.currentLine=3736451;
 //BA.debugLineNum = 3736451;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736452;
 //BA.debugLineNum = 3736452;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736453;
 //BA.debugLineNum = 3736453;BA.debugLine="If RESULT.Tag = \"hist_datos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_datos"))) { 
RDebugUtils.currentLine=3736454;
 //BA.debugLineNum = 3736454;BA.debugLine="Dim cont As Int = 0";
_cont = (int) (0);
RDebugUtils.currentLine=3736455;
 //BA.debugLineNum = 3736455;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group662 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen662 = group662.getSize()
;int index662 = 0;
;
for (; index662 < groupLen662;index662++){
_records = (Object[])(group662.Get(index662));
RDebugUtils.currentLine=3736456;
 //BA.debugLineNum = 3736456;BA.debugLine="cont = cont +1";
_cont = (int) (_cont+1);
RDebugUtils.currentLine=3736457;
 //BA.debugLineNum = 3736457;BA.debugLine="Dim HVD_CLIENTE As String = records(RESULT.Co";
_hvd_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_CLIENTE"))))]);
RDebugUtils.currentLine=3736458;
 //BA.debugLineNum = 3736458;BA.debugLine="Dim HVD_PRONOMBRE As String = records(RESULT.";
_hvd_pronombre = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_PRONOMBRE"))))]);
RDebugUtils.currentLine=3736459;
 //BA.debugLineNum = 3736459;BA.debugLine="Dim HVD_CANT As String = records(RESULT.Colum";
_hvd_cant = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_CANT"))))]);
RDebugUtils.currentLine=3736460;
 //BA.debugLineNum = 3736460;BA.debugLine="Dim HVD_COSTO_TOT As String = records(RESULT.";
_hvd_costo_tot = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_COSTO_TOT"))))]);
RDebugUtils.currentLine=3736461;
 //BA.debugLineNum = 3736461;BA.debugLine="Dim HVD_FECHA As String = records(RESULT.Colu";
_hvd_fecha = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_FECHA"))))]);
RDebugUtils.currentLine=3736463;
 //BA.debugLineNum = 3736463;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_VENTAS(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA) VALUES (?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente),(Object)(_hvd_pronombre),(Object)(_hvd_cant),(Object)(_hvd_costo_tot),(Object)(_hvd_fecha)}));
 }
};
RDebugUtils.currentLine=3736465;
 //BA.debugLineNum = 3736465;BA.debugLine="Listo3 =1";
__ref._listo3 /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3736466;
 //BA.debugLineNum = 3736466;BA.debugLine="If PB1.Progress = 0 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=3736467;
 //BA.debugLineNum = 3736467;BA.debugLine="PB1.Progress = 30";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (30));
RDebugUtils.currentLine=3736468;
 //BA.debugLineNum = 3736468;BA.debugLine="S_CH.Text = \"CARGANDO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO"));
 }else 
{RDebugUtils.currentLine=3736469;
 //BA.debugLineNum = 3736469;BA.debugLine="ELSE If PB1.Progress = 30 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==30) { 
RDebugUtils.currentLine=3736470;
 //BA.debugLineNum = 3736470;BA.debugLine="PB1.Progress = 60";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (60));
 }else 
{RDebugUtils.currentLine=3736471;
 //BA.debugLineNum = 3736471;BA.debugLine="ELSE IF PB1.Progress = 60 Then";
if (__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==60) { 
RDebugUtils.currentLine=3736472;
 //BA.debugLineNum = 3736472;BA.debugLine="PB1.Progress = 100";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=3736473;
 //BA.debugLineNum = 3736473;BA.debugLine="S_CH.Text = \"LISTO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO"));
 }}}
;
RDebugUtils.currentLine=3736476;
 //BA.debugLineNum = 3736476;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo2 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo4 /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=3736478;
 //BA.debugLineNum = 3736478;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3736479;
 //BA.debugLineNum = 3736479;BA.debugLine="EJECUTANDO=0";
__ref._ejecutando /*String*/  = BA.NumberToString(0);
 };
 };
 };
RDebugUtils.currentLine=3736484;
 //BA.debugLineNum = 3736484;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736485;
 //BA.debugLineNum = 3736485;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736486;
 //BA.debugLineNum = 3736486;BA.debugLine="If RESULT.Tag = \"hist_ventastodos\" Then 'query";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_ventastodos"))) { 
RDebugUtils.currentLine=3736488;
 //BA.debugLineNum = 3736488;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group690 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen690 = group690.getSize()
;int index690 = 0;
;
for (; index690 < groupLen690;index690++){
_records = (Object[])(group690.Get(index690));
RDebugUtils.currentLine=3736490;
 //BA.debugLineNum = 3736490;BA.debugLine="Dim HVD_CLIENTE As String = records(RESULT.Co";
_hvd_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_CLIENTE"))))]);
RDebugUtils.currentLine=3736491;
 //BA.debugLineNum = 3736491;BA.debugLine="Dim HVD_PRONOMBRE As String = records(RESULT.";
_hvd_pronombre = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_PRONOMBRE"))))]);
RDebugUtils.currentLine=3736492;
 //BA.debugLineNum = 3736492;BA.debugLine="Dim HVD_CANT As String = records(RESULT.Colum";
_hvd_cant = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_CANT"))))]);
RDebugUtils.currentLine=3736493;
 //BA.debugLineNum = 3736493;BA.debugLine="Dim HVD_COSTO_TOT As String = records(RESULT.";
_hvd_costo_tot = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_COSTO_TOT"))))]);
RDebugUtils.currentLine=3736494;
 //BA.debugLineNum = 3736494;BA.debugLine="Dim HVD_FECHA As String = records(RESULT.Colu";
_hvd_fecha = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_FECHA"))))]);
RDebugUtils.currentLine=3736495;
 //BA.debugLineNum = 3736495;BA.debugLine="Log(HVD_CLIENTE&\"--\"&HVD_PRONOMBRE&\"--\"&HVD_C";
__c.LogImpl("03736495",_hvd_cliente+"--"+_hvd_pronombre+"--"+_hvd_cant+"--"+_hvd_costo_tot,0);
RDebugUtils.currentLine=3736496;
 //BA.debugLineNum = 3736496;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO hist_ventastodos(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA) VALUES (?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente),(Object)(_hvd_pronombre),(Object)(_hvd_cant),(Object)(_hvd_costo_tot),(Object)(_hvd_fecha)}));
 }
};
 };
 };
RDebugUtils.currentLine=3736502;
 //BA.debugLineNum = 3736502;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736503;
 //BA.debugLineNum = 3736503;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736504;
 //BA.debugLineNum = 3736504;BA.debugLine="If RESULT.Tag = \"variables\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("variables"))) { 
RDebugUtils.currentLine=3736505;
 //BA.debugLineNum = 3736505;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group704 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen704 = group704.getSize()
;int index704 = 0;
;
for (; index704 < groupLen704;index704++){
_records = (Object[])(group704.Get(index704));
RDebugUtils.currentLine=3736506;
 //BA.debugLineNum = 3736506;BA.debugLine="Dim Cat_Va_Descripcion As String = records(RE";
_cat_va_descripcion = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_VA_DESCRIPCION"))))]);
RDebugUtils.currentLine=3736507;
 //BA.debugLineNum = 3736507;BA.debugLine="Dim Cat_Va_Valor As String = records(RESULT.C";
_cat_va_valor = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_VA_VALOR"))))]);
RDebugUtils.currentLine=3736508;
 //BA.debugLineNum = 3736508;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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)(_cat_va_descripcion),(Object)(_cat_va_valor)}));
 }
};
 };
 };
RDebugUtils.currentLine=3736513;
 //BA.debugLineNum = 3736513;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736514;
 //BA.debugLineNum = 3736514;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736515;
 //BA.debugLineNum = 3736515;BA.debugLine="If RESULT.Tag = \"CUESTIONARIO\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("CUESTIONARIO"))) { 
RDebugUtils.currentLine=3736516;
 //BA.debugLineNum = 3736516;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group714 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen714 = group714.getSize()
;int index714 = 0;
;
for (; index714 < groupLen714;index714++){
_records = (Object[])(group714.Get(index714));
RDebugUtils.currentLine=3736517;
 //BA.debugLineNum = 3736517;BA.debugLine="Dim Cat_Va_Valor As String = records(RESULT.C";
_cat_va_valor = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_VALOR"))))]);
RDebugUtils.currentLine=3736518;
 //BA.debugLineNum = 3736518;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("CUESTIONARIO")}));
RDebugUtils.currentLine=3736519;
 //BA.debugLineNum = 3736519;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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)("CUESTIONARIO"),(Object)(_cat_va_valor)}));
 }
};
 };
 };
RDebugUtils.currentLine=3736524;
 //BA.debugLineNum = 3736524;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736525;
 //BA.debugLineNum = 3736525;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736526;
 //BA.debugLineNum = 3736526;BA.debugLine="If RESULT.Tag = \"carga_encuesta\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("carga_encuesta"))) { 
RDebugUtils.currentLine=3736527;
 //BA.debugLineNum = 3736527;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group724 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen724 = group724.getSize()
;int index724 = 0;
;
for (; index724 < groupLen724;index724++){
_records = (Object[])(group724.Get(index724));
RDebugUtils.currentLine=3736528;
 //BA.debugLineNum = 3736528;BA.debugLine="Dim CAT_EP_ID As String = records(RESULT.COLU";
_cat_ep_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_ID"))))]);
RDebugUtils.currentLine=3736529;
 //BA.debugLineNum = 3736529;BA.debugLine="Dim CAT_EP_IDTIPOPREGUNTA As String = records";
_cat_ep_idtipopregunta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_IDTIPOPREGUNTA"))))]);
RDebugUtils.currentLine=3736530;
 //BA.debugLineNum = 3736530;BA.debugLine="Dim CAT_CE_DESCRIPCION As String = records(RE";
_cat_ce_descripcion = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CE_DESCRIPCION"))))]);
RDebugUtils.currentLine=3736531;
 //BA.debugLineNum = 3736531;BA.debugLine="Dim CAT_EP_PREGUNTA As String = records(RESUL";
_cat_ep_pregunta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_PREGUNTA"))))]);
RDebugUtils.currentLine=3736532;
 //BA.debugLineNum = 3736532;BA.debugLine="Dim CAT_EP_RES1_PRED As String = records(RESU";
_cat_ep_res1_pred = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_RES1_PRED"))))]);
RDebugUtils.currentLine=3736533;
 //BA.debugLineNum = 3736533;BA.debugLine="Dim CAT_EP_RES2_PRED As String = records(RESU";
_cat_ep_res2_pred = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_RES2_PRED"))))]);
RDebugUtils.currentLine=3736534;
 //BA.debugLineNum = 3736534;BA.debugLine="Dim CAT_EP_RES3_PRED As String = records(RESU";
_cat_ep_res3_pred = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_RES3_PRED"))))]);
RDebugUtils.currentLine=3736535;
 //BA.debugLineNum = 3736535;BA.debugLine="Dim CAT_EP_ORDEN_PREGUNTA As String = records";
_cat_ep_orden_pregunta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_ORDEN_PREGUNTA"))))]);
RDebugUtils.currentLine=3736536;
 //BA.debugLineNum = 3736536;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_ENCUESTA_PREGUNTA (CAT_EP_ID ,CAT_EP_IDTIPOPREGUNTA ,CAT_CE_DESCRIPCION ,CAT_EP_PREGUNTA ,CAT_EP_RES1_PRED ,CAT_EP_RES2_PRED ,CAT_EP_RES3_PRED ,CAT_EP_ORDEN_PREGUNTA ) VALUES (?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_ep_id),(Object)(_cat_ep_idtipopregunta),(Object)(_cat_ce_descripcion),(Object)(_cat_ep_pregunta),(Object)(_cat_ep_res1_pred),(Object)(_cat_ep_res2_pred),(Object)(_cat_ep_res3_pred),(Object)(_cat_ep_orden_pregunta)}));
 }
};
 };
 };
RDebugUtils.currentLine=3736541;
 //BA.debugLineNum = 3736541;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736542;
 //BA.debugLineNum = 3736542;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736543;
 //BA.debugLineNum = 3736543;BA.debugLine="If RESULT.Tag = \"valida_pedido\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("valida_pedido"))) { 
RDebugUtils.currentLine=3736544;
 //BA.debugLineNum = 3736544;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group740 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen740 = group740.getSize()
;int index740 = 0;
;
for (; index740 < groupLen740;index740++){
_records = (Object[])(group740.Get(index740));
RDebugUtils.currentLine=3736545;
 //BA.debugLineNum = 3736545;BA.debugLine="Dim CUANTOSP As Int = records(RESULT.Columns.";
_cuantosp = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CUANTOSP"))))]));
RDebugUtils.currentLine=3736548;
 //BA.debugLineNum = 3736548;BA.debugLine="If cuantos_pedido < = CUANTOSP Then";
if ((double)(Double.parseDouble(__ref._cuantos_pedido /*String*/ ))<=_cuantosp) { 
RDebugUtils.currentLine=3736550;
 //BA.debugLineNum = 3736550;BA.debugLine="datos_iguales = \"ok\"";
__ref._datos_iguales /*String*/  = "ok";
RDebugUtils.currentLine=3736551;
 //BA.debugLineNum = 3736551;BA.debugLine="S_CP.Text = \"INFO OK\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("INFO OK"));
RDebugUtils.currentLine=3736552;
 //BA.debugLineNum = 3736552;BA.debugLine="B_OK_PAS.Text = \"OK\"";
__ref._b_ok_pas /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setText(BA.ObjectToCharSequence("OK"));
 }else {
RDebugUtils.currentLine=3736554;
 //BA.debugLineNum = 3736554;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMess";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence("No se cargo bien la info P. Sync Nuevamente"+BA.NumberToString(_cuantosp)+" "+__ref._cuantos_pedido /*String*/ ),__c.True);};
RDebugUtils.currentLine=3736555;
 //BA.debugLineNum = 3736555;BA.debugLine="S_CP.Text = \"ENVIAR DATOS (K-2)\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("ENVIAR DATOS (K-2)"));
 };
 }
};
 };
 };
RDebugUtils.currentLine=3736561;
 //BA.debugLineNum = 3736561;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736562;
 //BA.debugLineNum = 3736562;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736563;
 //BA.debugLineNum = 3736563;BA.debugLine="If RESULT.Tag = \"valida_pedidoc\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("valida_pedidoc"))) { 
RDebugUtils.currentLine=3736564;
 //BA.debugLineNum = 3736564;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group756 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen756 = group756.getSize()
;int index756 = 0;
;
for (; index756 < groupLen756;index756++){
_records = (Object[])(group756.Get(index756));
RDebugUtils.currentLine=3736565;
 //BA.debugLineNum = 3736565;BA.debugLine="Dim CUANTOSC As Int = records(RESULT.Columns.";
_cuantosc = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CUANTOSC"))))]));
RDebugUtils.currentLine=3736566;
 //BA.debugLineNum = 3736566;BA.debugLine="If cuantos_pedidosc = CUANTOSC Then";
if ((__ref._cuantos_pedidosc /*String*/ ).equals(BA.NumberToString(_cuantosc))) { 
RDebugUtils.currentLine=3736568;
 //BA.debugLineNum = 3736568;BA.debugLine="datos_iguales = \"ok\"";
__ref._datos_iguales /*String*/  = "ok";
 }else {
RDebugUtils.currentLine=3736570;
 //BA.debugLineNum = 3736570;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMess";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence("No se cargo bien la info C. Sync Nuevamente"+BA.NumberToString(_cuantosc)+" "+__ref._cuantos_pedidosc /*String*/ ),__c.True);};
 };
 }
};
 };
 };
RDebugUtils.currentLine=3736576;
 //BA.debugLineNum = 3736576;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736577;
 //BA.debugLineNum = 3736577;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736578;
 //BA.debugLineNum = 3736578;BA.debugLine="If RESULT.Tag = \"valida_noventa\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("valida_noventa"))) { 
RDebugUtils.currentLine=3736579;
 //BA.debugLineNum = 3736579;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group769 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen769 = group769.getSize()
;int index769 = 0;
;
for (; index769 < groupLen769;index769++){
_records = (Object[])(group769.Get(index769));
RDebugUtils.currentLine=3736580;
 //BA.debugLineNum = 3736580;BA.debugLine="Dim CUANTOSN As Int = records(RESULT.Columns.";
_cuantosn = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CUANTOSN"))))]));
RDebugUtils.currentLine=3736581;
 //BA.debugLineNum = 3736581;BA.debugLine="If cuantos_noventa = CUANTOSN Then";
if ((__ref._cuantos_noventa /*String*/ ).equals(BA.NumberToString(_cuantosn))) { 
RDebugUtils.currentLine=3736583;
 //BA.debugLineNum = 3736583;BA.debugLine="datos_iguales = \"ok\"";
__ref._datos_iguales /*String*/  = "ok";
 }else {
RDebugUtils.currentLine=3736585;
 //BA.debugLineNum = 3736585;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMess";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence("No se cargo bien la info N. Sync Nuevamente"+BA.NumberToString(_cuantosn)+" "+__ref._cuantos_noventa /*String*/ ),__c.True);};
 };
 }
};
 };
 };
RDebugUtils.currentLine=3736591;
 //BA.debugLineNum = 3736591;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736592;
 //BA.debugLineNum = 3736592;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736593;
 //BA.debugLineNum = 3736593;BA.debugLine="If RESULT.Tag = \"ins_pedido\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("ins_pedido"))) { 
RDebugUtils.currentLine=3736594;
 //BA.debugLineNum = 3736594;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group782 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen782 = group782.getSize()
;int index782 = 0;
;
for (; index782 < groupLen782;index782++){
_records = (Object[])(group782.Get(index782));
RDebugUtils.currentLine=3736595;
 //BA.debugLineNum = 3736595;BA.debugLine="PB2.Progress = PB2.Progress + 5";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()+5));
RDebugUtils.currentLine=3736596;
 //BA.debugLineNum = 3736596;BA.debugLine="S_CP.Text = \"SUBIENDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("SUBIENDO"));
 }
};
RDebugUtils.currentLine=3736598;
 //BA.debugLineNum = 3736598;BA.debugLine="PB2.Progress = 100";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100));
RDebugUtils.currentLine=3736599;
 //BA.debugLineNum = 3736599;BA.debugLine="S_CP.Text = \"ENVIANDO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("ENVIANDO"));
 };
 };
RDebugUtils.currentLine=3736604;
 //BA.debugLineNum = 3736604;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736605;
 //BA.debugLineNum = 3736605;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736606;
 //BA.debugLineNum = 3736606;BA.debugLine="If RESULT.Tag = \"version\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("version"))) { 
RDebugUtils.currentLine=3736607;
 //BA.debugLineNum = 3736607;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group793 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen793 = group793.getSize()
;int index793 = 0;
;
for (; index793 < groupLen793;index793++){
_records = (Object[])(group793.Get(index793));
RDebugUtils.currentLine=3736608;
 //BA.debugLineNum = 3736608;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete f";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION");
RDebugUtils.currentLine=3736609;
 //BA.debugLineNum = 3736609;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=3736610;
 //BA.debugLineNum = 3736610;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_ve_version)}));
 }
};
 };
 };
RDebugUtils.currentLine=3736615;
 //BA.debugLineNum = 3736615;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736616;
 //BA.debugLineNum = 3736616;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736617;
 //BA.debugLineNum = 3736617;BA.debugLine="If RESULT.Tag = \"count_cli\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("count_cli"))) { 
RDebugUtils.currentLine=3736618;
 //BA.debugLineNum = 3736618;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group803 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen803 = group803.getSize()
;int index803 = 0;
;
for (; index803 < groupLen803;index803++){
_records = (Object[])(group803.Get(index803));
RDebugUtils.currentLine=3736619;
 //BA.debugLineNum = 3736619;BA.debugLine="COUNT_CLIE = records(RESULT.Columns.Get(\"COUN";
__ref._count_clie /*int*/  = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("COUNT_CLIE"))))]));
 }
};
 };
 };
RDebugUtils.currentLine=3736624;
 //BA.debugLineNum = 3736624;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736625;
 //BA.debugLineNum = 3736625;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736626;
 //BA.debugLineNum = 3736626;BA.debugLine="If RESULT.Tag = \"ruta\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("ruta"))) { 
RDebugUtils.currentLine=3736627;
 //BA.debugLineNum = 3736627;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group811 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen811 = group811.getSize()
;int index811 = 0;
;
for (; index811 < groupLen811;index811++){
_records = (Object[])(group811.Get(index811));
RDebugUtils.currentLine=3736628;
 //BA.debugLineNum = 3736628;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=3736629;
 //BA.debugLineNum = 3736629;BA.debugLine="If VALIDO = \"OK\" Then";
if ((_valido).equals("OK")) { 
RDebugUtils.currentLine=3736630;
 //BA.debugLineNum = 3736630;BA.debugLine="cargar.Visible = True";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3736631;
 //BA.debugLineNum = 3736631;BA.debugLine="Subir.Visible = True";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3736632;
 //BA.debugLineNum = 3736632;BA.debugLine="inv.Visible = True";
__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3736633;
 //BA.debugLineNum = 3736633;BA.debugLine="connecta.Visible = False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3736634;
 //BA.debugLineNum = 3736634;BA.debugLine="If conn = \"1\" Then";
if ((__ref._conn /*String*/ ).equals("1")) { 
RDebugUtils.currentLine=3736635;
 //BA.debugLineNum = 3736635;BA.debugLine="ToastMessageShow(\"Existe Conexión con el Se";
__c.ToastMessageShow(BA.ObjectToCharSequence("Existe Conexión con el Servidor."),__c.True);
 };
 }else {
RDebugUtils.currentLine=3736638;
 //BA.debugLineNum = 3736638;BA.debugLine="cargar.Visible = False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3736639;
 //BA.debugLineNum = 3736639;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3736640;
 //BA.debugLineNum = 3736640;BA.debugLine="inv.Visible = False";
__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3736641;
 //BA.debugLineNum = 3736641;BA.debugLine="connecta.Visible = False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3736642;
 //BA.debugLineNum = 3736642;BA.debugLine="ToastMessageShow(\"Ruta invalida.\" , True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Ruta invalida."),__c.True);
 };
 }
};
 };
 };
RDebugUtils.currentLine=3736648;
 //BA.debugLineNum = 3736648;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736649;
 //BA.debugLineNum = 3736649;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736650;
 //BA.debugLineNum = 3736650;BA.debugLine="If RESULT.Tag = \"usuario\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("usuario"))) { 
RDebugUtils.currentLine=3736651;
 //BA.debugLineNum = 3736651;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group834 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen834 = group834.getSize()
;int index834 = 0;
;
for (; index834 < groupLen834;index834++){
_records = (Object[])(group834.Get(index834));
RDebugUtils.currentLine=3736652;
 //BA.debugLineNum = 3736652;BA.debugLine="Dim name2 As String = records(RESULT.Columns.";
_name2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("VALIDO"))))]);
 }
};
RDebugUtils.currentLine=3736654;
 //BA.debugLineNum = 3736654;BA.debugLine="If name2 = \"OK\" Then";
if ((_name2).equals("OK")) { 
RDebugUtils.currentLine=3736655;
 //BA.debugLineNum = 3736655;BA.debugLine="PASO = 1";
__ref._paso /*String*/  = BA.NumberToString(1);
 };
RDebugUtils.currentLine=3736657;
 //BA.debugLineNum = 3736657;BA.debugLine="P1.Visible = False";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
 };
 };
RDebugUtils.currentLine=3736661;
 //BA.debugLineNum = 3736661;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736662;
 //BA.debugLineNum = 3736662;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736663;
 //BA.debugLineNum = 3736663;BA.debugLine="If RESULT.Tag = \"fecha\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("fecha"))) { 
RDebugUtils.currentLine=3736664;
 //BA.debugLineNum = 3736664;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group846 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen846 = group846.getSize()
;int index846 = 0;
;
for (; index846 < groupLen846;index846++){
_records = (Object[])(group846.Get(index846));
RDebugUtils.currentLine=3736665;
 //BA.debugLineNum = 3736665;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=3736666;
 //BA.debugLineNum = 3736666;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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=3736667;
 //BA.debugLineNum = 3736667;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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=3736672;
 //BA.debugLineNum = 3736672;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=3736673;
 //BA.debugLineNum = 3736673;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=3736682;
 //BA.debugLineNum = 3736682;BA.debugLine="If RESULT.Tag = \"hist_pro2265\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_pro2265"))) { 
RDebugUtils.currentLine=3736683;
 //BA.debugLineNum = 3736683;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_PR";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_PRO2265");
RDebugUtils.currentLine=3736684;
 //BA.debugLineNum = 3736684;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group857 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen857 = group857.getSize()
;int index857 = 0;
;
for (; index857 < groupLen857;index857++){
_records = (Object[])(group857.Get(index857));
RDebugUtils.currentLine=3736685;
 //BA.debugLineNum = 3736685;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST_";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_PRO2265(H_IDCLIENTE) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_CLIENTE"))))]}));
 }
};
 };
RDebugUtils.currentLine=3736688;
 //BA.debugLineNum = 3736688;BA.debugLine="If RESULT.Tag = \"hist_pro3054\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_pro3054"))) { 
RDebugUtils.currentLine=3736689;
 //BA.debugLineNum = 3736689;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_PR";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_PRO3054");
RDebugUtils.currentLine=3736690;
 //BA.debugLineNum = 3736690;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group863 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen863 = group863.getSize()
;int index863 = 0;
;
for (; index863 < groupLen863;index863++){
_records = (Object[])(group863.Get(index863));
RDebugUtils.currentLine=3736691;
 //BA.debugLineNum = 3736691;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST_";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_PRO3054(H_IDCLIENTE) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_CLIENTE"))))]}));
 }
};
 };
RDebugUtils.currentLine=3736694;
 //BA.debugLineNum = 3736694;BA.debugLine="If RESULT.Tag = \"hist_pro3055\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_pro3055"))) { 
RDebugUtils.currentLine=3736695;
 //BA.debugLineNum = 3736695;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_PR";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_PRO3055");
RDebugUtils.currentLine=3736696;
 //BA.debugLineNum = 3736696;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group869 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen869 = group869.getSize()
;int index869 = 0;
;
for (; index869 < groupLen869;index869++){
_records = (Object[])(group869.Get(index869));
RDebugUtils.currentLine=3736697;
 //BA.debugLineNum = 3736697;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST_";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_PRO3055(H_IDCLIENTE) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_CLIENTE"))))]}));
 }
};
 };
RDebugUtils.currentLine=3736700;
 //BA.debugLineNum = 3736700;BA.debugLine="If RESULT.Tag = \"traeVersion\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("traeVersion"))) { 
RDebugUtils.currentLine=3736701;
 //BA.debugLineNum = 3736701;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group874 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen874 = group874.getSize()
;int index874 = 0;
;
for (; index874 < groupLen874;index874++){
_records = (Object[])(group874.Get(index874));
RDebugUtils.currentLine=3736702;
 //BA.debugLineNum = 3736702;BA.debugLine="Private version As String =  records(RESULT.C";
_version = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_VERSION"))))]);
RDebugUtils.currentLine=3736703;
 //BA.debugLineNum = 3736703;BA.debugLine="Private actualizarAplicacion As String =  rec";
_actualizaraplicacion = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_ACTUALIZACION"))))]);
 }
};
RDebugUtils.currentLine=3736705;
 //BA.debugLineNum = 3736705;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_VA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("VERSION_NUEVA")}));
RDebugUtils.currentLine=3736706;
 //BA.debugLineNum = 3736706;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_VA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("VERSION_NUEVA"),(Object)(_version)}));
RDebugUtils.currentLine=3736707;
 //BA.debugLineNum = 3736707;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_VA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("FORZAR_ACTUALIZACION")}));
RDebugUtils.currentLine=3736708;
 //BA.debugLineNum = 3736708;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_VA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("FORZAR_ACTUALIZACION"),(Object)(_actualizaraplicacion)}));
RDebugUtils.currentLine=3736709;
 //BA.debugLineNum = 3736709;BA.debugLine="Log($\">>>>  GUARDAMOS NUEVA VERSION: ${version";
__c.LogImpl("03736709",(">>>>  GUARDAMOS NUEVA VERSION: "+__c.SmartStringFormatter("",(Object)(_version))+", "+__c.SmartStringFormatter("",(Object)(_actualizaraplicacion))+""),0);
 };
RDebugUtils.currentLine=3736711;
 //BA.debugLineNum = 3736711;BA.debugLine="If RESULT.Tag = \"tipoVenta\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("tipoVenta"))) { 
RDebugUtils.currentLine=3736712;
 //BA.debugLineNum = 3736712;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group885 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen885 = group885.getSize()
;int index885 = 0;
;
for (; index885 < groupLen885;index885++){
_records = (Object[])(group885.Get(index885));
RDebugUtils.currentLine=3736713;
 //BA.debugLineNum = 3736713;BA.debugLine="Private tipoVenta As String =  records(RESULT";
_tipoventa = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_RU_CATEGORIA"))))]);
 }
};
RDebugUtils.currentLine=3736715;
 //BA.debugLineNum = 3736715;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_VA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("TIPO_VENTA")}));
RDebugUtils.currentLine=3736716;
 //BA.debugLineNum = 3736716;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_VA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("TIPO_VENTA"),(Object)(_tipoventa)}));
RDebugUtils.currentLine=3736717;
 //BA.debugLineNum = 3736717;BA.debugLine="Log($\">>>>  GUARDAMOS TIPO_VENTA: ${tipoVenta}";
__c.LogImpl("03736717",(">>>>  GUARDAMOS TIPO_VENTA: "+__c.SmartStringFormatter("",(Object)(_tipoventa))+""),0);
 };
RDebugUtils.currentLine=3736719;
 //BA.debugLineNum = 3736719;BA.debugLine="If RESULT.Tag = \"planLealtad\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("planLealtad"))) { 
RDebugUtils.currentLine=3736720;
 //BA.debugLineNum = 3736720;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FR";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM PLAN_LEALTAD WHERE DESCARGADO = 1");
RDebugUtils.currentLine=3736721;
 //BA.debugLineNum = 3736721;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group894 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen894 = group894.getSize()
;int index894 = 0;
;
for (; index894 < groupLen894;index894++){
_records = (Object[])(group894.Get(index894));
RDebugUtils.currentLine=3736722;
 //BA.debugLineNum = 3736722;BA.debugLine="Dim PL_CLIENTE As String = records(RESULT.Col";
_pl_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("TMP_PL_CLIENTE"))))]);
RDebugUtils.currentLine=3736723;
 //BA.debugLineNum = 3736723;BA.debugLine="Dim PL_BANDERA As String = records(RESULT.Col";
_pl_bandera = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("TMP_PL_BANDERA"))))]);
RDebugUtils.currentLine=3736724;
 //BA.debugLineNum = 3736724;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PLAN_LEALTAD(PL_CLIENTE, PL_BANDERA, DESCARGADO) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_pl_cliente),(Object)(_pl_bandera),(Object)(1)}));
 }
};
 };
RDebugUtils.currentLine=3736728;
 //BA.debugLineNum = 3736728;BA.debugLine="If RESULT.Tag = \"coments\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("coments"))) { 
RDebugUtils.currentLine=3736729;
 //BA.debugLineNum = 3736729;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FR";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM COMENTARIOS WHERE DESCARGADO = 1");
RDebugUtils.currentLine=3736730;
 //BA.debugLineNum = 3736730;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group902 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen902 = group902.getSize()
;int index902 = 0;
;
for (; index902 < groupLen902;index902++){
_records = (Object[])(group902.Get(index902));
RDebugUtils.currentLine=3736731;
 //BA.debugLineNum = 3736731;BA.debugLine="Dim COMENTARIO As String = records(RESULT.Col";
_comentario = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("TMP_COM_COMENTARIO"))))]);
RDebugUtils.currentLine=3736732;
 //BA.debugLineNum = 3736732;BA.debugLine="Dim CLIENTECOM As String = records(RESULT.Col";
_clientecom = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("TMP_COM_CLIENTE"))))]);
RDebugUtils.currentLine=3736733;
 //BA.debugLineNum = 3736733;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO COMENTARIOS(COMENTARTIO, CLIENTE, DESCARGADO) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_comentario),(Object)(_clientecom),(Object)(1)}));
 }
};
 };
RDebugUtils.currentLine=3736737;
 //BA.debugLineNum = 3736737;BA.debugLine="If RESULT.Tag = \"objetivos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("objetivos"))) { 
RDebugUtils.currentLine=3736738;
 //BA.debugLineNum = 3736738;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FR";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM CAT_OBJETIVO_BAT");
RDebugUtils.currentLine=3736739;
 //BA.debugLineNum = 3736739;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group910 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen910 = group910.getSize()
;int index910 = 0;
;
for (; index910 < groupLen910;index910++){
_records = (Object[])(group910.Get(index910));
RDebugUtils.currentLine=3736740;
 //BA.debugLineNum = 3736740;BA.debugLine="Dim COB_VOLUMEN As String = records(RESULT.Co";
_cob_volumen = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("COB_VOLUMEN"))))]);
RDebugUtils.currentLine=3736741;
 //BA.debugLineNum = 3736741;BA.debugLine="Dim COB_MARCAE As String = records(RESULT.Col";
_cob_marcae = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("COB_MARCAE"))))]);
RDebugUtils.currentLine=3736742;
 //BA.debugLineNum = 3736742;BA.debugLine="Dim COB_PORTAFOLIO As String = records(RESULT";
_cob_portafolio = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("COB_PORTAFOLIO"))))]);
RDebugUtils.currentLine=3736743;
 //BA.debugLineNum = 3736743;BA.debugLine="Dim COB_OBJPP As String = records(RESULT.Colu";
_cob_objpp = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("COB_OBJPP"))))]);
RDebugUtils.currentLine=3736744;
 //BA.debugLineNum = 3736744;BA.debugLine="Dim COB_GEV As String = records(RESULT.Column";
_cob_gev = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("COB_GEV"))))]);
RDebugUtils.currentLine=3736745;
 //BA.debugLineNum = 3736745;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_OBJETIVO_BAT(COB_VOLUMEN, COB_MARCAE, COB_PORTAFOLIO, COB_OBJPP, COB_GEV) VALUES (?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cob_volumen),(Object)(_cob_marcae),(Object)(_cob_portafolio),(Object)(_cob_objpp),(Object)(_cob_gev)}));
 }
};
 };
 };
 };
RDebugUtils.currentLine=3736751;
 //BA.debugLineNum = 3736751;BA.debugLine="If B4XPages.MainPage.reqManager.reqsList.IsInitia";
if (_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .IsInitialized()) { 
RDebugUtils.currentLine=3736752;
 //BA.debugLineNum = 3736752;BA.debugLine="LogColor($\"REQUESTS: ${B4XPages.MainPage.reqMana";
__c.LogImpl("03736752",("REQUESTS: "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .getSize()))+""),__c.Colors.Red);
RDebugUtils.currentLine=3736754;
 //BA.debugLineNum = 3736754;BA.debugLine="If 	B4XPages.MainPage.reqManager.reqsList.Size =";
if (_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .getSize()==0 && (__ref._carga /*String*/ ).equals("SUBIR")) { 
RDebugUtils.currentLine=3736755;
 //BA.debugLineNum = 3736755;BA.debugLine="t1.Enabled = False";
__ref._t1 /*anywheresoftware.b4a.objects.Timer*/ .setEnabled(__c.False);
RDebugUtils.currentLine=3736756;
 //BA.debugLineNum = 3736756;BA.debugLine="t1.Initialize(\"T1\", 3000) ' 1000 = 1 second";
__ref._t1 /*anywheresoftware.b4a.objects.Timer*/ .Initialize(ba,"T1",(long) (3000));
RDebugUtils.currentLine=3736758;
 //BA.debugLineNum = 3736758;BA.debugLine="If contadorSubir < 3 Then ' Si no hacen click e";
if (__ref._contadorsubir /*int*/ <3) { 
RDebugUtils.currentLine=3736759;
 //BA.debugLineNum = 3736759;BA.debugLine="t1.Enabled = True";
__ref._t1 /*anywheresoftware.b4a.objects.Timer*/ .setEnabled(__c.True);
RDebugUtils.currentLine=3736760;
 //BA.debugLineNum = 3736760;BA.debugLine="Log(\"TIMER ENABLED\")";
__c.LogImpl("03736760","TIMER ENABLED",0);
 };
RDebugUtils.currentLine=3736762;
 //BA.debugLineNum = 3736762;BA.debugLine="contadorSubir = contadorSubir + 1";
__ref._contadorsubir /*int*/  = (int) (__ref._contadorsubir /*int*/ +1);
 };
 };
RDebugUtils.currentLine=3736765;
 //BA.debugLineNum = 3736765;BA.debugLine="Job.Release";
_job._release /*String*/ (null);
RDebugUtils.currentLine=3736766;
 //BA.debugLineNum = 3736766;BA.debugLine="End Sub";
return "";
}
public String  _nuevo_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "nuevo_click", false))
	 {return ((String) Debug.delegate(ba, "nuevo_click", null));}
RDebugUtils.currentLine=4456448;
 //BA.debugLineNum = 4456448;BA.debugLine="Sub NUEVO_Click";
RDebugUtils.currentLine=4456449;
 //BA.debugLineNum = 4456449;BA.debugLine="B4XPages.ShowPage(\"NuevoCliente\")";
_b4xpages._showpage /*String*/ (ba,"NuevoCliente");
RDebugUtils.currentLine=4456450;
 //BA.debugLineNum = 4456450;BA.debugLine="End Sub";
return "";
}
public String  _p_marcasres_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "p_marcasres_click", false))
	 {return ((String) Debug.delegate(ba, "p_marcasres_click", null));}
RDebugUtils.currentLine=5701632;
 //BA.debugLineNum = 5701632;BA.debugLine="Private Sub p_marcasRes_Click";
RDebugUtils.currentLine=5701634;
 //BA.debugLineNum = 5701634;BA.debugLine="End Sub";
return "";
}
public String  _p_resumen_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "p_resumen_click", false))
	 {return ((String) Debug.delegate(ba, "p_resumen_click", null));}
RDebugUtils.currentLine=4653056;
 //BA.debugLineNum = 4653056;BA.debugLine="Sub P_RESUMEN_click";
RDebugUtils.currentLine=4653058;
 //BA.debugLineNum = 4653058;BA.debugLine="End Sub";
return "";
}
public String  _p_sombra_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "p_sombra_click", false))
	 {return ((String) Debug.delegate(ba, "p_sombra_click", null));}
RDebugUtils.currentLine=5767168;
 //BA.debugLineNum = 5767168;BA.debugLine="Private Sub p_sombra_Click";
RDebugUtils.currentLine=5767170;
 //BA.debugLineNum = 5767170;BA.debugLine="End Sub";
return "";
}
public String  _p_transparenteactualizacion_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "p_transparenteactualizacion_click", false))
	 {return ((String) Debug.delegate(ba, "p_transparenteactualizacion_click", null));}
RDebugUtils.currentLine=5832704;
 //BA.debugLineNum = 5832704;BA.debugLine="Private Sub p_transparenteActualizacion_Click";
RDebugUtils.currentLine=5832706;
 //BA.debugLineNum = 5832706;BA.debugLine="End Sub";
return "";
}
public String  _p1_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "p1_click", false))
	 {return ((String) Debug.delegate(ba, "p1_click", null));}
RDebugUtils.currentLine=5963776;
 //BA.debugLineNum = 5963776;BA.debugLine="Private Sub P1_Click";
RDebugUtils.currentLine=5963778;
 //BA.debugLineNum = 5963778;BA.debugLine="End Sub";
return "";
}
public String  _recalculoxcant(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "recalculoxcant", false))
	 {return ((String) Debug.delegate(ba, "recalculoxcant", null));}
int _promespdes = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _rangosel = null;
int _hjh = 0;
float _recalculo = 0f;
float _recalculototal = 0f;
anywheresoftware.b4a.sql.SQL.CursorWrapper _rangosel2 = null;
RDebugUtils.currentLine=3538944;
 //BA.debugLineNum = 3538944;BA.debugLine="Sub recalculoXcant";
RDebugUtils.currentLine=3538946;
 //BA.debugLineNum = 3538946;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exec";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE PE_CEDIS = ? and PE_RECCEDIS IS NOT NULL AND PE_RECALCULADO IS NULL ",new String[]{_subs._traealmacen /*String*/ (ba)})));
RDebugUtils.currentLine=3538947;
 //BA.debugLineNum = 3538947;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3538948;
 //BA.debugLineNum = 3538948;BA.debugLine="For promespdes = 0 To c.RowCount -1";
{
final int step3 = 1;
final int limit3 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_promespdes = (int) (0) ;
for (;_promespdes <= limit3 ;_promespdes = _promespdes + step3 ) {
RDebugUtils.currentLine=3538949;
 //BA.debugLineNum = 3538949;BA.debugLine="c.Position = promespdes";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_promespdes);
RDebugUtils.currentLine=3538950;
 //BA.debugLineNum = 3538950;BA.debugLine="Dim rangosel As Cursor= B4XPages.MainPage.skmt.";
_rangosel = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_rangosel = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO = ? AND CAT_PD_RANGO <= ? AND CAT_PD_RANGO2 >= ?",new String[]{__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID"),BA.NumberToString(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("PE_CANT")),BA.NumberToString(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("PE_CANT"))})));
RDebugUtils.currentLine=3538951;
 //BA.debugLineNum = 3538951;BA.debugLine="If rangosel.RowCount > 0 Then";
if (_rangosel.getRowCount()>0) { 
RDebugUtils.currentLine=3538952;
 //BA.debugLineNum = 3538952;BA.debugLine="For hjh = 0 To rangosel.RowCount-1";
{
final int step7 = 1;
final int limit7 = (int) (_rangosel.getRowCount()-1);
_hjh = (int) (0) ;
for (;_hjh <= limit7 ;_hjh = _hjh + step7 ) {
RDebugUtils.currentLine=3538953;
 //BA.debugLineNum = 3538953;BA.debugLine="rangosel.Position = hjh";
_rangosel.setPosition(_hjh);
RDebugUtils.currentLine=3538954;
 //BA.debugLineNum = 3538954;BA.debugLine="If rangosel.GetString(\"CAT_PD_TIER\").Contains";
if (_rangosel.GetString("CAT_PD_TIER").contains(BA.NumberToString(_subs._traetipocliente /*int*/ (ba)))) { 
RDebugUtils.currentLine=3538955;
 //BA.debugLineNum = 3538955;BA.debugLine="Log(c.GetString(\"PE_COSTOU\"))";
__c.LogImpl("03538955",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU"),0);
RDebugUtils.currentLine=3538956;
 //BA.debugLineNum = 3538956;BA.debugLine="Log(rangosel.GetString(\"CAT_PD_DESCUENTO\"))";
__c.LogImpl("03538956",_rangosel.GetString("CAT_PD_DESCUENTO"),0);
RDebugUtils.currentLine=3538957;
 //BA.debugLineNum = 3538957;BA.debugLine="Private recalculo As Float = c.GetString(\"PE";
_recalculo = (float) ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU")))-(double)(Double.parseDouble(__c.NumberFormat2((((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU")))*(double)(Double.parseDouble(_rangosel.GetString("CAT_PD_DESCUENTO"))))/(double)100),(int) (0),(int) (2),(int) (2),__c.False))));
RDebugUtils.currentLine=3538958;
 //BA.debugLineNum = 3538958;BA.debugLine="LogColor(recalculo,Colors.Blue)";
__c.LogImpl("03538958",BA.NumberToString(_recalculo),__c.Colors.Blue);
RDebugUtils.currentLine=3538959;
 //BA.debugLineNum = 3538959;BA.debugLine="Log(c.GetString(\"PE_COSTOU\"))";
__c.LogImpl("03538959",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU"),0);
RDebugUtils.currentLine=3538960;
 //BA.debugLineNum = 3538960;BA.debugLine="Log(NumberFormat2(((c.GetString(\"PE_COSTOU\")";
__c.LogImpl("03538960",__c.NumberFormat2((((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU")))*(double)(Double.parseDouble(_rangosel.GetString("CAT_PD_DESCUENTO"))))/(double)100),(int) (0),(int) (2),(int) (2),__c.False),0);
RDebugUtils.currentLine=3538961;
 //BA.debugLineNum = 3538961;BA.debugLine="Log(rangosel.GetString(\"CAT_PD_DESCUENTO\"))";
__c.LogImpl("03538961",_rangosel.GetString("CAT_PD_DESCUENTO"),0);
RDebugUtils.currentLine=3538962;
 //BA.debugLineNum = 3538962;BA.debugLine="Private recalculototal As Float =c.GetString";
_recalculototal = (float) ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")))*_recalculo);
RDebugUtils.currentLine=3538963;
 //BA.debugLineNum = 3538963;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = ?, PE_RECALCULOTOT = ?, PE_RECCEDIS = ?, PE_RECCANT = PE_CANT, PE_RECALCULADO = 1 WHERE PE_PROID = ? AND PE_CLIENTE = ? AND PE_CEDIS = ? and PE_FOLIO = ? ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),__c.False),__c.NumberFormat2(_recalculototal,(int) (0),(int) (2),(int) (2),__c.False),_rangosel.GetString("CAT_PD_COD_PROMO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE"),_subs._traealmacen /*String*/ (ba),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FOLIO")}));
 };
 }
};
 }else {
RDebugUtils.currentLine=3538967;
 //BA.debugLineNum = 3538967;BA.debugLine="Dim rangosel2 As Cursor= B4XPages.MainPage.skm";
_rangosel2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_rangosel2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO = ? and ? > cat_pd_rango2",new String[]{__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID"),BA.NumberToString(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("PE_CANT"))})));
RDebugUtils.currentLine=3538969;
 //BA.debugLineNum = 3538969;BA.debugLine="If rangosel2.RowCount > 0 Then";
if (_rangosel2.getRowCount()>0) { 
RDebugUtils.currentLine=3538971;
 //BA.debugLineNum = 3538971;BA.debugLine="For hjh = 0 To rangosel2.RowCount-1";
{
final int step24 = 1;
final int limit24 = (int) (_rangosel2.getRowCount()-1);
_hjh = (int) (0) ;
for (;_hjh <= limit24 ;_hjh = _hjh + step24 ) {
RDebugUtils.currentLine=3538972;
 //BA.debugLineNum = 3538972;BA.debugLine="rangosel2.Position = hjh";
_rangosel2.setPosition(_hjh);
RDebugUtils.currentLine=3538973;
 //BA.debugLineNum = 3538973;BA.debugLine="If rangosel2.GetString(\"CAT_PD_TIER\").Contai";
if (_rangosel2.GetString("CAT_PD_TIER").contains(BA.NumberToString(_subs._traetipocliente /*int*/ (ba)))) { 
RDebugUtils.currentLine=3538974;
 //BA.debugLineNum = 3538974;BA.debugLine="Log(c.GetString(\"PE_COSTOU\"))";
__c.LogImpl("03538974",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU"),0);
RDebugUtils.currentLine=3538975;
 //BA.debugLineNum = 3538975;BA.debugLine="Log(rangosel2.GetString(\"CAT_PD_DESCUENTO\")";
__c.LogImpl("03538975",_rangosel2.GetString("CAT_PD_DESCUENTO"),0);
RDebugUtils.currentLine=3538976;
 //BA.debugLineNum = 3538976;BA.debugLine="Private recalculo As Float = c.GetString(\"P";
_recalculo = (float) ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU")))-(double)(Double.parseDouble(__c.NumberFormat2((((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU")))*(double)(Double.parseDouble(_rangosel2.GetString("CAT_PD_DESCUENTO"))))/(double)100),(int) (0),(int) (2),(int) (2),__c.False))));
RDebugUtils.currentLine=3538977;
 //BA.debugLineNum = 3538977;BA.debugLine="LogColor(recalculo,Colors.Blue)";
__c.LogImpl("03538977",BA.NumberToString(_recalculo),__c.Colors.Blue);
RDebugUtils.currentLine=3538978;
 //BA.debugLineNum = 3538978;BA.debugLine="Log(c.GetString(\"PE_COSTOU\"))";
__c.LogImpl("03538978",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU"),0);
RDebugUtils.currentLine=3538979;
 //BA.debugLineNum = 3538979;BA.debugLine="Log(NumberFormat2(((c.GetString(\"PE_COSTOU\"";
__c.LogImpl("03538979",__c.NumberFormat2((((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU")))*(double)(Double.parseDouble(_rangosel2.GetString("CAT_PD_DESCUENTO"))))/(double)100),(int) (0),(int) (2),(int) (2),__c.False),0);
RDebugUtils.currentLine=3538980;
 //BA.debugLineNum = 3538980;BA.debugLine="Log(rangosel2.GetString(\"CAT_PD_DESCUENTO\")";
__c.LogImpl("03538980",_rangosel2.GetString("CAT_PD_DESCUENTO"),0);
RDebugUtils.currentLine=3538981;
 //BA.debugLineNum = 3538981;BA.debugLine="Private recalculototal As Float = rangosel2";
_recalculototal = (float) ((double)(Double.parseDouble(_rangosel2.GetString("CAT_PD_RANGO2")))*_recalculo);
RDebugUtils.currentLine=3538984;
 //BA.debugLineNum = 3538984;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDAT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = ?, PE_RECALCULOTOT = ?, PE_RECCEDIS = ?, PE_RECCANT = ? , PE_RECALCULADO = 1 WHERE PE_PROID = ? AND PE_CLIENTE = ? AND PE_CEDIS = ? AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),__c.False),__c.NumberFormat2(_recalculototal,(int) (0),(int) (2),(int) (2),__c.False),_rangosel2.GetString("CAT_PD_COD_PROMO"),_rangosel2.GetString("CAT_PD_RANGO2"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE"),_subs._traealmacen /*String*/ (ba),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FOLIO")}));
 };
 }
};
 }else {
RDebugUtils.currentLine=3538988;
 //BA.debugLineNum = 3538988;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = NULL, PE_RECALCULOTOT = NULL, PE_RECCEDIS = NULL, PE_RECCANT = NULL, PE_RECALCULADO = 1 WHERE PE_PROID = ? AND PE_CLIENTE = ? AND PE_CEDIS = ? AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE"),_subs._traealmacen /*String*/ (ba),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FOLIO")}));
 };
RDebugUtils.currentLine=3538990;
 //BA.debugLineNum = 3538990;BA.debugLine="rangosel2.Close";
_rangosel2.Close();
 };
RDebugUtils.currentLine=3538992;
 //BA.debugLineNum = 3538992;BA.debugLine="rangosel.Close";
_rangosel.Close();
 }
};
 };
RDebugUtils.currentLine=3538995;
 //BA.debugLineNum = 3538995;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE PEDI";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = NULL, PE_RECALCULOTOT = NULL, PE_RECCEDIS = NULL, PE_RECCANT = NULL, PE_RECALCULADO = 1 WHERE PE_CEDIS <> ? AND PE_RECALCULADO IS NULL ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_subs._traealmacen /*String*/ (ba)}));
RDebugUtils.currentLine=3538996;
 //BA.debugLineNum = 3538996;BA.debugLine="End Sub";
return "";
}
public String  _resumen_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "resumen_click", false))
	 {return ((String) Debug.delegate(ba, "resumen_click", null));}
RDebugUtils.currentLine=4587520;
 //BA.debugLineNum = 4587520;BA.debugLine="Sub Resumen_Click";
RDebugUtils.currentLine=4587521;
 //BA.debugLineNum = 4587521;BA.debugLine="P_RESUMEN.Visible = True";
__ref._p_resumen /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4587529;
 //BA.debugLineNum = 4587529;BA.debugLine="End Sub";
return "";
}
public String  _subir_click(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "subir_click", false))
	 {return ((String) Debug.delegate(ba, "subir_click", null));}
int _i = 0;
int _dia = 0;
String _dialetra = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _fotomostrar1 = null;
byte[] _fotoenvio = null;
anywheresoftware.b4a.sql.SQL.ResultSetWrapper _h = null;
String _eventob = "";
String _clienteb = "";
String _finb = "";
String _nombrecliente = "";
String _rutaactual = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _x = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _x1 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _x2 = null;
RDebugUtils.currentLine=3604480;
 //BA.debugLineNum = 3604480;BA.debugLine="Sub Subir_Click";
RDebugUtils.currentLine=3604481;
 //BA.debugLineNum = 3604481;BA.debugLine="checaPedido";
__ref._checapedido /*String*/ (null);
RDebugUtils.currentLine=3604482;
 //BA.debugLineNum = 3604482;BA.debugLine="CARGA = \"SUBIR\"";
__ref._carga /*String*/  = "SUBIR";
RDebugUtils.currentLine=3604483;
 //BA.debugLineNum = 3604483;BA.debugLine="P1.Visible = True";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=3604484;
 //BA.debugLineNum = 3604484;BA.debugLine="P1.BringToFront";
__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
RDebugUtils.currentLine=3604486;
 //BA.debugLineNum = 3604486;BA.debugLine="NUEVO.Visible =False";
__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3604487;
 //BA.debugLineNum = 3604487;BA.debugLine="BUSCA.Visible=False";
__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3604488;
 //BA.debugLineNum = 3604488;BA.debugLine="connecta.Visible=False";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3604489;
 //BA.debugLineNum = 3604489;BA.debugLine="Subir.Visible=False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3604490;
 //BA.debugLineNum = 3604490;BA.debugLine="cargar.Visible=False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3604491;
 //BA.debugLineNum = 3604491;BA.debugLine="L_P_1.Visible = False";
__ref._l_p_1 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3604492;
 //BA.debugLineNum = 3604492;BA.debugLine="S_CC.Visible = False";
__ref._s_cc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3604493;
 //BA.debugLineNum = 3604493;BA.debugLine="L_P_3.Visible = False";
__ref._l_p_3 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3604494;
 //BA.debugLineNum = 3604494;BA.debugLine="S_CH.Visible = False";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3604495;
 //BA.debugLineNum = 3604495;BA.debugLine="PB1.Visible = False";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3604496;
 //BA.debugLineNum = 3604496;BA.debugLine="Resumen.Visible= False";
__ref._resumen /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3604497;
 //BA.debugLineNum = 3604497;BA.debugLine="l_visitartotal.Visible = False";
__ref._l_visitartotal /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3604498;
 //BA.debugLineNum = 3604498;BA.debugLine="de.Visible = False";
__ref._de /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3604499;
 //BA.debugLineNum = 3604499;BA.debugLine="l_faltan.Visible = False";
__ref._l_faltan /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3604500;
 //BA.debugLineNum = 3604500;BA.debugLine="l_visitas.Visible = False";
__ref._l_visitas /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3604502;
 //BA.debugLineNum = 3604502;BA.debugLine="p_principal.Visible = False";
__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3604503;
 //BA.debugLineNum = 3604503;BA.debugLine="Subs.panelVisible(P1, 0, 0)";
_subs._panelvisible /*String*/ (ba,__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
RDebugUtils.currentLine=3604504;
 //BA.debugLineNum = 3604504;BA.debugLine="Subs.centraPanel(P1, Root.Width)";
_subs._centrapanel /*String*/ (ba,__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=3604505;
 //BA.debugLineNum = 3604505;BA.debugLine="Subs.centraPanelV(P1, Root.Height)";
_subs._centrapanelv /*String*/ (ba,__ref._p1 /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=3604506;
 //BA.debugLineNum = 3604506;BA.debugLine="B4XPages.MainPage.reqManager.trackInit";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._trackinit /*String*/ (null);
RDebugUtils.currentLine=3604508;
 //BA.debugLineNum = 3604508;BA.debugLine="L_P_2.Text = \"Envio de Pedidos\"";
__ref._l_p_2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Envio de Pedidos"));
RDebugUtils.currentLine=3604509;
 //BA.debugLineNum = 3604509;BA.debugLine="L_P_3.Text = \"Envio de Pedidos\"";
__ref._l_p_3 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Envio de Pedidos"));
RDebugUtils.currentLine=3604510;
 //BA.debugLineNum = 3604510;BA.debugLine="S_CH.Text = \"EN PROCESO\"";
__ref._s_ch /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("EN PROCESO"));
RDebugUtils.currentLine=3604511;
 //BA.debugLineNum = 3604511;BA.debugLine="S_CP.Text = \"EN PROCESO\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("EN PROCESO"));
RDebugUtils.currentLine=3604512;
 //BA.debugLineNum = 3604512;BA.debugLine="B_OK_PAS.Text = \"ENVIANDO\"";
__ref._b_ok_pas /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setText(BA.ObjectToCharSequence("ENVIANDO"));
RDebugUtils.currentLine=3604513;
 //BA.debugLineNum = 3604513;BA.debugLine="PB1.Progress = 0";
__ref._pb1 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (0));
RDebugUtils.currentLine=3604514;
 //BA.debugLineNum = 3604514;BA.debugLine="PB2.Progress = 0";
__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (0));
RDebugUtils.currentLine=3604520;
 //BA.debugLineNum = 3604520;BA.debugLine="PASO = 1";
__ref._paso /*String*/  = BA.NumberToString(1);
RDebugUtils.currentLine=3604522;
 //BA.debugLineNum = 3604522;BA.debugLine="If PASO =1 Then";
if ((__ref._paso /*String*/ ).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=3604523;
 //BA.debugLineNum = 3604523;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE not In (select PE_CLIENTE from pedido)");
RDebugUtils.currentLine=3604524;
 //BA.debugLineNum = 3604524;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuar";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
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="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=3604527;
 //BA.debugLineNum = 3604527;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604528;
 //BA.debugLineNum = 3604528;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select HGDAT";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HGDATE, HGLAT, HGLON from HIST_GPS")));
RDebugUtils.currentLine=3604529;
 //BA.debugLineNum = 3604529;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3604530;
 //BA.debugLineNum = 3604530;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step41 = 1;
final int limit41 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit41 ;_i = _i + step41 ) {
RDebugUtils.currentLine=3604531;
 //BA.debugLineNum = 3604531;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3604532;
 //BA.debugLineNum = 3604532;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604533;
 //BA.debugLineNum = 3604533;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604534;
 //BA.debugLineNum = 3604534;BA.debugLine="cmd.Name = \"UPDATE_GUNA_ACTUAL2_GPS\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "UPDATE_GUNA_ACTUAL2_GPS";
RDebugUtils.currentLine=3604535;
 //BA.debugLineNum = 3604535;BA.debugLine="cmd.Parameters = Array As Object(NumberFormat2";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__c.NumberFormat2((double)(Double.parseDouble(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._montoactual /*String*/ )),(int) (0),(int) (2),(int) (2),__c.False)),(Object)(__ref._l_cuantost /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("hglat")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("hglon")),(Object)(__ref._batterystatus /*int[]*/ [(int) (0)]),(Object)(__ref._lpt /*String*/ ),(Object)(__ref._steyin /*String*/ ),(Object)(__ref._steyout /*String*/ ),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=3604536;
 //BA.debugLineNum = 3604536;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("inst_visitas"));
 }
};
 };
RDebugUtils.currentLine=3604539;
 //BA.debugLineNum = 3604539;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604542;
 //BA.debugLineNum = 3604542;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT PC_CL";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT, PC_COSTO_SIN, PC_RUTA, PC_ALMACEN, PC_FACTURA FROM PEDIDO_CLIENTE ")));
RDebugUtils.currentLine=3604543;
 //BA.debugLineNum = 3604543;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"SELECT COUNT";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) as CUANTOS_PEDIDOSC FROM PEDIDO_CLIENTE ")));
RDebugUtils.currentLine=3604544;
 //BA.debugLineNum = 3604544;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3604545;
 //BA.debugLineNum = 3604545;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step54 = 1;
final int limit54 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit54 ;_i = _i + step54 ) {
RDebugUtils.currentLine=3604546;
 //BA.debugLineNum = 3604546;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3604547;
 //BA.debugLineNum = 3604547;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604548;
 //BA.debugLineNum = 3604548;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604549;
 //BA.debugLineNum = 3604549;BA.debugLine="cmd.Name = \"insert_pedidos_GV3\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_pedidos_GV3";
RDebugUtils.currentLine=3604550;
 //BA.debugLineNum = 3604550;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_USER")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_LON")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_LAT")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_COSTO_SIN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FACTURA"))};
RDebugUtils.currentLine=3604551;
 //BA.debugLineNum = 3604551;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("ins_pedidos"));
 }
};
 };
RDebugUtils.currentLine=3604554;
 //BA.debugLineNum = 3604554;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604555;
 //BA.debugLineNum = 3604555;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3604556;
 //BA.debugLineNum = 3604556;BA.debugLine="cuantos_pedidosc = D.GetString(\"CUANTOS_PEDIDOSC";
__ref._cuantos_pedidosc /*String*/  = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_PEDIDOSC");
RDebugUtils.currentLine=3604557;
 //BA.debugLineNum = 3604557;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604561;
 //BA.debugLineNum = 3604561;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT CODIG";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CODIGOKMTS, CODIGOB, LAT, LON FROM HIST_CODIGO_BARRAS")));
RDebugUtils.currentLine=3604562;
 //BA.debugLineNum = 3604562;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3604563;
 //BA.debugLineNum = 3604563;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step69 = 1;
final int limit69 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit69 ;_i = _i + step69 ) {
RDebugUtils.currentLine=3604564;
 //BA.debugLineNum = 3604564;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3604565;
 //BA.debugLineNum = 3604565;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604566;
 //BA.debugLineNum = 3604566;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604567;
 //BA.debugLineNum = 3604567;BA.debugLine="cmd.Name = \"insert_QR_2_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_QR_2_GV2";
RDebugUtils.currentLine=3604568;
 //BA.debugLineNum = 3604568;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CODIGOKMTS")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CODIGOB")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("LON")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("LAT")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=3604569;
 //BA.debugLineNum = 3604569;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("ins_QR2"));
 }
};
 };
RDebugUtils.currentLine=3604572;
 //BA.debugLineNum = 3604572;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604575;
 //BA.debugLineNum = 3604575;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT * 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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM PLAN_LEALTAD WHERE DESCARGADO IS NULL")));
RDebugUtils.currentLine=3604576;
 //BA.debugLineNum = 3604576;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3604577;
 //BA.debugLineNum = 3604577;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step81 = 1;
final int limit81 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit81 ;_i = _i + step81 ) {
RDebugUtils.currentLine=3604578;
 //BA.debugLineNum = 3604578;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3604579;
 //BA.debugLineNum = 3604579;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604580;
 //BA.debugLineNum = 3604580;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604581;
 //BA.debugLineNum = 3604581;BA.debugLine="cmd.Name = \"insert_plan_lealtad_GUNA\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_plan_lealtad_GUNA";
RDebugUtils.currentLine=3604582;
 //BA.debugLineNum = 3604582;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PL_BANDERA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PL_CLIENTE")),(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(_subs._traeruta /*String*/ (ba))};
RDebugUtils.currentLine=3604583;
 //BA.debugLineNum = 3604583;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("insPlanLealtad"));
 }
};
 };
RDebugUtils.currentLine=3604586;
 //BA.debugLineNum = 3604586;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604589;
 //BA.debugLineNum = 3604589;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT * 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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM COMENTARIOS WHERE DESCARGADO IS NULL")));
RDebugUtils.currentLine=3604590;
 //BA.debugLineNum = 3604590;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3604591;
 //BA.debugLineNum = 3604591;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step93 = 1;
final int limit93 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit93 ;_i = _i + step93 ) {
RDebugUtils.currentLine=3604592;
 //BA.debugLineNum = 3604592;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3604593;
 //BA.debugLineNum = 3604593;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604594;
 //BA.debugLineNum = 3604594;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604595;
 //BA.debugLineNum = 3604595;BA.debugLine="cmd.Name = \"insert_coments_GUNA2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_coments_GUNA2";
RDebugUtils.currentLine=3604596;
 //BA.debugLineNum = 3604596;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("COMENTARTIO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTE")),(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(_subs._traeruta /*String*/ (ba)),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("comentario_tmp"))};
RDebugUtils.currentLine=3604597;
 //BA.debugLineNum = 3604597;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("INS_coment"));
 }
};
 };
RDebugUtils.currentLine=3604600;
 //BA.debugLineNum = 3604600;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604602;
 //BA.debugLineNum = 3604602;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT * FROM CLIENTES";
__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 CLIENTES_NUEVOS")));
RDebugUtils.currentLine=3604603;
 //BA.debugLineNum = 3604603;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3604604;
 //BA.debugLineNum = 3604604;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step105 = 1;
final int limit105 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit105 ;_i = _i + step105 ) {
RDebugUtils.currentLine=3604605;
 //BA.debugLineNum = 3604605;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3604606;
 //BA.debugLineNum = 3604606;BA.debugLine="Dim dia As Int = DateTime.GetDayOfWeek(DateTim";
_dia = __c.DateTime.GetDayOfWeek(__c.DateTime.getNow());
RDebugUtils.currentLine=3604607;
 //BA.debugLineNum = 3604607;BA.debugLine="If dia = 2  Then";
if (_dia==2) { 
RDebugUtils.currentLine=3604608;
 //BA.debugLineNum = 3604608;BA.debugLine="Dim dialetra As String = \"LUNES\"";
_dialetra = "LUNES";
 }else 
{RDebugUtils.currentLine=3604609;
 //BA.debugLineNum = 3604609;BA.debugLine="Else If dia = 3  Then";
if (_dia==3) { 
RDebugUtils.currentLine=3604610;
 //BA.debugLineNum = 3604610;BA.debugLine="Dim dialetra As String = \"MARTES\"";
_dialetra = "MARTES";
 }else 
{RDebugUtils.currentLine=3604611;
 //BA.debugLineNum = 3604611;BA.debugLine="Else If dia = 4  Then";
if (_dia==4) { 
RDebugUtils.currentLine=3604612;
 //BA.debugLineNum = 3604612;BA.debugLine="Dim dialetra As String = \"MIERCOLES\"";
_dialetra = "MIERCOLES";
 }else 
{RDebugUtils.currentLine=3604613;
 //BA.debugLineNum = 3604613;BA.debugLine="Else If dia = 5  Then";
if (_dia==5) { 
RDebugUtils.currentLine=3604614;
 //BA.debugLineNum = 3604614;BA.debugLine="Dim dialetra As String = \"JUEVES\"";
_dialetra = "JUEVES";
 }else 
{RDebugUtils.currentLine=3604615;
 //BA.debugLineNum = 3604615;BA.debugLine="Else If dia = 6  Then";
if (_dia==6) { 
RDebugUtils.currentLine=3604616;
 //BA.debugLineNum = 3604616;BA.debugLine="Dim dialetra As String = \"VIERNES\"";
_dialetra = "VIERNES";
 }else 
{RDebugUtils.currentLine=3604617;
 //BA.debugLineNum = 3604617;BA.debugLine="Else If dia = 7  Then";
if (_dia==7) { 
RDebugUtils.currentLine=3604618;
 //BA.debugLineNum = 3604618;BA.debugLine="Dim dialetra As String = \"SABADO\"";
_dialetra = "SABADO";
 }}}}}}
;
RDebugUtils.currentLine=3604620;
 //BA.debugLineNum = 3604620;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604621;
 //BA.debugLineNum = 3604621;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604622;
 //BA.debugLineNum = 3604622;BA.debugLine="cmd.Name = \"insert_clientesnuevos_GUNA2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_clientesnuevos_GUNA2";
RDebugUtils.currentLine=3604623;
 //BA.debugLineNum = 3604623;BA.debugLine="Log(c.GetString(\"CN_ID\")&\"    ,\"& c.GetString(";
__c.LogImpl("03604623",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_ID")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_FECHA")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_USER")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_LAT")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_LON")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_NOMBRE")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_DIRECCION")+"    ,"+__ref._almacen /*String*/ +__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_RUTA")+"    ,"+"En espera"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_GIRO")+"    ,"+_dialetra+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_SOLICITA")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_COLONIA")+"    ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_TELEFONO")+" ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_CALLE1")+" ,"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_CALLE2"),0);
RDebugUtils.currentLine=3604624;
 //BA.debugLineNum = 3604624;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_ID")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_USER")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_LAT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_LON")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_NOMBRE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_DIRECCION")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_RUTA")),(Object)("En espera"),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_GIRO")),(Object)(_dialetra),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_SOLICITA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_COLONIA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_TELEFONO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_CP")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_CALLE1")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_CALLE2")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_NUMEROINT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_NUMEROEXT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CN_REFERENCIA"))};
RDebugUtils.currentLine=3604625;
 //BA.debugLineNum = 3604625;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("inst_clientesn"));
 }
};
 };
RDebugUtils.currentLine=3604628;
 //BA.debugLineNum = 3604628;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604630;
 //BA.debugLineNum = 3604630;BA.debugLine="Dim fotomostrar1 As Cursor = Starter.skmt.ExecQu";
_fotomostrar1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_fotomostrar1 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM kmt_info3 where foto is not NULL")));
RDebugUtils.currentLine=3604631;
 //BA.debugLineNum = 3604631;BA.debugLine="If fotomostrar1.RowCount>0 Then";
if (_fotomostrar1.getRowCount()>0) { 
RDebugUtils.currentLine=3604632;
 //BA.debugLineNum = 3604632;BA.debugLine="For i=0 To fotomostrar1.RowCount -1";
{
final int step132 = 1;
final int limit132 = (int) (_fotomostrar1.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit132 ;_i = _i + step132 ) {
RDebugUtils.currentLine=3604633;
 //BA.debugLineNum = 3604633;BA.debugLine="fotomostrar1.Position=i";
_fotomostrar1.setPosition(_i);
RDebugUtils.currentLine=3604634;
 //BA.debugLineNum = 3604634;BA.debugLine="Dim fotoenvio() As Byte = fotomostrar1.GetBlob";
_fotoenvio = _fotomostrar1.GetBlob("foto");
RDebugUtils.currentLine=3604635;
 //BA.debugLineNum = 3604635;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604636;
 //BA.debugLineNum = 3604636;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604637;
 //BA.debugLineNum = 3604637;BA.debugLine="cmd.Name = \"UPDATE_FOTO_GUNA\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "UPDATE_FOTO_GUNA";
RDebugUtils.currentLine=3604638;
 //BA.debugLineNum = 3604638;BA.debugLine="cmd.Parameters = Array As Object(fotoenvio,fot";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_fotoenvio),(Object)(_fotomostrar1.GetString("CAT_CL_CODIGO")),(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(_subs._traeruta /*String*/ (ba))};
RDebugUtils.currentLine=3604639;
 //BA.debugLineNum = 3604639;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("INS_coment"));
 }
};
 };
RDebugUtils.currentLine=3604642;
 //BA.debugLineNum = 3604642;BA.debugLine="fotomostrar1.Close";
_fotomostrar1.Close();
RDebugUtils.currentLine=3604644;
 //BA.debugLineNum = 3604644;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT CAT_C";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_NUM_SERIEFISICO,CAT_CL_CODIGO ,CAT_CL_LONG,CAT_CL_LAT, CAT_CL_FOTO FROM kmt_info3 where CAT_CL_NUM_SERIEFISICO IS NOT NULL and gestion <> '0'")));
RDebugUtils.currentLine=3604645;
 //BA.debugLineNum = 3604645;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3604646;
 //BA.debugLineNum = 3604646;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step145 = 1;
final int limit145 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit145 ;_i = _i + step145 ) {
RDebugUtils.currentLine=3604647;
 //BA.debugLineNum = 3604647;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3604650;
 //BA.debugLineNum = 3604650;BA.debugLine="foto1 = c.GetBlob(\"CAT_CL_FOTO\")";
__ref._foto1 /*byte[]*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetBlob("CAT_CL_FOTO");
RDebugUtils.currentLine=3604651;
 //BA.debugLineNum = 3604651;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604652;
 //BA.debugLineNum = 3604652;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604653;
 //BA.debugLineNum = 3604653;BA.debugLine="cmd.Name = \"insert_QR_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_QR_GV2";
RDebugUtils.currentLine=3604654;
 //BA.debugLineNum = 3604654;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NUM_SERIEFISICO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_LONG")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_LAT")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._foto1 /*byte[]*/ )};
RDebugUtils.currentLine=3604655;
 //BA.debugLineNum = 3604655;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("ins_QR"));
 }
};
 };
RDebugUtils.currentLine=3604658;
 //BA.debugLineNum = 3604658;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604661;
 //BA.debugLineNum = 3604661;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CAT_C";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CAT_CL_ATIENDE1, CAT_CL_CODIGO from kmt_info3 where CAT_CL_CODIGO IN (SELECT CLIENTE FROM ATIENDE)")));
RDebugUtils.currentLine=3604662;
 //BA.debugLineNum = 3604662;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3604663;
 //BA.debugLineNum = 3604663;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step158 = 1;
final int limit158 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit158 ;_i = _i + step158 ) {
RDebugUtils.currentLine=3604664;
 //BA.debugLineNum = 3604664;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3604665;
 //BA.debugLineNum = 3604665;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604666;
 //BA.debugLineNum = 3604666;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604667;
 //BA.debugLineNum = 3604667;BA.debugLine="cmd.Name = \"update_atiende_guna\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "update_atiende_guna";
RDebugUtils.currentLine=3604668;
 //BA.debugLineNum = 3604668;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENDE1")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")),(Object)(__ref._almacen /*String*/ ),(Object)(_subs._traeruta2 /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")))};
RDebugUtils.currentLine=3604669;
 //BA.debugLineNum = 3604669;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("up_coordenadas"));
 }
};
 };
RDebugUtils.currentLine=3604672;
 //BA.debugLineNum = 3604672;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604676;
 //BA.debugLineNum = 3604676;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select * 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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select * from CODIGOS_CREDITO where BANDERA = 1")));
RDebugUtils.currentLine=3604677;
 //BA.debugLineNum = 3604677;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3604678;
 //BA.debugLineNum = 3604678;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step170 = 1;
final int limit170 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit170 ;_i = _i + step170 ) {
RDebugUtils.currentLine=3604679;
 //BA.debugLineNum = 3604679;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3604680;
 //BA.debugLineNum = 3604680;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604681;
 //BA.debugLineNum = 3604681;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604682;
 //BA.debugLineNum = 3604682;BA.debugLine="cmd.Name = \"update_ventacredito_guna\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "update_ventacredito_guna";
RDebugUtils.currentLine=3604683;
 //BA.debugLineNum = 3604683;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("BANDERA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTE")),(Object)(__ref._almacen /*String*/ ),(Object)(_subs._traeruta2 /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTE")))};
RDebugUtils.currentLine=3604684;
 //BA.debugLineNum = 3604684;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("up_coordenadas"));
 }
};
 };
RDebugUtils.currentLine=3604687;
 //BA.debugLineNum = 3604687;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604690;
 //BA.debugLineNum = 3604690;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CAT_C";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CAT_CL_TELEFONO, CAT_CL_CODIGO from kmt_info3 where CAT_CL_CODIGO IN (SELECT CLIENTE FROM ATIENDE)")));
RDebugUtils.currentLine=3604691;
 //BA.debugLineNum = 3604691;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3604692;
 //BA.debugLineNum = 3604692;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step182 = 1;
final int limit182 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit182 ;_i = _i + step182 ) {
RDebugUtils.currentLine=3604693;
 //BA.debugLineNum = 3604693;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3604694;
 //BA.debugLineNum = 3604694;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604695;
 //BA.debugLineNum = 3604695;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604696;
 //BA.debugLineNum = 3604696;BA.debugLine="cmd.Name = \"update_telefono_guna\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "update_telefono_guna";
RDebugUtils.currentLine=3604697;
 //BA.debugLineNum = 3604697;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_TELEFONO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")),(Object)(__ref._almacen /*String*/ ),(Object)(_subs._traeruta2 /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")))};
RDebugUtils.currentLine=3604698;
 //BA.debugLineNum = 3604698;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("up_coordenadas"));
 }
};
 };
RDebugUtils.currentLine=3604701;
 //BA.debugLineNum = 3604701;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604704;
 //BA.debugLineNum = 3604704;BA.debugLine="Private h As ResultSet = B4XPages.MainPage.skmt.";
_h = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper();
_h = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from bitacoraGPS"))));
RDebugUtils.currentLine=3604705;
 //BA.debugLineNum = 3604705;BA.debugLine="Do While h.nextrow";
while (_h.NextRow()) {
RDebugUtils.currentLine=3604706;
 //BA.debugLineNum = 3604706;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604707;
 //BA.debugLineNum = 3604707;BA.debugLine="Private eventob As String = h.GetString(\"evento";
_eventob = _h.GetString("eventob");
RDebugUtils.currentLine=3604708;
 //BA.debugLineNum = 3604708;BA.debugLine="cmd.Name = \"mandaBitacora3_GUNA\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "mandaBitacora3_GUNA";
RDebugUtils.currentLine=3604710;
 //BA.debugLineNum = 3604710;BA.debugLine="Private clienteb As String = h.GetString(\"clien";
_clienteb = _h.GetString("clienteb");
RDebugUtils.currentLine=3604711;
 //BA.debugLineNum = 3604711;BA.debugLine="Private finb As String = h.GetString(\"finb\")";
_finb = _h.GetString("finb");
RDebugUtils.currentLine=3604712;
 //BA.debugLineNum = 3604712;BA.debugLine="Private nombreCliente As String =Subs. traeNomb";
_nombrecliente = _subs._traenombrecliente /*String*/ (ba,_h.GetString("clienteb"));
RDebugUtils.currentLine=3604713;
 //BA.debugLineNum = 3604713;BA.debugLine="If eventob = \"Llega a almacen\" Then";
if ((_eventob).equals("Llega a almacen")) { 
RDebugUtils.currentLine=3604714;
 //BA.debugLineNum = 3604714;BA.debugLine="nombreCliente = \"BOLETA\"";
_nombrecliente = "BOLETA";
RDebugUtils.currentLine=3604715;
 //BA.debugLineNum = 3604715;BA.debugLine="clienteb = \"\"";
_clienteb = "";
RDebugUtils.currentLine=3604716;
 //BA.debugLineNum = 3604716;BA.debugLine="finb = h.GetString(\"iniciob\")";
_finb = _h.GetString("iniciob");
 };
RDebugUtils.currentLine=3604720;
 //BA.debugLineNum = 3604720;BA.debugLine="If eventob = \"Salida almacen\" Then nombreClient";
if ((_eventob).equals("Salida almacen")) { 
_nombrecliente = "CHECKLIST";};
RDebugUtils.currentLine=3604721;
 //BA.debugLineNum = 3604721;BA.debugLine="If eventob = \"Fin Día\" Then nombreCliente = \"FI";
if ((_eventob).equals("Fin Día")) { 
_nombrecliente = "FIN DIA";};
RDebugUtils.currentLine=3604722;
 //BA.debugLineNum = 3604722;BA.debugLine="If eventob = \"Carga día\" Then nombreCliente = \"";
if ((_eventob).equals("Carga día")) { 
_nombrecliente = "CARGA DIA";};
RDebugUtils.currentLine=3604723;
 //BA.debugLineNum = 3604723;BA.debugLine="If eventob = \"Carga día suplencia\" Then nombreC";
if ((_eventob).equals("Carga día suplencia")) { 
_nombrecliente = _subs._traerutassup /*String*/ (ba);};
RDebugUtils.currentLine=3604727;
 //BA.debugLineNum = 3604727;BA.debugLine="cmd.Parameters = Array As Object(h.GetString(\"a";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_h.GetString("almacenb")),(Object)(_h.GetString("usuariob")),(Object)(_h.GetString("rutab")),(Object)(_eventob),(Object)(_clienteb),(Object)(_nombrecliente),(Object)(_h.GetString("iniciob")),(Object)(_finb),(Object)(_h.GetString("latitudb")),(Object)(_h.GetString("longitudb")),(Object)(_h.GetString("precision")),(Object)(_h.GetString("motivonoventa")),(Object)(_h.GetString("motivonovisita")),(Object)(_h.GetString("fechab")),(Object)(_h.GetString("BAN_GEOB"))};
RDebugUtils.currentLine=3604728;
 //BA.debugLineNum = 3604728;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("mandaBitacora"));
 }
;
RDebugUtils.currentLine=3604730;
 //BA.debugLineNum = 3604730;BA.debugLine="Log(\"MANDAMOS BITACORA\")";
__c.LogImpl("03604730","MANDAMOS BITACORA",0);
RDebugUtils.currentLine=3604732;
 //BA.debugLineNum = 3604732;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT HE_CL";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HE_CLIE, HE_RES, HE_FECHA, HE_TIPO, HE_LAT, HE_LON, HE_FOTO FROM HIST_ENCUESTA")));
RDebugUtils.currentLine=3604733;
 //BA.debugLineNum = 3604733;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3604734;
 //BA.debugLineNum = 3604734;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step215 = 1;
final int limit215 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit215 ;_i = _i + step215 ) {
RDebugUtils.currentLine=3604735;
 //BA.debugLineNum = 3604735;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3604736;
 //BA.debugLineNum = 3604736;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604737;
 //BA.debugLineNum = 3604737;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604738;
 //BA.debugLineNum = 3604738;BA.debugLine="cmd.Name = \"insert_encuesta2_GUNA\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_encuesta2_GUNA";
RDebugUtils.currentLine=3604740;
 //BA.debugLineNum = 3604740;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HE_CLIE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HE_RES")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HE_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HE_TIPO")),(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(_subs._traeruta /*String*/ (ba)),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HE_LAT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HE_LON")),(Object)(""),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetBlob("HE_FOTO"))};
RDebugUtils.currentLine=3604741;
 //BA.debugLineNum = 3604741;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("inst_encuesta"));
 }
};
 };
RDebugUtils.currentLine=3604744;
 //BA.debugLineNum = 3604744;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604747;
 //BA.debugLineNum = 3604747;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT PE_C";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO, PE_COSTO_SIN, PE_RUTA, PE_DESC, PE_FOLIO FROM PEDIDO WHERE (PE_RECALCULO = ? or PE_RECALCULO = ? or PE_RECALCULO IS NULL)",new String[]{"","null"})));
RDebugUtils.currentLine=3604748;
 //BA.debugLineNum = 3604748;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"SELECT COUNT";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) as CUANTOS_PEDIDO FROM PEDIDO")));
RDebugUtils.currentLine=3604749;
 //BA.debugLineNum = 3604749;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3604750;
 //BA.debugLineNum = 3604750;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step228 = 1;
final int limit228 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit228 ;_i = _i + step228 ) {
RDebugUtils.currentLine=3604751;
 //BA.debugLineNum = 3604751;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3604752;
 //BA.debugLineNum = 3604752;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604753;
 //BA.debugLineNum = 3604753;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604754;
 //BA.debugLineNum = 3604754;BA.debugLine="cmd.Name = \"insert_pedido_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_pedido_GV2";
RDebugUtils.currentLine=3604755;
 //BA.debugLineNum = 3604755;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CEDIS")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_TOT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_USUARIO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_SIN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_DESC")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FOLIO"))};
RDebugUtils.currentLine=3604756;
 //BA.debugLineNum = 3604756;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("ins_pedido"));
 }
};
 };
RDebugUtils.currentLine=3604759;
 //BA.debugLineNum = 3604759;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604760;
 //BA.debugLineNum = 3604760;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3604762;
 //BA.debugLineNum = 3604762;BA.debugLine="cuantos_pedido = D.GetString(\"CUANTOS_PEDIDO\")";
__ref._cuantos_pedido /*String*/  = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_PEDIDO");
RDebugUtils.currentLine=3604763;
 //BA.debugLineNum = 3604763;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604766;
 //BA.debugLineNum = 3604766;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT PE_R";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_RECALCULO,PE_RECALCULOTOT,ifnull(PE_RECCEDIS,'') as PE_RECCEDIS,PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,ifnull(PE_CANT,0) as PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO, PE_COSTO_SIN, PE_RUTA, PE_DESC, PE_FOLIO, IFNULL(PE_RECCANT,0) AS PE_RECCANT FROM PEDIDO WHERE PE_RECALCULO <> ? or PE_RECALCULO <> ? or PE_RECALCULO IS NOT NULL",new String[]{"","null"})));
RDebugUtils.currentLine=3604767;
 //BA.debugLineNum = 3604767;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery($\"SELECT COUN";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT COUNT(*) as CUANTOS_PEDIDO FROM PEDIDO where PE_RUTA = '"+__c.SmartStringFormatter("",(Object)(_subs._traeruta /*String*/ (ba)))+"'"))));
RDebugUtils.currentLine=3604768;
 //BA.debugLineNum = 3604768;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3604769;
 //BA.debugLineNum = 3604769;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step244 = 1;
final int limit244 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit244 ;_i = _i + step244 ) {
RDebugUtils.currentLine=3604770;
 //BA.debugLineNum = 3604770;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3604771;
 //BA.debugLineNum = 3604771;BA.debugLine="If c.GetString(\"PE_RECCEDIS\") = \"\" Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RECCEDIS")).equals("")) { 
RDebugUtils.currentLine=3604772;
 //BA.debugLineNum = 3604772;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604773;
 //BA.debugLineNum = 3604773;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604774;
 //BA.debugLineNum = 3604774;BA.debugLine="cmd.Name = \"insert_pedido_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_pedido_GV2";
RDebugUtils.currentLine=3604775;
 //BA.debugLineNum = 3604775;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CEDIS")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RECALCULOTOT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RECALCULO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_USUARIO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_SIN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_DESC")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FOLIO"))};
RDebugUtils.currentLine=3604776;
 //BA.debugLineNum = 3604776;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(c";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("ins_pedido"));
 }else {
RDebugUtils.currentLine=3604778;
 //BA.debugLineNum = 3604778;BA.debugLine="If c.GetString(\"PE_RECCANT\") = c.GetString(\"P";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RECCANT")).equals(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT"))) { 
RDebugUtils.currentLine=3604779;
 //BA.debugLineNum = 3604779;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604780;
 //BA.debugLineNum = 3604780;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604781;
 //BA.debugLineNum = 3604781;BA.debugLine="cmd.Name = \"insert_pedido_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_pedido_GV2";
RDebugUtils.currentLine=3604782;
 //BA.debugLineNum = 3604782;BA.debugLine="cmd.Parameters = Array As Object(C.GetString";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RECCEDIS")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RECALCULOTOT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RECALCULO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_USUARIO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_SIN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_DESC")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FOLIO"))};
RDebugUtils.currentLine=3604783;
 //BA.debugLineNum = 3604783;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("ins_pedido"));
 }else {
RDebugUtils.currentLine=3604786;
 //BA.debugLineNum = 3604786;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604787;
 //BA.debugLineNum = 3604787;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604788;
 //BA.debugLineNum = 3604788;BA.debugLine="cmd.Name = \"insert_pedido_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_pedido_GV2";
RDebugUtils.currentLine=3604789;
 //BA.debugLineNum = 3604789;BA.debugLine="cmd.Parameters = Array As Object(C.GetString";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RECCEDIS")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RECALCULOTOT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RECALCULO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RECCANT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_USUARIO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_SIN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_DESC")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FOLIO"))};
RDebugUtils.currentLine=3604790;
 //BA.debugLineNum = 3604790;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("ins_pedido"));
RDebugUtils.currentLine=3604792;
 //BA.debugLineNum = 3604792;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604793;
 //BA.debugLineNum = 3604793;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604794;
 //BA.debugLineNum = 3604794;BA.debugLine="cmd.Name = \"insert_pedido_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_pedido_GV2";
RDebugUtils.currentLine=3604795;
 //BA.debugLineNum = 3604795;BA.debugLine="cmd.Parameters = Array As Object(C.GetString";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CEDIS")),(Object)(__ref._almacen /*String*/ ),(Object)(__c.NumberFormat2(((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")))-(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RECCANT"))))*(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU"))),(int) (1),(int) (2),(int) (2),__c.False)),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU")),(Object)(((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")))-(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RECCANT"))))),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_USUARIO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_SIN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_DESC")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FOLIO"))};
RDebugUtils.currentLine=3604796;
 //BA.debugLineNum = 3604796;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("ins_pedido"));
 };
 };
 }
};
 };
RDebugUtils.currentLine=3604801;
 //BA.debugLineNum = 3604801;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604802;
 //BA.debugLineNum = 3604802;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3604803;
 //BA.debugLineNum = 3604803;BA.debugLine="cuantos_pedido = D.GetString(\"CUANTOS_PEDIDO\")";
__ref._cuantos_pedido /*String*/  = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_PEDIDO");
RDebugUtils.currentLine=3604804;
 //BA.debugLineNum = 3604804;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604826;
 //BA.debugLineNum = 3604826;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery($\"select *";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from cuestionario"))));
RDebugUtils.currentLine=3604827;
 //BA.debugLineNum = 3604827;BA.debugLine="Private rutaActual As String = Subs.traeRuta";
_rutaactual = _subs._traeruta /*String*/ (ba);
RDebugUtils.currentLine=3604828;
 //BA.debugLineNum = 3604828;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3604829;
 //BA.debugLineNum = 3604829;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step281 = 1;
final int limit281 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit281 ;_i = _i + step281 ) {
RDebugUtils.currentLine=3604830;
 //BA.debugLineNum = 3604830;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3604831;
 //BA.debugLineNum = 3604831;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604832;
 //BA.debugLineNum = 3604832;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604833;
 //BA.debugLineNum = 3604833;BA.debugLine="cmd.Name = \"insert_CUESTIONARIO_GUNA\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_CUESTIONARIO_GUNA";
RDebugUtils.currentLine=3604834;
 //BA.debugLineNum = 3604834;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("Q_IDCLIENTE")),(Object)(_rutaactual),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("Q_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("Q_IDPREGUNTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("Q_PREGUNTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("Q_IDRESPUESTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("Q_RESPUESTA"))};
RDebugUtils.currentLine=3604835;
 //BA.debugLineNum = 3604835;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("ins_cuestionario"));
 }
};
 };
RDebugUtils.currentLine=3604838;
 //BA.debugLineNum = 3604838;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604841;
 //BA.debugLineNum = 3604841;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT NV_CL";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON FROM NOVENTA")));
RDebugUtils.currentLine=3604842;
 //BA.debugLineNum = 3604842;BA.debugLine="D=B4XPages.MainPage.skmt.ExecQuery(\"SELECT COUNT";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA")));
RDebugUtils.currentLine=3604843;
 //BA.debugLineNum = 3604843;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3604844;
 //BA.debugLineNum = 3604844;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step294 = 1;
final int limit294 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit294 ;_i = _i + step294 ) {
RDebugUtils.currentLine=3604845;
 //BA.debugLineNum = 3604845;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3604846;
 //BA.debugLineNum = 3604846;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604847;
 //BA.debugLineNum = 3604847;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604848;
 //BA.debugLineNum = 3604848;BA.debugLine="cmd.Name = \"insert_noventa_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_noventa_GV2";
RDebugUtils.currentLine=3604849;
 //BA.debugLineNum = 3604849;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_USER")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_MOTIVO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_COMM")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_LAT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_LON")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=3604850;
 //BA.debugLineNum = 3604850;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("inst_noventa"));
 }
};
 };
RDebugUtils.currentLine=3604853;
 //BA.debugLineNum = 3604853;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604854;
 //BA.debugLineNum = 3604854;BA.debugLine="d.Position=0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=3604855;
 //BA.debugLineNum = 3604855;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")";
__ref._cuantos_noventa /*String*/  = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_NOVENTA");
RDebugUtils.currentLine=3604856;
 //BA.debugLineNum = 3604856;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604874;
 //BA.debugLineNum = 3604874;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select HGCLI";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select HGCLIENTE, HGDATE, HGLAT, HGLON from HIST_GEOCERCA")));
RDebugUtils.currentLine=3604875;
 //BA.debugLineNum = 3604875;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3604876;
 //BA.debugLineNum = 3604876;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step309 = 1;
final int limit309 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit309 ;_i = _i + step309 ) {
RDebugUtils.currentLine=3604877;
 //BA.debugLineNum = 3604877;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3604878;
 //BA.debugLineNum = 3604878;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604879;
 //BA.debugLineNum = 3604879;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604880;
 //BA.debugLineNum = 3604880;BA.debugLine="cmd.Name = \"insert_geocerca_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_geocerca_GV2";
RDebugUtils.currentLine=3604881;
 //BA.debugLineNum = 3604881;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HGCLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HGDATE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HGLAT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HGLON"))};
RDebugUtils.currentLine=3604882;
 //BA.debugLineNum = 3604882;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("inst_hist_geo"));
 }
};
 };
RDebugUtils.currentLine=3604885;
 //BA.debugLineNum = 3604885;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604888;
 //BA.debugLineNum = 3604888;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select HFCLI";
__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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select HFCLIENTE, HFALIAS,HFRUTA,HFALMACEN from HIST_FACE")));
RDebugUtils.currentLine=3604889;
 //BA.debugLineNum = 3604889;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=3604890;
 //BA.debugLineNum = 3604890;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step321 = 1;
final int limit321 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit321 ;_i = _i + step321 ) {
RDebugUtils.currentLine=3604891;
 //BA.debugLineNum = 3604891;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=3604892;
 //BA.debugLineNum = 3604892;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604893;
 //BA.debugLineNum = 3604893;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604894;
 //BA.debugLineNum = 3604894;BA.debugLine="cmd.Name = \"insert_face_like_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_face_like_GV2";
RDebugUtils.currentLine=3604895;
 //BA.debugLineNum = 3604895;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HFCLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HFALIAS")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HFRUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HFALMACEN"))};
RDebugUtils.currentLine=3604896;
 //BA.debugLineNum = 3604896;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("inst_hist_face"));
 }
};
 };
RDebugUtils.currentLine=3604899;
 //BA.debugLineNum = 3604899;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=3604902;
 //BA.debugLineNum = 3604902;BA.debugLine="t1.Initialize(\"T1\", 30000) ' 1000 = 1 second";
__ref._t1 /*anywheresoftware.b4a.objects.Timer*/ .Initialize(ba,"T1",(long) (30000));
RDebugUtils.currentLine=3604903;
 //BA.debugLineNum = 3604903;BA.debugLine="t1.Enabled = True";
__ref._t1 /*anywheresoftware.b4a.objects.Timer*/ .setEnabled(__c.True);
RDebugUtils.currentLine=3604904;
 //BA.debugLineNum = 3604904;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=3604905;
 //BA.debugLineNum = 3604905;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=3604906;
 //BA.debugLineNum = 3604906;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=3604907;
 //BA.debugLineNum = 3604907;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=3604908;
 //BA.debugLineNum = 3604908;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604909;
 //BA.debugLineNum = 3604909;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604910;
 //BA.debugLineNum = 3604910;BA.debugLine="cmd.Name =\"insert_drop_GV2_3\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_drop_GV2_3";
RDebugUtils.currentLine=3604911;
 //BA.debugLineNum = 3604911;BA.debugLine="cmd.Parameters = Array As Object(usuario,l_ruta.";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._usuario /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._sdate /*String*/ +__ref._stime /*String*/ ),(Object)(__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._l_drop /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._l_efectiva /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__c.NumberFormat2((double)(Double.parseDouble(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._montoactual /*String*/ )),(int) (0),(int) (2),(int) (2),__c.False)),(Object)("ENVIO"),(Object)(__ref._almacen /*String*/ ),(Object)(__c.Application.getVersionName())};
RDebugUtils.currentLine=3604912;
 //BA.debugLineNum = 3604912;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("inst_drop"));
RDebugUtils.currentLine=3604913;
 //BA.debugLineNum = 3604913;BA.debugLine="img2.Visible =False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=3604914;
 //BA.debugLineNum = 3604914;BA.debugLine="PORCENTAJE = Round(100/ (cuantos_noventa + cuant";
__ref._porcentaje /*String*/  = BA.NumberToString(__c.Round(100/(double)((double)(Double.parseDouble(__ref._cuantos_noventa /*String*/ ))+(double)(Double.parseDouble(__ref._cuantos_pedido /*String*/ ))+(double)(Double.parseDouble(__ref._cuantos_pedidosc /*String*/ ))+1)));
RDebugUtils.currentLine=3604915;
 //BA.debugLineNum = 3604915;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessageS";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence("Se Actualizaran los datos, Este proceso podria tardar hasta un minuto, gracias "+__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),__c.True);};
 };
RDebugUtils.currentLine=3604918;
 //BA.debugLineNum = 3604918;BA.debugLine="Private x As Cursor = B4XPages.MainPage.skmt.Exec";
_x = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_x = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CLIENTE, ALMACEN, P1, P2, P3, P4, P5, P6, P7, P8, P9 from ENCUESTA_MODULO1")));
RDebugUtils.currentLine=3604919;
 //BA.debugLineNum = 3604919;BA.debugLine="If x.RowCount>0 Then";
if (_x.getRowCount()>0) { 
RDebugUtils.currentLine=3604920;
 //BA.debugLineNum = 3604920;BA.debugLine="For i=0 To x.RowCount -1";
{
final int step348 = 1;
final int limit348 = (int) (_x.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit348 ;_i = _i + step348 ) {
RDebugUtils.currentLine=3604921;
 //BA.debugLineNum = 3604921;BA.debugLine="x.Position=i";
_x.setPosition(_i);
RDebugUtils.currentLine=3604922;
 //BA.debugLineNum = 3604922;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604923;
 //BA.debugLineNum = 3604923;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604924;
 //BA.debugLineNum = 3604924;BA.debugLine="cmd.Name = \"insert_ENCUESTA_MODULO1\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_ENCUESTA_MODULO1";
RDebugUtils.currentLine=3604925;
 //BA.debugLineNum = 3604925;BA.debugLine="cmd.Parameters = Array As Object(x.GetString(\"C";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_x.GetString("CLIENTE")),(Object)(_x.GetString("ALMACEN")),(Object)(_x.GetString("P1")),(Object)(_x.GetString("P2")),(Object)(_x.GetString("P3")),(Object)(_x.GetString("P4")),(Object)(_x.GetString("P5")),(Object)(_x.GetString("P6")),(Object)(_x.GetString("P7")),(Object)(_x.GetString("P8")),(Object)(_x.GetString("P9"))};
RDebugUtils.currentLine=3604926;
 //BA.debugLineNum = 3604926;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("insert_ENCUESTA_MODULO1"));
 }
};
 };
RDebugUtils.currentLine=3604929;
 //BA.debugLineNum = 3604929;BA.debugLine="x.Close";
_x.Close();
RDebugUtils.currentLine=3604931;
 //BA.debugLineNum = 3604931;BA.debugLine="Private x1 As Cursor = B4XPages.MainPage.skmt.Exe";
_x1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_x1 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CLIENTE, ALMACEN, P1, P2, P3, P4, P5, P6 from ENCUESTA_MODULO2")));
RDebugUtils.currentLine=3604932;
 //BA.debugLineNum = 3604932;BA.debugLine="If x1.RowCount>0 Then";
if (_x1.getRowCount()>0) { 
RDebugUtils.currentLine=3604933;
 //BA.debugLineNum = 3604933;BA.debugLine="For i=0 To x1.RowCount -1";
{
final int step360 = 1;
final int limit360 = (int) (_x1.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit360 ;_i = _i + step360 ) {
RDebugUtils.currentLine=3604934;
 //BA.debugLineNum = 3604934;BA.debugLine="x1.Position=i";
_x1.setPosition(_i);
RDebugUtils.currentLine=3604935;
 //BA.debugLineNum = 3604935;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604936;
 //BA.debugLineNum = 3604936;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604937;
 //BA.debugLineNum = 3604937;BA.debugLine="cmd.Name = \"insert_ENCUESTA_MODULO2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_ENCUESTA_MODULO2";
RDebugUtils.currentLine=3604938;
 //BA.debugLineNum = 3604938;BA.debugLine="cmd.Parameters = Array As Object(x1.GetString(\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_x1.GetString("CLIENTE")),(Object)(_x1.GetString("ALMACEN")),(Object)(_x1.GetString("P1")),(Object)(_x1.GetString("P2")),(Object)(_x1.GetString("P3")),(Object)(_x1.GetString("P4")),(Object)(_x1.GetString("P5")),(Object)(_x1.GetString("P6"))};
RDebugUtils.currentLine=3604939;
 //BA.debugLineNum = 3604939;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("insert_ENCUESTA_MODULO2"));
 }
};
 };
RDebugUtils.currentLine=3604942;
 //BA.debugLineNum = 3604942;BA.debugLine="x1.Close";
_x1.Close();
RDebugUtils.currentLine=3604943;
 //BA.debugLineNum = 3604943;BA.debugLine="Private x2 As Cursor = B4XPages.MainPage.skmt.Exe";
_x2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_x2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CLIENTE, ALMACEN, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11 from ENCUESTA_MODULO3")));
RDebugUtils.currentLine=3604944;
 //BA.debugLineNum = 3604944;BA.debugLine="If x2.RowCount>0 Then";
if (_x2.getRowCount()>0) { 
RDebugUtils.currentLine=3604945;
 //BA.debugLineNum = 3604945;BA.debugLine="For i=0 To x2.RowCount -1";
{
final int step372 = 1;
final int limit372 = (int) (_x2.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit372 ;_i = _i + step372 ) {
RDebugUtils.currentLine=3604946;
 //BA.debugLineNum = 3604946;BA.debugLine="x2.Position=i";
_x2.setPosition(_i);
RDebugUtils.currentLine=3604948;
 //BA.debugLineNum = 3604948;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604949;
 //BA.debugLineNum = 3604949;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604950;
 //BA.debugLineNum = 3604950;BA.debugLine="cmd.Name = \"insert_ENCUESTA_MODULO3\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_ENCUESTA_MODULO3";
RDebugUtils.currentLine=3604951;
 //BA.debugLineNum = 3604951;BA.debugLine="cmd.Parameters = Array As Object(x2.GetString(\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_x2.GetString("CLIENTE")),(Object)(_x2.GetString("ALMACEN")),(Object)(_x2.GetString("P1")),(Object)(_x2.GetString("P2")),(Object)(_x2.GetString("P3")),(Object)(_x2.GetString("P4")),(Object)(_x2.GetString("P5")),(Object)(_x2.GetString("P6")),(Object)(_x2.GetString("P7")),(Object)(_x2.GetString("P8")),(Object)(_x2.GetString("P9")),(Object)(_x2.GetString("P10")),(Object)(_x2.GetString("P11"))};
RDebugUtils.currentLine=3604952;
 //BA.debugLineNum = 3604952;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("insert_ENCUESTA_MODULO3"));
 }
};
 };
RDebugUtils.currentLine=3604955;
 //BA.debugLineNum = 3604955;BA.debugLine="x2.Close";
_x2.Close();
RDebugUtils.currentLine=3604956;
 //BA.debugLineNum = 3604956;BA.debugLine="Private x As Cursor = B4XPages.MainPage.skmt.Exec";
_x = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_x = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CLIENTE, ALMACEN, P1, P2, P3, P4, P5, P6, P7, P8 from ENCUESTA_MODULO4")));
RDebugUtils.currentLine=3604957;
 //BA.debugLineNum = 3604957;BA.debugLine="If x.RowCount>0 Then";
if (_x.getRowCount()>0) { 
RDebugUtils.currentLine=3604958;
 //BA.debugLineNum = 3604958;BA.debugLine="For i=0 To x.RowCount -1";
{
final int step384 = 1;
final int limit384 = (int) (_x.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit384 ;_i = _i + step384 ) {
RDebugUtils.currentLine=3604959;
 //BA.debugLineNum = 3604959;BA.debugLine="x.Position=i";
_x.setPosition(_i);
RDebugUtils.currentLine=3604960;
 //BA.debugLineNum = 3604960;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604961;
 //BA.debugLineNum = 3604961;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604962;
 //BA.debugLineNum = 3604962;BA.debugLine="cmd.Name = \"insert_ENCUESTA_MODULO4\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_ENCUESTA_MODULO4";
RDebugUtils.currentLine=3604963;
 //BA.debugLineNum = 3604963;BA.debugLine="cmd.Parameters = Array As Object(x.GetString(\"C";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_x.GetString("CLIENTE")),(Object)(_x.GetString("ALMACEN")),(Object)(_x.GetString("P1")),(Object)(_x.GetString("P2")),(Object)(_x.GetString("P3")),(Object)(_x.GetString("P4")),(Object)(_x.GetString("P5")),(Object)(_x.GetString("P6")),(Object)(_x.GetString("P7")),(Object)(_x.GetString("P8"))};
RDebugUtils.currentLine=3604964;
 //BA.debugLineNum = 3604964;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("insert_ENCUESTA_MODULO4"));
 }
};
 };
RDebugUtils.currentLine=3604967;
 //BA.debugLineNum = 3604967;BA.debugLine="x.Close";
_x.Close();
RDebugUtils.currentLine=3604968;
 //BA.debugLineNum = 3604968;BA.debugLine="Private x As Cursor = B4XPages.MainPage.skmt.Exec";
_x = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_x = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CLIENTE, ALMACEN, P1, P2, P3, P4, P5, P6, P7, P8, P9 from ENCUESTA_MODULO5")));
RDebugUtils.currentLine=3604969;
 //BA.debugLineNum = 3604969;BA.debugLine="If x.RowCount>0 Then";
if (_x.getRowCount()>0) { 
RDebugUtils.currentLine=3604970;
 //BA.debugLineNum = 3604970;BA.debugLine="For i=0 To x.RowCount -1";
{
final int step396 = 1;
final int limit396 = (int) (_x.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit396 ;_i = _i + step396 ) {
RDebugUtils.currentLine=3604971;
 //BA.debugLineNum = 3604971;BA.debugLine="x.Position=i";
_x.setPosition(_i);
RDebugUtils.currentLine=3604972;
 //BA.debugLineNum = 3604972;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=3604973;
 //BA.debugLineNum = 3604973;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=3604974;
 //BA.debugLineNum = 3604974;BA.debugLine="cmd.Name = \"insert_ENCUESTA_MODULO5\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "insert_ENCUESTA_MODULO5";
RDebugUtils.currentLine=3604975;
 //BA.debugLineNum = 3604975;BA.debugLine="cmd.Parameters = Array As Object(x.GetString(\"C";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(_x.GetString("CLIENTE")),(Object)(_x.GetString("ALMACEN")),(Object)(_x.GetString("P1")),(Object)(_x.GetString("P2")),(Object)(_x.GetString("P3")),(Object)(_x.GetString("P4")),(Object)(_x.GetString("P5")),(Object)(_x.GetString("P6")),(Object)(_x.GetString("P7")),(Object)(_x.GetString("P8")),(Object)(_x.GetString("P9"))};
RDebugUtils.currentLine=3604976;
 //BA.debugLineNum = 3604976;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(Object)("insert_ENCUESTA_MODULO5"));
 }
};
 };
RDebugUtils.currentLine=3604979;
 //BA.debugLineNum = 3604979;BA.debugLine="x.Close";
_x.Close();
RDebugUtils.currentLine=3604980;
 //BA.debugLineNum = 3604980;BA.debugLine="End Sub";
return "";
}
public String  _t1_tick(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "t1_tick", false))
	 {return ((String) Debug.delegate(ba, "t1_tick", null));}
RDebugUtils.currentLine=4325376;
 //BA.debugLineNum = 4325376;BA.debugLine="Sub t1_tick";
RDebugUtils.currentLine=4325378;
 //BA.debugLineNum = 4325378;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=4325379;
 //BA.debugLineNum = 4325379;BA.debugLine="cmd.Name = \"select_cuantos_pedido_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cuantos_pedido_GV2";
RDebugUtils.currentLine=4325380;
 //BA.debugLineNum = 4325380;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=4325381;
 //BA.debugLineNum = 4325381;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("valida_pedido"));
RDebugUtils.currentLine=4325383;
 //BA.debugLineNum = 4325383;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=4325384;
 //BA.debugLineNum = 4325384;BA.debugLine="cmd.Name = \"select_cuantos_noventa_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cuantos_noventa_GV2";
RDebugUtils.currentLine=4325385;
 //BA.debugLineNum = 4325385;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=4325386;
 //BA.debugLineNum = 4325386;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("valida_noventa"));
RDebugUtils.currentLine=4325388;
 //BA.debugLineNum = 4325388;BA.debugLine="cmd.Initialize";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Initialize();
RDebugUtils.currentLine=4325389;
 //BA.debugLineNum = 4325389;BA.debugLine="cmd.Name = \"select_cuantos_pedidoc_GV2\"";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Name /*String*/  = "select_cuantos_pedidoc_GV2";
RDebugUtils.currentLine=4325390;
 //BA.debugLineNum = 4325390;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/  = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())};
RDebugUtils.currentLine=4325391;
 //BA.debugLineNum = 4325391;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*gunav2.keymon.com.mx.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("valida_pedidoc"));
RDebugUtils.currentLine=4325393;
 //BA.debugLineNum = 4325393;BA.debugLine="If PB2.Progress = 0 Then";
if (__ref._pb2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .getProgress()==0) { 
RDebugUtils.currentLine=4325394;
 //BA.debugLineNum = 4325394;BA.debugLine="S_CP.Text = \"ENVIAR DATOS (K-1)\"";
__ref._s_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("ENVIAR DATOS (K-1)"));
 };
RDebugUtils.currentLine=4325396;
 //BA.debugLineNum = 4325396;BA.debugLine="Log(\"TIMER DISABLED\")";
__c.LogImpl("04325396","TIMER DISABLED",0);
RDebugUtils.currentLine=4325397;
 //BA.debugLineNum = 4325397;BA.debugLine="img2.Visible=False";
__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4325398;
 //BA.debugLineNum = 4325398;BA.debugLine="t1.Enabled = False";
__ref._t1 /*anywheresoftware.b4a.objects.Timer*/ .setEnabled(__c.False);
RDebugUtils.currentLine=4325401;
 //BA.debugLineNum = 4325401;BA.debugLine="End Sub";
return "";
}
public String  _t2_tick(gunav2.keymon.com.mx.c_principal __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_principal";
if (Debug.shouldDelegate(ba, "t2_tick", false))
	 {return ((String) Debug.delegate(ba, "t2_tick", null));}
RDebugUtils.currentLine=4128768;
 //BA.debugLineNum = 4128768;BA.debugLine="Sub t2_tick";
RDebugUtils.currentLine=4128770;
 //BA.debugLineNum = 4128770;BA.debugLine="Log(\"-------->  BORRAMOS\")";
__c.LogImpl("04128770","-------->  BORRAMOS",0);
RDebugUtils.currentLine=4128771;
 //BA.debugLineNum = 4128771;BA.debugLine="If B4XPages.MainPage.productos.lv_catalogos.IsIni";
if (_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._productos /*gunav2.keymon.com.mx.c_productos*/ ._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .IsInitialized()) { 
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._productos /*gunav2.keymon.com.mx.c_productos*/ ._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();};
RDebugUtils.currentLine=4128772;
 //BA.debugLineNum = 4128772;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente");
RDebugUtils.currentLine=4128773;
 //BA.debugLineNum = 4128773;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido");
RDebugUtils.currentLine=4128774;
 //BA.debugLineNum = 4128774;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from noventa");
RDebugUtils.currentLine=4128775;
 //BA.debugLineNum = 4128775;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from COMENTARIOS");
RDebugUtils.currentLine=4128776;
 //BA.debugLineNum = 4128776;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_PROMOS_DESCUENTOS");
RDebugUtils.currentLine=4128777;
 //BA.debugLineNum = 4128777;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from TELEFONO");
RDebugUtils.currentLine=4128778;
 //BA.debugLineNum = 4128778;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from ATIENDE");
RDebugUtils.currentLine=4128779;
 //BA.debugLineNum = 4128779;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PLAN_LEALTAD");
RDebugUtils.currentLine=4128780;
 //BA.debugLineNum = 4128780;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from clie_act");
RDebugUtils.currentLine=4128781;
 //BA.debugLineNum = 4128781;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info3");
RDebugUtils.currentLine=4128782;
 //BA.debugLineNum = 4128782;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM CLIENTES_NUEVOS");
RDebugUtils.currentLine=4128783;
 //BA.debugLineNum = 4128783;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_GIRO\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_GIRO");
RDebugUtils.currentLine=4128784;
 //BA.debugLineNum = 4128784;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
RDebugUtils.currentLine=4128785;
 //BA.debugLineNum = 4128785;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod2");
RDebugUtils.currentLine=4128786;
 //BA.debugLineNum = 4128786;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
RDebugUtils.currentLine=4128787;
 //BA.debugLineNum = 4128787;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS");
RDebugUtils.currentLine=4128788;
 //BA.debugLineNum = 4128788;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VERIFICACION");
RDebugUtils.currentLine=4128789;
 //BA.debugLineNum = 4128789;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_ENCUESTA");
RDebugUtils.currentLine=4128790;
 //BA.debugLineNum = 4128790;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_ENCUESTA2");
RDebugUtils.currentLine=4128791;
 //BA.debugLineNum = 4128791;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_STAY_OUT");
RDebugUtils.currentLine=4128792;
 //BA.debugLineNum = 4128792;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_GPS");
RDebugUtils.currentLine=4128793;
 //BA.debugLineNum = 4128793;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE from CODIGOS_CREDITO");
RDebugUtils.currentLine=4128794;
 //BA.debugLineNum = 4128794;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_FACE");
RDebugUtils.currentLine=4128795;
 //BA.debugLineNum = 4128795;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"INSERT INTO";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("INSERT INTO HIST_STAY_OUT(HSO_INI, HSO_FIN) VALUES (0,0)");
RDebugUtils.currentLine=4128796;
 //BA.debugLineNum = 4128796;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_CODIGO_BARRAS");
RDebugUtils.currentLine=4128797;
 //BA.debugLineNum = 4128797;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ENCUESTA_MODULO1");
RDebugUtils.currentLine=4128798;
 //BA.debugLineNum = 4128798;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ENCUESTA_MODULO2");
RDebugUtils.currentLine=4128799;
 //BA.debugLineNum = 4128799;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ENCUESTA_MODULO3");
RDebugUtils.currentLine=4128800;
 //BA.debugLineNum = 4128800;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ENCUESTA_MODULO4");
RDebugUtils.currentLine=4128801;
 //BA.debugLineNum = 4128801;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ENCUESTA_MODULO5");
RDebugUtils.currentLine=4128802;
 //BA.debugLineNum = 4128802;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM BITACORAGPS");
RDebugUtils.currentLine=4128803;
 //BA.debugLineNum = 4128803;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTA_SUPLENCIA");
RDebugUtils.currentLine=4128804;
 //BA.debugLineNum = 4128804;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TICKET_IMPRESO");
RDebugUtils.currentLine=4128805;
 //BA.debugLineNum = 4128805;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"CARGA_DIA"}));
RDebugUtils.currentLine=4128806;
 //BA.debugLineNum = 4128806;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"VENTAFUTURA"}));
RDebugUtils.currentLine=4128807;
 //BA.debugLineNum = 4128807;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"pasword"}));
RDebugUtils.currentLine=4128808;
 //BA.debugLineNum = 4128808;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"LATITUD"}));
RDebugUtils.currentLine=4128809;
 //BA.debugLineNum = 4128809;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"LONGITUD"}));
RDebugUtils.currentLine=4128810;
 //BA.debugLineNum = 4128810;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FROM";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"RUTA"}));
RDebugUtils.currentLine=4128813;
 //BA.debugLineNum = 4128813;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE GPS";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE GPS SET HABILITADO = (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(0)}));
RDebugUtils.currentLine=4128814;
 //BA.debugLineNum = 4128814;BA.debugLine="Subs.deleteFolder(Starter.fFileProvider.SharedFol";
_subs._deletefolder /*String*/ (ba,_starter._ffileprovider /*gunav2.keymon.com.mx.fileprovider*/ ._sharedfolder /*String*/ );
RDebugUtils.currentLine=4128816;
 //BA.debugLineNum = 4128816;BA.debugLine="E_RUTA2.Visible = False";
__ref._e_ruta2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4128818;
 //BA.debugLineNum = 4128818;BA.debugLine="b_abordo.Visible = False";
__ref._b_abordo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4128819;
 //BA.debugLineNum = 4128819;BA.debugLine="cargar.Visible = False";
__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4128820;
 //BA.debugLineNum = 4128820;BA.debugLine="Subir.Visible = False";
__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=4128821;
 //BA.debugLineNum = 4128821;BA.debugLine="connecta.Visible = True";
__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=4128827;
 //BA.debugLineNum = 4128827;BA.debugLine="t2.Enabled = False";
__ref._t2 /*anywheresoftware.b4a.objects.Timer*/ .setEnabled(__c.False);
RDebugUtils.currentLine=4128828;
 //BA.debugLineNum = 4128828;BA.debugLine="e_ruta.Text = \"\"";
__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=4128829;
 //BA.debugLineNum = 4128829;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=4128830;
 //BA.debugLineNum = 4128830;BA.debugLine="End Sub";
return "";
}
}