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 BA(_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 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.mapa_rutas _mapa_rutas = null;
public gunav2.keymon.com.mx.appupdater _appupdater = null;
public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null;
public gunav2.keymon.com.mx.tracker _tracker = 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 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 String  _addtitle(String _title) throws Exception{
anywheresoftware.b4a.objects.B4XViewWrapper _p_marcas = null;
gunav2.keymon.com.mx.c_principal._titledata _td = null;
 //BA.debugLineNum = 3946;BA.debugLine="Sub AddTitle (Title As String)";
 //BA.debugLineNum = 3947;BA.debugLine="Dim p_marcas As B4XView = xui.CreatePanel(\"\")";
_p_marcas = new anywheresoftware.b4a.objects.B4XViewWrapper();
_p_marcas = _xui.CreatePanel(ba,"");
 //BA.debugLineNum = 3948;BA.debugLine="p_marcas.SetLayoutAnimated(0, 0, 0, CLV1.AsView.W";
_p_marcas.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_clv1._asview().getWidth(),_titleheight);
 //BA.debugLineNum = 3949;BA.debugLine="p_marcas.LoadLayout(\"CellTitle\")";
_p_marcas.LoadLayout("CellTitle",ba);
 //BA.debugLineNum = 3950;BA.debugLine="lblTitle.Text = Title";
_lbltitle.setText(BA.ObjectToCharSequence(_title));
 //BA.debugLineNum = 3951;BA.debugLine="Dim td As TitleData";
_td = new gunav2.keymon.com.mx.c_principal._titledata();
 //BA.debugLineNum = 3952;BA.debugLine="td.Title = Title";
_td.Title /*String*/  = _title;
 //BA.debugLineNum = 3953;BA.debugLine="CLV1.Add(p_marcas, td)";
_clv1._add(_p_marcas,(Object)(_td));
 //BA.debugLineNum = 3954;BA.debugLine="End Sub";
return "";
}
public String  _b_abordo_click() throws Exception{
 //BA.debugLineNum = 3996;BA.debugLine="Private Sub b_abordo_Click";
 //BA.debugLineNum = 3997;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from cuentaa\"$";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from cuentaa"));
 //BA.debugLineNum = 3998;BA.debugLine="Starter.skmt.ExecNonQuery($\"insert into cuentaa (";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into cuentaa (cuenta) values ('0')"));
 //BA.debugLineNum = 3999;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
 //BA.debugLineNum = 4000;BA.debugLine="End Sub";
return "";
}
public String  _b_clientesvisitados_click() throws Exception{
 //BA.debugLineNum = 4006;BA.debugLine="Private Sub b_clientesvisitados_Click";
 //BA.debugLineNum = 4007;BA.debugLine="tickets_dia_Click";
_tickets_dia_click();
 //BA.debugLineNum = 4008;BA.debugLine="End Sub";
return "";
}
public String  _b_comm_click() throws Exception{
 //BA.debugLineNum = 3827;BA.debugLine="Sub B_COMM_Click";
 //BA.debugLineNum = 3828;BA.debugLine="Btn_Ubicar.Visible=False";
_btn_ubicar.setVisible(__c.False);
 //BA.debugLineNum = 3829;BA.debugLine="SCROLL_RESDIA.Visible = True";
_scroll_resdia.setVisible(__c.True);
 //BA.debugLineNum = 3830;BA.debugLine="SCROLL_RESDIA.Panel.LoadLayout(\"COMIS\")";
_scroll_resdia.getPanel().LoadLayout("COMIS",ba);
 //BA.debugLineNum = 3831;BA.debugLine="SCROLL_RESDIA.Panel.Height = Panel_C.Height";
_scroll_resdia.getPanel().setHeight(_panel_c.getHeight());
 //BA.debugLineNum = 3832;BA.debugLine="Panel4.Visible = False";
_panel4.setVisible(__c.False);
 //BA.debugLineNum = 3833;BA.debugLine="Panel_C.Visible = True";
_panel_c.setVisible(__c.True);
 //BA.debugLineNum = 3834;BA.debugLine="Panel_C.Width = Root.Width * 0.90";
_panel_c.setWidth((int) (_root.getWidth()*0.90));
 //BA.debugLineNum = 3838;BA.debugLine="NUEVO.Visible =False";
_nuevo.setVisible(__c.False);
 //BA.debugLineNum = 3839;BA.debugLine="BUSCA.Visible=False";
_busca.setVisible(__c.False);
 //BA.debugLineNum = 3840;BA.debugLine="connecta.Visible=False";
_connecta.setVisible(__c.False);
 //BA.debugLineNum = 3841;BA.debugLine="Subir.Visible=False";
_subir.setVisible(__c.False);
 //BA.debugLineNum = 3842;BA.debugLine="cargar.Visible=False";
_cargar.setVisible(__c.False);
 //BA.debugLineNum = 3843;BA.debugLine="Resumen.Visible= False";
_resumen.setVisible(__c.False);
 //BA.debugLineNum = 3845;BA.debugLine="If l_ruta.Text <> 0 Then";
if ((_l_ruta.getText()).equals(BA.NumberToString(0)) == false) { 
 //BA.debugLineNum = 3846;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select HCM_T";
_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*/ .ExecQuery("Select HCM_TOTAL_V, HCM_TOTAL_VIVE, HCM_TOTAL_GUNA,	HCM_TOTAL_BEB from HIST_COMISIONES_MOVIL")));
 //BA.debugLineNum = 3847;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 3848;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 3849;BA.debugLine="L_TOTAL_BA.Text = c.GetString(\"HCM_TOTAL_BEB\")";
_l_total_ba.setText(BA.ObjectToCharSequence(_c.GetString("HCM_TOTAL_BEB")));
 //BA.debugLineNum = 3850;BA.debugLine="L_TOTAL_GUNA.Text = c.GetString(\"HCM_TOTAL_GUNA";
_l_total_guna.setText(BA.ObjectToCharSequence(_c.GetString("HCM_TOTAL_GUNA")));
 //BA.debugLineNum = 3851;BA.debugLine="L_TOTAL_MM.Text = c.GetString(\"HCM_TOTAL_V\")";
_l_total_mm.setText(BA.ObjectToCharSequence(_c.GetString("HCM_TOTAL_V")));
 //BA.debugLineNum = 3852;BA.debugLine="L_TOTAL_VIVE.Text = c.GetString(\"HCM_TOTAL_VIVE";
_l_total_vive.setText(BA.ObjectToCharSequence(_c.GetString("HCM_TOTAL_VIVE")));
 //BA.debugLineNum = 3853;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 3854;BA.debugLine="L_TOTAL_COMIS.Text = 0";
_l_total_comis.setText(BA.ObjectToCharSequence(0));
 };
 }else {
 //BA.debugLineNum = 3857;BA.debugLine="L_TOTAL_BA.Text = 0";
_l_total_ba.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3858;BA.debugLine="L_TOTAL_GUNA.Text = 0";
_l_total_guna.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3859;BA.debugLine="L_TOTAL_MM.Text = 0";
_l_total_mm.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3860;BA.debugLine="L_TOTAL_VIVE.Text = 0";
_l_total_vive.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3861;BA.debugLine="L_TOTAL_COMIS.Text = 0";
_l_total_comis.setText(BA.ObjectToCharSequence(0));
 };
 //BA.debugLineNum = 3864;BA.debugLine="End Sub";
return "";
}
public String  _b_hacerpedido_click() throws Exception{
 //BA.debugLineNum = 4018;BA.debugLine="Private Sub b_hacerpedido_Click";
 //BA.debugLineNum = 4019;BA.debugLine="hacer_ped_Click";
_hacer_ped_click();
 //BA.debugLineNum = 4020;BA.debugLine="End Sub";
return "";
}
public String  _b_mapa_click() throws Exception{
 //BA.debugLineNum = 2976;BA.debugLine="Sub b_mapa_Click";
 //BA.debugLineNum = 2978;BA.debugLine="B4XPages.GetPage(\"Mapas\")";
_b4xpages._getpage /*Object*/ (ba,"Mapas");
 //BA.debugLineNum = 2979;BA.debugLine="End Sub";
return "";
}
public String  _b_marcas_click() throws Exception{
int _i = 0;
 //BA.debugLineNum = 3879;BA.debugLine="Sub B_MARCAS_Click";
 //BA.debugLineNum = 3880;BA.debugLine="SCROLL_RESDIA.Visible = True";
_scroll_resdia.setVisible(__c.True);
 //BA.debugLineNum = 3881;BA.debugLine="p_sombra.Width = Root.Width";
_p_sombra.setWidth(_root.getWidth());
 //BA.debugLineNum = 3882;BA.debugLine="p_sombra.Height = Root.Height";
_p_sombra.setHeight(_root.getHeight());
 //BA.debugLineNum = 3883;BA.debugLine="Subs.panelVisible(p_sombra, 0, 0)";
_subs._panelvisible /*String*/ (ba,_p_sombra,(int) (0),(int) (0));
 //BA.debugLineNum = 3884;BA.debugLine="p_marcasRes.Visible = True";
_p_marcasres.setVisible(__c.True);
 //BA.debugLineNum = 3885;BA.debugLine="p_marcasRes.Height = Root.Height * 0.8";
_p_marcasres.setHeight((int) (_root.getHeight()*0.8));
 //BA.debugLineNum = 3886;BA.debugLine="p_marcasRes.BringToFront";
_p_marcasres.BringToFront();
 //BA.debugLineNum = 3888;BA.debugLine="pnlTitle.Visible = False";
_pnltitle.setVisible(__c.False);
 //BA.debugLineNum = 3892;BA.debugLine="B_OK_PANEL5.Top = p_marcasRes.Height - (B_OK_PANE";
_b_ok_panel5.setTop((int) (_p_marcasres.getHeight()-(_b_ok_panel5.getHeight()+20)));
 //BA.debugLineNum = 3893;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CAT_GP";
_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*/ .ExecQuery("Select CAT_GP_CLASIF, SUM(TOTAL) AS TOTAL FROM TOTAL_MARCAS GROUP BY CAT_GP_CLASIF")));
 //BA.debugLineNum = 3894;BA.debugLine="CLV1.Clear";
_clv1._clear();
 //BA.debugLineNum = 3895;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 3896;BA.debugLine="For i=0 To c.RowCount - 1";
{
final int step13 = 1;
final int limit13 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit13 ;_i = _i + step13 ) {
 //BA.debugLineNum = 3897;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 3898;BA.debugLine="AddTitle(c.GetString(\"CAT_GP_CLASIF\"))";
_addtitle(_c.GetString("CAT_GP_CLASIF"));
 //BA.debugLineNum = 3899;BA.debugLine="If c.GetString(\"CAT_GP_CLASIF\") = \"PROMOS\" Then";
if ((_c.GetString("CAT_GP_CLASIF")).equals("PROMOS")) { 
 //BA.debugLineNum = 3900;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"SELECT SUM";
_d = (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")));
 //BA.debugLineNum = 3901;BA.debugLine="d.Position=0";
_d.setPosition((int) (0));
 //BA.debugLineNum = 3902;BA.debugLine="CLV1.AddTextItem(\"CANTIDAD DE PROMOS = \" & d.G";
_clv1._addtextitem((Object)("CANTIDAD DE PROMOS = "+_d.GetString("CUANTOS")),(Object)("1"));
 //BA.debugLineNum = 3903;BA.debugLine="d.Close";
_d.Close();
 }else {
 //BA.debugLineNum = 3905;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery2(\"select CO";
_f = (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[]{_c.GetString("CAT_GP_CLASIF")})));
 //BA.debugLineNum = 3906;BA.debugLine="f.Position=0";
_f.setPosition((int) (0));
 //BA.debugLineNum = 3907;BA.debugLine="If f.GetString(\"CUANTOS\") > 0 Then";
if ((double)(Double.parseDouble(_f.GetString("CUANTOS")))>0) { 
 //BA.debugLineNum = 3908;BA.debugLine="e=B4XPages.MainPage.skmt.ExecQuery2(\"select H";
_e = (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[]{_c.GetString("CAT_GP_CLASIF")})));
 //BA.debugLineNum = 3909;BA.debugLine="e.Position=0";
_e.setPosition((int) (0));
 //BA.debugLineNum = 3910;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2($\"SELECT";
_d = (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,_tipo_venta)))+" WHERE CAT_GP_CLASIF =?)"),new String[]{_c.GetString("CAT_GP_CLASIF")})));
 //BA.debugLineNum = 3911;BA.debugLine="d.Position=0";
_d.setPosition((int) (0));
 //BA.debugLineNum = 3912;BA.debugLine="CLV1.AddTextItem(\"TOTAL  PREVENTA = $\" & c.Ge";
_clv1._addtextitem((Object)("TOTAL  PREVENTA = $"+_c.GetString("TOTAL")),(Object)("1"));
 //BA.debugLineNum = 3913;BA.debugLine="CLV1.AddTextItem(\"META MES= $\" & e.GetString(";
_clv1._addtextitem((Object)("META MES= $"+_e.GetString("HMC_TOTAL")),(Object)("1"));
 //BA.debugLineNum = 3914;BA.debugLine="CLV1.AddTextItem(\"META DIA= $\" & Round(e.GetS";
_clv1._addtextitem((Object)("META DIA= $"+BA.NumberToString(__c.Round((double)(Double.parseDouble(_e.GetString("HMC_TOTAL")))/(double)25))),(Object)("1"));
 //BA.debugLineNum = 3915;BA.debugLine="CLV1.AddTextItem(\"FALTA DIA= $\" & Round((e.Ge";
_clv1._addtextitem((Object)("FALTA DIA= $"+BA.NumberToString(__c.Round(((double)(Double.parseDouble(_e.GetString("HMC_TOTAL")))/(double)25)-(double)(Double.parseDouble(_c.GetString("TOTAL")))))),(Object)("1"));
 //BA.debugLineNum = 3916;BA.debugLine="CLV1.AddTextItem(\"CLIENTES  = \" & d.GetString";
_clv1._addtextitem((Object)("CLIENTES  = "+_d.GetString("CUANTOS")),(Object)("1"));
 //BA.debugLineNum = 3917;BA.debugLine="d.Close";
_d.Close();
 //BA.debugLineNum = 3918;BA.debugLine="e.Close";
_e.Close();
 }else {
 //BA.debugLineNum = 3920;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2($\"SELECT";
_d = (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,_tipo_venta)))+" WHERE CAT_GP_CLASIF =?)"),new String[]{_c.GetString("CAT_GP_CLASIF")})));
 //BA.debugLineNum = 3921;BA.debugLine="d.Position=0";
_d.setPosition((int) (0));
 //BA.debugLineNum = 3922;BA.debugLine="CLV1.AddTextItem(\"TOTAL  PREVENTA = $\" & c.Ge";
_clv1._addtextitem((Object)("TOTAL  PREVENTA = $"+_c.GetString("TOTAL")),(Object)("1"));
 //BA.debugLineNum = 3923;BA.debugLine="CLV1.AddTextItem(\"M E T A  = $\" & \"1000\",\"1\")";
_clv1._addtextitem((Object)("M E T A  = $"+"1000"),(Object)("1"));
 //BA.debugLineNum = 3924;BA.debugLine="CLV1.AddTextItem(\"FALTA  = $\" & (1000 - c.Get";
_clv1._addtextitem((Object)("FALTA  = $"+BA.NumberToString((1000-(double)(Double.parseDouble(_c.GetString("TOTAL")))))),(Object)("1"));
 //BA.debugLineNum = 3925;BA.debugLine="CLV1.AddTextItem(\"CLIENTES  = \" & d.GetString";
_clv1._addtextitem((Object)("CLIENTES  = "+_d.GetString("CUANTOS")),(Object)("1"));
 //BA.debugLineNum = 3926;BA.debugLine="d.Close";
_d.Close();
 };
 //BA.debugLineNum = 3928;BA.debugLine="f.Close";
_f.Close();
 };
 }
};
 };
 //BA.debugLineNum = 3932;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 3944;BA.debugLine="End Sub";
return "";
}
public String  _b_nuevocliente_click() throws Exception{
 //BA.debugLineNum = 4014;BA.debugLine="Private Sub b_nuevocliente_Click";
 //BA.debugLineNum = 4015;BA.debugLine="nvo_cliente_Click";
_nvo_cliente_click();
 //BA.debugLineNum = 4016;BA.debugLine="End Sub";
return "";
}
public String  _b_ok_comiss_click() throws Exception{
 //BA.debugLineNum = 3866;BA.debugLine="Sub B_OK_COMISS_Click";
 //BA.debugLineNum = 3867;BA.debugLine="NUEVO.Visible =True";
_nuevo.setVisible(__c.True);
 //BA.debugLineNum = 3868;BA.debugLine="BUSCA.Visible=True";
_busca.setVisible(__c.True);
 //BA.debugLineNum = 3869;BA.debugLine="connecta.Visible=True";
_connecta.setVisible(__c.True);
 //BA.debugLineNum = 3870;BA.debugLine="Resumen.Visible= True";
_resumen.setVisible(__c.True);
 //BA.debugLineNum = 3871;BA.debugLine="P_RESUMEN.Visible=False";
_p_resumen.setVisible(__c.False);
 //BA.debugLineNum = 3872;BA.debugLine="Panel_C.Visible = False";
_panel_c.setVisible(__c.False);
 //BA.debugLineNum = 3873;BA.debugLine="SCROLL_RESDIA.Visible = False";
_scroll_resdia.setVisible(__c.False);
 //BA.debugLineNum = 3874;BA.debugLine="Btn_Ubicar.Visible=True";
_btn_ubicar.setVisible(__c.True);
 //BA.debugLineNum = 3875;BA.debugLine="p_principal.Visible = True";
_p_principal.setVisible(__c.True);
 //BA.debugLineNum = 3876;BA.debugLine="SCROLL_RESDIA.Panel.RemoveAllViews";
_scroll_resdia.getPanel().RemoveAllViews();
 //BA.debugLineNum = 3877;BA.debugLine="End Sub";
return "";
}
public String  _b_ok_panel5_click() throws Exception{
 //BA.debugLineNum = 3956;BA.debugLine="Sub B_OK_PANEL5_Click";
 //BA.debugLineNum = 3957;BA.debugLine="NUEVO.Visible =True";
_nuevo.setVisible(__c.True);
 //BA.debugLineNum = 3958;BA.debugLine="BUSCA.Visible=True";
_busca.setVisible(__c.True);
 //BA.debugLineNum = 3959;BA.debugLine="connecta.Visible=True";
_connecta.setVisible(__c.True);
 //BA.debugLineNum = 3960;BA.debugLine="Resumen.Visible= True";
_resumen.setVisible(__c.True);
 //BA.debugLineNum = 3961;BA.debugLine="P_RESUMEN.Visible=False";
_p_resumen.setVisible(__c.False);
 //BA.debugLineNum = 3962;BA.debugLine="Panel4.Visible = False";
_panel4.setVisible(__c.False);
 //BA.debugLineNum = 3963;BA.debugLine="SCROLL_RESDIA.Visible = False";
_scroll_resdia.setVisible(__c.False);
 //BA.debugLineNum = 3964;BA.debugLine="p_marcasRes.Visible = False";
_p_marcasres.setVisible(__c.False);
 //BA.debugLineNum = 3965;BA.debugLine="p_sombra.Visible = False";
_p_sombra.setVisible(__c.False);
 //BA.debugLineNum = 3966;BA.debugLine="Btn_Ubicar.Visible=True";
_btn_ubicar.setVisible(__c.True);
 //BA.debugLineNum = 3967;BA.debugLine="p_principal.Visible = True";
_p_principal.setVisible(__c.True);
 //BA.debugLineNum = 3968;BA.debugLine="End Sub";
return "";
}
public String  _b_ok_pas_click() throws Exception{
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;
 //BA.debugLineNum = 3139;BA.debugLine="Sub B_OK_PAS_Click";
 //BA.debugLineNum = 3140;BA.debugLine="If CARGA = \"SUBIR\" And S_CP.Text = \"INFO OK\" Then";
if ((_carga).equals("SUBIR") && (_s_cp.getText()).equals("INFO OK")) { 
 //BA.debugLineNum = 3141;BA.debugLine="P1.Visible = False";
_p1.setVisible(__c.False);
 //BA.debugLineNum = 3142;BA.debugLine="Btn_Ubicar.Visible=True";
_btn_ubicar.setVisible(__c.True);
 //BA.debugLineNum = 3144;BA.debugLine="NUEVO.Visible =True";
_nuevo.setVisible(__c.True);
 //BA.debugLineNum = 3145;BA.debugLine="BUSCA.Visible=True";
_busca.setVisible(__c.True);
 //BA.debugLineNum = 3146;BA.debugLine="connecta.Visible=True";
_connecta.setVisible(__c.True);
 //BA.debugLineNum = 3147;BA.debugLine="Resumen.Visible= True";
_resumen.setVisible(__c.True);
 //BA.debugLineNum = 3148;BA.debugLine="img2.Visible=False";
_img2.setVisible(__c.False);
 //BA.debugLineNum = 3149;BA.debugLine="CARGA = \"\"";
_carga = "";
 //BA.debugLineNum = 3151;BA.debugLine="E_RUTA2.Text = \"\"";
_e_ruta2.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 3152;BA.debugLine="e_ruta.Text = \"\"";
_e_ruta.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 3153;BA.debugLine="Label4.Visible = True";
_label4.setVisible(__c.True);
 //BA.debugLineNum = 3154;BA.debugLine="l_ruta.Visible = True";
_l_ruta.setVisible(__c.True);
 //BA.debugLineNum = 3155;BA.debugLine="B4XPage_Appear";
_b4xpage_appear();
 }else if((_carga).equals("SUBIR") && (_s_cp.getText()).equals("ERROR")) { 
 //BA.debugLineNum = 3157;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);
 //BA.debugLineNum = 3158;BA.debugLine="P1.Visible = False";
_p1.setVisible(__c.False);
 //BA.debugLineNum = 3160;BA.debugLine="NUEVO.Visible =True";
_nuevo.setVisible(__c.True);
 //BA.debugLineNum = 3161;BA.debugLine="BUSCA.Visible=True";
_busca.setVisible(__c.True);
 //BA.debugLineNum = 3162;BA.debugLine="connecta.Visible=True";
_connecta.setVisible(__c.True);
 //BA.debugLineNum = 3163;BA.debugLine="Resumen.Visible= True";
_resumen.setVisible(__c.True);
 //BA.debugLineNum = 3164;BA.debugLine="img2.Visible=False";
_img2.setVisible(__c.False);
 }else if((_carga).equals("SUBIR") && (_s_cp.getText()).equals("INFO OK") == false) { 
 //BA.debugLineNum = 3167;BA.debugLine="RES =  Msgbox2(\"Seguro que desa abortar el proce";
_res = 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));
 //BA.debugLineNum = 3168;BA.debugLine="If RES = DialogResponse.POSITIVE Then";
if ((_res).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { 
 //BA.debugLineNum = 3169;BA.debugLine="P1.Visible = False";
_p1.setVisible(__c.False);
 //BA.debugLineNum = 3171;BA.debugLine="NUEVO.Visible =True";
_nuevo.setVisible(__c.True);
 //BA.debugLineNum = 3172;BA.debugLine="BUSCA.Visible=True";
_busca.setVisible(__c.True);
 //BA.debugLineNum = 3173;BA.debugLine="connecta.Visible=True";
_connecta.setVisible(__c.True);
 //BA.debugLineNum = 3174;BA.debugLine="Resumen.Visible= True";
_resumen.setVisible(__c.True);
 //BA.debugLineNum = 3175;BA.debugLine="img2.Visible=False";
_img2.setVisible(__c.False);
 //BA.debugLineNum = 3176;BA.debugLine="l_visitartotal.Visible = True";
_l_visitartotal.setVisible(__c.True);
 //BA.debugLineNum = 3177;BA.debugLine="de.Visible = True";
_de.setVisible(__c.True);
 //BA.debugLineNum = 3178;BA.debugLine="l_faltan.Visible = True";
_l_faltan.setVisible(__c.True);
 //BA.debugLineNum = 3179;BA.debugLine="l_visitas.Visible = True";
_l_visitas.setVisible(__c.True);
 //BA.debugLineNum = 3181;BA.debugLine="ExitApplication";
__c.ExitApplication();
 };
 };
 //BA.debugLineNum = 3184;BA.debugLine="If CARGA = \"CARGAR\" And S_CP.Text = \"LISTO\" And S";
if ((_carga).equals("CARGAR") && (_s_cp.getText()).equals("LISTO") && (_s_cc.getText()).equals("LISTO") && (_s_ch.getText()).equals("LISTO")) { 
 //BA.debugLineNum = 3185;BA.debugLine="P1.Visible = False";
_p1.setVisible(__c.False);
 //BA.debugLineNum = 3186;BA.debugLine="Btn_Ubicar.Visible=True";
_btn_ubicar.setVisible(__c.True);
 //BA.debugLineNum = 3188;BA.debugLine="NUEVO.Visible =True";
_nuevo.setVisible(__c.True);
 //BA.debugLineNum = 3189;BA.debugLine="BUSCA.Visible=True";
_busca.setVisible(__c.True);
 //BA.debugLineNum = 3190;BA.debugLine="connecta.Visible=True";
_connecta.setVisible(__c.True);
 //BA.debugLineNum = 3191;BA.debugLine="Resumen.Visible= True";
_resumen.setVisible(__c.True);
 //BA.debugLineNum = 3192;BA.debugLine="img2.Visible=False";
_img2.setVisible(__c.False);
 //BA.debugLineNum = 3194;BA.debugLine="Label4.Visible = True";
_label4.setVisible(__c.True);
 //BA.debugLineNum = 3195;BA.debugLine="l_ruta.Visible = True";
_l_ruta.setVisible(__c.True);
 //BA.debugLineNum = 3196;BA.debugLine="l_visitartotal.Visible = True";
_l_visitartotal.setVisible(__c.True);
 //BA.debugLineNum = 3197;BA.debugLine="de.Visible = True";
_de.setVisible(__c.True);
 //BA.debugLineNum = 3198;BA.debugLine="l_faltan.Visible = True";
_l_faltan.setVisible(__c.True);
 //BA.debugLineNum = 3199;BA.debugLine="l_visitas.Visible = True";
_l_visitas.setVisible(__c.True);
 //BA.debugLineNum = 3200;BA.debugLine="B4XPage_Appear";
_b4xpage_appear();
 //BA.debugLineNum = 3202;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")));
 //BA.debugLineNum = 3203;BA.debugLine="If cn.RowCount > 0 Then";
if (_cn.getRowCount()>0) { 
 //BA.debugLineNum = 3204;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 ) {
 //BA.debugLineNum = 3205;BA.debugLine="cn.Position = gh";
_cn.setPosition(_gh);
 //BA.debugLineNum = 3206;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"))}));
 }
};
 };
 //BA.debugLineNum = 3210;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"}));
 //BA.debugLineNum = 3211;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)}));
 //BA.debugLineNum = 3212;BA.debugLine="If E_RUTA2.Visible = True Then";
if (_e_ruta2.getVisible()==__c.True) { 
 //BA.debugLineNum = 3213;BA.debugLine="bitacora.mandaBitacora(Subs.fechanormal(DateTim";
_bitacora._mandabitacora /*String*/ (_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_usuario,_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 {
 //BA.debugLineNum = 3215;BA.debugLine="bitacora.mandaBitacora(Subs.fechanormal(DateTim";
_bitacora._mandabitacora /*String*/ (_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_usuario,_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","","","");
 };
 //BA.debugLineNum = 3217;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'")));
 //BA.debugLineNum = 3218;BA.debugLine="If c11.RowCount > 0 Then";
if (_c11.getRowCount()>0) { 
 //BA.debugLineNum = 3219;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 ) {
 //BA.debugLineNum = 3220;BA.debugLine="c11.Position = i";
_c11.setPosition(_i);
 //BA.debugLineNum = 3221;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")))+"'"));
 }
};
 };
 //BA.debugLineNum = 3224;BA.debugLine="c11.Close";
_c11.Close();
 //BA.debugLineNum = 3226;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'")));
 //BA.debugLineNum = 3227;BA.debugLine="If c12.RowCount > 0 Then";
if (_c12.getRowCount()>0) { 
 //BA.debugLineNum = 3228;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 ) {
 //BA.debugLineNum = 3229;BA.debugLine="c12.Position = i";
_c12.setPosition(_i);
 //BA.debugLineNum = 3230;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")))+"'"));
 }
};
 };
 //BA.debugLineNum = 3233;BA.debugLine="c12.Close";
_c12.Close();
 //BA.debugLineNum = 3235;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'")));
 //BA.debugLineNum = 3236;BA.debugLine="If c13.RowCount > 0 Then";
if (_c13.getRowCount()>0) { 
 //BA.debugLineNum = 3237;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 ) {
 //BA.debugLineNum = 3238;BA.debugLine="c13.Position = i";
_c13.setPosition(_i);
 //BA.debugLineNum = 3239;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")))+"'"));
 }
};
 };
 //BA.debugLineNum = 3242;BA.debugLine="c13.Close";
_c13.Close();
 //BA.debugLineNum = 3246;BA.debugLine="checaPedido";
_checapedido();
 }else if((_carga).equals("CARGAR") && ((_s_cp.getText()).equals("LISTO") == false || (_s_cc.getText()).equals("LISTO") == false || (_s_ch.getText()).equals("LISTO") == false)) { 
 //BA.debugLineNum = 3248;BA.debugLine="RES =  Msgbox2(\"Seguro que desa abortar el proce";
_res = 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));
 //BA.debugLineNum = 3249;BA.debugLine="If RES = DialogResponse.POSITIVE Then";
if ((_res).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { 
 //BA.debugLineNum = 3250;BA.debugLine="P1.Visible = False";
_p1.setVisible(__c.False);
 //BA.debugLineNum = 3252;BA.debugLine="NUEVO.Visible =True";
_nuevo.setVisible(__c.True);
 //BA.debugLineNum = 3253;BA.debugLine="BUSCA.Visible=True";
_busca.setVisible(__c.True);
 //BA.debugLineNum = 3254;BA.debugLine="connecta.Visible=True";
_connecta.setVisible(__c.True);
 //BA.debugLineNum = 3255;BA.debugLine="Resumen.Visible= True";
_resumen.setVisible(__c.True);
 //BA.debugLineNum = 3256;BA.debugLine="img2.Visible=False";
_img2.setVisible(__c.False);
 //BA.debugLineNum = 3258;BA.debugLine="B4XPage_Appear";
_b4xpage_appear();
 //BA.debugLineNum = 3259;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");
 //BA.debugLineNum = 3260;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");
 //BA.debugLineNum = 3261;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");
 //BA.debugLineNum = 3262;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");
 //BA.debugLineNum = 3263;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");
 //BA.debugLineNum = 3264;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");
 //BA.debugLineNum = 3265;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");
 //BA.debugLineNum = 3266;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");
 //BA.debugLineNum = 3267;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");
 //BA.debugLineNum = 3268;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");
 //BA.debugLineNum = 3269;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");
 //BA.debugLineNum = 3270;BA.debugLine="ExitApplication";
__c.ExitApplication();
 };
 };
 //BA.debugLineNum = 3273;BA.debugLine="If Subs.traeTipoVentaDeBD = \"VENTA\" Or Subs.traeT";
if ((_subs._traetipoventadebd /*String*/ (ba)).equals("VENTA") || (_subs._traetipoventadebd /*String*/ (ba)).equals("ABORDO")) { 
 //BA.debugLineNum = 3274;BA.debugLine="If l_ruta.Text <> \"0\" Then";
if ((_l_ruta.getText()).equals("0") == false) { 
 //BA.debugLineNum = 3275;BA.debugLine="Log(888 & \"|\" & l_ruta.Text & \"|\")";
__c.LogImpl("44653192",BA.NumberToString(888)+"|"+_l_ruta.getText()+"|",0);
 //BA.debugLineNum = 3276;BA.debugLine="b_abordo.Visible = False";
_b_abordo.setVisible(__c.False);
 };
 }else {
 //BA.debugLineNum = 3279;BA.debugLine="b_abordo.Visible = False";
_b_abordo.setVisible(__c.False);
 };
 //BA.debugLineNum = 3281;BA.debugLine="End Sub";
return "";
}
public String  _b_ok_res_click() throws Exception{
 //BA.debugLineNum = 3287;BA.debugLine="Sub B_OK_RES_Click";
 //BA.debugLineNum = 3289;BA.debugLine="NUEVO.Visible =True";
_nuevo.setVisible(__c.True);
 //BA.debugLineNum = 3290;BA.debugLine="BUSCA.Visible=True";
_busca.setVisible(__c.True);
 //BA.debugLineNum = 3291;BA.debugLine="connecta.Visible=True";
_connecta.setVisible(__c.True);
 //BA.debugLineNum = 3292;BA.debugLine="Resumen.Visible= True";
_resumen.setVisible(__c.True);
 //BA.debugLineNum = 3293;BA.debugLine="P_RESUMEN.Visible=False";
_p_resumen.setVisible(__c.False);
 //BA.debugLineNum = 3294;BA.debugLine="Panel4.Visible = False";
_panel4.setVisible(__c.False);
 //BA.debugLineNum = 3295;BA.debugLine="SCROLL_RESDIA.Visible = False";
_scroll_resdia.setVisible(__c.False);
 //BA.debugLineNum = 3296;BA.debugLine="Btn_Ubicar.Visible=True";
_btn_ubicar.setVisible(__c.True);
 //BA.debugLineNum = 3297;BA.debugLine="p_principal.Visible = True";
_p_principal.setVisible(__c.True);
 //BA.debugLineNum = 3298;BA.debugLine="End Sub";
return "";
}
public String  _b_resdia_click() throws Exception{
 //BA.debugLineNum = 4022;BA.debugLine="Private Sub b_resdia_Click";
 //BA.debugLineNum = 4023;BA.debugLine="resdia_Click";
_resdia_click();
 //BA.debugLineNum = 4024;BA.debugLine="End Sub";
return "";
}
public String  _b_traec_click() throws Exception{
 //BA.debugLineNum = 4026;BA.debugLine="Private Sub B_traec_click";
 //BA.debugLineNum = 4027;BA.debugLine="B4XPages.ShowPage(\"Clientes_Completos\")";
_b4xpages._showpage /*String*/ (ba,"Clientes_Completos");
 //BA.debugLineNum = 4028;BA.debugLine="End Sub";
return "";
}
public String  _b_ubicar_click() throws Exception{
 //BA.debugLineNum = 4010;BA.debugLine="Private Sub b_ubicar_Click";
 //BA.debugLineNum = 4011;BA.debugLine="Btn_Ubicar_Click";
_btn_ubicar_click();
 //BA.debugLineNum = 4012;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_appear() throws Exception{
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;
 //BA.debugLineNum = 382;BA.debugLine="Sub B4XPage_Appear";
 //BA.debugLineNum = 386;BA.debugLine="p_principal.Visible = True";
_p_principal.setVisible(__c.True);
 //BA.debugLineNum = 387;BA.debugLine="E_RUTA2.Text = \"\"";
_e_ruta2.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 388;BA.debugLine="p_ruta2.Visible = False";
_p_ruta2.setVisible(__c.False);
 //BA.debugLineNum = 389;BA.debugLine="E_RUTA2.Visible = False";
_e_ruta2.setVisible(__c.False);
 //BA.debugLineNum = 390;BA.debugLine="p_somvra_2.Visible = False";
_p_somvra_2.setVisible(__c.False);
 //BA.debugLineNum = 391;BA.debugLine="Subs.validaPromoProcterPRO3009";
_subs._validapromoprocterpro3009 /*String*/ (ba);
 //BA.debugLineNum = 392;BA.debugLine="HORAINGRESO =\"000000\"";
_horaingreso = "000000";
 //BA.debugLineNum = 393;BA.debugLine="Btn_Ubicar.Left = (Panel4.Width/2) - (Btn_Ubicar.";
_btn_ubicar.setLeft((int) ((_panel4.getWidth()/(double)2)-(_btn_ubicar.getWidth()/(double)2)));
 //BA.debugLineNum = 395;BA.debugLine="PASO = 0";
_paso = BA.NumberToString(0);
 //BA.debugLineNum = 396;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then";
if (__c.Not(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) { 
 //BA.debugLineNum = 397;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);};
 //BA.debugLineNum = 398;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent";
__c.StartActivity(ba,(Object)(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent()));
 };
 //BA.debugLineNum = 400;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"select count";
_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 count(*) as CUANTOS from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"FECHA"})));
 //BA.debugLineNum = 401;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 402;BA.debugLine="If c.GetString(\"CUANTOS\") = 0 Then";
if ((_c.GetString("CUANTOS")).equals(BA.NumberToString(0))) { 
 //BA.debugLineNum = 403;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 404;BA.debugLine="cmd.Name = \"select_fecha\"";
_cmd.Name /*String*/  = "select_fecha";
 //BA.debugLineNum = 405;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("fecha"));
 //BA.debugLineNum = 406;BA.debugLine="Msgbox(\"AJUSTAR FECHA\",\"AVISO\") 'ignore";
__c.Msgbox(BA.ObjectToCharSequence("AJUSTAR FECHA"),BA.ObjectToCharSequence("AVISO"),ba);
 //BA.debugLineNum = 407;BA.debugLine="B4XPage_Appear";
_b4xpage_appear();
 }else {
 //BA.debugLineNum = 409;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery2(\"select CA";
_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 CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"FECHA"})));
 //BA.debugLineNum = 410;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 411;BA.debugLine="Dim sDate, sTime As String";
_sdate = "";
_stime = "";
 //BA.debugLineNum = 412;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\"";
__c.DateTime.setDateFormat("yyyyMMdd");
 //BA.debugLineNum = 413;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
 //BA.debugLineNum = 414;BA.debugLine="If c.GetString(\"CAT_VA_VALOR\") > sDate Then";
if ((double)(Double.parseDouble(_c.GetString("CAT_VA_VALOR")))>(double)(Double.parseDouble(_sdate))) { 
 //BA.debugLineNum = 415;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);
 //BA.debugLineNum = 416;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 417;BA.debugLine="B4XPage_Appear";
_b4xpage_appear();
 };
 //BA.debugLineNum = 419;BA.debugLine="c.Close";
_c.Close();
 };
 //BA.debugLineNum = 421;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 422;BA.debugLine="If EJECUTANDO = 0 Then";
if ((_ejecutando).equals(BA.NumberToString(0))) { 
 //BA.debugLineNum = 423;BA.debugLine="Listo1 = 0";
_listo1 = BA.NumberToString(0);
 //BA.debugLineNum = 424;BA.debugLine="Listo2 = 0";
_listo2 = BA.NumberToString(0);
 //BA.debugLineNum = 425;BA.debugLine="Listo3 = 0";
_listo3 = BA.NumberToString(0);
 //BA.debugLineNum = 426;BA.debugLine="Listo4 = 0";
_listo4 = BA.NumberToString(0);
 //BA.debugLineNum = 427;BA.debugLine="Listo5 = 0";
_listo5 = BA.NumberToString(0);
 //BA.debugLineNum = 428;BA.debugLine="inve = 0";
_inve = BA.NumberToString(0);
 //BA.debugLineNum = 429;BA.debugLine="img2.Visible =False";
_img2.setVisible(__c.False);
 };
 //BA.debugLineNum = 431;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
 //BA.debugLineNum = 432;BA.debugLine="fecha=DateTime.Date(DateTime.Now)";
_fecha = __c.DateTime.Date(__c.DateTime.getNow());
 //BA.debugLineNum = 433;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"Select count(";
_b = (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")));
 //BA.debugLineNum = 434;BA.debugLine="b.Position = 0";
_b.setPosition((int) (0));
 //BA.debugLineNum = 435;BA.debugLine="Cuantos = b.GetString(\"CUANTOS\")";
_cuantos = _b.GetString("CUANTOS");
 //BA.debugLineNum = 436;BA.debugLine="b.Close";
_b.Close();
 //BA.debugLineNum = 437;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessageSh";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { 
__c.ToastMessageShow(BA.ObjectToCharSequence(_cuantos),__c.True);};
 //BA.debugLineNum = 438;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
_d = (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")));
 //BA.debugLineNum = 439;BA.debugLine="d.Position=0";
_d.setPosition((int) (0));
 //BA.debugLineNum = 440;BA.debugLine="e=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
_e = (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")));
 //BA.debugLineNum = 441;BA.debugLine="e.Position=0";
_e.setPosition((int) (0));
 //BA.debugLineNum = 442;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
_f = (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")));
 //BA.debugLineNum = 443;BA.debugLine="f.Position=0";
_f.setPosition((int) (0));
 //BA.debugLineNum = 444;BA.debugLine="l_ruta.Text = f.GetString(\"CAT_CL_RUTA\")";
_l_ruta.setText(BA.ObjectToCharSequence(_f.GetString("CAT_CL_RUTA")));
 //BA.debugLineNum = 445;BA.debugLine="f.Close";
_f.Close();
 //BA.debugLineNum = 446;BA.debugLine="If l_ruta.Text = 0 Then";
if ((_l_ruta.getText()).equals(BA.NumberToString(0))) { 
 //BA.debugLineNum = 447;BA.debugLine="l_ruta.Text =0";
_l_ruta.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 448;BA.debugLine="l_visitas.Text = 0";
_l_visitas.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 449;BA.debugLine="l_faltan.Text = 0";
_l_faltan.setText(BA.ObjectToCharSequence(0));
 }else {
 //BA.debugLineNum = 451;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select disti";
_f = (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)")));
 //BA.debugLineNum = 452;BA.debugLine="f.Position=0";
_f.setPosition((int) (0));
 //BA.debugLineNum = 453;BA.debugLine="l_ruta.Text = f.GetString(\"CAT_CL_RUTA\")";
_l_ruta.setText(BA.ObjectToCharSequence(_f.GetString("CAT_CL_RUTA")));
 //BA.debugLineNum = 454;BA.debugLine="f.Close";
_f.Close();
 //BA.debugLineNum = 456;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")));
 //BA.debugLineNum = 457;BA.debugLine="totalcisitas.Position = 0";
_totalcisitas.setPosition((int) (0));
 //BA.debugLineNum = 458;BA.debugLine="l_visitas.Text = totalcisitas.GetInt(\"CUENTA\")";
_l_visitas.setText(BA.ObjectToCharSequence(_totalcisitas.GetInt("CUENTA")));
 //BA.debugLineNum = 459;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")));
 //BA.debugLineNum = 460;BA.debugLine="visitasfaltantes.Position = 0";
_visitasfaltantes.setPosition((int) (0));
 //BA.debugLineNum = 461;BA.debugLine="l_faltan.Text = visitasfaltantes.GetInt(\"CUENTA\"";
_l_faltan.setText(BA.ObjectToCharSequence(_visitasfaltantes.GetInt("CUENTA")));
 };
 //BA.debugLineNum = 463;BA.debugLine="If Cuantos = 0 Then";
if ((_cuantos).equals(BA.NumberToString(0))) { 
 //BA.debugLineNum = 464;BA.debugLine="L_MONTOD.Text =0";
_l_montod.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 465;BA.debugLine="l_cuantosc.Text = 0";
_l_cuantosc.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 466;BA.debugLine="l_cuantosn.Text = 0";
_l_cuantosn.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 467;BA.debugLine="L_CUANTOST.Text = 0";
_l_cuantost.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 468;BA.debugLine="drop = 0";
_drop = 0;
 //BA.debugLineNum = 469;BA.debugLine="l_drop.Text = 0";
_l_drop.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 470;BA.debugLine="efectiva = 0";
_efectiva = 0;
 //BA.debugLineNum = 471;BA.debugLine="l_efectiva.text =0";
_l_efectiva.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 472;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")";
_l_ctast.setText(BA.ObjectToCharSequence(_d.GetString("TOTAL_VISITAR")));
 //BA.debugLineNum = 473;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")";
_l_porvisitar.setText(BA.ObjectToCharSequence(_e.GetString("POR_VISITAR")));
 //BA.debugLineNum = 474;BA.debugLine="d.Close";
_d.Close();
 //BA.debugLineNum = 475;BA.debugLine="e.Close";
_e.Close();
 //BA.debugLineNum = 476;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"select count";
_b = (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")));
 //BA.debugLineNum = 477;BA.debugLine="b.Position=0";
_b.setPosition((int) (0));
 //BA.debugLineNum = 478;BA.debugLine="l_cuantosn.Text = b.GetString(\"CUANTOS\")";
_l_cuantosn.setText(BA.ObjectToCharSequence(_b.GetString("CUANTOS")));
 //BA.debugLineNum = 479;BA.debugLine="b.close";
_b.Close();
 }else {
 //BA.debugLineNum = 481;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select SUM(P";
_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*/ .ExecQuery("select SUM(PE_COSTO_TOT) as MONTO_DIA, COUNT(DISTINCT(PE_CLIENTE)) AS CLIENTES_DIA from PEDIDO")));
 //BA.debugLineNum = 482;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"select count";
_b = (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")));
 //BA.debugLineNum = 483;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 484;BA.debugLine="b.Position=0";
_b.setPosition((int) (0));
 //BA.debugLineNum = 485;BA.debugLine="L_MONTOD.Text = NumberFormat2(c.GetDouble(\"MONTO";
_l_montod.setText(BA.ObjectToCharSequence(__c.NumberFormat2(_c.GetDouble("MONTO_DIA"),(int) (0),(int) (2),(int) (2),__c.False)));
 //BA.debugLineNum = 486;BA.debugLine="l_cuantosc.Text = c.GetString(\"CLIENTES_DIA\")";
_l_cuantosc.setText(BA.ObjectToCharSequence(_c.GetString("CLIENTES_DIA")));
 //BA.debugLineNum = 487;BA.debugLine="D2=B4XPages.MainPage.skmt.ExecQuery(\"select  COU";
_d2 = (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 ")));
 //BA.debugLineNum = 488;BA.debugLine="D2.Position = 0";
_d2.setPosition((int) (0));
 //BA.debugLineNum = 489;BA.debugLine="LPT = D2.GetString(\"CUANTOS\") / l_cuantosc.Text";
_lpt = BA.NumberToString((double)(Double.parseDouble(_d2.GetString("CUANTOS")))/(double)(double)(Double.parseDouble(_l_cuantosc.getText())));
 //BA.debugLineNum = 490;BA.debugLine="D2.Close";
_d2.Close();
 //BA.debugLineNum = 491;BA.debugLine="l_cuantosn.Text = b.GetString(\"CUANTOS\")";
_l_cuantosn.setText(BA.ObjectToCharSequence(_b.GetString("CUANTOS")));
 //BA.debugLineNum = 492;BA.debugLine="efectiva = c.GetString(\"CLIENTES_DIA\") / e.GetSt";
_efectiva = (double)(Double.parseDouble(_c.GetString("CLIENTES_DIA")))/(double)(double)(Double.parseDouble(_e.GetString("POR_VISITAR")));
 //BA.debugLineNum = 493;BA.debugLine="l_efectiva.text = Round2(efectiva*100,2)";
_l_efectiva.setText(BA.ObjectToCharSequence(__c.Round2(_efectiva*100,(int) (2))));
 //BA.debugLineNum = 494;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")";
_l_ctast.setText(BA.ObjectToCharSequence(_d.GetString("TOTAL_VISITAR")));
 //BA.debugLineNum = 495;BA.debugLine="d.Close";
_d.Close();
 //BA.debugLineNum = 496;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")";
_l_porvisitar.setText(BA.ObjectToCharSequence(_e.GetString("POR_VISITAR")));
 //BA.debugLineNum = 497;BA.debugLine="L_CUANTOST.Text = l_cuantosc.Text + l_cuantosn.T";
_l_cuantost.setText(BA.ObjectToCharSequence((double)(Double.parseDouble(_l_cuantosc.getText()))+(double)(Double.parseDouble(_l_cuantosn.getText()))));
 //BA.debugLineNum = 498;BA.debugLine="drop = L_CUANTOST.Text / l_porvisitar.Text";
_drop = (double)(Double.parseDouble(_l_cuantost.getText()))/(double)(double)(Double.parseDouble(_l_porvisitar.getText()));
 //BA.debugLineNum = 499;BA.debugLine="l_drop.Text = Round(drop * 100)";
_l_drop.setText(BA.ObjectToCharSequence(__c.Round(_drop*100)));
 //BA.debugLineNum = 500;BA.debugLine="If L_CUANTOST.Text < 40 Then";
if ((double)(Double.parseDouble(_l_cuantost.getText()))<40) { 
 //BA.debugLineNum = 501;BA.debugLine="ImageView3.Bitmap = LoadBitmap(File.DirAssets,";
_imageview3.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"tache_rojo.png").getObject()));
 }else if((double)(Double.parseDouble(_l_cuantost.getText()))>=40 && (double)(Double.parseDouble(_l_cuantost.getText()))<50) { 
 //BA.debugLineNum = 503;BA.debugLine="ImageView3.bitmap = LoadBitmap(File.DirAssets,";
_imageview3.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alerta_amarilla.png").getObject()));
 }else {
 //BA.debugLineNum = 505;BA.debugLine="ImageView3.Bitmap = LoadBitmap(File.DirAssets,";
_imageview3.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"palomita_verde.png").getObject()));
 };
 //BA.debugLineNum = 507;BA.debugLine="Log(\"|\" & c.GetString(\"MONTO_DIA\") & \"|\")";
__c.LogImpl("43735677","|"+_c.GetString("MONTO_DIA")+"|",0);
 //BA.debugLineNum = 508;BA.debugLine="Log(\"|\" & c.GetString(\"CLIENTES_DIA\") & \"|\")";
__c.LogImpl("43735678","|"+_c.GetString("CLIENTES_DIA")+"|",0);
 //BA.debugLineNum = 517;BA.debugLine="b.Close";
_b.Close();
 //BA.debugLineNum = 518;BA.debugLine="c.Close";
_c.Close();
 };
 //BA.debugLineNum = 520;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 521;BA.debugLine="b.Close";
_b.Close();
 //BA.debugLineNum = 522;BA.debugLine="e.Close";
_e.Close();
 //BA.debugLineNum = 523;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select  ID_AL";
_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*/ .ExecQuery("select  ID_ALMACEN from CAT_ALMACEN")));
 //BA.debugLineNum = 524;BA.debugLine="C.Position =0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 525;BA.debugLine="ALMACEN = C.GetString(\"ID_ALMACEN\")";
_almacen = _c.GetString("ID_ALMACEN");
 //BA.debugLineNum = 526;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 527;BA.debugLine="bu.Initialize";
_bu._initialize /*String*/ (ba);
 //BA.debugLineNum = 528;BA.debugLine="batterystatus = bu.BatteryInformation";
_batterystatus = _bu._getbatteryinformation /*int[]*/ ();
 //BA.debugLineNum = 529;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuari";
_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*/ .ExecQuery("select usuario from usuarioa")));
 //BA.debugLineNum = 530;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 531;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
_usuario = _c.GetString("USUARIO");
 //BA.debugLineNum = 532;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 534;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")));
 //BA.debugLineNum = 536;BA.debugLine="If s3.RowCount > 0 Then";
if (_s3.getRowCount()>0) { 
 //BA.debugLineNum = 537;BA.debugLine="Private total7 As String = 0";
_total7 = BA.NumberToString(0);
 //BA.debugLineNum = 538;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 ) {
 //BA.debugLineNum = 539;BA.debugLine="s3.Position = i";
_s3.setPosition(_i);
 //BA.debugLineNum = 541;BA.debugLine="total7 = total7 + Subs.calculaTotalConPromoXRan";
_total7 = BA.NumberToString((double)(Double.parseDouble(_total7))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango /*String*/ (ba,_s3.GetString("PE_CLIENTE")))));
 }
};
 //BA.debugLineNum = 546;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 {
 //BA.debugLineNum = 548;BA.debugLine="B4XPages.MainPage.montoActual = 0";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._montoactual /*String*/  = BA.NumberToString(0);
 };
 //BA.debugLineNum = 552;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 where PE_CANT <= 0");
 //BA.debugLineNum = 554;BA.debugLine="B4XPages.MainPage.clientestotal = L_CUANTOST.Text";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._clientestotal /*String*/  = _l_cuantost.getText();
 //BA.debugLineNum = 555;BA.debugLine="B4XPages.MainPage.clientesventa =  l_cuantosc.Tex";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._clientesventa /*String*/  = _l_cuantosc.getText();
 //BA.debugLineNum = 556;BA.debugLine="B4XPages.MainPage.clientesvisitados = l_porvisita";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._clientesvisitados /*String*/  = _l_porvisitar.getText();
 //BA.debugLineNum = 557;BA.debugLine="B4XPages.MainPage.ALMACEN = ALMACEN";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._almacen /*String*/  = _almacen;
 //BA.debugLineNum = 558;BA.debugLine="B4XPages.MainPage.rutapreventa =  l_ruta.text";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._rutapreventa /*String*/  = _l_ruta.getText();
 //BA.debugLineNum = 561;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuari";
_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*/ .ExecQuery("select usuario from usuarioa")));
 //BA.debugLineNum = 562;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 563;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
_usuario = _c.GetString("USUARIO");
 //BA.debugLineNum = 564;BA.debugLine="B4XPages.MainPage.usuario = usuario";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._usuario /*String*/  = _usuario;
 //BA.debugLineNum = 565;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 567;BA.debugLine="CallSub(Starter, \"ENVIA_ULTIMA_GPS\")";
__c.CallSubNew(ba,(Object)(_starter.getObject()),"ENVIA_ULTIMA_GPS");
 //BA.debugLineNum = 571;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")));
 //BA.debugLineNum = 572;BA.debugLine="s.Position = 0";
_s.setPosition((int) (0));
 //BA.debugLineNum = 573;BA.debugLine="If s.GetString(\"cuenta\") = 0 Then";
if ((_s.GetString("cuenta")).equals(BA.NumberToString(0))) { 
 //BA.debugLineNum = 574;BA.debugLine="Label22.Visible = False";
_label22.setVisible(__c.False);
 //BA.debugLineNum = 575;BA.debugLine="l_rutasuplencia.Visible = False";
_l_rutasuplencia.setVisible(__c.False);
 //BA.debugLineNum = 576;BA.debugLine="l_rutasuplencia.Text = \"\"";
_l_rutasuplencia.setText(BA.ObjectToCharSequence(""));
 }else if((double)(Double.parseDouble(_s.GetString("cuenta")))>0) { 
 //BA.debugLineNum = 578;BA.debugLine="Label22.Visible = True";
_label22.setVisible(__c.True);
 //BA.debugLineNum = 579;BA.debugLine="l_rutasuplencia.Visible = True";
_l_rutasuplencia.setVisible(__c.True);
 //BA.debugLineNum = 580;BA.debugLine="l_rutasuplencia.Text = s.GetString(\"RS_RUTA\")";
_l_rutasuplencia.setText(BA.ObjectToCharSequence(_s.GetString("RS_RUTA")));
 };
 //BA.debugLineNum = 582;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper  _b4xpage_closerequest() throws Exception{
ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this);
rsub.resume(ba, null);
return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
}
public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
public ResumableSub_B4XPage_CloseRequest(gunav2.keymon.com.mx.c_principal parent) {
this.parent = parent;
}
gunav2.keymon.com.mx.c_principal parent;

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

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

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

case 3:
//C
this.state = 6;
 //BA.debugLineNum = 2870;BA.debugLine="SCROLL_RESDIA.Visible = False";
parent._scroll_resdia.setVisible(parent.__c.False);
 //BA.debugLineNum = 2871;BA.debugLine="B_OK_RES_Click";
parent._b_ok_res_click();
 //BA.debugLineNum = 2872;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 if (true) break;

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

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

            }
        }
    }
}
public String  _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
String _ruta = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _s = null;
 //BA.debugLineNum = 268;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
 //BA.debugLineNum = 269;BA.debugLine="Root = Root1";
_root = _root1;
 //BA.debugLineNum = 270;BA.debugLine="bitacora.Initialize(\"bitacora\", \"bitacora\", Root,";
_bitacora._initialize /*Object*/ (ba,(Object)("bitacora"),"bitacora",_root,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ ,_starter._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ );
 //BA.debugLineNum = 272;BA.debugLine="Root.LoadLayout(\"principal\")";
_root.LoadLayout("principal",ba);
 //BA.debugLineNum = 273;BA.debugLine="SCROLL_RESDIA.Width = Root.Width";
_scroll_resdia.setWidth(_root.getWidth());
 //BA.debugLineNum = 274;BA.debugLine="SCROLL_RESDIA.Height = Root.Height";
_scroll_resdia.setHeight(_root.getHeight());
 //BA.debugLineNum = 275;BA.debugLine="B_OK_RES.color = Colors.Red";
_b_ok_res.setColor(__c.Colors.Red);
 //BA.debugLineNum = 276;BA.debugLine="B_OK_RES.TextColor = Colors.White";
_b_ok_res.setTextColor(__c.Colors.White);
 //BA.debugLineNum = 277;BA.debugLine="l_version.Left = Root.Width - l_version.Width";
_l_version.setLeft((int) (_root.getWidth()-_l_version.getWidth()));
 //BA.debugLineNum = 278;BA.debugLine="l_version.Text = Application.VersionName";
_l_version.setText(BA.ObjectToCharSequence(__c.Application.getVersionName()));
 //BA.debugLineNum = 279;BA.debugLine="EJECUTANDO=1";
_ejecutando = BA.NumberToString(1);
 //BA.debugLineNum = 280;BA.debugLine="Dim ruta As String";
_ruta = "";
 //BA.debugLineNum = 281;BA.debugLine="img2.Visible =False";
_img2.setVisible(__c.False);
 //BA.debugLineNum = 282;BA.debugLine="ruta = File.DirInternal";
_ruta = __c.File.getDirInternal();
 //BA.debugLineNum = 283;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then";
if (__c.File.Exists(_ruta,"kmt.db")==__c.False) { 
 //BA.debugLineNum = 284;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d";
__c.File.Copy(__c.File.getDirAssets(),"kmt.db",_ruta,"kmt.db");
 };
 //BA.debugLineNum = 286;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
 //BA.debugLineNum = 287;BA.debugLine="fecha=DateTime.Date(DateTime.Now)";
_fecha = __c.DateTime.Date(__c.DateTime.getNow());
 //BA.debugLineNum = 288;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);
 //BA.debugLineNum = 289;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"Select count(";
_b = (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")));
 //BA.debugLineNum = 290;BA.debugLine="b.Position=0";
_b.setPosition((int) (0));
 //BA.debugLineNum = 291;BA.debugLine="Cuantos = b.GetString(\"CUANTOS\")";
_cuantos = _b.GetString("CUANTOS");
 //BA.debugLineNum = 292;BA.debugLine="b.Close";
_b.Close();
 //BA.debugLineNum = 293;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
_d = (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")));
 //BA.debugLineNum = 294;BA.debugLine="d.Position=0";
_d.setPosition((int) (0));
 //BA.debugLineNum = 295;BA.debugLine="e=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
_e = (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")));
 //BA.debugLineNum = 296;BA.debugLine="e.Position=0";
_e.setPosition((int) (0));
 //BA.debugLineNum = 297;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
_f = (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")));
 //BA.debugLineNum = 298;BA.debugLine="f.Position=0";
_f.setPosition((int) (0));
 //BA.debugLineNum = 299;BA.debugLine="l_ruta.Text = f.GetString(\"CAT_CL_RUTA\")";
_l_ruta.setText(BA.ObjectToCharSequence(_f.GetString("CAT_CL_RUTA")));
 //BA.debugLineNum = 300;BA.debugLine="f.Close";
_f.Close();
 //BA.debugLineNum = 301;BA.debugLine="b_abordo.Left = (Root.Width / 2) - (b_abordo.Widt";
_b_abordo.setLeft((int) ((_root.getWidth()/(double)2)-(_b_abordo.getWidth()/(double)2)));
 //BA.debugLineNum = 302;BA.debugLine="p_principal.Width = Root.Width : p_principal.Heig";
_p_principal.setWidth(_root.getWidth());
 //BA.debugLineNum = 302;BA.debugLine="p_principal.Width = Root.Width : p_principal.Heig";
_p_principal.setHeight(_root.getHeight());
 //BA.debugLineNum = 310;BA.debugLine="If l_ruta.Text = 0 Then";
if ((_l_ruta.getText()).equals(BA.NumberToString(0))) { 
 //BA.debugLineNum = 311;BA.debugLine="l_ruta.Text = 0";
_l_ruta.setText(BA.ObjectToCharSequence(0));
 }else if((double)(Double.parseDouble(_l_ruta.getText()))>0) { 
 //BA.debugLineNum = 313;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select disti";
_f = (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)")));
 //BA.debugLineNum = 314;BA.debugLine="f.Position=0";
_f.setPosition((int) (0));
 //BA.debugLineNum = 315;BA.debugLine="l_ruta.Text = f.GetString(\"CAT_CL_RUTA\")";
_l_ruta.setText(BA.ObjectToCharSequence(_f.GetString("CAT_CL_RUTA")));
 //BA.debugLineNum = 316;BA.debugLine="f.Close";
_f.Close();
 };
 //BA.debugLineNum = 319;BA.debugLine="If Subs.traeTipoVentaDeBD = \"VENTA\" Or Subs.traeT";
if ((_subs._traetipoventadebd /*String*/ (ba)).equals("VENTA") || (_subs._traetipoventadebd /*String*/ (ba)).equals("ABORDO")) { 
 //BA.debugLineNum = 320;BA.debugLine="If l_ruta.Text <> \"0\" Then";
if ((_l_ruta.getText()).equals("0") == false) { 
 //BA.debugLineNum = 321;BA.debugLine="Log(999 & \"|\" & l_ruta.Text & \"|\")";
__c.LogImpl("43670069",BA.NumberToString(999)+"|"+_l_ruta.getText()+"|",0);
 //BA.debugLineNum = 322;BA.debugLine="b_abordo.Visible = False";
_b_abordo.setVisible(__c.False);
 };
 }else {
 //BA.debugLineNum = 325;BA.debugLine="b_abordo.Visible = False";
_b_abordo.setVisible(__c.False);
 };
 //BA.debugLineNum = 332;BA.debugLine="If Cuantos  = 0 Then";
if ((_cuantos).equals(BA.NumberToString(0))) { 
 //BA.debugLineNum = 333;BA.debugLine="L_MONTOD.Text =0";
_l_montod.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 334;BA.debugLine="l_cuantosc.Text = 0";
_l_cuantosc.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 335;BA.debugLine="l_cuantosn.Text = 0";
_l_cuantosn.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 336;BA.debugLine="drop = 0";
_drop = 0;
 //BA.debugLineNum = 337;BA.debugLine="l_drop.Text = 0";
_l_drop.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 338;BA.debugLine="efectiva = 0";
_efectiva = 0;
 //BA.debugLineNum = 339;BA.debugLine="l_efectiva.text =0";
_l_efectiva.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 340;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")";
_l_ctast.setText(BA.ObjectToCharSequence(_d.GetString("TOTAL_VISITAR")));
 //BA.debugLineNum = 341;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")";
_l_porvisitar.setText(BA.ObjectToCharSequence(_e.GetString("POR_VISITAR")));
 }else {
 //BA.debugLineNum = 343;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select  sum(";
_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*/ .ExecQuery("select  sum(pc_monto) as MONTO_DIA, count(pc_cliente) AS CLIENTES_DIA  from pedido_cliente ")));
 //BA.debugLineNum = 344;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"select count";
_b = (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")));
 //BA.debugLineNum = 346;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 347;BA.debugLine="b.Position=0";
_b.setPosition((int) (0));
 //BA.debugLineNum = 348;BA.debugLine="L_MONTOD.Text = NumberFormat2(c.GetDouble(\"MONTO";
_l_montod.setText(BA.ObjectToCharSequence(__c.NumberFormat2(_c.GetDouble("MONTO_DIA"),(int) (0),(int) (2),(int) (2),__c.False)));
 //BA.debugLineNum = 349;BA.debugLine="l_cuantosc.Text = c.GetString(\"CLIENTES_DIA\")";
_l_cuantosc.setText(BA.ObjectToCharSequence(_c.GetString("CLIENTES_DIA")));
 //BA.debugLineNum = 350;BA.debugLine="l_cuantosn.Text = b.GetString(\"CUANTOS\")";
_l_cuantosn.setText(BA.ObjectToCharSequence(_b.GetString("CUANTOS")));
 //BA.debugLineNum = 351;BA.debugLine="drop = c.GetString(\"MONTO_DIA\") / c.GetString(\"C";
_drop = (double)(Double.parseDouble(_c.GetString("MONTO_DIA")))/(double)(double)(Double.parseDouble(_c.GetString("CLIENTES_DIA")));
 //BA.debugLineNum = 352;BA.debugLine="l_drop.Text = Round2(drop,2)";
_l_drop.setText(BA.ObjectToCharSequence(__c.Round2(_drop,(int) (2))));
 //BA.debugLineNum = 353;BA.debugLine="efectiva = c.GetString(\"CLIENTES_DIA\") / e.GetSt";
_efectiva = (double)(Double.parseDouble(_c.GetString("CLIENTES_DIA")))/(double)(double)(Double.parseDouble(_e.GetString("POR_VISITAR")));
 //BA.debugLineNum = 354;BA.debugLine="l_efectiva.text = Round2(efectiva*100,2)";
_l_efectiva.setText(BA.ObjectToCharSequence(__c.Round2(_efectiva*100,(int) (2))));
 //BA.debugLineNum = 355;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")";
_l_ctast.setText(BA.ObjectToCharSequence(_d.GetString("TOTAL_VISITAR")));
 //BA.debugLineNum = 356;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")";
_l_porvisitar.setText(BA.ObjectToCharSequence(_e.GetString("POR_VISITAR")));
 //BA.debugLineNum = 357;BA.debugLine="b.Close";
_b.Close();
 //BA.debugLineNum = 358;BA.debugLine="c.Close";
_c.Close();
 };
 //BA.debugLineNum = 360;BA.debugLine="d.Close";
_d.Close();
 //BA.debugLineNum = 361;BA.debugLine="e.Close";
_e.Close();
 //BA.debugLineNum = 362;BA.debugLine="CallSubDelayed(FirebaseMessaging, \"SubscribeToTop";
__c.CallSubDelayed(ba,(Object)(_firebasemessaging.getObject()),"SubscribeToTopics");
 //BA.debugLineNum = 364;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")));
 //BA.debugLineNum = 365;BA.debugLine="s.Position = 0";
_s.setPosition((int) (0));
 //BA.debugLineNum = 366;BA.debugLine="If s.GetString(\"cuenta\") = 0 Then";
if ((_s.GetString("cuenta")).equals(BA.NumberToString(0))) { 
 //BA.debugLineNum = 367;BA.debugLine="Label22.Visible = False";
_label22.setVisible(__c.False);
 //BA.debugLineNum = 368;BA.debugLine="l_rutasuplencia.Visible = False";
_l_rutasuplencia.setVisible(__c.False);
 }else if((double)(Double.parseDouble(_s.GetString("cuenta")))>0) { 
 //BA.debugLineNum = 370;BA.debugLine="Label22.Visible = True";
_label22.setVisible(__c.True);
 //BA.debugLineNum = 371;BA.debugLine="l_rutasuplencia.Visible = True";
_l_rutasuplencia.setVisible(__c.True);
 //BA.debugLineNum = 372;BA.debugLine="l_rutasuplencia.Text = s.GetString(\"RS_RUTA\")";
_l_rutasuplencia.setText(BA.ObjectToCharSequence(_s.GetString("RS_RUTA")));
 };
 //BA.debugLineNum = 374;BA.debugLine="p_transparenteActualizacion.Width = Root.Width";
_p_transparenteactualizacion.setWidth(_root.getWidth());
 //BA.debugLineNum = 375;BA.debugLine="p_transparenteActualizacion.Height = Root.Height";
_p_transparenteactualizacion.setHeight(_root.getHeight());
 //BA.debugLineNum = 376;BA.debugLine="Subs.centraPanel(p_forzarActualizacion, p_transpa";
_subs._centrapanel /*String*/ (ba,_p_forzaractualizacion,_p_transparenteactualizacion.getWidth());
 //BA.debugLineNum = 378;BA.debugLine="End Sub";
return "";
}
public String  _btn_ubicar_click() throws Exception{
 //BA.debugLineNum = 3795;BA.debugLine="Sub Btn_Ubicar_Click";
 //BA.debugLineNum = 3796;BA.debugLine="StartActivity(MAPA_RUTAS)";
__c.StartActivity(ba,(Object)(_mapa_rutas.getObject()));
 //BA.debugLineNum = 3797;BA.debugLine="End Sub";
return "";
}
public String  _busca_click() throws Exception{
 //BA.debugLineNum = 2972;BA.debugLine="Sub BUSCA_Click";
 //BA.debugLineNum = 2973;BA.debugLine="B4XPages.ShowPage(\"TicketsDia\")";
_b4xpages._showpage /*String*/ (ba,"TicketsDia");
 //BA.debugLineNum = 2974;BA.debugLine="End Sub";
return "";
}
public String  _carga_click() throws Exception{
 //BA.debugLineNum = 3315;BA.debugLine="Sub CARGA_Click";
 //BA.debugLineNum = 3316;BA.debugLine="B4XPages.ShowPage(\"Productos\")";
_b4xpages._showpage /*String*/ (ba,"Productos");
 //BA.debugLineNum = 3317;BA.debugLine="End Sub";
return "";
}
public String  _cargar_click() throws Exception{
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;
 //BA.debugLineNum = 1154;BA.debugLine="Sub cargar_Click";
 //BA.debugLineNum = 1156;BA.debugLine="Dim pedidodiaanterior As Boolean = False";
_pedidodiaanterior = __c.False;
 //BA.debugLineNum = 1157;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")));
 //BA.debugLineNum = 1158;BA.debugLine="If cp.RowCount > 0 Then";
if (_cp.getRowCount()>0) { 
 //BA.debugLineNum = 1159;BA.debugLine="cp.Position = 0";
_cp.setPosition((int) (0));
 //BA.debugLineNum = 1160;BA.debugLine="Private fecha As String = cp.GetString(\"PE_FECHA";
_fecha = _cp.GetString("PE_FECHA");
 //BA.debugLineNum = 1161;BA.debugLine="Dim fecha2() As String = Regex.Split(\"/\",fecha)";
_fecha2 = __c.Regex.Split("/",_fecha);
 //BA.debugLineNum = 1162;BA.debugLine="Dim fecha5() As String = Regex.Split(\"\\:\",fecha2";
_fecha5 = __c.Regex.Split("\\:",_fecha2[(int) (2)]);
 //BA.debugLineNum = 1163;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)];
 //BA.debugLineNum = 1164;BA.debugLine="Log(fecha5(0))";
__c.LogImpl("43932170",_fecha5[(int) (0)],0);
 //BA.debugLineNum = 1165;BA.debugLine="Log(dia)";
__c.LogImpl("43932171",_dia,0);
 //BA.debugLineNum = 1166;BA.debugLine="Dim mescom As String = DateTime.GetMonth(DateTim";
_mescom = BA.NumberToString(__c.DateTime.GetMonth(__c.DateTime.getNow()));
 //BA.debugLineNum = 1167;BA.debugLine="Dim mescom2 As String";
_mescom2 = "";
 //BA.debugLineNum = 1168;BA.debugLine="If mescom.Length = 1 Then";
if (_mescom.length()==1) { 
 //BA.debugLineNum = 1169;BA.debugLine="mescom2 = \"0\"&DateTime.GetMonth(DateTime.Now)";
_mescom2 = "0"+BA.NumberToString(__c.DateTime.GetMonth(__c.DateTime.getNow()));
 }else {
 //BA.debugLineNum = 1171;BA.debugLine="mescom2 = DateTime.GetMonth(DateTime.Now)";
_mescom2 = BA.NumberToString(__c.DateTime.GetMonth(__c.DateTime.getNow()));
 };
 //BA.debugLineNum = 1174;BA.debugLine="Dim diacom As String = DateTime.GetDayOfMonth(Da";
_diacom = BA.NumberToString(__c.DateTime.GetDayOfMonth(__c.DateTime.getNow()));
 //BA.debugLineNum = 1175;BA.debugLine="Log(DateTime.GetMonth(DateTime.Now))";
__c.LogImpl("43932181",BA.NumberToString(__c.DateTime.GetMonth(__c.DateTime.getNow())),0);
 //BA.debugLineNum = 1176;BA.debugLine="Dim diacom2 As String";
_diacom2 = "";
 //BA.debugLineNum = 1177;BA.debugLine="If diacom.Length = 1 Then";
if (_diacom.length()==1) { 
 //BA.debugLineNum = 1178;BA.debugLine="diacom2 = \"0\"&DateTime.GetDayOfMonth(DateTime.N";
_diacom2 = "0"+BA.NumberToString(__c.DateTime.GetDayOfMonth(__c.DateTime.getNow()));
 }else {
 //BA.debugLineNum = 1180;BA.debugLine="diacom2 = DateTime.GetDayOfMonth(DateTime.Now)";
_diacom2 = BA.NumberToString(__c.DateTime.GetDayOfMonth(__c.DateTime.getNow()));
 };
 //BA.debugLineNum = 1184;BA.debugLine="Dim dia2 As String = DateTime.GetYear(DateTime.N";
_dia2 = BA.NumberToString(__c.DateTime.GetYear(__c.DateTime.getNow()))+_mescom2+_diacom2;
 //BA.debugLineNum = 1185;BA.debugLine="Log(dia & \" , \" & dia2)";
__c.LogImpl("43932191",_dia+" , "+_dia2,0);
 //BA.debugLineNum = 1186;BA.debugLine="Log(\"SI PASO\")";
__c.LogImpl("43932192","SI PASO",0);
 //BA.debugLineNum = 1187;BA.debugLine="If dia < dia2 Then";
if ((double)(Double.parseDouble(_dia))<(double)(Double.parseDouble(_dia2))) { 
 //BA.debugLineNum = 1188;BA.debugLine="pedidodiaanterior = True";
_pedidodiaanterior = __c.True;
 };
 };
 //BA.debugLineNum = 1191;BA.debugLine="If Not (pedidodiaanterior) Then";
if (__c.Not(_pedidodiaanterior)) { 
 //BA.debugLineNum = 1194;BA.debugLine="Private i As Int = Regex.Replace(\"[^0-9.]\", e_ru";
_i = (int)(Double.parseDouble(__c.Regex.Replace("[^0-9.]",_e_ruta.getText(),"")));
 //BA.debugLineNum = 1195;BA.debugLine="e_ruta.text = i";
_e_ruta.setText(BA.ObjectToCharSequence(_i));
 //BA.debugLineNum = 1197;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")));
 //BA.debugLineNum = 1198;BA.debugLine="If E_RUTA2.Visible = False And E_RUTA2.text = \"\"";
if (_e_ruta2.getVisible()==__c.False && (_e_ruta2.getText()).equals("") && _sup.getRowCount()>0) { 
 //BA.debugLineNum = 1199;BA.debugLine="sup.Position = 0";
_sup.setPosition((int) (0));
 //BA.debugLineNum = 1200;BA.debugLine="E_RUTA2.text = sup.GetString(\"RS_RUTA\")";
_e_ruta2.setText(BA.ObjectToCharSequence(_sup.GetString("RS_RUTA")));
 //BA.debugLineNum = 1201;BA.debugLine="E_RUTA2.Visible = True";
_e_ruta2.setVisible(__c.True);
 };
 //BA.debugLineNum = 1204;BA.debugLine="If E_RUTA2.Visible = True Then";
if (_e_ruta2.getVisible()==__c.True) { 
 //BA.debugLineNum = 1205;BA.debugLine="Private i2 As Int = Regex.Replace(\"[^0-9.]\", E_";
_i2 = (int)(Double.parseDouble(__c.Regex.Replace("[^0-9.]",_e_ruta2.getText(),"")));
 //BA.debugLineNum = 1206;BA.debugLine="E_RUTA2.text = i2";
_e_ruta2.setText(BA.ObjectToCharSequence(_i2));
 //BA.debugLineNum = 1207;BA.debugLine="Rut_Rep = e_ruta.Text & \" \" & E_RUTA2.Text";
_rut_rep = _e_ruta.getText()+" "+_e_ruta2.getText();
 }else {
 //BA.debugLineNum = 1209;BA.debugLine="Rut_Rep = e_ruta.Text";
_rut_rep = _e_ruta.getText();
 };
 //BA.debugLineNum = 1211;BA.debugLine="Log(Rut_Rep)";
__c.LogImpl("43932217",_rut_rep,0);
 //BA.debugLineNum = 1212;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)}));
 //BA.debugLineNum = 1213;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"}));
 //BA.debugLineNum = 1214;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"}));
 //BA.debugLineNum = 1215;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"}));
 //BA.debugLineNum = 1216;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"}));
 //BA.debugLineNum = 1217;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"}));
 //BA.debugLineNum = 1218;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"}));
 //BA.debugLineNum = 1219;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)}));
 //BA.debugLineNum = 1220;BA.debugLine="CARGA = \"CARGAR\"";
_carga = "CARGAR";
 //BA.debugLineNum = 1222;BA.debugLine="L_P_1.Visible = True";
_l_p_1.setVisible(__c.True);
 //BA.debugLineNum = 1223;BA.debugLine="S_CC.Visible = True";
_s_cc.setVisible(__c.True);
 //BA.debugLineNum = 1224;BA.debugLine="Btn_Ubicar.Visible=False";
_btn_ubicar.setVisible(__c.False);
 //BA.debugLineNum = 1226;BA.debugLine="p_principal.Visible = False";
_p_principal.setVisible(__c.False);
 //BA.debugLineNum = 1227;BA.debugLine="Subs.panelVisible(P1, 0, 0)";
_subs._panelvisible /*String*/ (ba,_p1,(int) (0),(int) (0));
 //BA.debugLineNum = 1228;BA.debugLine="Subs.centraPanel(P1, Root.Width)";
_subs._centrapanel /*String*/ (ba,_p1,_root.getWidth());
 //BA.debugLineNum = 1229;BA.debugLine="Subs.centraPanelV(P1, Root.Height)";
_subs._centrapanelv /*String*/ (ba,_p1,_root.getHeight());
 //BA.debugLineNum = 1230;BA.debugLine="Label4.Visible = False";
_label4.setVisible(__c.False);
 //BA.debugLineNum = 1231;BA.debugLine="l_ruta.Visible = False";
_l_ruta.setVisible(__c.False);
 //BA.debugLineNum = 1232;BA.debugLine="Label22.Visible = False";
_label22.setVisible(__c.False);
 //BA.debugLineNum = 1233;BA.debugLine="l_rutasuplencia.Visible = False";
_l_rutasuplencia.setVisible(__c.False);
 //BA.debugLineNum = 1234;BA.debugLine="l_visitartotal.Visible = False";
_l_visitartotal.setVisible(__c.False);
 //BA.debugLineNum = 1235;BA.debugLine="de.Visible = False";
_de.setVisible(__c.False);
 //BA.debugLineNum = 1236;BA.debugLine="l_faltan.Visible = False";
_l_faltan.setVisible(__c.False);
 //BA.debugLineNum = 1237;BA.debugLine="l_visitas.Visible = False";
_l_visitas.setVisible(__c.False);
 //BA.debugLineNum = 1239;BA.debugLine="NUEVO.Visible =False";
_nuevo.setVisible(__c.False);
 //BA.debugLineNum = 1240;BA.debugLine="BUSCA.Visible=False";
_busca.setVisible(__c.False);
 //BA.debugLineNum = 1241;BA.debugLine="connecta.Visible=False";
_connecta.setVisible(__c.False);
 //BA.debugLineNum = 1242;BA.debugLine="L_P_3.Visible = True";
_l_p_3.setVisible(__c.True);
 //BA.debugLineNum = 1243;BA.debugLine="S_CH.Visible = True";
_s_ch.setVisible(__c.True);
 //BA.debugLineNum = 1244;BA.debugLine="PB1.Visible = True";
_pb1.setVisible(__c.True);
 //BA.debugLineNum = 1245;BA.debugLine="Resumen.Visible= False";
_resumen.setVisible(__c.False);
 //BA.debugLineNum = 1247;BA.debugLine="L_P_1.Text = \"Catalogo de Clientes\"";
_l_p_1.setText(BA.ObjectToCharSequence("Catalogo de Clientes"));
 //BA.debugLineNum = 1248;BA.debugLine="L_P_2.Text = \"Catalogos de Productos\"";
_l_p_2.setText(BA.ObjectToCharSequence("Catalogos de Productos"));
 //BA.debugLineNum = 1249;BA.debugLine="L_P_3.Text = \"Catalogos Historicos\"";
_l_p_3.setText(BA.ObjectToCharSequence("Catalogos Historicos"));
 //BA.debugLineNum = 1250;BA.debugLine="S_CC.Text = \"EN PROCESO\"";
_s_cc.setText(BA.ObjectToCharSequence("EN PROCESO"));
 //BA.debugLineNum = 1251;BA.debugLine="S_CH.Text = \"EN PROCESO\"";
_s_ch.setText(BA.ObjectToCharSequence("EN PROCESO"));
 //BA.debugLineNum = 1252;BA.debugLine="S_CP.Text = \"EN PROCESO\"";
_s_cp.setText(BA.ObjectToCharSequence("EN PROCESO"));
 //BA.debugLineNum = 1253;BA.debugLine="PB1.Progress = 0";
_pb1.setProgress((int) (0));
 //BA.debugLineNum = 1254;BA.debugLine="PB2.Progress = 0";
_pb2.setProgress((int) (0));
 //BA.debugLineNum = 1255;BA.debugLine="EJECUTANDO = 1";
_ejecutando = BA.NumberToString(1);
 //BA.debugLineNum = 1258;BA.debugLine="TOPE = 0";
_tope = (int) (0);
 //BA.debugLineNum = 1261;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");
 //BA.debugLineNum = 1262;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");
 //BA.debugLineNum = 1263;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");
 //BA.debugLineNum = 1264;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");
 //BA.debugLineNum = 1265;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from ABONOSPTOD");
 //BA.debugLineNum = 1266;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");
 //BA.debugLineNum = 1267;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");
 //BA.debugLineNum = 1268;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");
 //BA.debugLineNum = 1269;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");
 //BA.debugLineNum = 1270;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");
 //BA.debugLineNum = 1271;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");
 //BA.debugLineNum = 1272;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");
 //BA.debugLineNum = 1273;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");
 //BA.debugLineNum = 1274;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");
 //BA.debugLineNum = 1275;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");
 //BA.debugLineNum = 1276;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");
 //BA.debugLineNum = 1277;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");
 //BA.debugLineNum = 1278;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");
 //BA.debugLineNum = 1279;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");
 //BA.debugLineNum = 1280;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");
 //BA.debugLineNum = 1281;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");
 //BA.debugLineNum = 1282;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");
 //BA.debugLineNum = 1283;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");
 //BA.debugLineNum = 1284;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");
 //BA.debugLineNum = 1286;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery2(\"select co";
_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 count(CAT_VA_DESCRIPCION) as HoraIngreso from cat_variables where CAT_VA_DESCRIPCION = ? ",new String[]{"HoraIngreso"})));
 //BA.debugLineNum = 1287;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 1288;BA.debugLine="DateTime.TimeFormat = \"HHmmss\"";
__c.DateTime.setTimeFormat("HHmmss");
 //BA.debugLineNum = 1290;BA.debugLine="If c.GetString(\"HoraIngreso\") > 0 Then";
if ((double)(Double.parseDouble(_c.GetString("HoraIngreso")))>0) { 
 //BA.debugLineNum = 1291;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 {
 //BA.debugLineNum = 1293;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"}));
 };
 //BA.debugLineNum = 1295;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 1296;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
 //BA.debugLineNum = 1297;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuar";
_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*/ .ExecQuery("select usuario from usuarioa")));
 //BA.debugLineNum = 1298;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 1299;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
_usuario = _c.GetString("USUARIO");
 //BA.debugLineNum = 1300;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 1302;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
 //BA.debugLineNum = 1303;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
 //BA.debugLineNum = 1304;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
 //BA.debugLineNum = 1305;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
 //BA.debugLineNum = 1306;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1307;BA.debugLine="cmd.Name = \"select_planLealtad_GUNA\"";
_cmd.Name /*String*/  = "select_planLealtad_GUNA";
 //BA.debugLineNum = 1308;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())};
 //BA.debugLineNum = 1309;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("planLealtad"));
 //BA.debugLineNum = 1311;BA.debugLine="Subs.guardaVariable(\"RUTA\", e_ruta.text)";
_subs._guardavariable /*String*/ (ba,"RUTA",_e_ruta.getText());
 //BA.debugLineNum = 1313;BA.debugLine="Dim P As PhoneId";
_p = new anywheresoftware.b4a.phone.Phone.PhoneId();
 //BA.debugLineNum = 1314;BA.debugLine="imei = \"\"";
_imei = "";
 //BA.debugLineNum = 1315;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1316;BA.debugLine="cmd.Name =\"insert_drop_GV2_3\"";
_cmd.Name /*String*/  = "insert_drop_GV2_3";
 //BA.debugLineNum = 1317;BA.debugLine="cmd.Parameters = Array As Object(usuario,e_ruta.";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_usuario),(Object)(_e_ruta.getText()),(Object)(_sdate),(Object)(_imei),(Object)(_stime),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)("CARGA"),(Object)(_almacen),(Object)(__c.Application.getVersionName())};
 //BA.debugLineNum = 1318;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("inst_drop"));
 //BA.debugLineNum = 1320;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1321;BA.debugLine="cmd.Name = \"select_TipoVenta\"";
_cmd.Name /*String*/  = "select_TipoVenta";
 //BA.debugLineNum = 1322;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())};
 //BA.debugLineNum = 1323;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("tipoVenta"));
 //BA.debugLineNum = 1325;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1326;BA.debugLine="cmd.Name = \"select_cat_GIRO_GUNA\"";
_cmd.Name /*String*/  = "select_cat_GIRO_GUNA";
 //BA.debugLineNum = 1327;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("giro"));
 //BA.debugLineNum = 1329;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1330;BA.debugLine="cmd.Name = \"select_coments_GUNA\"";
_cmd.Name /*String*/  = "select_coments_GUNA";
 //BA.debugLineNum = 1331;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())};
 //BA.debugLineNum = 1332;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("coments"));
 //BA.debugLineNum = 1339;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1340;BA.debugLine="cmd.Name = \"traeFechaFotosGuna\"";
_cmd.Name /*String*/  = "traeFechaFotosGuna";
 //BA.debugLineNum = 1341;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())};
 //BA.debugLineNum = 1342;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("traeFechaFotosGuna"));
 //BA.debugLineNum = 1344;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1345;BA.debugLine="cmd.Name = \"traecodigosGUNA\"";
_cmd.Name /*String*/  = "traecodigosGUNA";
 //BA.debugLineNum = 1346;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)};
 //BA.debugLineNum = 1347;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("traecodigos"));
 //BA.debugLineNum = 1349;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1350;BA.debugLine="cmd.Name = \"select_objetivosbat_GUNA_VN\"";
_cmd.Name /*String*/  = "select_objetivosbat_GUNA_VN";
 //BA.debugLineNum = 1351;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())};
 //BA.debugLineNum = 1352;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("objetivos"));
 //BA.debugLineNum = 1355;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1356;BA.debugLine="cmd.Name = \"select_cat_gunaprod_GV2\"";
_cmd.Name /*String*/  = "select_cat_gunaprod_GV2";
 //BA.debugLineNum = 1357;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen)};
 //BA.debugLineNum = 1358;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("gunaprod"));
 //BA.debugLineNum = 1360;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1361;BA.debugLine="cmd.Name = \"Select_promo_descuento_guna\"";
_cmd.Name /*String*/  = "Select_promo_descuento_guna";
 //BA.debugLineNum = 1362;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen)};
 //BA.debugLineNum = 1363;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("promodesp"));
 //BA.debugLineNum = 1365;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1366;BA.debugLine="cmd.Name = \"select_cat_gunaprod2_GV2\"";
_cmd.Name /*String*/  = "select_cat_gunaprod2_GV2";
 //BA.debugLineNum = 1367;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())};
 //BA.debugLineNum = 1368;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("gunaprod2"));
 //BA.debugLineNum = 1370;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1371;BA.debugLine="cmd.Name = \"select_abonosp_GUNA_pre\"";
_cmd.Name /*String*/  = "select_abonosp_GUNA_pre";
 //BA.debugLineNum = 1372;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText()),(Object)(_e_ruta.getText()),(Object)(_almacen)};
 //BA.debugLineNum = 1373;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("select_abonosp"));
 //BA.debugLineNum = 1375;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1376;BA.debugLine="cmd.Name = \"select_abonosp_GUNA_pre_tod\"";
_cmd.Name /*String*/  = "select_abonosp_GUNA_pre_tod";
 //BA.debugLineNum = 1377;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())};
 //BA.debugLineNum = 1378;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("select_abonosp_todos"));
 //BA.debugLineNum = 1380;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1381;BA.debugLine="cmd.Name = \"select_HIST_ESPECIAL_GUNA\"";
_cmd.Name /*String*/  = "select_HIST_ESPECIAL_GUNA";
 //BA.debugLineNum = 1383;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("histespecial"));
 //BA.debugLineNum = 1390;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1391;BA.debugLine="cmd.Name = \"select_cat_paquetes_GV6\"";
_cmd.Name /*String*/  = "select_cat_paquetes_GV6";
 //BA.debugLineNum = 1392;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen)};
 //BA.debugLineNum = 1393;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("gunaprodp"));
 //BA.debugLineNum = 1395;BA.debugLine="If ALMACEN = 32 Then 'Or ALMACEN = 6";
if ((_almacen).equals(BA.NumberToString(32))) { 
 //BA.debugLineNum = 1397;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1398;BA.debugLine="cmd.Name = \"select_cat_promoesp_GUNA\"";
_cmd.Name /*String*/  = "select_cat_promoesp_GUNA";
 //BA.debugLineNum = 1399;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen)};
 //BA.debugLineNum = 1400;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("promoesp"));
 };
 //BA.debugLineNum = 1404;BA.debugLine="If ALMACEN = 87 Or ALMACEN = 6 Then";
if ((_almacen).equals(BA.NumberToString(87)) || (_almacen).equals(BA.NumberToString(6))) { 
 //BA.debugLineNum = 1406;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1407;BA.debugLine="cmd.Name = \"select_cat_promoesp_GUNA2\"";
_cmd.Name /*String*/  = "select_cat_promoesp_GUNA2";
 //BA.debugLineNum = 1408;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen)};
 //BA.debugLineNum = 1409;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("promoesp"));
 };
 //BA.debugLineNum = 1413;BA.debugLine="If ALMACEN = 88 Or ALMACEN = 6 Then";
if ((_almacen).equals(BA.NumberToString(88)) || (_almacen).equals(BA.NumberToString(6))) { 
 //BA.debugLineNum = 1415;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1416;BA.debugLine="cmd.Name = \"select_cat_promoesp_GUNA3\"";
_cmd.Name /*String*/  = "select_cat_promoesp_GUNA3";
 //BA.debugLineNum = 1417;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen)};
 //BA.debugLineNum = 1418;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("promoesp"));
 };
 //BA.debugLineNum = 1422;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1423;BA.debugLine="cmd.Name = \"select_cat_paquetess_GV2\"";
_cmd.Name /*String*/  = "select_cat_paquetess_GV2";
 //BA.debugLineNum = 1424;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen)};
 //BA.debugLineNum = 1425;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("gunaprodp"));
 //BA.debugLineNum = 1427;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1428;BA.debugLine="cmd.Name = \"select_cat_detallepa_GV2\"";
_cmd.Name /*String*/  = "select_cat_detallepa_GV2";
 //BA.debugLineNum = 1429;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen)};
 //BA.debugLineNum = 1430;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("detallepaq"));
 //BA.debugLineNum = 1432;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1433;BA.debugLine="cmd.Name = \"select_cat_clientes2_guna_GV2\" '####";
_cmd.Name /*String*/  = "select_cat_clientes2_guna_GV2";
 //BA.debugLineNum = 1434;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)};
 //BA.debugLineNum = 1435;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("kmt_datos"));
 //BA.debugLineNum = 1437;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1438;BA.debugLine="cmd.Name = \"select_preventa_futura\"";
_cmd.Name /*String*/  = "select_preventa_futura";
 //BA.debugLineNum = 1439;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)};
 //BA.debugLineNum = 1440;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("KMT_VENTAFUTURA"));
 //BA.debugLineNum = 1442;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1443;BA.debugLine="cmd.Name = \"select_hist_datos_GV2_3\"";
_cmd.Name /*String*/  = "select_hist_datos_GV2_3";
 //BA.debugLineNum = 1444;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen),(Object)(_e_ruta.getText()),(Object)(_almacen)};
 //BA.debugLineNum = 1445;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_datos"));
 //BA.debugLineNum = 1447;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1448;BA.debugLine="cmd.Name = \"select_hist_promos_GV2\"";
_cmd.Name /*String*/  = "select_hist_promos_GV2";
 //BA.debugLineNum = 1449;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)};
 //BA.debugLineNum = 1450;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_promos"));
 //BA.debugLineNum = 1452;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1453;BA.debugLine="cmd.Name = \"select_hist_cliente_promos_GV2\"";
_cmd.Name /*String*/  = "select_hist_cliente_promos_GV2";
 //BA.debugLineNum = 1454;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)};
 //BA.debugLineNum = 1455;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_cliente_promos"));
 //BA.debugLineNum = 1457;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1458;BA.debugLine="cmd.Name = \"select_HIST_MARCAS_CUOTAS\"";
_cmd.Name /*String*/  = "select_HIST_MARCAS_CUOTAS";
 //BA.debugLineNum = 1459;BA.debugLine="cmd.Parameters = Array As Object( ALMACEN, e_rut";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())};
 //BA.debugLineNum = 1460;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("HIST_MARCAS_CUOTAS"));
 //BA.debugLineNum = 1462;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1463;BA.debugLine="cmd.Name = \"select_cat_encuesta_p_GUNA\"";
_cmd.Name /*String*/  = "select_cat_encuesta_p_GUNA";
 //BA.debugLineNum = 1464;BA.debugLine="cmd.Parameters = Array As Object( ALMACEN,e_ruta";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())};
 //BA.debugLineNum = 1465;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("carga_encuesta"));
 //BA.debugLineNum = 1467;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1468;BA.debugLine="cmd.Name = \"select_cat_clientes_guna_todos\"";
_cmd.Name /*String*/  = "select_cat_clientes_guna_todos";
 //BA.debugLineNum = 1469;BA.debugLine="cmd.Parameters = Array As Object( e_ruta.text,AL";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)};
 //BA.debugLineNum = 1470;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("kmt_CAT_CATCLIENTESTODOS"));
 //BA.debugLineNum = 1472;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1473;BA.debugLine="cmd.Name = \"select_hist_ventastodos_guna\"";
_cmd.Name /*String*/  = "select_hist_ventastodos_guna";
 //BA.debugLineNum = 1474;BA.debugLine="cmd.Parameters = Array As Object( e_ruta.text,AL";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen),(Object)(_e_ruta.getText()),(Object)(_almacen)};
 //BA.debugLineNum = 1475;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_ventastodos"));
 //BA.debugLineNum = 1482;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1483;BA.debugLine="cmd.Name = \"SELECT_HIST_PRODPROM_GUNA\"";
_cmd.Name /*String*/  = "SELECT_HIST_PRODPROM_GUNA";
 //BA.debugLineNum = 1484;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())};
 //BA.debugLineNum = 1485;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("HIST_PROM"));
 //BA.debugLineNum = 1489;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1490;BA.debugLine="cmd.Name = \"selectPromo2265JulAgo_Guna\"";
_cmd.Name /*String*/  = "selectPromo2265JulAgo_Guna";
 //BA.debugLineNum = 1491;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)};
 //BA.debugLineNum = 1492;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_pro2265"));
 //BA.debugLineNum = 1499;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1500;BA.debugLine="cmd.Name = \"selectPromo3054Jul-Sep_Guna\"";
_cmd.Name /*String*/  = "selectPromo3054Jul-Sep_Guna";
 //BA.debugLineNum = 1501;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)};
 //BA.debugLineNum = 1502;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_pro3054"));
 //BA.debugLineNum = 1506;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1507;BA.debugLine="cmd.Name = \"selectPromo3055Jul-Sep_Guna\"";
_cmd.Name /*String*/  = "selectPromo3055Jul-Sep_Guna";
 //BA.debugLineNum = 1508;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)};
 //BA.debugLineNum = 1509;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_pro3055"));
 //BA.debugLineNum = 1512;BA.debugLine="If E_RUTA2.text <> \"\" Then";
if ((_e_ruta2.getText()).equals("") == false) { 
 //BA.debugLineNum = 1513;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[]{_e_ruta2.getText()}));
 //BA.debugLineNum = 1514;BA.debugLine="E_RUTA2.Visible = False";
_e_ruta2.setVisible(__c.False);
 //BA.debugLineNum = 1515;BA.debugLine="p_ruta2.Visible = False";
_p_ruta2.setVisible(__c.False);
 //BA.debugLineNum = 1516;BA.debugLine="p_somvra_2.Visible = False";
_p_somvra_2.setVisible(__c.False);
 //BA.debugLineNum = 1518;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1519;BA.debugLine="cmd.Name = \"select_cat_clientes2_guna_GV2\" '###";
_cmd.Name /*String*/  = "select_cat_clientes2_guna_GV2";
 //BA.debugLineNum = 1520;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text,";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_e_ruta2.getText()),(Object)(_almacen)};
 //BA.debugLineNum = 1521;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("kmt_datos2"));
 //BA.debugLineNum = 1523;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1524;BA.debugLine="cmd.Name = \"select_hist_datos_GV2_3\"";
_cmd.Name /*String*/  = "select_hist_datos_GV2_3";
 //BA.debugLineNum = 1525;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text,";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_e_ruta2.getText()),(Object)(_almacen),(Object)(_e_ruta2.getText()),(Object)(_almacen)};
 //BA.debugLineNum = 1526;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_datos"));
 //BA.debugLineNum = 1528;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1529;BA.debugLine="cmd.Name = \"select_hist_promos_GV2\"";
_cmd.Name /*String*/  = "select_hist_promos_GV2";
 //BA.debugLineNum = 1530;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text,";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_e_ruta2.getText()),(Object)(_almacen)};
 //BA.debugLineNum = 1531;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_promos"));
 //BA.debugLineNum = 1533;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1534;BA.debugLine="cmd.Name = \"select_hist_cliente_promos_GV2\"";
_cmd.Name /*String*/  = "select_hist_cliente_promos_GV2";
 //BA.debugLineNum = 1535;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text,";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_e_ruta2.getText()),(Object)(_almacen)};
 //BA.debugLineNum = 1536;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_cliente_promos"));
 //BA.debugLineNum = 1538;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1539;BA.debugLine="cmd.Name = \"SELECT_HIST_PRODPROM_GUNA\"";
_cmd.Name /*String*/  = "SELECT_HIST_PRODPROM_GUNA";
 //BA.debugLineNum = 1540;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,E_RUTA";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen),(Object)(_e_ruta2.getText())};
 //BA.debugLineNum = 1541;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("HIST_PROM"));
 };
 //BA.debugLineNum = 1544;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1545;BA.debugLine="cmd.Name = \"select_promo_comp_GV2\"";
_cmd.Name /*String*/  = "select_promo_comp_GV2";
 //BA.debugLineNum = 1546;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen)};
 //BA.debugLineNum = 1547;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_comp_promos"));
 //BA.debugLineNum = 1549;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1550;BA.debugLine="cmd.Name = \"select_coordenadas_GUNA\"";
_cmd.Name /*String*/  = "select_coordenadas_GUNA";
 //BA.debugLineNum = 1551;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen)};
 //BA.debugLineNum = 1552;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("coordenadas"));
 //BA.debugLineNum = 1554;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1555;BA.debugLine="cmd.Name = \"select_PASS_GUNA\"";
_cmd.Name /*String*/  = "select_PASS_GUNA";
 //BA.debugLineNum = 1556;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen)};
 //BA.debugLineNum = 1557;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("password"));
 //BA.debugLineNum = 1564;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1565;BA.debugLine="cmd.Name = \"select_fecha\"";
_cmd.Name /*String*/  = "select_fecha";
 //BA.debugLineNum = 1566;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)};
 //BA.debugLineNum = 1567;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("fecha"));
 //BA.debugLineNum = 1574;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1575;BA.debugLine="cmd.Name = \"select_marcas_rutas\"";
_cmd.Name /*String*/  = "select_marcas_rutas";
 //BA.debugLineNum = 1576;BA.debugLine="cmd.Parameters = Array As Object( ALMACEN, e_rut";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())};
 //BA.debugLineNum = 1577;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("marcas_rutas"));
 //BA.debugLineNum = 1579;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1580;BA.debugLine="cmd.Name = \"select_CUEST2_GV2\"";
_cmd.Name /*String*/  = "select_CUEST2_GV2";
 //BA.debugLineNum = 1581;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen)};
 //BA.debugLineNum = 1582;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("CUESTIONARIO"));
 //BA.debugLineNum = 1595;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1596;BA.debugLine="cmd.Name = \"select_comis_cedex\"";
_cmd.Name /*String*/  = "select_comis_cedex";
 //BA.debugLineNum = 1597;BA.debugLine="cmd.Parameters = Array As Object( ALMACEN,e_ruta";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())};
 //BA.debugLineNum = 1598;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("COMISIONES"));
 //BA.debugLineNum = 1600;BA.debugLine="cargar.Visible = False";
_cargar.setVisible(__c.False);
 //BA.debugLineNum = 1601;BA.debugLine="Subir.Visible = False";
_subir.setVisible(__c.False);
 //BA.debugLineNum = 1602;BA.debugLine="inv.Visible = False";
_inv.setVisible(__c.False);
 //BA.debugLineNum = 1603;BA.debugLine="E_RUTA2.Visible = False";
_e_ruta2.setVisible(__c.False);
 //BA.debugLineNum = 1604;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 {
 //BA.debugLineNum = 1607;BA.debugLine="Log(\"XXXX\")";
__c.LogImpl("43932613","XXXX",0);
 //BA.debugLineNum = 1608;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);
 };
 //BA.debugLineNum = 1610;BA.debugLine="End Sub";
return "";
}
public String  _checapedido() throws Exception{
anywheresoftware.b4a.sql.SQL.CursorWrapper _coord = null;
int _cor = 0;
 //BA.debugLineNum = 4030;BA.debugLine="Sub checaPedido";
 //BA.debugLineNum = 4031;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")));
 //BA.debugLineNum = 4032;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 4033;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)");
 };
 //BA.debugLineNum = 4035;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")));
 //BA.debugLineNum = 4036;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 4037;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)");
 };
 //BA.debugLineNum = 4040;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")}));
 //BA.debugLineNum = 4043;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")));
 //BA.debugLineNum = 4044;BA.debugLine="If coord.RowCount > 0 Then";
if (_coord.getRowCount()>0) { 
 //BA.debugLineNum = 4045;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 ) {
 //BA.debugLineNum = 4046;BA.debugLine="coord.Position = cor";
_coord.setPosition(_cor);
 //BA.debugLineNum = 4047;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"))}));
 }
};
 };
 //BA.debugLineNum = 4051;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")));
 //BA.debugLineNum = 4052;BA.debugLine="If coord.RowCount > 0 Then";
if (_coord.getRowCount()>0) { 
 //BA.debugLineNum = 4053;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 ) {
 //BA.debugLineNum = 4054;BA.debugLine="coord.Position = cor";
_coord.setPosition(_cor);
 //BA.debugLineNum = 4055;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"))}));
 }
};
 };
 //BA.debugLineNum = 4059;BA.debugLine="End Sub";
return "";
}
public String  _class_globals() throws Exception{
 //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
 //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
 //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
 //BA.debugLineNum = 4;BA.debugLine="Dim conectado As String";
_conectado = "";
 //BA.debugLineNum = 5;BA.debugLine="Dim t1, t2 As Timer";
_t1 = new anywheresoftware.b4a.objects.Timer();
_t2 = new anywheresoftware.b4a.objects.Timer();
 //BA.debugLineNum = 6;BA.debugLine="Dim sb As StringBuilder";
_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper();
 //BA.debugLineNum = 7;BA.debugLine="Dim PHONE As Phone";
_phone = new anywheresoftware.b4a.phone.Phone();
 //BA.debugLineNum = 8;BA.debugLine="Dim g As GPS";
_g = new anywheresoftware.b4a.gps.GPS();
 //BA.debugLineNum = 9;BA.debugLine="Dim trabajar As Button";
_trabajar = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 11;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
 //BA.debugLineNum = 12;BA.debugLine="Dim d As Cursor";
_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
 //BA.debugLineNum = 13;BA.debugLine="Dim b As Cursor";
_b = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
 //BA.debugLineNum = 14;BA.debugLine="Dim e As Cursor";
_e = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
 //BA.debugLineNum = 15;BA.debugLine="Dim f As Cursor";
_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
 //BA.debugLineNum = 16;BA.debugLine="Dim ro As Cursor";
_ro = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
 //BA.debugLineNum = 17;BA.debugLine="Dim D2 As Cursor";
_d2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
 //BA.debugLineNum = 18;BA.debugLine="Dim lv As ListView";
_lv = new anywheresoftware.b4a.objects.ListViewWrapper();
 //BA.debugLineNum = 19;BA.debugLine="Dim cargar As Button";
_cargar = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 20;BA.debugLine="Dim pendiente As Button";
_pendiente = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 21;BA.debugLine="Dim foto1() As Byte";
_foto1 = new byte[(int) (0)];
;
 //BA.debugLineNum = 22;BA.debugLine="Dim usuario As String";
_usuario = "";
 //BA.debugLineNum = 23;BA.debugLine="Dim connecta As Button";
_connecta = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 24;BA.debugLine="Dim conn As String";
_conn = "";
 //BA.debugLineNum = 25;BA.debugLine="Dim Subir As Button";
_subir = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 26;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 27;BA.debugLine="Dim TOPE As Int";
_tope = 0;
 //BA.debugLineNum = 28;BA.debugLine="Dim COUNT_CLIE As Int";
_count_clie = 0;
 //BA.debugLineNum = 29;BA.debugLine="Dim fecha As String";
_fecha = "";
 //BA.debugLineNum = 30;BA.debugLine="Dim drop As Double";
_drop = 0;
 //BA.debugLineNum = 31;BA.debugLine="Dim efectiva As Double";
_efectiva = 0;
 //BA.debugLineNum = 33;BA.debugLine="Dim L_MONTOD As Label";
_l_montod = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 34;BA.debugLine="Dim l_cuantosc As Label";
_l_cuantosc = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 35;BA.debugLine="Dim l_drop As Label";
_l_drop = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 36;BA.debugLine="Dim l_efectiva As Label";
_l_efectiva = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 37;BA.debugLine="Dim l_ctast As Label";
_l_ctast = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 38;BA.debugLine="Dim BUSCA As Button";
_busca = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 39;BA.debugLine="Dim Cuantos As String";
_cuantos = "";
 //BA.debugLineNum = 40;BA.debugLine="Dim l_cuantosn As Label";
_l_cuantosn = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 41;BA.debugLine="Dim e_ruta As EditText";
_e_ruta = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 42;BA.debugLine="Dim Rut_Rep As String";
_rut_rep = "";
 //BA.debugLineNum = 43;BA.debugLine="Dim l_porvisitar As Label";
_l_porvisitar = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 44;BA.debugLine="Dim b_mapa As Button";
_b_mapa = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 45;BA.debugLine="Dim l_ruta As Label";
_l_ruta = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 46;BA.debugLine="Dim ALMACEN As String";
_almacen = "";
 //BA.debugLineNum = 47;BA.debugLine="Private img2 As ImageView";
_img2 = new anywheresoftware.b4a.objects.ImageViewWrapper();
 //BA.debugLineNum = 48;BA.debugLine="Dim Listo1 As String";
_listo1 = "";
 //BA.debugLineNum = 49;BA.debugLine="Dim Listo2 As String";
_listo2 = "";
 //BA.debugLineNum = 50;BA.debugLine="Dim Listo3 As String";
_listo3 = "";
 //BA.debugLineNum = 51;BA.debugLine="Dim Listo4 As String";
_listo4 = "";
 //BA.debugLineNum = 52;BA.debugLine="Dim Listo5 As String";
_listo5 = "";
 //BA.debugLineNum = 53;BA.debugLine="Dim EJECUTANDO As String";
_ejecutando = "";
 //BA.debugLineNum = 54;BA.debugLine="Dim RES As String";
_res = "";
 //BA.debugLineNum = 55;BA.debugLine="Dim inve As String";
_inve = "";
 //BA.debugLineNum = 56;BA.debugLine="Dim cuantos_pedidosc As String";
_cuantos_pedidosc = "";
 //BA.debugLineNum = 57;BA.debugLine="Dim cuantos_pedido As String";
_cuantos_pedido = "";
 //BA.debugLineNum = 58;BA.debugLine="Dim cuantos_noventa As String";
_cuantos_noventa = "";
 //BA.debugLineNum = 59;BA.debugLine="Dim datos_iguales As String";
_datos_iguales = "";
 //BA.debugLineNum = 60;BA.debugLine="Dim p As PhoneId";
_p = new anywheresoftware.b4a.phone.Phone.PhoneId();
 //BA.debugLineNum = 61;BA.debugLine="Dim imei As String";
_imei = "";
 //BA.debugLineNum = 65;BA.debugLine="Private inv As Button";
_inv = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 66;BA.debugLine="Private P1 As Panel";
_p1 = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 67;BA.debugLine="Private CLAVE As EditText";
_clave = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 68;BA.debugLine="Private B_OK_PAS As Button";
_b_ok_pas = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 69;BA.debugLine="Dim PASO As String";
_paso = "";
 //BA.debugLineNum = 70;BA.debugLine="Private USUARIO1 As EditText";
_usuario1 = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 71;BA.debugLine="Dim connecta1 As Double";
_connecta1 = 0;
 //BA.debugLineNum = 72;BA.debugLine="Dim armafolio As String";
_armafolio = "";
 //BA.debugLineNum = 73;BA.debugLine="Private NUEVO As Button";
_nuevo = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 74;BA.debugLine="Private S_CC As Label";
_s_cc = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 75;BA.debugLine="Private S_CP As Label";
_s_cp = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 76;BA.debugLine="Private S_CH As Label";
_s_ch = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 77;BA.debugLine="Private PB2 As ProgressBar";
_pb2 = new anywheresoftware.b4a.objects.ProgressBarWrapper();
 //BA.debugLineNum = 78;BA.debugLine="Private PB1 As ProgressBar";
_pb1 = new anywheresoftware.b4a.objects.ProgressBarWrapper();
 //BA.debugLineNum = 79;BA.debugLine="Private L_P_1 As Label";
_l_p_1 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 80;BA.debugLine="Private L_P_2 As Label";
_l_p_2 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 81;BA.debugLine="Private L_P_3 As Label";
_l_p_3 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 82;BA.debugLine="Private CARGA As String";
_carga = "";
 //BA.debugLineNum = 83;BA.debugLine="Private PORCENTAJE As String";
_porcentaje = "";
 //BA.debugLineNum = 84;BA.debugLine="Private P_RESUMEN As Panel";
_p_resumen = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 85;BA.debugLine="Private B_OK_RES As Button";
_b_ok_res = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 86;BA.debugLine="Private Resumen As Button";
_resumen = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 87;BA.debugLine="Private L_CUANTOST As Label";
_l_cuantost = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 88;BA.debugLine="Private img3 As ImageView";
_img3 = new anywheresoftware.b4a.objects.ImageViewWrapper();
 //BA.debugLineNum = 90;BA.debugLine="Private ImageView3 As ImageView";
_imageview3 = new anywheresoftware.b4a.objects.ImageViewWrapper();
 //BA.debugLineNum = 91;BA.debugLine="Private ImageView5 As ImageView";
_imageview5 = new anywheresoftware.b4a.objects.ImageViewWrapper();
 //BA.debugLineNum = 92;BA.debugLine="Private L_TICKPROM As Label";
_l_tickprom = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 93;BA.debugLine="Private L_MARCAS As ListView";
_l_marcas = new anywheresoftware.b4a.objects.ListViewWrapper();
 //BA.debugLineNum = 94;BA.debugLine="Private p_ruta2 As Panel";
_p_ruta2 = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 95;BA.debugLine="Private E_RUTA2 As EditText";
_e_ruta2 = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 96;BA.debugLine="Private resdia As ImageView";
_resdia = new anywheresoftware.b4a.objects.ImageViewWrapper();
 //BA.debugLineNum = 97;BA.debugLine="Private hacer_ped As ImageView";
_hacer_ped = new anywheresoftware.b4a.objects.ImageViewWrapper();
 //BA.debugLineNum = 98;BA.debugLine="Private nvo_cliente As ImageView";
_nvo_cliente = new anywheresoftware.b4a.objects.ImageViewWrapper();
 //BA.debugLineNum = 99;BA.debugLine="Private tickets_dia As ImageView";
_tickets_dia = new anywheresoftware.b4a.objects.ImageViewWrapper();
 //BA.debugLineNum = 101;BA.debugLine="Private l_monto_ks As Label";
_l_monto_ks = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 102;BA.debugLine="Private l_monto_kp As Label";
_l_monto_kp = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 103;BA.debugLine="Private l_monto_k As Label";
_l_monto_k = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 105;BA.debugLine="Private l_monto_c1 As Label";
_l_monto_c1 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 106;BA.debugLine="Private l_monto_c2 As Label";
_l_monto_c2 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 107;BA.debugLine="Private l_monto_c3 As Label";
_l_monto_c3 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 109;BA.debugLine="Private l_encuesta As Label";
_l_encuesta = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 112;BA.debugLine="Private bpv1 As BatteryProgressView";
_bpv1 = new batteryprogressviewwrapper.batteryprogressviewWrapper();
 //BA.debugLineNum = 113;BA.debugLine="Dim batterystatus(11) As Int";
_batterystatus = new int[(int) (11)];
;
 //BA.debugLineNum = 114;BA.debugLine="Private bu As BatteryUtilities";
_bu = new gunav2.keymon.com.mx.batteryutilities();
 //BA.debugLineNum = 117;BA.debugLine="Private Panel4 As Panel";
_panel4 = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 118;BA.debugLine="Private L_NES As Label";
_l_nes = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 119;BA.debugLine="Private L_REAL As Label";
_l_real = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 120;BA.debugLine="Private L_ALCANCE As Label";
_l_alcance = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 121;BA.debugLine="Private L_VPLAN As Label";
_l_vplan = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 122;BA.debugLine="Private L_VREAL As Label";
_l_vreal = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 123;BA.debugLine="Private L_EFEC_VIS As Label";
_l_efec_vis = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 124;BA.debugLine="Private L_VISITCC As Label";
_l_visitcc = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 125;BA.debugLine="Private L_EFEC_PV As Label";
_l_efec_pv = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 126;BA.debugLine="Private L_EFEC_PURA As Label";
_l_efec_pura = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 127;BA.debugLine="Private L_CTE_PROMO As Label";
_l_cte_promo = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 128;BA.debugLine="Private L_REDEN_PROMO As Label";
_l_reden_promo = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 129;BA.debugLine="Private L_LIN_TICK As Label";
_l_lin_tick = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 130;BA.debugLine="Private SCROLL_RESDIA As ScrollView";
_scroll_resdia = new anywheresoftware.b4a.objects.ScrollViewWrapper();
 //BA.debugLineNum = 131;BA.debugLine="Private L_ACUMULADO As Label";
_l_acumulado = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 132;BA.debugLine="Private L_UNILEVER As Label";
_l_unilever = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 133;BA.debugLine="Private L_RECHAZOP As Label";
_l_rechazop = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 134;BA.debugLine="Private L_RECHAZOM As Label";
_l_rechazom = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 135;BA.debugLine="Private L_VTA_3MES As Label";
_l_vta_3mes = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 136;BA.debugLine="Private L_VTA_2MES As Label";
_l_vta_2mes = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 137;BA.debugLine="Private L_VTA_1MES As Label";
_l_vta_1mes = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 138;BA.debugLine="Private L_MES_PY As Label";
_l_mes_py = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 139;BA.debugLine="Private L_FREC_DE_CREAL As Label";
_l_frec_de_creal = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 140;BA.debugLine="Private L_FREC_DE_COBJ As Label";
_l_frec_de_cobj = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 141;BA.debugLine="Private L_COB_VISIT As Label";
_l_cob_visit = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 142;BA.debugLine="Private L_VISIT_REAL As Label";
_l_visit_real = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 143;BA.debugLine="Private L_VISIT_PLAN As Label";
_l_visit_plan = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 144;BA.debugLine="Private L_ECO As Label";
_l_eco = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 145;BA.debugLine="Private L_COB_CCC As Label";
_l_cob_ccc = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 146;BA.debugLine="Private L_CTES As Label";
_l_ctes = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 147;BA.debugLine="Private L_VPO_VTA As Label";
_l_vpo_vta = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 148;BA.debugLine="Private L_VPO_OBJ As Label";
_l_vpo_obj = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 149;BA.debugLine="Private L_DS_VTA As Label";
_l_ds_vta = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 150;BA.debugLine="Private L_DS_OBJ As Label";
_l_ds_obj = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 151;BA.debugLine="Private L_DRA_VTA As Label";
_l_dra_vta = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 152;BA.debugLine="Private L_DRA_OBJ As Label";
_l_dra_obj = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 153;BA.debugLine="Private L_ALCANCEM As Label";
_l_alcancem = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 154;BA.debugLine="Private L_TENDENCIA As Label";
_l_tendencia = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 155;BA.debugLine="Private L_VTA_ACUM As Label";
_l_vta_acum = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 156;BA.debugLine="Private L_OBJ_MES As Label";
_l_obj_mes = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 157;BA.debugLine="Private L_DS_OBJD As Label";
_l_ds_objd = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 158;BA.debugLine="Private L_DS_VTAD As Label";
_l_ds_vtad = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 159;BA.debugLine="Private LPT As String";
_lpt = "";
 //BA.debugLineNum = 160;BA.debugLine="Private STEYIN As String";
_steyin = "";
 //BA.debugLineNum = 161;BA.debugLine="Private STEYOUT As String";
_steyout = "";
 //BA.debugLineNum = 163;BA.debugLine="Private L_PRIO As Label";
_l_prio = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 164;BA.debugLine="Private L_SECUND As Label";
_l_secund = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 165;BA.debugLine="Private L_COMP As Label";
_l_comp = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 168;BA.debugLine="Private stay_hh As String";
_stay_hh = "";
 //BA.debugLineNum = 169;BA.debugLine="Private stay_mi As String";
_stay_mi = "";
 //BA.debugLineNum = 170;BA.debugLine="Private stay_ss As String";
_stay_ss = "";
 //BA.debugLineNum = 172;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
 //BA.debugLineNum = 173;BA.debugLine="Dim HORAINGRESO As String";
_horaingreso = "";
 //BA.debugLineNum = 175;BA.debugLine="Private L_QUALA As Label";
_l_quala = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 176;BA.debugLine="Private L_FERRERO As Label";
_l_ferrero = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 177;BA.debugLine="Private L_SANMARCOS As Label";
_l_sanmarcos = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 178;BA.debugLine="Private L_CAMPARI As Label";
_l_campari = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 179;BA.debugLine="Private L_IBERIA As Label";
_l_iberia = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 180;BA.debugLine="Private L_BEPENSA As Label";
_l_bepensa = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 181;BA.debugLine="Private L_SCJ As Label";
_l_scj = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 182;BA.debugLine="Private L_MEDJ As Label";
_l_medj = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 183;BA.debugLine="Private L_DURACELL As Label";
_l_duracell = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 184;BA.debugLine="Private L_GUNA As Label";
_l_guna = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 185;BA.debugLine="Private L_KIMB As Label";
_l_kimb = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 186;BA.debugLine="Private L_TRESM As Label";
_l_tresm = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 187;BA.debugLine="Private L_REDB As Label";
_l_redb = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 188;BA.debugLine="Private Btn_Ubicar As Button";
_btn_ubicar = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 189;BA.debugLine="Private B_COMM As Button";
_b_comm = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 190;BA.debugLine="Private L_TOTAL_MM As Label";
_l_total_mm = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 191;BA.debugLine="Private L_TOTAL_VIVE As Label";
_l_total_vive = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 192;BA.debugLine="Private L_TOTAL_GUNA As Label";
_l_total_guna = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 193;BA.debugLine="Private L_TOTAL_BA As Label";
_l_total_ba = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 194;BA.debugLine="Private L_TOTAL_COMIS As Label";
_l_total_comis = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 195;BA.debugLine="Private L_TOTAL_MM_1 As Label";
_l_total_mm_1 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 196;BA.debugLine="Private L_TOTAL_VIVE_1 As Label";
_l_total_vive_1 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 197;BA.debugLine="Private L_TOTAL_GUNA_1 As Label";
_l_total_guna_1 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 198;BA.debugLine="Private L_TOTAL_BA_1 As Label";
_l_total_ba_1 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 199;BA.debugLine="Private L_TOTAL_COMIS_1 As Label";
_l_total_comis_1 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 200;BA.debugLine="Private B_OK_COMISS As Button";
_b_ok_comiss = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 201;BA.debugLine="Private Panel_C As Panel";
_panel_c = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 203;BA.debugLine="Private TitleHeight As Int = 50dip";
_titleheight = __c.DipToCurrent((int) (50));
 //BA.debugLineNum = 204;BA.debugLine="Private Title2Height As Int = 100dip";
_title2height = __c.DipToCurrent((int) (100));
 //BA.debugLineNum = 206;BA.debugLine="Private DividerHeight As Int = 5dip";
_dividerheight = __c.DipToCurrent((int) (5));
 //BA.debugLineNum = 207;BA.debugLine="Private CLV1 As CustomListView";
_clv1 = new b4a.example3.customlistview();
 //BA.debugLineNum = 208;BA.debugLine="Private pnlTitle As B4XView";
_pnltitle = new anywheresoftware.b4a.objects.B4XViewWrapper();
 //BA.debugLineNum = 209;BA.debugLine="Private xui As XUI";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
 //BA.debugLineNum = 210;BA.debugLine="Type TitleData (Title As String)";
;
 //BA.debugLineNum = 212;BA.debugLine="Private B_MARCAS As Button";
_b_marcas = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 213;BA.debugLine="Private lblTitle As Label";
_lbltitle = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 214;BA.debugLine="Private B_OK_PANEL5 As Button";
_b_ok_panel5 = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 215;BA.debugLine="Private p_principal As Panel";
_p_principal = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 217;BA.debugLine="Private teclado As IME";
_teclado = new anywheresoftware.b4a.objects.IME();
 //BA.debugLineNum = 218;BA.debugLine="Private panel5 As Panel";
_panel5 = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 219;BA.debugLine="Private panel_5 As Panel";
_panel_5 = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 220;BA.debugLine="Private p_marcasRes As Panel";
_p_marcasres = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 221;BA.debugLine="Private p_sombra As Panel";
_p_sombra = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 223;BA.debugLine="Private Label22 As Label";
_label22 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 224;BA.debugLine="Private l_rutasuplencia As Label";
_l_rutasuplencia = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 225;BA.debugLine="Dim l_ru_pri As Label";
_l_ru_pri = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 226;BA.debugLine="Private l_ru_sup As Label";
_l_ru_sup = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 227;BA.debugLine="Private Label4 As Label";
_label4 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 228;BA.debugLine="Private Label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 229;BA.debugLine="Private Label25 As Label";
_label25 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 230;BA.debugLine="Dim p_transparenteActualizacion As Panel";
_p_transparenteactualizacion = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 231;BA.debugLine="Private p_forzarActualizacion As Panel";
_p_forzaractualizacion = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 232;BA.debugLine="Dim l_forzarActualizacion As Label";
_l_forzaractualizacion = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 233;BA.debugLine="Dim tipo_venta As String = Subs.traeTipoVentaDeBD";
_tipo_venta = _subs._traetipoventadebd /*String*/ (ba);
 //BA.debugLineNum = 234;BA.debugLine="Private b_abordo As Button";
_b_abordo = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 235;BA.debugLine="Dim bitacora As C_Bitacora";
_bitacora = new gunav2.keymon.com.mx.c_bitacora();
 //BA.debugLineNum = 236;BA.debugLine="Private l_version As Label";
_l_version = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 237;BA.debugLine="Dim contadorSubir As Int = 0";
_contadorsubir = (int) (0);
 //BA.debugLineNum = 239;BA.debugLine="Private p_somvra_2 As Panel";
_p_somvra_2 = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 240;BA.debugLine="Private b_resdia As Button";
_b_resdia = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 241;BA.debugLine="Private b_hacerpedido As Button";
_b_hacerpedido = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 242;BA.debugLine="Private b_nuevocliente As Button";
_b_nuevocliente = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 243;BA.debugLine="Private b_clientesvisitados As Button";
_b_clientesvisitados = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 244;BA.debugLine="Private l_futura As Label";
_l_futura = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 245;BA.debugLine="Private l_preventa As Label";
_l_preventa = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 246;BA.debugLine="Private l_preacordada As Label";
_l_preacordada = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 247;BA.debugLine="Private l_prevtotal As Label";
_l_prevtotal = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 248;BA.debugLine="Private Label13 As Label";
_label13 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 249;BA.debugLine="Private Label19 As Label";
_label19 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 250;BA.debugLine="Private Label21 As Label";
_label21 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 251;BA.debugLine="Private Label33 As Label";
_label33 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 252;BA.debugLine="Private Label35 As Label";
_label35 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 253;BA.debugLine="Private Label43 As Label";
_label43 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 254;BA.debugLine="Private Label51 As Label";
_label51 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 255;BA.debugLine="Private l_faltan As Label";
_l_faltan = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 256;BA.debugLine="Private l_visitas As Label";
_l_visitas = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 257;BA.debugLine="Private l_visitartotal As Label";
_l_visitartotal = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 258;BA.debugLine="Private de As Label";
_de = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 259;BA.debugLine="Private B_traec As Button";
_b_traec = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 260;BA.debugLine="End Sub";
return "";
}
public void  _connecta_click() throws Exception{
ResumableSub_connecta_Click rsub = new ResumableSub_connecta_Click(this);
rsub.resume(ba, null);
}
public static class ResumableSub_connecta_Click extends BA.ResumableSub {
public ResumableSub_connecta_Click(gunav2.keymon.com.mx.c_principal parent) {
this.parent = parent;
}
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{

    while (true) {
try {

        switch (state) {
            case -1:
return;

case 0:
//C
this.state = 1;
 //BA.debugLineNum = 2880;BA.debugLine="Log(\">>> REVISAMOS ACTUALIZACION\")";
parent.__c.LogImpl("44194305",">>> REVISAMOS ACTUALIZACION",0);
 //BA.debugLineNum = 2881;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);
 //BA.debugLineNum = 2882;BA.debugLine="Log(revisaActualizacion)";
parent.__c.LogImpl("44194307",BA.ObjectToString(_revisaactualizacion),0);
 //BA.debugLineNum = 2883;BA.debugLine="If E_RUTA2.Text = e_ruta.Text And e_ruta.Text <>";
if (true) break;

case 1:
//if
this.state = 40;
if ((parent._e_ruta2.getText()).equals(parent._e_ruta.getText()) && (parent._e_ruta.getText()).equals("") == false) { 
this.state = 3;
}else {
this.state = 5;
}if (true) break;

case 3:
//C
this.state = 40;
 //BA.debugLineNum = 2884;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;
 //BA.debugLineNum = 2886;BA.debugLine="If e_ruta.Text = \"KMTS1\" Then";
if (true) break;

case 6:
//if
this.state = 39;
if ((parent._e_ruta.getText()).equals("KMTS1")) { 
this.state = 8;
}else {
this.state = 10;
}if (true) break;

case 8:
//C
this.state = 39;
 //BA.debugLineNum = 2887;BA.debugLine="cargar.Visible = True";
parent._cargar.setVisible(parent.__c.True);
 //BA.debugLineNum = 2888;BA.debugLine="Subir.Visible = True";
parent._subir.setVisible(parent.__c.True);
 //BA.debugLineNum = 2889;BA.debugLine="e_ruta.Text = \"\"";
parent._e_ruta.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 2890;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*/ (ba,parent,parent._starter._server /*String*/ );
 if (true) break;

case 10:
//C
this.state = 11;
 //BA.debugLineNum = 2892;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 if((_revisaactualizacion.Get((Object)("forzar"))).equals((Object)(2))) { 
this.state = 15;
}else {
this.state = 17;
}if (true) break;

case 13:
//C
this.state = 38;
 //BA.debugLineNum = 2897;BA.debugLine="l_forzarActualizacion.TextColor = Colors.black";
parent._l_forzaractualizacion.setTextColor(parent.__c.Colors.Black);
 //BA.debugLineNum = 2898;BA.debugLine="l_forzarActualizacion.Text = \"Hay una nueva ac";
parent._l_forzaractualizacion.setText(BA.ObjectToCharSequence("Hay una nueva actualización para la aplicación, por favor revise que tenga DATOS y espere mientras se descarga."));
 //BA.debugLineNum = 2899;BA.debugLine="p_transparenteActualizacion.Visible = True";
parent._p_transparenteactualizacion.setVisible(parent.__c.True);
 //BA.debugLineNum = 2900;BA.debugLine="p_transparenteActualizacion.BringToFront";
parent._p_transparenteactualizacion.BringToFront();
 //BA.debugLineNum = 2901;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");
 //BA.debugLineNum = 2902;BA.debugLine="Log(\"Descargar: GP_\" & Starter.newApp.appLink)";
parent.__c.LogImpl("44194327","Descargar: GP_"+parent._starter._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ .appLink /*String*/ ,0);
 //BA.debugLineNum = 2903;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;
 //BA.debugLineNum = 2905;BA.debugLine="l_forzarActualizacion.TextColor = Colors.red";
parent._l_forzaractualizacion.setTextColor(parent.__c.Colors.Red);
 //BA.debugLineNum = 2906;BA.debugLine="l_forzarActualizacion.Text = \"Es necesaria una";
parent._l_forzaractualizacion.setText(BA.ObjectToCharSequence("Es necesaria una conexión a internet, por favor revise su conexión y vuelva a intentar."));
 //BA.debugLineNum = 2907;BA.debugLine="p_transparenteActualizacion.Visible = True";
parent._p_transparenteactualizacion.setVisible(parent.__c.True);
 //BA.debugLineNum = 2908;BA.debugLine="p_transparenteActualizacion.BringToFront";
parent._p_transparenteactualizacion.BringToFront();
 //BA.debugLineNum = 2909;BA.debugLine="Sleep(4500)";
parent.__c.Sleep(ba,this,(int) (4500));
this.state = 41;
return;
case 41:
//C
this.state = 38;
;
 //BA.debugLineNum = 2910;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from usuario";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from usuarioa");
 //BA.debugLineNum = 2911;BA.debugLine="p_transparenteActualizacion.Visible = False";
parent._p_transparenteactualizacion.setVisible(parent.__c.False);
 //BA.debugLineNum = 2912;BA.debugLine="B4XPages.ShowPage(\"Login\")";
parent._b4xpages._showpage /*String*/ (ba,"Login");
 if (true) break;

case 17:
//C
this.state = 18;
 //BA.debugLineNum = 2914;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;
 //BA.debugLineNum = 2915;BA.debugLine="Private i As Int = Regex.Replace(\"[^0-9.]\", e";
_i = (int)(Double.parseDouble(parent.__c.Regex.Replace("[^0-9.]",parent._e_ruta.getText(),"")));
 //BA.debugLineNum = 2916;BA.debugLine="Log($\"|${i}|\"$)";
parent.__c.LogImpl("44194341",("|"+parent.__c.SmartStringFormatter("",(Object)(_i))+"|"),0);
 //BA.debugLineNum = 2917;BA.debugLine="e_ruta.text = i";
parent._e_ruta.setText(BA.ObjectToCharSequence(_i));
 //BA.debugLineNum = 2918;BA.debugLine="p_transparenteActualizacion.Visible = False";
parent._p_transparenteactualizacion.setVisible(parent.__c.False);
 //BA.debugLineNum = 2919;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*/ (ba,parent,parent._starter._server /*String*/ );
 //BA.debugLineNum = 2920;BA.debugLine="teclado.HideKeyboard";
parent._teclado.HideKeyboard(ba);
 //BA.debugLineNum = 2921;BA.debugLine="connecta1 = connecta1 + 1";
parent._connecta1 = parent._connecta1+1;
 //BA.debugLineNum = 2923;BA.debugLine="conn = \"1\"";
parent._conn = "1";
 //BA.debugLineNum = 2924;BA.debugLine="Dim cmd As DBCommand";
parent._cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 2925;BA.debugLine="cmd.Initialize";
parent._cmd.Initialize();
 //BA.debugLineNum = 2926;BA.debugLine="cmd.Name = \"select_version_GV2\"";
parent._cmd.Name /*String*/  = "select_version_GV2";
 //BA.debugLineNum = 2927;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (parent._cmd,(int) (0),(Object)("version"));
 //BA.debugLineNum = 2929;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select US";
parent._c = (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")));
 //BA.debugLineNum = 2930;BA.debugLine="c.Position=0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 2931;BA.debugLine="If c.RowCount > 0  And c.GetString(\"USUARIO\")";
if (true) break;

case 21:
//if
this.state = 24;
if (parent._c.getRowCount()>0 && (parent._c.GetString("USUARIO")).equals("KMTS1") == false) { 
this.state = 23;
}if (true) break;

case 23:
//C
this.state = 24;
 //BA.debugLineNum = 2932;BA.debugLine="Private usrT As String = c.GetString(\"USUARI";
_usrt = parent._c.GetString("USUARIO");
 //BA.debugLineNum = 2933;BA.debugLine="Private passT As String = c.GetString(\"PASS\"";
_passt = parent._c.GetString("PASS");
 //BA.debugLineNum = 2934;BA.debugLine="cmd.Initialize";
parent._cmd.Initialize();
 //BA.debugLineNum = 2935;BA.debugLine="cmd.Name = \"select_usuario_guna_GV2_10\"";
parent._cmd.Name /*String*/  = "select_usuario_guna_GV2_10";
 //BA.debugLineNum = 2936;BA.debugLine="cmd.Parameters = Array As Object(usrT, passT";
parent._cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_usrt),(Object)(_passt)};
 //BA.debugLineNum = 2937;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cm";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (parent._cmd,(int) (0),(Object)("usuarioA"));
 if (true) break;

case 24:
//C
this.state = 25;
;
 //BA.debugLineNum = 2939;BA.debugLine="c.Close";
parent._c.Close();
 //BA.debugLineNum = 2940;BA.debugLine="If e_ruta.Text = \"BERNA1\" Then";
if (true) break;

case 25:
//if
this.state = 28;
if ((parent._e_ruta.getText()).equals("BERNA1")) { 
this.state = 27;
}if (true) break;

case 27:
//C
this.state = 28;
 //BA.debugLineNum = 2941;BA.debugLine="cargar.Visible = True";
parent._cargar.setVisible(parent.__c.True);
 //BA.debugLineNum = 2942;BA.debugLine="Subir.Visible = True";
parent._subir.setVisible(parent.__c.True);
 //BA.debugLineNum = 2943;BA.debugLine="e_ruta.Text = \"\"";
parent._e_ruta.setText(BA.ObjectToCharSequence(""));
 if (true) break;

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

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

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

case 33:
//C
this.state = 34;
 //BA.debugLineNum = 2959;BA.debugLine="B4XPages.MainPage.reqManager.Initialize(Me,";
parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._initialize /*String*/ (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;
 //BA.debugLineNum = 2962;BA.debugLine="Log(LastException)";
parent.__c.LogImpl("44194387",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;
;
 //BA.debugLineNum = 2970;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() throws Exception{
int _i = 0;
 //BA.debugLineNum = 2850;BA.debugLine="Private Sub connecta_LongClick";
 //BA.debugLineNum = 2852;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT * FROM";
_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*/ .ExecQuery("SELECT * FROM ENCUESTAS_BAT")));
 //BA.debugLineNum = 2853;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 2854;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step3 = 1;
final int limit3 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit3 ;_i = _i + step3 ) {
 //BA.debugLineNum = 2855;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 2856;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 2857;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 2858;BA.debugLine="cmd.Name = \"insert_encuestas_bat_guna\"";
_cmd.Name /*String*/  = "insert_encuestas_bat_guna";
 //BA.debugLineNum = 2859;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"C";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("CLIENTE")),(Object)(_c.GetString("RUTA")),(Object)(_c.GetString("ALMACEN")),(Object)(_c.GetString("FECHA")),(Object)(_c.GetString("P1")),(Object)(_c.GetString("P2")),(Object)(_c.GetString("P3")),(Object)(_c.GetString("P4")),(Object)(_c.GetString("P5")),(Object)(_c.GetString("P6")),(Object)(_c.GetString("P7")),(Object)(_c.GetString("P8")),(Object)(_c.GetString("P9")),(Object)(_c.GetString("P10"))};
 //BA.debugLineNum = 2860;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("INSENCUESTAS"));
 }
};
 };
 //BA.debugLineNum = 2863;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 2865;BA.debugLine="End Sub";
return "";
}
public String  _e_ruta_click() throws Exception{
anywheresoftware.b4a.objects.collections.Map _revisaactualizacion = null;
 //BA.debugLineNum = 3970;BA.debugLine="Sub e_ruta_Click";
 //BA.debugLineNum = 3971;BA.debugLine="Private revisaActualizacion As Map = Subs.revisaF";
_revisaactualizacion = new anywheresoftware.b4a.objects.collections.Map();
_revisaactualizacion = _subs._revisaforzaractualizacion /*anywheresoftware.b4a.objects.collections.Map*/ (ba);
 //BA.debugLineNum = 3972;BA.debugLine="Log(\"revisaActualizacion = \" & revisaActualizacio";
__c.LogImpl("45898242","revisaActualizacion = "+BA.ObjectToString(_revisaactualizacion),0);
 //BA.debugLineNum = 3973;BA.debugLine="If revisaActualizacion.Get(\"forzar\") = 2 Then";
if ((_revisaactualizacion.Get((Object)("forzar"))).equals((Object)(2))) { 
 //BA.debugLineNum = 3974;BA.debugLine="LogColor(\"No hay info de versión para actualizar";
__c.LogImpl("45898244","No hay info de versión para actualizar en CAT_VARIABLES, traemos la información!",__c.Colors.Red);
 //BA.debugLineNum = 3975;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 3976;BA.debugLine="cmd.Name = \"selectVersionAppGuna\"";
_cmd.Name /*String*/  = "selectVersionAppGuna";
 //BA.debugLineNum = 3977;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen)};
 //BA.debugLineNum = 3978;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("traeVersion"));
 };
 //BA.debugLineNum = 3980;BA.debugLine="End Sub";
return "";
}
public String  _e_ruta_enterpressed() throws Exception{
 //BA.debugLineNum = 3045;BA.debugLine="Sub e_ruta_EnterPressed";
 //BA.debugLineNum = 3046;BA.debugLine="If e_ruta.Text = \"FIN DIA\" Then";
if ((_e_ruta.getText()).equals("FIN DIA")) { 
 //BA.debugLineNum = 3047;BA.debugLine="RES = Msgbox2(\"Seguro que desea hacer el cierre?";
_res = 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));
 //BA.debugLineNum = 3048;BA.debugLine="If RES = DialogResponse.POSITIVE Then";
if ((_res).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { 
 //BA.debugLineNum = 3049;BA.debugLine="bitacora.mandaBitacora(Subs.fechanormal(DateTim";
_bitacora._mandabitacora /*String*/ (_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_usuario,_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","","","");
 //BA.debugLineNum = 3050;BA.debugLine="Label22.Visible = False";
_label22.setVisible(__c.False);
 //BA.debugLineNum = 3051;BA.debugLine="l_rutasuplencia.Visible = False";
_l_rutasuplencia.setVisible(__c.False);
 //BA.debugLineNum = 3052;BA.debugLine="l_rutasuplencia.Text = \"\"";
_l_rutasuplencia.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 3053;BA.debugLine="b_abordo.Visible = False";
_b_abordo.setVisible(__c.False);
 //BA.debugLineNum = 3054;BA.debugLine="t2.Initialize(\"t2\", 1000)  ' 1000 ms = 1 segund";
_t2.Initialize(ba,"t2",(long) (1000));
 //BA.debugLineNum = 3055;BA.debugLine="t2.Enabled = True";
_t2.setEnabled(__c.True);
 };
 };
 //BA.debugLineNum = 3059;BA.debugLine="If e_ruta.Text = \"IWL\" Then";
if ((_e_ruta.getText()).equals("IWL")) { 
 //BA.debugLineNum = 3061;BA.debugLine="NUEVO.Visible =False";
_nuevo.setVisible(__c.False);
 //BA.debugLineNum = 3062;BA.debugLine="BUSCA.Visible=False";
_busca.setVisible(__c.False);
 //BA.debugLineNum = 3063;BA.debugLine="connecta.Visible=False";
_connecta.setVisible(__c.False);
 //BA.debugLineNum = 3064;BA.debugLine="img3.Visible =True";
_img3.setVisible(__c.True);
 //BA.debugLineNum = 3065;BA.debugLine="Resumen.Visible= False";
_resumen.setVisible(__c.False);
 };
 //BA.debugLineNum = 3068;BA.debugLine="If e_ruta.Text = \"SUPLENCIA\" Then";
if ((_e_ruta.getText()).equals("SUPLENCIA")) { 
 //BA.debugLineNum = 3069;BA.debugLine="e_ruta.Text = \"\"";
_e_ruta.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 3070;BA.debugLine="E_RUTA2.Visible = True";
_e_ruta2.setVisible(__c.True);
 //BA.debugLineNum = 3071;BA.debugLine="p_ruta2.Visible = True";
_p_ruta2.setVisible(__c.True);
 //BA.debugLineNum = 3072;BA.debugLine="p_somvra_2.Visible = False";
_p_somvra_2.setVisible(__c.False);
 };
 //BA.debugLineNum = 3074;BA.debugLine="End Sub";
return "";
}
public String  _e_ruta_textchanged(String _old,String _new) throws Exception{
String _validchars = "";
 //BA.debugLineNum = 3800;BA.debugLine="Sub e_ruta_TextChanged (Old As String, New As Stri";
 //BA.debugLineNum = 3801;BA.debugLine="Dim validChars As String =\"ABCDEFGHIJKLMNOPQRSTUV";
_validchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ";
 //BA.debugLineNum = 3803;BA.debugLine="If Old <> \"KMTS1\" Then";
if ((_old).equals("KMTS1") == false) { 
 //BA.debugLineNum = 3805;BA.debugLine="Try";
try { //BA.debugLineNum = 3806;BA.debugLine="If validChars.Contains(New.SubString(New.Length";
if (_validchars.contains(_new.substring((int) (_new.length()-1)))==__c.False) { 
 //BA.debugLineNum = 3807;BA.debugLine="e_ruta.Text = New.SubString2(0, New.Length-1)";
_e_ruta.setText(BA.ObjectToCharSequence(_new.substring((int) (0),(int) (_new.length()-1))));
 //BA.debugLineNum = 3808;BA.debugLine="e_ruta.SelectionStart = e_ruta.Text.Length";
_e_ruta.setSelectionStart(_e_ruta.getText().length());
 };
 } 
       catch (Exception e9) {
			ba.setLastException(e9); };
 };
 //BA.debugLineNum = 3814;BA.debugLine="End Sub";
return "";
}
public String  _e_ruta2_textchanged(String _old,String _new) throws Exception{
 //BA.debugLineNum = 3816;BA.debugLine="Sub e_ruta2_TextChanged (Old As String, New As Str";
 //BA.debugLineNum = 3819;BA.debugLine="If New = e_ruta.text And New <> \"\" Then";
if ((_new).equals(_e_ruta.getText()) && (_new).equals("") == false) { 
 //BA.debugLineNum = 3820;BA.debugLine="cargar.Enabled = False";
_cargar.setEnabled(__c.False);
 //BA.debugLineNum = 3821;BA.debugLine="ToastMessageShow(\"Las rutas NO PUEDEN ser iguale";
__c.ToastMessageShow(BA.ObjectToCharSequence("Las rutas NO PUEDEN ser iguales!!"),__c.False);
 }else {
 //BA.debugLineNum = 3823;BA.debugLine="cargar.Enabled = True";
_cargar.setEnabled(__c.True);
 };
 //BA.debugLineNum = 3825;BA.debugLine="End Sub";
return "";
}
public String  _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{
 //BA.debugLineNum = 3791;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
 //BA.debugLineNum = 3793;BA.debugLine="End Sub";
return "";
}
public String  _hacer_ped_click() throws Exception{
 //BA.debugLineNum = 3779;BA.debugLine="Sub hacer_ped_Click";
 //BA.debugLineNum = 3780;BA.debugLine="B4XPages.ShowPage(\"Clientes\")";
_b4xpages._showpage /*String*/ (ba,"Clientes");
 //BA.debugLineNum = 3781;BA.debugLine="End Sub";
return "";
}
public Object  _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
innerInitialize(_ba);
 //BA.debugLineNum = 263;BA.debugLine="Public Sub Initialize As Object";
 //BA.debugLineNum = 264;BA.debugLine="Return Me";
if (true) return this;
 //BA.debugLineNum = 265;BA.debugLine="End Sub";
return null;
}
public String  _inv_click() throws Exception{
 //BA.debugLineNum = 3076;BA.debugLine="Sub inv_Click";
 //BA.debugLineNum = 3077;BA.debugLine="img2.Visible =True";
_img2.setVisible(__c.True);
 //BA.debugLineNum = 3078;BA.debugLine="EJECUTANDO = 1";
_ejecutando = BA.NumberToString(1);
 //BA.debugLineNum = 3079;BA.debugLine="inve = 1";
_inve = BA.NumberToString(1);
 //BA.debugLineNum = 3080;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");
 //BA.debugLineNum = 3081;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");
 //BA.debugLineNum = 3082;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");
 //BA.debugLineNum = 3083;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuari";
_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*/ .ExecQuery("select usuario from usuarioa")));
 //BA.debugLineNum = 3084;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 3085;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
_usuario = _c.GetString("USUARIO");
 //BA.debugLineNum = 3086;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 3087;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 3088;BA.debugLine="cmd.Name = \"select_cat_gunaprod_GV2\"";
_cmd.Name /*String*/  = "select_cat_gunaprod_GV2";
 //BA.debugLineNum = 3089;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen)};
 //BA.debugLineNum = 3090;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("gunaprod"));
 //BA.debugLineNum = 3091;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 3092;BA.debugLine="cmd.Name = \"select_cat_gunaprod2_GV2\"";
_cmd.Name /*String*/  = "select_cat_gunaprod2_GV2";
 //BA.debugLineNum = 3093;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta.";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())};
 //BA.debugLineNum = 3094;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("gunaprod2"));
 //BA.debugLineNum = 3095;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 3096;BA.debugLine="cmd.Name = \"select_cat_paquetes_GV2\"";
_cmd.Name /*String*/  = "select_cat_paquetes_GV2";
 //BA.debugLineNum = 3097;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen)};
 //BA.debugLineNum = 3098;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("gunaprodp"));
 //BA.debugLineNum = 3100;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 3101;BA.debugLine="cmd.Name = \"select_cat_detallepa_GV2\"";
_cmd.Name /*String*/  = "select_cat_detallepa_GV2";
 //BA.debugLineNum = 3102;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen)};
 //BA.debugLineNum = 3103;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("detallepaq"));
 //BA.debugLineNum = 3105;BA.debugLine="cargar.Visible = False";
_cargar.setVisible(__c.False);
 //BA.debugLineNum = 3106;BA.debugLine="Subir.Visible = False";
_subir.setVisible(__c.False);
 //BA.debugLineNum = 3107;BA.debugLine="connecta.Visible = True";
_connecta.setVisible(__c.True);
 //BA.debugLineNum = 3108;BA.debugLine="inv.Visible = False";
_inv.setVisible(__c.False);
 //BA.debugLineNum = 3109;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);
 //BA.debugLineNum = 3110;BA.debugLine="End Sub";
return "";
}
public String  _jobdone(gunav2.keymon.com.mx.httpjob _job) throws Exception{
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_clasificador5 = "";
String _cat_cl_ordenvisita = "";
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 _hvd_num_ticket = "";
String _hvd_codpromo = "";
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 = "";
 //BA.debugLineNum = 1614;BA.debugLine="Sub JobDone(Job As HttpJob)";
 //BA.debugLineNum = 1615;BA.debugLine="B4XPages.MainPage.reqManager.trackNext(Job)";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._tracknext /*String*/ (_job);
 //BA.debugLineNum = 1616;BA.debugLine="Log(\"JOBDONE PRINCIPAL\")";
__c.LogImpl("43997698","JOBDONE PRINCIPAL",0);
 //BA.debugLineNum = 1622;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) { 
 //BA.debugLineNum = 1623;BA.debugLine="If Job.ErrorMessage <> \"STREAM\" Then LogColor(\"E";
if ((_job._errormessage /*String*/ ).equals("STREAM") == false) { 
__c.LogImpl("43997705","Error: "+BA.ObjectToString(_job._tag /*Object*/ )+" : "+_subs._parsehttperror /*String*/ (ba,_job._errormessage /*String*/ ),__c.Colors.Red);};
 //BA.debugLineNum = 1625;BA.debugLine="If Job.ErrorMessage = \"STREAM\" Then";
if ((_job._errormessage /*String*/ ).equals("STREAM")) { 
 //BA.debugLineNum = 1626;BA.debugLine="If CARGA = \"SUBIR\" Then";
if ((_carga).equals("SUBIR")) { 
 //BA.debugLineNum = 1627;BA.debugLine="PB2.Progress = PB2.Progress + PORCENTAJE";
_pb2.setProgress((int) (_pb2.getProgress()+(double)(Double.parseDouble(_porcentaje))));
 //BA.debugLineNum = 1628;BA.debugLine="S_CP.Text = \"SUBIENDO\"";
_s_cp.setText(BA.ObjectToCharSequence("SUBIENDO"));
 //BA.debugLineNum = 1629;BA.debugLine="If PB2.Progress > 99 Then";
if (_pb2.getProgress()>99) { 
 //BA.debugLineNum = 1630;BA.debugLine="S_CP.Text = \"VALIDANDO\"";
_s_cp.setText(BA.ObjectToCharSequence("VALIDANDO"));
 };
 };
 };
 }else {
 //BA.debugLineNum = 1635;BA.debugLine="LogColor(\"JobDone: '\" & B4XPages.MainPage.reqMan";
__c.LogImpl("43997717","JobDone: '"+BA.ObjectToString(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_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*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
 //BA.debugLineNum = 1637;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 1638;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*/ (_job);
 //BA.debugLineNum = 1639;BA.debugLine="If RESULT.Tag = \"usuarioA\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("usuarioA"))) { 
 //BA.debugLineNum = 1640;BA.debugLine="Private n As String = \"Sin Usuario\"";
_n = "Sin Usuario";
 //BA.debugLineNum = 1641;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));
 //BA.debugLineNum = 1642;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"))))]);
 }
};
 //BA.debugLineNum = 1644;BA.debugLine="LogColor(\"**************************  \" & n, C";
__c.LogImpl("43997726","**************************  "+_n,__c.Colors.Green);
 //BA.debugLineNum = 1645;BA.debugLine="If n = \"OKActivo\"  Then";
if ((_n).equals("OKActivo")) { 
 //BA.debugLineNum = 1646;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 1647;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1648;BA.debugLine="cmd.Name = \"select_ruta_GV2_70_19\"";
_cmd.Name /*String*/  = "select_ruta_GV2_70_19";
 //BA.debugLineNum = 1649;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,e_ru";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText()),(Object)(_usuario)};
 //BA.debugLineNum = 1650;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("ruta"));
 }else {
 //BA.debugLineNum = 1653;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'i";
__c.Msgbox(BA.ObjectToCharSequence("Usuario o password No validos"),BA.ObjectToCharSequence(""),ba);
 //BA.debugLineNum = 1654;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");
 //BA.debugLineNum = 1655;BA.debugLine="ExitApplication";
__c.ExitApplication();
 };
 };
 };
 //BA.debugLineNum = 1661;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 1662;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*/ (_job);
 //BA.debugLineNum = 1663;BA.debugLine="If RESULT.Tag = \"FOTO\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("FOTO"))) { 
 //BA.debugLineNum = 1665;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));
 //BA.debugLineNum = 1668;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"))))]);
 //BA.debugLineNum = 1669;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"))))]);
 //BA.debugLineNum = 1670;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"))))]);
 //BA.debugLineNum = 1672;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))+"'"))));
 //BA.debugLineNum = 1673;BA.debugLine="If fot.RowCount = 0 Then";
if (_fot.getRowCount()==0) { 
 //BA.debugLineNum = 1674;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 {
 //BA.debugLineNum = 1676;BA.debugLine="fot.Position = 0";
_fot.setPosition((int) (0));
 //BA.debugLineNum = 1677;BA.debugLine="If fot.GetString(\"MOVIMIENTO\") > BANDERA The";
if ((double)(Double.parseDouble(_fot.GetString("MOVIMIENTO")))>(double)(Double.parseDouble(_bandera))) { 
 //BA.debugLineNum = 1678;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)}));
 };
 };
 }
};
 };
 };
 //BA.debugLineNum = 1686;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 1687;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*/ (_job);
 //BA.debugLineNum = 1688;BA.debugLine="If RESULT.Tag = \"giro\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("giro"))) { 
 //BA.debugLineNum = 1689;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));
 //BA.debugLineNum = 1690;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"))))]);
 //BA.debugLineNum = 1692;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)}));
 }
};
 };
 };
 //BA.debugLineNum = 1698;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 1699;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*/ (_job);
 //BA.debugLineNum = 1700;BA.debugLine="If RESULT.Tag = \"select_abonosp\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("select_abonosp"))) { 
 //BA.debugLineNum = 1701;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");
 //BA.debugLineNum = 1702;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));
 //BA.debugLineNum = 1703;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"))))]);
 //BA.debugLineNum = 1704;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"))))]);
 //BA.debugLineNum = 1705;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"))))]);
 //BA.debugLineNum = 1707;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"))))]);
 //BA.debugLineNum = 1708;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)}));
 }
};
 };
 };
 //BA.debugLineNum = 1713;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 1714;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*/ (_job);
 //BA.debugLineNum = 1715;BA.debugLine="If RESULT.Tag = \"select_abonosp_todos\" Then 'qu";
if ((_result.Tag /*Object*/ ).equals((Object)("select_abonosp_todos"))) { 
 //BA.debugLineNum = 1716;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fr";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from ABONOSPTOD");
 //BA.debugLineNum = 1717;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group82 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen82 = group82.getSize()
;int index82 = 0;
;
for (; index82 < groupLen82;index82++){
_records = (Object[])(group82.Get(index82));
 //BA.debugLineNum = 1718;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"))))]);
 //BA.debugLineNum = 1719;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"))))]);
 //BA.debugLineNum = 1720;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"))))]);
 //BA.debugLineNum = 1722;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"))))]);
 //BA.debugLineNum = 1723;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO ABONO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO ABONOSPTOD(NOTA,CLIENTE,SALDO_PENDIENTE,FECHA) VALUES (?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_nota),(Object)(_cliente),(Object)(_saldo_pendiente),(Object)(_fecha_pagare)}));
 }
};
 };
 };
 //BA.debugLineNum = 1728;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 1729;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*/ (_job);
 //BA.debugLineNum = 1730;BA.debugLine="If result1.Tag = \"CHECAENCUESTA\" Then 'query ta";
if ((_result1.Tag /*Object*/ ).equals((Object)("CHECAENCUESTA"))) { 
 //BA.debugLineNum = 1731;BA.debugLine="For Each records() As Object In result1.Rows";
{
final anywheresoftware.b4a.BA.IterableList group94 = _result1.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen94 = group94.getSize()
;int index94 = 0;
;
for (; index94 < groupLen94;index94++){
_records = (Object[])(group94.Get(index94));
 //BA.debugLineNum = 1732;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"))))]);
 //BA.debugLineNum = 1733;BA.debugLine="Log(CUANTOSENCUESTA)";
__c.LogImpl("43997815",_cuantosencuesta,0);
 }
};
 //BA.debugLineNum = 1735;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
 //BA.debugLineNum = 1736;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
 //BA.debugLineNum = 1737;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
 //BA.debugLineNum = 1738;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
 //BA.debugLineNum = 1739;BA.debugLine="If CUANTOSENCUESTA = \"0\" Then";
if ((_cuantosencuesta).equals("0")) { 
 //BA.debugLineNum = 1740;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1741;BA.debugLine="cmd.Name =\"insert_drop_GV2_4\"";
_cmd.Name /*String*/  = "insert_drop_GV2_4";
 //BA.debugLineNum = 1742;BA.debugLine="cmd.Parameters = Array As Object(usuario,B4XP";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_usuario),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._principal /*gunav2.keymon.com.mx.c_principal*/ ._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(_sdate),(Object)(""),(Object)(_stime),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)("ENCUESTA"),(Object)(_almacen),(Object)(__c.Application.getVersionName()),(Object)(_starter._encuesta /*String*/ )};
 //BA.debugLineNum = 1743;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(c";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("inst_drop"));
 };
 };
 };
 //BA.debugLineNum = 1748;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 1749;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*/ (_job);
 //BA.debugLineNum = 1750;BA.debugLine="If RESULT.Tag = \"traeFechaFotosGuna\" Then 'quer";
if ((_result.Tag /*Object*/ ).equals((Object)("traeFechaFotosGuna"))) { 
 //BA.debugLineNum = 1751;BA.debugLine="Subs.logJobDoneResultados(RESULT)";
_subs._logjobdoneresultados /*String*/ (ba,_result);
 //BA.debugLineNum = 1753;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group114 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen114 = group114.getSize()
;int index114 = 0;
;
for (; index114 < groupLen114;index114++){
_records = (Object[])(group114.Get(index114));
 //BA.debugLineNum = 1754;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"))))]);
 //BA.debugLineNum = 1755;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"))))]);
 //BA.debugLineNum = 1756;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)(_fecha))+"'"))));
 //BA.debugLineNum = 1758;BA.debugLine="If f.RowCount = 0 Then";
if (_f.getRowCount()==0) { 
 //BA.debugLineNum = 1759;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1760;BA.debugLine="cmd.Name = \"traeFotoGuna\"";
_cmd.Name /*String*/  = "traeFotoGuna";
 //BA.debugLineNum = 1761;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText()),(Object)(_cliente)};
 //BA.debugLineNum = 1762;BA.debugLine="Log(\"BUSCAMOS FOTO: \" & ALMACEN &\"|\" & e_rut";
__c.LogImpl("43997844","BUSCAMOS FOTO: "+_almacen+"|"+_e_ruta.getText()+"|"+_cliente,0);
 //BA.debugLineNum = 1763;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)(("traeFotoGuna_"+__c.SmartStringFormatter("",(Object)(_cliente))+"")));
 //BA.debugLineNum = 1764;BA.debugLine="Log($\"==>>  traeFotoGuna_${CLIENTE}\"$)";
__c.LogImpl("43997846",("==>>  traeFotoGuna_"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0);
 };
 }
};
 };
 };
 //BA.debugLineNum = 1806;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 1807;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*/ (_job);
 //BA.debugLineNum = 1808;BA.debugLine="If RESULT.Tag.As(String).Contains(\"traeFotoGuna";
if ((BA.ObjectToString(_result.Tag /*Object*/ )).contains("traeFotoGuna_")) { 
 //BA.debugLineNum = 1809;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));
 //BA.debugLineNum = 1810;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"))))]);
 //BA.debugLineNum = 1811;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"))))]);
 //BA.debugLineNum = 1812;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"))))]);
 //BA.debugLineNum = 1813;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE from FOTOS";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("DELETE from FOTOS where CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_cliente))+"'"));
 //BA.debugLineNum = 1814;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)(_fecha)}));
 }
};
 };
 };
 //BA.debugLineNum = 1819;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 1820;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*/ (_job);
 //BA.debugLineNum = 1821;BA.debugLine="If RESULT.Tag.As(String).Contains(\"traecodigos\"";
if ((BA.ObjectToString(_result.Tag /*Object*/ )).contains("traecodigos")) { 
 //BA.debugLineNum = 1822;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group144 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen144 = group144.getSize()
;int index144 = 0;
;
for (; index144 < groupLen144;index144++){
_records = (Object[])(group144.Get(index144));
 //BA.debugLineNum = 1823;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"))))]);
 //BA.debugLineNum = 1824;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"))))]);
 //BA.debugLineNum = 1825;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"))))]);
 //BA.debugLineNum = 1827;BA.debugLine="If l_ruta.Text = \"0\" Then";
if ((_l_ruta.getText()).equals("0")) { 
 //BA.debugLineNum = 1828;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 {
 //BA.debugLineNum = 1830;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))+"' "))));
 //BA.debugLineNum = 1831;BA.debugLine="If hdsgf.RowCount = 0 Then";
if (_hdsgf.getRowCount()==0) { 
 //BA.debugLineNum = 1832;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 {
 };
 };
 }
};
 };
 };
 //BA.debugLineNum = 1844;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 1845;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*/ (_job);
 //BA.debugLineNum = 1846;BA.debugLine="If RESULT.Tag = \"kmt_datos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("kmt_datos"))) { 
 //BA.debugLineNum = 1847;BA.debugLine="S_CC.TEXT = \"CARGANDO\"";
_s_cc.setText(BA.ObjectToCharSequence("CARGANDO"));
 //BA.debugLineNum = 1848;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group164 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen164 = group164.getSize()
;int index164 = 0;
;
for (; index164 < groupLen164;index164++){
_records = (Object[])(group164.Get(index164));
 //BA.debugLineNum = 1849;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"))))]);
 //BA.debugLineNum = 1850;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"))))]);
 //BA.debugLineNum = 1851;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"))))]);
 //BA.debugLineNum = 1852;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"))))]);
 //BA.debugLineNum = 1853;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"))))]);
 //BA.debugLineNum = 1854;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"))))]);
 //BA.debugLineNum = 1855;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"))))]);
 //BA.debugLineNum = 1856;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"))))]);
 //BA.debugLineNum = 1857;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"))))]);
 //BA.debugLineNum = 1858;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"))))]);
 //BA.debugLineNum = 1859;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"))))]);
 //BA.debugLineNum = 1860;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"))))]);
 //BA.debugLineNum = 1861;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"))))]);
 //BA.debugLineNum = 1862;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"))))]);
 //BA.debugLineNum = 1863;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"))))]);
 //BA.debugLineNum = 1864;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"))))]);
 //BA.debugLineNum = 1865;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"))))]);
 //BA.debugLineNum = 1866;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"))))]);
 //BA.debugLineNum = 1867;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"))))]);
 //BA.debugLineNum = 1868;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"))))]);
 //BA.debugLineNum = 1869;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"))))]);
 //BA.debugLineNum = 1870;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"))))]);
 //BA.debugLineNum = 1871;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"))))]);
 //BA.debugLineNum = 1872;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"))))]);
 //BA.debugLineNum = 1873;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"))))]);
 //BA.debugLineNum = 1874;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"))))]);
 //BA.debugLineNum = 1875;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"))))]);
 //BA.debugLineNum = 1876;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"))))]);
 //BA.debugLineNum = 1877;BA.debugLine="Dim CAT_CL_CLASIFICADOR5 As String = records(";
_cat_cl_clasificador5 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CLASIFICADOR5"))))]);
 //BA.debugLineNum = 1878;BA.debugLine="Dim CAT_CL_ORDENVISITA As String = records(RE";
_cat_cl_ordenvisita = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_ORDENVISITA"))))]);
 //BA.debugLineNum = 1882;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"))))]);
 //BA.debugLineNum = 1883;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,CAT_CL_ORDENVISITA,CAT_CL_CLASIFICADOR5) 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),(Object)(_cat_cl_ordenvisita),(Object)(_cat_cl_clasificador5)}));
 //BA.debugLineNum = 1885;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)}));
 }
};
 //BA.debugLineNum = 1887;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)(_e_ruta.getText()),(Object)("ABORDO")}));
 //BA.debugLineNum = 1888;BA.debugLine="Listo1 = 1";
_listo1 = BA.NumberToString(1);
 //BA.debugLineNum = 1889;BA.debugLine="S_CC.Text = \"LISTO\"";
_s_cc.setText(BA.ObjectToCharSequence("LISTO"));
 //BA.debugLineNum = 1891;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((_listo1).equals(BA.NumberToString(1)) && (_listo2).equals(BA.NumberToString(1)) && (_listo3).equals(BA.NumberToString(1)) && (_listo4).equals(BA.NumberToString(1))) { 
 //BA.debugLineNum = 1893;BA.debugLine="img2.Visible=False";
_img2.setVisible(__c.False);
 //BA.debugLineNum = 1894;BA.debugLine="EJECUTANDO=0";
_ejecutando = BA.NumberToString(0);
 };
 };
 };
 //BA.debugLineNum = 1900;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 1901;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*/ (_job);
 //BA.debugLineNum = 1902;BA.debugLine="If RESULT.Tag = \"kmt_CAT_CATCLIENTESTODOS\" Then";
if ((_result.Tag /*Object*/ ).equals((Object)("kmt_CAT_CATCLIENTESTODOS"))) { 
 //BA.debugLineNum = 1904;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group211 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen211 = group211.getSize()
;int index211 = 0;
;
for (; index211 < groupLen211;index211++){
_records = (Object[])(group211.Get(index211));
 //BA.debugLineNum = 1905;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"))))]);
 //BA.debugLineNum = 1906;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"))))]);
 //BA.debugLineNum = 1907;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"))))]);
 //BA.debugLineNum = 1909;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"))))]);
 //BA.debugLineNum = 1910;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"))))]);
 //BA.debugLineNum = 1911;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"))))]);
 //BA.debugLineNum = 1912;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"))))]);
 //BA.debugLineNum = 1913;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"))))]);
 //BA.debugLineNum = 1914;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"))))]);
 //BA.debugLineNum = 1915;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"))))]);
 //BA.debugLineNum = 1916;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"))))]);
 //BA.debugLineNum = 1917;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"))))]);
 //BA.debugLineNum = 1918;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"))))]);
 //BA.debugLineNum = 1919;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"))))]);
 //BA.debugLineNum = 1920;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"))))]);
 //BA.debugLineNum = 1921;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"))))]);
 //BA.debugLineNum = 1922;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"))))]);
 //BA.debugLineNum = 1923;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"))))]);
 //BA.debugLineNum = 1924;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"))))]);
 //BA.debugLineNum = 1925;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"))))]);
 //BA.debugLineNum = 1926;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"))))]);
 //BA.debugLineNum = 1927;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"))))]);
 //BA.debugLineNum = 1928;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"))))]);
 //BA.debugLineNum = 1929;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"))))]);
 //BA.debugLineNum = 1930;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"))))]);
 //BA.debugLineNum = 1931;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"))))]);
 //BA.debugLineNum = 1932;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"))))]);
 //BA.debugLineNum = 1933;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"))))]);
 //BA.debugLineNum = 1934;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"))))]);
 //BA.debugLineNum = 1939;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"))))]);
 //BA.debugLineNum = 1940;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)}));
 //BA.debugLineNum = 1942;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)}));
 }
};
 };
 };
 //BA.debugLineNum = 1949;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 1950;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*/ (_job);
 //BA.debugLineNum = 1951;BA.debugLine="If RESULT.Tag = \"kmt_datos2\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("kmt_datos2"))) { 
 //BA.debugLineNum = 1952;BA.debugLine="S_CC.TEXT = \"CARGANDO\"";
_s_cc.setText(BA.ObjectToCharSequence("CARGANDO"));
 //BA.debugLineNum = 1953;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group251 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen251 = group251.getSize()
;int index251 = 0;
;
for (; index251 < groupLen251;index251++){
_records = (Object[])(group251.Get(index251));
 //BA.debugLineNum = 1954;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"))))]);
 //BA.debugLineNum = 1955;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"))))]);
 //BA.debugLineNum = 1956;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"))))]);
 //BA.debugLineNum = 1957;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"))))]);
 //BA.debugLineNum = 1958;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"))))]);
 //BA.debugLineNum = 1959;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"))))]);
 //BA.debugLineNum = 1960;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"))))]);
 //BA.debugLineNum = 1961;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"))))]);
 //BA.debugLineNum = 1962;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"))))]);
 //BA.debugLineNum = 1963;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"))))]);
 //BA.debugLineNum = 1964;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"))))]);
 //BA.debugLineNum = 1965;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"))))]);
 //BA.debugLineNum = 1966;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"))))]);
 //BA.debugLineNum = 1967;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"))))]);
 //BA.debugLineNum = 1968;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"))))]);
 //BA.debugLineNum = 1969;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"))))]);
 //BA.debugLineNum = 1970;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"))))]);
 //BA.debugLineNum = 1971;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"))))]);
 //BA.debugLineNum = 1972;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"))))]);
 //BA.debugLineNum = 1973;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"))))]);
 //BA.debugLineNum = 1974;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"))))]);
 //BA.debugLineNum = 1975;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"))))]);
 //BA.debugLineNum = 1978;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"))))]);
 //BA.debugLineNum = 1979;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)}));
 //BA.debugLineNum = 1982;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)}));
 }
};
 //BA.debugLineNum = 1984;BA.debugLine="Listo1 = 1";
_listo1 = BA.NumberToString(1);
 //BA.debugLineNum = 1985;BA.debugLine="S_CC.Text = \"LISTO\"";
_s_cc.setText(BA.ObjectToCharSequence("LISTO"));
 //BA.debugLineNum = 1987;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((_listo1).equals(BA.NumberToString(1)) && (_listo2).equals(BA.NumberToString(1)) && (_listo3).equals(BA.NumberToString(1)) && (_listo4).equals(BA.NumberToString(1))) { 
 //BA.debugLineNum = 1989;BA.debugLine="img2.Visible=False";
_img2.setVisible(__c.False);
 //BA.debugLineNum = 1990;BA.debugLine="EJECUTANDO=0";
_ejecutando = BA.NumberToString(0);
 };
 };
 };
 //BA.debugLineNum = 2054;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2055;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*/ (_job);
 //BA.debugLineNum = 2056;BA.debugLine="If RESULT.Tag = \"hist_promos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_promos"))) { 
 //BA.debugLineNum = 2057;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group289 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen289 = group289.getSize()
;int index289 = 0;
;
for (; index289 < groupLen289;index289++){
_records = (Object[])(group289.Get(index289));
 //BA.debugLineNum = 2058;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"))))]);
 //BA.debugLineNum = 2059;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"))))]);
 //BA.debugLineNum = 2060;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)}));
 }
};
 //BA.debugLineNum = 2063;BA.debugLine="If PB1.Progress = 0 Then";
if (_pb1.getProgress()==0) { 
 //BA.debugLineNum = 2064;BA.debugLine="PB1.Progress = 30";
_pb1.setProgress((int) (30));
 //BA.debugLineNum = 2065;BA.debugLine="S_CH.Text = \"CARGANDO\"";
_s_ch.setText(BA.ObjectToCharSequence("CARGANDO"));
 }else if(_pb1.getProgress()==30) { 
 //BA.debugLineNum = 2067;BA.debugLine="PB1.Progress = 60";
_pb1.setProgress((int) (60));
 }else if(_pb1.getProgress()==60) { 
 //BA.debugLineNum = 2069;BA.debugLine="PB1.Progress = 100";
_pb1.setProgress((int) (100));
 //BA.debugLineNum = 2070;BA.debugLine="S_CH.Text = \"LISTO\"";
_s_ch.setText(BA.ObjectToCharSequence("LISTO"));
 };
 };
 };
 //BA.debugLineNum = 2075;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2076;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*/ (_job);
 //BA.debugLineNum = 2077;BA.debugLine="If RESULT.Tag = \"histespecial\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("histespecial"))) { 
 //BA.debugLineNum = 2078;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group308 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen308 = group308.getSize()
;int index308 = 0;
;
for (; index308 < groupLen308;index308++){
_records = (Object[])(group308.Get(index308));
 //BA.debugLineNum = 2079;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"))))]);
 //BA.debugLineNum = 2080;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"))))]);
 //BA.debugLineNum = 2081;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)}));
 }
};
 //BA.debugLineNum = 2084;BA.debugLine="If PB1.Progress = 0 Then";
if (_pb1.getProgress()==0) { 
 //BA.debugLineNum = 2085;BA.debugLine="PB1.Progress = 30";
_pb1.setProgress((int) (30));
 //BA.debugLineNum = 2086;BA.debugLine="S_CH.Text = \"CARGANDO\"";
_s_ch.setText(BA.ObjectToCharSequence("CARGANDO"));
 }else if(_pb1.getProgress()==30) { 
 //BA.debugLineNum = 2088;BA.debugLine="PB1.Progress = 60";
_pb1.setProgress((int) (60));
 }else if(_pb1.getProgress()==60) { 
 //BA.debugLineNum = 2090;BA.debugLine="PB1.Progress = 100";
_pb1.setProgress((int) (100));
 //BA.debugLineNum = 2091;BA.debugLine="S_CH.Text = \"LISTO\"";
_s_ch.setText(BA.ObjectToCharSequence("LISTO"));
 };
 };
 };
 //BA.debugLineNum = 2096;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2097;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*/ (_job);
 //BA.debugLineNum = 2098;BA.debugLine="If RESULT.Tag = \"hist_cliente_promos\" Then 'que";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_cliente_promos"))) { 
 //BA.debugLineNum = 2099;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group327 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen327 = group327.getSize()
;int index327 = 0;
;
for (; index327 < groupLen327;index327++){
_records = (Object[])(group327.Get(index327));
 //BA.debugLineNum = 2100;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"))))]);
 //BA.debugLineNum = 2101;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"))))]);
 //BA.debugLineNum = 2102;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"))))]);
 //BA.debugLineNum = 2103;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)}));
 }
};
 };
 };
 //BA.debugLineNum = 2109;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2110;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*/ (_job);
 //BA.debugLineNum = 2111;BA.debugLine="If RESULT.Tag = \"promodesp\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("promodesp"))) { 
 //BA.debugLineNum = 2112;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group338 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen338 = group338.getSize()
;int index338 = 0;
;
for (; index338 < groupLen338;index338++){
_records = (Object[])(group338.Get(index338));
 //BA.debugLineNum = 2113;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"))))]);
 //BA.debugLineNum = 2114;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"))))]);
 //BA.debugLineNum = 2115;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"))))]);
 //BA.debugLineNum = 2116;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"))))]);
 //BA.debugLineNum = 2117;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"))))]);
 //BA.debugLineNum = 2118;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"))))]);
 //BA.debugLineNum = 2119;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"))))]);
 //BA.debugLineNum = 2120;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"))))]);
 //BA.debugLineNum = 2121;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)}));
 }
};
 };
 };
 //BA.debugLineNum = 2126;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2127;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*/ (_job);
 //BA.debugLineNum = 2128;BA.debugLine="If RESULT.Tag = \"HIST_PROM\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("HIST_PROM"))) { 
 //BA.debugLineNum = 2130;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group354 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen354 = group354.getSize()
;int index354 = 0;
;
for (; index354 < groupLen354;index354++){
_records = (Object[])(group354.Get(index354));
 //BA.debugLineNum = 2131;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"))))]);
 //BA.debugLineNum = 2132;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)}));
 }
};
 };
 };
 //BA.debugLineNum = 2138;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2139;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*/ (_job);
 //BA.debugLineNum = 2140;BA.debugLine="If RESULT.Tag = \"HIST_MARCAS_CUOTAS\" Then 'quer";
if ((_result.Tag /*Object*/ ).equals((Object)("HIST_MARCAS_CUOTAS"))) { 
 //BA.debugLineNum = 2141;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group363 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen363 = group363.getSize()
;int index363 = 0;
;
for (; index363 < groupLen363;index363++){
_records = (Object[])(group363.Get(index363));
 //BA.debugLineNum = 2142;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"))))]);
 //BA.debugLineNum = 2143;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"))))]);
 //BA.debugLineNum = 2144;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)}));
 }
};
 };
 };
 //BA.debugLineNum = 2150;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2151;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*/ (_job);
 //BA.debugLineNum = 2152;BA.debugLine="If RESULT.Tag = \"coordenadas\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("coordenadas"))) { 
 //BA.debugLineNum = 2153;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group373 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen373 = group373.getSize()
;int index373 = 0;
;
for (; index373 < groupLen373;index373++){
_records = (Object[])(group373.Get(index373));
 //BA.debugLineNum = 2154;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"))))]);
 //BA.debugLineNum = 2155;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"))))]);
 //BA.debugLineNum = 2156;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"))))]);
 //BA.debugLineNum = 2157;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)}));
 //BA.debugLineNum = 2158;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)}));
 //BA.debugLineNum = 2159;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)}));
 }
};
 };
 };
 //BA.debugLineNum = 2165;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2166;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*/ (_job);
 //BA.debugLineNum = 2167;BA.debugLine="If RESULT.Tag = \"password\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("password"))) { 
 //BA.debugLineNum = 2168;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group386 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen386 = group386.getSize()
;int index386 = 0;
;
for (; index386 < groupLen386;index386++){
_records = (Object[])(group386.Get(index386));
 //BA.debugLineNum = 2169;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"))))]);
 //BA.debugLineNum = 2170;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)}));
 }
};
 };
 };
 //BA.debugLineNum = 2176;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2177;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*/ (_job);
 //BA.debugLineNum = 2178;BA.debugLine="If RESULT.Tag = \"KMT_VENTAFUTURA\" Then 'query t";
if ((_result.Tag /*Object*/ ).equals((Object)("KMT_VENTAFUTURA"))) { 
 //BA.debugLineNum = 2179;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group395 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen395 = group395.getSize()
;int index395 = 0;
;
for (; index395 < groupLen395;index395++){
_records = (Object[])(group395.Get(index395));
 //BA.debugLineNum = 2180;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"))))]);
 //BA.debugLineNum = 2181;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)}));
 }
};
 };
 };
 //BA.debugLineNum = 2188;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2189;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*/ (_job);
 //BA.debugLineNum = 2190;BA.debugLine="If RESULT.Tag = \"hist_comp_promos\" Then 'query";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_comp_promos"))) { 
 //BA.debugLineNum = 2191;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group404 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen404 = group404.getSize()
;int index404 = 0;
;
for (; index404 < groupLen404;index404++){
_records = (Object[])(group404.Get(index404));
 //BA.debugLineNum = 2192;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"))))]);
 //BA.debugLineNum = 2193;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"))))]);
 //BA.debugLineNum = 2194;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"))))]);
 //BA.debugLineNum = 2195;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"))))]);
 //BA.debugLineNum = 2196;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)}));
 }
};
 //BA.debugLineNum = 2198;BA.debugLine="If PB1.Progress = 0 Then";
if (_pb1.getProgress()==0) { 
 //BA.debugLineNum = 2199;BA.debugLine="PB1.Progress = 30";
_pb1.setProgress((int) (30));
 //BA.debugLineNum = 2200;BA.debugLine="S_CH.Text = \"CARGANDO\"";
_s_ch.setText(BA.ObjectToCharSequence("CARGANDO"));
 }else if(_pb1.getProgress()==30) { 
 //BA.debugLineNum = 2202;BA.debugLine="PB1.Progress = 60";
_pb1.setProgress((int) (60));
 }else if(_pb1.getProgress()==60) { 
 //BA.debugLineNum = 2204;BA.debugLine="PB1.Progress = 100";
_pb1.setProgress((int) (100));
 //BA.debugLineNum = 2205;BA.debugLine="S_CH.Text = \"LISTO\"";
_s_ch.setText(BA.ObjectToCharSequence("LISTO"));
 };
 };
 };
 //BA.debugLineNum = 2222;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2223;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*/ (_job);
 //BA.debugLineNum = 2224;BA.debugLine="If RESULT.Tag = \"marcas_rutas\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("marcas_rutas"))) { 
 //BA.debugLineNum = 2225;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group425 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen425 = group425.getSize()
;int index425 = 0;
;
for (; index425 < groupLen425;index425++){
_records = (Object[])(group425.Get(index425));
 //BA.debugLineNum = 2226;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"))))]);
 //BA.debugLineNum = 2227;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"))))]);
 //BA.debugLineNum = 2228;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)}));
 }
};
 };
 };
 //BA.debugLineNum = 2257;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2258;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*/ (_job);
 //BA.debugLineNum = 2259;BA.debugLine="If RESULT.Tag = \"COMISIONES\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("COMISIONES"))) { 
 //BA.debugLineNum = 2260;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group435 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen435 = group435.getSize()
;int index435 = 0;
;
for (; index435 < groupLen435;index435++){
_records = (Object[])(group435.Get(index435));
 //BA.debugLineNum = 2261;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"))))]);
 //BA.debugLineNum = 2262;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"))))]);
 //BA.debugLineNum = 2263;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"))))]);
 //BA.debugLineNum = 2264;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"))))]);
 //BA.debugLineNum = 2265;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)}));
 }
};
 };
 };
 //BA.debugLineNum = 2270;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2271;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*/ (_job);
 //BA.debugLineNum = 2272;BA.debugLine="If RESULT.Tag = \"ENCUESTA_CLIENTE\" Then 'query";
if ((_result.Tag /*Object*/ ).equals((Object)("ENCUESTA_CLIENTE"))) { 
 //BA.debugLineNum = 2273;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group447 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen447 = group447.getSize()
;int index447 = 0;
;
for (; index447 < groupLen447;index447++){
_records = (Object[])(group447.Get(index447));
 //BA.debugLineNum = 2274;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"))))]);
 //BA.debugLineNum = 2275;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"))))]);
 //BA.debugLineNum = 2276;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)}));
 }
};
 };
 };
 //BA.debugLineNum = 2281;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2282;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*/ (_job);
 //BA.debugLineNum = 2283;BA.debugLine="If RESULT.Tag = \"promoesp\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("promoesp"))) { 
 //BA.debugLineNum = 2284;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");
 //BA.debugLineNum = 2285;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group458 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen458 = group458.getSize()
;int index458 = 0;
;
for (; index458 < groupLen458;index458++){
_records = (Object[])(group458.Get(index458));
 //BA.debugLineNum = 2286;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"))))]);
 //BA.debugLineNum = 2287;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"))))]);
 //BA.debugLineNum = 2288;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"))))]);
 //BA.debugLineNum = 2289;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)}));
 }
};
 };
 };
 //BA.debugLineNum = 2295;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2296;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*/ (_job);
 //BA.debugLineNum = 2297;BA.debugLine="If RESULT.Tag = \"HIST_ENCUESTA2\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("HIST_ENCUESTA2"))) { 
 //BA.debugLineNum = 2298;BA.debugLine="B4XPages.MainPage.skmt.BeginTransaction";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction();
 //BA.debugLineNum = 2299;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group470 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen470 = group470.getSize()
;int index470 = 0;
;
for (; index470 < groupLen470;index470++){
_records = (Object[])(group470.Get(index470));
 //BA.debugLineNum = 2300;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"))))]);
 //BA.debugLineNum = 2301;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)}));
 }
};
 //BA.debugLineNum = 2303;BA.debugLine="B4XPages.MainPage.skmt.TransactionSuccessful";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful();
 //BA.debugLineNum = 2304;BA.debugLine="B4XPages.MainPage.skmt.EndTransaction";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction();
 };
 };
 //BA.debugLineNum = 2308;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2309;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*/ (_job);
 //BA.debugLineNum = 2310;BA.debugLine="If RESULT.Tag = \"gunaprod\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprod"))) { 
 //BA.debugLineNum = 2311;BA.debugLine="If PB2.Progress < 30 Then S_CP.Text = \"CARGAND";
if (_pb2.getProgress()<30) { 
_s_cp.setText(BA.ObjectToCharSequence("CARGANDO"));};
 //BA.debugLineNum = 2312;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group482 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen482 = group482.getSize()
;int index482 = 0;
;
for (; index482 < groupLen482;index482++){
_records = (Object[])(group482.Get(index482));
 //BA.debugLineNum = 2313;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"))))]);
 //BA.debugLineNum = 2314;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"))))]);
 //BA.debugLineNum = 2315;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"))))]);
 //BA.debugLineNum = 2316;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"))))]);
 //BA.debugLineNum = 2317;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"))))]);
 //BA.debugLineNum = 2318;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"))))]);
 //BA.debugLineNum = 2319;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"))))]);
 //BA.debugLineNum = 2320;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"))))]);
 //BA.debugLineNum = 2321;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"))))]);
 //BA.debugLineNum = 2322;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"))))]);
 //BA.debugLineNum = 2323;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"))))]));
 //BA.debugLineNum = 2324;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"))))]);
 //BA.debugLineNum = 2325;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"))))]));
 //BA.debugLineNum = 2326;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"))))]));
 //BA.debugLineNum = 2327;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"))))]);
 //BA.debugLineNum = 2328;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"))))]);
 //BA.debugLineNum = 2329;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"))))]);
 //BA.debugLineNum = 2333;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)}));
 }
};
 //BA.debugLineNum = 2335;BA.debugLine="Listo2=1";
_listo2 = BA.NumberToString(1);
 //BA.debugLineNum = 2336;BA.debugLine="If PB2.Progress = 0 Then";
if (_pb2.getProgress()==0) { 
 //BA.debugLineNum = 2337;BA.debugLine="PB2.Progress = 30";
_pb2.setProgress((int) (30));
 //BA.debugLineNum = 2338;BA.debugLine="S_CP.Text = \"CARGANDO\"";
_s_cp.setText(BA.ObjectToCharSequence("CARGANDO"));
 }else if(_pb2.getProgress()==30) { 
 //BA.debugLineNum = 2340;BA.debugLine="PB2.Progress = 60";
_pb2.setProgress((int) (60));
 }else if(_pb2.getProgress()==60) { 
 //BA.debugLineNum = 2342;BA.debugLine="PB2.Progress = 100";
_pb2.setProgress((int) (100));
 //BA.debugLineNum = 2343;BA.debugLine="S_CP.Text = \"LISTO\"";
_s_cp.setText(BA.ObjectToCharSequence("LISTO"));
 };
 //BA.debugLineNum = 2346;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((_listo1).equals(BA.NumberToString(1)) && (_listo2).equals(BA.NumberToString(1)) && (_listo3).equals(BA.NumberToString(1)) && (_listo4).equals(BA.NumberToString(1))) { 
 //BA.debugLineNum = 2348;BA.debugLine="img2.Visible=False";
_img2.setVisible(__c.False);
 //BA.debugLineNum = 2349;BA.debugLine="EJECUTANDO=0";
_ejecutando = BA.NumberToString(0);
 };
 };
 };
 //BA.debugLineNum = 2354;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2355;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*/ (_job);
 //BA.debugLineNum = 2356;BA.debugLine="If RESULT.Tag = \"gunaprod2\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprod2"))) { 
 //BA.debugLineNum = 2357;BA.debugLine="If PB2.Progress < 30 Then S_CP.Text = \"CARGAND";
if (_pb2.getProgress()<30) { 
_s_cp.setText(BA.ObjectToCharSequence("CARGANDO"));};
 //BA.debugLineNum = 2358;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group522 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen522 = group522.getSize()
;int index522 = 0;
;
for (; index522 < groupLen522;index522++){
_records = (Object[])(group522.Get(index522));
 //BA.debugLineNum = 2359;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"))))]);
 //BA.debugLineNum = 2360;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"))))]);
 //BA.debugLineNum = 2361;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"))))]);
 //BA.debugLineNum = 2362;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"))))]);
 //BA.debugLineNum = 2363;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"))))]);
 //BA.debugLineNum = 2364;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"))))]);
 //BA.debugLineNum = 2365;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"))))]);
 //BA.debugLineNum = 2366;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"))))]);
 //BA.debugLineNum = 2367;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"))))]);
 //BA.debugLineNum = 2368;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"))))]);
 //BA.debugLineNum = 2369;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"))))]));
 //BA.debugLineNum = 2371;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"))))]));
 //BA.debugLineNum = 2372;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"))))]));
 //BA.debugLineNum = 2373;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"))))]);
 //BA.debugLineNum = 2376;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)}));
 }
};
 //BA.debugLineNum = 2378;BA.debugLine="Listo2=1";
_listo2 = BA.NumberToString(1);
 //BA.debugLineNum = 2379;BA.debugLine="If PB2.Progress = 0 Then";
if (_pb2.getProgress()==0) { 
 //BA.debugLineNum = 2380;BA.debugLine="PB2.Progress = 30";
_pb2.setProgress((int) (30));
 //BA.debugLineNum = 2381;BA.debugLine="S_CP.Text = \"CARGANDO\"";
_s_cp.setText(BA.ObjectToCharSequence("CARGANDO"));
 }else if(_pb2.getProgress()==30) { 
 //BA.debugLineNum = 2383;BA.debugLine="PB2.Progress = 60";
_pb2.setProgress((int) (60));
 }else if(_pb2.getProgress()==60) { 
 //BA.debugLineNum = 2385;BA.debugLine="PB2.Progress = 100";
_pb2.setProgress((int) (100));
 //BA.debugLineNum = 2386;BA.debugLine="S_CP.Text = \"LISTO\"";
_s_cp.setText(BA.ObjectToCharSequence("LISTO"));
 };
 //BA.debugLineNum = 2389;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((_listo1).equals(BA.NumberToString(1)) && (_listo2).equals(BA.NumberToString(1)) && (_listo3).equals(BA.NumberToString(1)) && (_listo4).equals(BA.NumberToString(1))) { 
 //BA.debugLineNum = 2391;BA.debugLine="img2.Visible=False";
_img2.setVisible(__c.False);
 //BA.debugLineNum = 2392;BA.debugLine="EJECUTANDO=0";
_ejecutando = BA.NumberToString(0);
 };
 };
 };
 //BA.debugLineNum = 2397;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2398;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*/ (_job);
 //BA.debugLineNum = 2399;BA.debugLine="If RESULT.Tag = \"gunaprodp\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprodp"))) { 
 //BA.debugLineNum = 2400;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group558 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen558 = group558.getSize()
;int index558 = 0;
;
for (; index558 < groupLen558;index558++){
_records = (Object[])(group558.Get(index558));
 //BA.debugLineNum = 2401;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"))))]);
 //BA.debugLineNum = 2402;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"))))]);
 //BA.debugLineNum = 2403;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"))))]);
 //BA.debugLineNum = 2404;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"))))]);
 //BA.debugLineNum = 2405;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"))))]);
 //BA.debugLineNum = 2406;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"))))]);
 //BA.debugLineNum = 2407;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"))))]);
 //BA.debugLineNum = 2408;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"))))]);
 //BA.debugLineNum = 2409;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"))))]);
 //BA.debugLineNum = 2410;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"))))]);
 //BA.debugLineNum = 2411;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"))))]));
 //BA.debugLineNum = 2412;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"))))]));
 //BA.debugLineNum = 2413;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"))))]);
 //BA.debugLineNum = 2414;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"))))]);
 //BA.debugLineNum = 2415;BA.debugLine="CAT_GP_TIPOPROD = \"5\"";
_cat_gp_tipoprod = (int)(Double.parseDouble("5"));
 //BA.debugLineNum = 2416;BA.debugLine="If CAT_GP_ID = \"PAQUNI003\" Then";
if ((_cat_gp_id).equals("PAQUNI003")) { 
 //BA.debugLineNum = 2417;BA.debugLine="CAT_GP_ALMACEN = 60";
_cat_gp_almacen = (int) (60);
 };
 //BA.debugLineNum = 2419;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)}));
 //BA.debugLineNum = 2423;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)}));
 }
};
 //BA.debugLineNum = 2426;BA.debugLine="If PB2.Progress = 0 Then";
if (_pb2.getProgress()==0) { 
 //BA.debugLineNum = 2427;BA.debugLine="PB2.Progress = 30";
_pb2.setProgress((int) (30));
 //BA.debugLineNum = 2428;BA.debugLine="S_CP.Text = \"CARGANDO\"";
_s_cp.setText(BA.ObjectToCharSequence("CARGANDO"));
 }else if(_pb2.getProgress()==30) { 
 //BA.debugLineNum = 2430;BA.debugLine="PB2.Progress = 60";
_pb2.setProgress((int) (60));
 }else if(_pb2.getProgress()==60) { 
 //BA.debugLineNum = 2432;BA.debugLine="PB2.Progress = 100";
_pb2.setProgress((int) (100));
 //BA.debugLineNum = 2433;BA.debugLine="S_CP.Text = \"LISTO\"";
_s_cp.setText(BA.ObjectToCharSequence("LISTO"));
 };
 //BA.debugLineNum = 2436;BA.debugLine="Listo4=1";
_listo4 = BA.NumberToString(1);
 //BA.debugLineNum = 2437;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((_listo1).equals(BA.NumberToString(1)) && (_listo2).equals(BA.NumberToString(1)) && (_listo3).equals(BA.NumberToString(1)) && (_listo4).equals(BA.NumberToString(1))) { 
 //BA.debugLineNum = 2439;BA.debugLine="img2.Visible=False";
_img2.setVisible(__c.False);
 //BA.debugLineNum = 2440;BA.debugLine="EJECUTANDO=0";
_ejecutando = BA.NumberToString(0);
 }else if((_listo4).equals(BA.NumberToString(1)) && (_listo3).equals(BA.NumberToString(1)) && (_inve).equals(BA.NumberToString(1))) { 
 //BA.debugLineNum = 2443;BA.debugLine="img2.Visible=False";
_img2.setVisible(__c.False);
 //BA.debugLineNum = 2444;BA.debugLine="EJECUTANDO=0";
_ejecutando = BA.NumberToString(0);
 };
 };
 };
 //BA.debugLineNum = 2449;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2450;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*/ (_job);
 //BA.debugLineNum = 2451;BA.debugLine="If RESULT.Tag = \"gunaprodps\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("gunaprodps"))) { 
 //BA.debugLineNum = 2452;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group602 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen602 = group602.getSize()
;int index602 = 0;
;
for (; index602 < groupLen602;index602++){
_records = (Object[])(group602.Get(index602));
 //BA.debugLineNum = 2453;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"))))]);
 //BA.debugLineNum = 2454;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"))))]);
 //BA.debugLineNum = 2455;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"))))]);
 //BA.debugLineNum = 2456;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"))))]);
 //BA.debugLineNum = 2457;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"))))]);
 //BA.debugLineNum = 2458;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"))))]);
 //BA.debugLineNum = 2459;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"))))]);
 //BA.debugLineNum = 2460;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"))))]);
 //BA.debugLineNum = 2461;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"))))]);
 //BA.debugLineNum = 2462;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"))))]);
 //BA.debugLineNum = 2463;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"))))]));
 //BA.debugLineNum = 2464;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"))))]));
 //BA.debugLineNum = 2465;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)}));
 }
};
 //BA.debugLineNum = 2467;BA.debugLine="If PB2.Progress = 0 Then";
if (_pb2.getProgress()==0) { 
 //BA.debugLineNum = 2468;BA.debugLine="PB2.Progress = 30";
_pb2.setProgress((int) (30));
 //BA.debugLineNum = 2469;BA.debugLine="S_CP.Text = \"CARGANDO\"";
_s_cp.setText(BA.ObjectToCharSequence("CARGANDO"));
 }else if(_pb2.getProgress()==30) { 
 //BA.debugLineNum = 2472;BA.debugLine="PB2.Progress = 60";
_pb2.setProgress((int) (60));
 }else if(_pb2.getProgress()==60) { 
 //BA.debugLineNum = 2474;BA.debugLine="PB2.Progress = 100";
_pb2.setProgress((int) (100));
 //BA.debugLineNum = 2475;BA.debugLine="S_CP.Text = \"LISTO\"";
_s_cp.setText(BA.ObjectToCharSequence("LISTO"));
 };
 //BA.debugLineNum = 2479;BA.debugLine="Listo4=1";
_listo4 = BA.NumberToString(1);
 //BA.debugLineNum = 2480;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((_listo1).equals(BA.NumberToString(1)) && (_listo2).equals(BA.NumberToString(1)) && (_listo3).equals(BA.NumberToString(1)) && (_listo4).equals(BA.NumberToString(1))) { 
 //BA.debugLineNum = 2482;BA.debugLine="img2.Visible=False";
_img2.setVisible(__c.False);
 //BA.debugLineNum = 2483;BA.debugLine="EJECUTANDO=0";
_ejecutando = BA.NumberToString(0);
 }else if((_listo4).equals(BA.NumberToString(1)) && (_listo3).equals(BA.NumberToString(1)) && (_inve).equals(BA.NumberToString(1))) { 
 //BA.debugLineNum = 2486;BA.debugLine="img2.Visible=False";
_img2.setVisible(__c.False);
 //BA.debugLineNum = 2487;BA.debugLine="EJECUTANDO=0";
_ejecutando = BA.NumberToString(0);
 };
 };
 };
 //BA.debugLineNum = 2492;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2493;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*/ (_job);
 //BA.debugLineNum = 2494;BA.debugLine="If RESULT.Tag = \"detallepaq\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("detallepaq"))) { 
 //BA.debugLineNum = 2495;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group639 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen639 = group639.getSize()
;int index639 = 0;
;
for (; index639 < groupLen639;index639++){
_records = (Object[])(group639.Get(index639));
 //BA.debugLineNum = 2496;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"))))]);
 //BA.debugLineNum = 2497;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"))))]);
 //BA.debugLineNum = 2498;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"))))]);
 //BA.debugLineNum = 2499;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"))))]);
 //BA.debugLineNum = 2500;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"))))]);
 //BA.debugLineNum = 2501;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"))))]);
 //BA.debugLineNum = 2502;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"))))]);
 //BA.debugLineNum = 2503;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"))))]);
 //BA.debugLineNum = 2504;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"))))]);
 //BA.debugLineNum = 2505;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"))))]);
 //BA.debugLineNum = 2506;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"))))]);
 //BA.debugLineNum = 2507;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)}));
 }
};
 //BA.debugLineNum = 2509;BA.debugLine="If PB2.Progress = 0 Then";
if (_pb2.getProgress()==0) { 
 //BA.debugLineNum = 2510;BA.debugLine="PB2.Progress = 30";
_pb2.setProgress((int) (30));
 //BA.debugLineNum = 2511;BA.debugLine="S_CP.Text = \"CARGANDO\"";
_s_cp.setText(BA.ObjectToCharSequence("CARGANDO"));
 }else if(_pb2.getProgress()==30) { 
 //BA.debugLineNum = 2513;BA.debugLine="PB2.Progress = 60";
_pb2.setProgress((int) (60));
 }else if(_pb2.getProgress()==60) { 
 //BA.debugLineNum = 2515;BA.debugLine="PB2.Progress = 100";
_pb2.setProgress((int) (100));
 //BA.debugLineNum = 2516;BA.debugLine="S_CP.Text = \"LISTO\"";
_s_cp.setText(BA.ObjectToCharSequence("LISTO"));
 };
 //BA.debugLineNum = 2518;BA.debugLine="Listo3 =1";
_listo3 = BA.NumberToString(1);
 //BA.debugLineNum = 2519;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((_listo1).equals(BA.NumberToString(1)) && (_listo2).equals(BA.NumberToString(1)) && (_listo3).equals(BA.NumberToString(1)) && (_listo4).equals(BA.NumberToString(1))) { 
 //BA.debugLineNum = 2521;BA.debugLine="img2.Visible=False";
_img2.setVisible(__c.False);
 //BA.debugLineNum = 2522;BA.debugLine="EJECUTANDO=0";
_ejecutando = BA.NumberToString(0);
 }else if((_listo4).equals(BA.NumberToString(1)) && (_listo3).equals(BA.NumberToString(1)) && (_inve).equals(BA.NumberToString(1))) { 
 //BA.debugLineNum = 2525;BA.debugLine="img2.Visible=False";
_img2.setVisible(__c.False);
 //BA.debugLineNum = 2526;BA.debugLine="EJECUTANDO=0";
_ejecutando = BA.NumberToString(0);
 };
 };
 };
 //BA.debugLineNum = 2531;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2532;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*/ (_job);
 //BA.debugLineNum = 2533;BA.debugLine="If RESULT.Tag = \"hist_datos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_datos"))) { 
 //BA.debugLineNum = 2534;BA.debugLine="Dim cont As Int = 0";
_cont = (int) (0);
 //BA.debugLineNum = 2535;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group676 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen676 = group676.getSize()
;int index676 = 0;
;
for (; index676 < groupLen676;index676++){
_records = (Object[])(group676.Get(index676));
 //BA.debugLineNum = 2536;BA.debugLine="cont = cont +1";
_cont = (int) (_cont+1);
 //BA.debugLineNum = 2537;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"))))]);
 //BA.debugLineNum = 2538;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"))))]);
 //BA.debugLineNum = 2539;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"))))]);
 //BA.debugLineNum = 2540;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"))))]);
 //BA.debugLineNum = 2541;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"))))]);
 //BA.debugLineNum = 2543;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)}));
 }
};
 //BA.debugLineNum = 2545;BA.debugLine="Listo3 =1";
_listo3 = BA.NumberToString(1);
 //BA.debugLineNum = 2546;BA.debugLine="If PB1.Progress = 0 Then";
if (_pb1.getProgress()==0) { 
 //BA.debugLineNum = 2547;BA.debugLine="PB1.Progress = 30";
_pb1.setProgress((int) (30));
 //BA.debugLineNum = 2548;BA.debugLine="S_CH.Text = \"CARGANDO\"";
_s_ch.setText(BA.ObjectToCharSequence("CARGANDO"));
 }else if(_pb1.getProgress()==30) { 
 //BA.debugLineNum = 2550;BA.debugLine="PB1.Progress = 60";
_pb1.setProgress((int) (60));
 }else if(_pb1.getProgress()==60) { 
 //BA.debugLineNum = 2552;BA.debugLine="PB1.Progress = 100";
_pb1.setProgress((int) (100));
 //BA.debugLineNum = 2553;BA.debugLine="S_CH.Text = \"LISTO\"";
_s_ch.setText(BA.ObjectToCharSequence("LISTO"));
 };
 //BA.debugLineNum = 2556;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
if ((_listo1).equals(BA.NumberToString(1)) && (_listo2).equals(BA.NumberToString(1)) && (_listo3).equals(BA.NumberToString(1)) && (_listo4).equals(BA.NumberToString(1))) { 
 //BA.debugLineNum = 2558;BA.debugLine="img2.Visible=False";
_img2.setVisible(__c.False);
 //BA.debugLineNum = 2559;BA.debugLine="EJECUTANDO=0";
_ejecutando = BA.NumberToString(0);
 };
 };
 };
 //BA.debugLineNum = 2564;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2565;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*/ (_job);
 //BA.debugLineNum = 2566;BA.debugLine="If RESULT.Tag = \"hist_ventastodos\" Then 'query";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_ventastodos"))) { 
 //BA.debugLineNum = 2568;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));
 //BA.debugLineNum = 2570;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"))))]);
 //BA.debugLineNum = 2571;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"))))]);
 //BA.debugLineNum = 2572;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"))))]);
 //BA.debugLineNum = 2573;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"))))]);
 //BA.debugLineNum = 2574;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"))))]);
 //BA.debugLineNum = 2575;BA.debugLine="Dim HVD_NUM_TICKET As String = records(RESULT";
_hvd_num_ticket = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_NUM_TICKET"))))]);
 //BA.debugLineNum = 2576;BA.debugLine="Dim HVD_CODPROMO As String = records(RESULT.C";
_hvd_codpromo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_CODPROMO"))))]);
 //BA.debugLineNum = 2578;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, HVD_NUM_TICKET,HVD_CODPROMO) VALUES (?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente),(Object)(_hvd_pronombre),(Object)(_hvd_cant),(Object)(_hvd_costo_tot),(Object)(_hvd_fecha),(Object)(_hvd_num_ticket),(Object)(_hvd_codpromo)}));
 }
};
 };
 };
 //BA.debugLineNum = 2584;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2585;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*/ (_job);
 //BA.debugLineNum = 2586;BA.debugLine="If RESULT.Tag = \"variables\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("variables"))) { 
 //BA.debugLineNum = 2587;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group719 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen719 = group719.getSize()
;int index719 = 0;
;
for (; index719 < groupLen719;index719++){
_records = (Object[])(group719.Get(index719));
 //BA.debugLineNum = 2588;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"))))]);
 //BA.debugLineNum = 2589;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"))))]);
 //BA.debugLineNum = 2590;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)}));
 }
};
 };
 };
 //BA.debugLineNum = 2595;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2596;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*/ (_job);
 //BA.debugLineNum = 2597;BA.debugLine="If RESULT.Tag = \"CUESTIONARIO\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("CUESTIONARIO"))) { 
 //BA.debugLineNum = 2598;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group729 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen729 = group729.getSize()
;int index729 = 0;
;
for (; index729 < groupLen729;index729++){
_records = (Object[])(group729.Get(index729));
 //BA.debugLineNum = 2599;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"))))]);
 //BA.debugLineNum = 2600;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")}));
 //BA.debugLineNum = 2601;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)}));
 }
};
 };
 };
 //BA.debugLineNum = 2606;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2607;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*/ (_job);
 //BA.debugLineNum = 2608;BA.debugLine="If RESULT.Tag = \"carga_encuesta\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("carga_encuesta"))) { 
 //BA.debugLineNum = 2609;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group739 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen739 = group739.getSize()
;int index739 = 0;
;
for (; index739 < groupLen739;index739++){
_records = (Object[])(group739.Get(index739));
 //BA.debugLineNum = 2610;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"))))]);
 //BA.debugLineNum = 2611;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"))))]);
 //BA.debugLineNum = 2612;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"))))]);
 //BA.debugLineNum = 2613;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"))))]);
 //BA.debugLineNum = 2614;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"))))]);
 //BA.debugLineNum = 2615;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"))))]);
 //BA.debugLineNum = 2616;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"))))]);
 //BA.debugLineNum = 2617;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"))))]);
 //BA.debugLineNum = 2618;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)}));
 }
};
 };
 };
 //BA.debugLineNum = 2623;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2624;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*/ (_job);
 //BA.debugLineNum = 2625;BA.debugLine="If RESULT.Tag = \"valida_pedido\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("valida_pedido"))) { 
 //BA.debugLineNum = 2626;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group755 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen755 = group755.getSize()
;int index755 = 0;
;
for (; index755 < groupLen755;index755++){
_records = (Object[])(group755.Get(index755));
 //BA.debugLineNum = 2627;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"))))]));
 //BA.debugLineNum = 2630;BA.debugLine="If cuantos_pedido < = CUANTOSP Then";
if ((double)(Double.parseDouble(_cuantos_pedido))<=_cuantosp) { 
 //BA.debugLineNum = 2632;BA.debugLine="datos_iguales = \"ok\"";
_datos_iguales = "ok";
 //BA.debugLineNum = 2633;BA.debugLine="S_CP.Text = \"INFO OK\"";
_s_cp.setText(BA.ObjectToCharSequence("INFO OK"));
 //BA.debugLineNum = 2634;BA.debugLine="B_OK_PAS.Text = \"OK\"";
_b_ok_pas.setText(BA.ObjectToCharSequence("OK"));
 }else {
 //BA.debugLineNum = 2636;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)+" "+_cuantos_pedido),__c.True);};
 //BA.debugLineNum = 2637;BA.debugLine="S_CP.Text = \"ENVIAR DATOS (K-2)\"";
_s_cp.setText(BA.ObjectToCharSequence("ENVIAR DATOS (K-2)"));
 };
 }
};
 };
 };
 //BA.debugLineNum = 2643;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2644;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*/ (_job);
 //BA.debugLineNum = 2645;BA.debugLine="If RESULT.Tag = \"valida_pedidoc\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("valida_pedidoc"))) { 
 //BA.debugLineNum = 2646;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group771 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen771 = group771.getSize()
;int index771 = 0;
;
for (; index771 < groupLen771;index771++){
_records = (Object[])(group771.Get(index771));
 //BA.debugLineNum = 2647;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"))))]));
 //BA.debugLineNum = 2648;BA.debugLine="If cuantos_pedidosc = CUANTOSC Then";
if ((_cuantos_pedidosc).equals(BA.NumberToString(_cuantosc))) { 
 //BA.debugLineNum = 2650;BA.debugLine="datos_iguales = \"ok\"";
_datos_iguales = "ok";
 }else {
 //BA.debugLineNum = 2652;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)+" "+_cuantos_pedidosc),__c.True);};
 };
 }
};
 };
 };
 //BA.debugLineNum = 2658;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2659;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*/ (_job);
 //BA.debugLineNum = 2660;BA.debugLine="If RESULT.Tag = \"valida_noventa\" Then 'query ta";
if ((_result.Tag /*Object*/ ).equals((Object)("valida_noventa"))) { 
 //BA.debugLineNum = 2661;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group784 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen784 = group784.getSize()
;int index784 = 0;
;
for (; index784 < groupLen784;index784++){
_records = (Object[])(group784.Get(index784));
 //BA.debugLineNum = 2662;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"))))]));
 //BA.debugLineNum = 2663;BA.debugLine="If cuantos_noventa = CUANTOSN Then";
if ((_cuantos_noventa).equals(BA.NumberToString(_cuantosn))) { 
 //BA.debugLineNum = 2665;BA.debugLine="datos_iguales = \"ok\"";
_datos_iguales = "ok";
 }else {
 //BA.debugLineNum = 2667;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)+" "+_cuantos_noventa),__c.True);};
 };
 }
};
 };
 };
 //BA.debugLineNum = 2673;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2674;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*/ (_job);
 //BA.debugLineNum = 2675;BA.debugLine="If RESULT.Tag = \"ins_pedido\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("ins_pedido"))) { 
 //BA.debugLineNum = 2676;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group797 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen797 = group797.getSize()
;int index797 = 0;
;
for (; index797 < groupLen797;index797++){
_records = (Object[])(group797.Get(index797));
 //BA.debugLineNum = 2677;BA.debugLine="PB2.Progress = PB2.Progress + 5";
_pb2.setProgress((int) (_pb2.getProgress()+5));
 //BA.debugLineNum = 2678;BA.debugLine="S_CP.Text = \"SUBIENDO\"";
_s_cp.setText(BA.ObjectToCharSequence("SUBIENDO"));
 }
};
 //BA.debugLineNum = 2680;BA.debugLine="PB2.Progress = 100";
_pb2.setProgress((int) (100));
 //BA.debugLineNum = 2681;BA.debugLine="S_CP.Text = \"ENVIANDO\"";
_s_cp.setText(BA.ObjectToCharSequence("ENVIANDO"));
 };
 };
 //BA.debugLineNum = 2686;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2687;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*/ (_job);
 //BA.debugLineNum = 2688;BA.debugLine="If RESULT.Tag = \"version\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("version"))) { 
 //BA.debugLineNum = 2689;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group808 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen808 = group808.getSize()
;int index808 = 0;
;
for (; index808 < groupLen808;index808++){
_records = (Object[])(group808.Get(index808));
 //BA.debugLineNum = 2690;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");
 //BA.debugLineNum = 2691;BA.debugLine="Dim CAT_VE_VERSION As String = records(RESULT";
_cat_ve_version = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_VE_VERSION"))))]);
 //BA.debugLineNum = 2692;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)}));
 }
};
 };
 };
 //BA.debugLineNum = 2697;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2698;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*/ (_job);
 //BA.debugLineNum = 2699;BA.debugLine="If RESULT.Tag = \"count_cli\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("count_cli"))) { 
 //BA.debugLineNum = 2700;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group818 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen818 = group818.getSize()
;int index818 = 0;
;
for (; index818 < groupLen818;index818++){
_records = (Object[])(group818.Get(index818));
 //BA.debugLineNum = 2701;BA.debugLine="COUNT_CLIE = records(RESULT.Columns.Get(\"COUN";
_count_clie = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("COUNT_CLIE"))))]));
 }
};
 };
 };
 //BA.debugLineNum = 2706;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2707;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*/ (_job);
 //BA.debugLineNum = 2708;BA.debugLine="If RESULT.Tag = \"ruta\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("ruta"))) { 
 //BA.debugLineNum = 2709;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group826 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen826 = group826.getSize()
;int index826 = 0;
;
for (; index826 < groupLen826;index826++){
_records = (Object[])(group826.Get(index826));
 //BA.debugLineNum = 2710;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"))))]);
 //BA.debugLineNum = 2711;BA.debugLine="If VALIDO = \"OK\" Then";
if ((_valido).equals("OK")) { 
 //BA.debugLineNum = 2712;BA.debugLine="cargar.Visible = True";
_cargar.setVisible(__c.True);
 //BA.debugLineNum = 2713;BA.debugLine="Subir.Visible = True";
_subir.setVisible(__c.True);
 //BA.debugLineNum = 2714;BA.debugLine="inv.Visible = True";
_inv.setVisible(__c.True);
 //BA.debugLineNum = 2715;BA.debugLine="connecta.Visible = False";
_connecta.setVisible(__c.False);
 //BA.debugLineNum = 2716;BA.debugLine="If conn = \"1\" Then";
if ((_conn).equals("1")) { 
 //BA.debugLineNum = 2717;BA.debugLine="ToastMessageShow(\"Existe Conexión con el Se";
__c.ToastMessageShow(BA.ObjectToCharSequence("Existe Conexión con el Servidor."),__c.True);
 };
 }else {
 //BA.debugLineNum = 2720;BA.debugLine="cargar.Visible = False";
_cargar.setVisible(__c.False);
 //BA.debugLineNum = 2721;BA.debugLine="Subir.Visible = False";
_subir.setVisible(__c.False);
 //BA.debugLineNum = 2722;BA.debugLine="inv.Visible = False";
_inv.setVisible(__c.False);
 //BA.debugLineNum = 2723;BA.debugLine="connecta.Visible = False";
_connecta.setVisible(__c.False);
 //BA.debugLineNum = 2724;BA.debugLine="ToastMessageShow(\"Ruta invalida.\" , True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Ruta invalida."),__c.True);
 };
 }
};
 };
 };
 //BA.debugLineNum = 2730;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2731;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*/ (_job);
 //BA.debugLineNum = 2732;BA.debugLine="If RESULT.Tag = \"usuario\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("usuario"))) { 
 //BA.debugLineNum = 2733;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group849 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen849 = group849.getSize()
;int index849 = 0;
;
for (; index849 < groupLen849;index849++){
_records = (Object[])(group849.Get(index849));
 //BA.debugLineNum = 2734;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"))))]);
 }
};
 //BA.debugLineNum = 2736;BA.debugLine="If name2 = \"OK\" Then";
if ((_name2).equals("OK")) { 
 //BA.debugLineNum = 2737;BA.debugLine="PASO = 1";
_paso = BA.NumberToString(1);
 };
 //BA.debugLineNum = 2739;BA.debugLine="P1.Visible = False";
_p1.setVisible(__c.False);
 };
 };
 //BA.debugLineNum = 2743;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2744;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*/ (_job);
 //BA.debugLineNum = 2745;BA.debugLine="If RESULT.Tag = \"fecha\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("fecha"))) { 
 //BA.debugLineNum = 2746;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group861 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen861 = group861.getSize()
;int index861 = 0;
;
for (; index861 < groupLen861;index861++){
_records = (Object[])(group861.Get(index861));
 //BA.debugLineNum = 2747;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"))))]);
 //BA.debugLineNum = 2748;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")}));
 //BA.debugLineNum = 2749;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)}));
 }
};
 };
 };
 //BA.debugLineNum = 2754;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 2755;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*/ (_job);
 //BA.debugLineNum = 2764;BA.debugLine="If RESULT.Tag = \"hist_pro2265\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_pro2265"))) { 
 //BA.debugLineNum = 2765;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_PR";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_PRO2265");
 //BA.debugLineNum = 2766;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group872 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen872 = group872.getSize()
;int index872 = 0;
;
for (; index872 < groupLen872;index872++){
_records = (Object[])(group872.Get(index872));
 //BA.debugLineNum = 2767;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"))))]}));
 }
};
 };
 //BA.debugLineNum = 2770;BA.debugLine="If RESULT.Tag = \"hist_pro3054\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_pro3054"))) { 
 //BA.debugLineNum = 2771;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_PR";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_PRO3054");
 //BA.debugLineNum = 2772;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group878 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen878 = group878.getSize()
;int index878 = 0;
;
for (; index878 < groupLen878;index878++){
_records = (Object[])(group878.Get(index878));
 //BA.debugLineNum = 2773;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"))))]}));
 }
};
 };
 //BA.debugLineNum = 2776;BA.debugLine="If RESULT.Tag = \"hist_pro3055\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("hist_pro3055"))) { 
 //BA.debugLineNum = 2777;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_PR";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_PRO3055");
 //BA.debugLineNum = 2778;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group884 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen884 = group884.getSize()
;int index884 = 0;
;
for (; index884 < groupLen884;index884++){
_records = (Object[])(group884.Get(index884));
 //BA.debugLineNum = 2779;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"))))]}));
 }
};
 };
 //BA.debugLineNum = 2782;BA.debugLine="If RESULT.Tag = \"traeVersion\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("traeVersion"))) { 
 //BA.debugLineNum = 2783;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group889 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen889 = group889.getSize()
;int index889 = 0;
;
for (; index889 < groupLen889;index889++){
_records = (Object[])(group889.Get(index889));
 //BA.debugLineNum = 2784;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"))))]);
 //BA.debugLineNum = 2785;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"))))]);
 }
};
 //BA.debugLineNum = 2787;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")}));
 //BA.debugLineNum = 2788;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)}));
 //BA.debugLineNum = 2789;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")}));
 //BA.debugLineNum = 2790;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)}));
 //BA.debugLineNum = 2791;BA.debugLine="Log($\">>>>  GUARDAMOS NUEVA VERSION: ${version";
__c.LogImpl("43998873",(">>>>  GUARDAMOS NUEVA VERSION: "+__c.SmartStringFormatter("",(Object)(_version))+", "+__c.SmartStringFormatter("",(Object)(_actualizaraplicacion))+""),0);
 };
 //BA.debugLineNum = 2793;BA.debugLine="If RESULT.Tag = \"tipoVenta\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("tipoVenta"))) { 
 //BA.debugLineNum = 2794;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group900 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen900 = group900.getSize()
;int index900 = 0;
;
for (; index900 < groupLen900;index900++){
_records = (Object[])(group900.Get(index900));
 //BA.debugLineNum = 2795;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"))))]);
 }
};
 //BA.debugLineNum = 2797;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")}));
 //BA.debugLineNum = 2798;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)}));
 //BA.debugLineNum = 2799;BA.debugLine="Log($\">>>>  GUARDAMOS TIPO_VENTA: ${tipoVenta}";
__c.LogImpl("43998881",(">>>>  GUARDAMOS TIPO_VENTA: "+__c.SmartStringFormatter("",(Object)(_tipoventa))+""),0);
 };
 //BA.debugLineNum = 2801;BA.debugLine="If RESULT.Tag = \"planLealtad\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("planLealtad"))) { 
 //BA.debugLineNum = 2802;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");
 //BA.debugLineNum = 2803;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group909 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen909 = group909.getSize()
;int index909 = 0;
;
for (; index909 < groupLen909;index909++){
_records = (Object[])(group909.Get(index909));
 //BA.debugLineNum = 2804;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"))))]);
 //BA.debugLineNum = 2805;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"))))]);
 //BA.debugLineNum = 2806;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)}));
 }
};
 };
 //BA.debugLineNum = 2810;BA.debugLine="If RESULT.Tag = \"coments\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("coments"))) { 
 //BA.debugLineNum = 2811;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");
 //BA.debugLineNum = 2812;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group917 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen917 = group917.getSize()
;int index917 = 0;
;
for (; index917 < groupLen917;index917++){
_records = (Object[])(group917.Get(index917));
 //BA.debugLineNum = 2813;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"))))]);
 //BA.debugLineNum = 2814;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"))))]);
 //BA.debugLineNum = 2815;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)}));
 }
};
 };
 //BA.debugLineNum = 2819;BA.debugLine="If RESULT.Tag = \"objetivos\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("objetivos"))) { 
 //BA.debugLineNum = 2820;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");
 //BA.debugLineNum = 2821;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group925 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen925 = group925.getSize()
;int index925 = 0;
;
for (; index925 < groupLen925;index925++){
_records = (Object[])(group925.Get(index925));
 //BA.debugLineNum = 2822;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"))))]);
 //BA.debugLineNum = 2823;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"))))]);
 //BA.debugLineNum = 2824;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"))))]);
 //BA.debugLineNum = 2825;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"))))]);
 //BA.debugLineNum = 2826;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"))))]);
 //BA.debugLineNum = 2827;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)}));
 }
};
 };
 };
 };
 //BA.debugLineNum = 2833;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()) { 
 //BA.debugLineNum = 2834;BA.debugLine="LogColor($\"REQUESTS: ${B4XPages.MainPage.reqMana";
__c.LogImpl("43998916",("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);
 //BA.debugLineNum = 2836;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 && (_carga).equals("SUBIR")) { 
 //BA.debugLineNum = 2837;BA.debugLine="t1.Enabled = False";
_t1.setEnabled(__c.False);
 //BA.debugLineNum = 2838;BA.debugLine="t1.Initialize(\"T1\", 3000) ' 1000 = 1 second";
_t1.Initialize(ba,"T1",(long) (3000));
 //BA.debugLineNum = 2840;BA.debugLine="If contadorSubir < 3 Then ' Si no hacen click e";
if (_contadorsubir<3) { 
 //BA.debugLineNum = 2841;BA.debugLine="t1.Enabled = True";
_t1.setEnabled(__c.True);
 //BA.debugLineNum = 2842;BA.debugLine="Log(\"TIMER ENABLED\")";
__c.LogImpl("43998924","TIMER ENABLED",0);
 };
 //BA.debugLineNum = 2844;BA.debugLine="contadorSubir = contadorSubir + 1";
_contadorsubir = (int) (_contadorsubir+1);
 };
 };
 //BA.debugLineNum = 2847;BA.debugLine="Job.Release";
_job._release /*String*/ ();
 //BA.debugLineNum = 2848;BA.debugLine="End Sub";
return "";
}
public String  _nuevo_click() throws Exception{
 //BA.debugLineNum = 3283;BA.debugLine="Sub NUEVO_Click";
 //BA.debugLineNum = 3284;BA.debugLine="B4XPages.ShowPage(\"NuevoCliente\")";
_b4xpages._showpage /*String*/ (ba,"NuevoCliente");
 //BA.debugLineNum = 3285;BA.debugLine="End Sub";
return "";
}
public String  _nvo_cliente_click() throws Exception{
 //BA.debugLineNum = 3783;BA.debugLine="Sub nvo_cliente_Click";
 //BA.debugLineNum = 3784;BA.debugLine="B4XPages.ShowPage(\"NuevoCliente\")";
_b4xpages._showpage /*String*/ (ba,"NuevoCliente");
 //BA.debugLineNum = 3785;BA.debugLine="End Sub";
return "";
}
public String  _p_marcasres_click() throws Exception{
 //BA.debugLineNum = 3984;BA.debugLine="Private Sub p_marcasRes_Click";
 //BA.debugLineNum = 3986;BA.debugLine="End Sub";
return "";
}
public String  _p_resumen_click() throws Exception{
 //BA.debugLineNum = 3311;BA.debugLine="Sub P_RESUMEN_click";
 //BA.debugLineNum = 3313;BA.debugLine="End Sub";
return "";
}
public String  _p_sombra_click() throws Exception{
 //BA.debugLineNum = 3988;BA.debugLine="Private Sub p_sombra_Click";
 //BA.debugLineNum = 3990;BA.debugLine="End Sub";
return "";
}
public String  _p_transparenteactualizacion_click() throws Exception{
 //BA.debugLineNum = 3992;BA.debugLine="Private Sub p_transparenteActualizacion_Click";
 //BA.debugLineNum = 3994;BA.debugLine="End Sub";
return "";
}
public String  _p1_click() throws Exception{
 //BA.debugLineNum = 4002;BA.debugLine="Private Sub P1_Click";
 //BA.debugLineNum = 4004;BA.debugLine="End Sub";
return "";
}
public String  _recalculoxcant() throws Exception{
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;
 //BA.debugLineNum = 584;BA.debugLine="Sub recalculoXcant";
 //BA.debugLineNum = 586;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 AND PE_DESC = '0'",new String[]{_subs._traealmacen /*String*/ (ba)})));
 //BA.debugLineNum = 587;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 588;BA.debugLine="For promespdes = 0 To c.RowCount -1";
{
final int step3 = 1;
final int limit3 = (int) (_c.getRowCount()-1);
_promespdes = (int) (0) ;
for (;_promespdes <= limit3 ;_promespdes = _promespdes + step3 ) {
 //BA.debugLineNum = 589;BA.debugLine="c.Position = promespdes";
_c.setPosition(_promespdes);
 //BA.debugLineNum = 590;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[]{_c.GetString("PE_PROID"),BA.NumberToString(_c.GetInt("PE_CANT")),BA.NumberToString(_c.GetInt("PE_CANT"))})));
 //BA.debugLineNum = 591;BA.debugLine="If rangosel.RowCount > 0 Then";
if (_rangosel.getRowCount()>0) { 
 //BA.debugLineNum = 592;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 ) {
 //BA.debugLineNum = 593;BA.debugLine="rangosel.Position = hjh";
_rangosel.setPosition(_hjh);
 //BA.debugLineNum = 594;BA.debugLine="If rangosel.GetString(\"CAT_PD_TIER\").Contains";
if (_rangosel.GetString("CAT_PD_TIER").contains(BA.NumberToString(_subs._traetipocliente /*int*/ (ba)))) { 
 //BA.debugLineNum = 595;BA.debugLine="Log(c.GetString(\"PE_COSTOU\"))";
__c.LogImpl("43801099",_c.GetString("PE_COSTOU"),0);
 //BA.debugLineNum = 596;BA.debugLine="Log(rangosel.GetString(\"CAT_PD_DESCUENTO\"))";
__c.LogImpl("43801100",_rangosel.GetString("CAT_PD_DESCUENTO"),0);
 //BA.debugLineNum = 597;BA.debugLine="Private recalculo As Float = c.GetString(\"PE";
_recalculo = (float) ((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))-(double)(Double.parseDouble(__c.NumberFormat2((((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))*(double)(Double.parseDouble(_rangosel.GetString("CAT_PD_DESCUENTO"))))/(double)100),(int) (0),(int) (2),(int) (2),__c.False))));
 //BA.debugLineNum = 598;BA.debugLine="LogColor(recalculo,Colors.Blue)";
__c.LogImpl("43801102",BA.NumberToString(_recalculo),__c.Colors.Blue);
 //BA.debugLineNum = 599;BA.debugLine="Log(c.GetString(\"PE_COSTOU\"))";
__c.LogImpl("43801103",_c.GetString("PE_COSTOU"),0);
 //BA.debugLineNum = 600;BA.debugLine="Log(NumberFormat2(((c.GetString(\"PE_COSTOU\")";
__c.LogImpl("43801104",__c.NumberFormat2((((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))*(double)(Double.parseDouble(_rangosel.GetString("CAT_PD_DESCUENTO"))))/(double)100),(int) (0),(int) (2),(int) (2),__c.False),0);
 //BA.debugLineNum = 601;BA.debugLine="Log(rangosel.GetString(\"CAT_PD_DESCUENTO\"))";
__c.LogImpl("43801105",_rangosel.GetString("CAT_PD_DESCUENTO"),0);
 //BA.debugLineNum = 602;BA.debugLine="Private recalculototal As Float =c.GetString";
_recalculototal = (float) ((double)(Double.parseDouble(_c.GetString("PE_CANT")))*_recalculo);
 //BA.debugLineNum = 603;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"),_c.GetString("PE_PROID"),_c.GetString("PE_CLIENTE"),_subs._traealmacen /*String*/ (ba),_c.GetString("PE_FOLIO")}));
 };
 }
};
 }else {
 //BA.debugLineNum = 607;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[]{_c.GetString("PE_PROID"),BA.NumberToString(_c.GetInt("PE_CANT"))})));
 //BA.debugLineNum = 609;BA.debugLine="If rangosel2.RowCount > 0 Then";
if (_rangosel2.getRowCount()>0) { 
 //BA.debugLineNum = 611;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 ) {
 //BA.debugLineNum = 612;BA.debugLine="rangosel2.Position = hjh";
_rangosel2.setPosition(_hjh);
 //BA.debugLineNum = 613;BA.debugLine="If rangosel2.GetString(\"CAT_PD_TIER\").Contai";
if (_rangosel2.GetString("CAT_PD_TIER").contains(BA.NumberToString(_subs._traetipocliente /*int*/ (ba)))) { 
 //BA.debugLineNum = 614;BA.debugLine="Log(c.GetString(\"PE_COSTOU\"))";
__c.LogImpl("43801118",_c.GetString("PE_COSTOU"),0);
 //BA.debugLineNum = 615;BA.debugLine="Log(rangosel2.GetString(\"CAT_PD_DESCUENTO\")";
__c.LogImpl("43801119",_rangosel2.GetString("CAT_PD_DESCUENTO"),0);
 //BA.debugLineNum = 616;BA.debugLine="Private recalculo As Float = c.GetString(\"P";
_recalculo = (float) ((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))-(double)(Double.parseDouble(__c.NumberFormat2((((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))*(double)(Double.parseDouble(_rangosel2.GetString("CAT_PD_DESCUENTO"))))/(double)100),(int) (0),(int) (2),(int) (2),__c.False))));
 //BA.debugLineNum = 617;BA.debugLine="LogColor(recalculo,Colors.Blue)";
__c.LogImpl("43801121",BA.NumberToString(_recalculo),__c.Colors.Blue);
 //BA.debugLineNum = 618;BA.debugLine="Log(c.GetString(\"PE_COSTOU\"))";
__c.LogImpl("43801122",_c.GetString("PE_COSTOU"),0);
 //BA.debugLineNum = 619;BA.debugLine="Log(NumberFormat2(((c.GetString(\"PE_COSTOU\"";
__c.LogImpl("43801123",__c.NumberFormat2((((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))*(double)(Double.parseDouble(_rangosel2.GetString("CAT_PD_DESCUENTO"))))/(double)100),(int) (0),(int) (2),(int) (2),__c.False),0);
 //BA.debugLineNum = 620;BA.debugLine="Log(rangosel2.GetString(\"CAT_PD_DESCUENTO\")";
__c.LogImpl("43801124",_rangosel2.GetString("CAT_PD_DESCUENTO"),0);
 //BA.debugLineNum = 621;BA.debugLine="Private recalculototal As Float = rangosel2";
_recalculototal = (float) ((double)(Double.parseDouble(_rangosel2.GetString("CAT_PD_RANGO2")))*_recalculo);
 //BA.debugLineNum = 624;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"),_c.GetString("PE_PROID"),_c.GetString("PE_CLIENTE"),_subs._traealmacen /*String*/ (ba),_c.GetString("PE_FOLIO")}));
 };
 }
};
 }else {
 //BA.debugLineNum = 628;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[]{_c.GetString("PE_PROID"),_c.GetString("PE_CLIENTE"),_subs._traealmacen /*String*/ (ba),_c.GetString("PE_FOLIO")}));
 };
 //BA.debugLineNum = 630;BA.debugLine="rangosel2.Close";
_rangosel2.Close();
 };
 //BA.debugLineNum = 632;BA.debugLine="rangosel.Close";
_rangosel.Close();
 }
};
 };
 //BA.debugLineNum = 635;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)}));
 //BA.debugLineNum = 636;BA.debugLine="End Sub";
return "";
}
public String  _resdia_click() throws Exception{
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;
double _totalstick = 0;
int _sfsdf = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _s8 = null;
int _totaltotaltot = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _s0 = null;
double _pp = 0;
int _lksahdjgsad = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _s9 = null;
 //BA.debugLineNum = 3319;BA.debugLine="Sub resdia_Click";
 //BA.debugLineNum = 3321;BA.debugLine="Btn_Ubicar.Visible=False";
_btn_ubicar.setVisible(__c.False);
 //BA.debugLineNum = 3322;BA.debugLine="SCROLL_RESDIA.Panel.RemoveAllViews";
_scroll_resdia.getPanel().RemoveAllViews();
 //BA.debugLineNum = 3323;BA.debugLine="SCROLL_RESDIA.Visible = True";
_scroll_resdia.setVisible(__c.True);
 //BA.debugLineNum = 3324;BA.debugLine="SCROLL_RESDIA.Panel.LoadLayout(\"RESDIA\")";
_scroll_resdia.getPanel().LoadLayout("RESDIA",ba);
 //BA.debugLineNum = 3325;BA.debugLine="SCROLL_RESDIA.Panel.Height = Panel4.Height";
_scroll_resdia.getPanel().setHeight(_panel4.getHeight());
 //BA.debugLineNum = 3326;BA.debugLine="Panel4.Visible = True";
_panel4.setVisible(__c.True);
 //BA.debugLineNum = 3328;BA.debugLine="NUEVO.Visible =False";
_nuevo.setVisible(__c.False);
 //BA.debugLineNum = 3329;BA.debugLine="BUSCA.Visible=False";
_busca.setVisible(__c.False);
 //BA.debugLineNum = 3330;BA.debugLine="connecta.Visible=False";
_connecta.setVisible(__c.False);
 //BA.debugLineNum = 3331;BA.debugLine="Subir.Visible=False";
_subir.setVisible(__c.False);
 //BA.debugLineNum = 3332;BA.debugLine="cargar.Visible=False";
_cargar.setVisible(__c.False);
 //BA.debugLineNum = 3333;BA.debugLine="Resumen.Visible= False";
_resumen.setVisible(__c.False);
 //BA.debugLineNum = 3335;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2(\"select COUNT";
_d = (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"})));
 //BA.debugLineNum = 3336;BA.debugLine="d.Position = 0";
_d.setPosition((int) (0));
 //BA.debugLineNum = 3337;BA.debugLine="l_encuesta.Text = d.GetString(\"CUANTOS\")";
_l_encuesta.setText(BA.ObjectToCharSequence(_d.GetString("CUANTOS")));
 //BA.debugLineNum = 3338;BA.debugLine="d.Close";
_d.Close();
 //BA.debugLineNum = 3340;BA.debugLine="L_MARCAS.CLEAR";
_l_marcas.Clear();
 //BA.debugLineNum = 3341;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2(\"select disti";
_d = (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"})));
 //BA.debugLineNum = 3342;BA.debugLine="If D.RowCount>0 Then";
if (_d.getRowCount()>0) { 
 //BA.debugLineNum = 3343;BA.debugLine="For i=0 To D.RowCount -1";
{
final int step20 = 1;
final int limit20 = (int) (_d.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit20 ;_i = _i + step20 ) {
 //BA.debugLineNum = 3344;BA.debugLine="D.Position=i";
_d.setPosition(_i);
 //BA.debugLineNum = 3345;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"Select  HE";
_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  HE_RES from HIST_ENCUESTA where  HE_CLIE = ?  AND HE_TIPO = ?",new String[]{_d.GetString("CLIENTE"),"TELEFONO"})));
 //BA.debugLineNum = 3346;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 3347;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 3348;BA.debugLine="label1 = L_MARCAS.TwoLinesLayout.Label";
_label1 = _l_marcas.getTwoLinesLayout().Label;
 //BA.debugLineNum = 3349;BA.debugLine="label1.TextSize = 13";
_label1.setTextSize((float) (13));
 //BA.debugLineNum = 3350;BA.debugLine="label1.TextColor = Colors.Black";
_label1.setTextColor(__c.Colors.Black);
 //BA.debugLineNum = 3351;BA.debugLine="Dim Label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 3352;BA.debugLine="Label2 = L_MARCAS.TwoLinesLayout.SecondLabel";
_label2 = _l_marcas.getTwoLinesLayout().SecondLabel;
 //BA.debugLineNum = 3353;BA.debugLine="Label2.TextSize = 13";
_label2.setTextSize((float) (13));
 //BA.debugLineNum = 3354;BA.debugLine="Label2.TextColor = Colors.Black";
_label2.setTextColor(__c.Colors.Black);
 //BA.debugLineNum = 3355;BA.debugLine="L_MARCAS.AddTwoLines(d.GetString(\"CLIENTE\"),\"TE";
_l_marcas.AddTwoLines(BA.ObjectToCharSequence(_d.GetString("CLIENTE")),BA.ObjectToCharSequence("TELEFONO :"+_c.GetString("HE_RES")));
 //BA.debugLineNum = 3356;BA.debugLine="c.Close";
_c.Close();
 }
};
 };
 //BA.debugLineNum = 3359;BA.debugLine="d.Close";
_d.Close();
 //BA.debugLineNum = 3361;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2($\"Select  sum";
_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  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,_tipo_venta)))+" where CAT_GP_TIPO = ? )"),new String[]{"RTEC"})));
 //BA.debugLineNum = 3362;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 3363;BA.debugLine="l_monto_k.Text = c.GetString(\"MONTO_DIA\")";
_l_monto_k.setText(BA.ObjectToCharSequence(_c.GetString("MONTO_DIA")));
 //BA.debugLineNum = 3364;BA.debugLine="If l_monto_k.Text = \"null\" Then";
if ((_l_monto_k.getText()).equals("null")) { 
 //BA.debugLineNum = 3365;BA.debugLine="l_monto_k.Text = \"0\"";
_l_monto_k.setText(BA.ObjectToCharSequence("0"));
 };
 //BA.debugLineNum = 3367;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 3369;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2($\"Select  sum";
_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  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,_tipo_venta)))+" where CAT_GP_TIPO = ? )"),new String[]{"PING"})));
 //BA.debugLineNum = 3370;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 3371;BA.debugLine="l_monto_kp.Text = c.GetString(\"MONTO_DIA\")";
_l_monto_kp.setText(BA.ObjectToCharSequence(_c.GetString("MONTO_DIA")));
 //BA.debugLineNum = 3372;BA.debugLine="If l_monto_kp.Text = \"null\" Then";
if ((_l_monto_kp.getText()).equals("null")) { 
 //BA.debugLineNum = 3373;BA.debugLine="l_monto_kp.Text = \"0\"";
_l_monto_kp.setText(BA.ObjectToCharSequence("0"));
 };
 //BA.debugLineNum = 3375;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 3385;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select  sum(P";
_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*/ .ExecQuery("Select  sum(PE_COSTO_TOT) As MONTO_DIA from pedido where PE_CLIENTE <> 0 ")));
 //BA.debugLineNum = 3386;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 3387;BA.debugLine="l_monto_ks.Text = c.GetString(\"MONTO_DIA\")";
_l_monto_ks.setText(BA.ObjectToCharSequence(_c.GetString("MONTO_DIA")));
 //BA.debugLineNum = 3388;BA.debugLine="If l_monto_ks.Text = \"null\" Then";
if ((_l_monto_ks.getText()).equals("null")) { 
 //BA.debugLineNum = 3389;BA.debugLine="l_monto_ks.Text = \"0\"";
_l_monto_ks.setText(BA.ObjectToCharSequence("0"));
 };
 //BA.debugLineNum = 3391;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 3416;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")));
 //BA.debugLineNum = 3418;BA.debugLine="If s3.RowCount > 0 Then";
if (_s3.getRowCount()>0) { 
 //BA.debugLineNum = 3419;BA.debugLine="Private total1 As String = 0";
_total1 = BA.NumberToString(0);
 //BA.debugLineNum = 3420;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 ) {
 //BA.debugLineNum = 3421;BA.debugLine="s3.Position = i";
_s3.setPosition(_i);
 //BA.debugLineNum = 3423;BA.debugLine="total1 = total1 + Subs.calculaTotalConPromoXRan";
_total1 = BA.NumberToString((double)(Double.parseDouble(_total1))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango /*String*/ (ba,_s3.GetString("PE_CLIENTE")))));
 }
};
 //BA.debugLineNum = 3427;BA.debugLine="L_REAL.Text = NumberFormat2( total1,0,2,2,False)";
_l_real.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total1)),(int) (0),(int) (2),(int) (2),__c.False)));
 }else {
 //BA.debugLineNum = 3429;BA.debugLine="L_REAL.Text = 0";
_l_real.setText(BA.ObjectToCharSequence(0));
 };
 //BA.debugLineNum = 3433;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")));
 //BA.debugLineNum = 3435;BA.debugLine="If s5.RowCount > 0 Then";
if (_s5.getRowCount()>0) { 
 //BA.debugLineNum = 3436;BA.debugLine="Private total4 As String = 0";
_total4 = BA.NumberToString(0);
 //BA.debugLineNum = 3437;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 ) {
 //BA.debugLineNum = 3438;BA.debugLine="s5.Position = i";
_s5.setPosition(_i);
 //BA.debugLineNum = 3440;BA.debugLine="total4 = total4 + Subs.calculaTotalConPromoXRan";
_total4 = BA.NumberToString((double)(Double.parseDouble(_total4))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango1 /*String*/ (ba,_s5.GetString("PE_CLIENTE")))));
 }
};
 //BA.debugLineNum = 3444;BA.debugLine="l_preacordada.Text = NumberFormat2(total4,0,2,2,";
_l_preacordada.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total4)),(int) (0),(int) (2),(int) (2),__c.False)));
 }else {
 //BA.debugLineNum = 3446;BA.debugLine="l_preacordada.Text = 0";
_l_preacordada.setText(BA.ObjectToCharSequence(0));
 };
 //BA.debugLineNum = 3449;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")));
 //BA.debugLineNum = 3451;BA.debugLine="If s6.RowCount > 0 Then";
if (_s6.getRowCount()>0) { 
 //BA.debugLineNum = 3452;BA.debugLine="Private total3 As String = 0";
_total3 = BA.NumberToString(0);
 //BA.debugLineNum = 3453;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 ) {
 //BA.debugLineNum = 3454;BA.debugLine="s6.Position = i";
_s6.setPosition(_i);
 //BA.debugLineNum = 3456;BA.debugLine="total3 = total3 + Subs.calculaTotalConPromoXRan";
_total3 = BA.NumberToString((double)(Double.parseDouble(_total3))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango2 /*String*/ (ba,_s6.GetString("PE_CLIENTE")))));
 }
};
 //BA.debugLineNum = 3460;BA.debugLine="l_prevtotal.Text = NumberFormat2(total3,0,2,2,Fa";
_l_prevtotal.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total3)),(int) (0),(int) (2),(int) (2),__c.False)));
 }else {
 //BA.debugLineNum = 3462;BA.debugLine="l_prevtotal.Text = 0";
_l_prevtotal.setText(BA.ObjectToCharSequence(0));
 };
 //BA.debugLineNum = 3479;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))));
 //BA.debugLineNum = 3482;BA.debugLine="Private total2 As String = 0";
_total2 = BA.NumberToString(0);
 //BA.debugLineNum = 3483;BA.debugLine="If ru_o.RowCount > 0 Then";
if (_ru_o.getRowCount()>0) { 
 //BA.debugLineNum = 3484;BA.debugLine="For i2 = 0 To ru_o.RowCount - 1";
{
final int step94 = 1;
final int limit94 = (int) (_ru_o.getRowCount()-1);
_i2 = (int) (0) ;
for (;_i2 <= limit94 ;_i2 = _i2 + step94 ) {
 //BA.debugLineNum = 3485;BA.debugLine="ru_o.Position = i2";
_ru_o.setPosition(_i2);
 //BA.debugLineNum = 3487;BA.debugLine="Private rutOr As String = ru_o.GetString(\"PE_RU";
_rutor = _ru_o.GetString("PE_RUTA");
 //BA.debugLineNum = 3489;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")))));
 }
};
 };
 //BA.debugLineNum = 3493;BA.debugLine="l_ru_pri.Text = NumberFormat2(total2,0,2,2,False)";
_l_ru_pri.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total2)),(int) (0),(int) (2),(int) (2),__c.False)));
 //BA.debugLineNum = 3496;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))));
 //BA.debugLineNum = 3497;BA.debugLine="ru_s.Position = 0";
_ru_s.setPosition((int) (0));
 //BA.debugLineNum = 3498;BA.debugLine="If ru_s.GetString(\"PE_RUTA\") = 0 Then";
if ((_ru_s.GetString("PE_RUTA")).equals(BA.NumberToString(0))) { 
 }else {
 //BA.debugLineNum = 3501;BA.debugLine="Private RuSu As String = ru_s.GetString(\"PE_RUTA";
_rusu = _ru_s.GetString("PE_RUTA");
 //BA.debugLineNum = 3503;BA.debugLine="ru_s.Position = 0";
_ru_s.setPosition((int) (0));
 //BA.debugLineNum = 3504;BA.debugLine="l_ru_sup.Text = NumberFormat2(ru_s.GetDouble(\"TO";
_l_ru_sup.setText(BA.ObjectToCharSequence(__c.NumberFormat2(_ru_s.GetDouble("TOTAL_CLIE"),(int) (0),(int) (2),(int) (2),__c.False)));
 };
 //BA.debugLineNum = 3506;BA.debugLine="ru_s.Close";
_ru_s.Close();
 //BA.debugLineNum = 3508;BA.debugLine="Dim cuantos_obj As String";
_cuantos_obj = "";
 //BA.debugLineNum = 3509;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select  count";
_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*/ .ExecQuery("Select  count(*) AS TOTAL from HIST_MARCAS_CUOTAS   ")));
 //BA.debugLineNum = 3510;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 3511;BA.debugLine="cuantos_obj = c.GetString(\"TOTAL\")";
_cuantos_obj = _c.GetString("TOTAL");
 //BA.debugLineNum = 3512;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 3514;BA.debugLine="If cuantos_obj > 0 Then";
if ((double)(Double.parseDouble(_cuantos_obj))>0) { 
 //BA.debugLineNum = 3515;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select  SUM(";
_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*/ .ExecQuery("Select  SUM(HMC_TOTAL) AS TOTAL from HIST_MARCAS_CUOTAS   ")));
 //BA.debugLineNum = 3516;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 3517;BA.debugLine="If  c.GetString(\"TOTAL\") > 0 Then";
if ((double)(Double.parseDouble(_c.GetString("TOTAL")))>0) { 
 //BA.debugLineNum = 3518;BA.debugLine="L_NES.Text = Round(c.GetString(\"TOTAL\") / 25)";
_l_nes.setText(BA.ObjectToCharSequence(__c.Round((double)(Double.parseDouble(_c.GetString("TOTAL")))/(double)25)));
 }else {
 //BA.debugLineNum = 3520;BA.debugLine="L_NES.Text = c.GetString(\"TOTAL\")";
_l_nes.setText(BA.ObjectToCharSequence(_c.GetString("TOTAL")));
 };
 //BA.debugLineNum = 3522;BA.debugLine="c.Close";
_c.Close();
 };
 //BA.debugLineNum = 3525;BA.debugLine="Log(L_NES.Text)";
__c.LogImpl("45046478",_l_nes.getText(),0);
 //BA.debugLineNum = 3526;BA.debugLine="Log(L_REAL.Text)";
__c.LogImpl("45046479",_l_real.getText(),0);
 //BA.debugLineNum = 3530;BA.debugLine="L_ALCANCE.Text = Round2((L_NES.Text / L_REAL.Text";
_l_alcance.setText(BA.ObjectToCharSequence(__c.Round2(((double)(Double.parseDouble(_l_nes.getText()))/(double)(double)(Double.parseDouble(_l_real.getText()))+1),(int) (2))));
 //BA.debugLineNum = 3531;BA.debugLine="L_VPLAN.Text = l_porvisitar.Text";
_l_vplan.setText(BA.ObjectToCharSequence(_l_porvisitar.getText()));
 //BA.debugLineNum = 3532;BA.debugLine="L_VREAL.Text = L_CUANTOST.text";
_l_vreal.setText(BA.ObjectToCharSequence(_l_cuantost.getText()));
 //BA.debugLineNum = 3533;BA.debugLine="L_EFEC_VIS.Text = Round2(L_VREAL.text / L_VPLAN.T";
_l_efec_vis.setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(_l_vreal.getText()))/(double)(double)(Double.parseDouble(_l_vplan.getText())),(int) (2))));
 //BA.debugLineNum = 3534;BA.debugLine="L_VISITCC.Text = l_cuantosc.text";
_l_visitcc.setText(BA.ObjectToCharSequence(_l_cuantosc.getText()));
 //BA.debugLineNum = 3535;BA.debugLine="L_EFEC_PV.Text = Round2(L_VISITCC.Text / L_VREAL.";
_l_efec_pv.setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(_l_visitcc.getText()))/(double)(double)(Double.parseDouble(_l_vreal.getText())),(int) (2))));
 //BA.debugLineNum = 3536;BA.debugLine="L_EFEC_PURA.Text = Round2(L_VISITCC.Text / L_VPLA";
_l_efec_pura.setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(_l_visitcc.getText()))/(double)(double)(Double.parseDouble(_l_vplan.getText())),(int) (2))));
 //BA.debugLineNum = 3537;BA.debugLine="l_preventa.Text = Subs.calculaTotalConPromoXRango";
_l_preventa.setText(BA.ObjectToCharSequence(_subs._calculatotalconpromoxrango2 /*String*/ (ba,_subs._traecliente /*String*/ (ba))));
 //BA.debugLineNum = 3538;BA.debugLine="l_futura.Text = Subs.calculaTotalConPromoXRango1(";
_l_futura.setText(BA.ObjectToCharSequence(_subs._calculatotalconpromoxrango1 /*String*/ (ba,_subs._traecliente /*String*/ (ba))));
 //BA.debugLineNum = 3539;BA.debugLine="L_LIN_TICK.Text = LPT";
_l_lin_tick.setText(BA.ObjectToCharSequence(_lpt));
 //BA.debugLineNum = 3540;BA.debugLine="If l_monto_ks.Text <> \"0\" Then";
if ((_l_monto_ks.getText()).equals("0") == false) { 
 //BA.debugLineNum = 3541;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"Select  COU";
_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  COUNT(DISTINCT(PE_CLIENTE)) AS CUANTOS FROM PEDIDO WHERE PE_CEDIS =  ? ",new String[]{_almacen})));
 //BA.debugLineNum = 3542;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 3543;BA.debugLine="L_CTE_PROMO.Text = c.GetString(\"CUANTOS\")";
_l_cte_promo.setText(BA.ObjectToCharSequence(_c.GetString("CUANTOS")));
 //BA.debugLineNum = 3544;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 3545;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2($\"Select sum";
_d = (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,_tipo_venta)))+" where  CAT_GP_TIPOPROD = ?) "),new String[]{"PRIORITARIO"})));
 //BA.debugLineNum = 3546;BA.debugLine="d.Position = 0";
_d.setPosition((int) (0));
 //BA.debugLineNum = 3555;BA.debugLine="L_PRIO.Text = d.GetString(\"MONTO_DIA\")";
_l_prio.setText(BA.ObjectToCharSequence(_d.GetString("MONTO_DIA")));
 //BA.debugLineNum = 3556;BA.debugLine="d.Close";
_d.Close();
 //BA.debugLineNum = 3558;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2($\"Select sum";
_d = (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,_tipo_venta)))+" where  CAT_GP_TIPOPROD = ?) "),new String[]{"ESTRATEGICO"})));
 //BA.debugLineNum = 3559;BA.debugLine="d.Position = 0";
_d.setPosition((int) (0));
 //BA.debugLineNum = 3560;BA.debugLine="L_SECUND.Text =d.GetString(\"MONTO_DIA\")";
_l_secund.setText(BA.ObjectToCharSequence(_d.GetString("MONTO_DIA")));
 //BA.debugLineNum = 3561;BA.debugLine="d.Close";
_d.Close();
 //BA.debugLineNum = 3563;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2($\"Select sum";
_d = (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,_tipo_venta)))+" where  CAT_GP_TIPOPROD = ?) "),new String[]{"COMPLEMENTARIO"})));
 //BA.debugLineNum = 3564;BA.debugLine="d.Position = 0";
_d.setPosition((int) (0));
 //BA.debugLineNum = 3565;BA.debugLine="L_COMP.Text =d.GetString(\"MONTO_DIA\")";
_l_comp.setText(BA.ObjectToCharSequence(_d.GetString("MONTO_DIA")));
 //BA.debugLineNum = 3566;BA.debugLine="d.Close";
_d.Close();
 }else {
 //BA.debugLineNum = 3568;BA.debugLine="L_PRIO.Text = \"0\"";
_l_prio.setText(BA.ObjectToCharSequence("0"));
 //BA.debugLineNum = 3569;BA.debugLine="L_SECUND.Text = \"0\"";
_l_secund.setText(BA.ObjectToCharSequence("0"));
 //BA.debugLineNum = 3570;BA.debugLine="L_COMP.Text = \"0\"";
_l_comp.setText(BA.ObjectToCharSequence("0"));
 };
 //BA.debugLineNum = 3573;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select  COUNT";
_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*/ .ExecQuery("Select  COUNT(*) AS CUANTOS FROM PEDIDO WHERE PE_CEDIS = PE_PROID ")));
 //BA.debugLineNum = 3574;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 3575;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
if ((double)(Double.parseDouble(_c.GetString("CUANTOS")))>0) { 
 //BA.debugLineNum = 3576;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"Select  sum(";
_d = (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 ")));
 //BA.debugLineNum = 3577;BA.debugLine="d.Position = 0";
_d.setPosition((int) (0));
 //BA.debugLineNum = 3578;BA.debugLine="L_CTE_PROMO.Text = d.GetString(\"CUANTOS\")";
_l_cte_promo.setText(BA.ObjectToCharSequence(_d.GetString("CUANTOS")));
 //BA.debugLineNum = 3579;BA.debugLine="d.Close";
_d.Close();
 //BA.debugLineNum = 3580;BA.debugLine="L_REDEN_PROMO.TEXT = Round2(L_VISITCC.Text / L_C";
_l_reden_promo.setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(_l_visitcc.getText()))/(double)(double)(Double.parseDouble(_l_cte_promo.getText())),(int) (2))));
 }else {
 //BA.debugLineNum = 3582;BA.debugLine="L_CTE_PROMO.Text = 0";
_l_cte_promo.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3583;BA.debugLine="L_REDEN_PROMO.Text = 0";
_l_reden_promo.setText(BA.ObjectToCharSequence(0));
 };
 //BA.debugLineNum = 3585;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 3586;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"Select  COUNT";
_d = (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 ")));
 //BA.debugLineNum = 3587;BA.debugLine="d.Position = 0";
_d.setPosition((int) (0));
 //BA.debugLineNum = 3588;BA.debugLine="L_LIN_TICK.Text = Round2(d.GetString(\"CUANTOS\") /";
_l_lin_tick.setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(_d.GetString("CUANTOS")))/(double)(double)(Double.parseDouble(_l_visitcc.getText())),(int) (2))));
 //BA.debugLineNum = 3589;BA.debugLine="d.Close";
_d.Close();
 //BA.debugLineNum = 3591;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"Select  count";
_d = (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 ")));
 //BA.debugLineNum = 3592;BA.debugLine="d.Position = 0";
_d.setPosition((int) (0));
 //BA.debugLineNum = 3593;BA.debugLine="If d.GetString(\"CUANTOS\") > 0 Then";
if ((double)(Double.parseDouble(_d.GetString("CUANTOS")))>0) { 
 }else {
 //BA.debugLineNum = 3601;BA.debugLine="l_monto_c1.Text = 4000";
_l_monto_c1.setText(BA.ObjectToCharSequence(4000));
 //BA.debugLineNum = 3602;BA.debugLine="l_monto_c2.Text = 2000";
_l_monto_c2.setText(BA.ObjectToCharSequence(2000));
 //BA.debugLineNum = 3603;BA.debugLine="l_monto_c3.Text = 1000";
_l_monto_c3.setText(BA.ObjectToCharSequence(1000));
 };
 //BA.debugLineNum = 3605;BA.debugLine="d.Close";
_d.Close();
 //BA.debugLineNum = 3610;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")));
 //BA.debugLineNum = 3612;BA.debugLine="If s3.RowCount > 0 Then";
if (_s3.getRowCount()>0) { 
 //BA.debugLineNum = 3613;BA.debugLine="Private total1 As String = 0";
_total1 = BA.NumberToString(0);
 //BA.debugLineNum = 3614;BA.debugLine="For i = 0 To s3.RowCount - 1";
{
final int step188 = 1;
final int limit188 = (int) (_s3.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit188 ;_i = _i + step188 ) {
 //BA.debugLineNum = 3615;BA.debugLine="s3.Position = i";
_s3.setPosition(_i);
 //BA.debugLineNum = 3617;BA.debugLine="total1 = total1 + Subs.calculaTotalConPromoXRan";
_total1 = BA.NumberToString((double)(Double.parseDouble(_total1))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango /*String*/ (ba,_s3.GetString("PE_CLIENTE")))));
 }
};
 //BA.debugLineNum = 3621;BA.debugLine="L_REAL.Text = NumberFormat2( total1,0,2,2,False)";
_l_real.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total1)),(int) (0),(int) (2),(int) (2),__c.False)));
 }else {
 //BA.debugLineNum = 3623;BA.debugLine="L_REAL.Text = 0";
_l_real.setText(BA.ObjectToCharSequence(0));
 };
 //BA.debugLineNum = 3627;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")));
 //BA.debugLineNum = 3629;BA.debugLine="If s5.RowCount > 0 Then";
if (_s5.getRowCount()>0) { 
 //BA.debugLineNum = 3630;BA.debugLine="Private total4 As String = 0";
_total4 = BA.NumberToString(0);
 //BA.debugLineNum = 3631;BA.debugLine="For i = 0 To s5.RowCount - 1";
{
final int step199 = 1;
final int limit199 = (int) (_s5.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit199 ;_i = _i + step199 ) {
 //BA.debugLineNum = 3632;BA.debugLine="s5.Position = i";
_s5.setPosition(_i);
 //BA.debugLineNum = 3634;BA.debugLine="total4 = total4 + Subs.calculaTotalConPromoXRan";
_total4 = BA.NumberToString((double)(Double.parseDouble(_total4))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango1 /*String*/ (ba,_s5.GetString("PE_CLIENTE")))));
 }
};
 //BA.debugLineNum = 3638;BA.debugLine="l_preacordada.Text = NumberFormat2(total4,0,2,2,";
_l_preacordada.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total4)),(int) (0),(int) (2),(int) (2),__c.False)));
 }else {
 //BA.debugLineNum = 3640;BA.debugLine="l_preacordada.Text = 0";
_l_preacordada.setText(BA.ObjectToCharSequence(0));
 };
 //BA.debugLineNum = 3643;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")));
 //BA.debugLineNum = 3645;BA.debugLine="If s6.RowCount > 0 Then";
if (_s6.getRowCount()>0) { 
 //BA.debugLineNum = 3646;BA.debugLine="Private total3 As String = 0";
_total3 = BA.NumberToString(0);
 //BA.debugLineNum = 3647;BA.debugLine="For i = 0 To s6.RowCount - 1";
{
final int step210 = 1;
final int limit210 = (int) (_s6.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit210 ;_i = _i + step210 ) {
 //BA.debugLineNum = 3648;BA.debugLine="s6.Position = i";
_s6.setPosition(_i);
 //BA.debugLineNum = 3650;BA.debugLine="total3 = total3 + Subs.calculaTotalConPromoXRan";
_total3 = BA.NumberToString((double)(Double.parseDouble(_total3))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango2 /*String*/ (ba,_s6.GetString("PE_CLIENTE")))));
 }
};
 //BA.debugLineNum = 3654;BA.debugLine="l_prevtotal.Text = NumberFormat2(total3,0,2,2,Fa";
_l_prevtotal.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total3)),(int) (0),(int) (2),(int) (2),__c.False)));
 }else {
 //BA.debugLineNum = 3656;BA.debugLine="l_prevtotal.Text = 0";
_l_prevtotal.setText(BA.ObjectToCharSequence(0));
 };
 //BA.debugLineNum = 3660;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(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')")));
 //BA.debugLineNum = 3661;BA.debugLine="If s7.RowCount > 0 Then";
if (_s7.getRowCount()>0) { 
 //BA.debugLineNum = 3662;BA.debugLine="Dim totalstick As Double = 0";
_totalstick = 0;
 //BA.debugLineNum = 3663;BA.debugLine="For sfsdf = 0 To s7.RowCount -1";
{
final int step221 = 1;
final int limit221 = (int) (_s7.getRowCount()-1);
_sfsdf = (int) (0) ;
for (;_sfsdf <= limit221 ;_sfsdf = _sfsdf + step221 ) {
 //BA.debugLineNum = 3664;BA.debugLine="s7.Position= sfsdf";
_s7.setPosition(_sfsdf);
 //BA.debugLineNum = 3665;BA.debugLine="Log(\"ENTRE AQUI\")";
__c.LogImpl("45046618","ENTRE AQUI",0);
 //BA.debugLineNum = 3666;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")))+"'"))));
 //BA.debugLineNum = 3667;BA.debugLine="s8.Position = 0";
_s8.setPosition((int) (0));
 //BA.debugLineNum = 3668;BA.debugLine="totalstick = totalstick + (s7.GetString(\"PE_CAN";
_totalstick = _totalstick+((double)(Double.parseDouble(_s7.GetString("PE_CANT")))*(double)(Double.parseDouble(_s8.GetString("CAT_GP_CONVERSION3"))));
 //BA.debugLineNum = 3669;BA.debugLine="Log(totalstick)";
__c.LogImpl("45046622",BA.NumberToString(_totalstick),0);
 }
};
 //BA.debugLineNum = 3671;BA.debugLine="Dim totaltotaltot As Int = totalstick/200";
_totaltotaltot = (int) (_totalstick/(double)200);
 //BA.debugLineNum = 3672;BA.debugLine="l_ru_pri.Text = totaltotaltot";
_l_ru_pri.setText(BA.ObjectToCharSequence(_totaltotaltot));
 }else {
 //BA.debugLineNum = 3674;BA.debugLine="l_ru_pri.Text = 0";
_l_ru_pri.setText(BA.ObjectToCharSequence(0));
 };
 //BA.debugLineNum = 3677;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(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 = 'PARTNERSHIP')")));
 //BA.debugLineNum = 3678;BA.debugLine="If s0.RowCount > 0 Then";
if (_s0.getRowCount()>0) { 
 //BA.debugLineNum = 3680;BA.debugLine="Dim pp As Double = 0";
_pp = 0;
 //BA.debugLineNum = 3681;BA.debugLine="For lksahdjgsad = 0 To s0.RowCount -1";
{
final int step237 = 1;
final int limit237 = (int) (_s0.getRowCount()-1);
_lksahdjgsad = (int) (0) ;
for (;_lksahdjgsad <= limit237 ;_lksahdjgsad = _lksahdjgsad + step237 ) {
 //BA.debugLineNum = 3682;BA.debugLine="s0.Position = lksahdjgsad";
_s0.setPosition(_lksahdjgsad);
 //BA.debugLineNum = 3683;BA.debugLine="Dim s9 As Cursor = B4XPages.MainPage.skmt.ExecQ";
_s9 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s9 = (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)(_s0.GetString("PE_PROID")))+"'"))));
 //BA.debugLineNum = 3684;BA.debugLine="s9.Position = 0";
_s9.setPosition((int) (0));
 //BA.debugLineNum = 3686;BA.debugLine="pp = pp + (s0.GetString(\"PE_CANT\")* s9.GetStrin";
_pp = _pp+((double)(Double.parseDouble(_s0.GetString("PE_CANT")))*(double)(Double.parseDouble(_s9.GetString("CAT_GP_CONVERSION3"))));
 }
};
 //BA.debugLineNum = 3690;BA.debugLine="L_REAL.Text = NumberFormat2(pp,0,2,2,False)";
_l_real.setText(BA.ObjectToCharSequence(__c.NumberFormat2(_pp,(int) (0),(int) (2),(int) (2),__c.False)));
 }else {
 //BA.debugLineNum = 3692;BA.debugLine="L_REAL.Text = 0";
_l_real.setText(BA.ObjectToCharSequence(0));
 };
 //BA.debugLineNum = 3695;BA.debugLine="L_NES.Text = 0";
_l_nes.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3696;BA.debugLine="l_ru_sup.Text = 0";
_l_ru_sup.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3697;BA.debugLine="L_ALCANCE.Text = 0";
_l_alcance.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3698;BA.debugLine="L_VPLAN.Text = 0";
_l_vplan.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3699;BA.debugLine="L_VREAL.Text = 0";
_l_vreal.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3700;BA.debugLine="L_EFEC_VIS.Text = 0";
_l_efec_vis.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3701;BA.debugLine="L_VISITCC.Text = 0";
_l_visitcc.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3702;BA.debugLine="L_EFEC_PV.Text = 0";
_l_efec_pv.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3703;BA.debugLine="L_EFEC_PURA.Text = 0";
_l_efec_pura.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3704;BA.debugLine="l_preventa.Text = 0";
_l_preventa.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3705;BA.debugLine="l_futura.Text = 0";
_l_futura.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3706;BA.debugLine="Label13.Text = 0";
_label13.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3707;BA.debugLine="Label19.Text = 0";
_label19.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3708;BA.debugLine="Label21.Text = 0";
_label21.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3711;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')")));
 //BA.debugLineNum = 3712;BA.debugLine="If s0.RowCount > 0 Then";
if (_s0.getRowCount()>0) { 
 //BA.debugLineNum = 3713;BA.debugLine="s0.Position = 0";
_s0.setPosition((int) (0));
 //BA.debugLineNum = 3715;BA.debugLine="Label33.Text = s0.GetString(\"PE_CANT\")";
_label33.setText(BA.ObjectToCharSequence(_s0.GetString("PE_CANT")));
 }else {
 //BA.debugLineNum = 3717;BA.debugLine="Label33.Text = 0";
_label33.setText(BA.ObjectToCharSequence(0));
 };
 //BA.debugLineNum = 3720;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")));
 //BA.debugLineNum = 3722;BA.debugLine="If s5.RowCount > 0 Then";
if (_s5.getRowCount()>0) { 
 //BA.debugLineNum = 3723;BA.debugLine="Private total4 As String = 0";
_total4 = BA.NumberToString(0);
 //BA.debugLineNum = 3724;BA.debugLine="For i = 0 To s5.RowCount - 1";
{
final int step271 = 1;
final int limit271 = (int) (_s5.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit271 ;_i = _i + step271 ) {
 //BA.debugLineNum = 3725;BA.debugLine="s5.Position = i";
_s5.setPosition(_i);
 //BA.debugLineNum = 3727;BA.debugLine="total4 = total4 + Subs.calculaTotalConPromoXRan";
_total4 = BA.NumberToString((double)(Double.parseDouble(_total4))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango5 /*String*/ (ba,_s5.GetString("PE_CLIENTE")))));
 }
};
 //BA.debugLineNum = 3731;BA.debugLine="Label35.Text = NumberFormat2(total4,0,2,2,False)";
_label35.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total4)),(int) (0),(int) (2),(int) (2),__c.False)));
 }else {
 //BA.debugLineNum = 3733;BA.debugLine="Label35.Text = 0";
_label35.setText(BA.ObjectToCharSequence(0));
 };
 //BA.debugLineNum = 3736;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')")));
 //BA.debugLineNum = 3737;BA.debugLine="If s0.RowCount > 0 Then";
if (_s0.getRowCount()>0) { 
 //BA.debugLineNum = 3738;BA.debugLine="s0.Position = 0";
_s0.setPosition((int) (0));
 //BA.debugLineNum = 3740;BA.debugLine="Label43.Text = s0.GetString(\"PE_CANT\")";
_label43.setText(BA.ObjectToCharSequence(_s0.GetString("PE_CANT")));
 }else {
 //BA.debugLineNum = 3742;BA.debugLine="Label43.Text = 0";
_label43.setText(BA.ObjectToCharSequence(0));
 };
 //BA.debugLineNum = 3745;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")));
 //BA.debugLineNum = 3747;BA.debugLine="If s5.RowCount > 0 Then";
if (_s5.getRowCount()>0) { 
 //BA.debugLineNum = 3748;BA.debugLine="Private total4 As String = 0";
_total4 = BA.NumberToString(0);
 //BA.debugLineNum = 3749;BA.debugLine="For i = 0 To s5.RowCount - 1";
{
final int step289 = 1;
final int limit289 = (int) (_s5.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit289 ;_i = _i + step289 ) {
 //BA.debugLineNum = 3750;BA.debugLine="s5.Position = i";
_s5.setPosition(_i);
 //BA.debugLineNum = 3752;BA.debugLine="total4 = total4 + Subs.calculaTotalConPromoXRan";
_total4 = BA.NumberToString((double)(Double.parseDouble(_total4))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango6 /*String*/ (ba,_s5.GetString("PE_CLIENTE")))));
 }
};
 //BA.debugLineNum = 3756;BA.debugLine="Label51.Text = NumberFormat2(total4,0,2,2,False)";
_label51.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total4)),(int) (0),(int) (2),(int) (2),__c.False)));
 }else {
 //BA.debugLineNum = 3758;BA.debugLine="Label51.Text = 0";
_label51.setText(BA.ObjectToCharSequence(0));
 };
 //BA.debugLineNum = 3761;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")));
 //BA.debugLineNum = 3762;BA.debugLine="If s6.RowCount > 0 Then";
if (_s6.getRowCount()>0) { 
 //BA.debugLineNum = 3763;BA.debugLine="s6.Position = 0";
_s6.setPosition((int) (0));
 //BA.debugLineNum = 3764;BA.debugLine="L_NES.Text = NumberFormat2(s6.GetString(\"COB_VOL";
_l_nes.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_s6.GetString("COB_VOLUMEN"))),(int) (0),(int) (0),(int) (0),__c.False)));
 //BA.debugLineNum = 3765;BA.debugLine="L_EFEC_PURA.Text = NumberFormat2(s6.GetString(\"C";
_l_efec_pura.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_s6.GetString("COB_MARCAE"))),(int) (0),(int) (0),(int) (0),__c.False)));
 //BA.debugLineNum = 3766;BA.debugLine="L_VISITCC.Text = NumberFormat2(s6.GetString(\"COB";
_l_visitcc.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_s6.GetString("COB_PORTAFOLIO"))),(int) (0),(int) (0),(int) (0),__c.False)));
 //BA.debugLineNum = 3767;BA.debugLine="l_ru_sup.Text = NumberFormat2(s6.GetString(\"COB_";
_l_ru_sup.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_s6.GetString("COB_OBJPP"))),(int) (0),(int) (0),(int) (0),__c.False)));
 //BA.debugLineNum = 3768;BA.debugLine="l_futura.Text = NumberFormat2(s6.GetString(\"COB_";
_l_futura.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_s6.GetString("COB_GEV"))),(int) (0),(int) (0),(int) (0),__c.False)));
 }else {
 //BA.debugLineNum = 3770;BA.debugLine="L_NES.Text = 0";
_l_nes.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3771;BA.debugLine="L_EFEC_PURA.Text = 0";
_l_efec_pura.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3772;BA.debugLine="L_VISITCC.Text = 0";
_l_visitcc.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3773;BA.debugLine="l_ru_sup.Text = 0";
_l_ru_sup.setText(BA.ObjectToCharSequence(0));
 //BA.debugLineNum = 3774;BA.debugLine="l_futura.Text = 0";
_l_futura.setText(BA.ObjectToCharSequence(0));
 };
 //BA.debugLineNum = 3777;BA.debugLine="End Sub";
return "";
}
public String  _resumen_click() throws Exception{
 //BA.debugLineNum = 3300;BA.debugLine="Sub Resumen_Click";
 //BA.debugLineNum = 3301;BA.debugLine="P_RESUMEN.Visible = True";
_p_resumen.setVisible(__c.True);
 //BA.debugLineNum = 3309;BA.debugLine="End Sub";
return "";
}
public String  _subir_click() throws Exception{
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;
 //BA.debugLineNum = 638;BA.debugLine="Sub Subir_Click";
 //BA.debugLineNum = 639;BA.debugLine="checaPedido";
_checapedido();
 //BA.debugLineNum = 640;BA.debugLine="CARGA = \"SUBIR\"";
_carga = "SUBIR";
 //BA.debugLineNum = 641;BA.debugLine="P1.Visible = True";
_p1.setVisible(__c.True);
 //BA.debugLineNum = 642;BA.debugLine="P1.BringToFront";
_p1.BringToFront();
 //BA.debugLineNum = 644;BA.debugLine="NUEVO.Visible =False";
_nuevo.setVisible(__c.False);
 //BA.debugLineNum = 645;BA.debugLine="BUSCA.Visible=False";
_busca.setVisible(__c.False);
 //BA.debugLineNum = 646;BA.debugLine="connecta.Visible=False";
_connecta.setVisible(__c.False);
 //BA.debugLineNum = 647;BA.debugLine="Subir.Visible=False";
_subir.setVisible(__c.False);
 //BA.debugLineNum = 648;BA.debugLine="cargar.Visible=False";
_cargar.setVisible(__c.False);
 //BA.debugLineNum = 649;BA.debugLine="L_P_1.Visible = False";
_l_p_1.setVisible(__c.False);
 //BA.debugLineNum = 650;BA.debugLine="S_CC.Visible = False";
_s_cc.setVisible(__c.False);
 //BA.debugLineNum = 651;BA.debugLine="L_P_3.Visible = False";
_l_p_3.setVisible(__c.False);
 //BA.debugLineNum = 652;BA.debugLine="S_CH.Visible = False";
_s_ch.setVisible(__c.False);
 //BA.debugLineNum = 653;BA.debugLine="PB1.Visible = False";
_pb1.setVisible(__c.False);
 //BA.debugLineNum = 654;BA.debugLine="Resumen.Visible= False";
_resumen.setVisible(__c.False);
 //BA.debugLineNum = 655;BA.debugLine="l_visitartotal.Visible = False";
_l_visitartotal.setVisible(__c.False);
 //BA.debugLineNum = 656;BA.debugLine="de.Visible = False";
_de.setVisible(__c.False);
 //BA.debugLineNum = 657;BA.debugLine="l_faltan.Visible = False";
_l_faltan.setVisible(__c.False);
 //BA.debugLineNum = 658;BA.debugLine="l_visitas.Visible = False";
_l_visitas.setVisible(__c.False);
 //BA.debugLineNum = 660;BA.debugLine="p_principal.Visible = False";
_p_principal.setVisible(__c.False);
 //BA.debugLineNum = 661;BA.debugLine="Subs.panelVisible(P1, 0, 0)";
_subs._panelvisible /*String*/ (ba,_p1,(int) (0),(int) (0));
 //BA.debugLineNum = 662;BA.debugLine="Subs.centraPanel(P1, Root.Width)";
_subs._centrapanel /*String*/ (ba,_p1,_root.getWidth());
 //BA.debugLineNum = 663;BA.debugLine="Subs.centraPanelV(P1, Root.Height)";
_subs._centrapanelv /*String*/ (ba,_p1,_root.getHeight());
 //BA.debugLineNum = 664;BA.debugLine="B4XPages.MainPage.reqManager.trackInit";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._trackinit /*String*/ ();
 //BA.debugLineNum = 666;BA.debugLine="L_P_2.Text = \"Envio de Pedidos\"";
_l_p_2.setText(BA.ObjectToCharSequence("Envio de Pedidos"));
 //BA.debugLineNum = 667;BA.debugLine="L_P_3.Text = \"Envio de Pedidos\"";
_l_p_3.setText(BA.ObjectToCharSequence("Envio de Pedidos"));
 //BA.debugLineNum = 668;BA.debugLine="S_CH.Text = \"EN PROCESO\"";
_s_ch.setText(BA.ObjectToCharSequence("EN PROCESO"));
 //BA.debugLineNum = 669;BA.debugLine="S_CP.Text = \"EN PROCESO\"";
_s_cp.setText(BA.ObjectToCharSequence("EN PROCESO"));
 //BA.debugLineNum = 670;BA.debugLine="B_OK_PAS.Text = \"ENVIANDO\"";
_b_ok_pas.setText(BA.ObjectToCharSequence("ENVIANDO"));
 //BA.debugLineNum = 671;BA.debugLine="PB1.Progress = 0";
_pb1.setProgress((int) (0));
 //BA.debugLineNum = 672;BA.debugLine="PB2.Progress = 0";
_pb2.setProgress((int) (0));
 //BA.debugLineNum = 678;BA.debugLine="PASO = 1";
_paso = BA.NumberToString(1);
 //BA.debugLineNum = 680;BA.debugLine="If PASO =1 Then";
if ((_paso).equals(BA.NumberToString(1))) { 
 //BA.debugLineNum = 681;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)");
 //BA.debugLineNum = 682;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuar";
_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*/ .ExecQuery("select usuario from usuarioa")));
 //BA.debugLineNum = 683;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 684;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
_usuario = _c.GetString("USUARIO");
 //BA.debugLineNum = 685;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 686;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select HGDAT";
_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*/ .ExecQuery("select HGDATE, HGLAT, HGLON from HIST_GPS")));
 //BA.debugLineNum = 687;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 688;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step41 = 1;
final int limit41 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit41 ;_i = _i + step41 ) {
 //BA.debugLineNum = 689;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 690;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 691;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 692;BA.debugLine="cmd.Name = \"UPDATE_GUNA_ACTUAL2_GPS\"";
_cmd.Name /*String*/  = "UPDATE_GUNA_ACTUAL2_GPS";
 //BA.debugLineNum = 693;BA.debugLine="cmd.Parameters = Array As Object(NumberFormat2";
_cmd.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)(_l_cuantost.getText()),(Object)(_l_cuantosc.getText()),(Object)(_l_porvisitar.getText()),(Object)(_c.GetString("hglat")),(Object)(_c.GetString("hglon")),(Object)(_batterystatus[(int) (0)]),(Object)(_lpt),(Object)(_steyin),(Object)(_steyout),(Object)(_almacen),(Object)(_l_ruta.getText())};
 //BA.debugLineNum = 694;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("inst_visitas"));
 }
};
 };
 //BA.debugLineNum = 697;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 700;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT PC_CL";
_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*/ .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 ")));
 //BA.debugLineNum = 701;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"SELECT COUNT";
_d = (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 ")));
 //BA.debugLineNum = 702;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 703;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step54 = 1;
final int limit54 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit54 ;_i = _i + step54 ) {
 //BA.debugLineNum = 704;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 705;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 706;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 707;BA.debugLine="cmd.Name = \"insert_pedidos_GV3\"";
_cmd.Name /*String*/  = "insert_pedidos_GV3";
 //BA.debugLineNum = 708;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("PC_CLIENTE")),(Object)(_c.GetString("PC_FECHA")),(Object)(_c.GetString("PC_USER")),(Object)(_c.GetString("PC_NOART")),(Object)(_c.GetString("PC_MONTO")),(Object)(_c.GetString("PC_LON")),(Object)(_c.GetString("PC_LAT")),(Object)(_almacen),(Object)(_l_ruta.getText()),(Object)(_c.GetString("PC_COSTO_SIN")),(Object)(_c.GetString("PC_FACTURA"))};
 //BA.debugLineNum = 709;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_pedidos"));
 }
};
 };
 //BA.debugLineNum = 712;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 713;BA.debugLine="d.Position=0";
_d.setPosition((int) (0));
 //BA.debugLineNum = 714;BA.debugLine="cuantos_pedidosc = D.GetString(\"CUANTOS_PEDIDOSC";
_cuantos_pedidosc = _d.GetString("CUANTOS_PEDIDOSC");
 //BA.debugLineNum = 715;BA.debugLine="d.Close";
_d.Close();
 //BA.debugLineNum = 719;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT CODIG";
_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*/ .ExecQuery("SELECT CODIGOKMTS, CODIGOB, LAT, LON FROM HIST_CODIGO_BARRAS")));
 //BA.debugLineNum = 720;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 721;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step69 = 1;
final int limit69 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit69 ;_i = _i + step69 ) {
 //BA.debugLineNum = 722;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 723;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 724;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 725;BA.debugLine="cmd.Name = \"insert_QR_2_GV2\"";
_cmd.Name /*String*/  = "insert_QR_2_GV2";
 //BA.debugLineNum = 726;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("CODIGOKMTS")),(Object)(_c.GetString("CODIGOB")),(Object)(_c.GetString("LON")),(Object)(_c.GetString("LAT")),(Object)(_almacen),(Object)(_l_ruta.getText())};
 //BA.debugLineNum = 727;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_QR2"));
 }
};
 };
 //BA.debugLineNum = 730;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 733;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT * FRO";
_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*/ .ExecQuery("SELECT * FROM PLAN_LEALTAD WHERE DESCARGADO IS NULL")));
 //BA.debugLineNum = 734;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 735;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step81 = 1;
final int limit81 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit81 ;_i = _i + step81 ) {
 //BA.debugLineNum = 736;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 737;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 738;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 739;BA.debugLine="cmd.Name = \"insert_plan_lealtad_GUNA\"";
_cmd.Name /*String*/  = "insert_plan_lealtad_GUNA";
 //BA.debugLineNum = 740;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("PL_BANDERA")),(Object)(_c.GetString("PL_CLIENTE")),(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(_subs._traeruta /*String*/ (ba))};
 //BA.debugLineNum = 741;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("insPlanLealtad"));
 }
};
 };
 //BA.debugLineNum = 744;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 747;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT * FRO";
_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*/ .ExecQuery("SELECT * FROM ENCUESTAS_BAT")));
 //BA.debugLineNum = 748;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 749;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step93 = 1;
final int limit93 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit93 ;_i = _i + step93 ) {
 //BA.debugLineNum = 750;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 751;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 752;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 753;BA.debugLine="cmd.Name = \"insert_encuestas_bat_guna\"";
_cmd.Name /*String*/  = "insert_encuestas_bat_guna";
 //BA.debugLineNum = 754;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("CLIENTE")),(Object)(_c.GetString("RUTA")),(Object)(_c.GetString("ALMACEN")),(Object)(_c.GetString("FECHA")),(Object)(_c.GetString("P1")),(Object)(_c.GetString("P2")),(Object)(_c.GetString("P3")),(Object)(_c.GetString("P4")),(Object)(_c.GetString("P5")),(Object)(_c.GetString("P6")),(Object)(_c.GetString("P7")),(Object)(_c.GetString("P8")),(Object)(_c.GetString("P9")),(Object)(_c.GetString("P10"))};
 //BA.debugLineNum = 755;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("INSENCUESTAS"));
 }
};
 };
 //BA.debugLineNum = 758;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 761;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT * FRO";
_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*/ .ExecQuery("SELECT * FROM COMENTARIOS WHERE DESCARGADO IS NULL")));
 //BA.debugLineNum = 762;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 763;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step105 = 1;
final int limit105 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit105 ;_i = _i + step105 ) {
 //BA.debugLineNum = 764;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 765;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 766;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 767;BA.debugLine="cmd.Name = \"insert_coments_GUNA2\"";
_cmd.Name /*String*/  = "insert_coments_GUNA2";
 //BA.debugLineNum = 768;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("COMENTARTIO")),(Object)(_c.GetString("CLIENTE")),(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(_subs._traeruta /*String*/ (ba)),(Object)(_c.GetInt("comentario_tmp"))};
 //BA.debugLineNum = 769;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("INS_coment"));
 }
};
 };
 //BA.debugLineNum = 772;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 774;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT * FROM CLIENTES";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM CLIENTES_NUEVOS")));
 //BA.debugLineNum = 775;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 776;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step117 = 1;
final int limit117 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit117 ;_i = _i + step117 ) {
 //BA.debugLineNum = 777;BA.debugLine="c.Position = i";
_c.setPosition(_i);
 //BA.debugLineNum = 778;BA.debugLine="Dim dia As Int = DateTime.GetDayOfWeek(DateTim";
_dia = __c.DateTime.GetDayOfWeek(__c.DateTime.getNow());
 //BA.debugLineNum = 779;BA.debugLine="If dia = 2  Then";
if (_dia==2) { 
 //BA.debugLineNum = 780;BA.debugLine="Dim dialetra As String = \"LUNES\"";
_dialetra = "LUNES";
 }else if(_dia==3) { 
 //BA.debugLineNum = 782;BA.debugLine="Dim dialetra As String = \"MARTES\"";
_dialetra = "MARTES";
 }else if(_dia==4) { 
 //BA.debugLineNum = 784;BA.debugLine="Dim dialetra As String = \"MIERCOLES\"";
_dialetra = "MIERCOLES";
 }else if(_dia==5) { 
 //BA.debugLineNum = 786;BA.debugLine="Dim dialetra As String = \"JUEVES\"";
_dialetra = "JUEVES";
 }else if(_dia==6) { 
 //BA.debugLineNum = 788;BA.debugLine="Dim dialetra As String = \"VIERNES\"";
_dialetra = "VIERNES";
 }else if(_dia==7) { 
 //BA.debugLineNum = 790;BA.debugLine="Dim dialetra As String = \"SABADO\"";
_dialetra = "SABADO";
 };
 //BA.debugLineNum = 792;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 793;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 794;BA.debugLine="cmd.Name = \"insert_clientesnuevos_GUNA2\"";
_cmd.Name /*String*/  = "insert_clientesnuevos_GUNA2";
 //BA.debugLineNum = 795;BA.debugLine="Log(c.GetString(\"CN_ID\")&\"    ,\"& c.GetString(";
__c.LogImpl("43866781",_c.GetString("CN_ID")+"    ,"+_c.GetString("CN_FECHA")+"    ,"+_c.GetString("CN_USER")+"    ,"+_c.GetString("CN_LAT")+"    ,"+_c.GetString("CN_LON")+"    ,"+_c.GetString("CN_NOMBRE")+"    ,"+_c.GetString("CN_DIRECCION")+"    ,"+_almacen+_c.GetString("CN_RUTA")+"    ,"+"En espera"+_c.GetString("CN_GIRO")+"    ,"+_dialetra+_c.GetString("CN_SOLICITA")+"    ,"+_c.GetString("CN_COLONIA")+"    ,"+_c.GetString("CN_TELEFONO")+" ,"+_c.GetString("CN_CALLE1")+" ,"+_c.GetString("CN_CALLE2"),0);
 //BA.debugLineNum = 796;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("CN_ID")),(Object)(_c.GetString("CN_FECHA")),(Object)(_c.GetString("CN_USER")),(Object)(_c.GetString("CN_LAT")),(Object)(_c.GetString("CN_LON")),(Object)(_c.GetString("CN_NOMBRE")),(Object)(_c.GetString("CN_DIRECCION")),(Object)(_almacen),(Object)(_c.GetString("CN_RUTA")),(Object)("En espera"),(Object)(_c.GetString("CN_GIRO")),(Object)(_dialetra),(Object)(_c.GetString("CN_SOLICITA")),(Object)(_c.GetString("CN_COLONIA")),(Object)(_c.GetString("CN_TELEFONO")),(Object)(_c.GetString("CN_CP")),(Object)(_c.GetString("CN_CALLE1")),(Object)(_c.GetString("CN_CALLE2")),(Object)(_c.GetString("CN_NUMEROINT")),(Object)(_c.GetString("CN_NUMEROEXT")),(Object)(_c.GetString("CN_REFERENCIA"))};
 //BA.debugLineNum = 797;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("inst_clientesn"));
 }
};
 };
 //BA.debugLineNum = 800;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 802;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")));
 //BA.debugLineNum = 803;BA.debugLine="If fotomostrar1.RowCount>0 Then";
if (_fotomostrar1.getRowCount()>0) { 
 //BA.debugLineNum = 804;BA.debugLine="For i=0 To fotomostrar1.RowCount -1";
{
final int step144 = 1;
final int limit144 = (int) (_fotomostrar1.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit144 ;_i = _i + step144 ) {
 //BA.debugLineNum = 805;BA.debugLine="fotomostrar1.Position=i";
_fotomostrar1.setPosition(_i);
 //BA.debugLineNum = 806;BA.debugLine="Dim fotoenvio() As Byte = fotomostrar1.GetBlob";
_fotoenvio = _fotomostrar1.GetBlob("foto");
 //BA.debugLineNum = 807;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 808;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 809;BA.debugLine="cmd.Name = \"UPDATE_FOTO_GUNA\"";
_cmd.Name /*String*/  = "UPDATE_FOTO_GUNA";
 //BA.debugLineNum = 810;BA.debugLine="cmd.Parameters = Array As Object(fotoenvio,fot";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_fotoenvio),(Object)(_fotomostrar1.GetString("CAT_CL_CODIGO")),(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(_subs._traeruta /*String*/ (ba))};
 //BA.debugLineNum = 811;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("INS_coment"));
 }
};
 };
 //BA.debugLineNum = 814;BA.debugLine="fotomostrar1.Close";
_fotomostrar1.Close();
 //BA.debugLineNum = 816;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT CAT_C";
_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*/ .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'")));
 //BA.debugLineNum = 817;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 818;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step157 = 1;
final int limit157 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit157 ;_i = _i + step157 ) {
 //BA.debugLineNum = 819;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 822;BA.debugLine="foto1 = c.GetBlob(\"CAT_CL_FOTO\")";
_foto1 = _c.GetBlob("CAT_CL_FOTO");
 //BA.debugLineNum = 823;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 824;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 825;BA.debugLine="cmd.Name = \"insert_QR_GV2\"";
_cmd.Name /*String*/  = "insert_QR_GV2";
 //BA.debugLineNum = 826;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("CAT_CL_NUM_SERIEFISICO")),(Object)(_c.GetString("CAT_CL_CODIGO")),(Object)(_c.GetString("CAT_CL_LONG")),(Object)(_c.GetString("CAT_CL_LAT")),(Object)(_almacen),(Object)(_l_ruta.getText()),(Object)(_foto1)};
 //BA.debugLineNum = 827;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_QR"));
 }
};
 };
 //BA.debugLineNum = 830;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 833;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CAT_C";
_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*/ .ExecQuery("Select CAT_CL_ATIENDE1, CAT_CL_CODIGO from kmt_info3 where CAT_CL_CODIGO IN (SELECT CLIENTE FROM ATIENDE)")));
 //BA.debugLineNum = 834;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 835;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step170 = 1;
final int limit170 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit170 ;_i = _i + step170 ) {
 //BA.debugLineNum = 836;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 837;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 838;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 839;BA.debugLine="cmd.Name = \"update_atiende_guna\"";
_cmd.Name /*String*/  = "update_atiende_guna";
 //BA.debugLineNum = 840;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("CAT_CL_ATIENDE1")),(Object)(_c.GetString("CAT_CL_CODIGO")),(Object)(_almacen),(Object)(_subs._traeruta2 /*String*/ (ba,_c.GetString("CAT_CL_CODIGO")))};
 //BA.debugLineNum = 841;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("up_coordenadas"));
 }
};
 };
 //BA.debugLineNum = 844;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 848;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select * fro";
_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*/ .ExecQuery("Select * from CODIGOS_CREDITO where BANDERA = 1")));
 //BA.debugLineNum = 849;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 850;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step182 = 1;
final int limit182 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit182 ;_i = _i + step182 ) {
 //BA.debugLineNum = 851;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 852;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 853;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 854;BA.debugLine="cmd.Name = \"update_ventacredito_guna\"";
_cmd.Name /*String*/  = "update_ventacredito_guna";
 //BA.debugLineNum = 855;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("BANDERA")),(Object)(_c.GetString("CLIENTE")),(Object)(_almacen),(Object)(_subs._traeruta2 /*String*/ (ba,_c.GetString("CLIENTE")))};
 //BA.debugLineNum = 856;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("up_coordenadas"));
 }
};
 };
 //BA.debugLineNum = 859;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 862;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CAT_C";
_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*/ .ExecQuery("Select CAT_CL_TELEFONO, CAT_CL_CODIGO from kmt_info3 where CAT_CL_CODIGO IN (SELECT CLIENTE FROM ATIENDE)")));
 //BA.debugLineNum = 863;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 864;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step194 = 1;
final int limit194 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit194 ;_i = _i + step194 ) {
 //BA.debugLineNum = 865;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 866;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 867;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 868;BA.debugLine="cmd.Name = \"update_telefono_guna\"";
_cmd.Name /*String*/  = "update_telefono_guna";
 //BA.debugLineNum = 869;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("CAT_CL_TELEFONO")),(Object)(_c.GetString("CAT_CL_CODIGO")),(Object)(_almacen),(Object)(_subs._traeruta2 /*String*/ (ba,_c.GetString("CAT_CL_CODIGO")))};
 //BA.debugLineNum = 870;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("up_coordenadas"));
 }
};
 };
 //BA.debugLineNum = 873;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 876;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"))));
 //BA.debugLineNum = 877;BA.debugLine="Do While h.nextrow";
while (_h.NextRow()) {
 //BA.debugLineNum = 878;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 879;BA.debugLine="Private eventob As String = h.GetString(\"evento";
_eventob = _h.GetString("eventob");
 //BA.debugLineNum = 880;BA.debugLine="cmd.Name = \"mandaBitacora3_GUNA\"";
_cmd.Name /*String*/  = "mandaBitacora3_GUNA";
 //BA.debugLineNum = 882;BA.debugLine="Private clienteb As String = h.GetString(\"clien";
_clienteb = _h.GetString("clienteb");
 //BA.debugLineNum = 883;BA.debugLine="Private finb As String = h.GetString(\"finb\")";
_finb = _h.GetString("finb");
 //BA.debugLineNum = 884;BA.debugLine="Private nombreCliente As String =Subs. traeNomb";
_nombrecliente = _subs._traenombrecliente /*String*/ (ba,_h.GetString("clienteb"));
 //BA.debugLineNum = 885;BA.debugLine="If eventob = \"Llega a almacen\" Then";
if ((_eventob).equals("Llega a almacen")) { 
 //BA.debugLineNum = 886;BA.debugLine="nombreCliente = \"BOLETA\"";
_nombrecliente = "BOLETA";
 //BA.debugLineNum = 887;BA.debugLine="clienteb = \"\"";
_clienteb = "";
 //BA.debugLineNum = 888;BA.debugLine="finb = h.GetString(\"iniciob\")";
_finb = _h.GetString("iniciob");
 };
 //BA.debugLineNum = 892;BA.debugLine="If eventob = \"Salida almacen\" Then nombreClient";
if ((_eventob).equals("Salida almacen")) { 
_nombrecliente = "CHECKLIST";};
 //BA.debugLineNum = 893;BA.debugLine="If eventob = \"Fin Día\" Then nombreCliente = \"FI";
if ((_eventob).equals("Fin Día")) { 
_nombrecliente = "FIN DIA";};
 //BA.debugLineNum = 894;BA.debugLine="If eventob = \"Carga día\" Then nombreCliente = \"";
if ((_eventob).equals("Carga día")) { 
_nombrecliente = "CARGA DIA";};
 //BA.debugLineNum = 895;BA.debugLine="If eventob = \"Carga día suplencia\" Then nombreC";
if ((_eventob).equals("Carga día suplencia")) { 
_nombrecliente = _subs._traerutassup /*String*/ (ba);};
 //BA.debugLineNum = 899;BA.debugLine="cmd.Parameters = Array As Object(h.GetString(\"a";
_cmd.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"))};
 //BA.debugLineNum = 900;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("mandaBitacora"));
 }
;
 //BA.debugLineNum = 902;BA.debugLine="Log(\"MANDAMOS BITACORA\")";
__c.LogImpl("43866888","MANDAMOS BITACORA",0);
 //BA.debugLineNum = 904;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT HE_CL";
_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*/ .ExecQuery("SELECT HE_CLIE, HE_RES, HE_FECHA, HE_TIPO, HE_LAT, HE_LON, HE_FOTO FROM HIST_ENCUESTA")));
 //BA.debugLineNum = 905;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 906;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step227 = 1;
final int limit227 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit227 ;_i = _i + step227 ) {
 //BA.debugLineNum = 907;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 908;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 909;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 910;BA.debugLine="cmd.Name = \"insert_encuesta2_GUNA\"";
_cmd.Name /*String*/  = "insert_encuesta2_GUNA";
 //BA.debugLineNum = 912;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("HE_CLIE")),(Object)(_c.GetString("HE_RES")),(Object)(_c.GetString("HE_FECHA")),(Object)(_c.GetString("HE_TIPO")),(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(_subs._traeruta /*String*/ (ba)),(Object)(_c.GetString("HE_LAT")),(Object)(_c.GetString("HE_LON")),(Object)(""),(Object)(_c.GetBlob("HE_FOTO"))};
 //BA.debugLineNum = 913;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("inst_encuesta"));
 }
};
 };
 //BA.debugLineNum = 916;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 919;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT PE_C";
_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 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"})));
 //BA.debugLineNum = 920;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"SELECT COUNT";
_d = (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")));
 //BA.debugLineNum = 921;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 922;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step240 = 1;
final int limit240 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit240 ;_i = _i + step240 ) {
 //BA.debugLineNum = 923;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 924;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 925;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 926;BA.debugLine="cmd.Name = \"insert_pedido_GV2\"";
_cmd.Name /*String*/  = "insert_pedido_GV2";
 //BA.debugLineNum = 927;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("PE_CEDIS")),(Object)(_almacen),(Object)(_c.GetString("PE_COSTO_TOT")),(Object)(_c.GetString("PE_COSTOU")),(Object)(_c.GetString("PE_CANT")),(Object)(_c.GetString("PE_PRONOMBRE")),(Object)(_c.GetString("PE_PROID")),(Object)(_c.GetString("PE_CLIENTE")),(Object)(_c.GetString("PE_FECHA")),(Object)(_c.GetString("PE_USUARIO")),(Object)(_c.GetString("PE_RUTA")),(Object)(_c.GetString("PE_COSTO_SIN")),(Object)(_c.GetString("PE_DESC")),(Object)(_c.GetString("PE_FOLIO"))};
 //BA.debugLineNum = 928;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_pedido"));
 }
};
 };
 //BA.debugLineNum = 931;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 932;BA.debugLine="d.Position=0";
_d.setPosition((int) (0));
 //BA.debugLineNum = 934;BA.debugLine="cuantos_pedido = D.GetString(\"CUANTOS_PEDIDO\")";
_cuantos_pedido = _d.GetString("CUANTOS_PEDIDO");
 //BA.debugLineNum = 935;BA.debugLine="d.Close";
_d.Close();
 //BA.debugLineNum = 938;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT PE_R";
_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 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"})));
 //BA.debugLineNum = 939;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery($\"SELECT COUN";
_d = (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)))+"'"))));
 //BA.debugLineNum = 940;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 941;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step256 = 1;
final int limit256 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit256 ;_i = _i + step256 ) {
 //BA.debugLineNum = 942;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 943;BA.debugLine="If c.GetString(\"PE_RECCEDIS\") = \"\" Then";
if ((_c.GetString("PE_RECCEDIS")).equals("")) { 
 //BA.debugLineNum = 944;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 945;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 946;BA.debugLine="cmd.Name = \"insert_pedido_GV2\"";
_cmd.Name /*String*/  = "insert_pedido_GV2";
 //BA.debugLineNum = 947;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("PE_CEDIS")),(Object)(_almacen),(Object)(_c.GetString("PE_RECALCULOTOT")),(Object)(_c.GetString("PE_RECALCULO")),(Object)(_c.GetString("PE_CANT")),(Object)(_c.GetString("PE_PRONOMBRE")),(Object)(_c.GetString("PE_PROID")),(Object)(_c.GetString("PE_CLIENTE")),(Object)(_c.GetString("PE_FECHA")),(Object)(_c.GetString("PE_USUARIO")),(Object)(_c.GetString("PE_RUTA")),(Object)(_c.GetString("PE_COSTO_SIN")),(Object)(_c.GetString("PE_DESC")),(Object)(_c.GetString("PE_FOLIO"))};
 //BA.debugLineNum = 948;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(c";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_pedido"));
 }else {
 //BA.debugLineNum = 950;BA.debugLine="If c.GetString(\"PE_RECCANT\") = c.GetString(\"P";
if ((_c.GetString("PE_RECCANT")).equals(_c.GetString("PE_CANT"))) { 
 //BA.debugLineNum = 951;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 952;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 953;BA.debugLine="cmd.Name = \"insert_pedido_GV2\"";
_cmd.Name /*String*/  = "insert_pedido_GV2";
 //BA.debugLineNum = 954;BA.debugLine="cmd.Parameters = Array As Object(C.GetString";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("PE_RECCEDIS")),(Object)(_almacen),(Object)(_c.GetString("PE_RECALCULOTOT")),(Object)(_c.GetString("PE_RECALCULO")),(Object)(_c.GetString("PE_CANT")),(Object)(_c.GetString("PE_PRONOMBRE")),(Object)(_c.GetString("PE_PROID")),(Object)(_c.GetString("PE_CLIENTE")),(Object)(_c.GetString("PE_FECHA")),(Object)(_c.GetString("PE_USUARIO")),(Object)(_c.GetString("PE_RUTA")),(Object)(_c.GetString("PE_COSTO_SIN")),(Object)(_c.GetString("PE_DESC")),(Object)(_c.GetString("PE_FOLIO"))};
 //BA.debugLineNum = 955;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_pedido"));
 }else {
 //BA.debugLineNum = 958;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 959;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 960;BA.debugLine="cmd.Name = \"insert_pedido_GV2\"";
_cmd.Name /*String*/  = "insert_pedido_GV2";
 //BA.debugLineNum = 961;BA.debugLine="cmd.Parameters = Array As Object(C.GetString";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("PE_RECCEDIS")),(Object)(_almacen),(Object)(_c.GetString("PE_RECALCULOTOT")),(Object)(_c.GetString("PE_RECALCULO")),(Object)(_c.GetString("PE_RECCANT")),(Object)(_c.GetString("PE_PRONOMBRE")),(Object)(_c.GetString("PE_PROID")),(Object)(_c.GetString("PE_CLIENTE")),(Object)(_c.GetString("PE_FECHA")),(Object)(_c.GetString("PE_USUARIO")),(Object)(_c.GetString("PE_RUTA")),(Object)(_c.GetString("PE_COSTO_SIN")),(Object)(_c.GetString("PE_DESC")),(Object)(_c.GetString("PE_FOLIO"))};
 //BA.debugLineNum = 962;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_pedido"));
 //BA.debugLineNum = 964;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 965;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 966;BA.debugLine="cmd.Name = \"insert_pedido_GV2\"";
_cmd.Name /*String*/  = "insert_pedido_GV2";
 //BA.debugLineNum = 967;BA.debugLine="cmd.Parameters = Array As Object(C.GetString";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("PE_CEDIS")),(Object)(_almacen),(Object)(__c.NumberFormat2(((double)(Double.parseDouble(_c.GetString("PE_CANT")))-(double)(Double.parseDouble(_c.GetString("PE_RECCANT"))))*(double)(Double.parseDouble(_c.GetString("PE_COSTOU"))),(int) (1),(int) (2),(int) (2),__c.False)),(Object)(_c.GetString("PE_COSTOU")),(Object)(((double)(Double.parseDouble(_c.GetString("PE_CANT")))-(double)(Double.parseDouble(_c.GetString("PE_RECCANT"))))),(Object)(_c.GetString("PE_PRONOMBRE")),(Object)(_c.GetString("PE_PROID")),(Object)(_c.GetString("PE_CLIENTE")),(Object)(_c.GetString("PE_FECHA")),(Object)(_c.GetString("PE_USUARIO")),(Object)(_c.GetString("PE_RUTA")),(Object)(_c.GetString("PE_COSTO_SIN")),(Object)(_c.GetString("PE_DESC")),(Object)(_c.GetString("PE_FOLIO"))};
 //BA.debugLineNum = 968;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_pedido"));
 };
 };
 }
};
 };
 //BA.debugLineNum = 973;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 974;BA.debugLine="d.Position=0";
_d.setPosition((int) (0));
 //BA.debugLineNum = 975;BA.debugLine="cuantos_pedido = D.GetString(\"CUANTOS_PEDIDO\")";
_cuantos_pedido = _d.GetString("CUANTOS_PEDIDO");
 //BA.debugLineNum = 976;BA.debugLine="d.Close";
_d.Close();
 //BA.debugLineNum = 998;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery($\"select *";
_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*/ .ExecQuery(("select * from cuestionario"))));
 //BA.debugLineNum = 999;BA.debugLine="Private rutaActual As String = Subs.traeRuta";
_rutaactual = _subs._traeruta /*String*/ (ba);
 //BA.debugLineNum = 1000;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 1001;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step293 = 1;
final int limit293 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit293 ;_i = _i + step293 ) {
 //BA.debugLineNum = 1002;BA.debugLine="c.Position = i";
_c.setPosition(_i);
 //BA.debugLineNum = 1003;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 1004;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1005;BA.debugLine="cmd.Name = \"insert_CUESTIONARIO_GUNA\"";
_cmd.Name /*String*/  = "insert_CUESTIONARIO_GUNA";
 //BA.debugLineNum = 1006;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("Q_IDCLIENTE")),(Object)(_rutaactual),(Object)(_almacen),(Object)(_c.GetString("Q_FECHA")),(Object)(_c.GetString("Q_IDPREGUNTA")),(Object)(_c.GetString("Q_PREGUNTA")),(Object)(_c.GetString("Q_IDRESPUESTA")),(Object)(_c.GetString("Q_RESPUESTA"))};
 //BA.debugLineNum = 1007;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_cuestionario"));
 }
};
 };
 //BA.debugLineNum = 1010;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 1013;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT NV_CL";
_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*/ .ExecQuery("SELECT NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON FROM NOVENTA")));
 //BA.debugLineNum = 1014;BA.debugLine="D=B4XPages.MainPage.skmt.ExecQuery(\"SELECT COUNT";
_d = (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")));
 //BA.debugLineNum = 1015;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 1016;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step306 = 1;
final int limit306 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit306 ;_i = _i + step306 ) {
 //BA.debugLineNum = 1017;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 1018;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 1019;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1020;BA.debugLine="cmd.Name = \"insert_noventa_GV2\"";
_cmd.Name /*String*/  = "insert_noventa_GV2";
 //BA.debugLineNum = 1021;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("NV_CLIENTE")),(Object)(_c.GetString("NV_FECHA")),(Object)(_c.GetString("NV_USER")),(Object)(_c.GetString("NV_MOTIVO")),(Object)(_c.GetString("NV_COMM")),(Object)(_c.GetString("NV_LAT")),(Object)(_c.GetString("NV_LON")),(Object)(_almacen),(Object)(_l_ruta.getText())};
 //BA.debugLineNum = 1022;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("inst_noventa"));
 }
};
 };
 //BA.debugLineNum = 1025;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 1026;BA.debugLine="d.Position=0";
_d.setPosition((int) (0));
 //BA.debugLineNum = 1027;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")";
_cuantos_noventa = _d.GetString("CUANTOS_NOVENTA");
 //BA.debugLineNum = 1028;BA.debugLine="d.Close";
_d.Close();
 //BA.debugLineNum = 1046;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select HGCLI";
_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*/ .ExecQuery("Select HGCLIENTE, HGDATE, HGLAT, HGLON from HIST_GEOCERCA")));
 //BA.debugLineNum = 1047;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 1048;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step321 = 1;
final int limit321 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit321 ;_i = _i + step321 ) {
 //BA.debugLineNum = 1049;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 1050;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 1051;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1052;BA.debugLine="cmd.Name = \"insert_geocerca_GV2\"";
_cmd.Name /*String*/  = "insert_geocerca_GV2";
 //BA.debugLineNum = 1053;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("HGCLIENTE")),(Object)(_c.GetString("HGDATE")),(Object)(_c.GetString("HGLAT")),(Object)(_c.GetString("HGLON"))};
 //BA.debugLineNum = 1054;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("inst_hist_geo"));
 }
};
 };
 //BA.debugLineNum = 1057;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 1060;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select HFCLI";
_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*/ .ExecQuery("Select HFCLIENTE, HFALIAS,HFRUTA,HFALMACEN from HIST_FACE")));
 //BA.debugLineNum = 1061;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 1062;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step333 = 1;
final int limit333 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit333 ;_i = _i + step333 ) {
 //BA.debugLineNum = 1063;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 1064;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 1065;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1066;BA.debugLine="cmd.Name = \"insert_face_like_GV2\"";
_cmd.Name /*String*/  = "insert_face_like_GV2";
 //BA.debugLineNum = 1067;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("HFCLIENTE")),(Object)(_c.GetString("HFALIAS")),(Object)(_c.GetString("HFRUTA")),(Object)(_c.GetString("HFALMACEN"))};
 //BA.debugLineNum = 1068;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("inst_hist_face"));
 }
};
 };
 //BA.debugLineNum = 1071;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 1074;BA.debugLine="t1.Initialize(\"T1\", 30000) ' 1000 = 1 second";
_t1.Initialize(ba,"T1",(long) (30000));
 //BA.debugLineNum = 1075;BA.debugLine="t1.Enabled = True";
_t1.setEnabled(__c.True);
 //BA.debugLineNum = 1076;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
 //BA.debugLineNum = 1077;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
 //BA.debugLineNum = 1078;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
 //BA.debugLineNum = 1079;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
 //BA.debugLineNum = 1080;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 1081;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1082;BA.debugLine="cmd.Name =\"insert_drop_GV2_3\"";
_cmd.Name /*String*/  = "insert_drop_GV2_3";
 //BA.debugLineNum = 1083;BA.debugLine="cmd.Parameters = Array As Object(usuario,l_ruta.";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_usuario),(Object)(_l_ruta.getText()),(Object)(_sdate+_stime),(Object)(_l_porvisitar.getText()),(Object)(_l_drop.getText()),(Object)(_l_efectiva.getText()),(Object)(_l_cuantosc.getText()),(Object)(_l_cuantosn.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)(_almacen),(Object)(__c.Application.getVersionName())};
 //BA.debugLineNum = 1084;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("inst_drop"));
 //BA.debugLineNum = 1085;BA.debugLine="img2.Visible =False";
_img2.setVisible(__c.False);
 //BA.debugLineNum = 1086;BA.debugLine="PORCENTAJE = Round(100/ (cuantos_noventa + cuant";
_porcentaje = BA.NumberToString(__c.Round(100/(double)((double)(Double.parseDouble(_cuantos_noventa))+(double)(Double.parseDouble(_cuantos_pedido))+(double)(Double.parseDouble(_cuantos_pedidosc))+1)));
 //BA.debugLineNum = 1087;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 "+_l_ruta.getText()),__c.True);};
 };
 //BA.debugLineNum = 1090;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")));
 //BA.debugLineNum = 1091;BA.debugLine="If x.RowCount>0 Then";
if (_x.getRowCount()>0) { 
 //BA.debugLineNum = 1092;BA.debugLine="For i=0 To x.RowCount -1";
{
final int step360 = 1;
final int limit360 = (int) (_x.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit360 ;_i = _i + step360 ) {
 //BA.debugLineNum = 1093;BA.debugLine="x.Position=i";
_x.setPosition(_i);
 //BA.debugLineNum = 1094;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 1095;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1096;BA.debugLine="cmd.Name = \"insert_ENCUESTA_MODULO1\"";
_cmd.Name /*String*/  = "insert_ENCUESTA_MODULO1";
 //BA.debugLineNum = 1097;BA.debugLine="cmd.Parameters = Array As Object(x.GetString(\"C";
_cmd.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"))};
 //BA.debugLineNum = 1098;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("insert_ENCUESTA_MODULO1"));
 }
};
 };
 //BA.debugLineNum = 1101;BA.debugLine="x.Close";
_x.Close();
 //BA.debugLineNum = 1103;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")));
 //BA.debugLineNum = 1104;BA.debugLine="If x1.RowCount>0 Then";
if (_x1.getRowCount()>0) { 
 //BA.debugLineNum = 1105;BA.debugLine="For i=0 To x1.RowCount -1";
{
final int step372 = 1;
final int limit372 = (int) (_x1.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit372 ;_i = _i + step372 ) {
 //BA.debugLineNum = 1106;BA.debugLine="x1.Position=i";
_x1.setPosition(_i);
 //BA.debugLineNum = 1107;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 1108;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1109;BA.debugLine="cmd.Name = \"insert_ENCUESTA_MODULO2\"";
_cmd.Name /*String*/  = "insert_ENCUESTA_MODULO2";
 //BA.debugLineNum = 1110;BA.debugLine="cmd.Parameters = Array As Object(x1.GetString(\"";
_cmd.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"))};
 //BA.debugLineNum = 1111;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("insert_ENCUESTA_MODULO2"));
 }
};
 };
 //BA.debugLineNum = 1114;BA.debugLine="x1.Close";
_x1.Close();
 //BA.debugLineNum = 1115;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")));
 //BA.debugLineNum = 1116;BA.debugLine="If x2.RowCount>0 Then";
if (_x2.getRowCount()>0) { 
 //BA.debugLineNum = 1117;BA.debugLine="For i=0 To x2.RowCount -1";
{
final int step384 = 1;
final int limit384 = (int) (_x2.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit384 ;_i = _i + step384 ) {
 //BA.debugLineNum = 1118;BA.debugLine="x2.Position=i";
_x2.setPosition(_i);
 //BA.debugLineNum = 1120;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 1121;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1122;BA.debugLine="cmd.Name = \"insert_ENCUESTA_MODULO3\"";
_cmd.Name /*String*/  = "insert_ENCUESTA_MODULO3";
 //BA.debugLineNum = 1123;BA.debugLine="cmd.Parameters = Array As Object(x2.GetString(\"";
_cmd.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"))};
 //BA.debugLineNum = 1124;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("insert_ENCUESTA_MODULO3"));
 }
};
 };
 //BA.debugLineNum = 1127;BA.debugLine="x2.Close";
_x2.Close();
 //BA.debugLineNum = 1128;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")));
 //BA.debugLineNum = 1129;BA.debugLine="If x.RowCount>0 Then";
if (_x.getRowCount()>0) { 
 //BA.debugLineNum = 1130;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 ) {
 //BA.debugLineNum = 1131;BA.debugLine="x.Position=i";
_x.setPosition(_i);
 //BA.debugLineNum = 1132;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 1133;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1134;BA.debugLine="cmd.Name = \"insert_ENCUESTA_MODULO4\"";
_cmd.Name /*String*/  = "insert_ENCUESTA_MODULO4";
 //BA.debugLineNum = 1135;BA.debugLine="cmd.Parameters = Array As Object(x.GetString(\"C";
_cmd.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"))};
 //BA.debugLineNum = 1136;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("insert_ENCUESTA_MODULO4"));
 }
};
 };
 //BA.debugLineNum = 1139;BA.debugLine="x.Close";
_x.Close();
 //BA.debugLineNum = 1140;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")));
 //BA.debugLineNum = 1141;BA.debugLine="If x.RowCount>0 Then";
if (_x.getRowCount()>0) { 
 //BA.debugLineNum = 1142;BA.debugLine="For i=0 To x.RowCount -1";
{
final int step408 = 1;
final int limit408 = (int) (_x.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit408 ;_i = _i + step408 ) {
 //BA.debugLineNum = 1143;BA.debugLine="x.Position=i";
_x.setPosition(_i);
 //BA.debugLineNum = 1144;BA.debugLine="Dim cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 1145;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 1146;BA.debugLine="cmd.Name = \"insert_ENCUESTA_MODULO5\"";
_cmd.Name /*String*/  = "insert_ENCUESTA_MODULO5";
 //BA.debugLineNum = 1147;BA.debugLine="cmd.Parameters = Array As Object(x.GetString(\"C";
_cmd.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"))};
 //BA.debugLineNum = 1148;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("insert_ENCUESTA_MODULO5"));
 }
};
 };
 //BA.debugLineNum = 1151;BA.debugLine="x.Close";
_x.Close();
 //BA.debugLineNum = 1152;BA.debugLine="End Sub";
return "";
}
public String  _t1_tick() throws Exception{
 //BA.debugLineNum = 3112;BA.debugLine="Sub t1_tick";
 //BA.debugLineNum = 3114;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 3115;BA.debugLine="cmd.Name = \"select_cuantos_pedido_GV2\"";
_cmd.Name /*String*/  = "select_cuantos_pedido_GV2";
 //BA.debugLineNum = 3116;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen),(Object)(_l_ruta.getText())};
 //BA.debugLineNum = 3117;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("valida_pedido"));
 //BA.debugLineNum = 3119;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 3120;BA.debugLine="cmd.Name = \"select_cuantos_noventa_GV2\"";
_cmd.Name /*String*/  = "select_cuantos_noventa_GV2";
 //BA.debugLineNum = 3121;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen),(Object)(_l_ruta.getText())};
 //BA.debugLineNum = 3122;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("valida_noventa"));
 //BA.debugLineNum = 3124;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 3125;BA.debugLine="cmd.Name = \"select_cuantos_pedidoc_GV2\"";
_cmd.Name /*String*/  = "select_cuantos_pedidoc_GV2";
 //BA.debugLineNum = 3126;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_almacen),(Object)(_l_ruta.getText())};
 //BA.debugLineNum = 3127;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("valida_pedidoc"));
 //BA.debugLineNum = 3129;BA.debugLine="If PB2.Progress = 0 Then";
if (_pb2.getProgress()==0) { 
 //BA.debugLineNum = 3130;BA.debugLine="S_CP.Text = \"ENVIAR DATOS (K-1)\"";
_s_cp.setText(BA.ObjectToCharSequence("ENVIAR DATOS (K-1)"));
 };
 //BA.debugLineNum = 3132;BA.debugLine="Log(\"TIMER DISABLED\")";
__c.LogImpl("44587540","TIMER DISABLED",0);
 //BA.debugLineNum = 3133;BA.debugLine="img2.Visible=False";
_img2.setVisible(__c.False);
 //BA.debugLineNum = 3134;BA.debugLine="t1.Enabled = False";
_t1.setEnabled(__c.False);
 //BA.debugLineNum = 3137;BA.debugLine="End Sub";
return "";
}
public String  _t2_tick() throws Exception{
 //BA.debugLineNum = 2981;BA.debugLine="Sub t2_tick";
 //BA.debugLineNum = 2983;BA.debugLine="Log(\"-------->  BORRAMOS\")";
__c.LogImpl("44390914","-------->  BORRAMOS",0);
 //BA.debugLineNum = 2984;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();};
 //BA.debugLineNum = 2985;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");
 //BA.debugLineNum = 2986;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");
 //BA.debugLineNum = 2987;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");
 //BA.debugLineNum = 2988;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");
 //BA.debugLineNum = 2989;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");
 //BA.debugLineNum = 2990;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");
 //BA.debugLineNum = 2991;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");
 //BA.debugLineNum = 2992;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");
 //BA.debugLineNum = 2993;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");
 //BA.debugLineNum = 2994;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");
 //BA.debugLineNum = 2995;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");
 //BA.debugLineNum = 2996;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_GIRO\")";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_GIRO");
 //BA.debugLineNum = 2997;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");
 //BA.debugLineNum = 2998;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");
 //BA.debugLineNum = 2999;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");
 //BA.debugLineNum = 3000;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");
 //BA.debugLineNum = 3001;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");
 //BA.debugLineNum = 3002;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");
 //BA.debugLineNum = 3003;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");
 //BA.debugLineNum = 3004;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");
 //BA.debugLineNum = 3005;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");
 //BA.debugLineNum = 3006;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");
 //BA.debugLineNum = 3007;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");
 //BA.debugLineNum = 3008;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)");
 //BA.debugLineNum = 3009;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");
 //BA.debugLineNum = 3010;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");
 //BA.debugLineNum = 3011;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");
 //BA.debugLineNum = 3012;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");
 //BA.debugLineNum = 3013;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");
 //BA.debugLineNum = 3014;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");
 //BA.debugLineNum = 3015;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");
 //BA.debugLineNum = 3016;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");
 //BA.debugLineNum = 3017;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");
 //BA.debugLineNum = 3018;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"}));
 //BA.debugLineNum = 3019;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"}));
 //BA.debugLineNum = 3020;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"}));
 //BA.debugLineNum = 3021;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"}));
 //BA.debugLineNum = 3022;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"}));
 //BA.debugLineNum = 3023;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"}));
 //BA.debugLineNum = 3026;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)}));
 //BA.debugLineNum = 3027;BA.debugLine="Subs.deleteFolder(Starter.fFileProvider.SharedFol";
_subs._deletefolder /*String*/ (ba,_starter._ffileprovider /*gunav2.keymon.com.mx.fileprovider*/ ._sharedfolder /*String*/ );
 //BA.debugLineNum = 3029;BA.debugLine="E_RUTA2.Visible = False";
_e_ruta2.setVisible(__c.False);
 //BA.debugLineNum = 3031;BA.debugLine="b_abordo.Visible = False";
_b_abordo.setVisible(__c.False);
 //BA.debugLineNum = 3032;BA.debugLine="cargar.Visible = False";
_cargar.setVisible(__c.False);
 //BA.debugLineNum = 3033;BA.debugLine="Subir.Visible = False";
_subir.setVisible(__c.False);
 //BA.debugLineNum = 3034;BA.debugLine="connecta.Visible = True";
_connecta.setVisible(__c.True);
 //BA.debugLineNum = 3040;BA.debugLine="t2.Enabled = False";
_t2.setEnabled(__c.False);
 //BA.debugLineNum = 3041;BA.debugLine="e_ruta.Text = \"\"";
_e_ruta.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 3042;BA.debugLine="B4XPage_Appear";
_b4xpage_appear();
 //BA.debugLineNum = 3043;BA.debugLine="End Sub";
return "";
}
public String  _tickets_dia_click() throws Exception{
 //BA.debugLineNum = 3787;BA.debugLine="Sub tickets_dia_Click";
 //BA.debugLineNum = 3788;BA.debugLine="B4XPages.ShowPage(\"TicketsDia\")";
_b4xpages._showpage /*String*/ (ba,"TicketsDia");
 //BA.debugLineNum = 3789;BA.debugLine="End Sub";
return "";
}
public Object callSub(String sub, Object sender, Object[] args) throws Exception {
BA.senderHolder.set(sender);
if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
	return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
if (BA.fastSubCompare(sub, "GPS_LOCATIONCHANGED"))
	return _gps_locationchanged((anywheresoftware.b4a.gps.LocationWrapper) args[0]);
if (BA.fastSubCompare(sub, "JOBDONE"))
	return _jobdone((gunav2.keymon.com.mx.httpjob) args[0]);
return BA.SubDelegator.SubNotFound;
}
}
